reflex-agent 0.18.2 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +101 -102
- package/.next/app-path-routes-manifest.json +9 -9
- package/.next/build-manifest.json +5 -5
- package/.next/prerender-manifest.json +3 -3
- package/.next/react-loadable-manifest.json +1 -1
- package/.next/required-server-files.json +2 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/agents/[agentId]/page.js +2 -2
- package/.next/server/app/agents/[agentId]/page.js.nft.json +1 -1
- package/.next/server/app/agents/[agentId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/api/agents/[agentId]/respond/route.js +1 -1
- package/.next/server/app/api/agents/[agentId]/respond/route.js.nft.json +1 -1
- package/.next/server/app/api/agents/[agentId]/respond/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/images/[rootId]/[file]/route.js +1 -1
- package/.next/server/app/api/images/[rootId]/[file]/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/oauth/callback/route.js +2 -2
- package/.next/server/app/api/oauth/callback/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/oauth/start/route.js +1 -1
- package/.next/server/app/api/oauth/start/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/attachments/route.js +0 -0
- package/.next/server/app/api/roots/[id]/attachments/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/send/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stop/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route.js +2 -2
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/chat/[topicId]/stream/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/dashboard/route.js +1 -1
- package/.next/server/app/api/roots/[id]/dashboard/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/dashboard/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/roots/[id]/suggestions/route.js +1 -1
- package/.next/server/app/api/roots/[id]/suggestions/route.js.nft.json +1 -1
- package/.next/server/app/api/roots/[id]/suggestions/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/bundle.js/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host/route.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host/route.js.nft.json +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host-api.mjs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/host-ui.mjs/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/iframe/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/[scope]/[id]/style.css/route_client-reference-manifest.js +1 -1
- package/.next/server/app/api/utilities/install-archive/route_client-reference-manifest.js +1 -1
- package/.next/server/app/audit/page.js +2 -2
- package/.next/server/app/audit/page.js.nft.json +1 -1
- package/.next/server/app/audit/page_client-reference-manifest.js +1 -1
- package/.next/server/app/dispatcher/page.js +2 -2
- package/.next/server/app/dispatcher/page.js.nft.json +1 -1
- package/.next/server/app/dispatcher/page_client-reference-manifest.js +1 -1
- package/.next/server/app/onboarding/page.js +3 -3
- package/.next/server/app/onboarding/page.js.nft.json +1 -1
- package/.next/server/app/onboarding/page_client-reference-manifest.js +1 -1
- package/.next/server/app/page.js +2 -2
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/chat/[topicId]/page.js +2 -2
- package/.next/server/app/roots/[id]/chat/[topicId]/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/chat/[topicId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/kb/[...slug]/page.js +2 -2
- package/.next/server/app/roots/[id]/kb/[...slug]/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/kb/[...slug]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/memory/page.js +2 -2
- package/.next/server/app/roots/[id]/memory/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/memory/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/page.js +4 -4
- package/.next/server/app/roots/[id]/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/workflows/[wfId]/page.js +2 -2
- package/.next/server/app/roots/[id]/workflows/[wfId]/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/workflows/[wfId]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/[id]/workflows/page.js +2 -2
- package/.next/server/app/roots/[id]/workflows/page.js.nft.json +1 -1
- package/.next/server/app/roots/[id]/workflows/page_client-reference-manifest.js +1 -1
- package/.next/server/app/roots/new/page.js +4 -4
- package/.next/server/app/roots/new/page.js.nft.json +1 -1
- package/.next/server/app/roots/new/page_client-reference-manifest.js +1 -1
- package/.next/server/app/settings/page.js +5 -5
- package/.next/server/app/settings/page.js.nft.json +1 -1
- package/.next/server/app/settings/page_client-reference-manifest.js +1 -1
- package/.next/server/app/share/[id]/file/page.js +2 -2
- package/.next/server/app/share/[id]/file/page.js.nft.json +1 -1
- package/.next/server/app/share/[id]/file/page_client-reference-manifest.js +1 -1
- package/.next/server/app/share/[id]/page.js +2 -2
- package/.next/server/app/share/[id]/page.js.nft.json +1 -1
- package/.next/server/app/share/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/utilities/[scope]/[id]/page.js +2 -2
- package/.next/server/app/utilities/[scope]/[id]/page.js.nft.json +1 -1
- package/.next/server/app/utilities/[scope]/[id]/page_client-reference-manifest.js +1 -1
- package/.next/server/app/utilities/page.js +2 -2
- package/.next/server/app/utilities/page.js.nft.json +1 -1
- package/.next/server/app/utilities/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +9 -9
- package/.next/server/chunks/{6435.js → 1088.js} +1 -1
- package/.next/server/chunks/1105.js +1 -1
- package/.next/server/chunks/1179.js +1 -0
- package/.next/server/chunks/1223.js +1 -1
- package/.next/server/chunks/1244.js +1 -1
- package/.next/server/chunks/1281.js +80 -0
- package/.next/server/chunks/1336.js +252 -0
- package/.next/server/chunks/1353.js +51 -0
- package/.next/server/chunks/1431.js +1 -0
- package/.next/server/chunks/146.js +2 -0
- package/.next/server/chunks/1491.js +79 -0
- package/.next/server/chunks/1496.js +148 -0
- package/.next/server/chunks/{9631.js → 1589.js} +2 -2
- package/.next/server/chunks/1623.js +1 -0
- package/.next/server/chunks/1862.js +77 -0
- package/.next/server/chunks/1888.js +1 -1
- package/.next/server/chunks/1908.js +1 -0
- package/.next/server/chunks/192.js +1 -0
- package/.next/server/chunks/2069.js +1 -0
- package/.next/server/chunks/2087.js +24 -0
- package/.next/server/chunks/209.js +1 -0
- package/.next/server/chunks/2115.js +77 -0
- package/.next/server/chunks/2232.js +80 -0
- package/.next/server/chunks/{4460.js → 2262.js} +2 -2
- package/.next/server/chunks/2280.js +1 -0
- package/.next/server/chunks/2433.js +1 -1
- package/.next/server/chunks/2485.js +3 -8
- package/.next/server/chunks/2503.js +1 -1
- package/.next/server/chunks/2539.js +93 -0
- package/.next/server/chunks/2764.js +80 -0
- package/.next/server/chunks/285.js +24 -75
- package/.next/server/chunks/2888.js +7 -0
- package/.next/server/chunks/302.js +1 -0
- package/.next/server/chunks/3029.js +36 -0
- package/.next/server/chunks/3110.js +0 -0
- package/.next/server/chunks/3117.js +1 -0
- package/.next/server/chunks/3258.js +23 -0
- package/.next/server/chunks/331.js +1 -0
- package/.next/server/chunks/3332.js +1 -1
- package/.next/server/chunks/{4251.js → 3474.js} +24 -25
- package/.next/server/chunks/3552.js +43 -0
- package/.next/server/chunks/3583.js +104 -0
- package/.next/server/chunks/3631.js +1 -0
- package/.next/server/chunks/3633.js +1 -0
- package/.next/server/chunks/383.js +1 -80
- package/.next/server/chunks/3834.js +1 -1
- package/.next/server/chunks/3953.js +1 -0
- package/.next/server/chunks/3992.js +1 -0
- package/.next/server/chunks/4013.js +1 -0
- package/.next/server/chunks/4031.js +3 -3
- package/.next/server/chunks/4119.js +1 -0
- package/.next/server/chunks/4230.js +12 -0
- package/.next/server/chunks/4250.js +1 -0
- package/.next/server/chunks/4294.js +1 -0
- package/.next/server/chunks/4312.js +1 -0
- package/.next/server/chunks/4342.js +1 -0
- package/.next/server/chunks/4360.js +1 -0
- package/.next/server/chunks/449.js +226 -0
- package/.next/server/chunks/4578.js +0 -0
- package/.next/server/chunks/4585.js +1 -0
- package/.next/server/chunks/4611.js +1 -1
- package/.next/server/chunks/4639.js +1 -0
- package/.next/server/chunks/4682.js +1 -0
- package/.next/server/chunks/4788.js +153 -0
- package/.next/server/chunks/4812.js +2 -2
- package/.next/server/chunks/4925.js +1 -1
- package/.next/server/chunks/4952.js +1 -0
- package/.next/server/chunks/4969.js +4 -1
- package/.next/server/chunks/4989.js +801 -0
- package/.next/server/chunks/5211.js +64 -0
- package/.next/server/chunks/5243.js +1 -1
- package/.next/server/chunks/5308.js +1 -0
- package/.next/server/chunks/5461.js +1 -0
- package/.next/server/chunks/5549.js +1 -0
- package/.next/server/chunks/5719.js +34 -0
- package/.next/server/chunks/5810.js +12 -0
- package/.next/server/chunks/5922.js +1 -0
- package/.next/server/chunks/6142.js +1 -1
- package/.next/server/chunks/6216.js +1 -1
- package/.next/server/chunks/6318.js +9 -0
- package/.next/server/chunks/6483.js +1 -1
- package/.next/server/chunks/6509.js +1 -0
- package/.next/server/chunks/6571.js +166 -0
- package/.next/server/chunks/660.js +1 -0
- package/.next/server/chunks/6692.js +1 -0
- package/.next/server/chunks/6730.js +1 -1
- package/.next/server/chunks/6852.js +1 -0
- package/.next/server/chunks/6970.js +1 -0
- package/.next/server/chunks/7007.js +1 -0
- package/.next/server/chunks/7188.js +1 -1
- package/.next/server/chunks/7220.js +1 -1
- package/.next/server/chunks/7228.js +1 -0
- package/.next/server/chunks/7244.js +1 -0
- package/.next/server/chunks/7373.js +90 -0
- package/.next/server/chunks/7430.js +1 -1
- package/.next/server/chunks/7523.js +1 -0
- package/.next/server/chunks/7576.js +1 -0
- package/.next/server/chunks/7742.js +7 -0
- package/.next/server/chunks/7811.js +215 -0
- package/.next/server/chunks/7885.js +1 -0
- package/.next/server/chunks/8032.js +3 -0
- package/.next/server/chunks/8095.js +24 -0
- package/.next/server/chunks/8129.js +5 -0
- package/.next/server/chunks/8294.js +1 -0
- package/.next/server/chunks/832.js +1 -0
- package/.next/server/chunks/8464.js +180 -0
- package/.next/server/chunks/8511.js +0 -0
- package/.next/server/chunks/8514.js +1 -1
- package/.next/server/chunks/8583.js +4 -0
- package/.next/server/chunks/8609.js +55 -0
- package/.next/server/chunks/8711.js +1 -0
- package/.next/server/chunks/8714.js +1 -0
- package/.next/server/chunks/8730.js +1 -0
- package/.next/server/chunks/8868.js +1 -0
- package/.next/server/chunks/9048.js +1 -0
- package/.next/server/chunks/9058.js +1 -0
- package/.next/server/chunks/9062.js +1 -0
- package/.next/server/chunks/9094.js +1 -0
- package/.next/server/chunks/9098.js +1 -1
- package/.next/server/chunks/9099.js +1 -0
- package/.next/server/chunks/9171.js +287 -0
- package/.next/server/chunks/9181.js +1 -0
- package/.next/server/chunks/9293.js +1 -1
- package/.next/server/chunks/9478.js +1 -0
- package/.next/server/chunks/9494.js +141 -0
- package/.next/server/chunks/952.js +1 -0
- package/.next/server/chunks/9600.js +1 -0
- package/.next/server/chunks/9607.js +29 -0
- package/.next/server/chunks/9653.js +115 -0
- package/.next/server/chunks/9784.js +1 -0
- package/.next/server/chunks/9798.js +1 -0
- package/.next/server/chunks/9990.js +1 -0
- package/.next/server/edge-instrumentation.js +2 -0
- package/.next/server/edge-instrumentation.js.map +1 -0
- package/.next/server/functions-config-manifest.json +3 -3
- package/.next/server/instrumentation.js +1 -0
- package/.next/server/instrumentation.js.nft.json +1 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-manifest.json +6 -5
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_error.js +3 -3
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/3363-f417b308a8cd156d.js +1 -0
- package/.next/static/chunks/3686-0107521d2c14950c.js +1 -0
- package/.next/static/chunks/3695-3576767108de7f38.js +1 -0
- package/.next/static/chunks/4108.19abaa6d618295ed.js +1 -0
- package/.next/static/chunks/5933-4013a6dab4565b5e.js +1 -0
- package/.next/static/chunks/7425-9684ea815b4b1731.js +1 -0
- package/.next/static/chunks/7552-def8a17828891c8c.js +1 -0
- package/.next/static/chunks/8776-2df966dd98c68fd7.js +1 -0
- package/.next/static/chunks/app/layout-baad68d32b917b8f.js +1 -0
- package/.next/static/chunks/app/onboarding/page-b1b1e6a4467ed781.js +1 -0
- package/.next/static/chunks/app/page-556a2139313c3c71.js +1 -0
- package/.next/static/chunks/app/roots/[id]/chat/[topicId]/page-52223811258d07b2.js +1 -0
- package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-0df769f27549cd16.js +1 -0
- package/.next/static/chunks/app/roots/[id]/memory/{page-4edc11023d8a13fd.js → page-1f6bc3a624b141a5.js} +1 -1
- package/.next/static/chunks/app/roots/[id]/page-17493991b2d391b3.js +1 -0
- package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-a21fe3541418a80a.js +1 -0
- package/.next/static/chunks/app/roots/[id]/workflows/page-0952e5fb53d53c3e.js +1 -0
- package/.next/static/chunks/app/roots/new/{page-98d64261cc2ae2a1.js → page-4f571184c1856103.js} +1 -1
- package/.next/static/chunks/app/settings/page-8c0ad1c1856da988.js +1 -0
- package/.next/static/chunks/app/share/[id]/page-b27a0bc7b9c6cda9.js +1 -0
- package/.next/static/chunks/app/utilities/[scope]/[id]/page-0fe4c377098064d5.js +1 -0
- package/.next/static/chunks/app/utilities/page-445933dcd5a500ae.js +1 -0
- package/.next/static/chunks/{webpack-dbfe1e5d0f7f7a98.js → webpack-88066a85eb2d605f.js} +1 -1
- package/.next/trace +116 -90
- package/dist/lib/reflex/ids.js +66 -0
- package/dist/lib/reflex/ids.js.map +1 -0
- package/dist/lib/reflex/paths.js +26 -0
- package/dist/lib/reflex/paths.js.map +1 -1
- package/dist/lib/reflex/store/json-store.js +50 -0
- package/dist/lib/reflex/store/json-store.js.map +1 -0
- package/package.json +10 -6
- package/.next/server/chunks/133.js +0 -1
- package/.next/server/chunks/1358.js +0 -1
- package/.next/server/chunks/2389.js +0 -4
- package/.next/server/chunks/2787.js +0 -1
- package/.next/server/chunks/3240.js +0 -1
- package/.next/server/chunks/3295.js +0 -1
- package/.next/server/chunks/4842.js +0 -1
- package/.next/server/chunks/5319.js +0 -1
- package/.next/server/chunks/5543.js +0 -1
- package/.next/server/chunks/569.js +0 -1
- package/.next/server/chunks/6356.js +0 -3
- package/.next/server/chunks/7229.js +0 -2
- package/.next/server/chunks/7607.js +0 -1
- package/.next/server/chunks/8040.js +0 -1
- package/.next/server/chunks/8124.js +0 -1
- package/.next/server/chunks/8576.js +0 -7
- package/.next/server/chunks/9809.js +0 -1
- package/.next/server/chunks/9835.js +0 -1
- package/.next/static/chunks/2885-3b6efe9070ae7699.js +0 -1
- package/.next/static/chunks/334-e9ffb96d6720ee5b.js +0 -1
- package/.next/static/chunks/4108.a04c1e0b768f6392.js +0 -1
- package/.next/static/chunks/5371-f2503fe0dffea57d.js +0 -1
- package/.next/static/chunks/5744-eccd279a734c778c.js +0 -1
- package/.next/static/chunks/6568-e4d2de23d9f8d347.js +0 -1
- package/.next/static/chunks/6642-02be14d0b5ca62b7.js +0 -1
- package/.next/static/chunks/8566-5d4c89b722d9cee1.js +0 -1
- package/.next/static/chunks/8775-890699c74c28df61.js +0 -1
- package/.next/static/chunks/app/layout-48a6fb46c228b814.js +0 -1
- package/.next/static/chunks/app/onboarding/page-06103f281ff3f063.js +0 -1
- package/.next/static/chunks/app/page-eed31ba1b952cf24.js +0 -1
- package/.next/static/chunks/app/roots/[id]/chat/[topicId]/page-5fc17c5819406917.js +0 -1
- package/.next/static/chunks/app/roots/[id]/kb/[...slug]/page-a52b2005a7e538ca.js +0 -1
- package/.next/static/chunks/app/roots/[id]/page-0f0d498f4b4bd7bf.js +0 -1
- package/.next/static/chunks/app/roots/[id]/workflows/[wfId]/page-f93d6b1bb29e79f0.js +0 -1
- package/.next/static/chunks/app/roots/[id]/workflows/page-562913d54bcd08d5.js +0 -1
- package/.next/static/chunks/app/settings/page-7a4d8a407fbe5ed8.js +0 -1
- package/.next/static/chunks/app/share/[id]/page-a0540dba09771e84.js +0 -1
- package/.next/static/chunks/app/utilities/[scope]/[id]/page-2cee9be029f211c6.js +0 -1
- package/.next/static/chunks/app/utilities/page-197156f16167514e.js +0 -1
- /package/.next/static/{kKiRbrTiD77WXduAvKNfN → EXoiX_YvMRCB6oNXqJnaz}/_buildManifest.js +0 -0
- /package/.next/static/{kKiRbrTiD77WXduAvKNfN → EXoiX_YvMRCB6oNXqJnaz}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";exports.id=1353,exports.ids=[1353,8711],exports.modules={9423:(a,b,c)=>{c.d(b,{tH:()=>r,iG:()=>m});var d=c(76760),e=c.n(d),f=c(73024),g=c(63647);let h=null,i=!1,j=!1;async function k(){if(j)return null;try{return await Promise.resolve().then(c.t.bind(c,79868,23))}catch{return j=!0,null}}async function l(){if(h&&i)return{raw:h};let a=await k();if(!a)return null;let b=(0,g._)();await f.promises.mkdir(b,{recursive:!0});let c=e().join(b,"sessions.db"),d=new a.DatabaseSync(c);return d.exec("PRAGMA journal_mode = WAL"),d.exec("PRAGMA synchronous = NORMAL"),d.exec("PRAGMA temp_store = MEMORY"),function(a){a.exec(`
|
|
2
|
+
CREATE TABLE IF NOT EXISTS meta (
|
|
3
|
+
key TEXT PRIMARY KEY,
|
|
4
|
+
value TEXT NOT NULL
|
|
5
|
+
);
|
|
6
|
+
|
|
7
|
+
CREATE TABLE IF NOT EXISTS documents (
|
|
8
|
+
id INTEGER PRIMARY KEY,
|
|
9
|
+
source TEXT NOT NULL,
|
|
10
|
+
root_id TEXT NOT NULL,
|
|
11
|
+
root_path TEXT NOT NULL,
|
|
12
|
+
ref TEXT NOT NULL,
|
|
13
|
+
file_path TEXT NOT NULL UNIQUE,
|
|
14
|
+
title TEXT,
|
|
15
|
+
iso_date TEXT,
|
|
16
|
+
mtime_ms INTEGER NOT NULL,
|
|
17
|
+
indexed_at INTEGER NOT NULL
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
CREATE INDEX IF NOT EXISTS idx_documents_root ON documents(root_id);
|
|
21
|
+
CREATE INDEX IF NOT EXISTS idx_documents_source ON documents(source);
|
|
22
|
+
CREATE INDEX IF NOT EXISTS idx_documents_date ON documents(iso_date);
|
|
23
|
+
|
|
24
|
+
CREATE VIRTUAL TABLE IF NOT EXISTS documents_fts USING fts5(
|
|
25
|
+
title,
|
|
26
|
+
body,
|
|
27
|
+
tokenize = 'unicode61 remove_diacritics 2'
|
|
28
|
+
);
|
|
29
|
+
`);let b=a.prepare("SELECT value FROM meta WHERE key = 'schema_version'").get();if(b){if(b.value!==String(1))throw Error(`sessions.db schema_version mismatch (expected 1, found ${b.value})`)}else a.prepare("INSERT INTO meta (key, value) VALUES ('schema_version', ?)").run(String(1))}(d),h=d,i=!0,{raw:d}}async function m(a,b={}){let c,d=function(a){if(!a)return"";let b=a.replace(/[\^*:"]/g," ").replace(/\s+/g," ").trim();if(!b)return"";let c=new Set(["AND","OR","NOT","NEAR"]);return b.split(" ").map(a=>a?c.has(a.toUpperCase())?a.toUpperCase():/[()]/.test(a)?a:`${a}*`:a).filter(Boolean).join(" ")}(a);if(!d)return[];let e=await l();if(!e)return[];let f=e.raw,g=Math.max(1,Math.min(100,b.limit??20)),h=["documents_fts MATCH ?"],i=[d];b.rootId&&(h.push("d.root_id = ?"),i.push(b.rootId)),b.source&&(h.push("d.source = ?"),i.push(b.source)),b.since&&(h.push("d.iso_date >= ?"),i.push(b.since)),b.until&&(h.push("d.iso_date <= ?"),i.push(b.until));let j=`
|
|
30
|
+
SELECT
|
|
31
|
+
d.id AS id,
|
|
32
|
+
d.source AS source,
|
|
33
|
+
d.root_id AS root_id,
|
|
34
|
+
d.root_path AS root_path,
|
|
35
|
+
d.ref AS ref,
|
|
36
|
+
d.title AS title,
|
|
37
|
+
d.iso_date AS iso_date,
|
|
38
|
+
bm25(documents_fts) AS rank,
|
|
39
|
+
snippet(documents_fts, 1, '{{', '}}', '…', 12) AS snippet
|
|
40
|
+
FROM documents_fts
|
|
41
|
+
JOIN documents d ON d.id = documents_fts.rowid
|
|
42
|
+
WHERE ${h.join(" AND ")}
|
|
43
|
+
ORDER BY rank ASC
|
|
44
|
+
LIMIT ?
|
|
45
|
+
`;i.push(g);try{c=f.prepare(j).all(...i)}catch(b){let a=d.replace(/[()"^*:]/g," ").trim();if(!a||a===d)throw b;i[0]=a,c=f.prepare(j).all(...i)}return c.map(a=>({id:a.id,source:a.source,rootId:a.root_id,rootPath:a.root_path,ref:a.ref,title:a.title,isoDate:a.iso_date,rank:a.rank,snippet:a.snippet}))}var n=c(25518),o=c.n(n),p=c(71596),q=c(23766);async function r(){let a=await (0,p.listRoots)().catch(()=>[]),b=0,c=0,d=new Set;for(let e of a){let a=await s(e,d);b+=a.scanned,c+=a.upserted}return{scanned:b,upserted:c,removed:await v(d)}}async function s(a,b){let c=(0,q.FF)(a.path),d=0,g=0;for(let{dir:h,source:i}of[{dir:"journal",source:"journal"},{dir:"topics",source:"topic"}]){let j,k=e().join(c,h);try{j=await f.promises.readdir(k,{withFileTypes:!0})}catch{continue}for(let c of j){if(!c.isFile()||!c.name.toLowerCase().endsWith(".md"))continue;let f=e().join(k,c.name);b.add(f),d++,await t({absPath:f,rootId:a.id,rootPath:a.path,source:i,ref:c.name.replace(/\.md$/i,"")})&&g++}}return{scanned:d,upserted:g}}async function t(a){let b,c=await f.promises.stat(a.absPath).catch(()=>null);if(!c)return!1;let d=Math.floor(c.mtimeMs),e=await l();if(!e)return!1;let g=e.raw,h=g.prepare("SELECT id, mtime_ms FROM documents WHERE file_path = ? LIMIT 1").get(a.absPath);if(h&&h.mtime_ms===d)return!1;try{b=await f.promises.readFile(a.absPath,"utf8")}catch{return!1}let i=o()(b),j=i.data,k="string"==typeof j.title&&j.title.trim()||function(a){for(let b of a.split(/\r?\n/)){let a=b.trim();if(a&&!/^##\s+(user|assistant)/i.test(a))return a.replace(/^#+\s*/,"").slice(0,80)}return null}(i.content)||a.ref,m="string"==typeof j.date&&j.date.trim()||"string"==typeof j.createdAt&&j.createdAt.trim()||function(a){let b=/^(\d{4}-\d{2}-\d{2})/.exec(a);return b?b[1]:null}(a.ref)||null,n=i.content.replace(/^##\s+(user|assistant)\s*$/gim,"\n").trim();if(!n)return h&&await u(h.id),!1;let p=Date.now();if(h)g.prepare(`UPDATE documents
|
|
46
|
+
SET source = ?, root_id = ?, root_path = ?, ref = ?, title = ?,
|
|
47
|
+
iso_date = ?, mtime_ms = ?, indexed_at = ?
|
|
48
|
+
WHERE id = ?`).run(a.source,a.rootId,a.rootPath,a.ref,k,m,d,p,h.id),g.prepare("DELETE FROM documents_fts WHERE rowid = ?").run(h.id),g.prepare("INSERT INTO documents_fts (rowid, title, body) VALUES (?, ?, ?)").run(h.id,k,n);else{let b=Number(g.prepare(`INSERT INTO documents (source, root_id, root_path, ref, file_path,
|
|
49
|
+
title, iso_date, mtime_ms, indexed_at)
|
|
50
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)`).run(a.source,a.rootId,a.rootPath,a.ref,a.absPath,k,m,d,p).lastInsertRowid);g.prepare("INSERT INTO documents_fts (rowid, title, body) VALUES (?, ?, ?)").run(b,k,n)}return!0}async function u(a){let b=await l();if(!b)return;let c=b.raw;c.prepare("DELETE FROM documents_fts WHERE rowid = ?").run(a),c.prepare("DELETE FROM documents WHERE id = ?").run(a)}async function v(a){let b=await l();if(!b)return 0;let c=b.raw,d=c.prepare("SELECT id, file_path FROM documents").all(),e=0;for(let b of d)!a.has(b.file_path)&&(c.prepare("DELETE FROM documents_fts WHERE rowid = ?").run(b.id),c.prepare("DELETE FROM documents WHERE id = ?").run(b.id),e++);return e}},58524:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{l:()=>s,p:()=>r});var e=c(73024),f=c(76760),g=c.n(f),h=c(71596),i=c(54136),j=c(13420),k=c(98028),l=c(9423),m=c(23766),n=a([j,k]);[j,k]=n.then?(await n)():n;let r=[{id:"system:memory-rollup",label:"Memory rollup",trigger:"weekly",run:o},{id:"system:sessions-index",label:"Index sessions for search",trigger:"hourly",run:q}],s={hourly:36e5,daily:864e5,weekly:6048e5};async function o(){let a=await (0,h.listRoots)().catch(()=>[]),b=[];for(let c of a){let a=await p(c).catch(()=>[]);b.push(...a)}if(b.length<4)return{ok:!0,detail:`${b.length} journal entries across all roots — skipping rollup (need ≥4).`};b.sort((a,b)=>a.date<b.date?1:-1);let c=b.slice(0,60),d=["You're summarising the user's last 7 days from their journal entries across every Reflex Space.",`Output STRICT plain text. ≤25 lines. One fact per line, third-person about the user.`,`Cover: recurring themes, mood arc, unresolved threads, notable wins. Quote the user's own phrasing for one or two themes — sparingly. No greetings, no markdown headers, no preamble — straight into the bullets.`,"If the entries don't span 7 days yet, summarise what's there honestly.","","## Journal entries (newest first)",...c.map(a=>{var b,c;return`### ${a.date} \xb7 ${a.rootName} \xb7 ${a.title}
|
|
51
|
+
${b=a.body,c=400,b.length<=400?b:b.slice(0,c)+"…"}`})].join("\n");try{let b=await (0,i.loadSettings)(),e=(await (0,j.quickComplete)(b.assignments.quick,d,{timeoutMs:9e4})??"").trim();if(!e)return{ok:!1,detail:"empty completion"};let f=e.split("\n").map(a=>a.trim()).filter(Boolean).slice(0,25).join("\n");return await (0,k.xP)({scope:"global"},"RECENT","replace",{content:f}),{ok:!0,detail:`rolled up ${c.length} entries from ${a.length} Spaces`}}catch(a){return{ok:!1,detail:a instanceof Error?a.message:String(a)}}}async function p(a){let b,c=g().join((0,m.FF)(a.path),"journal");try{b=(await e.promises.readdir(c)).filter(a=>a.toLowerCase().endsWith(".md"))}catch{return[]}b.sort().reverse(),b=b.slice(0,14);let d=g().basename(a.path)||a.id,f=[];for(let a of b)try{let b=await e.promises.readFile(g().join(c,a),"utf8"),{title:h,date:i,body:j}=function(a){let b=/^---\n([\s\S]*?)\n---\n?([\s\S]*)$/.exec(a);if(!b)return{body:a.trim()};let c=b[1],d=b[2].trim(),e=/^title:\s*(.+)$/m.exec(c)?.[1]?.replace(/^"|"$/g,""),f=/^date:\s*(.+)$/m.exec(c)?.[1]?.replace(/^"|"$/g,"");return{...e?{title:e.trim()}:{},...f?{date:f.trim()}:{},body:d}}(b);f.push({rootName:d,date:i??function(a){let b=/^(\d{4}-\d{2}-\d{2})/.exec(a);return b?b[1]:null}(a)??"",title:h??a,body:j})}catch{}return f}async function q(){try{let a=await (0,l.tH)();return{ok:!0,detail:`scanned ${a.scanned}, upserted ${a.upserted}, removed ${a.removed}`}}catch(a){return{ok:!1,detail:a instanceof Error?a.message:String(a)}}}d()}catch(a){d(a)}})},71353:(a,b,c)=>{c.a(a,async(a,d)=>{try{c.d(b,{startScheduler:()=>k});var e=c(71596),f=c(58165),g=c(66676),h=c(58524),i=c(78711),j=a([g,h]);[g,h]=j.then?(await j)():j;let q={manual:null,hourly:36e5,daily:864e5,weekly:6048e5},r="workflow-scheduler";function k(){let a=(0,i.backgroundRuntime)();if(a.has(r))return;let b={running:!1,lastFired:new Map};a.register({id:r,intervalMs:6e4,run:()=>l(b)})}async function l(a){if(!a.running){a.running=!0;try{for(let b of(await (0,e.listRoots)().catch(()=>[])))try{await n(a,b)}catch(a){console.error(`[scheduler] root ${b.id} failed: ${a instanceof Error?a.message:String(a)}`)}await m(a);try{let{compactDispatcherIfIdle:a}=await c.e(302).then(c.bind(c,60302));await a()}catch(a){console.error(`[scheduler] dispatcher compaction failed: ${a instanceof Error?a.message:String(a)}`)}}finally{a.running=!1}}}async function m(a){for(let b of h.p){let c=h.l[b.trigger];if(!c)continue;let d=`__system__::${b.id}`,e=a.lastFired.get(d)??null;if(!(null!==e&&Date.now()-e<c)){a.lastFired.set(d,Date.now());try{let a=await b.run();!a.ok&&a.detail&&console.warn(`[scheduler] ${b.id} returned non-ok: ${a.detail}`)}catch(a){console.error(`[scheduler] ${b.id} failed: ${a instanceof Error?a.message:String(a)}`)}}}}async function n(a,b){let c=await (0,f.listWorkflows)(b.path).catch(()=>[]),d=await p(b.id);for(let f of function(a,b){let c=new Set(a.map(a=>a.id));return[...a,...b.filter(a=>!c.has(a.id))]}(c,d)){var e,h;let c=q[f.trigger];if(!c||!1===f.enabled)continue;let d=(e=b.id,h=f.id,`${e}::${h}`),i=a.lastFired.get(d)??await o(b.path,f.id);if(!(null!==i&&Date.now()-i<c)){a.lastFired.set(d,Date.now());try{await (0,g.runWorkflow)(b.id,f.id)}catch(a){console.error(`[scheduler] ${b.id}/${f.id} failed: ${a instanceof Error?a.message:String(a)}`)}}}}async function o(a,b){let c=await (0,f.v)(a,b,1).catch(()=>[]);if(0===c.length)return null;let d=Date.parse(c[0].startedAt);return Number.isFinite(d)?d:null}async function p(a){try{let{collectExtensions:b}=await Promise.resolve().then(c.bind(c,31150));return(await b({rootId:a})).workflows??[]}catch{return[]}}d()}catch(a){d(a)}})},78711:(a,b,c)=>{c.d(b,{backgroundRuntime:()=>e});class d{register(a){if(this.jobs.has(a.id))throw Error(`background job already registered: ${a.id}`);this.jobs.set(a.id,a)}seedLastRun(a,b){this.lastRun.set(a,b)}has(a){return this.jobs.has(a)}jobIds(){return[...this.jobs.keys()].sort()}async tickOnce(a){if(!this.ticking){this.ticking=!0;try{for(let b of this.jobs.values()){let c=this.lastRun.get(b.id);if(void 0===c||!(a-c<b.intervalMs)){this.lastRun.set(b.id,a);try{await b.run()}catch(a){console.error(`[background-runtime] job ${b.id} failed:`,a instanceof Error?a.message:a)}}}}finally{this.ticking=!1}}}start(a){this.timer||(this.timer=setInterval(()=>{this.tickOnce(Date.now())},a),this.timer.unref?.())}stop(){this.timer&&(clearInterval(this.timer),this.timer=null)}constructor(){this.jobs=new Map,this.lastRun=new Map,this.ticking=!1,this.timer=null}}function e(){return globalThis.__reflexBackgroundRuntime??=new d}}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";exports.id=1431,exports.ids=[1431],exports.modules={91431:(a,b,c)=>{c.d(b,{createTreeViewServices:()=>d.I});var d=c(55379);c(43283)}};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
exports.id=146,exports.ids=[146],exports.modules={428:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{decryptActionBoundArgs:function(){return s},encryptActionBoundArgs:function(){return r}}),c(5392);let d=c(54491),e=c(77630),f=c(57833),g=c(15808),h=c(63033),i=c(44113),j=function(a){return a&&a.__esModule?a:{default:a}}(c(34750)),k=new TextEncoder,l=new TextDecoder,m=void 0,n=void 0;async function o(a,b){let c=await (0,g.getActionEncryptionKey)();if(void 0===c)throw Object.defineProperty(Error("Missing encryption key for Server Action. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E65",enumerable:!1,configurable:!0});let d=atob(b),e=d.slice(0,16),f=d.slice(16),h=l.decode(await (0,g.decrypt)(c,(0,g.stringToUint8Array)(e),(0,g.stringToUint8Array)(f)));if(!h.startsWith(a))throw Object.defineProperty(Error("Invalid Server Action payload: failed to decrypt."),"__NEXT_ERROR_CODE",{value:"E191",enumerable:!1,configurable:!0});return h.slice(a.length)}async function p(a,b){let c=await (0,g.getActionEncryptionKey)();if(void 0===c)throw Object.defineProperty(Error("Missing encryption key for Server Action. This is a bug in Next.js"),"__NEXT_ERROR_CODE",{value:"E65",enumerable:!1,configurable:!0});let d=new Uint8Array(16);h.workUnitAsyncStorage.exit(()=>crypto.getRandomValues(d));let e=(0,g.arrayBufferToString)(d.buffer),f=await (0,g.encrypt)(c,d,k.encode(a+b));return btoa(e+(0,g.arrayBufferToString)(f))}var q=function(a){return a[a.Ready=0]="Ready",a[a.Pending=1]="Pending",a[a.Complete=2]="Complete",a}(q||{});let r=j.default.cache(async function a(b,...c){let e=h.workUnitAsyncStorage.getStore(),j=e?(0,h.getCacheSignal)(e):void 0,{clientModules:k}=(0,g.getClientReferenceManifestForRsc)(),l=Error();Error.captureStackTrace(l,a);let n=!1,o=e?(0,i.createHangingInputAbortSignal)(e):void 0,q=0;function r(){0===q&&(q=1,null==j||j.beginRead())}function s(){1===q&&(null==j||j.endRead()),q=2}o&&j&&o.addEventListener("abort",r,{once:!0});let t=await (0,f.streamToString)((0,d.renderToReadableStream)(c,k,{filterStackFrame:m,signal:o,onError(a){(null==o||!o.aborted)&&(n||(n=!0,l.message=a instanceof Error?a.message:String(a)))}}),o);if(n)throw s(),l;if(!e)return p(b,t);r();let u=(0,h.getPrerenderResumeDataCache)(e),v=(0,h.getRenderResumeDataCache)(e),w=b+t,x=(null==u?void 0:u.encryptedBoundArgs.get(w))??(null==v?void 0:v.encryptedBoundArgs.get(w));if(x)return x;let y=await p(b,t);return s(),null==u||u.encryptedBoundArgs.set(w,y),y});async function s(a,b){let c,d=await b,f=h.workUnitAsyncStorage.getStore();if(f){let b=(0,h.getCacheSignal)(f),e=(0,h.getPrerenderResumeDataCache)(f),g=(0,h.getRenderResumeDataCache)(f);(c=(null==e?void 0:e.decryptedBoundArgs.get(d))??(null==g?void 0:g.decryptedBoundArgs.get(d)))||(null==b||b.beginRead(),c=await o(a,d),null==b||b.endRead(),null==e||e.decryptedBoundArgs.set(d,c))}else c=await o(a,d);let{edgeRscModuleMapping:i,rscModuleMapping:j}=(0,g.getClientReferenceManifestForRsc)();return await (0,e.createFromReadableStream)(new ReadableStream({start(a){switch(a.enqueue(k.encode(c)),null==f?void 0:f.type){case"prerender":case"prerender-runtime":f.renderSignal.aborted?a.close():f.renderSignal.addEventListener("abort",()=>a.close(),{once:!0});break;case"prerender-client":case"prerender-ppr":case"prerender-legacy":case"request":case"cache":case"private-cache":case"unstable-cache":case void 0:return a.close()}}}),{findSourceMapURL:n,serverConsumerManifest:{moduleLoading:null,moduleMap:j,serverModuleMap:(0,g.getServerModuleMap)()}})}},4734:(a,b,c)=>{"use strict";function d(a){throw Object.defineProperty(Error("cacheLife() is only available with the experimental.useCache config."),"__NEXT_ERROR_CODE",{value:"E627",enumerable:!1,configurable:!0})}Object.defineProperty(b,"F",{enumerable:!0,get:function(){return d}}),c(29294),c(63033)},6382:(a,b,c)=>{"use strict";function d(){throw Object.defineProperty(Error("cacheTag() is only available with the experimental.useCache config."),"__NEXT_ERROR_CODE",{value:"E628",enumerable:!1,configurable:!0})}Object.defineProperty(b,"z",{enumerable:!0,get:function(){return d}}),c(63033),c(18505)},13644:(a,b)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{getSortedRouteObjects:function(){return e},getSortedRoutes:function(){return d}});class c{insert(a){this._insert(a.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(a){void 0===a&&(a="/");let b=[...this.children.keys()].sort();null!==this.slugName&&b.splice(b.indexOf("[]"),1),null!==this.restSlugName&&b.splice(b.indexOf("[...]"),1),null!==this.optionalRestSlugName&&b.splice(b.indexOf("[[...]]"),1);let c=b.map(b=>this.children.get(b)._smoosh(""+a+b+"/")).reduce((a,b)=>[...a,...b],[]);if(null!==this.slugName&&c.push(...this.children.get("[]")._smoosh(a+"["+this.slugName+"]/")),!this.placeholder){let b="/"===a?"/":a.slice(0,-1);if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot define a route with the same specificity as a optional catch-all route ("'+b+'" and "'+b+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});c.unshift(b)}return null!==this.restSlugName&&c.push(...this.children.get("[...]")._smoosh(a+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&c.push(...this.children.get("[[...]]")._smoosh(a+"[[..."+this.optionalRestSlugName+"]]/")),c}_insert(a,b,d){if(0===a.length){this.placeholder=!1;return}if(d)throw Object.defineProperty(Error("Catch-all must be the last part of the URL."),"__NEXT_ERROR_CODE",{value:"E392",enumerable:!1,configurable:!0});let e=a[0];if(e.startsWith("[")&&e.endsWith("]")){let c=e.slice(1,-1),g=!1;if(c.startsWith("[")&&c.endsWith("]")&&(c=c.slice(1,-1),g=!0),c.startsWith("…"))throw Object.defineProperty(Error("Detected a three-dot character ('…') at ('"+c+"'). Did you mean ('...')?"),"__NEXT_ERROR_CODE",{value:"E147",enumerable:!1,configurable:!0});if(c.startsWith("...")&&(c=c.substring(3),d=!0),c.startsWith("[")||c.endsWith("]"))throw Object.defineProperty(Error("Segment names may not start or end with extra brackets ('"+c+"')."),"__NEXT_ERROR_CODE",{value:"E421",enumerable:!1,configurable:!0});if(c.startsWith("."))throw Object.defineProperty(Error("Segment names may not start with erroneous periods ('"+c+"')."),"__NEXT_ERROR_CODE",{value:"E288",enumerable:!1,configurable:!0});function f(a,c){if(null!==a&&a!==c)throw Object.defineProperty(Error("You cannot use different slug names for the same dynamic path ('"+a+"' !== '"+c+"')."),"__NEXT_ERROR_CODE",{value:"E337",enumerable:!1,configurable:!0});b.forEach(a=>{if(a===c)throw Object.defineProperty(Error('You cannot have the same slug name "'+c+'" repeat within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E247",enumerable:!1,configurable:!0});if(a.replace(/\W/g,"")===e.replace(/\W/g,""))throw Object.defineProperty(Error('You cannot have the slug names "'+a+'" and "'+c+'" differ only by non-word symbols within a single dynamic path'),"__NEXT_ERROR_CODE",{value:"E499",enumerable:!1,configurable:!0})}),b.push(c)}if(d)if(g){if(null!=this.restSlugName)throw Object.defineProperty(Error('You cannot use both an required and optional catch-all route at the same level ("[...'+this.restSlugName+']" and "'+a[0]+'" ).'),"__NEXT_ERROR_CODE",{value:"E299",enumerable:!1,configurable:!0});f(this.optionalRestSlugName,c),this.optionalRestSlugName=c,e="[[...]]"}else{if(null!=this.optionalRestSlugName)throw Object.defineProperty(Error('You cannot use both an optional and required catch-all route at the same level ("[[...'+this.optionalRestSlugName+']]" and "'+a[0]+'").'),"__NEXT_ERROR_CODE",{value:"E300",enumerable:!1,configurable:!0});f(this.restSlugName,c),this.restSlugName=c,e="[...]"}else{if(g)throw Object.defineProperty(Error('Optional route parameters are not yet supported ("'+a[0]+'").'),"__NEXT_ERROR_CODE",{value:"E435",enumerable:!1,configurable:!0});f(this.slugName,c),this.slugName=c,e="[]"}}this.children.has(e)||this.children.set(e,new c),this.children.get(e)._insert(a.slice(1),b,d)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}function d(a){let b=new c;return a.forEach(a=>b.insert(a)),b.smoosh()}function e(a,b){let c={},e=[];for(let d=0;d<a.length;d++){let f=b(a[d]);c[f]=d,e[d]=f}return d(e).map(b=>a[c[b]])}},23401:(a,b,c)=>{let d={unstable_cache:c(38636).e,revalidateTag:c(93868).revalidateTag,revalidatePath:c(93868).revalidatePath,unstable_expireTag:c(93868).unstable_expireTag,unstable_expirePath:c(93868).unstable_expirePath,unstable_noStore:c(77915).M,unstable_cacheLife:c(4734).F,unstable_cacheTag:c(6382).z};a.exports=d,b.unstable_cache=d.unstable_cache,b.revalidatePath=d.revalidatePath,b.revalidateTag=d.revalidateTag,b.unstable_expireTag=d.unstable_expireTag,b.unstable_expirePath=d.unstable_expirePath,b.unstable_noStore=d.unstable_noStore,b.unstable_cacheLife=d.unstable_cacheLife,b.unstable_cacheTag=d.unstable_cacheTag},31776:(a,b,c)=>{"use strict";Object.defineProperty(b,"A",{enumerable:!0,get:function(){return d.registerServerReference}});let d=c(54491)},38636:(a,b,c)=>{"use strict";Object.defineProperty(b,"e",{enumerable:!0,get:function(){return k}});let d=c(80269),e=c(18505),f=c(29294),g=c(63033),h=c(53875),i=0;async function j(a,b,c,e,f,g,i){await b.set(c,{kind:h.CachedRouteKind.FETCH,data:{headers:{},body:JSON.stringify(a),status:200,url:""},revalidate:"number"!=typeof f?d.CACHE_ONE_YEAR:f},{fetchCache:!0,tags:e,fetchIdx:g,fetchUrl:i})}function k(a,b,c={}){if(0===c.revalidate)throw Object.defineProperty(Error(`Invariant revalidate: 0 can not be passed to unstable_cache(), must be "false" or "> 0" ${a.toString()}`),"__NEXT_ERROR_CODE",{value:"E57",enumerable:!1,configurable:!0});let d=c.tags?(0,e.validateTags)(c.tags,`unstable_cache ${a.toString()}`):[];(0,e.validateRevalidate)(c.revalidate,`unstable_cache ${a.name||a.toString()}`);let l=`${a.toString()}-${Array.isArray(b)&&b.join(",")}`;return async(...b)=>{let e=f.workAsyncStorage.getStore(),k=g.workUnitAsyncStorage.getStore(),m=(null==e?void 0:e.incrementalCache)||globalThis.__incrementalCache;if(!m)throw Object.defineProperty(Error(`Invariant: incrementalCache missing in unstable_cache ${a.toString()}`),"__NEXT_ERROR_CODE",{value:"E469",enumerable:!1,configurable:!0});let n=k?(0,g.getCacheSignal)(k):null;n&&n.beginRead();try{let f=e&&k?function(a,b){switch(b.type){case"request":let c=b.url.pathname,d=new URLSearchParams(b.url.search),e=[...d.keys()].sort((a,b)=>a.localeCompare(b)).map(a=>`${a}=${d.get(a)}`).join("&");return`${c}${e.length?"?":""}${e}`;case"prerender":case"prerender-client":case"prerender-runtime":case"prerender-ppr":case"prerender-legacy":case"cache":case"private-cache":case"unstable-cache":return a.route;default:return b}}(e,k):"",n=`${l}-${JSON.stringify(b)}`,o=await m.generateCacheKey(n),p=`unstable_cache ${f} ${a.name?` ${a.name}`:o}`,q=(e?e.nextFetchId:i)??1,r=null==k?void 0:k.implicitTags,s={type:"unstable-cache",phase:"render",implicitTags:r,draftMode:k&&e&&(0,g.getDraftModeProviderForCacheScope)(e,k)};if(e){e.nextFetchId=q+1;let f=!1;if(k)switch(k.type){case"cache":case"private-cache":case"prerender":case"prerender-runtime":case"prerender-ppr":case"prerender-legacy":"number"==typeof c.revalidate&&(k.revalidate<c.revalidate||(k.revalidate=c.revalidate));let i=k.tags;if(null===i)k.tags=d.slice();else for(let a of d)i.includes(a)||i.push(a);break;case"unstable-cache":f=!0}if(!f&&"force-no-store"!==e.fetchCache&&!e.isOnDemandRevalidate&&!m.isOnDemandRevalidate&&!e.isDraftMode){let f=await m.get(o,{kind:h.IncrementalCacheKind.FETCH,revalidate:c.revalidate,tags:d,softTags:null==r?void 0:r.tags,fetchIdx:q,fetchUrl:p});if(f&&f.value)if(f.value.kind!==h.CachedRouteKind.FETCH)console.error(`Invariant invalid cacheEntry returned for ${n}`);else{let h=void 0!==f.value.data.body?JSON.parse(f.value.data.body):void 0;if(f.isStale){if(e.pendingRevalidates||(e.pendingRevalidates={}),!e.pendingRevalidates[n]){let f=g.workUnitAsyncStorage.run(s,a,...b).then(async a=>(await j(a,m,o,d,c.revalidate,q,p),a)).catch(a=>(console.error(`revalidating cache with key: ${n}`,a),h));e.isRevalidate&&f.catch(()=>{}),e.pendingRevalidates[n]=f}if(e.isRevalidate)return e.pendingRevalidates[n]}return h}}let l=await g.workUnitAsyncStorage.run(s,a,...b);return e.isDraftMode||(e.pendingRevalidates||(e.pendingRevalidates={}),e.pendingRevalidates[n]=j(l,m,o,d,c.revalidate,q,p)),l}{if(i+=1,!m.isOnDemandRevalidate){let a=await m.get(o,{kind:h.IncrementalCacheKind.FETCH,revalidate:c.revalidate,tags:d,fetchIdx:q,fetchUrl:p,softTags:null==r?void 0:r.tags});if(a&&a.value){if(a.value.kind!==h.CachedRouteKind.FETCH)console.error(`Invariant invalid cacheEntry returned for ${n}`);else if(!a.isStale)return void 0!==a.value.data.body?JSON.parse(a.value.data.body):void 0}}let e=await g.workUnitAsyncStorage.run(s,a,...b);return await j(e,m,o,d,c.revalidate,q,p),e}}finally{n&&n.endRead()}}}},63430:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{getSortedRouteObjects:function(){return d.getSortedRouteObjects},getSortedRoutes:function(){return d.getSortedRoutes},isDynamicRoute:function(){return e.isDynamicRoute}});let d=c(13644),e=c(84832)},77915:(a,b,c)=>{"use strict";Object.defineProperty(b,"M",{enumerable:!0,get:function(){return g}});let d=c(29294),e=c(63033),f=c(44113);function g(){let a=d.workAsyncStorage.getStore(),b=e.workUnitAsyncStorage.getStore();if(a){if(!a.forceStatic){if(a.isUnstableNoStore=!0,b)switch(b.type){case"prerender":case"prerender-client":case"prerender-runtime":return}(0,f.markCurrentScopeAsDynamic)(a,b,"unstable_noStore()")}}}},84832:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),Object.defineProperty(b,"isDynamicRoute",{enumerable:!0,get:function(){return g}});let d=c(8855),e=/\/[^/]*\[[^/]+\][^/]*(?=\/|$)/,f=/\/\[[^/]+\](?=\/|$)/;function g(a,b){return(void 0===b&&(b=!0),(0,d.isInterceptionRouteAppPath)(a)&&(a=(0,d.extractInterceptionRouteInformation)(a).interceptedRoute),b)?f.test(a):e.test(a)}},93868:(a,b,c)=>{"use strict";Object.defineProperty(b,"__esModule",{value:!0}),!function(a,b){for(var c in b)Object.defineProperty(a,c,{enumerable:!0,get:b[c]})}(b,{revalidatePath:function(){return n},revalidateTag:function(){return k},unstable_expirePath:function(){return l},unstable_expireTag:function(){return m}});let d=c(44113),e=c(63430),f=c(80269),g=c(29294),h=c(63033),i=c(43909),j=c(32839);function k(a){return o([a],`revalidateTag ${a}`)}function l(a,b){if(a.length>f.NEXT_CACHE_SOFT_TAG_MAX_LENGTH)return void console.warn(`Warning: expirePath received "${a}" which exceeded max length of ${f.NEXT_CACHE_SOFT_TAG_MAX_LENGTH}. See more info here https://nextjs.org/docs/app/api-reference/functions/unstable_expirePath`);let c=`${f.NEXT_CACHE_IMPLICIT_TAG_ID}${a}`;return b?c+=`${c.endsWith("/")?"":"/"}${b}`:(0,e.isDynamicRoute)(a)&&console.warn(`Warning: a dynamic page path "${a}" was passed to "expirePath", but the "type" parameter is missing. This has no effect by default, see more info here https://nextjs.org/docs/app/api-reference/functions/unstable_expirePath`),o([c],`unstable_expirePath ${a}`)}function m(...a){return o(a,`unstable_expireTag ${a.join(", ")}`)}function n(a,b){if(a.length>f.NEXT_CACHE_SOFT_TAG_MAX_LENGTH)return void console.warn(`Warning: revalidatePath received "${a}" which exceeded max length of ${f.NEXT_CACHE_SOFT_TAG_MAX_LENGTH}. See more info here https://nextjs.org/docs/app/api-reference/functions/revalidatePath`);let c=`${f.NEXT_CACHE_IMPLICIT_TAG_ID}${a}`;return b?c+=`${c.endsWith("/")?"":"/"}${b}`:(0,e.isDynamicRoute)(a)&&console.warn(`Warning: a dynamic page path "${a}" was passed to "revalidatePath", but the "type" parameter is missing. This has no effect by default, see more info here https://nextjs.org/docs/app/api-reference/functions/revalidatePath`),o([c],`revalidatePath ${a}`)}function o(a,b){let c=g.workAsyncStorage.getStore();if(!c||!c.incrementalCache)throw Object.defineProperty(Error(`Invariant: static generation store missing in ${b}`),"__NEXT_ERROR_CODE",{value:"E263",enumerable:!1,configurable:!0});let e=h.workUnitAsyncStorage.getStore();if(e){if("render"===e.phase)throw Object.defineProperty(Error(`Route ${c.route} used "${b}" during render which is unsupported. To ensure revalidation is performed consistently it must always happen outside of renders and cached functions. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E7",enumerable:!1,configurable:!0});switch(e.type){case"cache":case"private-cache":throw Object.defineProperty(Error(`Route ${c.route} used "${b}" inside a "use cache" which is unsupported. To ensure revalidation is performed consistently it must always happen outside of renders and cached functions. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E181",enumerable:!1,configurable:!0});case"unstable-cache":throw Object.defineProperty(Error(`Route ${c.route} used "${b}" inside a function cached with "unstable_cache(...)" which is unsupported. To ensure revalidation is performed consistently it must always happen outside of renders and cached functions. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`),"__NEXT_ERROR_CODE",{value:"E306",enumerable:!1,configurable:!0});case"prerender":case"prerender-runtime":let a=Object.defineProperty(Error(`Route ${c.route} used ${b} without first calling \`await connection()\`.`),"__NEXT_ERROR_CODE",{value:"E406",enumerable:!1,configurable:!0});return(0,d.abortAndThrowOnSynchronousRequestDataAccess)(c.route,b,a,e);case"prerender-client":throw Object.defineProperty(new j.InvariantError(`${b} must not be used within a client component. Next.js should be preventing ${b} from being included in client components statically, but did not in this case.`),"__NEXT_ERROR_CODE",{value:"E693",enumerable:!1,configurable:!0});case"prerender-ppr":return(0,d.postponeWithTracking)(c.route,b,e.dynamicTracking);case"prerender-legacy":e.revalidate=0;let f=Object.defineProperty(new i.DynamicServerError(`Route ${c.route} couldn't be rendered statically because it used \`${b}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`),"__NEXT_ERROR_CODE",{value:"E558",enumerable:!1,configurable:!0});throw c.dynamicUsageDescription=b,c.dynamicUsageStack=f.stack,f}}for(let b of(c.pendingRevalidatedTags||(c.pendingRevalidatedTags=[]),a))c.pendingRevalidatedTags.includes(b)||c.pendingRevalidatedTags.push(b);c.pathWasRevalidated=!0}},97364:(a,b)=>{"use strict";function c(a){for(let b=0;b<a.length;b++){let c=a[b];if("function"!=typeof c)throw Object.defineProperty(Error(`A "use server" file can only export async functions, found ${typeof c}.
|
|
2
|
+
Read more: https://nextjs.org/docs/messages/invalid-use-server-value`),"__NEXT_ERROR_CODE",{value:"E352",enumerable:!1,configurable:!0})}}Object.defineProperty(b,"D",{enumerable:!0,get:function(){return c}})}};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";exports.id=1491,exports.ids=[1491],exports.modules={3494:(a,b,c)=>{c.d(b,{A:()=>f});var d=c(24613),e=c(14861),f=(0,d.K2)((a,b)=>{let c;return"sandbox"===b&&(c=(0,e.Ltv)("#i"+a)),("sandbox"===b?(0,e.Ltv)(c.nodes()[0].contentDocument.body):(0,e.Ltv)("body")).select(`[id="${a}"]`)},"getDiagramElement")},31491:(a,b,c)=>{c.d(b,{diagram:()=>p});var d=c(3494),e=c(53765),f=c(43358);c(88123),c(73064),c(84976),c(34721),c(38033),c(88745);var g=c(28056),h=c(6850),i=c(24613),j=function(){var a=(0,i.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[1,3],c=[1,4],d=[1,5],e=[1,6],f=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],g=[1,22],h=[2,7],j=[1,26],k=[1,27],l=[1,28],m=[1,29],n=[1,33],o=[1,34],p=[1,35],q=[1,36],r=[1,37],s=[1,38],t=[1,24],u=[1,31],v=[1,32],w=[1,30],x=[1,39],y=[1,40],z=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],A=[1,61],B=[89,90],C=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],D=[27,29],E=[1,70],F=[1,71],G=[1,72],H=[1,73],I=[1,74],J=[1,75],K=[1,76],L=[1,83],M=[1,80],N=[1,84],O=[1,85],P=[1,86],Q=[1,87],R=[1,88],S=[1,89],T=[1,90],U=[1,91],V=[1,92],W=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],X=[63,64],Y=[1,101],Z=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],$=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],_=[1,110],aa=[1,106],ab=[1,107],ac=[1,108],ad=[1,109],ae=[1,111],af=[1,116],ag=[1,117],ah=[1,114],ai=[1,115],aj={trace:(0,i.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:(0,i.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 4:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 5:case 6:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:d.setDirection("TB");break;case 18:d.setDirection("BT");break;case 19:d.setDirection("RL");break;case 20:d.setDirection("LR");break;case 21:d.addRequirement(f[h-3],f[h-4]);break;case 22:d.addRequirement(f[h-5],f[h-6]),d.setClass([f[h-5]],f[h-3]);break;case 23:d.setNewReqId(f[h-2]);break;case 24:d.setNewReqText(f[h-2]);break;case 25:d.setNewReqRisk(f[h-2]);break;case 26:d.setNewReqVerifyMethod(f[h-2]);break;case 29:this.$=d.RequirementType.REQUIREMENT;break;case 30:this.$=d.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=d.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=d.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=d.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=d.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=d.RiskLevel.LOW_RISK;break;case 36:this.$=d.RiskLevel.MED_RISK;break;case 37:this.$=d.RiskLevel.HIGH_RISK;break;case 38:this.$=d.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=d.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=d.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=d.VerifyType.VERIFY_TEST;break;case 42:d.addElement(f[h-3]);break;case 43:d.addElement(f[h-5]),d.setClass([f[h-5]],f[h-3]);break;case 44:d.setNewElementType(f[h-2]);break;case 45:d.setNewElementDocRef(f[h-2]);break;case 48:d.addRelationship(f[h-2],f[h],f[h-4]);break;case 49:d.addRelationship(f[h-2],f[h-4],f[h]);break;case 50:this.$=d.Relationships.CONTAINS;break;case 51:this.$=d.Relationships.COPIES;break;case 52:this.$=d.Relationships.DERIVES;break;case 53:this.$=d.Relationships.SATISFIES;break;case 54:this.$=d.Relationships.VERIFIES;break;case 55:this.$=d.Relationships.REFINES;break;case 56:this.$=d.Relationships.TRACES;break;case 57:this.$=f[h-2],d.defineClass(f[h-1],f[h]);break;case 58:d.setClass(f[h-1],f[h]);break;case 59:d.setClass([f[h-2]],f[h]);break;case 60:case 62:case 65:this.$=[f[h]];break;case 61:case 63:this.$=f[h-2].concat([f[h]]);break;case 64:this.$=f[h-2],d.setCssStyle(f[h-1],f[h]);break;case 66:f[h-2].push(f[h]),this.$=f[h-2];break;case 68:this.$=f[h-1]+f[h]}},"anonymous"),table:[{3:1,4:2,6:b,9:c,11:d,13:e},{1:[3]},{3:8,4:2,5:[1,7],6:b,9:c,11:d,13:e},{5:[1,9]},{10:[1,10]},{12:[1,11]},a(f,[2,6]),{3:12,4:2,6:b,9:c,11:d,13:e},{1:[2,2]},{4:17,5:g,7:13,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},a(f,[2,4]),a(f,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:g,7:42,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:g,7:43,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:g,7:44,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:g,7:45,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:g,7:46,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:g,7:47,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:g,7:48,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:g,7:49,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{4:17,5:g,7:50,8:h,9:c,11:d,13:e,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:j,22:k,23:l,24:m,25:23,33:25,41:n,42:o,43:p,44:q,45:r,46:s,54:t,72:u,74:v,77:w,89:x,90:y},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},a(z,[2,17]),a(z,[2,18]),a(z,[2,19]),a(z,[2,20]),{30:60,33:62,75:A,89:x,90:y},{30:63,33:62,75:A,89:x,90:y},{30:64,33:62,75:A,89:x,90:y},a(B,[2,29]),a(B,[2,30]),a(B,[2,31]),a(B,[2,32]),a(B,[2,33]),a(B,[2,34]),a(C,[2,81]),a(C,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},a(D,[2,79]),a(D,[2,80]),{27:[1,67],29:[1,68]},a(D,[2,85]),a(D,[2,86]),{62:69,65:E,66:F,67:G,68:H,69:I,70:J,71:K},{62:77,65:E,66:F,67:G,68:H,69:I,70:J,71:K},{30:78,33:62,75:A,89:x,90:y},{73:79,75:L,76:M,78:81,79:82,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V},a(W,[2,60]),a(W,[2,62]),{73:93,75:L,76:M,78:81,79:82,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V},{30:94,33:62,75:A,76:M,89:x,90:y},{5:[1,95]},{30:96,33:62,75:A,89:x,90:y},{5:[1,97]},{30:98,33:62,75:A,89:x,90:y},{63:[1,99]},a(X,[2,50]),a(X,[2,51]),a(X,[2,52]),a(X,[2,53]),a(X,[2,54]),a(X,[2,55]),a(X,[2,56]),{64:[1,100]},a(z,[2,59],{76:M}),a(z,[2,64],{76:Y}),{33:103,75:[1,102],89:x,90:y},a(Z,[2,65],{79:104,75:L,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V}),a($,[2,67]),a($,[2,69]),a($,[2,70]),a($,[2,71]),a($,[2,72]),a($,[2,73]),a($,[2,74]),a($,[2,75]),a($,[2,76]),a($,[2,77]),a($,[2,78]),a(z,[2,57],{76:Y}),a(z,[2,58],{76:M}),{5:_,28:105,31:aa,34:ab,36:ac,38:ad,40:ae},{27:[1,112],76:M},{5:af,40:ag,56:113,57:ah,59:ai},{27:[1,118],76:M},{33:119,89:x,90:y},{33:120,89:x,90:y},{75:L,78:121,79:82,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V},a(W,[2,61]),a(W,[2,63]),a($,[2,68]),a(z,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:_,28:126,31:aa,34:ab,36:ac,38:ad,40:ae},a(z,[2,28]),{5:[1,127]},a(z,[2,42]),{32:[1,128]},{32:[1,129]},{5:af,40:ag,56:130,57:ah,59:ai},a(z,[2,47]),{5:[1,131]},a(z,[2,48]),a(z,[2,49]),a(Z,[2,66],{79:104,75:L,80:N,81:O,82:P,83:Q,84:R,85:S,86:T,87:U,88:V}),{33:132,89:x,90:y},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},a(z,[2,27]),{5:_,28:145,31:aa,34:ab,36:ac,38:ad,40:ae},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},a(z,[2,46]),{5:af,40:ag,56:152,57:ah,59:ai},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},a(z,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},a(z,[2,43]),{5:_,28:159,31:aa,34:ab,36:ac,38:ad,40:ae},{5:_,28:160,31:aa,34:ab,36:ac,38:ad,40:ae},{5:_,28:161,31:aa,34:ab,36:ac,38:ad,40:ae},{5:_,28:162,31:aa,34:ab,36:ac,38:ad,40:ae},{5:af,40:ag,56:163,57:ah,59:ai},{5:af,40:ag,56:164,57:ah,59:ai},a(z,[2,23]),a(z,[2,24]),a(z,[2,25]),a(z,[2,26]),a(z,[2,44]),a(z,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:(0,i.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,i.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],g=this.table,h="",j=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,i.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,i.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=g[v]&&g[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],g[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,h=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[h,k,j,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=g[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function ak(){this.yy={}}return aj.lexer={EOF:1,parseError:(0,i.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,i.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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:(0,i.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,i.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=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===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,i.K2)(function(){return this._more=!0,this},"more"),reject:(0,i.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,i.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,i.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,i.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,i.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,i.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,i.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,i.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,i.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,i.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,i.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,i.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,i.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,i.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,i.K2)(function(a,b,c,d){switch(c){case 0:return"title";case 1:return this.begin("acc_title"),9;case 2:return this.popState(),"acc_title_value";case 3:return this.begin("acc_descr"),11;case 4:return this.popState(),"acc_descr_value";case 5:this.begin("acc_descr_multiline");break;case 6:case 58:case 65:this.popState();break;case 7:return"acc_descr_multiline_value";case 8:return 21;case 9:return 22;case 10:return 23;case 11:return 24;case 12:return 5;case 13:case 14:case 15:case 56:break;case 16:return 8;case 17:return 6;case 18:return 27;case 19:return 40;case 20:return 29;case 21:return 32;case 22:return 31;case 23:return 34;case 24:return 36;case 25:return 38;case 26:return 41;case 27:return 42;case 28:return 43;case 29:return 44;case 30:return 45;case 31:return 46;case 32:return 47;case 33:return 48;case 34:return 49;case 35:return 50;case 36:return 51;case 37:return 52;case 38:return 53;case 39:return 54;case 40:return 65;case 41:return 66;case 42:return 67;case 43:return 68;case 44:return 69;case 45:return 70;case 46:return 71;case 47:return 57;case 48:return 59;case 49:return this.begin("style"),77;case 50:case 68:return 75;case 51:return 81;case 52:return 88;case 53:return"PERCENT";case 54:return 86;case 55:return 84;case 57:case 64:this.begin("string");break;case 59:return this.begin("style"),72;case 60:return this.begin("style"),74;case 61:return 61;case 62:return 64;case 63:return 63;case 66:return"qString";case 67:return b.yytext=b.yytext.trim(),89;case 69:return 80;case 70:return 76}},"anonymous"),rules:[/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:.*direction\s+TB[^\n]*)/i,/^(?:.*direction\s+BT[^\n]*)/i,/^(?:.*direction\s+RL[^\n]*)/i,/^(?:.*direction\s+LR[^\n]*)/i,/^(?:(\r?\n)+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\b)/i,/^(?:\{)/i,/^(?:\})/i,/^(?::{3})/i,/^(?::)/i,/^(?:id\b)/i,/^(?:text\b)/i,/^(?:risk\b)/i,/^(?:verifyMethod\b)/i,/^(?:requirement\b)/i,/^(?:functionalRequirement\b)/i,/^(?:interfaceRequirement\b)/i,/^(?:performanceRequirement\b)/i,/^(?:physicalRequirement\b)/i,/^(?:designConstraint\b)/i,/^(?:low\b)/i,/^(?:medium\b)/i,/^(?:high\b)/i,/^(?:analysis\b)/i,/^(?:demonstration\b)/i,/^(?:inspection\b)/i,/^(?:test\b)/i,/^(?:element\b)/i,/^(?:contains\b)/i,/^(?:copies\b)/i,/^(?:derives\b)/i,/^(?:satisfies\b)/i,/^(?:verifies\b)/i,/^(?:refines\b)/i,/^(?:traces\b)/i,/^(?:type\b)/i,/^(?:docref\b)/i,/^(?:style\b)/i,/^(?:\w+)/i,/^(?::)/i,/^(?:;)/i,/^(?:%)/i,/^(?:-)/i,/^(?:#)/i,/^(?: )/i,/^(?:["])/i,/^(?:\n)/i,/^(?:classDef\b)/i,/^(?:class\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:[\w][^:,\r\n\{\<\>\-\=]*)/i,/^(?:\w+)/i,/^(?:[0-9]+)/i,/^(?:,)/i],conditions:{acc_descr_multiline:{rules:[6,7,68,69,70],inclusive:!1},acc_descr:{rules:[4,68,69,70],inclusive:!1},acc_title:{rules:[2,68,69,70],inclusive:!1},style:{rules:[50,51,52,53,54,55,56,57,58,68,69,70],inclusive:!1},unqString:{rules:[68,69,70],inclusive:!1},token:{rules:[68,69,70],inclusive:!1},string:{rules:[65,66,68,69,70],inclusive:!1},INITIAL:{rules:[0,1,3,5,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,59,60,61,62,63,64,67,68,69,70],inclusive:!0}}},(0,i.K2)(ak,"Parser"),ak.prototype=aj,aj.Parser=ak,new ak}();j.parser=j;var k=class{constructor(){this.relations=[],this.latestRequirement=this.getInitialRequirement(),this.requirements=new Map,this.latestElement=this.getInitialElement(),this.elements=new Map,this.classes=new Map,this.direction="TB",this.RequirementType={REQUIREMENT:"Requirement",FUNCTIONAL_REQUIREMENT:"Functional Requirement",INTERFACE_REQUIREMENT:"Interface Requirement",PERFORMANCE_REQUIREMENT:"Performance Requirement",PHYSICAL_REQUIREMENT:"Physical Requirement",DESIGN_CONSTRAINT:"Design Constraint"},this.RiskLevel={LOW_RISK:"Low",MED_RISK:"Medium",HIGH_RISK:"High"},this.VerifyType={VERIFY_ANALYSIS:"Analysis",VERIFY_DEMONSTRATION:"Demonstration",VERIFY_INSPECTION:"Inspection",VERIFY_TEST:"Test"},this.Relationships={CONTAINS:"contains",COPIES:"copies",DERIVES:"derives",SATISFIES:"satisfies",VERIFIES:"verifies",REFINES:"refines",TRACES:"traces"},this.setAccTitle=h.SV,this.getAccTitle=h.iN,this.setAccDescription=h.EI,this.getAccDescription=h.m7,this.setDiagramTitle=h.ke,this.getDiagramTitle=h.ab,this.getConfig=(0,i.K2)(()=>(0,h.D7)().requirement,"getConfig"),this.clear(),this.setDirection=this.setDirection.bind(this),this.addRequirement=this.addRequirement.bind(this),this.setNewReqId=this.setNewReqId.bind(this),this.setNewReqRisk=this.setNewReqRisk.bind(this),this.setNewReqText=this.setNewReqText.bind(this),this.setNewReqVerifyMethod=this.setNewReqVerifyMethod.bind(this),this.addElement=this.addElement.bind(this),this.setNewElementType=this.setNewElementType.bind(this),this.setNewElementDocRef=this.setNewElementDocRef.bind(this),this.addRelationship=this.addRelationship.bind(this),this.setCssStyle=this.setCssStyle.bind(this),this.setClass=this.setClass.bind(this),this.defineClass=this.defineClass.bind(this),this.setAccTitle=this.setAccTitle.bind(this),this.setAccDescription=this.setAccDescription.bind(this)}static{(0,i.K2)(this,"RequirementDB")}getDirection(){return this.direction}setDirection(a){this.direction=a}resetLatestRequirement(){this.latestRequirement=this.getInitialRequirement()}resetLatestElement(){this.latestElement=this.getInitialElement()}getInitialRequirement(){return{requirementId:"",text:"",risk:"",verifyMethod:"",name:"",type:"",cssStyles:[],classes:["default"]}}getInitialElement(){return{name:"",type:"",docRef:"",cssStyles:[],classes:["default"]}}addRequirement(a,b){return this.requirements.has(a)||this.requirements.set(a,{name:a,type:b,requirementId:this.latestRequirement.requirementId,text:this.latestRequirement.text,risk:this.latestRequirement.risk,verifyMethod:this.latestRequirement.verifyMethod,cssStyles:[],classes:["default"]}),this.resetLatestRequirement(),this.requirements.get(a)}getRequirements(){return this.requirements}setNewReqId(a){void 0!==this.latestRequirement&&(this.latestRequirement.requirementId=a)}setNewReqText(a){void 0!==this.latestRequirement&&(this.latestRequirement.text=a)}setNewReqRisk(a){void 0!==this.latestRequirement&&(this.latestRequirement.risk=a)}setNewReqVerifyMethod(a){void 0!==this.latestRequirement&&(this.latestRequirement.verifyMethod=a)}addElement(a){return this.elements.has(a)||(this.elements.set(a,{name:a,type:this.latestElement.type,docRef:this.latestElement.docRef,cssStyles:[],classes:["default"]}),i.Rm.info("Added new element: ",a)),this.resetLatestElement(),this.elements.get(a)}getElements(){return this.elements}setNewElementType(a){void 0!==this.latestElement&&(this.latestElement.type=a)}setNewElementDocRef(a){void 0!==this.latestElement&&(this.latestElement.docRef=a)}addRelationship(a,b,c){this.relations.push({type:a,src:b,dst:c})}getRelationships(){return this.relations}clear(){this.relations=[],this.resetLatestRequirement(),this.requirements=new Map,this.resetLatestElement(),this.elements=new Map,this.classes=new Map,(0,h.IU)()}setCssStyle(a,b){for(let c of a){let a=this.requirements.get(c)??this.elements.get(c);if(!b||!a)return;for(let c of b)c.includes(",")?a.cssStyles.push(...c.split(",")):a.cssStyles.push(c)}}setClass(a,b){for(let c of a){let a=this.requirements.get(c)??this.elements.get(c);if(a)for(let c of b){a.classes.push(c);let b=this.classes.get(c)?.styles;b&&a.cssStyles.push(...b)}}}defineClass(a,b){for(let c of a){let a=this.classes.get(c);void 0===a&&(a={id:c,styles:[],textStyles:[]},this.classes.set(c,a)),b&&b.forEach(function(b){if(/color/.exec(b)){let c=b.replace("fill","bgFill");a.textStyles.push(c)}a.styles.push(b)}),this.requirements.forEach(a=>{a.classes.includes(c)&&a.cssStyles.push(...b.flatMap(a=>a.split(",")))}),this.elements.forEach(a=>{a.classes.includes(c)&&a.cssStyles.push(...b.flatMap(a=>a.split(",")))})}}getClasses(){return this.classes}getData(){let a=(0,h.D7)(),b=[],c=[];for(let c of this.requirements.values())c.id=c.name,c.cssStyles=c.cssStyles,c.cssClasses=c.classes.join(" "),c.shape="requirementBox",c.look=a.look,c.colorIndex=b.length,b.push(c);for(let c of this.elements.values())c.shape="requirementBox",c.look=a.look,c.id=c.name,c.cssStyles=c.cssStyles,c.cssClasses=c.classes.join(" "),c.colorIndex=b.length,b.push(c);for(let b of this.relations){let d=0,e=b.type===this.Relationships.CONTAINS,f={id:`${b.src}-${b.dst}-${d}`,start:this.requirements.get(b.src)?.name??this.elements.get(b.src)?.name,end:this.requirements.get(b.dst)?.name??this.elements.get(b.dst)?.name,label:`<<${b.type}>>`,classes:"relationshipLine",style:["fill:none",e?"":"stroke-dasharray: 10,7"],labelpos:"c",thickness:"normal",type:"normal",pattern:e?"normal":"dashed",arrowTypeStart:e?"requirement_contains":"",arrowTypeEnd:e?"":"requirement_arrow",look:a.look,labelType:"markdown"};c.push(f),d++}return{nodes:b,edges:c,other:{},config:a,direction:this.getDirection()}}},l=(0,i.K2)(a=>{let{themeVariables:b,look:c}=(0,h.zj)(),{bkgColorArray:d,borderColorArray:e}=b;if(!e?.length)return"";let f="";for(let b=0;b<a.THEME_COLOR_LIMIT;b++)f+=`
|
|
2
|
+
|
|
3
|
+
[data-look="${c}"][data-color-id="color-${b}"].node path {
|
|
4
|
+
stroke: ${e[b]};
|
|
5
|
+
fill: ${d?.length?d[b]:""};
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[data-look="${c}"][data-color-id="color-${b}"].node rect {
|
|
9
|
+
stroke: ${e[b]};
|
|
10
|
+
fill: ${d?.length?d[b]:""};
|
|
11
|
+
}
|
|
12
|
+
`;return f},"genColor"),m=(0,i.K2)(a=>{let{look:b,themeVariables:c}=(0,h.zj)(),{requirementEdgeLabelBackground:d}=c;return`
|
|
13
|
+
${l(a)}
|
|
14
|
+
marker {
|
|
15
|
+
fill: ${a.relationColor};
|
|
16
|
+
stroke: ${a.relationColor};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
marker.cross {
|
|
20
|
+
stroke: ${a.lineColor};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
svg {
|
|
24
|
+
font-family: ${a.fontFamily};
|
|
25
|
+
font-size: ${a.fontSize};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.reqBox {
|
|
29
|
+
fill: ${a.requirementBackground};
|
|
30
|
+
fill-opacity: 1.0;
|
|
31
|
+
stroke: ${a.requirementBorderColor};
|
|
32
|
+
stroke-width: ${a.requirementBorderSize};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.reqTitle, .reqLabel{
|
|
36
|
+
fill: ${a.requirementTextColor};
|
|
37
|
+
}
|
|
38
|
+
.reqLabelBox {
|
|
39
|
+
fill: ${a.relationLabelBackground};
|
|
40
|
+
fill-opacity: 1.0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.req-title-line {
|
|
44
|
+
stroke: ${a.requirementBorderColor};
|
|
45
|
+
stroke-width: ${a.requirementBorderSize};
|
|
46
|
+
}
|
|
47
|
+
.relationshipLine {
|
|
48
|
+
stroke: ${a.relationColor};
|
|
49
|
+
stroke-width: ${"neo"===b?a.strokeWidth:"1px"};
|
|
50
|
+
}
|
|
51
|
+
.relationshipLabel {
|
|
52
|
+
fill: ${a.relationLabelColor};
|
|
53
|
+
}
|
|
54
|
+
.edgeLabel {
|
|
55
|
+
background-color: ${a.edgeLabelBackground};
|
|
56
|
+
}
|
|
57
|
+
.edgeLabel .label rect {
|
|
58
|
+
fill: ${a.edgeLabelBackground};
|
|
59
|
+
}
|
|
60
|
+
.edgeLabel .label text {
|
|
61
|
+
fill: ${a.relationLabelColor};
|
|
62
|
+
}
|
|
63
|
+
.divider {
|
|
64
|
+
stroke: ${a.nodeBorder};
|
|
65
|
+
stroke-width: 1;
|
|
66
|
+
}
|
|
67
|
+
.label {
|
|
68
|
+
font-family: ${a.fontFamily};
|
|
69
|
+
color: ${a.nodeTextColor||a.textColor};
|
|
70
|
+
}
|
|
71
|
+
.label text,span {
|
|
72
|
+
fill: ${a.nodeTextColor||a.textColor};
|
|
73
|
+
color: ${a.nodeTextColor||a.textColor};
|
|
74
|
+
}
|
|
75
|
+
.labelBkg {
|
|
76
|
+
background-color: ${d??a.edgeLabelBackground};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
`},"getStyles"),n={};(0,i.VA)(n,{draw:()=>o});var o=(0,i.K2)(async function(a,b,c,j){i.Rm.info("REF0:"),i.Rm.info("Drawing requirement diagram (unified)",b);let{securityLevel:k,state:l,layout:m,look:n}=(0,h.D7)(),o=j.db.getData(),p=(0,d.A)(b,k);o.type=j.type,o.layoutAlgorithm=(0,f.q7)(m),o.nodeSpacing=l?.nodeSpacing??50,o.rankSpacing=l?.rankSpacing??50,o.markers="neo"===n?["requirement_contains_neo","requirement_arrow_neo"]:["requirement_contains","requirement_arrow"],o.diagramId=b,await (0,f.XX)(o,p),g._K.insertTitle(p,"requirementDiagramTitleText",l?.titleTopMargin??25,j.db.getDiagramTitle()),(0,e.P)(p,8,"requirementDiagram",l?.useMaxWidth??!0)},"draw"),p={parser:j,get db(){return new k},renderer:n,styles:m}},53765:(a,b,c)=>{c.d(b,{P:()=>f});var d=c(6850),e=c(24613),f=(0,e.K2)((a,b,c,f)=>{a.attr("class",c);let{width:i,height:j,x:k,y:l}=g(a,b);(0,d.a$)(a,j,i,f);let m=h(k,l,i,j,b);a.attr("viewBox",m),e.Rm.debug(`viewBox configured: ${m} with padding: ${b}`)},"setupViewPortForSVG"),g=(0,e.K2)((a,b)=>{let c=a.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:c.width+2*b,height:c.height+2*b,x:c.x,y:c.y}},"calculateDimensionsWithPadding"),h=(0,e.K2)((a,b,c,d,e)=>`${a-e} ${b-e} ${c} ${d}`,"createViewBox")}};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
"use strict";exports.id=1496,exports.ids=[1496],exports.modules={42383:(a,b,c)=>{c.d(b,{CP:()=>l,Ck:()=>o,HT:()=>n,PB:()=>m,aC:()=>k,lC:()=>i,m:()=>j,tk:()=>h});var d=c(6850),e=c(24613),f=c(57978),g=c(14861),h=(0,e.K2)((a,b)=>{let c=a.append("rect");if(c.attr("x",b.x),c.attr("y",b.y),c.attr("fill",b.fill),c.attr("stroke",b.stroke),c.attr("width",b.width),c.attr("height",b.height),b.name&&c.attr("name",b.name),b.rx&&c.attr("rx",b.rx),b.ry&&c.attr("ry",b.ry),void 0!==b.attrs)for(let a in b.attrs)c.attr(a,b.attrs[a]);return b.class&&c.attr("class",b.class),c},"drawRect"),i=(0,e.K2)((a,b)=>{h(a,{x:b.startx,y:b.starty,width:b.stopx-b.startx,height:b.stopy-b.starty,fill:b.fill,stroke:b.stroke,class:"rect"}).lower()},"drawBackgroundRect"),j=(0,e.K2)((a,b)=>{let c=b.text.replace(d.H1," "),e=a.append("text");e.attr("x",b.x),e.attr("y",b.y),e.attr("class","legend"),e.style("text-anchor",b.anchor),b.class&&e.attr("class",b.class);let f=e.append("tspan");return f.attr("x",b.x+2*b.textMargin),f.text(c),e},"drawText"),k=(0,e.K2)((a,b,c,d)=>{let e=a.append("image");e.attr("x",b),e.attr("y",c);let g=(0,f.J)(d);e.attr("xlink:href",g)},"drawImage"),l=(0,e.K2)((a,b,c,d)=>{let e=a.append("use");e.attr("x",b),e.attr("y",c);let g=(0,f.J)(d);e.attr("xlink:href",`#${g}`)},"drawEmbeddedImage"),m=(0,e.K2)(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),n=(0,e.K2)(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),o=(0,e.K2)(()=>{let a=(0,g.Ltv)(".mermaidTooltip");return a.empty()&&(a=(0,g.Ltv)("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")),a},"createTooltip")},61565:(a,b,c)=>{c.d(b,{o:()=>d});var d=(0,c(24613).K2)(()=>`
|
|
2
|
+
/* Font Awesome icon styling - consolidated */
|
|
3
|
+
.label-icon {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
height: 1em;
|
|
6
|
+
overflow: visible;
|
|
7
|
+
vertical-align: -0.125em;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.node .label-icon path {
|
|
11
|
+
fill: currentColor;
|
|
12
|
+
stroke: revert;
|
|
13
|
+
stroke-width: revert;
|
|
14
|
+
}
|
|
15
|
+
`,"getIconStyles")},81496:(a,b,c)=>{c.d(b,{diagram:()=>T});var d=c(61565),e=c(42383),f=c(6850),g=c(24613),h=c(14861),i=function(){var a=(0,g.K2)(function(a,b,c,d){for(c=c||{},d=a.length;d--;c[a[d]]=b);return c},"o"),b=[6,8,10,11,12,14,16,17,18],c=[1,9],d=[1,10],e=[1,11],f=[1,12],h=[1,13],i=[1,14],j={trace:(0,g.K2)(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:(0,g.K2)(function(a,b,c,d,e,f,g){var h=f.length-1;switch(e){case 1:return f[h-1];case 2:case 6:case 7:this.$=[];break;case 3:f[h-1].push(f[h]),this.$=f[h-1];break;case 4:case 5:this.$=f[h];break;case 8:d.setDiagramTitle(f[h].substr(6)),this.$=f[h].substr(6);break;case 9:this.$=f[h].trim(),d.setAccTitle(this.$);break;case 10:case 11:this.$=f[h].trim(),d.setAccDescription(this.$);break;case 12:d.addSection(f[h].substr(8)),this.$=f[h].substr(8);break;case 13:d.addTask(f[h-1],f[h]),this.$="task"}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},a(b,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:c,12:d,14:e,16:f,17:h,18:i},a(b,[2,7],{1:[2,1]}),a(b,[2,3]),{9:15,11:c,12:d,14:e,16:f,17:h,18:i},a(b,[2,5]),a(b,[2,6]),a(b,[2,8]),{13:[1,16]},{15:[1,17]},a(b,[2,11]),a(b,[2,12]),{19:[1,18]},a(b,[2,4]),a(b,[2,9]),a(b,[2,10]),a(b,[2,13])],defaultActions:{},parseError:(0,g.K2)(function(a,b){if(b.recoverable)this.trace(a);else{var c=Error(a);throw c.hash=b,c}},"parseError"),parse:(0,g.K2)(function(a){var b=this,c=[0],d=[],e=[null],f=[],h=this.table,i="",j=0,k=0,l=0,m=f.slice.call(arguments,1),n=Object.create(this.lexer),o={};for(var p in this.yy)Object.prototype.hasOwnProperty.call(this.yy,p)&&(o[p]=this.yy[p]);n.setInput(a,o),o.lexer=n,o.parser=this,void 0===n.yylloc&&(n.yylloc={});var q=n.yylloc;f.push(q);var r=n.options&&n.options.ranges;function s(){var a;return"number"!=typeof(a=d.pop()||n.lex()||1)&&(a instanceof Array&&(a=(d=a).pop()),a=b.symbols_[a]||a),a}"function"==typeof o.parseError?this.parseError=o.parseError:this.parseError=Object.getPrototypeOf(this).parseError,(0,g.K2)(function(a){c.length=c.length-2*a,e.length=e.length-a,f.length=f.length-a},"popStack"),(0,g.K2)(s,"lex");for(var t,u,v,w,x,y,z,A,B,C={};;){if(v=c[c.length-1],this.defaultActions[v]?w=this.defaultActions[v]:(null==t&&(t=s()),w=h[v]&&h[v][t]),void 0===w||!w.length||!w[0]){var D="";for(y in B=[],h[v])this.terminals_[y]&&y>2&&B.push("'"+this.terminals_[y]+"'");D=n.showPosition?"Parse error on line "+(j+1)+":\n"+n.showPosition()+"\nExpecting "+B.join(", ")+", got '"+(this.terminals_[t]||t)+"'":"Parse error on line "+(j+1)+": Unexpected "+(1==t?"end of input":"'"+(this.terminals_[t]||t)+"'"),this.parseError(D,{text:n.match,token:this.terminals_[t]||t,line:n.yylineno,loc:q,expected:B})}if(w[0]instanceof Array&&w.length>1)throw Error("Parse Error: multiple actions possible at state: "+v+", token: "+t);switch(w[0]){case 1:c.push(t),e.push(n.yytext),f.push(n.yylloc),c.push(w[1]),t=null,u?(t=u,u=null):(k=n.yyleng,i=n.yytext,j=n.yylineno,q=n.yylloc,l>0&&l--);break;case 2:if(z=this.productions_[w[1]][1],C.$=e[e.length-z],C._$={first_line:f[f.length-(z||1)].first_line,last_line:f[f.length-1].last_line,first_column:f[f.length-(z||1)].first_column,last_column:f[f.length-1].last_column},r&&(C._$.range=[f[f.length-(z||1)].range[0],f[f.length-1].range[1]]),void 0!==(x=this.performAction.apply(C,[i,k,j,o,w[1],e,f].concat(m))))return x;z&&(c=c.slice(0,-1*z*2),e=e.slice(0,-1*z),f=f.slice(0,-1*z)),c.push(this.productions_[w[1]][0]),e.push(C.$),f.push(C._$),A=h[c[c.length-2]][c[c.length-1]],c.push(A);break;case 3:return!0}}return!0},"parse")};function k(){this.yy={}}return j.lexer={EOF:1,parseError:(0,g.K2)(function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a)},"parseError"),setInput:(0,g.K2)(function(a,b){return this.yy=b||this.yy||{},this._input=a,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:(0,g.K2)(function(){var a=this._input[0];return this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a,a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:(0,g.K2)(function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-b),this.offset-=b;var d=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===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b},this.options.ranges&&(this.yylloc.range=[e[0],e[0]+this.yyleng-b]),this.yyleng=this.yytext.length,this},"unput"),more:(0,g.K2)(function(){return this._more=!0,this},"more"),reject:(0,g.K2)(function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"reject"),less:(0,g.K2)(function(a){this.unput(this.match.slice(a))},"less"),pastInput:(0,g.K2)(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:(0,g.K2)(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:(0,g.K2)(function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},"showPosition"),test_match:(0,g.K2)(function(a,b){var c,d,e;if(this.options.backtrack_lexer&&(e={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(e.yylloc.range=this.yylloc.range.slice(0))),(d=a[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],c=this.performAction.call(this,this.yy,this,b,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),c)return c;if(this._backtrack)for(var f in e)this[f]=e[f];return!1},"test_match"),next:(0,g.K2)(function(){if(this.done)return this.EOF;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var a,b,c,d,e=this._currentRules(),f=0;f<e.length;f++)if((c=this._input.match(this.rules[e[f]]))&&(!b||c[0].length>b[0].length)){if(b=c,d=f,this.options.backtrack_lexer){if(!1!==(a=this.test_match(c,e[f])))return a;if(!this._backtrack)return!1;b=!1;continue}if(!this.options.flex)break}return b?!1!==(a=this.test_match(b,e[d]))&&a:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:(0,g.K2)(function(){var a=this.next();return a||this.lex()},"lex"),begin:(0,g.K2)(function(a){this.conditionStack.push(a)},"begin"),popState:(0,g.K2)(function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:(0,g.K2)(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:(0,g.K2)(function(a){return(a=this.conditionStack.length-1-Math.abs(a||0))>=0?this.conditionStack[a]:"INITIAL"},"topState"),pushState:(0,g.K2)(function(a){this.begin(a)},"pushState"),stateStackSize:(0,g.K2)(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:(0,g.K2)(function(a,b,c,d){switch(c){case 0:case 1:case 3:case 4:break;case 2:return 10;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}},(0,g.K2)(k,"Parser"),k.prototype=j,j.Parser=k,new k}();i.parser=i;var j="",k=[],l=[],m=[],n=(0,g.K2)(function(){k.length=0,l.length=0,j="",m.length=0,(0,f.IU)()},"clear"),o=(0,g.K2)(function(a){j=a,k.push(a)},"addSection"),p=(0,g.K2)(function(){return k},"getSections"),q=(0,g.K2)(function(){let a=u(),b=0;for(;!a&&b<100;)a=u(),b++;return l.push(...m),l},"getTasks"),r=(0,g.K2)(function(){let a=[];return l.forEach(b=>{b.people&&a.push(...b.people)}),[...new Set(a)].sort()},"updateActors"),s=(0,g.K2)(function(a,b){let c=b.substr(1).split(":"),d=0,e=[];1===c.length?(d=Number(c[0]),e=[]):(d=Number(c[0]),e=c[1].split(","));let f=e.map(a=>a.trim()),g={section:j,type:j,people:f,task:a,score:d};m.push(g)},"addTask"),t=(0,g.K2)(function(a){let b={section:j,type:j,description:a,task:a,classes:[]};l.push(b)},"addTaskOrg"),u=(0,g.K2)(function(){let a=(0,g.K2)(function(a){return m[a].processed},"compileTask"),b=!0;for(let[c,d]of m.entries())a(c),b=b&&d.processed;return b},"compileTasks"),v=(0,g.K2)(function(){return r()},"getActors"),w={getConfig:(0,g.K2)(()=>(0,f.D7)().journey,"getConfig"),clear:n,setDiagramTitle:f.ke,getDiagramTitle:f.ab,setAccTitle:f.SV,getAccTitle:f.iN,setAccDescription:f.EI,getAccDescription:f.m7,addSection:o,getSections:p,getTasks:q,addTask:s,addTaskOrg:t,getActors:v},x=(0,g.K2)(a=>`.label {
|
|
16
|
+
font-family: ${a.fontFamily};
|
|
17
|
+
color: ${a.textColor};
|
|
18
|
+
}
|
|
19
|
+
.mouth {
|
|
20
|
+
stroke: #666;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
line {
|
|
24
|
+
stroke: ${a.textColor}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.legend {
|
|
28
|
+
fill: ${a.textColor};
|
|
29
|
+
font-family: ${a.fontFamily};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.label text {
|
|
33
|
+
fill: #333;
|
|
34
|
+
}
|
|
35
|
+
.label {
|
|
36
|
+
color: ${a.textColor}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.face {
|
|
40
|
+
${a.faceColor?`fill: ${a.faceColor}`:"fill: #FFF8DC"};
|
|
41
|
+
stroke: #999;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.node rect,
|
|
45
|
+
.node circle,
|
|
46
|
+
.node ellipse,
|
|
47
|
+
.node polygon,
|
|
48
|
+
.node path {
|
|
49
|
+
fill: ${a.mainBkg};
|
|
50
|
+
stroke: ${a.nodeBorder};
|
|
51
|
+
stroke-width: 1px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.node .label {
|
|
55
|
+
text-align: center;
|
|
56
|
+
}
|
|
57
|
+
.node.clickable {
|
|
58
|
+
cursor: pointer;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.arrowheadPath {
|
|
62
|
+
fill: ${a.arrowheadColor};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.edgePath .path {
|
|
66
|
+
stroke: ${a.lineColor};
|
|
67
|
+
stroke-width: 1.5px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.flowchart-link {
|
|
71
|
+
stroke: ${a.lineColor};
|
|
72
|
+
fill: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.edgeLabel {
|
|
76
|
+
background-color: ${a.edgeLabelBackground};
|
|
77
|
+
rect {
|
|
78
|
+
opacity: 0.5;
|
|
79
|
+
}
|
|
80
|
+
text-align: center;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.cluster rect {
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.cluster text {
|
|
87
|
+
fill: ${a.titleColor};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
div.mermaidTooltip {
|
|
91
|
+
position: absolute;
|
|
92
|
+
text-align: center;
|
|
93
|
+
max-width: 200px;
|
|
94
|
+
padding: 2px;
|
|
95
|
+
font-family: ${a.fontFamily};
|
|
96
|
+
font-size: 12px;
|
|
97
|
+
background: ${a.tertiaryColor};
|
|
98
|
+
border: 1px solid ${a.border2};
|
|
99
|
+
border-radius: 2px;
|
|
100
|
+
pointer-events: none;
|
|
101
|
+
z-index: 100;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.task-type-0, .section-type-0 {
|
|
105
|
+
${a.fillType0?`fill: ${a.fillType0}`:""};
|
|
106
|
+
}
|
|
107
|
+
.task-type-1, .section-type-1 {
|
|
108
|
+
${a.fillType0?`fill: ${a.fillType1}`:""};
|
|
109
|
+
}
|
|
110
|
+
.task-type-2, .section-type-2 {
|
|
111
|
+
${a.fillType0?`fill: ${a.fillType2}`:""};
|
|
112
|
+
}
|
|
113
|
+
.task-type-3, .section-type-3 {
|
|
114
|
+
${a.fillType0?`fill: ${a.fillType3}`:""};
|
|
115
|
+
}
|
|
116
|
+
.task-type-4, .section-type-4 {
|
|
117
|
+
${a.fillType0?`fill: ${a.fillType4}`:""};
|
|
118
|
+
}
|
|
119
|
+
.task-type-5, .section-type-5 {
|
|
120
|
+
${a.fillType0?`fill: ${a.fillType5}`:""};
|
|
121
|
+
}
|
|
122
|
+
.task-type-6, .section-type-6 {
|
|
123
|
+
${a.fillType0?`fill: ${a.fillType6}`:""};
|
|
124
|
+
}
|
|
125
|
+
.task-type-7, .section-type-7 {
|
|
126
|
+
${a.fillType0?`fill: ${a.fillType7}`:""};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.actor-0 {
|
|
130
|
+
${a.actor0?`fill: ${a.actor0}`:""};
|
|
131
|
+
}
|
|
132
|
+
.actor-1 {
|
|
133
|
+
${a.actor1?`fill: ${a.actor1}`:""};
|
|
134
|
+
}
|
|
135
|
+
.actor-2 {
|
|
136
|
+
${a.actor2?`fill: ${a.actor2}`:""};
|
|
137
|
+
}
|
|
138
|
+
.actor-3 {
|
|
139
|
+
${a.actor3?`fill: ${a.actor3}`:""};
|
|
140
|
+
}
|
|
141
|
+
.actor-4 {
|
|
142
|
+
${a.actor4?`fill: ${a.actor4}`:""};
|
|
143
|
+
}
|
|
144
|
+
.actor-5 {
|
|
145
|
+
${a.actor5?`fill: ${a.actor5}`:""};
|
|
146
|
+
}
|
|
147
|
+
${(0,d.o)()}
|
|
148
|
+
`,"getStyles"),y=(0,g.K2)(function(a,b){return(0,e.tk)(a,b)},"drawRect"),z=(0,g.K2)(function(a,b){let c=a.append("circle").attr("cx",b.cx).attr("cy",b.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),d=a.append("g");function e(a){let c=(0,h.JLW)().startAngle(Math.PI/2).endAngle(Math.PI/2*3).innerRadius(7.5).outerRadius(15/2.2);a.append("path").attr("class","mouth").attr("d",c).attr("transform","translate("+b.cx+","+(b.cy+2)+")")}function f(a){let c=(0,h.JLW)().startAngle(3*Math.PI/2).endAngle(Math.PI/2*5).innerRadius(7.5).outerRadius(15/2.2);a.append("path").attr("class","mouth").attr("d",c).attr("transform","translate("+b.cx+","+(b.cy+7)+")")}function i(a){a.append("line").attr("class","mouth").attr("stroke",2).attr("x1",b.cx-5).attr("y1",b.cy+7).attr("x2",b.cx+5).attr("y2",b.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return d.append("circle").attr("cx",b.cx-5).attr("cy",b.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),d.append("circle").attr("cx",b.cx+5).attr("cy",b.cy-5).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),(0,g.K2)(e,"smile"),(0,g.K2)(f,"sad"),(0,g.K2)(i,"ambivalent"),b.score>3?e(d):b.score<3?f(d):i(d),c},"drawFace"),A=(0,g.K2)(function(a,b){let c=a.append("circle");return c.attr("cx",b.cx),c.attr("cy",b.cy),c.attr("class","actor-"+b.pos),c.attr("fill",b.fill),c.attr("stroke",b.stroke),c.attr("r",b.r),void 0!==c.class&&c.attr("class",c.class),void 0!==b.title&&c.append("title").text(b.title),c},"drawCircle"),B=(0,g.K2)(function(a,b){return(0,e.m)(a,b)},"drawText"),C=(0,g.K2)(function(a,b,c){let d=a.append("g"),f=(0,e.PB)();f.x=b.x,f.y=b.y,f.fill=b.fill,f.width=c.width*b.taskCount+c.diagramMarginX*(b.taskCount-1),f.height=c.height,f.class="journey-section section-type-"+b.num,f.rx=3,f.ry=3,y(d,f),F(c)(b.text,d,f.x,f.y,f.width,f.height,{class:"journey-section section-type-"+b.num},c,b.colour)},"drawSection"),D=-1,E=(0,g.K2)(function(a,b,c,d){let f=b.x+c.width/2,g=a.append("g");D++,g.append("line").attr("id",d+"-task"+D).attr("x1",f).attr("y1",b.y).attr("x2",f).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),z(g,{cx:f,cy:300+(5-b.score)*30,score:b.score});let h=(0,e.PB)();h.x=b.x,h.y=b.y,h.fill=b.fill,h.width=c.width,h.height=c.height,h.class="task task-type-"+b.num,h.rx=3,h.ry=3,y(g,h);let i=b.x+14;b.people.forEach(a=>{let c=b.actors[a].color;A(g,{cx:i,cy:b.y,r:7,fill:c,stroke:"#000",title:a,pos:b.actors[a].position}),i+=10}),F(c)(b.task,g,h.x,h.y,h.width,h.height,{class:"task"},c,b.colour)},"drawTask"),F=function(){function a(a,b,c,e,f,g,h,i){d(b.append("text").attr("x",c+f/2).attr("y",e+g/2+5).style("font-color",i).style("text-anchor","middle").text(a),h)}function b(a,b,c,e,f,g,h,i,j){let{taskFontSize:k,taskFontFamily:l}=i,m=a.split(/<br\s*\/?>/gi);for(let a=0;a<m.length;a++){let i=a*k-k*(m.length-1)/2,n=b.append("text").attr("x",c+f/2).attr("y",e).attr("fill",j).style("text-anchor","middle").style("font-size",k).style("font-family",l);n.append("tspan").attr("x",c+f/2).attr("dy",i).text(m[a]),n.attr("y",e+g/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),d(n,h)}}function c(a,c,e,f,g,h,i,j){let k=c.append("switch"),l=k.append("foreignObject").attr("x",e).attr("y",f).attr("width",g).attr("height",h).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");l.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(a),b(a,k,e,f,g,h,i,j),d(l,i)}function d(a,b){for(let c in b)c in b&&a.attr(c,b[c])}return(0,g.K2)(a,"byText"),(0,g.K2)(b,"byTspan"),(0,g.K2)(c,"byFo"),(0,g.K2)(d,"_setTextAttrs"),function(d){return"fo"===d.textPlacement?c:"old"===d.textPlacement?a:b}}(),G={drawCircle:A,drawSection:C,drawText:B,drawTask:E,initGraphics:(0,g.K2)(function(a,b){D=-1,a.append("defs").append("marker").attr("id",b+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics")},H=(0,g.K2)(function(a){Object.keys(a).forEach(function(b){L[b]=a[b]})},"setConf"),I={},J=0;function K(a){let b=(0,f.D7)().journey,c=b.maxLabelWidth;J=0;let d=60;Object.keys(I).forEach(e=>{let f=I[e].color,g={cx:20,cy:d,r:7,fill:f,stroke:"#000",pos:I[e].position};G.drawCircle(a,g);let h=a.append("text").attr("visibility","hidden").text(e),i=h.node().getBoundingClientRect().width;h.remove();let j=[];if(i<=c)j=[e];else{let b=e.split(" "),d="";h=a.append("text").attr("visibility","hidden"),b.forEach(a=>{let b=d?`${d} ${a}`:a;if(h.text(b),h.node().getBoundingClientRect().width>c){if(d&&j.push(d),d=a,h.text(a),h.node().getBoundingClientRect().width>c){let b="";for(let d of a)b+=d,h.text(b+"-"),h.node().getBoundingClientRect().width>c&&(j.push(b.slice(0,-1)+"-"),b=d);d=b}}else d=b}),d&&j.push(d),h.remove()}j.forEach((c,e)=>{let f={x:40,y:d+7+20*e,fill:"#666",text:c,textMargin:b.boxTextMargin??5},g=G.drawText(a,f).node().getBoundingClientRect().width;g>J&&g>b.leftMargin-g&&(J=g)}),d+=Math.max(20,20*j.length)})}(0,g.K2)(K,"drawActorLegend");var L=(0,f.D7)().journey,M=0,N=(0,g.K2)(function(a,b,c,d){let e,g=(0,f.D7)(),i=g.journey.titleColor,j=g.journey.titleFontSize,k=g.journey.titleFontFamily,l=g.securityLevel;"sandbox"===l&&(e=(0,h.Ltv)("#i"+b));let m="sandbox"===l?(0,h.Ltv)(e.nodes()[0].contentDocument.body):(0,h.Ltv)("body");O.init();let n=m.select("#"+b);G.initGraphics(n,b);let o=d.db.getTasks(),p=d.db.getDiagramTitle(),q=d.db.getActors();for(let a in I)delete I[a];let r=0;q.forEach(a=>{I[a]={color:L.actorColours[r%L.actorColours.length],position:r},r++}),K(n),M=L.leftMargin+J,O.insert(0,0,M,50*Object.keys(I).length),R(n,o,0,b);let s=O.getBounds();p&&n.append("text").text(p).attr("x",M).attr("font-size",j).attr("font-weight","bold").attr("y",25).attr("fill",i).attr("font-family",k);let t=s.stopy-s.starty+2*L.diagramMarginY,u=M+s.stopx+2*L.diagramMarginX;(0,f.a$)(n,t,u,L.useMaxWidth),n.append("line").attr("x1",M).attr("y1",4*L.height).attr("x2",u-M-4).attr("y2",4*L.height).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+b+"-arrowhead)");let v=70*!!p;n.attr("viewBox",`${s.startx} -25 ${u} ${t+v}`),n.attr("preserveAspectRatio","xMinYMin meet"),n.attr("height",t+v+25)},"draw"),O={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:(0,g.K2)(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:(0,g.K2)(function(a,b,c,d){void 0===a[b]?a[b]=c:a[b]=d(c,a[b])},"updateVal"),updateBounds:(0,g.K2)(function(a,b,c,d){let e=(0,f.D7)().journey,h=this,i=0;function j(f){return(0,g.K2)(function(g){i++;let j=h.sequenceItems.length-i+1;h.updateVal(g,"starty",b-j*e.boxMargin,Math.min),h.updateVal(g,"stopy",d+j*e.boxMargin,Math.max),h.updateVal(O.data,"startx",a-j*e.boxMargin,Math.min),h.updateVal(O.data,"stopx",c+j*e.boxMargin,Math.max),"activation"!==f&&(h.updateVal(g,"startx",a-j*e.boxMargin,Math.min),h.updateVal(g,"stopx",c+j*e.boxMargin,Math.max),h.updateVal(O.data,"starty",b-j*e.boxMargin,Math.min),h.updateVal(O.data,"stopy",d+j*e.boxMargin,Math.max))},"updateItemBounds")}(0,g.K2)(j,"updateFn"),this.sequenceItems.forEach(j())},"updateBounds"),insert:(0,g.K2)(function(a,b,c,d){let e=Math.min(a,c),f=Math.max(a,c),g=Math.min(b,d),h=Math.max(b,d);this.updateVal(O.data,"startx",e,Math.min),this.updateVal(O.data,"starty",g,Math.min),this.updateVal(O.data,"stopx",f,Math.max),this.updateVal(O.data,"stopy",h,Math.max),this.updateBounds(e,g,f,h)},"insert"),bumpVerticalPos:(0,g.K2)(function(a){this.verticalPos=this.verticalPos+a,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:(0,g.K2)(function(){return this.verticalPos},"getVerticalPos"),getBounds:(0,g.K2)(function(){return this.data},"getBounds")},P=L.sectionFills,Q=L.sectionColours,R=(0,g.K2)(function(a,b,c,d){let e=(0,f.D7)().journey,g="",h=c+(2*e.height+e.diagramMarginY),i=0,j="#CCC",k="black",l=0;for(let[c,f]of b.entries()){if(g!==f.section){j=P[i%P.length],l=i%P.length,k=Q[i%Q.length];let d=0,h=f.section;for(let a=c;a<b.length;a++)if(b[a].section==h)d+=1;else break;let m={x:c*e.taskMargin+c*e.width+M,y:50,text:f.section,fill:j,num:l,colour:k,taskCount:d};G.drawSection(a,m,e),g=f.section,i++}let m=f.people.reduce((a,b)=>(I[b]&&(a[b]=I[b]),a),{});f.x=c*e.taskMargin+c*e.width+M,f.y=h,f.width=e.diagramMarginX,f.height=e.diagramMarginY,f.colour=k,f.fill=j,f.num=l,f.actors=m,G.drawTask(a,f,e,d),O.insert(f.x,f.y,f.x+f.width+e.taskMargin,450)}},"drawTasks"),S={setConf:H,draw:N},T={parser:i,db:w,renderer:S,styles:x,init:(0,g.K2)(a=>{S.setConf(a.journey),w.clear()},"init")}}};
|