MCPcopy Index your code
hub / github.com/google/adk-python / hV

Function hV

src/google/adk/cli/browser/main-3CUQG2IN.js:1314–1314  ·  view source on GitHub ↗
(i,e,A,t)

Source from the content-addressed store, hash-verified

1312.jse-config.hide.svelte-5gkegr {
1313 display: none;
1314}`);var VBA=TA('<button slot="actions" type="button" title="Select a query language"><!></button>'),E_=dr("jsoneditor:AutoScrollHandler");function BV(i){var e,A;function t(r){return r<20?200:r<50?400:1200}function n(){if(i){var r=.05*(e||0);i.scrollTop+=r}}function o(r){A&&r===e||(a(),E_("startAutoScroll",r),e=r,A=setInterval(n,50))}function a(){A&&(E_("stopAutoScroll"),clearInterval(A),A=void 0,e=void 0)}return E_("createAutoScrollHandler",i),{onDrag:function(r){if(i){var s=r.clientY,{top:l,bottom:g}=i.getBoundingClientRect();s<l?o(-t(l-s)):s>g?o(t(s-g)):a()}},onDragEnd:function(){a()}}}var qBA=(i,e,A,t)=>(i/=t/2)<1?A/2*i*i+e:-A/2*(--i*(i-2)-1)+e,BW=()=>{var i,e,A,t,n,o,a,r,s,l,g,C,d;function B(f){return f.getBoundingClientRect().top-(i.getBoundingClientRect?i.getBoundingClientRect().top:0)+A}function u(f){i.scrollTo?i.scrollTo(i.scrollLeft,f):i.scrollTop=f}function E(f){l||(l=f),u(o(g=f-l,A,r,s)),d=!0,g<s?requestAnimationFrame(E):(function(){u(A+r),e&&a&&(e.setAttribute("tabindex","-1"),e.focus()),typeof C=="function"&&C(),l=0,d=!1})()}return function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};switch(s=1e3,n=m.offset||0,C=m.callback,o=m.easing||qBA,a=m.a11y||!1,typeof m.container){case"object":i=m.container;break;case"string":i=document.querySelector(m.container);break;default:i=window.document.documentElement}switch(A=i.scrollTop,typeof f){case"number":e=void 0,a=!1,t=A+f;break;case"object":t=B(e=f);break;case"string":e=document.querySelector(f),t=B(e)}switch(r=t-A+n,typeof m.duration){case"number":s=m.duration;break;case"function":s=m.duration(r)}d?l=0:requestAnimationFrame(E)}};function Kh(i,e){var A=Date.now(),t=i();return e(Date.now()-A),t}var xh=dr("validation"),WBA={createObjectDocumentState:()=>({type:"object",properties:{}}),createArrayDocumentState:()=>({type:"array",items:[]}),createValueDocumentState:()=>({type:"value"})};function hV(i,e,A,t){return px(i,e,A,t,WBA)}function hW(i,e,A,t){if(xh("validateJSON"),!e)return[];if(A!==t){var n=A.stringify(i);return e(n!==void 0?t.parse(n):void 0)}return e(i)}function ZBA(i,e,A,t){if(xh("validateText"),i.length>104857600)return{validationErrors:[{path:[],message:"Validation turned off: the document is too large",severity:Ec.info}]};if(i.length!==0)try{var n=Kh(()=>A.parse(i),s=>xh("validate: parsed json in ".concat(s," ms")));if(!e)return;var o=A===t?n:Kh(()=>t.parse(i),s=>xh("validate: parsed json with the validationParser in ".concat(s," ms"))),a=Kh(()=>e(o),s=>xh("validate: validated json in ".concat(s," ms")));return An(a)?void 0:{validationErrors:a}}catch(s){var r=Kh(()=>(function(l,g){if(l.length>bIA)return!1;try{return g.parse(gg(l)),!0}catch(C){return!1}})(i,A),l=>xh("validate: checked whether repairable in ".concat(l," ms")));return{parseError:Xh(i,s.message||s.toString()),isRepairable:r}}}var bw=dr("jsoneditor:FocusTracker");function vx(i){var e,{onMount:A,onDestroy:t,getWindow:n,hasFocus:o,onFocus:a,onBlur:r}=i,s=!1;function l(){var C=o();C&&(clearTimeout(e),s||(bw("focus"),a(),s=C))}function g(){s&&(clearTimeout(e),e=setTimeout(()=>{o()||(bw("blur"),s=!1,r())}))}A(()=>{bw("mount FocusTracker");var C=n();C&&(C.addEventListener("focusin",l,!0),C.addEventListener("focusout",g,!0))}),t(()=>{bw("destroy FocusTracker");var C=n();C&&(C.removeEventListener("focusin",l,!0),C.removeEventListener("focusout",g,!0))})}oi(`/* over all fonts, sizes, and colors */
1315/* "consolas" for Windows, "menlo" for Mac with fallback to "monaco", 'Ubuntu Mono' for Ubuntu */
1316/* (at Mac this font looks too large at 14px, but 13px is too small for the font on Windows) */
1317/* main, menu, modal */

Callers 1

rtFunction · 0.85

Calls 1

pxFunction · 0.70

Tested by

no test coverage detected