(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){
$.fn.qhintsLoad=function(){var t=function(t,n){var e=t.find(".qhint-feedback");if(!e.length){e=$("<p>",{"class":"qhint-feedback"});var i=$(t.find(".qhint-answer")).text(),a=t.find(".qhint-input"),r="";if(n){var s=n.attr("type");"text"===s||"submit"===s?r=$(t.find("input:text")).val():"button"===s?r=n.val():n.is("a")&&(r=n.text())}a.hide(),n?r===i?e.text($._("Correct! The answer is %(answer)s.",{answer:i})).addClass("correct"):e.text($._("Incorrect. The answer is %(answer)s.",{answer:i})).addClass("incorrect"):e.text(i),t.append(e)}},n=function(n){var e=$(n.currentTarget).parents(".qhint");t(e,$(n.currentTarget))},e=".qhint input:submit, .qhint input:button, .qhint a.qhint-button";$("body").on("click",e,n),$("body").on("keydown",".qhint input:text",function(t){13===t.keyCode&&n(t)}),$(Khan).on("hintUsed",function(){var n=$(".qhint").last();n.length&&t(n,null)})};
},{}]},{},[1]);
