MCPcopy
hub / github.com/google/adk-python / chunk-QGHEW6NO.js

File chunk-QGHEW6NO.js

src/google/adk/cli/browser/chunk-QGHEW6NO.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import{a as je}from"./chunk-APNCZOFE.js";import{a as We}from"./chunk-ST54LLJ3.js";import{b as Ue,c as Ze}from"./chunk-F57TI45K.js";import"./chunk-TNJPXCAB.js";import"./chunk-JHZIBEJC.js";import"./chunk-W7PRDKNL.js";import"./chunk-DRBE27N3.js";import"./chunk-PRKFGJVH.js";import"./chunk-VDPKVNDJ.js";import"./chunk-WXI2IBAH.js";import{m as Ge,p as Ke}from"./chunk-WBLSVR3V.js";import"./chunk-GP6TCC26.js";import{R as Ve,S as Me,T as Be,U as Fe,V as Ye,W as Pe,X as ze,Y as j,a as Le,b as we}from"./chunk-QFMJV7VH.js";import{a as ve,g as l,h as De,i as v}from"./chunk-JRNAXTJ7.js";import"./chunk-EGBSMT36.js";import{j as Ce}from"./chunk-RMXJBC7V.js";var ye=(function(){var t=l(function(A,a,n,c){for(n=n||{},c=A.length;c--;n[A[c]]=a);return n},"o"),i=[6,8,10,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52],d=[1,10],o=[1,11],h=[1,12],b=[1,13],R=[1,23],k=[1,24],_=[1,25],w=[1,26],W=[1,27],E=[1,19],ie=[1,28],Q=[1,29],S=[1,20],I=[1,18],V=[1,21],M=[1,22],re=[1,36],ae=[1,37],ne=[1,38],ce=[1,39],oe=[1,40],B=[6,8,10,13,15,17,20,21,22,24,26,28,33,34,35,36,37,40,43,44,48,50,51,52,65,66,67,68,69],T=[1,45],O=[1,46],F=[1,55],Y=[40,48,50,51,52,70,71],P=[1,66],z=[1,64],N=[1,61],G=[1,65],K=[1,67],X=[6,8,10,13,17,22,24,26,28,33,34,35,36,37,40,41,42,43,44,48,49,50,51,52,65,66,67,68,69],ke=[65,66,67,68,69],ge=[1,84],_e=[1,83],me=[1,81],Ee=[1,82],Se=[6,10,42,47],D=[6,10,13,41,42,47,48,49],q=[1,92],H=[1,91],J=[1,90],U=[19,58],Te=[1,101],Oe=[1,100],le=[19,58,60,62],he={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,COLON:13,role:14,STYLE_SEPARATOR:15,idList:16,BLOCK_START:17,attributes:18,BLOCK_STOP:19,SQS:20,SQE:21,title:22,title_value:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,direction:29,classDefStatement:30,classStatement:31,styleStatement:32,direction_tb:33,direction_bt:34,direction_rl:35,direction_lr:36,CLASSDEF:37,stylesOpt:38,separator:39,UNICODE_TEXT:40,STYLE_TEXT:41,COMMA:42,CLASS:43,STYLE:44,style:45,styleComponent:46,SEMI:47,NUM:48,BRKT:49,ENTITY_NAME:50,DECIMAL_NUM:51,ENTITY_ONE:52,attribute:53,attributeType:54,attributeName:55,attributeKeyTypeList:56,attributeComment:57,ATTRIBUTE_WORD:58,attributeKeyType:59,",":60,ATTRIBUTE_KEY:61,COMMENT:62,cardinality:63,relType:64,ZERO_OR_ONE:65,ZERO_OR_MORE:66,ONE_OR_MORE:67,ONLY_ONE:68,MD_PARENT:69,NON_IDENTIFYING:70,IDENTIFYING:71,WORD:72,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:"COLON",15:"STYLE_SEPARATOR",17:"BLOCK_START",19:"BLOCK_STOP",20:"SQS",21:"SQE",22:"title",23:"title_value",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"direction_tb",34:"direction_bt",35:"direction_rl",36:"direction_lr",37:"CLASSDEF",40:"UNICODE_TEXT",41:"STYLE_TEXT",42:"COMMA",43:"CLASS",44:"STYLE",47:"SEMI",48:"NUM",49:"BRKT",50:"ENTITY_NAME",51:"DECIMAL_NUM",52:"ENTITY_ONE",58:"ATTRIBUTE_WORD",60:",",61:"ATTRIBUTE_KEY",62:"COMMENT",65:"ZERO_OR_ONE",66:"ZERO_OR_MORE",67:"ONE_OR_MORE",68:"ONLY_ONE",69:"MD_PARENT",70:"NON_IDENTIFYING",71:"IDENTIFYING",72:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,9],[9,7],[9,7],[9,4],[9,6],[9,3],[9,5],[9,1],[9,3],[9,7],[9,9],[9,6],[9,8],[9,4],[9,6],[9,2],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[9,1],[29,1],[29,1],[29,1],[29,1],[30,4],[16,1],[16,1],[16,3],[16,3],[31,3],[32,4],[38,1],[38,3],[45,1],[45,2],[39,1],[39,1],[39,1],[46,1],[46,1],[46,1],[46,1],[11,1],[11,1],[11,1],[11,1],[11,1],[18,1],[18,2],[53,2],[53,3],[53,3],[53,4],[54,1],[55,1],[56,1],[56,3],[59,1],[57,1],[12,3],[63,1],[63,1],[63,1],[63,1],[63,1],[64,1],[64,1],[14,1],[14,1],[14,1]],performAction:l(function(a,n,c,r,u,e,Z){var s=e.length-1;switch(u){case 1:break;case 2:this.$=[];break;case 3:e[s-1].push(e[s]),this.$=e[s-1];break;case 4:case 5:this.$=e[s];break;case 6:case 7:this.$=[];break;case 8:r.addEntity(e[s-4]),r.addEntity(e[s-2]),r.addRelationship(e[s-4],e[s],e[s-2],e[s-3]);break;case 9:r.addEntity(e[s-8]),r.addEntity(e[s-4]),r.addRelationship(e[s-8],e[s],e[s-4],e[s-5]),r.setClass([e[s-8]],e[s-6]),r.setClass([e[s-4]],e[s-2]);break;case 10:r.addEntity(e[s-6]),r.addEntity(e[s-2]),r.addRelationship(e[s-6],e[s],e[s-2],e[s-3]),r.setClass([e[s-6]],e[s-4]);break;case 11:r.addEntity(e[s-6]),r.addEntity(e[s-4]),r.addRelationship(e[s-6],e[s],e[s-4],e[s-5]),r.setClass([e[s-4]],e[s-2]);break;case 12:r.addEntity(e[s-3]),r.addAttributes(e[s-3],e[s-1]);break;case 13:r.addEntity(e[s-5]),r.addAttributes(e[s-5],e[s-1]),r.setClass([e[s-5]],e[s-3]);break;case 14:r.addEntity(e[s-2]);break;case 15:r.addEntity(e[s-4]),r.setClass([e[s-4]],e[s-2]);break;case 16:r.addEntity(e[s]);break;case 17:r.addEntity(e[s-2]),r.setClass([e[s-2]],e[s]);break;case 18:r.addEntity(e[s-6],e[s-4]),r.addAttributes(e[s-6],e[s-1]);break;case 19:r.addEntity(e[s-8],e[s-6]),r.addAttributes(e[s-8],e[s-1]),r.setClass([e[s-8]],e[s-3]);break;case 20:r.addEntity(e[s-5],e[s-3]);break;case 21:r.addEntity(e[s-7],e[s-5]),r.setClass([e[s-7]],e[s-2]);break;case 22:r.addEntity(e[s-3],e[s-1]);break;case 23:r.addEntity(e[s-5],e[s-3]),r.setClass([e[s-5]],e[s]);break;case 24:case 25:this.$=e[s].trim(),r.setAccTitle(this.$);break;case 26:case 27:this.$=e[s].trim(),r.setAccDescription(this.$);break;case 32:r.setDirection("TB");break;case 33:r.setDirection("BT");break;case 34:r.setDirection("RL");break;case 35:r.setDirection("LR");break;case 36:this.$=e[s-3],r.addClass(e[s-2],e[s-1]);break;case 37:case 38:case 59:case 67:this.$=[e[s]];break;case 39:case 40:this.$=e[s-2].concat([e[s]]);break;case 41:this.$=e[s-2],r.setClass(e[s-1],e[s]);break;case 42:this.$=e[s-3],r.addCssStyles(e[s-2],e[s-1]);break;case 43:this.$=[e[s]];break;case 44:e[s-2].push(e[s]),this.$=e[s-2];break;case 46:this.$=e[s-1]+e[s];break;case 54:case 79:case 80:this.$=e[s].replace(/"/g,"");break;case 55:case 56:case 57:case 58:case 81:this.$=e[s];break;case 60:e[s].push(e[s-1]),this.$=e[s];break;case 61:this.$={type:e[s-1],name:e[s]};break;case 62:this.$={type:e[s-2],name:e[s-1],keys:e[s]};break;case 63:this.$={type:e[s-2],name:e[s-1],comment:e[s]};break;case 64:this.$={type:e[s-3],name:e[s-2],keys:e[s-1],comment:e[s]};break;case 65:case 66:case 69:this.$=e[s];break;case 68:e[s-2].push(e[s]),this.$=e[s-2];break;case 70:this.$=e[s].replace(/"/g,"");break;case 71:this.$={cardA:e[s],relType:e[s-1],cardB:e[s-2]};break;case 72:this.$=r.Cardinality.ZERO_OR_ONE;break;case 73:this.$=r.Cardinality.ZERO_OR_MORE;break;case 74:this.$=r.Cardinality.ONE_OR_MORE;break;case 75:this.$=r.Cardinality.ONLY_ONE;break;case 76:this.$=r.Cardinality.MD_PARENT;break;case 77:this.$=r.Identification.NON_IDENTIFYING;break;case 78:this.$=r.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(i,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,22:d,24:o,26:h,28:b,29:14,30:15,31:16,32:17,33:R,34:k,35:_,36:w,37:W,40:E,43:ie,44:Q,48:S,50:I,51:V,52:M},t(i,[2,7],{1:[2,1]}),t(i,[2,3]),{9:30,11:9,22:d,24:o,26:h,28:b,29:14,30:15,31:16,32:17,33:R,34:k,35:_,36:w,37:W,40:E,43:ie,44:Q,48:S,50:I,51:V,52:M},t(i,[2,5]),t(i,[2,6]),t(i,[2,16],{12:31,63:35,15:[1,32],17:[1,33],20:[1,34],65:re,66:ae,67:ne,68:ce,69:oe}),{23:[1,41]},{25:[1,42]},{27:[1,43]},t(i,[2,27]),t(i,[2,28]),t(i,[2,29]),t(i,[2,30]),t(i,[2,31]),t(B,[2,54]),t(B,[2,55]),t(B,[2,56]),t(B,[2,57]),t(B,[2,58]),t(i,[2,32]),t(i,[2,33]),t(i,[2,34]),t(i,[2,35]),{16:44,40:T,41:O},{16:47,40:T,41:O},{16:48,40:T,41:O},t(i,[2,4]),{11:49,40:E,48:S,50:I,51:V,52:M},{16:50,40:T,41:O},{18:51,19:[1,52],53:53,54:54,58:F},{11:56,40:E,48:S,50:I,51:V,52:M},{64:57,70:[1,58],71:[1,59]},t(Y,[2,72]),t(Y,[2,73]),t(Y,[2,74]),t(Y,[2,75]),t(Y,[2,76]),t(i,[2,24]),t(i,[2,25]),t(i,[2,26]),{13:P,38:60,41:z,42:N,45:62,46:63,48:G,49:K},t(X,[2,37]),t(X,[2,38]),{16:68,40:T,41:O,42:N},{13:P,38:69,41:z,42:N,45:62,46:63,48:G,49:K},{13:[1,70],15:[1,71]},t(i,[2,17],{63:35,12:72,17:[1,73],42:N,65:re,66:ae,67:ne,68:ce,69:oe}),{19:[1,74]},t(i,[2,14]),{18:75,19:[2,59],53:53,54:54,58:F},{55:76,58:[1,77]},{58:[2,65]},{21:[1,78]},{63:79,65:re,66:ae,67:ne,68:ce,69:oe},t(ke,[2,77]),t(ke,[2,78]),{6:ge,10:_e,39:80,42:me,47:Ee},{40:[1,85],41:[1,86]},t(Se,[2,43],{46:87,13:P,41:z,48:G,49:K}),t(D,[2,45]),t(D,[2,50]),t(D,[2,51]),t(D,[2,52]),t(D,[2,53]),t(i,[2,41],{42:N}),{6:ge,10:_e,39:88,42:me,47:Ee},{14:89,40:q,50:H,72:J},{16:93,40:T,41:O},{11:94,40:E,48:S,50:I,51:V,52:M},{18:95,19:[1,96],53:53,54:54,58:F},t(i,[2,12]),{19:[2,60]},t(U,[2,61],{56:97,57:98,59:99,61:Te,62:Oe}),t([19,58,61,62],[2,66]),t(i,[2,22],{15:[1,103],17:[1,102]}),t([40,48,50,51,52],[2,71]),t(i,[2,36]),{13:P,41:z,45:104,46:63,48:G,49:K},t(i,[2,47]),t(i,[2,48]),t(i,[2,49]),t(X,[2,39]),t(X,[2,40]),t(D,[2,46]),t(i,[2,42]),t(i,[2,8]),t(i,[2,79]),t(i,[2,80]),t(i,[2,81]),{13:[1,105],42:N},{13:[1,107],15:[1,106]},{19:[1,108]},t(i,[2,15]),t(U,[2,62],{57:109,60:[1,110],62:Oe}),t(U,[2,63]),t(le,[2,67]),t(U,[2,70]),t(le,[2,69]),{18:111,19:[1,112],53:53,54:54,58:F},{16:113,40:T,41:O},t(Se,[2,44],{46:87,13:P,41:z,48:G,49:K}),{14:114,40:q,50:H,72:J},{16:115,40:T,41:O},{14:116,40:q,50:H,72:J},t(i,[2,13]),t(U,[2,64]),{59:117,61:Te},{19:[1,118]},t(i,[2,20]),t(i,[2,23],{17:[1,119],42:N}),t(i,[2,11]),{13:[1,120],42:N},t(i,[2,10]),t(le,[2,68]),t(i,[2,18]),{18:121,19:[1,122],53:53,54:54,58:F},{14:123,40:q,50:H,72:J},{19:[1,124]},t(i,[2,21]),t(i,[2,9]),t(i,[2,19])],defaultActions:{55:[2,65],75:[2,60]},parseError:l(function(a,n){if(n.recoverable)this.trace(a);else{var c=new Error(a);throw c.hash=n,c}},"parseError"),parse:l(function(a){var n=this,c=[0],r=[],u=[null],e=[],Z=this.table,s="",ee=0,Ne=0,Ae=0,qe=2,Re=1,He=e.slice.call(arguments,1),p=Object.create(this.lexer),x={yy:{}};for(var ue in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ue)&&(x.yy[ue]=this.yy[ue]);p.setInput(a,x.yy),x.yy.lexer=p,x.yy.parser=this,typeof p.yylloc>"u"&&(p.yylloc={});var de=p.yylloc;e.push(de);var Je=p.options&&p.options.ranges;typeof x.yy.parseError=="function"?this.parseError=x.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(y){c.length=c.length-2*y,u.length=u.length-y,e.length=e.length-y}l($e,"popStack");function Ie(){var y;return y=r.pop()||p.lex()||Re,typeof y!="number"&&(y instanceof Array&&(r=y,y=r.pop()),y=n.symbols_[y]||y),y}l(Ie,"lex");for(var f,be,C,g,nt,pe,L={},te,m,xe,se;;){if(C=c[c.length-1],this.defaultActions[C]?g=this.defaultActions[C]:((f===null||typeof f>"u")&&(f=Ie()),g=Z[C]&&Z[C][f]),typeof g>"u"||!g.length||!g[0]){var fe="";se=[];for(te in Z[C])this.terminals_[te]&&te>qe&&se.push("'"+this.terminals_[te]+"'");p.showPosition?fe="Parse error on line "+(ee+1)+`:
2`+p.showPosition()+`
3Expecting `+se.join(", ")+", got '"+(this.terminals_[f]||f)+"'":fe="Parse error on line "+(ee+1)+": Unexpected "+(f==Re?"end of input":"'"+(this.terminals_[f]||f)+"'"),this.parseError(fe,{text:p.match,token:this.terminals_[f]||f,line:p.yylineno,loc:de,expected:se})}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+f);switch(g[0]){case 1:c.push(f),u.push(p.yytext),e.push(p.yylloc),c.push(g[1]),f=null,be?(f=be,be=null):(Ne=p.yyleng,s=p.yytext,ee=p.yylineno,de=p.yylloc,Ae>0&&Ae--);break;case 2:if(m=this.productions_[g[1]][1],L.$=u[u.length-m],L._$={first_line:e[e.length-(m||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(m||1)].first_column,last_column:e[e.length-1].last_column},Je&&(L._$.range=[e[e.length-(m||1)].range[0],e[e.length-1].range[1]]),pe=this.performAction.apply(L,[s,Ne,ee,x.yy,g[1],u,e].concat(He)),typeof pe<"u")return pe;m&&(c=c.slice(0,-1*m*2),u=u.slice(0,-1*m),e=e.slice(0,-1*m)),c.push(this.productions_[g[1]][0]),u.push(L.$),e.push(L._$),xe=Z[c[c.length-2]][c[c.length-1]],c.push(xe);break;case 3:return!0}}return!0},"parse")},Xe=(function(){var A={EOF:1,parseError:l(function(n,c){if(this.yy.parser)this.yy.parser.parseError(n,c);else throw new Error(n)},"parseError"),setInput:l(function(a,n){return this.yy=n||this.yy||{},this._input=a,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var n=a.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),a},"input"),unput:l(function(a){var n=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.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:c?(c.length===r.length?this.yylloc.first_column:0)+r[r.length-c.length].length-c[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:l(function(){return this._more=!0,this},"more"),reject:l(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`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),n=new Array(a.length+1).join("-");return a+this.upcomingInput()+`

Callers

nothing calls this directly

Calls 15

jFunction · 0.90
addEntityMethod · 0.80
addAttributesMethod · 0.80
trimMethod · 0.80
setAccTitleMethod · 0.80
setAccDescriptionMethod · 0.80
concatMethod · 0.80
addCssStylesMethod · 0.80
setInputMethod · 0.80
getPrototypeOfMethod · 0.80
sliceMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected