1function findAndSuggestDuplicate(e){Action.log("autocompletes","place-id-lookup",{});var t={address:e};$.get("/autocomplete/school_at_address",t,function(e){Action.log("autocompletes","suggestion-from-address",{}),$("#school_suggestion").removeClass("hidden"),$("#school_suggestion span.clickable").html(e.name);var t=$("#js-location-form").data("form-prefix");$("#school_suggestion span.clickable").off("click").on("click",function(){Action.log("autocompletes","suggested-school-clicked",{}),$("#"+t+"_school_id").val(e.id),$("#"+t+"_school_name").val(e.name),$("#"+t+"_location_name").val(e.location_name),$("#school_suggestion").addClass("hidden"),$(".locations").addClass("hidden")})})}function createAutocompleteWidget(e,t){return new google.maps.places.Autocomplete(e,{types:[t],fields:["address_components"]})}function getPlaceComponent(e,t){for(var n=0;e&&n<e.length;n+=1){var a=e[n].types;if(-1!=$.inArray(t,a))return e[n].long_name}return""}function initGoogleApi(){var e=$(".autocomplete.school-address"),t=e[0],n=$(".autocomplete.locations");t&&createAutocompleteWidget(t,"address").addListener("place_changed",function(){findAndSuggestDuplicate(e.val())});for(var a=0;a<n.length;a+=1){var o=n[a],i=createAutocompleteWidget(o,"(regions)"),r=function(e,t){return function(){var a=e.getPlace();n.data("selected",!0);var o=a.address_components,i=getPlaceComponent(o,"locality"),r=[i=i||getPlaceComponent(o,"sublocality"),getPlaceComponent(o,"administrative_area_level_1"),getPlaceComponent(o,"country")].join(", ");$(t).val(r).removeClass("error"),$(".visible-on-location-entered").removeClass("hidden")}}(i,o);i.addListener("place_changed",r),n.on("focus",function(){n.data("selected",!1)}).on("blur",function(){1!=n.data("selected")&&$(this).val("")}
1)}}function animateCurrentSlide(){var e=$(".js-homepage-slideshow"),t=e.find(".slide-current");0==t.length&&(t=e.find(".slide:first-child")).addClass("slide-current");var n=t.data("ken-burns-position")||"top-right",a=t.data("ken-burns-direction")||"in";if("center-center"==n)var o="ken-burns-pan ken-burns-"+n+" ken-burns-"+a;else o="ken-burns ken-burns-"+n+" ken-burns-"+a;t.addClass(o),setTimeout(function(){t.removeClass("slide-current").next().addClass("slide-current"),animateCurrentSlide()},12e3),setTimeout(function(){t.removeClass(o)},17e3)}function lazyLoadSlides(){$(".js-homepage-slideshow img[data-src]").each(function(e,t){$(t).attr("src",$(t).data("src")),$(t).attr("srcset",$(t).data("srcset"))})}function startSlideShow(){setTimeout(lazyLoadSlides,6e3),animateCurrentSlide()}function ScrollView(){}!function(){"use strict";var e=function(e,t){var n;e.rails!==t&&e.error("jquery-ujs has already been loaded!");var a=e(document);e.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return e("meta[name=csrf-token]").attr("content")},csrfParam:function(){return e("meta[name=csrf-param]").attr("content")},CSRFProtection:function(e){var t=n.csrfToken();t&&e.setRequestHeader("X-CSRF-Token",t)},refreshCSRFTokens:function(){e('form input[name="'+n.csrfParam()+'"]').val(n.csrfToken())},fire:function(t,n,a){var o=e.Event(n);return t.trigger(o,a),!1!==o.result},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e[0].href},isRemote:function(e){return e.data("remote")!==t&&!1!==e.data("remote")},handleRemote:function(a){var o,i,r,s,l,c;if(n.fire(a,"ajax:before")){if(s=a.data("with-credentials")||null,l=a.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,a.is("form")){o=a.data("ujs:submit-button-formmethod")||a.attr("method"),i=a.data("ujs:submit-button-formaction")||a.attr("action"),r=e(a[0]).serializeArray();var u=a.data("ujs:submit-button");u&&(r.push(u),a.data("ujs:submit-button",null)),a.data("ujs:submit-button-formmethod",null),a.data("ujs:submit-button-formaction",null)}else a.is(n.inputChangeSelector)?(o=a.data("method"),i=a.data("url"),r=a.serialize(),a.data("params")&&(r=r+"&"+a.data("params"))):a.is(n.buttonClickSelector)?(o=a.data("method")||"get",i=a.data("url"),r=a.serialize(),a.data("params")&&(r=r+"&"+a.data("params"))):(o=a.data("method"),i=n.href(a),r=a.data("params")||null);return c={type:o||"GET",data:r,dataType:l,beforeSend:function(e,o){if(o.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+o.accepts.script),!n.fire(a,"ajax:beforeSend",[e,o]))return!1;a.trigger("ajax:send",e)},success:function(e,t,n){a.trigger("ajax:success",[e,t,n])},complete:function(e,t){a.trigger("ajax:complete",[e,t])},error:function(e,t,n){a.trigger("ajax:error",[e,t,n])},crossDomain:n.isCrossDomain(i)},s&&(c.xhrFields={withCredentials:s}),i&&(c.url=i),n.ajax(c)}return!1},isCrossDomain:function(e){var t=document.createElement("a");t.href=location.href;var n=document.createElement("a");try{return n.href=e,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(e){return!0}},handleMethod:function(a){var o=n.href(a),i=a.data("method"),r=a.attr("target"),s=n.csrfToken(),l=n.csrfParam(),c=e('<form method="post" action="'+o+'"></form>'),u='<input name="_method" value="'+i+'" type="hidden" />';l===t||s===t||n.isCrossDomain(o)||(u+='<input name="'+l+'" value="'+s+'" type="hidden" />'),r&&c.attr("target",r),c.hide().append(u).appendTo("body"),c.submit()},formElements:function(t,n){return t.is("form")?e(t[0].elements).filter(n):t.find(n)},disableFormElements:function(t){n.formElements(t,n.disableSelector).each(function(){n.disableFormElement(e(this))})},disableFormElement:function(e){var n,a;n=e.is("button")?"html":"val",(a=e.data("disable-with"))!==t&&(e.data("ujs:enable-with",e[n]()),e[n](a)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(t){n.formElements(t,n.enableSelector).each(function(){n.enableFormElement(e(this))})},enableFormElement:function(e){var n=e.is("button")?"html":"val";e.data("ujs:enable-with")!==t&&(e[n](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,a=e.data("confirm"),o=!1;if(!a)return!0;
1if(n.fire(e,"confirm")){try{o=n.confirm(a)}catch(e){(console.error||console.log).call(console,e.stack||e)}t=n.fire(e,"confirm:complete",[o])}return o&&t},blankInputs:function(t,n,a){var o,i,r,s=e(),l=n||"input,textarea",c=t.find(l),u={};return c.each(function(){(o=e(this)).is("input[type=radio]")?(r=o.attr("name"),u[r]||(0===t.find('input[type=radio]:checked[name="'+r+'"]').length&&(i=t.find('input[type=radio][name="'+r+'"]'),s=s.add(i)),u[r]=r)):(o.is("input[type=checkbox],input[type=radio]")?o.is(":checked"):!!o.val())===a&&(s=s.add(o))}),!!s.length&&s},nonBlankInputs:function(e,t){return n.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){var a=e.data("disable-with");a!==t&&(e.data("ujs:enable-with",e.html()),e.html(a)),e.on("click.railsDisable",function(e){return n.stopEverything(e)}),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.off("click.railsDisable"),e.removeData("ujs:disabled")}},n.fire(a,"rails:attachBindings")&&(e.ajaxPrefilter(function(e,t,a){e.crossDomain||n.CSRFProtection(a)}),e(window).on("pageshow.rails",function(){e(e.rails.enableSelector).each(function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableFormElement(t)}),e(e.rails.linkDisableSelector).each(function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableElement(t)})}),a.on("ajax:complete",n.linkDisableSelector,function(){n.enableElement(e(this))}),a.on("ajax:complete",n.buttonDisableSelector,function(){n.enableFormElement(e(this))}),a.on("click.rails",n.linkClickSelector,function(t){var a=e(this),o=a.data("method"),i=a.data("params"),r=t.metaKey||t.ctrlKey;if(!n.allowAction(a))return n.stopEverything(t);if(!r&&a.is(n.linkDisableSelector)&&n.disableElement(a),n.isRemote(a)){if(r&&(!o||"GET"===o)&&!i)return!0;var s=n.handleRemote(a);return!1===s?n.enableElement(a):s.fail(function(){n.enableElement(a)}),!1}return o?(n.handleMethod(a),!1):void 0}),a.on("click.rails",n.buttonClickSelector,function(t){var a=e(this);if(!n.allowAction(a)||!n.isRemote(a))return n.stopEverything(t);a.is(n.buttonDisableSelector)&&n.disableFormElement(a);var o=n.handleRemote(a);return!1===o?n.enableFormElement(a):o.fail(function(){n.enableFormElement(a)}),!1}),a.on("change.rails",n.inputChangeSelector,function(t){var a=e(this);return n.allowAction(a)&&n.isRemote(a)?(n.handleRemote(a),!1):n.stopEverything(t)}),a.on("submit.rails",n.formSubmitSelector,function(a){var o,i,r=e(this),s=n.isRemote(r);if(!n.allowAction(r))return n.stopEverything(a);if(r.attr("novalidate")===t)if(r.data("ujs:formnovalidate-button")===t){if((o=n.blankInputs(r,n.requiredInputSelector,!1))&&n.fire(r,"ajax:aborted:required",[o]))return n.stopEverything(a)}else r.data("ujs:formnovalidate-button",t);if(s){if(i=n.nonBlankInputs(r,n.fileInputSelector)){setTimeout(function(){n.disableFormElements(r)},13);var l=n.fire(r,"ajax:aborted:file",[i]);return l||setTimeout(function(){n.enableFormElements(r)},13),l}return n.handleRemote(r),!1}setTimeout(function(){n.disableFormElements(r)},13)}),a.on("click.rails",n.formInputClickSelector,function(t){var a=e(this);if(!n.allowAction(a))return n.stopEverything(t);var o=a.attr("name"),i=o?{name:o,value:a.val()}:null,r=a.closest("form");0===r.length&&(r=e("#"+a.attr("form"))),r.data("ujs:submit-button",i),r.data("ujs:formnovalidate-button",a.attr("formnovalidate")),r.data("ujs:submit-button-formaction",a.attr("formaction")),r.data("ujs:submit-button-formmethod",a.attr("formmethod"))}),a.on("ajax:send.rails",n.formSubmitSelector,function(t){this===t.target&&n.disableFormElements(e(this))}),a.on("ajax:complete.rails",n.formSubmitSelector,function(t){this===t.target&&n.enableFormElements(e(this))}),e(function(){n.refreshCSRFTokens()}))};window.jQuery?e(jQuery):"object"==typeof exports&&"object"==typeof module&&(module.exports=e)}(),function(e){"use strict";function t(){}function n(){try{return document.activeElement}catch(e){}}function a(e,t){for(var n=0,a=e.length;n<a;n++)if(e[n]===t)return!0;return!1}function o(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):void 0}function i(e,t){var n;e.createTextRange?((n=e.createTextRange()).move("character",t),n.select()):e.selectionStart&&(e.focus(),e.setSelectionRange(t,t))}function r(e,t){try{return e.type=t,!0}catch(e){return!1}}function s(e,t){if(e&&e.getAttribute(C))t(e);else for(var n=e?e.getElementsByTagName("input"):z,a=e?e.getElementsByTagName("textarea"):P,o=n?n.length:0,i=o+(a?a.length:0),r=0;r<i;r++)t(r<o?n[r]:a[r-o])}function l(e){s(e,u)}function c(e){s(e,d)}function u(e,t){var n=!!t&&e.value!==t,a=e.value===e.getAttribute(C);if((n||a)&&"true"===e.getAttribute(A)){e.removeAttribute(A),e.value=e.value.replace(e.getAttribute(C),""),e.className=e.className.replace(x,"");var o=e.getAttribute(N);parseInt(o,10)>=0&&(e.setAttribute("maxLength",o),e.removeAttribute(N));var i=e.getAttribute(_);return i&&(e.type=i),!0}return!1}function d(e){var t=e.getAttribute(C);return!(""!==e.value||!t)&&(e.setAttribute(A,"true"),e.value=t,e.className+=" "+k,e.getAttribute(N)||(e.setAttribute(N,e.maxLength),e.removeAttribute("maxLength")),e.getAttribute(_)?e.type="text":"password"===e.type&&r(e,"text")&&e.setAttribute(_,"password"),!0)}function m(e){return function(){O&&e.value===e.getAttribute(C)&&"true"===e.getAttribute(A)?i(e,0):u(e)}}function f(e){return function(){d(e)}}function h(e){return function(){l(e)}}function p(e){return function(t){if($=e.value,"true"===e.getAttribute(A)&&$===e.getAttribute(C)&&a(S,t.keyCode))return t.preventDefault&&t.preventDefault(),!1}}function g(e){return function(){u(e,$),""===e.value&&(e.blur(),i(e,0))}}function b(e){return function(){e===n()&&e.value===e.getAttribute(C)&&"true"===e.getAttribute(A)&&i(e,0)}}function v(e){var t=e.form;t&&"string"==typeof t&&((t=document.getElementById(t)).getAttribute(E)||(o(t,"
1submit",h(t)),t.setAttribute(E,"true"))),o(e,"focus",m(e)),o(e,"blur",f(e)),O&&(o(e,"keydown",p(e)),o(e,"keyup",g(e)),o(e,"click",b(e))),e.setAttribute(F,"true"),e.setAttribute(C,B),(O||e!==n())&&d(e)}var y=void 0!==document.createElement("input").placeholder;if(e.Placeholders={nativeSupport:y,disable:y?t:l,enable:y?t:c},!y){var $,w=["text","search","url","tel","email","password","number","textarea"],S=[27,33,34,35,36,37,38,39,40,8,46],j="#ccc",k="placeholdersjs",x=new RegExp("(?:^|\\s)"+k+"(?!\\S)"),C="data-placeholder-value",A="data-placeholder-active",_="data-placeholder-type",E="data-placeholder-submit",F="data-placeholder-bound",T="data-placeholder-focus",R="data-placeholder-live",N="data-placeholder-maxlength",D=100,I=document.getElementsByTagName("head")[0],L=document.documentElement,q=e.Placeholders,z=document.getElementsByTagName("input"),P=document.getElementsByTagName("textarea"),O="false"===L.getAttribute(T),V="false"!==L.getAttribute(R),M=document.createElement("style");M.type="text/css";var B,G,Q=document.createTextNode("."+k+" {color:"+j+";}");M.styleSheet?M.styleSheet.cssText=Q.nodeValue:M.appendChild(Q),I.insertBefore(M,I.firstChild);for(var W=0,H=z.length+P.length;W<H;W++)G=W<z.length?z[W]:P[W-z.length],(B=G.attributes.placeholder)&&(B=B.nodeValue)&&a(w,G.type)&&v(G);var K=setInterval(function(){for(var e=0,t=z.length+P.length;e<t;e++)G=e<z.length?z[e]:P[e-z.length],(B=G.attributes.placeholder)?(B=B.nodeValue)&&a(w,G.type)&&(G.getAttribute(F)||v(G),(B!==G.getAttribute(C)||"password"===G.type&&!G.getAttribute(_))&&("password"===G.type&&!G.getAttribute(_)&&r(G,"text")&&G.setAttribute(_,"password"),G.value===G.getAttribute(C)&&(G.value=B),G.setAttribute(C,B))):G.getAttribute(A)&&(u(G),G.removeAttribute(C));V||clearInterval(K)},D);o(e,"beforeunload",function(){q.disable()})}}(this),function(e,t){"use strict";var n=e.fn.val,a=e.fn.prop;t.Placeholders.nativeSupport||(e.fn.val=function(e){var t=n.apply(this,arguments),a=this.eq(0).data("placeholder-value");return void 0===e&&this.eq(0).data("placeholder-active")&&t===a?"":t},e.fn.prop=function(e,t){return void 0===t&&this.eq(0).data("placeholder-active")&&"value"===e?"":a.apply(this,arguments)})}(jQuery,this),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(e,t){function n(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}if(null==this)throw new TypeError('"this" is null or not defined');var a=Object(this),o=a.length>>>0;if(0===o)return!1;for(var i=0|t,r=Math.max(i>=0?i:o-Math.abs(i),0);r<o;){if(n(a[r],e))return!0;r++}return!1}}),function(e){function t(e){return e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():void 0}function n(){e(this).isFullScreen()&&(document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen())}e.fn.fullScreen=function(e,a){var o=this.get(0);if("open"===e){var i=t(o);a&&(i?i.then(a).catch(a):a())}return"close"===e&&n(),this},e.fn.isFullScreen=function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)};var a="fullscreenchange mozfullscreenchange onwebkitfullscreenchange webkitfullscreenchange msfullscreenchange";e(document).on(a,function(){e(this).isFullScreen()?e(document).trigger("$fullscreenopen"):e(document).trigger("$fullscreenclose")})}(jQuery),function(e){function t(t){return e("<div>").addClass("modal-overlay").css("z-index",t-1)}function n(e,t){var n=e.clone(),a=e.offset(),o={position:"absolute",left:a.left,top:a.top,"z-index":t,width:e.css("width")};return n.css(o),n}e.fn.highlightOn=function(){var e=1e5;this.$overlay=t(e),this.$clone=n(this,e),this.$overlay.appendTo("body"),this.$clone.appendTo("body"),this.trigger("highlight-on"),this.$overlay.on("click",this.highlightOff.bind(this)),this.$clone.on("click",this.highlightOff.bind(this))},e.fn.highlightOff=function(){this.$clone.remove(),this.$overlay.remove(),this.focus(),this.trigger("highlight-off")}}(jQuery),function(e){e.fn.scrollTo=function(t){var n=this.offset().top;!0===t?e("html, body").animate({scrollTop:this.offset().top},1e3):e("html, body").scrollTop(n)}}(jQuery),$(document).ready(function(){$(".stay-curious-text").on("click mouseenter",function(){var e=$
1(this).parents(".stay-curious");e.addClass("build-in"),setTimeout(function(){e.removeClass("build-in")},5e3)})}),function(e){function t(e){(e=n(e)).includes("NGSS")||0===e.length?window.location.href="/docs/ngss":window.location.href=`/docs/${e.toLowerCase().replace(" ","-")}`}function n(e){const t=a(e=o(e));return t<=0?"NGSS":r[t]}function a(e){return r.findIndex(t=>t.toLowerCase()===e.toLowerCase())}function o(e){return r.filter(t=>t.toLowerCase()===e.toLowerCase()).toString()}const i=e("#select-state-input"),r=["NGSS Next Generation Science Standards","Alabama","Alaska","Alberta","Arizona","Arkansas","British Columbia","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Ontario","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"];let s;const l=function(t){return function(n,a){const o=[],i=new RegExp(n,"i");e.each(t,function(e,t){i.test(t)&&o.push(t)}),a(o)}};i.typeahead({hint:!0,highlight:!0,minLength:0},{name:"states",source:l(r),limit:r.length,templates:{suggestion:function(e){return e===s?`<div id="selected-state"><span class="margin-right-base vert-negative-xs-margin"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="30" height="30" class="fill-black" viewbox="0 0 25 25" style="overflow:visible;enable-background:new 0 0 25 25;" xml:space="preserve"><g><polygon points="10.18,15 6.22,10.97 4.38,12.85 10.18,18.75 20.62,8.13 18.78,6.24"></polygon></g></svg></span> ${e}</div>`:e.includes("NGSS")?'<div>NGSS<span class="extra-light-weight"> Next Generation Science Standards</span></div>':`<div>${e}</div>`}}}).on("typeahead:select",(e,n)=>{t(n)}).on("keydown",e=>{"Enter"===e.key&&(e.preventDefault(),t(i.typeahead("val")))}),window.addEventListener("load",()=>{const e=window.location.pathname.match(/[a-z-]+$/)[0].replace("-"," ");s=n(e)})}
1(jQuery),$(document).ready(function(){var e=$(window),t=$(".ivy-controller .hero"),n=(t.find(".call-to-action"),t.find(".tagline"));0!=t.length&&($(window).resize(function(){var a=500,o=645,i=e.width(),r=e.height();r>o&&(r=o),i<a&&(r=a),t.height(r),n.css("top",(r-$(".hero .call-to-action").height())/2-n.height()/2+"px")}).resize(),$(".unit-modal").on("modal-loaded",function(e){!0!==$(e.target).data("unitHideSignup")&&$(e.target).find(".js-hide-signup").removeClass("hidden")}))}),function(){var e="";$(document).ready(function(){function t(e){$(".start-form").addClass("profile-card"),$(".hero .tagline").addClass("profile-card-container"),$("#start_form_email").addClass("profile-card-form-input"),$(".profile-card-info, .profile-card-not").removeClass("hidden"),$(".profile-card-name, .profile-card-not span").text(e.user_name),$(".profile-card-email").text(e.user_email)}function n(){$(".start-form").removeClass("profile-card"),$("#start_form_email").val("").removeClass("profile-card-form-input").focus(),$(".profile-card-info, .profile-card-not").addClass("hidden"),$("#new_start_form .button-primary").text(e)}var a=$("div.js-second-signup");a.length>0&&$.ajax({url:a.data("auth-url"),xhrFields:{withCredentials:!0}}).done(function(n){n.key.length>0&&$.ajax({url:"/mystery-auth/"+n.key}).done(function(n){$("#start_form_email").val(n.user_email),$(".secondary-call-to-action #start_form_email").val(n.user_email),t(n);var o=$("#new_start_form .button-primary");e=o.first().text(),o.text(a.data("auth-button-text"))})}),$(".profile-card-not a").on("ajax:success",function(){n()})})}(),$(document).ready(function(){function e(e){$("span.progress").addClass("progress-step"+e)}function t(){$("body.teachers-controller").length?i="teacher":$("body.admins-controller").length?i="administrators":$("body.others-controller").length?i="others":$("body.homeschools-controller").length&&(i="homeschools")}function n(){$("input.js-grade-checkbox:checked").length>0?($(".js-onboarding-lesson-select").removeClass("hidden"),$(".js-unit-choice").addClass("hidden"),$("input.js-grade-checkbox:checked").each(function(){var t=$(this).data("level");t=7===(t=0===t?1:t)?6:t,$(".js-unit-choice[data-level='"+t+"']").removeClass("hidden"),e(100)})):$(".js-onboarding-lesson-select").addClass("hidden")}function a(t){"school"===t?($(".js-visible-for-school-admin").removeClass("hidden"),$(".js-visible-for-district-admin").addClass("hidden"),e(70)):"district"===t?($(".js-visible-for-school-admin").addClass("hidden"),$(".js-visible-for-district-admin").removeClass("hidden"),e(70)):($(".js-visible-for-school-admin").addClass("hidden"),$(".js-visible-for-district-admin").addClass("hidden"))}function o(){$(".js-student-warning").removeClass("hidden"),$(":submit").addClass("hidden"),e(100),$(".js-tag-student").val(!0),$("input.js-student").attr("disabled",!0),$("input.rsvp-type").attr("disabled",!0),sessionStorage.student=!0,$.ajax({type:"POST",url:"/signups/answered_yes_to_student"})}var i="";t(),$(document).find(".js-rsvp-types").change(function(){e(50)}),$(document).find(".js-rsvp-autoadvance input.rsvp-type").change(function(){$(this).closest("form").submit()}),$(document).find(".js-grade-select-options").each(function(){GradeSelect.initOne($(this))}),$(document).find(".js-ngss-options").change(function(){"teacher"===i?e(87):"administrators"===i&&e(100)}),$("input#school-location").change(function(){"teacher"===i?e(62):"administrators"===i&&e(80)}),$(document).on("blur","input.locations",function(e){$(e.currentTarget).val().match(/,.+,/)||$(e.currentTarget).val(""),""===$(this).val()?$(this).addClass("error"):$(this).removeClass("error")}),new Autocomplete.OrganizationAutocomplete({changeLocationLinkClicked:function(){Action.log("autocompletes","change-location",{}),$(".js-location").removeClass("hidden"),$("html,body").animate({scrollTop:$("body").offset().top},500),$(".locations").removeClass("hidden"),$(".autocomplete.locations").focus().select()},schoolSelected:function(t){t?(Action.log("autocompletes","school-selected",{details:t.name+" ("+t.id+")"}),$("input.js-school-id").val(t.id),"teacher"===i?e(75):"administrators"===i&&e(90)):$("input.js-school-id").val(null)},districtSelected:function(t){t?($("input.js-district-id").val(t.id),"administrators"===i&&e(90)):$("input#js-district-id").val(null)},initialLocation:$(".autocomplete.locations").val()}),Utils.forms.autoFocusFirstInput(),$(document).on("submit","form",function(){$("form .hidden input").remove()}),$(document).find("input.js-grade-checkbox").change(function(){n(),$("input.js-grade-checkbox:checked").length<1&&e(100)}),$(document).find("input#new_signups_teacher_form_grades_raw").change(function(){e(100)}),n(),$(document).on("change","#signups_admin_form_organization_level",function(){a($("#signups_admin_form_organization_level").val())}),$(document).find(".js-admin-job-title").change(function(){e(60)}),$(document).find("input#district-location").change(function(){e(80)}),$(document).find("input#signups_homeschool_form_ages_of_children").keydown(function(){e(100)}),$(document).find("input.js-student").click(function(){"true"===$("input.js-student:checked").val()?o():($(".js-student-warning").addClass("hidden"),$(":submit").removeClass("hidden"),e(100))}),(sessionStorage.student||window.location.href.indexOf("answered_student")>-1)&&o(),$(document).on("submit",".start-form",function(){var e=$
1(this).find("#start_form_email").val();e&&e.length>0?Action.log("signup_flow","start_with_email",{}):Action.log("signup_flow","start_without_email",{})})}),ScrollView.init=function(){$(".js-log-scroll-action").each(function(){ScrollView.trackScrollOnElement($(this))}),this.logAnyScrolls={},$(".js-log-any-scroll").each(function(){ScrollView.trackAnyScroll($(this))})},ScrollView.hasScrolledToElement=function(e){if(!e.is(":visible"))return!1;var t=$(window).scrollTop(),n=t+$(window).height(),a=$(e).offset().top;return a+$(e).height()<=n&&a>=t},ScrollView.trackScrollOnElement=function(e){var t=e.data("action-scope"),n=e.data("action-name"),a=e.data("action-details"),o=e.data("log-action-thing-id"),i=_.throttle(function(){ScrollView.hasScrolledToElement(e)&&(Action.log(t,n,{details:a,id:o}),$(window).off("scroll",i))},100);$(window).on("scroll",i)},ScrollView.trackAnyScroll=function(e){var t=e.data("action-scope"),n=e.data("action-name"),a=e.data("action-details"),o=e.data("log-action-thing-id"),i=this;this.logAnyScrolls[t+"-"+n]=!0;var r=function(){!0===i.logAnyScrolls[t+"-"+n]&&(i.logAnyScrolls[t+"-"+n]=!1,Action.log(t,n,{details:a,id:o})),$(window).off("scroll",r)};$(window).on("scroll",r)};var SmoothScrollAnchors=function(e){function t(){e("a[href*=\\#]:not([href=\\#])").click(function(){if(this.hash&&location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=e(this.hash);if((t=t.length?t:e("[name="+this.hash.slice(1)+"]")).length){var n=t.offset().top-68;return e("html,body").animate({scrollTop:n},800),!1}}})}return{init:t}}(jQuery);!function(e){function t(e,t){if(""==e&&a)t(a);else{var o=[];try{for(var i=new RegExp(e,"i"),r=0;r<n.length;r++)i.test(n[r])&&o.push(n[r])}catch(e){}t(o)}}var n=[],a=null;e(document).ready(function(){var o=e("#lesson-search-form");const i=o.find("input");n=o.data("phrases"),a=o.data("defaults"),i.typeahead({hint:!1,highlight:!0,minLength:0,limit:5},{name:"lesson_search_phrases",source:t}).on("typeahead:select",function(){i.submit()}).on("typeahead:render",function(){e(".tt-menu").attr("id","lesson-search-list").attr("role","listbox"),e(".tt-suggestion").each(function(t){e(this).attr("role","option").attr("id","lesson-suggestion-"+t)})}).on("typeahead:cursorchange",function(){var t=e(".tt-suggestion.tt-cursor");t.length&&(i.attr("aria-activedescendant",t.attr("id")),e(".tt-suggestion").attr("aria-selected","false"),t.attr("aria-selected","true"))}).on("typeahead:open",function(){e(this).attr("aria-expanded","true")}).on("typeahead:close",function(){e(this).attr("aria-expanded","false")})})}(jQuery),$(document).ready(function(){startSlideShow(),Utils.forms.autoFocusFirstInput(),Utils.forms.disableButtonsWhileFormsSubmit(),Modal.init(),Tooltip.init(),SmoothScrollAnchors.init(),Placeholders.enable(),Action.logAnyClicks(),ScrollView.init()});
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.