(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
$.extend(KhanUtil,{doParabolaInteraction:function(t,a,o){var i=KhanUtil.currentGraph,e=KhanUtil.bogusShape,n=KhanUtil.bogusShape,c=KhanUtil.bogusShape,r=!1;t.onMove=function(t,s){e.remove(),n.remove(),c.remove(),i.style({strokeWidth:1.5,stroke:KhanUtil.GREEN,opacity:0});var p=KhanUtil.getDistance([t,s],a.coord);e=i.line([t,s],a.coord),o.coordA[1]<s?(n=i.line([t,s],[t,s-p]),c=i.line([t-.05,s-p],[t+.05,s-p])):(n=i.line([t,s],[t,s+p]),c=i.line([t-.05,s+p],[t+.05,s+p])),e.toBack(),n.toBack(),r?(e.attr({opacity:1}),n.attr({opacity:1}),c.attr({opacity:1})):(e.animate({opacity:1},100),n.animate({opacity:1},100),c.animate({opacity:1},100)),r=!0},t.onLeave=function(t,a){e.animate({opacity:0},100),n.animate({opacity:0},100),c.animate({opacity:0},100),r=!1}},doHyperbolaInteraction:function(t,a,o){var i=KhanUtil.currentGraph,e=KhanUtil.bogusShape,n=KhanUtil.bogusShape,c=!1;t.onMove=function(t,r){e.remove(),n.remove(),i.style({strokeWidth:1.5,stroke:KhanUtil.GREEN,opacity:0}),e=i.line([t,r],a.coord),i.style({stroke:KhanUtil.RED}),n=i.line([t,r],o.coord),e.toBack(),n.toBack(),c?(e.attr({opacity:1}),n.attr({opacity:1})):(e.animate({opacity:1},100),n.animate({opacity:1},100),$("#problemarea div.focus-instructions").hide(),$("#problemarea div.focus-distances").show()),c=!0,this.writeDistances(t,r)},t.onLeave=function(t,a){e.animate({opacity:0},100),n.animate({opacity:0},100),$("#problemarea div.focus-instructions").show(),$("#problemarea div.focus-distances").hide(),c=!1}},doEllipseInteraction:function(t,a,o){var i=KhanUtil.currentGraph,e=KhanUtil.bogusShape,n=KhanUtil.bogusShape,c=!1;t.onMove=function(t,r){e.remove(),n.remove(),i.style({strokeWidth:1.5,stroke:KhanUtil.GREEN,opacity:0}),e=i.line([t,r],a.coord),i.style({stroke:KhanUtil.RED}),n=i.line([t,r],o.coord),e.toBack(),n.toBack(),c?(e.attr({opacity:1}),n.attr({opacity:1})):(e.animate({opacity:1},100),n.animate({opacity:1},100),$("#problemarea div.focus-instructions").hide(),$("#problemarea div.focus-distances").show()),c=!0,this.writeDistances(t,r)},t.onLeave=function(t,a){e.animate({opacity:0},100),n.animate({opacity:0},100),$("#problemarea div.focus-instructions").show(),$("#problemarea div.focus-distances").hide(),c=!1}}});
},{}]},{},[1]);
