orcaq 1.1.8 → 1.1.9
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{BWTTrGtY.js → B-E4SrDA.js} +2 -2
- package/.output/public/_nuxt/{BHr4_sbs.js → B-OC4Wzf.js} +1 -1
- package/.output/public/_nuxt/{CQFANjzf.js → B-cBPXHS.js} +1 -1
- package/.output/public/_nuxt/{D5Oboajo.js → B1ydsdXg.js} +1 -1
- package/.output/public/_nuxt/B2Wngdut.js +1 -0
- package/.output/public/_nuxt/{soHTUlpn.js → B3ZoiMh5.js} +1 -1
- package/.output/public/_nuxt/B3jyHGmo.js +1 -0
- package/.output/public/_nuxt/{XjywAggc.js → B6aTbrvX.js} +1 -1
- package/.output/public/_nuxt/{DpsqSAMo.js → B9vFZSzU.js} +1 -1
- package/.output/public/_nuxt/BFlFdtcI.js +12 -0
- package/.output/public/_nuxt/BFxd7ZWZ.js +1 -0
- package/.output/public/_nuxt/BI0OYmAG.js +1 -0
- package/.output/public/_nuxt/{BQm1mt0O.js → BIYjBgOJ.js} +1 -1
- package/.output/public/_nuxt/BMwuBt1W.js +1 -0
- package/.output/public/_nuxt/{D8egDyEO.js → BP23Jaxf.js} +1 -1
- package/.output/public/_nuxt/BWpduGRB.js +1 -0
- package/.output/public/_nuxt/{JxgekUqn.js → BX-NC3FD.js} +1 -1
- package/.output/public/_nuxt/{B0gkARnK.js → BY0VC_fp.js} +1 -1
- package/.output/public/_nuxt/BZOLz5Xw.js +1 -0
- package/.output/public/_nuxt/{7iCr9_qw.js → BblWMS7J.js} +3 -3
- package/.output/public/_nuxt/{BRzWRTTF.js → Bc7Kpanq.js} +1 -1
- package/.output/public/_nuxt/{DmnufEYq.js → BcbezgEJ.js} +1 -1
- package/.output/public/_nuxt/{DJXrgohw.js → BeMg7yb6.js} +2 -2
- package/.output/public/_nuxt/Bg0K-n53.js +18 -0
- package/.output/public/_nuxt/{7H5y5euK.js → BgFbw5aK.js} +1 -1
- package/.output/public/_nuxt/{DBSV6YXN.js → BkHJ3kuB.js} +1 -1
- package/.output/public/_nuxt/BlVXGJOG.js +1 -0
- package/.output/public/_nuxt/{DwPmcz47.js → BorA7uj6.js} +1 -1
- package/.output/public/_nuxt/BqQfmS94.js +1 -0
- package/.output/public/_nuxt/{DgxTwFGe.js → Btu3pVWi.js} +2 -2
- package/.output/public/_nuxt/{CXbrqQhC.js → C0kVUAwR.js} +1 -1
- package/.output/public/_nuxt/C1GKs4YV.js +1 -0
- package/.output/public/_nuxt/C4fd0pgB.js +1 -0
- package/.output/public/_nuxt/{CuXTA7ZW.js → C4zVAAUp.js} +1 -1
- package/.output/public/_nuxt/{B6N_D8QI.js → C6ajLfO0.js} +1 -1
- package/.output/public/_nuxt/{CyKRjZZo.js → C9JT2-RE.js} +1 -1
- package/.output/public/_nuxt/{BsCPQnkm.js → CAnZNTn6.js} +1 -1
- package/.output/public/_nuxt/{vP25tZUh.js → CB2XoHaK.js} +1 -1
- package/.output/public/_nuxt/{CAjVwGyz.js → CBy17iCN.js} +1 -1
- package/.output/public/_nuxt/{D4DMGxvZ.js → CCwJzmTT.js} +1 -1
- package/.output/public/_nuxt/{5450EsIE.js → CGlRJg9T.js} +1 -1
- package/.output/public/_nuxt/{Dpkaavgs.js → CH3m0zKs.js} +1 -1
- package/.output/public/_nuxt/{BO3FEgXG.js → CHFYZcjC.js} +1 -1
- package/.output/public/_nuxt/{LU_a7qLd.js → CM4UzWO5.js} +1 -1
- package/.output/public/_nuxt/{CMnjMfEQ.js → CM7fDldV.js} +1 -1
- package/.output/public/_nuxt/{Dtry_3Qa.js → CQi4GvAy.js} +1 -1
- package/.output/public/_nuxt/{zndqWf9s.js → CRtMS55w.js} +1 -1
- package/.output/public/_nuxt/{C0jXhwNq.js → CSIDbD5d.js} +1 -1
- package/.output/public/_nuxt/{BuTCm7Bo.js → CT4V-SdE.js} +1 -1
- package/.output/public/_nuxt/{CCCJ2fw7.js → CV3uHXW4.js} +1 -1
- package/.output/public/_nuxt/{FmHWbXNk.js → CX2dGf8T.js} +1 -1
- package/.output/public/_nuxt/{f6XRRKUb.js → Ce00XEKL.js} +1 -1
- package/.output/public/_nuxt/{_uLivI44.js → CfglFxLQ.js} +1 -1
- package/.output/public/_nuxt/{mcYTISF7.js → Cgc3lXst.js} +1 -1
- package/.output/public/_nuxt/{Bu6ybm3Z.js → CiGbpFVs.js} +1 -1
- package/.output/public/_nuxt/{DG9CsZCx.js → Cilp0euQ.js} +1 -1
- package/.output/public/_nuxt/CjE9xodL.js +1 -0
- package/.output/public/_nuxt/{DrkGD_bQ.js → Ck7gJ0Ru.js} +1 -1
- package/.output/public/_nuxt/{CKlMKmo6.js → CkVRbNxk.js} +1 -1
- package/.output/public/_nuxt/CmROOZW3.js +1 -0
- package/.output/public/_nuxt/{BRWis86L.js → CqwK0iC2.js} +1 -1
- package/.output/public/_nuxt/{CvbYm0uB.js → CsRqTS8p.js} +1 -1
- package/.output/public/_nuxt/{So0hX8V0.js → Cv8aMucD.js} +3 -3
- package/.output/public/_nuxt/CvFBHqKj.js +1 -0
- package/.output/public/_nuxt/{BzNEuLKx.js → CvrjITPr.js} +1 -1
- package/.output/public/_nuxt/CwEAH09c.js +1 -0
- package/.output/public/_nuxt/{DXVrM3CN.js → D0TQTmc_.js} +1 -1
- package/.output/public/_nuxt/{BRCvv3op.js → D33qa5aT.js} +1 -1
- package/.output/public/_nuxt/{vEHvfalB.js → D6FGhPpz.js} +1 -1
- package/.output/public/_nuxt/{DCewvWOu.js → D8dLCNO1.js} +1 -1
- package/.output/public/_nuxt/DA2L1Ivx.js +1 -0
- package/.output/public/_nuxt/{DHXwq7wT.js → DB45HoaN.js} +1 -1
- package/.output/public/_nuxt/DBIf1geQ.js +1 -0
- package/.output/public/_nuxt/{C6teO48Y.js → DD6NieRw.js} +74 -74
- package/.output/public/_nuxt/DDNFAZ6A.js +1 -0
- package/.output/public/_nuxt/{D_kY6P5P.js → DDgsZmht.js} +1 -1
- package/.output/public/_nuxt/{BNh4NY7v.js → DEBj_roB.js} +1 -1
- package/.output/public/_nuxt/{BzqjH2-H.js → DI-I25kb.js} +1 -1
- package/.output/public/_nuxt/{Cd_fVKDw.js → DMhhDVL0.js} +1 -1
- package/.output/public/_nuxt/{C-e53AuW.js → DNL5Q-iy.js} +1 -1
- package/.output/public/_nuxt/DX42Brjy.js +1 -0
- package/.output/public/_nuxt/DYBPW385.js +1 -0
- package/.output/public/_nuxt/{CU5cwnUW.js → DYFx7Tau.js} +1 -1
- package/.output/public/_nuxt/{CXQ2zrsE.js → DZJEpoYA.js} +1 -1
- package/.output/public/_nuxt/{DZ4xLzJg.js → D_dxq6Av.js} +1 -1
- package/.output/public/_nuxt/{jtwYTq7X.js → DcIKg-oA.js} +25 -25
- package/.output/public/_nuxt/Dcf3u1x9.js +1 -0
- package/.output/public/_nuxt/{CFi6G8Aj.js → DdjYB9eX.js} +2 -2
- package/.output/public/_nuxt/{CCC5u9Ni.js → DeGwWuWf.js} +1 -1
- package/.output/public/_nuxt/Dgh1FhxQ.js +1 -0
- package/.output/public/_nuxt/{DQRyK9Io.js → DghZRCwT.js} +1 -1
- package/.output/public/_nuxt/{CMI-3q_e.js → DngnCd9Q.js} +1 -1
- package/.output/public/_nuxt/{BalNYDR1.js → Dpdssse1.js} +1 -1
- package/.output/public/_nuxt/{BXMKgn-J.js → DrfFcngk.js} +1 -1
- package/.output/public/_nuxt/{BYaoWfSN.js → Ds4LpS8e.js} +1 -1
- package/.output/public/_nuxt/{C874itvn.js → DsHltPpv.js} +1 -1
- package/.output/public/_nuxt/{C6K-C4_d.js → DuvFgQqu.js} +1 -1
- package/.output/public/_nuxt/{BJvJ0Hlu.js → Dzy2Amcc.js} +4 -4
- package/.output/public/_nuxt/{R04uZjs6.js → EzQMUIRl.js} +1 -1
- package/.output/public/_nuxt/FrxNy5Hb.js +2 -0
- package/.output/public/_nuxt/{DkX74xDd.js → ImQ5Dcjp.js} +1 -1
- package/.output/public/_nuxt/{CyEOtFwE.js → QZbgg6bx.js} +1 -1
- package/.output/public/_nuxt/{Cw1HIv3s.js → RCyqQNC4.js} +1 -1
- package/.output/public/_nuxt/{BmfnP4qD.js → RpDfSk0l.js} +1 -1
- package/.output/public/_nuxt/UowwUtRH.js +1 -0
- package/.output/public/_nuxt/{CMDq7o88.js → V_GiMERb.js} +1 -1
- package/.output/public/_nuxt/{LxqkguPP.js → W2el5otm.js} +1 -1
- package/.output/public/_nuxt/{Dopm1f4X.js → bJGrilFb.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/657bdee4-fa56-4862-bc13-309345429302.json +1 -0
- package/.output/public/_nuxt/entry.CQwtqNMg.css +1 -0
- package/.output/public/_nuxt/jgZoykhT.js +1 -0
- package/.output/public/_nuxt/{BK-6CJ0A.js → lFU3Ma5J.js} +1 -1
- package/.output/public/_nuxt/{WZQ8mcv9.js → lPZuSUw2.js} +1 -1
- package/.output/public/_nuxt/{Cqk0ImDE.js → ljX6O69y.js} +1 -1
- package/.output/public/_nuxt/{BMVgfiQu.js → mtBjWkj4.js} +1 -1
- package/.output/public/_nuxt/ngeX9iiO.js +1 -0
- package/.output/public/_nuxt/s10hyhzI.js +1 -0
- package/.output/public/_nuxt/{tc7vkD0J.js → w8sha2t6.js} +2 -2
- package/.output/public/_nuxt/{WGDY9i_Q.js → yPPOBtqs.js} +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +833 -795
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +692 -671
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/-7uW7YTy.js +0 -1
- package/.output/public/_nuxt/6mVUr42b.js +0 -1
- package/.output/public/_nuxt/B21nC2NZ.js +0 -1
- package/.output/public/_nuxt/B232GDut.js +0 -2
- package/.output/public/_nuxt/B7C8fo37.js +0 -1
- package/.output/public/_nuxt/BC82eJHt.js +0 -1
- package/.output/public/_nuxt/Bn6_QGSK.js +0 -1
- package/.output/public/_nuxt/BuzCyLCh.js +0 -1
- package/.output/public/_nuxt/BzNNFvTW.js +0 -1
- package/.output/public/_nuxt/C8ZJ2pm_.js +0 -1
- package/.output/public/_nuxt/CA3O4M9L.js +0 -1
- package/.output/public/_nuxt/CZXyfpHW.js +0 -1
- package/.output/public/_nuxt/CZgTP5wX.js +0 -1
- package/.output/public/_nuxt/CeXnSKvd.js +0 -1
- package/.output/public/_nuxt/Chw5tFzx.js +0 -1
- package/.output/public/_nuxt/CkLSGVwV.js +0 -1
- package/.output/public/_nuxt/Cv9v5fHN.js +0 -1
- package/.output/public/_nuxt/D5GonnbJ.js +0 -1
- package/.output/public/_nuxt/DH2V7e8U.js +0 -1
- package/.output/public/_nuxt/DZIoL4RO.js +0 -1
- package/.output/public/_nuxt/DyjsVMbv.js +0 -1
- package/.output/public/_nuxt/KoGK2wLb.js +0 -1
- package/.output/public/_nuxt/Q8x88Gcd.js +0 -1
- package/.output/public/_nuxt/builds/meta/30582efd-125a-4f88-bd89-20a7b2ba8697.json +0 -1
- package/.output/public/_nuxt/eQskTKIU.js +0 -1
- package/.output/public/_nuxt/ecWNT6PZ.js +0 -1
- package/.output/public/_nuxt/entry.BcHy7sxf.css +0 -1
- package/.output/public/_nuxt/mcfKrWU-.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Q as S,T as z,ax as j,_ as p,g as q,s as Q,a as Z,b as H,t as J,q as K,l as F,c as X,G as Y,L as ee,a4 as te,e as ae,A as re,I as ne}from"./
|
|
1
|
+
import{Q as S,T as z,ax as j,_ as p,g as q,s as Q,a as Z,b as H,t as J,q as K,l as F,c as X,G as Y,L as ee,a4 as te,e as ae,A as re,I as ne}from"./Dzy2Amcc.js";import{p as ie}from"./DZJEpoYA.js";import{p as se}from"./BcbezgEJ.js";import{d as P}from"./Ce00XEKL.js";import{o as le}from"./CmKTTxBW.js";import"./DD6NieRw.js";import"./Gi6I4Gst.js";function oe(e,a){return a<e?-1:a>e?1:a>=e?0:NaN}function ce(e){return e}function ue(){var e=ce,a=oe,f=null,x=S(0),s=S(z),o=S(0);function l(t){var n,c=(t=j(t)).length,g,y,m=0,u=new Array(c),i=new Array(c),v=+x.apply(this,arguments),A=Math.min(z,Math.max(-z,s.apply(this,arguments)-v)),h,C=Math.min(Math.abs(A)/c,o.apply(this,arguments)),$=C*(A<0?-1:1),d;for(n=0;n<c;++n)(d=i[u[n]=n]=+e(t[n],n,t))>0&&(m+=d);for(a!=null?u.sort(function(w,D){return a(i[w],i[D])}):f!=null&&u.sort(function(w,D){return f(t[w],t[D])}),n=0,y=m?(A-c*$)/m:0;n<c;++n,v=h)g=u[n],d=i[g],h=v+(d>0?d*y:0)+$,i[g]={data:t[g],index:n,value:d,startAngle:v,endAngle:h,padAngle:C};return i}return l.value=function(t){return arguments.length?(e=typeof t=="function"?t:S(+t),l):e},l.sortValues=function(t){return arguments.length?(a=t,f=null,l):a},l.sort=function(t){return arguments.length?(f=t,a=null,l):f},l.startAngle=function(t){return arguments.length?(x=typeof t=="function"?t:S(+t),l):x},l.endAngle=function(t){return arguments.length?(s=typeof t=="function"?t:S(+t),l):s},l.padAngle=function(t){return arguments.length?(o=typeof t=="function"?t:S(+t),l):o},l}var pe=ne.pie,G={sections:new Map,showData:!1},T=G.sections,N=G.showData,ge=structuredClone(pe),de=p(()=>structuredClone(ge),"getConfig"),fe=p(()=>{T=new Map,N=G.showData,re()},"clear"),he=p(({label:e,value:a})=>{if(a<0)throw new Error(`"${e}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);T.has(e)||(T.set(e,a),F.debug(`added new section: ${e}, with value: ${a}`))},"addSection"),me=p(()=>T,"getSections"),ve=p(e=>{N=e},"setShowData"),Se=p(()=>N,"getShowData"),R={getConfig:de,clear:fe,setDiagramTitle:K,getDiagramTitle:J,setAccTitle:H,getAccTitle:Z,setAccDescription:Q,getAccDescription:q,addSection:he,getSections:me,setShowData:ve,getShowData:Se},xe=p((e,a)=>{ie(e,a),a.setShowData(e.showData),e.sections.map(a.addSection)},"populateDb"),ye={parse:p(async e=>{const a=await se("pie",e);F.debug(a),xe(a,R)},"parse")},Ae=p(e=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${e.pieStrokeColor};
|
|
4
4
|
stroke-width : ${e.pieStrokeWidth};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as Ge}from"./BsCPQnkm.js";import{s as ze}from"./BO3FEgXG.js";import{_ as f,b as Xe,a as Je,s as Ze,g as et,q as tt,t as st,c as Ne,l as qe,A as it,E as rt,p as nt,r as at,u as lt}from"./BJvJ0Hlu.js";import"./C6teO48Y.js";var Ae=function(){var e=f(function(P,i,r,l){for(r=r||{},l=P.length;l--;r[P[l]]=i);return r},"o"),a=[1,3],u=[1,4],o=[1,5],m=[1,6],c=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],p=[1,22],R=[2,7],h=[1,26],d=[1,27],b=[1,28],k=[1,29],A=[1,33],C=[1,34],V=[1,35],v=[1,36],x=[1,37],L=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],g=[1,39],_=[1,40],y=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],X=[89,90],Ce=[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],Ee=[27,29],Ve=[1,70],ve=[1,71],xe=[1,72],Le=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[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],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[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],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:f(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:f(function(i,r,l,s,E,t,de){var n=t.length-1;switch(E){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:a,9:u,11:o,13:m},{1:[3]},{3:8,4:2,5:[1,7],6:a,9:u,11:o,13:m},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(c,[2,6]),{3:12,4:2,6:a,9:u,11:o,13:m},{1:[2,2]},{4:17,5:p,7:13,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},e(c,[2,4]),e(c,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:p,7:42,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:43,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:44,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:45,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:46,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:47,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:48,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:49,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:50,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{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]},e(y,[2,17]),e(y,[2,18]),e(y,[2,19]),e(y,[2,20]),{30:60,33:62,75:$,89:g,90:_},{30:63,33:62,75:$,89:g,90:_},{30:64,33:62,75:$,89:g,90:_},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ce,[2,81]),e(Ce,[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]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{30:78,33:62,75:$,89:g,90:_},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:$,76:U,89:g,90:_},{5:[1,95]},{30:96,33:62,75:$,89:g,90:_},{5:[1,97]},{30:98,33:62,75:$,89:g,90:_},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(y,[2,59],{76:U}),e(y,[2,64],{76:Me}),{33:103,75:[1,102],89:g,90:_},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(y,[2,57],{76:Me}),e(y,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:g,90:_},{33:120,89:g,90:_},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(N,[2,68]),e(y,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(y,[2,28]),{5:[1,127]},e(y,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(y,[2,47]),{5:[1,131]},e(y,[2,48]),e(y,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:g,90:_},{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]},e(y,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(y,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{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]},e(y,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(y,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),e(y,[2,26]),e(y,[2,44]),e(y,[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:f(function(i,r){if(r.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=r,l}},"parseError"),parse:f(function(i){var r=this,l=[0],s=[],E=[null],t=[],de=this.table,n="",ye=0,Pe=0,He=2,$e=1,Ke=t.slice.call(arguments,1),S=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);S.setInput(i,G.yy),G.yy.lexer=S,G.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var Ie=S.yylloc;t.push(Ie);var We=S.options&&S.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(T){l.length=l.length-2*T,E.length=E.length-T,t.length=t.length-T}f(je,"popStack");function Ue(){var T;return T=s.pop()||S.lex()||$e,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=r.symbols_[T]||T),T}f(Ue,"lex");for(var I,z,q,Te,J={},ge,F,Ye,_e;;){if(z=l[l.length-1],this.defaultActions[z]?q=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),q=de[z]&&de[z][I]),typeof q>"u"||!q.length||!q[0]){var ke="";_e=[];for(ge in de[z])this.terminals_[ge]&&ge>He&&_e.push("'"+this.terminals_[ge]+"'");S.showPosition?ke="Parse error on line "+(ye+1)+`:
|
|
1
|
+
import{g as Ge}from"./CAnZNTn6.js";import{s as ze}from"./CHFYZcjC.js";import{_ as f,b as Xe,a as Je,s as Ze,g as et,q as tt,t as st,c as Ne,l as qe,A as it,E as rt,p as nt,r as at,u as lt}from"./Dzy2Amcc.js";import"./DD6NieRw.js";var Ae=function(){var e=f(function(P,i,r,l){for(r=r||{},l=P.length;l--;r[P[l]]=i);return r},"o"),a=[1,3],u=[1,4],o=[1,5],m=[1,6],c=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],p=[1,22],R=[2,7],h=[1,26],d=[1,27],b=[1,28],k=[1,29],A=[1,33],C=[1,34],V=[1,35],v=[1,36],x=[1,37],L=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],g=[1,39],_=[1,40],y=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],$=[1,61],X=[89,90],Ce=[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],Ee=[27,29],Ve=[1,70],ve=[1,71],xe=[1,72],Le=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[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],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],N=[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],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:f(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:f(function(i,r,l,s,E,t,de){var n=t.length-1;switch(E){case 4:this.$=t[n].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[n].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[n-3],t[n-4]);break;case 22:s.addRequirement(t[n-5],t[n-6]),s.setClass([t[n-5]],t[n-3]);break;case 23:s.setNewReqId(t[n-2]);break;case 24:s.setNewReqText(t[n-2]);break;case 25:s.setNewReqRisk(t[n-2]);break;case 26:s.setNewReqVerifyMethod(t[n-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[n-3]);break;case 43:s.addElement(t[n-5]),s.setClass([t[n-5]],t[n-3]);break;case 44:s.setNewElementType(t[n-2]);break;case 45:s.setNewElementDocRef(t[n-2]);break;case 48:s.addRelationship(t[n-2],t[n],t[n-4]);break;case 49:s.addRelationship(t[n-2],t[n-4],t[n]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[n-2],s.defineClass(t[n-1],t[n]);break;case 58:s.setClass(t[n-1],t[n]);break;case 59:s.setClass([t[n-2]],t[n]);break;case 60:case 62:this.$=[t[n]];break;case 61:case 63:this.$=t[n-2].concat([t[n]]);break;case 64:this.$=t[n-2],s.setCssStyle(t[n-1],t[n]);break;case 65:this.$=[t[n]];break;case 66:t[n-2].push(t[n]),this.$=t[n-2];break;case 68:this.$=t[n-1]+t[n];break}},"anonymous"),table:[{3:1,4:2,6:a,9:u,11:o,13:m},{1:[3]},{3:8,4:2,5:[1,7],6:a,9:u,11:o,13:m},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(c,[2,6]),{3:12,4:2,6:a,9:u,11:o,13:m},{1:[2,2]},{4:17,5:p,7:13,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},e(c,[2,4]),e(c,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:p,7:42,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:43,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:44,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:45,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:46,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:47,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:48,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:49,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{4:17,5:p,7:50,8:R,9:u,11:o,13:m,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:h,22:d,23:b,24:k,25:23,33:25,41:A,42:C,43:V,44:v,45:x,46:L,54:w,72:D,74:O,77:M,89:g,90:_},{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]},e(y,[2,17]),e(y,[2,18]),e(y,[2,19]),e(y,[2,20]),{30:60,33:62,75:$,89:g,90:_},{30:63,33:62,75:$,89:g,90:_},{30:64,33:62,75:$,89:g,90:_},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ce,[2,81]),e(Ce,[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]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:xe,68:Le,69:we,70:De,71:Oe},{30:78,33:62,75:$,89:g,90:_},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:$,76:U,89:g,90:_},{5:[1,95]},{30:96,33:62,75:$,89:g,90:_},{5:[1,97]},{30:98,33:62,75:$,89:g,90:_},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(y,[2,59],{76:U}),e(y,[2,64],{76:Me}),{33:103,75:[1,102],89:g,90:_},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(N,[2,67]),e(N,[2,69]),e(N,[2,70]),e(N,[2,71]),e(N,[2,72]),e(N,[2,73]),e(N,[2,74]),e(N,[2,75]),e(N,[2,76]),e(N,[2,77]),e(N,[2,78]),e(y,[2,57],{76:Me}),e(y,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:g,90:_},{33:120,89:g,90:_},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(N,[2,68]),e(y,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(y,[2,28]),{5:[1,127]},e(y,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(y,[2,47]),{5:[1,131]},e(y,[2,48]),e(y,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:g,90:_},{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]},e(y,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(y,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{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]},e(y,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(y,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),e(y,[2,26]),e(y,[2,44]),e(y,[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:f(function(i,r){if(r.recoverable)this.trace(i);else{var l=new Error(i);throw l.hash=r,l}},"parseError"),parse:f(function(i){var r=this,l=[0],s=[],E=[null],t=[],de=this.table,n="",ye=0,Pe=0,He=2,$e=1,Ke=t.slice.call(arguments,1),S=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);S.setInput(i,G.yy),G.yy.lexer=S,G.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var Ie=S.yylloc;t.push(Ie);var We=S.options&&S.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function je(T){l.length=l.length-2*T,E.length=E.length-T,t.length=t.length-T}f(je,"popStack");function Ue(){var T;return T=s.pop()||S.lex()||$e,typeof T!="number"&&(T instanceof Array&&(s=T,T=s.pop()),T=r.symbols_[T]||T),T}f(Ue,"lex");for(var I,z,q,Te,J={},ge,F,Ye,_e;;){if(z=l[l.length-1],this.defaultActions[z]?q=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),q=de[z]&&de[z][I]),typeof q>"u"||!q.length||!q[0]){var ke="";_e=[];for(ge in de[z])this.terminals_[ge]&&ge>He&&_e.push("'"+this.terminals_[ge]+"'");S.showPosition?ke="Parse error on line "+(ye+1)+`:
|
|
2
2
|
`+S.showPosition()+`
|
|
3
3
|
Expecting `+_e.join(", ")+", got '"+(this.terminals_[I]||I)+"'":ke="Parse error on line "+(ye+1)+": Unexpected "+(I==$e?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(ke,{text:S.match,token:this.terminals_[I]||I,line:S.yylineno,loc:Ie,expected:_e})}if(q[0]instanceof Array&&q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(q[0]){case 1:l.push(I),E.push(S.yytext),t.push(S.yylloc),l.push(q[1]),I=null,Pe=S.yyleng,n=S.yytext,ye=S.yylineno,Ie=S.yylloc;break;case 2:if(F=this.productions_[q[1]][1],J.$=E[E.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},We&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),Te=this.performAction.apply(J,[n,Pe,ye,G.yy,q[1],E,t].concat(Ke)),typeof Te<"u")return Te;F&&(l=l.slice(0,-1*F*2),E=E.slice(0,-1*F),t=t.slice(0,-1*F)),l.push(this.productions_[q[1]][0]),E.push(J.$),t.push(J._$),Ye=de[l[l.length-2]][l[l.length-1]],l.push(Ye);break;case 3:return!0}}return!0},"parse")},Qe=function(){var P={EOF:1,parseError:f(function(r,l){if(this.yy.parser)this.yy.parser.parseError(r,l);else throw new Error(r)},"parseError"),setInput:f(function(i,r){return this.yy=r||this.yy||{},this._input=i,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:f(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var r=i.match(/(?:\r\n?|\n).*/g);return r?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:f(function(i){var r=i.length,l=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-r),this.offset-=r;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.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:l?(l.length===s.length?this.yylloc.first_column:0)+s[s.length-l.length].length-l[0].length:this.yylloc.first_column-r},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-r]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(i){this.unput(this.match.slice(i))},"less"),pastInput:f(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var i=this.pastInput(),r=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as sn,$ as on,a0 as fn}from"./
|
|
1
|
+
import{M as ln,N as an,O as Y,P as O,Q,R as un,S as y,T as tn,V as j,W as _,X as rn,Y as o,Z as sn,$ as on,a0 as fn}from"./Dzy2Amcc.js";function cn(l){return l.innerRadius}function yn(l){return l.outerRadius}function gn(l){return l.startAngle}function dn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,h,D,S,v,R,V,a){var E=D-l,i=S-h,n=V-v,d=a-R,u=d*E-n*i;if(!(u*u<y))return u=(n*(h-R)-d*(l-v))/u,[l+u*E,h+u*i]}function H(l,h,D,S,v,R,V){var a=l-D,E=h-S,i=(V?R:-R)/j(a*a+E*E),n=i*E,d=-i*a,u=l+n,s=h+d,f=D+n,c=S+d,W=(u+f)/2,t=(s+c)/2,m=f-u,g=c-s,A=m*m+g*g,T=v-R,P=u*c-f*s,I=(g<0?-1:1)*j(on(0,T*T*A-P*P)),M=(P*g-m*I)/A,N=(-P*m-g*I)/A,w=(P*g+m*I)/A,p=(-P*m+g*I)/A,x=M-W,e=N-t,r=w-W,X=p-t;return x*x+e*e>r*r+X*X&&(M=w,N=p),{cx:M,cy:N,x01:-n,y01:-d,x11:M*(v/T-1),y11:N*(v/T-1)}}function hn(){var l=cn,h=yn,D=Q(0),S=null,v=gn,R=dn,V=mn,a=null,E=ln(i);function i(){var n,d,u=+l.apply(this,arguments),s=+h.apply(this,arguments),f=v.apply(this,arguments)-un,c=R.apply(this,arguments)-un,W=rn(c-f),t=c>f;if(a||(a=n=E()),s<u&&(d=s,s=u,u=d),!(s>y))a.moveTo(0,0);else if(W>tn-y)a.moveTo(s*Y(f),s*O(f)),a.arc(0,0,s,f,c,!t),u>y&&(a.moveTo(u*Y(c),u*O(c)),a.arc(0,0,u,c,f,t));else{var m=f,g=c,A=f,T=c,P=W,I=W,M=V.apply(this,arguments)/2,N=M>y&&(S?+S.apply(this,arguments):j(u*u+s*s)),w=_(rn(s-u)/2,+D.apply(this,arguments)),p=w,x=w,e,r;if(N>y){var X=sn(N/u*O(M)),z=sn(N/s*O(M));(P-=X*2)>y?(X*=t?1:-1,A+=X,T-=X):(P=0,A=T=(f+c)/2),(I-=z*2)>y?(z*=t?1:-1,m+=z,g-=z):(I=0,m=g=(f+c)/2)}var Z=s*Y(m),$=s*O(m),B=u*Y(T),C=u*O(T);if(w>y){var F=s*Y(g),G=s*O(g),J=u*Y(A),K=u*O(A),q;if(W<an)if(q=pn(Z,$,J,K,F,G,B,C)){var L=Z-q[0],U=$-q[1],k=F-q[0],b=G-q[1],nn=1/O(fn((L*k+U*b)/(j(L*L+U*U)*j(k*k+b*b)))/2),en=j(q[0]*q[0]+q[1]*q[1]);p=_(w,(u-en)/(nn-1)),x=_(w,(s-en)/(nn+1))}else p=x=0}I>y?x>y?(e=H(J,K,Z,$,s,x,t),r=H(F,G,B,C,s,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,x,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,s,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),!t),a.arc(r.cx,r.cy,x,o(r.y11,r.x11),o(r.y01,r.x01),!t))):(a.moveTo(Z,$),a.arc(0,0,s,m,g,!t)):a.moveTo(Z,$),!(u>y)||!(P>y)?a.lineTo(B,C):p>y?(e=H(B,C,F,G,u,-p,t),r=H(Z,$,J,K,u,-p,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),p<w?a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(r.y01,r.x01),!t):(a.arc(e.cx,e.cy,p,o(e.y01,e.x01),o(e.y11,e.x11),!t),a.arc(0,0,u,o(e.cy+e.y11,e.cx+e.x11),o(r.cy+r.y11,r.cx+r.x11),t),a.arc(r.cx,r.cy,p,o(r.y11,r.x11),o(r.y01,r.x01),!t))):a.arc(0,0,u,T,A,t)}if(a.closePath(),n)return a=null,n+""||null}return i.centroid=function(){var n=(+l.apply(this,arguments)+ +h.apply(this,arguments))/2,d=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[Y(d)*n,O(d)*n]},i.innerRadius=function(n){return arguments.length?(l=typeof n=="function"?n:Q(+n),i):l},i.outerRadius=function(n){return arguments.length?(h=typeof n=="function"?n:Q(+n),i):h},i.cornerRadius=function(n){return arguments.length?(D=typeof n=="function"?n:Q(+n),i):D},i.padRadius=function(n){return arguments.length?(S=n==null?null:typeof n=="function"?n:Q(+n),i):S},i.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:Q(+n),i):v},i.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:Q(+n),i):R},i.padAngle=function(n){return arguments.length?(V=typeof n=="function"?n:Q(+n),i):V},i.context=function(n){return arguments.length?(a=n??null,i):a},i}export{hn as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as c,l as te,c as W,L as fe,ah as ye,ai as be,aj as me,ac as _e,I as Y,i as G,v as ke,J as Ee,ad as Se,ae as le,af as ce}from"./
|
|
1
|
+
import{_ as c,l as te,c as W,L as fe,ah as ye,ai as be,aj as me,ac as _e,I as Y,i as G,v as ke,J as Ee,ad as Se,ae as le,af as ce}from"./Dzy2Amcc.js";import{g as Ne}from"./CM7fDldV.js";import"./DD6NieRw.js";var $=function(){var t=c(function(_,s,n,a){for(n=n||{},a=_.length;a--;n[_[a]]=s);return n},"o"),g=[1,4],d=[1,13],r=[1,12],p=[1,15],k=[1,16],f=[1,20],h=[1,19],L=[6,7,8],C=[1,26],w=[1,24],N=[1,25],i=[6,7,11],j=[1,31],x=[6,7,11,24],P=[1,6,13,16,17,20,23],M=[1,35],U=[1,36],A=[1,6,7,11,13,16,17,20,23],H=[1,38],V={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:c(function(s,n,a,o,u,e,B){var l=e.length-1;switch(u){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",e[l-1].id),o.addNode(e[l-2].length,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 16:o.getLogger().info("Node: ",e[l].id),o.addNode(e[l-1].length,e[l].id,e[l].descr,e[l].type);break;case 17:o.getLogger().trace("Icon: ",e[l]),o.decorateNode({icon:e[l]});break;case 18:case 23:o.decorateNode({class:e[l]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",e[l-1].id),o.addNode(0,e[l-1].id,e[l-1].descr,e[l-1].type,e[l]);break;case 21:o.getLogger().trace("Node: ",e[l].id),o.addNode(0,e[l].id,e[l].descr,e[l].type);break;case 22:o.decorateNode({icon:e[l]});break;case 27:o.getLogger().trace("node found ..",e[l-2]),this.$={id:e[l-1],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 28:this.$={id:e[l],descr:e[l],type:0};break;case 29:o.getLogger().trace("node found ..",e[l-3]),this.$={id:e[l-3],descr:e[l-1],type:o.getType(e[l-2],e[l])};break;case 30:this.$=e[l-1]+e[l];break;case 31:this.$=e[l];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:g},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:g},{6:d,7:[1,10],9:9,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(L,[2,3]),{1:[2,2]},t(L,[2,4]),t(L,[2,5]),{1:[2,6],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:d,9:22,12:11,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},{6:C,7:w,10:23,11:N},t(i,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:f,23:h}),t(i,[2,19]),t(i,[2,21],{15:30,24:j}),t(i,[2,22]),t(i,[2,23]),t(x,[2,25]),t(x,[2,26]),t(x,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:w,10:34,11:N},{1:[2,7],6:d,12:21,13:r,14:14,16:p,17:k,18:17,19:18,20:f,23:h},t(P,[2,14],{7:M,11:U}),t(A,[2,8]),t(A,[2,9]),t(A,[2,10]),t(i,[2,16],{15:37,24:j}),t(i,[2,17]),t(i,[2,18]),t(i,[2,20],{24:H}),t(x,[2,31]),{21:[1,39]},{22:[1,40]},t(P,[2,13],{7:M,11:U}),t(A,[2,11]),t(A,[2,12]),t(i,[2,15],{24:H}),t(x,[2,30]),{22:[1,41]},t(x,[2,27]),t(x,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:c(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:c(function(s){var n=this,a=[0],o=[],u=[null],e=[],B=this.table,l="",z=0,ie=0,ue=2,re=1,ge=e.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(T.yy[J]=this.yy[J]);b.setInput(s,T.yy),T.yy.lexer=b,T.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;e.push(q);var de=b.options&&b.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){a.length=a.length-2*S,u.length=u.length-S,e.length=e.length-S}c(pe,"popStack");function ae(){var S;return S=o.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(o=S,S=o.pop()),S=n.symbols_[S]||S),S}c(ae,"lex");for(var E,R,v,Q,F={},X,I,oe,K;;){if(R=a[a.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((E===null||typeof E>"u")&&(E=ae()),v=B[R]&&B[R][E]),typeof v>"u"||!v.length||!v[0]){var Z="";K=[];for(X in B[R])this.terminals_[X]&&X>ue&&K.push("'"+this.terminals_[X]+"'");b.showPosition?Z="Parse error on line "+(z+1)+`:
|
|
2
2
|
`+b.showPosition()+`
|
|
3
3
|
Expecting `+K.join(", ")+", got '"+(this.terminals_[E]||E)+"'":Z="Parse error on line "+(z+1)+": Unexpected "+(E==re?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[E]||E,line:b.yylineno,loc:q,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+E);switch(v[0]){case 1:a.push(E),u.push(b.yytext),e.push(b.yylloc),a.push(v[1]),E=null,ie=b.yyleng,l=b.yytext,z=b.yylineno,q=b.yylloc;break;case 2:if(I=this.productions_[v[1]][1],F.$=u[u.length-I],F._$={first_line:e[e.length-(I||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(I||1)].first_column,last_column:e[e.length-1].last_column},de&&(F._$.range=[e[e.length-(I||1)].range[0],e[e.length-1].range[1]]),Q=this.performAction.apply(F,[l,ie,z,T.yy,v[1],u,e].concat(ge)),typeof Q<"u")return Q;I&&(a=a.slice(0,-1*I*2),u=u.slice(0,-1*I),e=e.slice(0,-1*I)),a.push(this.productions_[v[1]][0]),u.push(F.$),e.push(F._$),oe=B[a[a.length-2]][a[a.length-1]],a.push(oe);break;case 3:return!0}}return!0},"parse")},m=function(){var _={EOF:1,parseError:c(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:c(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:c(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=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),a.length-1&&(this.yylineno-=a.length-1);var u=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:a?(a.length===o.length?this.yylloc.first_column:0)+o[o.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(s){this.unput(this.match.slice(s))},"less"),pastInput:c(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as X,an as j,ao as F,ap as Y,aq as H,l as i,c as V,ar as q,as as U,ai as $,at as z,aj as P,ah as K,au as Q,av as W,aw as Z}from"./
|
|
1
|
+
import{_ as X,an as j,ao as F,ap as Y,aq as H,l as i,c as V,ar as q,as as U,ai as $,at as z,aj as P,ah as K,au as Q,av as W,aw as Z}from"./Dzy2Amcc.js";import{i as x,G as B}from"./qsFoMdT2.js";import{b as L,m as A,l as I}from"./CQb_mUBo.js";import"./DD6NieRw.js";var ee=4;function ne(e){return L(e,ee)}function p(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:te(e),edges:se(e)};return x(e.graph())||(t.value=ne(e.graph())),t}function te(e){return A(e.nodes(),function(t){var n=e.node(t),o=e.parent(t),c={v:t};return x(n)||(c.value=n),x(o)||(c.parent=o),c})}function se(e){return A(e.edges(),function(t){var n=e.edge(t),o={v:t.v,w:t.w};return x(t.name)||(o.name=t.name),x(n)||(o.value=n),o})}var f=new Map,b=new Map,G=new Map,ie=X(()=>{b.clear(),G.clear(),f.clear()},"clear"),O=X((e,t)=>{const n=b.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),re=X((e,t)=>{const n=b.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||O(e.v,t)||O(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),J=X((e,t,n,o)=>{i.warn("Copying children of ",e,"root",o,"data",t.node(e),o);const c=t.children(e)||[];e!==o&&c.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",c),c.forEach(a=>{if(t.children(a).length>0)J(a,t,n,o);else{const r=t.node(a);i.info("cp ",a," to ",o," with parent ",e),n.setNode(a,r),o!==t.parent(a)&&(i.warn("Setting parent",a,t.parent(a)),n.setParent(a,t.parent(a))),e!==o&&a!==e?(i.debug("Setting parent",a,e),n.setParent(a,e)):(i.info("In copy ",e,"root",o,"data",t.node(e),o),i.debug("Not Setting parent for node=",a,"cluster!==rootId",e!==o,"node!==clusterId",a!==e));const u=t.edges(a);i.debug("Copying Edges",u),u.forEach(l=>{i.info("Edge",l);const h=t.edge(l.v,l.w,l.name);i.info("Edge data",h,o);try{re(l,o)?(i.info("Copying as ",l.v,l.w,h,l.name),n.setEdge(l.v,l.w,h,l.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",l.v,"-->",l.w," rootId: ",o," clusterId:",e)}catch(C){i.error(C)}})}i.debug("Removing node",a),t.removeNode(a)})},"copy"),R=X((e,t)=>{const n=t.children(e);let o=[...n];for(const c of n)G.set(c,e),o=[...o,...R(c,t)];return o},"extractDescendants"),oe=X((e,t,n)=>{const o=e.edges().filter(l=>l.v===t||l.w===t),c=e.edges().filter(l=>l.v===n||l.w===n),a=o.map(l=>({v:l.v===t?n:l.v,w:l.w===t?t:l.w})),r=c.map(l=>({v:l.v,w:l.w}));return a.filter(l=>r.some(h=>l.v===h.v&&l.w===h.w))},"findCommonEdges"),D=X((e,t,n)=>{const o=t.children(e);if(i.trace("Searching children of id ",e,o),o.length<1)return e;let c;for(const a of o){const r=D(a,t,n),u=oe(t,n,r);if(r)if(u.length>0)c=r;else return r}return c},"findNonClusterChild"),k=X(e=>!f.has(e)||!f.get(e).externalConnections?e:f.has(e)?f.get(e).id:e,"getAnchorId"),ae=X((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",D(n,e,n)),b.set(n,R(n,e)),f.set(n,{id:D(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){const o=e.children(n),c=e.edges();o.length>0?(i.debug("Cluster identified",n,b),c.forEach(a=>{const r=O(a.v,n),u=O(a.w,n);r^u&&(i.warn("Edge: ",a," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",b.get(n)),f.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,b)});for(let n of f.keys()){const o=f.get(n).id,c=e.parent(o);c!==n&&f.has(c)&&!f.get(c).externalConnections&&(f.get(n).id=c)}e.edges().forEach(function(n){const o=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let c=n.v,a=n.w;if(i.warn("Fix XXX",f,"ids:",n.v,n.w,"Translating: ",f.get(n.v)," --- ",f.get(n.w)),f.get(n.v)||f.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),c=k(n.v),a=k(n.w),e.removeEdge(n.v,n.w,n.name),c!==n.v){const r=e.parent(c);f.get(r).externalConnections=!0,o.fromCluster=n.v}if(a!==n.w){const r=e.parent(a);f.get(r).externalConnections=!0,o.toCluster=n.w}i.warn("Fix Replacing with XXX",c,a,n.name),e.setEdge(c,a,o,n.name)}}),i.warn("Adjusted Graph",p(e)),T(e,0),i.trace(f)},"adjustClustersAndEdges"),T=X((e,t)=>{var c,a;if(i.warn("extractor - ",t,p(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),o=!1;for(const r of n){const u=e.children(r);o=o||u.length>0}if(!o){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(const r of n)if(i.debug("Extracting node",r,f,f.has(r)&&!f.get(r).externalConnections,!e.parent(r),e.node(r),e.children("D")," Depth ",t),!f.has(r))i.debug("Not a cluster",r,t);else if(!f.get(r).externalConnections&&e.children(r)&&e.children(r).length>0){i.warn("Cluster without external connections, without a parent and with children",r,t);let l=e.graph().rankdir==="TB"?"LR":"TB";(a=(c=f.get(r))==null?void 0:c.clusterData)!=null&&a.dir&&(l=f.get(r).clusterData.dir,i.warn("Fixing dir",f.get(r).clusterData.dir,l));const h=new B({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",p(e)),J(r,e,h,r),e.setNode(r,{clusterNode:!0,id:r,clusterData:f.get(r).clusterData,label:f.get(r).label,graph:h}),i.warn("New graph after copy node: (",r,")",p(h)),i.debug("Old graph after copy",p(e))}else i.warn("Cluster ** ",r," **not meeting the criteria !externalConnections:",!f.get(r).externalConnections," no parent: ",!e.parent(r)," children ",e.children(r)&&e.children(r).length>0,e.children("D"),t),i.debug(f);n=e.nodes(),i.warn("New list of nodes",n);for(const r of n){const u=e.node(r);i.warn(" Now next level",r,u),u!=null&&u.clusterNode&&T(u.graph,t+1)}},"extractor"),M=X((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(o=>{const c=e.children(o),a=M(e,c);n=[...n,...a]}),n},"sorter"),ce=X(e=>M(e,e.children()),"sortNodesByHierarchy"),_=X(async(e,t,n,o,c,a)=>{i.warn("Graph in recursive render:XAX",p(t),c);const r=t.graph().rankdir;i.trace("Dir in recursive render - dir:",r);const u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));const l=u.insert("g").attr("class","clusters"),h=u.insert("g").attr("class","edgePaths"),C=u.insert("g").attr("class","edgeLabels"),g=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(d){const s=t.node(d);if(c!==void 0){const w=JSON.parse(JSON.stringify(c.clusterData));i.trace(`Setting data for parent cluster XXX
|
|
2
2
|
Node.id = `,d,`
|
|
3
3
|
data=`,w.height,`
|
|
4
4
|
Parent cluster`,c.height),t.setNode(c.id,w),t.parent(d)||(i.trace("Setting parent",d,c.id),t.setParent(d,c.id,w))}if(i.info("(Insert) Node XXX"+d+": "+JSON.stringify(t.node(d))),s!=null&&s.clusterNode){i.info("Cluster identified XBX",d,s.width,t.node(d));const{ranksep:w,nodesep:m}=t.graph();s.graph.setGraph({...s.graph.graph(),ranksep:w+25,nodesep:m});const N=await _(g,s.graph,n,o,t.node(d),a),S=N.elem;q(s,S),s.diff=N.diff||0,i.info("New compound node after recursive render XAX",d,"width",s.width,"height",s.height),U(S,s)}else t.children(d).length>0?(i.trace("Cluster - the non recursive path XBX",d,s.id,s,s.width,"Graph:",t),i.trace(D(s.id,t)),f.set(s.id,{id:D(s.id,t),node:s})):(i.trace("Node - the non recursive path XAX",d,g,t.node(d),r),await $(g,t.node(d),{config:a,dir:r}))})),await X(async()=>{const d=t.edges().map(async function(s){const w=t.edge(s.v,s.w,s.name);i.info("Edge "+s.v+" -> "+s.w+": "+JSON.stringify(s)),i.info("Edge "+s.v+" -> "+s.w+": ",s," ",JSON.stringify(t.edge(s))),i.info("Fix",f,"ids:",s.v,s.w,"Translating: ",f.get(s.v),f.get(s.w)),await Z(C,w)});await Promise.all(d)},"processEdges")(),i.info("Graph before layout:",JSON.stringify(p(t))),i.info("############################################# XXX"),i.info("### Layout ### XXX"),i.info("############################################# XXX"),I(t),i.info("Graph after layout:",JSON.stringify(p(t)));let E=0,{subGraphTitleTotalMargin:y}=z(a);return await Promise.all(ce(t).map(async function(d){var w;const s=t.node(d);if(i.info("Position XBX => "+d+": ("+s.x,","+s.y,") width: ",s.width," height: ",s.height),s!=null&&s.clusterNode)s.y+=y,i.info("A tainted cluster node XBX1",d,s.id,s.width,s.height,s.x,s.y,t.parent(d)),f.get(s.id).node=s,P(s);else if(t.children(d).length>0){i.info("A pure cluster node XBX1",d,s.id,s.x,s.y,s.width,s.height,t.parent(d)),s.height+=y,t.node(s.parentId);const m=(s==null?void 0:s.padding)/2||0,N=((w=s==null?void 0:s.labelBBox)==null?void 0:w.height)||0,S=N-m||0;i.debug("OffsetY",S,"labelHeight",N,"halfPadding",m),await K(l,s),f.get(s.id).node=s}else{const m=t.node(s.parentId);s.y+=y/2,i.info("A regular node XBX1 - using the padding",s.id,"parent",s.parentId,s.width,s.height,s.x,s.y,"offsetY",s.offsetY,"parent",m,m==null?void 0:m.offsetY,s),P(s)}})),t.edges().forEach(function(d){const s=t.edge(d);i.info("Edge "+d.v+" -> "+d.w+": "+JSON.stringify(s),s),s.points.forEach(S=>S.y+=y/2);const w=t.node(d.v);var m=t.node(d.w);const N=Q(h,s,f,n,w,m,o);W(s,N)}),t.nodes().forEach(function(d){const s=t.node(d);i.info(d,s.type,s.diff),s.isGroup&&(E=s.diff)}),i.warn("Returning from recursive render XAX",u,E),{elem:u,diff:E}},"recursiveRender"),ge=X(async(e,t)=>{var a,r,u,l,h,C;const n=new B({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:((a=e.config)==null?void 0:a.nodeSpacing)||((u=(r=e.config)==null?void 0:r.flowchart)==null?void 0:u.nodeSpacing)||e.nodeSpacing,ranksep:((l=e.config)==null?void 0:l.rankSpacing)||((C=(h=e.config)==null?void 0:h.flowchart)==null?void 0:C.rankSpacing)||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),o=t.select("g");j(o,e.markers,e.type,e.diagramId),F(),Y(),H(),ie(),e.nodes.forEach(g=>{n.setNode(g.id,{...g}),g.parentId&&n.setParent(g.id,g.parentId)}),i.debug("Edges:",e.edges),e.edges.forEach(g=>{if(g.start===g.end){const v=g.start,E=v+"---"+v+"---1",y=v+"---"+v+"---2",d=n.node(v);n.setNode(E,{domId:E,id:E,parentId:d.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(E,d.parentId),n.setNode(y,{domId:y,id:y,parentId:d.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(y,d.parentId);const s=structuredClone(g),w=structuredClone(g),m=structuredClone(g);s.label="",s.arrowTypeEnd="none",s.id=v+"-cyclic-special-1",w.arrowTypeStart="none",w.arrowTypeEnd="none",w.id=v+"-cyclic-special-mid",m.label="",d.isGroup&&(s.fromCluster=v,m.toCluster=v),m.id=v+"-cyclic-special-2",m.arrowTypeStart="none",n.setEdge(v,E,s,v+"-cyclic-special-0"),n.setEdge(E,y,w,v+"-cyclic-special-1"),n.setEdge(y,v,m,v+"-cyc<lic-special-2")}else n.setEdge(g.start,g.end,{...g},g.id)}),i.warn("Graph at first:",JSON.stringify(p(n))),ae(n),i.warn("Graph after XAX:",JSON.stringify(p(n)));const c=V();await _(o,n,e.type,e.diagramId,void 0,c)},"render");export{ge as render};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,G as f,
|
|
1
|
+
import{r as o,G as f,i as b}from"./DD6NieRw.js";const y=t=>{const a=o(!1),e=o(null),r=o([]),i=async()=>{if(!t.value){e.value="No database connection provided";return}a.value=!0,e.value=null;try{const n=await $fetch("/api/database-roles/get-roles",{method:"POST",body:{...f(t.value)}});r.value=n}catch(n){e.value=n instanceof Error?n.message:"Failed to fetch roles",console.error("Error fetching database roles:",n)}finally{a.value=!1}},s=()=>i(),d=b(()=>{const n=[],l=[],c=[];for(const u of r.value)u.isSuperuser?n.push(u):u.canLogin?l.push(u):c.push(u);return{superusers:n,users:l,roles:c}});return{isLoading:a,error:e,roles:r,categorizedRoles:d,fetchRoles:i,refresh:s}},P=t=>{const a=o(!1),e=o(!1),r=o(null),i=n=>{const l="control plane:",c=n.indexOf(l);if(c===-1)return null;const u=n.slice(c+l.length).trim(),m=u.indexOf("{"),v=u.lastIndexOf("}");if(m===-1||v===-1)return null;const p=u.slice(m,v+1);try{const h=JSON.parse(p);if(h!=null&&h.error&&typeof h.error=="string")return h.error}catch{return null}return null};return{isCreating:a,isDeleting:e,error:r,createRole:async n=>{var l;if(!t.value)return r.value="No database connection provided",null;a.value=!0,r.value=null;try{return await $fetch("/api/database-roles/create-role",{method:"POST",body:{...n,...f(t.value)}})}catch(c){const u=((l=c==null?void 0:c.data)==null?void 0:l.message)||(c instanceof Error?c.message:"Failed to create role"),v=i(u)||u.replace(/^Failed to create role:\s*/i,"").trim();return r.value=v,console.error("Error creating role:",c),{success:!1,message:v,sql:""}}finally{a.value=!1}},deleteRole:async n=>{if(!t.value)return r.value="No database connection provided",null;e.value=!0,r.value=null;try{return await $fetch("/api/database-roles/delete-role",{method:"POST",body:{...f(t.value),roleName:n}})}catch(l){return r.value=l instanceof Error?l.message:"Failed to delete role",console.error("Error deleting role:",l),null}finally{e.value=!1}}}},E=t=>{const a=o(!1),e=o(null),r=o([]);return{isLoading:a,error:e,databasePermissions:r,fetchDatabasePermissions:async s=>{if(!t.value||!s){e.value="Missing connection or role name";return}a.value=!0,e.value=null;try{const d=await $fetch("/api/database-roles/get-databases-with-permissions",{method:"POST",body:{...f(t.value),roleName:s}});r.value=d}catch(d){e.value=d instanceof Error?d.message:"Failed to fetch database permissions",console.error("Error fetching database permissions:",d)}finally{a.value=!1}}}},O=t=>{const a=o(!1),e=o(null),r=o([]);return{isLoading:a,error:e,databases:r,fetchDatabases:async()=>{if(!t.value){e.value="No database connection provided";return}a.value=!0,e.value=null;try{const s=await $fetch("/api/database-roles/get-databases",{method:"POST",body:{...f(t.value)}});r.value=s}catch(s){e.value=s instanceof Error?s.message:"Failed to fetch databases",console.error("Error fetching databases:",s)}finally{a.value=!1}}}},S=t=>{const a=o(!1),e=o(null),r=o([]);return{isLoading:a,error:e,schemas:r,fetchSchemas:async()=>{if(!t.value){e.value="No database connection provided";return}a.value=!0,e.value=null;try{const s=await $fetch("/api/database-roles/get-schemas",{method:"POST",body:{...f(t.value)}});r.value=s}catch(s){e.value=s instanceof Error?s.message:"Failed to fetch schemas",console.error("Error fetching schemas:",s)}finally{a.value=!1}}}},w=t=>{const a=o(!1),e=o(null);return{isGranting:a,error:e,grantBulkPermissions:async i=>{if(!t.value)return e.value="No database connection provided",null;a.value=!0,e.value=null;try{return await $fetch("/api/database-roles/grant-bulk-permissions",{method:"POST",body:{...i,...f(t.value)}})}catch(s){return e.value=s instanceof Error?s.message:"Failed to grant permissions",console.error("Error granting bulk permissions:",s),null}finally{a.value=!1}}}};export{y as a,P as b,O as c,S as d,w as e,E as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ar as m,D as a,
|
|
1
|
+
import{ar as m,D as a,_ as f,as as ie,W as le,X as r,at as N,r as E,au as G,av as y,aw as B,ax as T,h as ce,i as v,a8 as ue,am as O,ay as de,az as he,aA as D}from"./DD6NieRw.js";const Se=[{type:a.POSTGRES,name:"PostgreSQL",icon:m(f,{name:"logos:postgresql"}),isSupport:!0,description:"Relational SQL workflows"},{type:a.MYSQL,name:"MySQL",icon:m(f,{name:"logos:mysql"}),isSupport:!0,isBeta:!0,description:"Relational SQL workflows"},{type:a.MARIADB,name:"MariaDB",icon:m(f,{name:"logos:mariadb-icon"}),isSupport:!0,isBeta:!0,description:"Relational SQL workflows"},{type:a.ORACLE,name:"Oracle",icon:m(f,{name:"simple-icons:oracle",class:"text-red-500"}),isSupport:!1,unsupportedLabel:"Coming soon",description:"Relational SQL workflows"},{type:a.SQLITE3,name:"SQLite",icon:m(f,{name:"file-icons:sqlite"}),isSupport:!0,isBeta:!0,description:"Local file, Cloudflare D1, Turso"},{type:a.REDIS,name:"Redis",icon:m(f,{name:"logos:redis"}),isSupport:!0,isBeta:!0,description:"Browser, workbench, analysis"},{type:a.MSSQL,name:"SQL Server",icon:m(f,{name:"simple-icons:microsoftsqlserver"}),isSupport:!1,unsupportedLabel:"Coming soon"},{type:a.SNOWFLAKE,name:"Snowflake",icon:m(f,{name:"simple-icons:snowflake"}),isSupport:!1,unsupportedLabel:"Coming soon"}],ve={[a.MYSQL2]:a.MYSQL,[a.BETTER_SQLITE3]:a.SQLITE3},pe={[a.POSTGRES]:"5432",[a.MYSQL]:"3306",[a.MARIADB]:"3306",[a.MYSQL2]:"3306",[a.REDIS]:"6379",[a.MSSQL]:"1433",[a.ORACLE]:"1521",[a.BETTER_SQLITE3]:"0",[a.SQLITE3]:"0",[a.SNOWFLAKE]:"443"},Te=t=>{const u=ve[t]??t;return Se.find(d=>d.type===u)},Re=t=>t!==!1&&t!=="false"&&t!=="0",we=(t,u)=>t.type===a.SQLITE3&&!u;function me(t){const u=ie({type:t.type,method:t.method,providerKind:"providerKind"in t?t.providerKind:void 0,managedSqlite:"managedSqlite"in t?t.managedSqlite:void 0}),d=le({type:t.type,method:t.method,providerKind:u,managedSqlite:"managedSqlite"in t?t.managedSqlite:void 0});return t.method===r.MANAGED?{...t,providerKind:u,family:d}:{...t,providerKind:u,family:d}}const fe={healthCheck:t=>$fetch("/api/managment-connection/health-check",{method:"POST",body:me(t)})},Ee=new Set([r.STRING,r.FORM]),_=t=>t?t===a.SQLITE3?[r.FILE,r.MANAGED]:[r.STRING,r.FORM]:[],w=()=>({provider:T.CLOUDFLARE_D1,accountId:"",databaseId:"",databaseName:"",apiToken:"",url:"",authToken:"",branchName:""}),Y=t=>t===T.TURSO?D.TURSO:D.CLOUDFLARE_D1,ge=t=>t===a.ORACLE?"serviceName":"database",Le=t=>{switch(t){case a.POSTGRES:return"postgresql";case a.MARIADB:return"mariadb";case a.ORACLE:return"oracledb";case a.REDIS:return"redis";case a.SNOWFLAKE:return"snowflake";case a.MYSQL:case a.MYSQL2:return"mysql";default:return""}},be=t=>{const u=t.replace(/\\/g,"/");return`sqlite3://${u.startsWith("/")?"":"/"}${u}`},Ie=t=>{const u=t.split(/[\\/]/).pop()||"";return u.replace(/\.(sqlite3?|db3?)$/i,"")||u};function Ae(t){const u=N(t.open),d=N(t.editingConnection),$=N(t.workspaceId),b=E(1),c=E(a.POSTGRES),g=E("my-abc-db"),l=E(r.STRING),I=E(""),e=G({host:"",port:"",username:"",password:"",database:"",serviceName:"",filePath:"",sslEnabled:!1,sslMode:B.DISABLE,sslCA:"",sslCert:"",sslKey:"",sslRejectUnauthorized:!0,sshEnabled:!1,sshHost:"",sshPort:22,sshUsername:"",sshAuthMethod:y.PASSWORD,sshPassword:"",sshPrivateKey:"",sshStoreInKeychain:!0,sshUseKey:!1}),i=G(w()),A=E([]),h=E("idle"),p=E(""),j=ce(),W=v(()=>_(c.value)),C=v(()=>ue()),z=v(()=>l.value===r.FILE),K=v(()=>{var n;return c.value===a.SQLITE3&&C.value&&typeof window<"u"&&typeof((n=window.electronAPI)==null?void 0:n.window.pickSqliteFile)=="function"}),R=v(()=>ge(c.value)==="serviceName"),H=v(()=>R.value?"Service Name":"Database"),x=v(()=>R.value?"ORCLPDB1":"my_database"),M=v(()=>Ee.has(l.value)),L=n=>n&&pe[n]||"",V=()=>{const n=j.tags.find(o=>o.name==="dev");return n?[n.id]:[]},X=()=>{if(!(!e.sslEnabled||!M.value))return{mode:e.sslMode,ca:e.sslCA,cert:e.sslCert,key:e.sslKey,rejectUnauthorized:e.sslRejectUnauthorized}},J=()=>{if(!(!e.sshEnabled||!M.value))return{enabled:!0,host:e.sshHost,port:e.sshPort,username:e.sshUsername,authMethod:e.sshUseKey?y.KEY:y.PASSWORD,password:e.sshPassword,privateKey:e.sshPrivateKey,storeInKeychain:e.sshStoreInKeychain,useSshKey:e.sshUseKey}},k=()=>{const n={host:e.host,port:e.port||L(c.value),username:e.username,password:e.password,ssl:X(),ssh:J()};return R.value?n.serviceName=e.serviceName:n.database=e.database,n},q=()=>i.provider===T.TURSO?{provider:T.TURSO,url:i.url,authToken:i.authToken,branchName:i.branchName}:{provider:T.CLOUDFLARE_D1,accountId:i.accountId,databaseId:i.databaseId,databaseName:i.databaseName,apiToken:i.apiToken},Z=()=>{const n=Le(c.value),o=e.port||L(c.value),s=R.value?e.serviceName:e.database;if(!n||!e.host||!e.username||!s)return;const P=e.password?`${e.username}:${e.password}`:e.username;return`${n}://${P}@${e.host}${o?`:${o}`:""}/${s}`},ee=()=>{const n=c.value;if(!n)throw new Error("Database type is required.");return l.value===r.STRING?{type:n,method:r.STRING,stringConnection:I.value}:l.value===r.FILE?{type:a.SQLITE3,method:r.FILE,filePath:e.filePath}:l.value===r.MANAGED?{type:a.SQLITE3,method:r.MANAGED,providerKind:Y(i.provider),managedSqlite:q()}:{type:n,method:r.FORM,...k()}},Q=()=>{b.value=1,c.value=a.POSTGRES,g.value="my-abc-db",l.value=r.STRING,I.value="",e.host="",e.port=L(a.POSTGRES),e.username="",e.password="",e.database="",e.serviceName="",e.filePath="",e.sslEnabled=!1,e.sslMode=B.DISABLE,e.sslCA="",e.sslCert="",e.sslKey="",e.sslRejectUnauthorized=!0,e.sshEnabled=!1,e.sshHost="",e.sshPort=22,e.sshUsername="",e.sshAuthMethod=y.PASSWORD,e.sshPassword="",e.sshPrivateKey="",e.sshStoreInKeychain=!0,e.sshUseKey=!1,Object.assign(i,w()),A.value=V(),h.value="idle",p.value=""},se=()=>{b.value===1&&c.value&&(b.value=2)},ae=()=>{b.value=1,h.value="idle",p.value=""},F=async()=>{var n;if(l.value===r.FILE&&!C.value)return h.value="error",p.value="SQLite file connections are available only in the desktop app.",!1;h.value="testing",p.value="";try{const o=await fe.healthCheck(ee());return o.isConnectedSuccess?(h.value="success",p.value="",!0):(h.value="error",p.value=o.message||"Connection failed. Please check your details and try again.",!1)}catch(o){return h.value="error",p.value=((n=o==null?void 0:o.data)==null?void 0:n.message)||(o==null?void 0:o.message)||"Connection failed. Please check your details and try again.",!1}},te=async()=>{var P,U;const o=!!!d.value;if(o&&!await F())return;const s={workspaceId:$.value,id:((P=d.value)==null?void 0:P.id)||he(),name:g.value,type:c.value,method:l.value,createdAt:((U=d.value)==null?void 0:U.createdAt)||de().toISOString(),tagIds:[...A.value]};if(l.value===r.STRING)s.connectionString=I.value;else if(l.value===r.FILE)s.filePath=e.filePath,s.connectionString=be(e.filePath),s.providerKind=D.SQLITE_FILE;else if(l.value===r.MANAGED)s.providerKind=Y(i.provider),s.managedSqlite=q();else{const S=k();s.host=S.host,s.port=S.port,s.username=S.username,s.password=S.password,s.database=S.database,s.serviceName=S.serviceName,s.ssl=S.ssl,s.ssh=S.ssh,s.connectionString=Z()}o?t.onAddNew(s):t.onUpdate(s),t.onClose()},ne=()=>{switch(c.value){case a.POSTGRES:return"postgresql://username:password@localhost:5432/database";case a.MYSQL:case a.MYSQL2:return"mysql://username:password@localhost:3306/database";case a.MARIADB:return"mariadb://username:password@localhost:3306/database";case a.ORACLE:return"oracledb://username:password@localhost:1521/ORCLPDB1";case a.REDIS:return"redis://username:password@localhost:6379";case a.SNOWFLAKE:return"snowflake://username:password@account.snowflakecomputing.com:443/database";case a.SQLITE3:return"/Users/you/data/app.sqlite";default:return""}},oe=async()=>{var o;if(!K.value)return;const n=await((o=window.electronAPI)==null?void 0:o.window.pickSqliteFile());n&&(e.filePath=n,!d.value&&g.value==="my-abc-db"&&(g.value=Ie(n)),h.value="idle")},re=v(()=>g.value?l.value===r.STRING?!!I.value:l.value===r.FILE?C.value&&!!e.filePath:l.value===r.MANAGED?i.provider===T.TURSO?!!(i.url&&i.authToken):!!(i.accountId&&i.databaseId&&i.apiToken):R.value?!!(e.host&&(e.port||L(c.value))&&e.username&&e.password&&e.serviceName):!!(e.host&&(e.port||L(c.value))&&e.username&&e.database):!1);return O(c,n=>{const o=_(n);o.length>0&&!o.includes(l.value)&&(l.value=o[0]),n===a.SQLITE3?(e.host="",e.port="",e.username="",e.password="",e.database="",e.serviceName="",e.sslEnabled=!1,e.sshEnabled=!1):(e.filePath="",Object.assign(i,w()),n!==a.ORACLE&&(e.serviceName=""),d.value||(e.port=L(n))),h.value="idle"}),O(l,n=>{n!==r.FILE&&(e.filePath=""),n!==r.MANAGED&&Object.assign(i,w()),h.value="idle"}),O(u,n=>{var o;if(n)if(d.value){const s=d.value;g.value=s.name,c.value=s.type,l.value=s.method,I.value=s.connectionString||"",e.host=s.host||"",e.port=s.port||"",e.username=s.username||"",e.password=s.password||"",e.database=s.database||"",e.serviceName=s.serviceName||"",e.filePath=s.filePath||"",Object.assign(i,{...w(),...s.managedSqlite??{}}),e.sslEnabled=!!s.ssl,s.ssl&&(e.sslMode=s.ssl.mode,e.sslCA=s.ssl.ca||"",e.sslCert=s.ssl.cert||"",e.sslKey=s.ssl.key||"",e.sslRejectUnauthorized=s.ssl.rejectUnauthorized??!0),e.sshEnabled=!!((o=s.ssh)!=null&&o.enabled),s.ssh&&(e.sshHost=s.ssh.host||"",e.sshPort=s.ssh.port||22,e.sshUsername=s.ssh.username||"",e.sshAuthMethod=s.ssh.authMethod||y.PASSWORD,e.sshPassword=s.ssh.password||"",e.sshPrivateKey=s.ssh.privateKey||"",e.sshStoreInKeychain=s.ssh.storeInKeychain??!0,e.sshUseKey=s.ssh.useSshKey??s.ssh.authMethod===y.KEY),A.value=[...s.tagIds??[]],b.value=2}else Q()},{immediate:!0}),{step:b,dbType:c,connectionName:g,connectionMethod:l,connectionString:I,formData:e,managedSqlite:i,tagIds:A,testStatus:h,testErrorMessage:p,handleNext:se,handleBack:ae,handleTestConnection:F,handleCreateConnection:te,getDefaultPort:()=>L(c.value),getConnectionPlaceholder:ne,availableConnectionMethods:W,structuredTargetLabel:H,structuredTargetPlaceholder:x,canUseNetworkOptions:M,canPickSqliteFile:K,isFileMethod:z,isFormValid:re,pickSqliteFile:oe,resetForm:Q}}export{we as a,Se as d,Te as g,Re as i,Ae as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as c}from"./ImQ5Dcjp.js";import{_}from"./B2Wngdut.js";import{d as g,c as d,a as e,b as x,e as n,w as a,t as m,f as s,u as i,o as p,_ as v}from"./DD6NieRw.js";import{_ as r}from"./Dcf3u1x9.js";const b={class:"p-2 flex flex-col items-center justify-center h-full"},k={key:0,class:"font-medium text-xl pt-2"},B={class:"text-muted-foreground text-sm"},C={class:"flex items-center pt-3 text-muted-foreground gap-0.5 text-sm"},y={class:"flex items-center pt-1 text-muted-foreground gap-0.5 text-sm"},N={class:"flex items-center pt-1 text-muted-foreground gap-0.5 text-sm"},V={class:"flex items-center pt-1 text-muted-foreground gap-0.5 text-sm"},A=g({__name:"WorkspaceEmptyState",props:{title:{default:void 0},description:{default:"Click on a database table from the sidebar to begin"}},setup(w){return(l,t)=>{const f=_,u=c,o=v;return p(),d("div",b,[e(u,{class:"rounded-2xl size-40"},{default:a(()=>[e(f,{src:"/logo.png",alt:"@unovue"})]),_:1}),l.title?(p(),d("div",k,m(l.title),1)):x("",!0),n("div",B,[s(m(l.description)+" ",1),e(o,{name:"hugeicons:artificial-intelligence-08",class:"size-4 min-w-4"})]),n("div",C,[e(o,{name:"hugeicons:settings-01"}),t[1]||(t[1]=s(" Open setting ")),e(i(r),{class:"pl-2"},{default:a(()=>t[0]||(t[0]=[s("(⌘,)")])),_:1})]),n("div",y,[e(o,{name:"hugeicons:command"}),t[3]||(t[3]=s(" Command Palette ")),e(i(r),{class:"pl-2"},{default:a(()=>t[2]||(t[2]=[s("(⌘K or ⌘P)")])),_:1})]),n("div",N,[e(o,{name:"hugeicons:sidebar-left"}),t[5]||(t[5]=s(" Toggle left sidebar ")),e(i(r),{class:"pl-2"},{default:a(()=>t[4]||(t[4]=[s("(⌘B)")])),_:1})]),n("div",V,[e(o,{name:"hugeicons:sidebar-right"}),t[7]||(t[7]=s(" Toggle right sidebar ")),e(i(r),{class:"pl-2"},{default:a(()=>t[6]||(t[6]=[s("(⌘⌥B)")])),_:1})])])}}});export{A as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aD as j,aE as p,aF as w,aG as D,aH as k}from"./
|
|
1
|
+
import{aD as j,aE as p,aF as w,aG as D,aH as k}from"./Dzy2Amcc.js";import{i as F}from"./Gi6I4Gst.js";import{e as g,f as q,a as z,b as B}from"./DX6XiGOO.js";function M(n,r){return n==null||r==null?NaN:n<r?-1:n>r?1:n>=r?0:NaN}function I(n,r){return n==null||r==null?NaN:r<n?-1:r>n?1:r>=n?0:NaN}function R(n){let r,t,e;n.length!==2?(r=M,t=(o,c)=>M(n(o),c),e=(o,c)=>n(o)-c):(r=n===M||n===I?n:P,t=n,e=n);function u(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<0?i=l+1:h=l}while(i<h)}return i}function f(o,c,i=0,h=o.length){if(i<h){if(r(c,c)!==0)return h;do{const l=i+h>>>1;t(o[l],c)<=0?i=l+1:h=l}while(i<h)}return i}function a(o,c,i=0,h=o.length){const l=u(o,c,i,h-1);return l>i&&e(o[l-1],c)>-e(o[l],c)?l-1:l}return{left:u,center:a,right:f}}function P(){return 0}function V(n){return n===null?NaN:+n}const $=R(M),x=$.right;R(V).center;const E=Math.sqrt(50),G=Math.sqrt(10),H=Math.sqrt(2);function v(n,r,t){const e=(r-n)/Math.max(0,t),u=Math.floor(Math.log10(e)),f=e/Math.pow(10,u),a=f>=E?10:f>=G?5:f>=H?2:1;let o,c,i;return u<0?(i=Math.pow(10,-u)/a,o=Math.round(n*i),c=Math.round(r*i),o/i<n&&++o,c/i>r&&--c,i=-i):(i=Math.pow(10,u)*a,o=Math.round(n/i),c=Math.round(r/i),o*i<n&&++o,c*i>r&&--c),c<o&&.5<=t&&t<2?v(n,r,t*2):[o,c,i]}function O(n,r,t){if(r=+r,n=+n,t=+t,!(t>0))return[];if(n===r)return[n];const e=r<n,[u,f,a]=e?v(r,n,t):v(n,r,t);if(!(f>=u))return[];const o=f-u+1,c=new Array(o);if(e)if(a<0)for(let i=0;i<o;++i)c[i]=(f-i)/-a;else for(let i=0;i<o;++i)c[i]=(f-i)*a;else if(a<0)for(let i=0;i<o;++i)c[i]=(u+i)/-a;else for(let i=0;i<o;++i)c[i]=(u+i)*a;return c}function y(n,r,t){return r=+r,n=+n,t=+t,v(n,r,t)[2]}function T(n,r,t){r=+r,n=+n,t=+t;const e=r<n,u=e?y(r,n,t):y(n,r,t);return(e?-1:1)*(u<0?1/-u:u)}function C(n,r){r||(r=[]);var t=n?Math.min(r.length,n.length):0,e=r.slice(),u;return function(f){for(u=0;u<t;++u)e[u]=n[u]*(1-f)+r[u]*f;return e}}function J(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}function K(n,r){var t=r?r.length:0,e=n?Math.min(t,n.length):0,u=new Array(e),f=new Array(t),a;for(a=0;a<e;++a)u[a]=d(n[a],r[a]);for(;a<t;++a)f[a]=r[a];return function(o){for(a=0;a<e;++a)f[a]=u[a](o);return f}}function L(n,r){var t=new Date;return n=+n,r=+r,function(e){return t.setTime(n*(1-e)+r*e),t}}function Q(n,r){var t={},e={},u;(n===null||typeof n!="object")&&(n={}),(r===null||typeof r!="object")&&(r={});for(u in r)u in n?t[u]=d(n[u],r[u]):e[u]=r[u];return function(f){for(u in t)e[u]=t[u](f);return e}}function d(n,r){var t=typeof r,e;return r==null||t==="boolean"?j(r):(t==="number"?p:t==="string"?(e=k(r))?(r=e,w):D:r instanceof k?w:r instanceof Date?L:J(r)?C:Array.isArray(r)?K:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?Q:p)(n,r)}function U(n,r){return n=+n,r=+r,function(t){return Math.round(n*(1-t)+r*t)}}function W(n){return Math.max(0,-g(Math.abs(n)))}function X(n,r){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(g(r)/3)))*3-g(Math.abs(n)))}function Y(n,r){return n=Math.abs(n),r=Math.abs(r)-n,Math.max(0,g(r)-g(n))+1}function Z(n){return function(){return n}}function _(n){return+n}var A=[0,1];function m(n){return n}function N(n,r){return(r-=n=+n)?function(t){return(t-n)/r}:Z(isNaN(r)?NaN:.5)}function b(n,r){var t;return n>r&&(t=n,n=r,r=t),function(e){return Math.max(n,Math.min(r,e))}}function nn(n,r,t){var e=n[0],u=n[1],f=r[0],a=r[1];return u<e?(e=N(u,e),f=t(a,f)):(e=N(e,u),f=t(f,a)),function(o){return f(e(o))}}function rn(n,r,t){var e=Math.min(n.length,r.length)-1,u=new Array(e),f=new Array(e),a=-1;for(n[e]<n[0]&&(n=n.slice().reverse(),r=r.slice().reverse());++a<e;)u[a]=N(n[a],n[a+1]),f[a]=t(r[a],r[a+1]);return function(o){var c=x(n,o,1,e)-1;return f[c](u[c](o))}}function en(n,r){return r.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown())}function tn(){var n=A,r=A,t=d,e,u,f,a=m,o,c,i;function h(){var s=Math.min(n.length,r.length);return a!==m&&(a=b(n[0],n[s-1])),o=s>2?rn:nn,c=i=null,l}function l(s){return s==null||isNaN(s=+s)?f:(c||(c=o(n.map(e),r,t)))(e(a(s)))}return l.invert=function(s){return a(u((i||(i=o(r,n.map(e),p)))(s)))},l.domain=function(s){return arguments.length?(n=Array.from(s,_),h()):n.slice()},l.range=function(s){return arguments.length?(r=Array.from(s),h()):r.slice()},l.rangeRound=function(s){return r=Array.from(s),t=U,h()},l.clamp=function(s){return arguments.length?(a=s?!0:m,h()):a!==m},l.interpolate=function(s){return arguments.length?(t=s,h()):t},l.unknown=function(s){return arguments.length?(f=s,l):f},function(s,S){return e=s,u=S,h()}}function un(){return tn()(m,m)}function an(n,r,t,e){var u=T(n,r,t),f;switch(e=q(e??",f"),e.type){case"s":{var a=Math.max(Math.abs(n),Math.abs(r));return e.precision==null&&!isNaN(f=X(u,a))&&(e.precision=f),z(e,a)}case"":case"e":case"g":case"p":case"r":{e.precision==null&&!isNaN(f=Y(u,Math.max(Math.abs(n),Math.abs(r))))&&(e.precision=f-(e.type==="e"));break}case"f":case"%":{e.precision==null&&!isNaN(f=W(u))&&(e.precision=f-(e.type==="%")*2);break}}return B(e)}function on(n){var r=n.domain;return n.ticks=function(t){var e=r();return O(e[0],e[e.length-1],t??10)},n.tickFormat=function(t,e){var u=r();return an(u[0],u[u.length-1],t??10,e)},n.nice=function(t){t==null&&(t=10);var e=r(),u=0,f=e.length-1,a=e[u],o=e[f],c,i,h=10;for(o<a&&(i=a,a=o,o=i,i=u,u=f,f=i);h-- >0;){if(i=y(a,o,t),i===c)return e[u]=a,e[f]=o,r(e);if(i>0)a=Math.floor(a/i)*i,o=Math.ceil(o/i)*i;else if(i<0)a=Math.ceil(a*i)/i,o=Math.floor(o*i)/i;else break;c=i}return n},n}function fn(){var n=un();return n.copy=function(){return en(n,fn())},F.apply(n,arguments),on(n)}export{en as a,R as b,un as c,fn as l,T as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as r,
|
|
1
|
+
import{d as r,c as t,o as n,n as o,u as c,p as l,E as d,aN as u,aO as f}from"./DD6NieRw.js";const m=r({__name:"Card",props:{class:{}},setup(s){const a=s;return(e,p)=>(n(),t("div",{"data-slot":"card",class:o(c(l)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",a.class))},[d(e.$slots,"default")],2))}}),i=r({__name:"CardContent",props:{class:{}},setup(s){const a=s;return(e,p)=>(n(),t("div",{"data-slot":"card-content",class:o(c(l)("px-6",a.class))},[d(e.$slots,"default")],2))}});function x(...s){return u(f(s))}export{i as _,m as a,x as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{cs as vt,ct as bt,cu as _t,cv as xt,a_ as ze,r as P,am as j,co as wt,cn as Ct,V as He,i as x,d as Q,aC as Tt,c as S,o as m,a as i,w as h,e as o,t as R,u as e,q as k,b as F,ai as fe,F as q,x as ye,n as H,_ as he,az as St,Q as Y,aE as X,cw as kt,D as je,cx as Ot,aH as Nt,cy as $t,cz as Bt,cA as Rt,l as U,bk as Pt,aq as pe,ad as It,cm as Dt,br as Ft,an as Mt,bA as Vt,bB as Qt,bC as At,f as Ee,O as ce,J as ue,N as zt,L as de,M as Le,cB as Et,at as me,cC as Ue,ae as Lt,aT as Ut,cD as Ht}from"./DD6NieRw.js";import{_ as qe,a as Ke,c as jt}from"./CkVRbNxk.js";import{u as qt}from"./CsRqTS8p.js";import{u as Kt,a as Wt,b as Gt,c as Jt,d as Zt,e as Yt,f as Xt,g as en,h as tn,_ as nn,i as an,j as on,k as sn,l as ln,m as rn,n as cn}from"./CRtMS55w.js";import{_ as un}from"./CH3m0zKs.js";import{_ as dn}from"./B9vFZSzU.js";import{_ as mn,Q as D}from"./ljX6O69y.js";import{c as pn}from"./CSIDbD5d.js";import"./DeGwWuWf.js";import{u as fn,t as yn,F as hn}from"./B-E4SrDA.js";import{_ as gn}from"./BZOLz5Xw.js";import{c as vn,a as bn,p as _n,b as xn}from"./CT4V-SdE.js";import{u as wn}from"./C1GKs4YV.js";import{f as Cn}from"./D9Ycznwo.js";import"./B-OC4Wzf.js";import"./Dcf3u1x9.js";import"./DngnCd9Q.js";import"./mtBjWkj4.js";import"./yPPOBtqs.js";import"./B5rxJs06.js";import"./DI-I25kb.js";import"./D33qa5aT.js";import"./DuvFgQqu.js";import"./BVmBXPoG.js";import"./DghZRCwT.js";import"./B3ZoiMh5.js";import"./DdjYB9eX.js";function Tn(s){return bt(_t,s)}function Sn(s){return vt(xt,s)}const kn=({containerRef:s,quickQueryFilterRef:l,quickQueryTableRef:d,isSkipShortcut:u,isViewOnly:b,onCopySelectedCell:g,onPasteRows:t,onSaveData:c,onDeleteRows:f})=>{const p=()=>!u.value,n=()=>!u.value&&!b.value;ze([{key:"meta+a",callback:()=>{var r,a;p()&&((a=(r=d.value)==null?void 0:r.gridApi)==null||a.selectAll())},excludeInput:!0,isPreventDefault:!0},{key:"meta+c",callback:()=>{p()&&g()},excludeInput:!0},{key:"meta+v",callback:()=>{p()&&t()},excludeInput:!0},{key:"meta+s",callback:()=>{n()&&c()},isPreventDefault:!0},{key:"meta+alt+backspace",callback:()=>{n()&&f()},isPreventDefault:!0}],{target:s}),ze([{key:"meta+f",callback:async()=>{var r;p()&&await((r=l.value)==null?void 0:r.onShowSearch())}}])},On=s=>{const l=P();return j(()=>{var d;return(d=s.value)==null?void 0:d.columnDefs},()=>{var d;(d=s.value)!=null&&d.columnDefs&&(l.value=s.value.columnDefs)},{immediate:!0,deep:!0}),{columns:l}},Nn=()=>{const s=P(!0);return wt(()=>{s.value=!0}),Ct(()=>{s.value=!1}),{isActiveTeleport:s}},$n=({tableName:s,schemaName:l})=>{var t;const d=He(),{data:u,status:b}=qt("/api/tables/size",{method:"POST",body:{tableName:s,dbConnectionString:(t=d.selectedConnection)==null?void 0:t.connectionString,schema:l},key:`table-size-${s}-${l}`},"$1Ta2y3cNQa");return{tableSize:x(()=>u.value||{}),status:b}},Bn={class:"gap-0 flex flex-col h-full w-full p-2"},Rn={class:"flex flex-col gap-y-1"},Pn={class:"flex items-center justify-between w-full"},In={class:"text-xs opacity-75"},Dn={class:"flex items-center justify-between gap-4"},Fn={class:"text-xs opacity-75"},Mn={class:"flex items-center justify-between gap-4"},Vn={class:"text-xs opacity-75"},Qn=["onClick"],An={class:"flex justify-between text-xs w-full overflow-hidden"},zn=["title"],En={class:"opacity-50 w-1/4 min-w-[100px] text-right"},Ln=Q({__name:"QuickQueryTableSummary",props:{tableName:{},schemaName:{},columns:{},selectedColumnFieldId:{},handleSelectColumn:{type:Function},columnTypes:{}},emits:["resetSelectedCol"],setup(s,{emit:l}){const d=l,{tableSize:u}=$n({tableName:s.tableName,schemaName:s.schemaName}),b=x(()=>{var t;return(((t=s.columns)==null?void 0:t.map(c=>{var p;const f=(p=s.columnTypes)==null?void 0:p.find(n=>n.name===c.field&&n.name);return f?{...c,type:(f==null?void 0:f.type)||""}:c}))||[]).slice(1)}),g=t=>t==="timestamp without time zone"?"timestamp":t||"";return Tt(t=>{t(()=>{s.selectedColumnFieldId!==void 0&&d("resetSelectedCol")})}),(t,c)=>{const f=qe,p=Ke,n=fe,r=he;return m(),S("div",Bn,[i(p,{class:"py-1 rounded-md"},{default:h(()=>[i(f,{class:"px-2"},{default:h(()=>[o("div",Rn,[o("div",Pn,[c[0]||(c[0]=o("span",{class:"text-xs font-medium"},"Table Size:",-1)),o("span",In,R(e(u).tableSize),1)]),o("div",Dn,[c[1]||(c[1]=o("span",{class:"text-xs font-medium"},"Data Size:",-1)),o("span",Fn,R(e(u).dataSize),1)]),o("div",Mn,[c[2]||(c[2]=o("span",{class:"text-xs font-medium"},"Index Size:",-1)),o("span",Vn,R(e(u).indexSize),1)])])]),_:1})]),_:1}),i(p,{class:"mt-1 py-2 px-1 h-full overflow-y-auto custom-scrollbar rounded-md"},{default:h(()=>[i(f,{class:"px-0"},{default:h(()=>[e(b).length===0?(m(),k(n,{key:0,title:"No columns",desc:"This table has no columns to display."})):F("",!0),(m(!0),S(q,null,ye(e(b),a=>(m(),S("div",{key:a==null?void 0:a.field,class:H(["cursor-pointer hover:bg-accent/50 rounded-sm",e(jt)(t.selectedColumnFieldId===(a==null?void 0:a.field)&&"bg-accent/90")])},[o("div",{class:"flex items-center gap-2 justify-start p-1",onClick:C=>t.handleSelectColumn(a==null?void 0:a.field)},[i(r,{name:"hugeicons:layout-3-column",class:"size-4 min-w-3"}),o("div",An,[o("span",{class:"w-3/4 truncate max-w-[220px] overflow-hidden text-ellipsis whitespace-nowrap inline-block",title:a==null?void 0:a.headerName},R((a==null?void 0:a.headerName)||""),9,zn),o("span",En,R(g(Array.isArray(a==null?void 0:a.type)?a==null?void 0:a.type.join(", "):a==null?void 0:a.type)),1)])],8,Qn)],2))),128))]),_:1})]),_:1})])}}}),Un=["for"],Hn=["for"],jn=Q({__name:"DynamicForm",props:{fields:{},validationSchema:{},class:{}},setup(s,{expose:l}){const d=s,u=fn({validationSchema:yn(d.validationSchema),name:`dynamic-form-${St()}`});return l({form:u}),(b,g)=>(m(),S("div",{class:H(d.class)},[(m(!0),S(q,null,ye(b.fields,t=>Y((m(),S("div",{key:t.name},[o("div",{class:H(["flex justify-between pb-0.5",t.titleClass])},[o("label",{class:"text-xs text-right",for:t.name},R(t.label),9,Un),o("label",{class:"text-xs text-right text-primary/80",for:t.name},R(t.type),9,Hn)],2),i(e(hn),{as:t.as,id:t.name,name:t.name,class:H(t.class),placeholder:t.placeholder},null,8,["as","id","name","class","placeholder"])])),[[X,t.isShow]])),128))],2))}}),qn={class:"p-2 pb-0"},Kn={class:"relative w-full"},Wn={class:"absolute left-1.5 top-1.5 w-4"},Gn=Q({__name:"PreviewSelectedRow",props:{columnTypes:{},selectedRow:{}},setup(s){const l=s,d=x(()=>{const n={};return l.columnTypes.forEach(r=>{const a=kt(je.POSTGRES).mapDbTypeToTsType(r.type);a==="boolean"?n[r.name]=Sn().optional():a==="number"?n[r.name]=Tn().optional():n[r.name]=Ot().optional()}),n}),u=Nt(""),b=$t(u,Bt),g=x(()=>{const n=[],r=b.value.toLowerCase().trim();return l.columnTypes.forEach(a=>{const C=a.name.toLowerCase(),B=r?C.includes(r):!0;n.push({label:a.name,type:a.type,as:gn,name:a.name,class:"px-1 py-0.5 h-fit min-h-6! text-primary/80 font-normal!",placeholder:"NULL",isShow:B})}),n}),t=x(()=>{const n=b.value.toLowerCase().trim();return n?!l.columnTypes.some(r=>r.name.toLowerCase().includes(n)):!1}),c=x(()=>Rt(d.value)),f=P(),p=n=>{const r=Object.entries(n).reduce((a,[C,B])=>(a[C]=pn(B||""),a),{});pe(()=>{var a;(a=f.value)==null||a.form.setValues(r)})};return j(()=>[l.selectedRow,f],([n])=>{n&&p(n)},{immediate:!0,deep:!0}),(n,r)=>{const a=he,C=Pt;return m(),S(q,null,[o("div",qn,[o("div",Kn,[o("div",Wn,[i(a,{name:"lucide:search",class:"stroke-3!"})]),i(C,{type:"text",placeholder:"Search fields ...",class:"pr-6 pl-6 w-full h-8",modelValue:e(u),"onUpdate:modelValue":r[0]||(r[0]=B=>U(u)?u.value=B:null)},null,8,["modelValue"]),e(u)?(m(),S("div",{key:0,class:"absolute right-2 top-1.5 w-4 cursor-pointer rounded-md hover:bg-accent",onClick:r[1]||(r[1]=B=>u.value="")},[i(a,{name:"lucide:x",class:"stroke-3! text-muted-foreground"})])):F("",!0)])]),e(t)?(m(),k(e(fe),{key:0,title:"No results",desc:"No fields match your search."})):(m(),k(jn,{key:1,ref_key:"dynamicForm",ref:f,class:"space-y-1 p-2 overflow-y-auto",fields:e(g),"validation-schema":e(c)},null,8,["fields","validation-schema"]))],64)}}}),Jn=["innerHTML"],Zn=Q({__name:"QuickQueryHistoryLogItem",props:{log:{},highlighter:{}},setup(s){const l=s,d=P("");return j([()=>l.log,()=>l.highlighter],async()=>{const u=(l.log||"").trim();l.highlighter&&(d.value=l.highlighter.codeToHtml(u,{lang:"plsql",theme:"catppuccin-latte"}))},{immediate:!0}),(u,b)=>(m(),S("div",{class:"[&_code]:text-wrap w-full [&>.catppuccin-latte]:bg-background!",innerHTML:d.value},null,8,Jn))}}),Yn={class:"flex h-full min-h-0 flex-col"},Xn={class:"flex h-8 shrink-0 items-center justify-between"},ea={class:"flex items-center gap-1"},ta={key:0,class:"flex min-h-0 flex-1 items-center justify-center w-full"},na=["data-index"],aa={class:"pb-2 leading-relaxed text-xs group"},oa={class:"flex items-center justify-between gap-2 pr-1"},sa={class:"min-w-0"},la={class:"text-xxs"},ra={class:"text-xxs"},ia=Q({__name:"QuickQueryHistoryLogsPanel",props:{tableName:{},schemaName:{}},setup(s){const l=s,d=P("all"),u=Kt(),{qqLogs:b}=It(u),{handleCopyWithKey:g,isCopied:t,getCopyIcon:c,getCopyIconClass:f,getCopyTooltip:p}=wn(),n=x(()=>d.value==="all"?b.value:u.getLogsByTableId(l)),r=P(null),a=(T,y=24)=>T.scrollHeight-T.scrollTop-T.clientHeight<=y,C=Dt({get count(){return n.value.length},getScrollElement:()=>r.value,estimateSize:()=>39,overscan:5}),B=x(()=>C.value.getVirtualItems()),ee=x(()=>C.value.getTotalSize()),K=()=>{n.value.length&&C.value.scrollToIndex(n.value.length-1)},te=T=>{T&&C.value.measureElement(T)},ne=T=>new Date(T).toLocaleString(),M=P();return Ft(async()=>{const T=vn({themes:[xn],langs:[_n],engine:bn()});M.value=await T}),Mt(async()=>{C.value&&(await pe(),K())}),j(()=>n.value.length,async()=>{if(!C.value)return;const T=!r.value||a(r.value);await pe(),T&&K()}),(T,y)=>{const W=At,V=Qt,$=Vt,N=he,A=zt,z=fe,ae=qe,E=Ke;return m(),S("div",Yn,[o("div",Xn,[i($,{modelValue:d.value,"onUpdate:modelValue":y[0]||(y[0]=_=>d.value=_),class:"pt-1"},{default:h(()=>[i(V,{size:"xs"},{default:h(()=>[i(W,{size:"xs",value:"all",class:"cursor-pointer text-primary/80"},{default:h(()=>y[2]||(y[2]=[Ee(" All logs ")])),_:1},8,["value"]),i(W,{size:"xs",value:"one-table",class:"cursor-pointer text-primary/80"},{default:h(()=>y[3]||(y[3]=[Ee(" Only this table ")])),_:1},8,["value"])]),_:1})]),_:1},8,["modelValue"]),y[8]||(y[8]=o("div",null,[o("p",{class:"font-medium text-xs"},"Logs history")],-1)),o("div",ea,[d.value==="all"?(m(),k(e(ce),{key:0},{default:h(()=>[i(e(ue),{"as-child":""},{default:h(()=>[i(A,{variant:"outline",size:"xxs",onClick:e(u).deleteAllLogs},{default:h(()=>[i(N,{name:"lucide:trash"}),y[4]||(y[4]=o("p",{class:"font-normal"},"Delete all logs",-1))]),_:1},8,["onClick"])]),_:1}),i(e(de),null,{default:h(()=>y[5]||(y[5]=[o("p",null,"Delete all logs",-1)])),_:1})]),_:1})):(m(),k(e(ce),{key:1},{default:h(()=>[i(e(ue),{"as-child":""},{default:h(()=>[i(A,{variant:"outline",size:"xxs",onClick:y[1]||(y[1]=_=>e(u).deleteLogsOfTable(l))},{default:h(()=>[i(N,{name:"lucide:trash"}),y[6]||(y[6]=o("p",{class:"font-normal"},"Delete logs",-1))]),_:1})]),_:1}),i(e(de),null,{default:h(()=>y[7]||(y[7]=[o("p",null,"Delete logs for this table",-1)])),_:1})]),_:1}))])]),n.value.length?(m(),k(E,{key:1,class:"py-0 mt-1 min-h-0 flex-1 gap-0 rounded-none shadow-none border-none overflow-hidden"},{default:h(()=>[i(ae,{class:"p-0 min-h-0 flex-1"},{default:h(()=>[o("div",{ref_key:"parentRef",ref:r,class:"h-full w-full overflow-y-auto contain-strict [overflow-anchor:none]"},[o("div",{style:Le({height:`${ee.value}px`,width:"100%",position:"relative"})},[(m(!0),S(q,null,ye(B.value,_=>(m(),S("div",{key:_.key.toString(),"data-index":_.index,ref_for:!0,ref:te,class:"[overflow-anchor:none]",style:Le({position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${_.start}px)`})},[o("div",aa,[o("div",oa,[o("div",sa,[o("span",la,"["+R(ne(n.value[_.index].createdAt))+"] ",1),o("span",ra," : "+R(e(Cn)(n.value[_.index].queryTime||0)),1)]),i(e(ce),null,{default:h(()=>[i(e(ue),{"as-child":""},{default:h(()=>[i(A,{variant:"ghost",size:"icon",class:"size-6 shrink-0 opacity-0 transition-opacity group-hover:opacity-100 focus-visible:opacity-100",onClick:L=>e(g)(n.value[_.index].id,String(n.value[_.index].logs).trim())},{default:h(()=>[(m(),k(N,{key:e(t)(n.value[_.index].id)?"tick":"copy",name:e(c)(e(t)(n.value[_.index].id)),class:H(["size-3.5",e(f)(e(t)(n.value[_.index].id))])},null,8,["name","class"]))]),_:2},1032,["onClick"])]),_:2},1024),i(e(de),null,{default:h(()=>[o("p",null,R(e(p)(e(t)(n.value[_.index].id),"Copy log")),1)]),_:2},1024)]),_:2},1024)]),i(Zn,{highlighter:M.value,log:n.value[_.index].logs},null,8,["highlighter","log"])])],12,na))),128))],4)],512)]),_:1})]),_:1})):(m(),S("div",ta,[i(z,{title:"No logs found",desc:"There are no execution logs to display for this table."})]))])}}}),ca=({quickQueryTableRef:s})=>{const l=P(void 0),d=()=>{var g,t,c,f,p,n,r;l.value=void 0,(c=(t=(g=s.value)==null?void 0:g.gridApi)==null?void 0:t.ensureIndexVisible)==null||c.call(t,0,"top"),(p=(f=s.value)==null?void 0:f.gridApi)==null||p.refreshHeader(),(r=(n=s.value)==null?void 0:n.gridApi)==null||r.refreshCells({force:!0})},u=g=>{var t,c,f,p,n,r;g&&((c=(t=s.value)==null?void 0:t.gridApi)==null||c.ensureColumnVisible(g,"middle"),(p=(f=s.value)==null?void 0:f.gridApi)==null||p.refreshCells({force:!0}),(r=(n=s.value)==null?void 0:n.gridApi)==null||r.refreshHeader())};return{resetGridState:d,selectedColumnFieldId:l,handleSelectColumn:g=>{l.value=g,u(g)}}},ua={class:"px-1"},da={class:"px-2"},ma={class:"flex-1 overflow-hidden px-1 mb-0.5"},pa={key:1,class:"h-full"},Ea=Q({__name:"QuickQuery",props:{connectionId:{},workspaceId:{},tableName:{},schemaName:{},tabViewType:{},virtualTableId:{}},setup(s){const l=s,d=Et(),u=He(),b=x(()=>{const w=u.connections.find(v=>v.id===l.connectionId);return(w==null?void 0:w.connectionString)||""}),g=x(()=>{var w;return((w=u.selectedConnection)==null?void 0:w.type)||je.POSTGRES}),t=x(()=>l.tableName),c=x(()=>l.schemaName),f=P(),{previewRelationBreadcrumbs:p,onOpenBackReferencedTableModal:n,onOpenForwardReferencedTableModal:r,onUpdateSelectedTabInBreadcrumb:a,onClearBreadcrumbs:C,onBackPreviousBreadcrumb:B,onBackPreviousBreadcrumbByIndex:ee}=Wt(),{onRequestSafeModeConfirm:K,onSafeModeCancel:te,onSafeModeConfirm:ne,safeModeDialogOpen:M,safeModeDialogSql:T,safeModeDialogType:y,isDangerous:W}=Gt(),{quickQueryFilterRef:V,quickQueryTableRef:$,selectedRows:N,focusedCell:A}=Jt(),{columnNames:z,foreignKeys:ae,primaryKeyColumns:E,tableMetaData:_,columnTypes:L,foreignKeyColumns:We,isVirtualTable:oe}=Zt({tableName:t.value,schemaName:c.value,connectionId:l.connectionId,tabViewType:l.tabViewType}),{onApplyNewFilter:ge,data:G,baseQueryString:Ge,refreshTableData:ve,refreshCount:be,isAllowNextPage:Je,isAllowPreviousPage:Ze,onNextPage:_e,onPreviousPage:xe,onUpdatePagination:we,totalRows:Ye,pagination:J,errorMessage:Ce,openErrorModal:Z,orderBy:Xe,onUpdateOrderBy:et,addHistoryLog:tt,filters:se,isShowFilters:le,onChangeComposeWith:nt,composeWith:at,isFetchingTableData:ot}=Yt({connection:me(u,"selectedConnection"),primaryKeys:E,columns:z,connectionId:x(()=>l.connectionId),workspaceId:x(()=>l.workspaceId),tableName:t.value,schemaName:c.value});j(_,w=>{w!=null&&w.columns&&w.columns.length>0&&(be(),ve())},{deep:!0,immediate:!0});const{isMutating:st,onAddEmptyRow:Te,onDiscardChanges:lt,onDeleteRows:re,onSaveData:ie,hasEditedRows:Se,pendingChangesCount:rt,onCopyRows:it,onPasteRows:ke,onRefresh:Oe,onSelectedRowsChange:ct,onCopySelectedCell:Ne,onFocusedCellChange:ut}=Xt({tableName:t.value,schemaName:c.value,primaryKeys:E,refreshTableData:ve,columnNames:z,data:G,addHistoryLog:tt,errorMessage:Ce,openErrorModal:Z,selectedRows:N,pagination:J,quickQueryTableRef:$,refreshCount:be,focusedCell:A,safeModeEnabled:me(d,"quickQuerySafeModeEnabled"),onRequestSafeModeConfirm:K,connection:me(u,"selectedConnection")}),{handleSelectColumn:dt,selectedColumnFieldId:$e,resetGridState:mt}=ca({quickQueryTableRef:$}),{quickQueryTabView:I,openedQuickQueryTab:Be}=en({onTabChanged:w=>{w!==D.Data&&d.onCloseBottomPanel()}}),{isActiveTeleport:Re}=Nn(),{onAddFilterByContextCell:pt}=rn({quickQueryFilterRef:V,quickQueryTableRef:$,columnTypes:L,filters:se,onApplyNewFilter:ge}),{isHaveRelationByFieldName:ft}=tn({schemaName:c.value,tableName:t.value}),yt=x(()=>p.value.length>0),Pe=x(()=>oe.value);kn({containerRef:f,quickQueryFilterRef:V,quickQueryTableRef:$,isSkipShortcut:yt,isViewOnly:Pe,onCopySelectedCell:Ne,onPasteRows:ke,onSaveData:ie,onDeleteRows:re});const{columns:ht}=On($);return(w,v)=>{var Ie,De,Fe,Me,Ve,Qe;const gt=Lt;return m(),S(q,null,[e(p).length?(m(),k(nn,{key:0,open:e(p).length>0,breadcrumbs:e(p),currentTableName:e(t),connectionId:w.connectionId,workspaceId:w.workspaceId,rootSchemaName:e(c),onClearBreadcrumb:e(C),onOnOpenBackReferencedTableModal:e(n),onOnOpenForwardReferencedTableModal:e(r),onOnUpdateSelectedTabInBreadcrumb:e(a),onOnBackPreviousBreadcrumb:e(B),onOnBackPreviousBreadcrumbByIndex:e(ee)},null,8,["open","breadcrumbs","currentTableName","connectionId","workspaceId","rootSchemaName","onClearBreadcrumb","onOnOpenBackReferencedTableModal","onOnOpenForwardReferencedTableModal","onOnUpdateSelectedTabInBreadcrumb","onOnBackPreviousBreadcrumb","onOnBackPreviousBreadcrumbByIndex"])):F("",!0),i(mn,{open:e(M),"onUpdate:open":v[0]||(v[0]=O=>U(M)?M.value=O:null),sql:e(T),type:e(y),dangerous:e(W),onConfirm:e(ne),onCancel:e(te)},null,8,["open","sql","type","dangerous","onConfirm","onCancel"]),e(Re)?(m(),k(Ue,{key:1,defer:"",to:"#preview-select-row"},[((Ie=e(N))==null?void 0:Ie.length)!==1||e(I)!==e(D).Data?(m(),k(Ln,{key:0,"table-name":e(t),"schema-name":e(c),columns:e(ht),columnTypes:e(L),selectedColumnFieldId:e($e),handleSelectColumn:e(dt),onResetSelectedCol:e(mt)},null,8,["table-name","schema-name","columns","columnTypes","selectedColumnFieldId","handleSelectColumn","onResetSelectedCol"])):(m(),k(Gn,{key:1,columnTypes:e(L),selectedRow:(De=e(N))!=null&&De.length?e(N)[0]:null},null,8,["columnTypes","selectedRow"]))])):F("",!0),e(Re)?(m(),k(Ue,{key:2,defer:"",to:"#bottom-panel"},[i(ia,{tableName:e(t),"schema-name":e(c)},null,8,["tableName","schema-name"])])):F("",!0),i(dn,{open:e(Z),"onUpdate:open":v[1]||(v[1]=O=>U(Z)?Z.value=O:null),message:e(Ce)||""},null,8,["open","message"]),o("div",{ref_key:"containerRef",ref:f,class:"flex flex-col h-full w-full relative",tabindex:"0"},[i(gt,{visible:e(st)||e(ot)},null,8,["visible"]),o("div",ua,[i(an,{"total-selected-rows":(Fe=e(N))==null?void 0:Fe.length,isAllowNextPage:e(Je),isAllowPreviousPage:e(Ze),totalRows:e(Ye),limit:e(J).limit,currentTotalRows:((Me=e(G))==null?void 0:Me.length)||0,offset:e(J).offset,"has-edited-rows":e(Se),"pending-changes-count":e(rt),isViewVirtualTable:e(oe),onOnPaginate:e(we),onOnNextPage:e(_e),onOnPreviousPage:e(xe),onOnRefresh:e(Oe),onOnDiscardChanges:e(lt),onOnSaveData:e(ie),onOnDeleteRows:e(re),onOnAddEmptyRow:e(Te),onOnShowFilter:v[2]||(v[2]=()=>{var O;(O=e(V))==null||O.onShowSearch()}),onOnToggleHistoryPanel:e(d).onToggleBottomPanel,tabView:e(I),"onUpdate:tabView":v[3]||(v[3]=O=>U(I)?I.value=O:null)},null,8,["total-selected-rows","isAllowNextPage","isAllowPreviousPage","totalRows","limit","currentTotalRows","offset","has-edited-rows","pending-changes-count","isViewVirtualTable","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnDiscardChanges","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnToggleHistoryPanel","tabView"])]),o("div",da,[e(I)===e(D).Data?(m(),k(on,{key:0,ref_key:"quickQueryFilterRef",ref:V,onOnSearch:v[4]||(v[4]=()=>{e(ge)()}),onOnUpdateFilters:v[5]||(v[5]=O=>{se.value=O}),isShowFilters:e(le),"onUpdate:isShowFilters":v[6]||(v[6]=O=>U(le)?le.value=O:null),initFilters:e(se),baseQuery:e(Ge),columns:e(z),dbType:e(g),composeWith:e(at),onOnChangeComposeWith:e(nt)},null,8,["isShowFilters","initFilters","baseQuery","columns","dbType","composeWith","onOnChangeComposeWith"])):F("",!0)]),o("div",ma,[e(Be)[e(D).Erd]?Y((m(),k(un,{key:0,tableId:e(Ut)({tableName:e(t),schemaName:e(c)})},null,8,["tableId"])),[[X,e(I)===e(D).Erd]]):F("",!0),e(Be)[e(D).Structure]?Y((m(),S("div",pa,[i(sn,{isVirtualTable:e(oe),schema:e(c),tableName:e(t),connectionString:e(b),virtualTableId:l.virtualTableId},null,8,["isVirtualTable","schema","tableName","connectionString","virtualTableId"])],512)),[[X,e(I)===e(D).Structure]]):F("",!0),Y(i(cn,{data:e(G),"total-selected-rows":e(N).length,"has-edited-rows":e(Se),cellContextMenu:(Ve=e($))==null?void 0:Ve.cellContextMenu,cellHeaderContextMenu:(Qe=e($))==null?void 0:Qe.cellHeaderContextMenu,selectedRows:e(N),"table-name":e(t),"schema-name":e(c),onOnClearContextMenu:v[7]||(v[7]=O=>{var Ae;return(Ae=e($))==null?void 0:Ae.clearCellContextMenu()}),onOnPaginate:e(we),onOnNextPage:e(_e),onOnPreviousPage:e(xe),onOnRefresh:e(Oe),onOnSaveData:e(ie),onOnDeleteRows:e(re),onOnAddEmptyRow:e(Te),onOnFilterByValue:e(pt),onOnCopyRows:e(it),onOnPasteRows:e(ke),onOnCopySelectedCell:e(Ne)},{default:h(()=>[i(ln,{class:"h-full border rounded-md",ref_key:"quickQueryTableRef",ref:$,"selected-rows":e(N),data:e(G)||[],orderBy:e(Xe),onOnSelectedRows:e(ct),"onUpdate:orderBy":e(et),onOnOpenBackReferencedTableModal:e(n),onOnOpenForwardReferencedTableModal:e(r),isHaveRelationByFieldName:e(ft),foreignKeyColumns:e(We),foreignKeys:e(ae),primaryKeyColumns:e(E),columnTypes:e(L),defaultPageSize:e(Ht),offset:e(J).offset,onOnFocusCell:e(ut),selectedColumnFieldId:e($e),"current-schema-name":e(c),"current-table-name":e(t),isViewOnly:e(Pe)},null,8,["selected-rows","data","orderBy","onOnSelectedRows","onUpdate:orderBy","onOnOpenBackReferencedTableModal","onOnOpenForwardReferencedTableModal","isHaveRelationByFieldName","foreignKeyColumns","foreignKeys","primaryKeyColumns","columnTypes","defaultPageSize","offset","onOnFocusCell","selectedColumnFieldId","current-schema-name","current-table-name","isViewOnly"])]),_:1},8,["data","total-selected-rows","has-edited-rows","cellContextMenu","cellHeaderContextMenu","selectedRows","table-name","schema-name","onOnPaginate","onOnNextPage","onOnPreviousPage","onOnRefresh","onOnSaveData","onOnDeleteRows","onOnAddEmptyRow","onOnFilterByValue","onOnCopyRows","onOnPasteRows","onOnCopySelectedCell"]),[[X,e(I)===e(D).Data]])])],512)],64)}}});export{Ea as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as te}from"./
|
|
1
|
+
import{g as te}from"./CAnZNTn6.js";import{s as ee}from"./CHFYZcjC.js";import{_ as f,l as b,c as F,r as se,u as ie,a as re,b as ae,g as ne,s as oe,q as le,t as ce,ab as he,k as W,A as ue}from"./Dzy2Amcc.js";var vt=function(){var e=f(function(V,o,h,n){for(h=h||{},n=V.length;n--;h[V[n]]=o);return h},"o"),t=[1,2],s=[1,3],a=[1,4],i=[2,4],l=[1,9],d=[1,11],S=[1,16],p=[1,17],T=[1,18],_=[1,19],m=[1,33],k=[1,20],A=[1,21],$=[1,22],x=[1,23],R=[1,24],u=[1,26],L=[1,27],I=[1,28],N=[1,29],G=[1,30],P=[1,31],B=[1,32],at=[1,35],nt=[1,36],ot=[1,37],lt=[1,38],K=[1,34],y=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ct=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],xt=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],gt={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:f(function(o,h,n,g,E,r,Z){var c=r.length-1;switch(E){case 3:return g.setRootDoc(r[c]),r[c];case 4:this.$=[];break;case 5:r[c]!="nl"&&(r[c-1].push(r[c]),this.$=r[c-1]);break;case 6:case 7:this.$=r[c];break;case 8:this.$="nl";break;case 12:this.$=r[c];break;case 13:const tt=r[c-1];tt.description=g.trimColon(r[c]),this.$=tt;break;case 14:this.$={stmt:"relation",state1:r[c-2],state2:r[c]};break;case 15:const Tt=g.trimColon(r[c]);this.$={stmt:"relation",state1:r[c-3],state2:r[c-1],description:Tt};break;case 19:this.$={stmt:"state",id:r[c-3],type:"default",description:"",doc:r[c-1]};break;case 20:var U=r[c],X=r[c-2].trim();if(r[c].match(":")){var ut=r[c].split(":");U=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:U,type:"default",description:X};break;case 21:this.$={stmt:"state",id:r[c-3],type:"default",description:r[c-5],doc:r[c-1]};break;case 22:this.$={stmt:"state",id:r[c],type:"fork"};break;case 23:this.$={stmt:"state",id:r[c],type:"join"};break;case 24:this.$={stmt:"state",id:r[c],type:"choice"};break;case 25:this.$={stmt:"state",id:g.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[c-1].trim(),note:{position:r[c-2].trim(),text:r[c].trim()}};break;case 29:this.$=r[c].trim(),g.setAccTitle(this.$);break;case 30:case 31:this.$=r[c].trim(),g.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:r[c-3],url:r[c-2],tooltip:r[c-1]};break;case 33:this.$={stmt:"click",id:r[c-3],url:r[c-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:r[c-1].trim(),classes:r[c].trim()};break;case 36:this.$={stmt:"style",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 37:this.$={stmt:"applyClass",id:r[c-1].trim(),styleClass:r[c].trim()};break;case 38:g.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:g.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:g.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:g.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:r[c].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:r[c-2].trim(),classes:[r[c].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:t,5:s,6:a},{1:[3]},{3:5,4:t,5:s,6:a},{3:6,4:t,5:s,6:a},e([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:S,17:p,19:T,22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,7]),e(y,[2,8]),e(y,[2,9]),e(y,[2,10]),e(y,[2,11]),e(y,[2,12],{14:[1,40],15:[1,41]}),e(y,[2,16]),{18:[1,42]},e(y,[2,18],{20:[1,43]}),{23:[1,44]},e(y,[2,22]),e(y,[2,23]),e(y,[2,24]),e(y,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},e(y,[2,28]),{34:[1,49]},{36:[1,50]},e(y,[2,31]),{13:51,24:m,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},e(ct,[2,44],{58:[1,56]}),e(ct,[2,45],{58:[1,57]}),e(y,[2,38]),e(y,[2,39]),e(y,[2,40]),e(y,[2,41]),e(y,[2,6]),e(y,[2,13]),{13:58,24:m,57:K},e(y,[2,17]),e(xt,i,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},e(y,[2,29]),e(y,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},e(y,[2,14],{14:[1,71]}),{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,72],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},e(y,[2,34]),e(y,[2,35]),e(y,[2,36]),e(y,[2,37]),e(ct,[2,46]),e(ct,[2,47]),e(y,[2,15]),e(y,[2,19]),e(xt,i,{7:78}),e(y,[2,26]),e(y,[2,27]),{5:[1,79]},{5:[1,80]},{4:l,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:S,17:p,19:T,21:[1,81],22:_,24:m,25:k,26:A,27:$,28:x,29:R,32:25,33:u,35:L,37:I,38:N,41:G,45:P,48:B,51:at,52:nt,53:ot,54:lt,57:K},e(y,[2,32]),e(y,[2,33]),e(y,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:f(function(o,h){if(h.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=h,n}},"parseError"),parse:f(function(o){var h=this,n=[0],g=[],E=[null],r=[],Z=this.table,c="",U=0,X=0,ut=2,tt=1,Tt=r.slice.call(arguments,1),D=Object.create(this.lexer),j={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(j.yy[Et]=this.yy[Et]);D.setInput(o,j.yy),j.yy.lexer=D,j.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var _t=D.yylloc;r.push(_t);var Qt=D.options&&D.options.ranges;typeof j.yy.parseError=="function"?this.parseError=j.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(O){n.length=n.length-2*O,E.length=E.length-O,r.length=r.length-O}f(Zt,"popStack");function Lt(){var O;return O=g.pop()||D.lex()||tt,typeof O!="number"&&(O instanceof Array&&(g=O,O=g.pop()),O=h.symbols_[O]||O),O}f(Lt,"lex");for(var C,H,w,mt,J={},dt,Y,Ot,ft;;){if(H=n[n.length-1],this.defaultActions[H]?w=this.defaultActions[H]:((C===null||typeof C>"u")&&(C=Lt()),w=Z[H]&&Z[H][C]),typeof w>"u"||!w.length||!w[0]){var bt="";ft=[];for(dt in Z[H])this.terminals_[dt]&&dt>ut&&ft.push("'"+this.terminals_[dt]+"'");D.showPosition?bt="Parse error on line "+(U+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+ft.join(", ")+", got '"+(this.terminals_[C]||C)+"'":bt="Parse error on line "+(U+1)+": Unexpected "+(C==tt?"end of input":"'"+(this.terminals_[C]||C)+"'"),this.parseError(bt,{text:D.match,token:this.terminals_[C]||C,line:D.yylineno,loc:_t,expected:ft})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+H+", token: "+C);switch(w[0]){case 1:n.push(C),E.push(D.yytext),r.push(D.yylloc),n.push(w[1]),C=null,X=D.yyleng,c=D.yytext,U=D.yylineno,_t=D.yylloc;break;case 2:if(Y=this.productions_[w[1]][1],J.$=E[E.length-Y],J._$={first_line:r[r.length-(Y||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(Y||1)].first_column,last_column:r[r.length-1].last_column},Qt&&(J._$.range=[r[r.length-(Y||1)].range[0],r[r.length-1].range[1]]),mt=this.performAction.apply(J,[c,X,U,j.yy,w[1],E,r].concat(Tt)),typeof mt<"u")return mt;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),r=r.slice(0,-1*Y)),n.push(this.productions_[w[1]][0]),E.push(J.$),r.push(J._$),Ot=Z[n[n.length-2]][n[n.length-1]],n.push(Ot);break;case 3:return!0}}return!0},"parse")},qt=function(){var V={EOF:1,parseError:f(function(h,n){if(this.yy.parser)this.yy.parser.parseError(h,n);else throw new Error(h)},"parseError"),setInput:f(function(o,h){return this.yy=h||this.yy||{},this._input=o,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:f(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:f(function(o){var h=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var 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:n?(n.length===g.length?this.yylloc.first_column:0)+g[g.length-n.length].length-n[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:f(function(o){this.unput(this.match.slice(o))},"less"),pastInput:f(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var U=Object.defineProperty;var j=(n,a,e)=>a in n?U(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e;var p=(n,a,e)=>j(n,typeof a!="symbol"?a+"":a,e);import{bo as q,bp as T,bq as C,r as E,aH as F,at as H,aJ as V,br as L,aD as N,am as $,bs as S,bt as k,bu as I,bv as K,
|
|
1
|
+
var U=Object.defineProperty;var j=(n,a,e)=>a in n?U(n,a,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[a]=e;var p=(n,a,e)=>j(n,typeof a!="symbol"?a+"":a,e);import{bo as q,bp as T,bq as C,r as E,aH as F,at as H,aJ as V,br as L,aD as N,am as $,bs as S,bt as k,bu as I,bv as K,u as G,i as J,aF as b,au as A,bw as Q}from"./DD6NieRw.js";const W=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],X=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],Y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",v=[];class Z{constructor(){p(this,"_data",new O);p(this,"_hash",new O([...W]));p(this,"_nDataBytes",0);p(this,"_minBufferSize",0)}finalize(a){a&&this._append(a);const e=this._nDataBytes*8,s=this._data.sigBytes*8;return this._data.words[s>>>5]|=128<<24-s%32,this._data.words[(s+64>>>9<<4)+14]=Math.floor(e/4294967296),this._data.words[(s+64>>>9<<4)+15]=e,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(a,e){const s=this._hash.words;let t=s[0],r=s[1],c=s[2],y=s[3],f=s[4],m=s[5],g=s[6],i=s[7];for(let u=0;u<64;u++){if(u<16)v[u]=a[e+u]|0;else{const o=v[u-15],D=(o<<25|o>>>7)^(o<<14|o>>>18)^o>>>3,h=v[u-2],R=(h<<15|h>>>17)^(h<<13|h>>>19)^h>>>10;v[u]=D+v[u-7]+R+v[u-16]}const w=f&m^~f&g,B=t&r^t&c^r&c,P=(t<<30|t>>>2)^(t<<19|t>>>13)^(t<<10|t>>>22),l=(f<<26|f>>>6)^(f<<21|f>>>11)^(f<<7|f>>>25),_=i+l+w+X[u]+v[u],d=P+B;i=g,g=m,m=f,f=y+_|0,y=c,c=r,r=t,t=_+d|0}s[0]=s[0]+t|0,s[1]=s[1]+r|0,s[2]=s[2]+c|0,s[3]=s[3]+y|0,s[4]=s[4]+f|0,s[5]=s[5]+m|0,s[6]=s[6]+g|0,s[7]=s[7]+i|0}_append(a){typeof a=="string"&&(a=O.fromUtf8(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes}_process(a){let e,s=this._data.sigBytes/64;a?s=Math.ceil(s):s=Math.max((s|0)-this._minBufferSize,0);const t=s*16,r=Math.min(t*4,this._data.sigBytes);if(t){for(let c=0;c<t;c+=16)this._doProcessBlock(this._data.words,c);e=this._data.words.splice(0,t),this._data.sigBytes-=r}return new O(e,r)}}class O{constructor(a,e){p(this,"words");p(this,"sigBytes");a=this.words=a||[],this.sigBytes=e===void 0?a.length*4:e}static fromUtf8(a){const e=unescape(encodeURIComponent(a)),s=e.length,t=[];for(let r=0;r<s;r++)t[r>>>2]|=(e.charCodeAt(r)&255)<<24-r%4*8;return new O(t,s)}toBase64(){const a=[];for(let e=0;e<this.sigBytes;e+=3){const s=this.words[e>>>2]>>>24-e%4*8&255,t=this.words[e+1>>>2]>>>24-(e+1)%4*8&255,r=this.words[e+2>>>2]>>>24-(e+2)%4*8&255,c=s<<16|t<<8|r;for(let y=0;y<4&&e*8+y*6<this.sigBytes*8;y++)a.push(Y.charAt(c>>>6*(3-y)&63))}return a.join("")}concat(a){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let e=0;e<a.sigBytes;e++){const s=a.words[e>>>2]>>>24-e%4*8&255;this.words[this.sigBytes+e>>>2]|=s<<24-(this.sigBytes+e)%4*8}else for(let e=0;e<a.sigBytes;e+=4)this.words[this.sigBytes+e>>>2]=a.words[e>>>2];this.sigBytes+=a.sigBytes}}function ee(n){return new Z().finalize(n).toBase64()}function te(n){return ee(q(n))}function ae(n){return Array.isArray(n)?n:[n]}const se=n=>n==="defer"||n===!1;function re(...n){var P;const a=typeof n[n.length-1]=="string"?n.pop():void 0;typeof n[0]!="string"&&n.unshift(a);let[e,s,t={}]=n;if(typeof e!="string")throw new TypeError("[nuxt] [asyncData] key must be a string.");if(typeof s!="function")throw new TypeError("[nuxt] [asyncData] handler must be a function.");const r=T(),c=s,y=()=>C.value,f=()=>r.isHydrating?r.payload.data[e]:r.static.data[e];t.server??(t.server=!0),t.default??(t.default=y),t.getCachedData??(t.getCachedData=f),t.lazy??(t.lazy=!1),t.immediate??(t.immediate=!0),t.deep??(t.deep=C.deep),t.dedupe??(t.dedupe="cancel");const m=t.getCachedData(e,r),g=m!=null;if(!r._asyncData[e]||!t.immediate){(P=r.payload._errors)[e]??(P[e]=C.errorValue);const l=t.deep?E:F;r._asyncData[e]={data:l(g?m:t.default()),pending:E(!g),error:H(r.payload._errors,e),status:E("idle"),_default:t.default}}const i={...r._asyncData[e]};delete i._default,i.refresh=i.execute=(l={})=>{if(r._asyncDataPromises[e]){if(se(l.dedupe??t.dedupe))return r._asyncDataPromises[e];r._asyncDataPromises[e].cancelled=!0}if(l._initial||r.isHydrating&&l._initial!==!1){const d=l._initial?m:t.getCachedData(e,r);if(d!=null)return Promise.resolve(d)}i.pending.value=!0,i.status.value="pending";const _=new Promise((d,o)=>{try{d(c(r))}catch(D){o(D)}}).then(async d=>{if(_.cancelled)return r._asyncDataPromises[e];let o=d;t.transform&&(o=await t.transform(d)),t.pick&&(o=ie(o,t.pick)),r.payload.data[e]=o,i.data.value=o,i.error.value=C.errorValue,i.status.value="success"}).catch(d=>{if(_.cancelled)return r._asyncDataPromises[e];i.error.value=K(d),i.data.value=G(t.default()),i.status.value="error"}).finally(()=>{_.cancelled||(i.pending.value=!1,delete r._asyncDataPromises[e])});return r._asyncDataPromises[e]=_,r._asyncDataPromises[e]},i.clear=()=>ne(r,e);const u=()=>i.refresh({_initial:!0}),w=t.server!==!1&&r.payload.serverRendered;{const l=V();if(l&&w&&t.immediate&&!l.sp&&(l.sp=[]),l&&!l._nuxtOnBeforeMountCbs){l._nuxtOnBeforeMountCbs=[];const o=l._nuxtOnBeforeMountCbs;L(()=>{o.forEach(D=>{D()}),o.splice(0,o.length)}),N(()=>o.splice(0,o.length))}w&&r.isHydrating&&(i.error.value||m!=null)?(i.pending.value=!1,i.status.value=i.error.value?"error":"success"):l&&(r.payload.serverRendered&&r.isHydrating||t.lazy)&&t.immediate?l._nuxtOnBeforeMountCbs.push(u):t.immediate&&u();const _=I();if(t.watch){const o=$(t.watch,()=>i.refresh());_&&S(o)}const d=r.hook("app:data:refresh",async o=>{(!o||o.includes(e))&&await i.refresh()});_&&S(d)}const B=Promise.resolve(r._asyncDataPromises[e]).then(()=>i);return Object.assign(B,i),B}async function fe(n){await new Promise(e=>k(e));const a=n?ae(n):void 0;await T().hooks.callHookParallel("app:data:refresh",a)}function ne(n,a){a in n.payload.data&&(n.payload.data[a]=void 0),a in n.payload._errors&&(n.payload._errors[a]=C.errorValue),n._asyncData[a]&&(n._asyncData[a].data.value=void 0,n._asyncData[a].error.value=C.errorValue,n._asyncData[a].pending.value=!1,n._asyncData[a].status.value="idle"),a in n._asyncDataPromises&&(n._asyncDataPromises[a]&&(n._asyncDataPromises[a].cancelled=!0),n._asyncDataPromises[a]=void 0)}function ie(n,a){const e={};for(const s of a)e[s]=n[s];return e}function de(n,a,e){const[s={},t]=typeof a=="string"?[{},a]:[a,e],r=J(()=>b(n)),c=s.key||te([t,typeof r.value=="string"?r.value:"",...oe(s)]);if(!c||typeof c!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+c);if(!n)throw new Error("[nuxt] [useFetch] request is missing.");const y=c===t?"$f"+c:c;if(!s.baseURL&&typeof r.value=="string"&&r.value[0]==="/"&&r.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:f,lazy:m,default:g,transform:i,pick:u,watch:w,immediate:B,getCachedData:P,deep:l,dedupe:_,...d}=s,o=A({...Q,...d,cache:typeof s.cache=="boolean"?void 0:s.cache}),D={server:f,lazy:m,default:g,transform:i,pick:u,immediate:B,getCachedData:P,deep:l,dedupe:_,watch:w===!1?[]:[o,r,...w||[]]};let h;return re(y,()=>{var x;(x=h==null?void 0:h.abort)==null||x.call(h,new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),h=typeof AbortController<"u"?new AbortController:{};const z=b(s.timeout);let M;return z&&(M=setTimeout(()=>h.abort(new DOMException("Request aborted due to timeout.","AbortError")),z),h.signal.onabort=()=>clearTimeout(M)),(s.$fetch||globalThis.$fetch)(r.value,{signal:h.signal,...o}).finally(()=>{clearTimeout(M)})},D)}function oe(n){var e;const a=[((e=b(n.method))==null?void 0:e.toUpperCase())||"GET",b(n.baseURL)];for(const s of[n.params||n.query]){const t=b(s);if(!t)continue;const r={};for(const[c,y]of Object.entries(t))r[b(c)]=b(y);a.push(r)}return a}export{fe as r,de as u};
|