1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3e823d8d-7722-433a-b487-365f3e0d50fd",e._sentryDebugIdIdentifier="sentry-dbid-3e823d8d-7722-433a-b487-365f3e0d50fd")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4088,4344],{7581:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var s=r(10940),n=r(62544);let l="geogebra-script",a=e=>{let{axis:t,equations:r=[],points:a=[],width:i=500,height:o=400,showToolBar:d=!1,showAlgebraInput:c=!0,showMenuBar:u=!1,perspective:g}=e,[p,x]=(0,n.useState)(null),h=(0,n.useId)(),m=(0,n.useRef)("ggb-element-".concat(h)),f=(0,n.useRef)([]),j=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let e=!0;return new Promise(e=>{if(document.getElementById(l))e();else{let t=document.createElement("script");t.src="https://www.geogebra.org/apps/deployggb.js",t.id=l,t.async=!0,t.onload=()=>e(),document.head.appendChild(t)}}).then(()=>new Promise(e=>{let t=()=>{window.GGBApplet?e():setTimeout(t,100)};t()})).then(()=>{e&&(()=>{var t,r;let s=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),n={id:m.current,height:s?1.7*((null==(t=j.current)?void 0:t.clientHeight)||o)||o:void 0,width:s?1.7*((null==(r=j.current)?void 0:r.clientWidth)||i)||i:void 0,showToolBar:d,showAlgebraInput:c,showMenuBar:u,showKeyboardOnFocus:"true",preventFocus:!0,scale:1,perspective:g||(s?"AG":"1"),errorDialogsActive:!1,scaleContainerClass:"graphingContainer",appletOnLoad:t=>{var r;let s=null==(r=document.getElementById(m.current))?void 0:r.querySelector(".applet_scaler");if(s){let e=s.style.zoom;"normal"!==e&&"1"!==e&&""!==e&&s.classList.add("applet-scaler-remove-transform")}e&&x(t)}};s&&(n.scale=.7);let l=new window.GGBApplet(n,!0);e&&l.inject(m.current)})()}).catch(e=>{console.error("Error loading GeoGebra:",e)}),()=>{e=!1}},[i,o,d,c,u]),(0,n.useEffect)(()=>{p&&JSON.stringify(r)!==JSON.stringify(f.current)&&(p.getAllObjectNames().forEach(e=>{p.deleteObject(e)}),t&&4===t.length&&p.setCoordSystem(t[0],t[1],t[2],t[3]),r.forEach(e=>{p.evalCommand(e)}),a.forEach(e=>{p.evalCommand("A=".concat(e))}),f.current=r)},[p,r,t]),(0,s.jsx)("div",{ref:j,className:"w-full h-[98%] flex flex-col items-center graphingContainer",children:(0,s.jsx)("div",{"data-testid":"geogebra-applet",className:"z-0 w-full h-full",id:m.current})})}},11504:(e,t,r)=>{"use strict";r.d(t,{l:()=>d});var s=r(10940),n=r(8150),l=r.n(n),a=r(88853),i=r(18811),o=r(75949);let d=e=>{let{path:t,title:r,description:n,keywords:d,ogImage:c,noindex:u=!1,children:g}=e,{locale:p}=(0,a.useRouter)(),x=(0,i.kW)(p),h=(0,o.id)(t),m=h.includes(x),f=(0,o.EJ)(t,x);return(0,s.jsxs)(l(),{children:[(0,s.jsx)("title",{children:r}),(0,s.jsx)("meta",{property:"og:title",content:r},"og:title"),(0,s.jsx)("meta",{property:"og:url",content:f},"og:url"),n&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("meta",{name:"description",content:n}),(0,s.jsx)("meta",{property:"og:description",content:n},"og:description")]}),d&&(0,s.jsx)("meta",{name:"keywords",content:d}),c&&(0,s.jsx)("meta",{property:"og:image",content:c},"og:image"),(u||!m)&&(0,s.jsx)("meta",{name:"robots",content:"noindex, follow"}),(0,s.jsx)("link",{rel:"canonical",href:f},"canonical"),(0,o.aE)(h)&&(0,s.jsxs)(s.Fragment,{children:[h.map(e=>(0,s.jsx)("link",{rel:"alternate",hrefLang:e,href:(0,o.EJ)(t,e)},"alternate-".concat(e))),(0,s.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:(0,o.EJ)(t,i.q)},"alternate-x-default")]}),g]})}},29979:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var s=r(10940),n=r(11222),l=r(19645);let a=e=>{let{error:t,description:r,className:a}=e;return(0,s.jsx)("div",{className:(0,n.cn)("w-full p-4",a),children:(0,s.jsxs)("div",{className:"flex flex-col p-4 bg-red-50 rounded-lg border border-red-200",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 text-red-600",children:[(0,s.jsx)(l.A,{className:"h-5 w-5"}),(0,s.jsx)("p",{children:t})]}),!!r&&(0,s.jsx)("span",{className:"text-sm mt-1 text-red-900",children:r})]})})}},39810:(e,t,r)=>{"use strict";r.d(t,{I:()=>n});var s=r(62544);function n(e){return(0,s.useMemo)(()=>{try{return{value:JSON.parse(e),error:null}}catch(e){return{value:null,error:"Failed to parse: ".concat(e instanceof Error?e.message:String(e))}}},[e])}},45454:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSG:()=>m,default:()=>f});
1var s=r(10940),n=r(70020),l=r(71818),a=r(54088),i=r(51170),o=r(36293),d=r(57128),c=r(24027),u=r(49e3),g=r(62544),p=r(11504),x=r(40652);let h=()=>{let{t:e}=(0,x.Bd)(),{sendMessage:t}=(0,g.useContext)(d.A),r=(0,c.G3)();return(null==r?void 0:r.messages.length)?(0,s.jsx)(l.A,{}):(0,s.jsxs)(o.J_,{className:"flex flex-col min-h-full w-full overflow-y-auto items-center mx-auto px-4 py-8",children:[(0,s.jsx)("div",{className:"flex items-center justify-center gap-2 mb-4",children:(0,s.jsx)("h1",{className:"text-2xl md:text-4xl font-semibold text-center text-primary",children:e("seo.toolPages.graphing.heading")})}),(0,s.jsx)("p",{className:"text-md md:text-lg text-center text-muted-foreground mb-6",children:e("seo.toolPages.graphing.subheading")}),(0,s.jsxs)("div",{className:"w-full max-w-4xl md:pt-4 pt-1 flex flex-col",children:[(0,s.jsx)(i.A,{artifactInputType:u.FR.Diagram,diagramKindInput:"plot",hideThinking:!0,sendMessage:t,placeholder:e("seo.toolPages.graphing.placeholder"),defaultTextToSend:e("seo.toolPages.graphing.prompt")}),(0,s.jsx)("hr",{className:"my-6 border-t border-gray-200 dark:border-gray-700"}),(0,s.jsx)("div",{className:"mb-4 text-base text-center font-medium",children:e("seo.toolPages.graphing.examples")}),(0,s.jsxs)("div",{className:"grid grid-cols-1 gap-4 z-10 mt-2",children:[(0,s.jsx)("div",{className:"px-2 flex-1 h-72 md:h-96",children:(0,s.jsx)(a.Graph,{content:JSON.stringify({equations:["y = 1/x"],points:["(1, 1)","(2, 0.5)","(-1, -1)","(-2, -0.5)"],axis:[-5,5,-5,5]})})}),(0,s.jsx)("div",{className:"px-2 flex-1 h-72 md:h-96",children:(0,s.jsx)(a.Graph,{content:JSON.stringify({equations:["3sin(4θ)"],points:[],axis:[-3,3,-3,3]})})})]})]})]})};var m=!0;function f(){let{t:e}=(0,x.Bd)();return(0,s.jsxs)("div",{children:[(0,s.jsx)(p.l,{path:"/tools/graphing",title:e("seo.tools.graphing.title"),description:e("seo.tools.graphing.description"),keywords:e("seo.tools.graphing.keywords"),children:(0,s.jsx)("link",{rel:"icon",type:"image/ico",href:"/favicon.ico"})}),(0,s.jsx)(n.P,{children:(0,s.jsx)(h,{})})]})}},54088:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Graph:()=>o});var s=r(10940),n=r(7581),l=r(63184),a=r(29979),i=r(39810);let o=e=>{let{content:t}=e,{value:r,error:o}=(0,i.I)(t);return o?(0,s.jsx)(a.w,{error:o}):(0,s.jsx)(s.Fragment,{children:(null==r?void 0:r.equations)&&(null==r?void 0:r.points)&&(null==r?void 0:r.axis)&&4===r.axis.length?(0,s.jsx)(n.A,{equations:[...r.equations,...r.points],axis:r.axis}):(0,s.jsx)(l.E,{className:"h-full flex"})})}},62742:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/tools/graphing",function(){return r(45454)}])}},e=>{e.O(0,[252,1679,6183,1399,6782,9029,8800,2882,788,2133,7354,9790,5694,20,1818,636,6593,8792],()=>e(e.s=62742)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.