MCPcopy Index your code
hub / github.com/google/adk-python / chunk-W67OU2Q2.js

File chunk-W67OU2Q2.js

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

Source from the content-addressed store, hash-verified

1import{M as xt,O as kt,R as _t,S as vt,T as bt,U as St,V as wt,W as Lt,X as Et,Y as Q,_ as At}from"./chunk-QFMJV7VH.js";import{J as Ct,a as q,g as y,r as Tt}from"./chunk-JRNAXTJ7.js";import"./chunk-RMXJBC7V.js";function X(t,n){let r;if(n===void 0)for(let l of t)l!=null&&(r<l||r===void 0&&l>=l)&&(r=l);else{let l=-1;for(let f of t)(f=n(f,++l,t))!=null&&(r<f||r===void 0&&f>=f)&&(r=f)}return r}function F(t,n){let r;if(n===void 0)for(let l of t)l!=null&&(r>l||r===void 0&&l>=l)&&(r=l);else{let l=-1;for(let f of t)(f=n(f,++l,t))!=null&&(r>f||r===void 0&&f>=f)&&(r=f)}return r}function U(t,n){let r=0;if(n===void 0)for(let l of t)(l=+l)&&(r+=l);else{let l=-1;for(let f of t)(f=+n(f,++l,t))&&(r+=f)}return r}function Bt(t){return t.target.depth}function st(t){return t.depth}function it(t,n){return n-1-t.height}function G(t,n){return t.sourceLinks.length?t.depth:n-1}function at(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?F(t.sourceLinks,Bt)-1:0}function W(t){return function(){return t}}function Mt(t,n){return K(t.source,n.source)||t.index-n.index}function Ot(t,n){return K(t.target,n.target)||t.index-n.index}function K(t,n){return t.y0-n.y0}function lt(t){return t.value}function $t(t){return t.index}function Vt(t){return t.nodes}function Ft(t){return t.links}function It(t,n){let r=t.get(n);if(!r)throw new Error("missing: "+n);return r}function Nt({nodes:t}){for(let n of t){let r=n.y0,l=r;for(let f of n.sourceLinks)f.y0=r+f.width/2,r+=f.width;for(let f of n.targetLinks)f.y1=l+f.width/2,l+=f.width}}function Z(){let t=0,n=0,r=1,l=1,f=24,S=8,m,x=$t,o=G,i,a,k=Vt,_=Ft,d=6;function v(){let e={nodes:k.apply(null,arguments),links:_.apply(null,arguments)};return C(e),T(e),M(e),P(e),z(e),Nt(e),e}v.update=function(e){return Nt(e),e},v.nodeId=function(e){return arguments.length?(x=typeof e=="function"?e:W(e),v):x},v.nodeAlign=function(e){return arguments.length?(o=typeof e=="function"?e:W(e),v):o},v.nodeSort=function(e){return arguments.length?(i=e,v):i},v.nodeWidth=function(e){return arguments.length?(f=+e,v):f},v.nodePadding=function(e){return arguments.length?(S=m=+e,v):S},v.nodes=function(e){return arguments.length?(k=typeof e=="function"?e:W(e),v):k},v.links=function(e){return arguments.length?(_=typeof e=="function"?e:W(e),v):_},v.linkSort=function(e){return arguments.length?(a=e,v):a},v.size=function(e){return arguments.length?(t=n=0,r=+e[0],l=+e[1],v):[r-t,l-n]},v.extent=function(e){return arguments.length?(t=+e[0][0],r=+e[1][0],n=+e[0][1],l=+e[1][1],v):[[t,n],[r,l]]},v.iterations=function(e){return arguments.length?(d=+e,v):d};function C({nodes:e,links:u}){for(let[h,s]of e.entries())s.index=h,s.sourceLinks=[],s.targetLinks=[];let c=new Map(e.map((h,s)=>[x(h,s,e),h]));for(let[h,s]of u.entries()){s.index=h;let{source:g,target:b}=s;typeof g!="object"&&(g=s.source=It(c,g)),typeof b!="object"&&(b=s.target=It(c,b)),g.sourceLinks.push(s),b.targetLinks.push(s)}if(a!=null)for(let{sourceLinks:h,targetLinks:s}of e)h.sort(a),s.sort(a)}function T({nodes:e}){for(let u of e)u.value=u.fixedValue===void 0?Math.max(U(u.sourceLinks,lt),U(u.targetLinks,lt)):u.fixedValue}function M({nodes:e}){let u=e.length,c=new Set(e),h=new Set,s=0;for(;c.size;){for(let g of c){g.depth=s;for(let{target:b}of g.sourceLinks)h.add(b)}if(++s>u)throw new Error("circular link");c=h,h=new Set}}function P({nodes:e}){let u=e.length,c=new Set(e),h=new Set,s=0;for(;c.size;){for(let g of c){g.height=s;for(let{source:b}of g.targetLinks)h.add(b)}if(++s>u)throw new Error("circular link");c=h,h=new Set}}function j({nodes:e}){let u=X(e,s=>s.depth)+1,c=(r-t-f)/(u-1),h=new Array(u);for(let s of e){let g=Math.max(0,Math.min(u-1,Math.floor(o.call(null,s,u))));s.layer=g,s.x0=t+g*c,s.x1=s.x0+f,h[g]?h[g].push(s):h[g]=[s]}if(i)for(let s of h)s.sort(i);return h}function B(e){let u=F(e,c=>(l-n-(c.length-1)*m)/U(c,lt));for(let c of e){let h=n;for(let s of c){s.y0=h,s.y1=h+s.value*u,h=s.y1+m;for(let g of s.sourceLinks)g.width=g.value*u}h=(l-h+m)/(c.length+1);for(let s=0;s<c.length;++s){let g=c[s];g.y0+=h*(s+1),g.y1+=h*(s+1)}J(c)}}function z(e){let u=j(e);m=Math.min(S,(l-n)/(X(u,c=>c.length)-1)),B(u);for(let c=0;c<d;++c){let h=Math.pow(.99,c),s=Math.max(1-h,(c+1)/d);O(u,h,s),w(u,h,s)}}function w(e,u,c){for(let h=1,s=e.length;h<s;++h){let g=e[h];for(let b of g){let $=0,N=0;for(let{source:L,value:ot}of b.targetLinks){let Y=ot*(b.layer-L.layer);$+=E(L,b)*Y,N+=Y}if(!(N>0))continue;let D=($/N-b.y0)*u;b.y0+=D,b.y1+=D,A(b)}i===void 0&&g.sort(K),R(g,c)}}function O(e,u,c){for(let h=e.length,s=h-2;s>=0;--s){let g=e[s];for(let b of g){let $=0,N=0;for(let{target:L,value:ot}of b.sourceLinks){let Y=ot*(L.layer-b.layer);$+=H(b,L)*Y,N+=Y}if(!(N>0))continue;let D=($/N-b.y0)*u;b.y0+=D,b.y1+=D,A(b)}i===void 0&&g.sort(K),R(g,c)}}function R(e,u){let c=e.length>>1,h=e[c];p(e,h.y0-m,c-1,u),I(e,h.y1+m,c+1,u),p(e,l,e.length-1,u),I(e,n,0,u)}function I(e,u,c,h){for(;c<e.length;++c){let s=e[c],g=(u-s.y0)*h;g>1e-6&&(s.y0+=g,s.y1+=g),u=s.y1+m}}function p(e,u,c,h){for(;c>=0;--c){let s=e[c],g=(s.y1-u)*h;g>1e-6&&(s.y0-=g,s.y1-=g),u=s.y0-m}}function A({sourceLinks:e,targetLinks:u}){if(a===void 0){for(let{source:{sourceLinks:c}}of u)c.sort(Ot);for(let{target:{targetLinks:c}}of e)c.sort(Mt)}}function J(e){if(a===void 0)for(let{sourceLinks:u,targetLinks:c}of e)u.sort(Ot),c.sort(Mt)}function E(e,u){let c=e.y0-(e.sourceLinks.length-1)*m/2;for(let{target:h,width:s}of e.sourceLinks){if(h===u)break;c+=s+m}for(let{source:h,width:s}of u.targetLinks){if(h===e)break;c-=s}return c}function H(e,u){let c=u.y0-(u.targetLinks.length-1)*m/2;for(let{source:h,width:s}of u.targetLinks){if(h===e)break;c+=s+m}for(let{target:h,width:s}of e.sourceLinks){if(h===u)break;c-=s}return c}return v}var ut=Math.PI,ft=2*ut,V=1e-6,Ut=ft-V;function ct(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Pt(){return new ct}ct.prototype=Pt.prototype={constructor:ct,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,r,l){this._+="Q"+ +t+","+ +n+","+(this._x1=+r)+","+(this._y1=+l)},bezierCurveTo:function(t,n,r,l,f,S){this._+="C"+ +t+","+ +n+","+ +r+","+ +l+","+(this._x1=+f)+","+(this._y1=+S)},arcTo:function(t,n,r,l,f){t=+t,n=+n,r=+r,l=+l,f=+f;var S=this._x1,m=this._y1,x=r-t,o=l-n,i=S-t,a=m-n,k=i*i+a*a;if(f<0)throw new Error("negative radius: "+f);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(k>V)if(!(Math.abs(a*x-o*i)>V)||!f)this._+="L"+(this._x1=t)+","+(this._y1=n);else{var _=r-S,d=l-m,v=x*x+o*o,C=_*_+d*d,T=Math.sqrt(v),M=Math.sqrt(k),P=f*Math.tan((ut-Math.acos((v+k-C)/(2*T*M)))/2),j=P/M,B=P/T;Math.abs(j-1)>V&&(this._+="L"+(t+j*i)+","+(n+j*a)),this._+="A"+f+","+f+",0,0,"+ +(a*_>i*d)+","+(this._x1=t+B*x)+","+(this._y1=n+B*o)}},arc:function(t,n,r,l,f,S){t=+t,n=+n,r=+r,S=!!S;var m=r*Math.cos(l),x=r*Math.sin(l),o=t+m,i=n+x,a=1^S,k=S?l-f:f-l;if(r<0)throw new Error("negative radius: "+r);this._x1===null?this._+="M"+o+","+i:(Math.abs(this._x1-o)>V||Math.abs(this._y1-i)>V)&&(this._+="L"+o+","+i),r&&(k<0&&(k=k%ft+ft),k>Ut?this._+="A"+r+","+r+",0,1,"+a+","+(t-m)+","+(n-x)+"A"+r+","+r+",0,1,"+a+","+(this._x1=o)+","+(this._y1=i):k>V&&(this._+="A"+r+","+r+",0,"+ +(k>=ut)+","+a+","+(this._x1=t+r*Math.cos(f))+","+(this._y1=n+r*Math.sin(f))))},rect:function(t,n,r,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +l+"h"+-r+"Z"},toString:function(){return this._}};var ht=Pt;function dt(t){return function(){return t}}function Rt(t){return t[0]}function zt(t){return t[1]}var Dt=Array.prototype.slice;function Wt(t){return t.source}function Ht(t){return t.target}function Yt(t){var n=Wt,r=Ht,l=Rt,f=zt,S=null;function m(){var x,o=Dt.call(arguments),i=n.apply(this,o),a=r.apply(this,o);if(S||(S=x=ht()),t(S,+l.apply(this,(o[0]=i,o)),+f.apply(this,o),+l.apply(this,(o[0]=a,o)),+f.apply(this,o)),x)return S=null,x+""||null}return m.source=function(x){return arguments.length?(n=x,m):n},m.target=function(x){return arguments.length?(r=x,m):r},m.x=function(x){return arguments.length?(l=typeof x=="function"?x:dt(+x),m):l},m.y=function(x){return arguments.length?(f=typeof x=="function"?x:dt(+x),m):f},m.context=function(x){return arguments.length?(S=x??null,m):S},m}function qt(t,n,r,l,f){t.moveTo(n,r),t.bezierCurveTo(n=(n+l)/2,r,n,f,l,f)}function pt(){return Yt(qt)}function Xt(t){return[t.source.x1,t.y0]}function Gt(t){return[t.target.x0,t.y1]}function yt(){return pt().source(Xt).target(Gt)}var mt=(function(){var t=y(function(x,o,i,a){for(i=i||{},a=x.length;a--;i[x[a]]=o);return i},"o"),n=[1,9],r=[1,10],l=[1,5,10,12],f={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:y(function(o,i,a,k,_,d,v){var C=d.length-1;switch(_){case 7:let T=k.findOrCreateNode(d[C-4].trim().replaceAll('""','"')),M=k.findOrCreateNode(d[C-2].trim().replaceAll('""','"')),P=parseFloat(d[C].trim());k.addLink(T,M,P);break;case 8:case 9:case 11:this.$=d[C];break;case 10:this.$=d[C-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:n,20:r},{1:[2,6],7:11,10:[1,12]},t(r,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(r,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:n,20:r},{15:18,16:7,17:8,18:n,20:r},{18:[1,19]},t(r,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:n,20:r},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:y(function(o,i){if(i.recoverable)this.trace(o);else{var a=new Error(o);throw a.hash=i,a}},"parseError"),parse:y(function(o){var i=this,a=[0],k=[],_=[null],d=[],v=this.table,C="",T=0,M=0,P=0,j=2,B=1,z=d.slice.call(arguments,1),w=Object.create(this.lexer),O={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(O.yy[R]=this.yy[R]);w.setInput(o,O.yy),O.yy.lexer=w,O.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var I=w.yylloc;d.push(I);var p=w.options&&w.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function A(L){a.length=a.length-2*L,_.length=_.length-L,d.length=d.length-L}y(A,"popStack");function J(){var L;return L=k.pop()||w.lex()||B,typeof L!="number"&&(L instanceof Array&&(k=L,L=k.pop()),L=i.symbols_[L]||L),L}y(J,"lex");for(var E,H,e,u,c,h,s={},g,b,$,N;;){if(e=a[a.length-1],this.defaultActions[e]?u=this.defaultActions[e]:((E===null||typeof E>"u")&&(E=J()),u=v[e]&&v[e][E]),typeof u>"u"||!u.length||!u[0]){var D="";N=[];for(g in v[e])this.terminals_[g]&&g>j&&N.push("'"+this.terminals_[g]+"'");w.showPosition?D="Parse error on line "+(T+1)+`:
2`+w.showPosition()+`
3Expecting `+N.join(", ")+", got '"+(this.terminals_[E]||E)+"'":D="Parse error on line "+(T+1)+": Unexpected "+(E==B?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(D,{text:w.match,token:this.terminals_[E]||E,line:w.yylineno,loc:I,expected:N})}if(u[0]instanceof Array&&u.length>1)throw new Error("Parse Error: multiple actions possible at state: "+e+", token: "+E);switch(u[0]){case 1:a.push(E),_.push(w.yytext),d.push(w.yylloc),a.push(u[1]),E=null,H?(E=H,H=null):(M=w.yyleng,C=w.yytext,T=w.yylineno,I=w.yylloc,P>0&&P--);break;case 2:if(b=this.productions_[u[1]][1],s.$=_[_.length-b],s._$={first_line:d[d.length-(b||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(b||1)].first_column,last_column:d[d.length-1].last_column},p&&(s._$.range=[d[d.length-(b||1)].range[0],d[d.length-1].range[1]]),h=this.performAction.apply(s,[C,M,T,O.yy,u[1],_,d].concat(z)),typeof h<"u")return h;b&&(a=a.slice(0,-1*b*2),_=_.slice(0,-1*b),d=d.slice(0,-1*b)),a.push(this.productions_[u[1]][0]),_.push(s.$),d.push(s._$),$=v[a[a.length-2]][a[a.length-1]],a.push($);break;case 3:return!0}}return!0},"parse")},S=(function(){var x={EOF:1,parseError:y(function(i,a){if(this.yy.parser)this.yy.parser.parseError(i,a);else throw new Error(i)},"parseError"),setInput:y(function(o,i){return this.yy=i||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:y(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var i=o.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:y(function(o){var i=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var k=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 _=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===k.length?this.yylloc.first_column:0)+k[k.length-a.length].length-a[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(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:y(function(o){this.unput(this.match.slice(o))},"less"),pastInput:y(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:y(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:y(function(){var o=this.pastInput(),i=new Array(o.length+1).join("-");return o+this.upcomingInput()+`

Callers

nothing calls this directly

Calls 15

JFunction · 0.90
trimMethod · 0.80
setInputMethod · 0.80
getPrototypeOfMethod · 0.80
concatMethod · 0.80
sliceMethod · 0.80
splitMethod · 0.80
popMethod · 0.80
beginMethod · 0.80
sanitizeTextMethod · 0.80
dataMethod · 0.80
yFunction · 0.70

Tested by

no test coverage detected