"),c.appendTo(o).css(n.extend({zIndex:1},u)).show("drop",{direction:"up"},"fast",function(){return t(this).css("z-index",2)}).delay(l||7e3).animate({"z-index":1},0).fadeOut("slow",function(){return t(this).slideUp("fast",function(){return t(this).remove()})}),setTimeout(function(){return d(i,a)},100)},t.flashMessage=function(e,t){return null==t&&(t=3e3),l("success",e,t)},t.flashError=function(e,t){return l("error",e,t)},t.flashWarning=function(e,t){return null==t&&(t=3e3),l("warning",e,t)},t.screenReaderFlashMessage=function(e){return d("success",e)},t.screenReaderFlashError=function(e){return d("error",e)},t.screenReaderFlashMessageExclusive=function(e){return a.html(""+s(e)+"")},t.initFlashContainer=function(){return u()},c=function(){var e,t,n,i,r;if(null!=ENV.notices){for(i=ENV.notices,r=[],t=0,n=i.length;n>t;t++)e=i[t],r.push(l(e.type,e.content));return r}},t(function(){return setTimeout(c,500)})})}.call(this),define("translations/editor_accessibility",["i18nObj","jquery"],function(e,t){t.extend(!0,e,{translations:{ar:{editor_accessibility:{accessibles:{background_color:"لون الخلفية، اضغط لأسفل للتحديد",forecolor:"لون النص، اضغط لأسفل للتحديد",record:"لا يمكن الوصول لهذه الميزة بالنسبة لأجهزة قراءة الشاشة."},titles:{font_size:"حجم الخط، اضغط لأسفل للتحديد",formatting:"التنسيق، اضغط لأسفل للتحديد",rte_help:"منطقة نص منسق. اضغط على مفتاحي ALT وF10 لإظهار شريط الأدوات. واضغط ALT وF8 لإظهار التعليمات."}}},de:{editor_accessibility:{accessibles:{background_color:"Hintergrundfarbe, zum Auswählen Nach-Unten-Taste drücken",forecolor:"Textfarbe, zum Auswahlen Nach-Unten-Taste drücken",record:"Auf diese Funktion haben Sprachausgabeprogramme keinen Zugriff."},titles:{font_size:"Schriftgröße, zum Auswählen Nach-Unten-Taste drücken",formatting:"Formatierung, zum Auswählen Nach-Unten-Taste drücken"}}},"el-gr":{},"en-AU":{editor_accessibility:{accessibles:{background_color:"Background Colour, press down to select",forecolor:"Text Colour, press down to select",record:"This feature is inaccessible for screen readers."},titles:{font_size:"Font Size, press down to select",formatting:"Formatting, press down to select",rte_help:"Rich Text Area. Press ALT F10 for toolbar. Press ALT F8 for help."}}},"en-GB":{editor_accessibility:{accessibles:{background_color:"Background colour. Press down to select",forecolor:"Text colour. Press down to select",record:"This feature is inaccessible for screen readers."},titles:{font_size:"Font size. Press down to select",formatting:"Formatting. Press down to select",rte_help:"Rich Text Area. Press ALT F10 for toolbar. Press ALT F8 for help."}}},es:{editor_accessibility:{accessibles:{background_color:"Color de fondo, pulse abajo para seleccionar",forecolor:"Color de texto, pulse abajo para seleccionar",record:"Los lectores de pantalla no pueden acceder a esta función."},titles:{font_size:"Tamaño del texto, pulse abajo para seleccionar",formatting:"Formato, pulse abajo para seleccionar",rte_help:"Area de texto enriquecido. Pulse ALT F10 para acceder a la barra de herramientas. Pulse ALT F8 para acceder a la ayuda. "}}},"fa-IR":{editor_accessibility:{accessibles:{background_color:"رنگ پس زمینه، کلید down را برای انتخاب فشار دهید",forecolor:"رنگ متن، کلید down را برای انتخاب فشار دهید",record:"این ویژگی برای صفحه خوان ها غیر قابل دسترسی است."},titles:{font_size:"اندازه قلم، کلید down را برای انتخاب فشار دهید",formatting:"در حال قالب بندی، کلید down را برای انتخاب فشار دهید",rte_help:"قسمت دارای متن غنی. ALT F10 را برای نوار ابزار فشار دهید. ALT F8 را برای راهنمایی فشار دهید."}}},fr:{editor_accessibility:{accessibles:{background_color:"Couleur de fond. Appuyez pour sélectionner.",forecolor:"Couleur du texte. Appuyez pour sélectionner.",record:"Cette fonction n’est pas accessible aux lecteurs d’écrans."},titles:{font_size:"Taille du texte. Appuyez pour sélectionner.",formatting:"Mise en forme. Appuyez pour sélectionner."}}},hi:{},hu:{},"it-it":{},ja:{editor_accessibility:{accessibles:{background_color:"背景色、押して選択",forecolor:"テキスト色、押して選択",record:"この機能はスクリーン リーダーからアクセスできません。"},titles:{font_size:"フォント サイズ、押して選択",formatting:"書式設定、押して選択"}}},ko:{editor_accessibility:{accessibles:{background_color:"배경색, 선택하려면 누름",forecolor:"텍스트 색, 선택하려면 누름",record:"이 기능은 스크린 리더에서 액세스할 수 없습니다."},titles:{font_size:"글자 크기, 선택하려면 누름",formatting:"서식, 선택하려면 누름"}}},"ko-kr":{},nb:{editor_accessibility:{accessibles:{background_color:"Bakgrunnsfarge, trykk nedover for å velge",forecolor:"Tekstfarge, trykk nedover for å velge",record:"Denne funksjonen er ikke tilgjengelig for skjermlesere."},titles:{font_size:"Skriftstørrelse, trykk nedover for å velge",formatting:"Formatering, trykk nedover for å velge",rte_help:"Riktekstområde. Trykk Alt F10 for verktøylinjen. Trykk Alt F8 for hjelp."}}},nl:{editor_accessibility:{accessibles:{background_color:"Achtergrondkleur, er op drukken om een optie te selecteren",forecolor:"Tekstkleur, er op drukken om een optie selecteren",record:"Deze functie is niet toegankelijk voor schermlezers."},titles:{font_size:"Tekengrootte, er op drukken om een optie te selecteren",formatting:"Opmaak, er op drukken om een optie te selecteren",rte_help:"RTF-gebied. Druk op ALT F10 for the toolbalk. Druk op ALT F8 voor hulp."}}},pl:{editor_accessibility:{accessibles:{background_color:"Kolor tła; naciskaj do dołu, aby wybrać",forecolor:"Kolor tekstu; naciskaj do dołu, aby wybrać",record:"Ta funkcja jest niedostępna dla programu do odczytywania zawartości ekranu."},titles:{font_size:"Rozmiar czcionki; naciskaj do dołu, aby wybrać",formatting:"Formatowanie; naciskaj do dołu, aby wybrać",rte_help:"Wzbogacony obszar tekstu. Naciśnij ALT F10, aby przejść do paska narzędzi. Naciśnij ALT F8, aby przejść do pomocy."}}},pt:{editor_accessibility:{accessibles:{background_color:"Cor de fundo, premir para baixo para selecionar",forecolor:"Cor do texto, premir para baixo para selecionar",record:"Esta funcionalidade não está acessível para leitores de ecrã."},titles:{font_size:"Tamanho da letra, premir para baixo para selecionar",formatting:"Formatação, premir para baixo para selecionar",rte_help:"Área de Rich Text. Premir ALT F10 para a barra de ferramentas. Premir ALT F8 para ajuda."}}},"pt-BR":{editor_accessibility:{accessibles:{background_color:"Cor de fundo, pressione para selecionar",forecolor:"Cor do texto, pressione para selecionar",record:"Este recurso é inacessível para leitores de tela."},titles:{font_size:"Tamanho da fonte, pressione para selecionar",formatting:"Formatação, pressione para selecionar"}}},"pt-pt":{},"ro-ro":{},ru:{editor_accessibility:{accessibles:{background_color:"Цвет фона, нажмите стрелку вниз, чтобы выбрать",forecolor:"Цвет текста, нажмите стрелку вниз, чтобы выбрать",record:"Данная функция недоступна для чтения с экрана."},titles:{font_size:"Размер шрифта, нажмите стрелку вниз, чтобы выбрать",formatting:"Форматирование, нажмите стрелку вниз, чтобы выбрать",rte_help:"Форматированный текст. Нажмите клавиши ALT F10, чтобы вызвать панель инструментов. Нажмите клавиши ALT F8, чтобы вызвать справку."}}},tr:{editor_accessibility:{accessibles:{background_color:"Arkaplan rengi, aşağı tuşa basın ve seçin",forecolor:"Yazı rengi, aşağı tuşa basın ve seçin",record:"Bu özellik ekran okuyucular tarafından kullanılamaz."},titles:{font_size:"Yazı büyüklüğü, aşağı tuşa basın ve seçin",formatting:"Format, aşağı tuşa basın ve seçin"}}},"tr-tr":{},zh:{editor_accessibility:{accessibles:{background_color:"背景颜色,按下即可选择",forecolor:"文本颜色,按下即可选择",record:"此功能对于屏幕阅读器是不可访问的。"},titles:{font_size:"字体大小,按下即可选择",formatting:"格式,按下即可选择",rte_help:"富文本区域。按 ALT F10 显示工具栏。按 ALT F8 显示帮助。"}}},"zh-hans":{},zh_Hant:{editor_accessibility:{accessibles:{background_color:"背景顏色,按下以選擇",forecolor:"文字顏色,按下以選擇",record:"此功能無法存取螢幕閱讀程式。"},titles:{font_size:"字型大小,按下以選擇",formatting:"格式化,按下以選擇",rte_help:"RTF 區域。按 Alt F10 以彈出工具列。按 ALT F8 以查看說明。"}}}}})}),function(){define("compiled/editor/editorAccessibility",["i18n!editor_accessibility","jquery","str/htmlEscape"],function(e,t,n){var i;return i=function(){function i(e){this.id_prepend=e.editorId,this.$el=t("#"+e.editorContainer)}return i.prototype.accessiblize=function(){return this._cacheElements(),this._addTitles(),this._addLabels(),this._highlightSelectedColor()},i.prototype._highlightSelectedColor=function(){return t("body").on("click",".mceColorSplitMenu td",function(){return t(this).parentsUntil(".mceColorSplitMenu").find(".selectedColor").removeClass("selectedColor"),t(this).addClass("selectedColor")})},i.prototype._cacheElements=function(){return this.$iframe=this.$el.find(".mceIframeContainer iframe")},i.prototype._addLabels=function(){return this.$el.find("#"+this.id_prepend+"_fontsizeselect_voiceDesc").text(e.t("titles.font_size","Font Size, press down to select")),this.$el.find("#"+this.id_prepend+"_formatselect_voiceDesc").text(e.t("titles.formatting","Formatting, press down to select")),this.$el.find("#"+this.id_prepend+"_forecolor_voice").text(e.t("accessibles.forecolor","Text Color, press down to select")),this.$el.find("#"+this.id_prepend+"_backcolor_voice").text(e.t("accessibles.background_color","Background Color, press down to select")),this.$el.find("#"+this.id_prepend+"_instructure_record").attr("aria-disabled","true"),this.$el.find("#"+this.id_prepend+"_instructure_record").removeAttr("role"),this.$el.find("#"+this.id_prepend+"_instructure_record_voice").append(" ").append(n(e.t("accessibles.record","This feature is inaccessible for screen readers."))),this.$el.find("#"+this.id_prepend+"_instructure_record img").attr("alt",this.$el.find("#"+this.id_prepend+"_instructure_record img").attr("alt")+", "+e.t("accessibles.record","This feature is inaccessible for screen readers."))},i.prototype._addTitles=function(){return this.$iframe.attr("title",e.t("titles.rte_help","Rich Text Area. Press ALT F10 for toolbar. Press ALT F8 for help."))},i}()})}.call(this),define("vendor/jquery.ba-tinypubsub",["jquery"],function(e){var t,n,i,r=e({});return e.subscribe=t=function(n,i){function o(){return i.apply(this,Array.prototype.slice.call(arguments,1))}return e.isPlainObject(n)?e.each(n,function(e,n){t(e,n)}):(o.guid=i.guid=i.guid||e.guid++,void r.bind(n,o))},e.unsubscribe=n=function(){r.unbind.apply(r,arguments)},e.publish=i=function(){r.trigger.apply(r,arguments)},{subscribe:t,unsubscribe:n,publish:i}}),define("tinymce.editor_box",["i18nObj","jquery","compiled/editor/editorAccessibility","INST","jqueryui/draggable","jquery.instructure_misc_plugins","vendor/jquery.scrollTo","vendor/jquery.ba-tinypubsub"],function(e,t,n,i){function r(){this._textareas={},this._editors={},this._editor_boxes={}}function o(e,n){var i=t("#"+e+"_ifr");if(i.length){var r=t(window).height()-(i.offset().top+n.height()+1);i.height(r)}t("#"+e+"_tbl").css("height","")}function a(e,r,a,u,c){c=t.extend({},c),c.fullHeight&&t(window).resize(function(){o(e,c.elementToLeaveInViewport)}).triggerHandler("resize");var d=t("#"+e);d.data("enable_bookmarking",s);var h=d.width();0==h&&(h=d.closest(":visible").width());var p=",instructure_image,instructure_equation";for(var m in i.editorButtons)i.editorButtons.length<=i.maxVisibleEditorButtons||mh&&h>0?(_="bold,italic,underline,forecolor,backcolor,removeformat,justifyleft,justifycenter,justifyright",g="outdent,indent,sup,sub,bullist,numlist,table,instructure_links,unlink"+p,v="fontsizeselect,formatselect"):600>h&&(_="bold,italic,underline,forecolor,backcolor,removeformat,justifyleft,justifycenter,justifyright,outdent,indent,sup,sub,bullist,numlist",g="table,instructure_links,unlink"+p+",fontsizeselect,formatselect");var y="/javascripts/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/ui.css,/stylesheets_compiled/legacy_normal_contrast/vendor/tiny_like_ck_with_external_tools.css",b=t.extend({mode:"exact",elements:e,theme:"advanced",plugins:"autolink,instructure_external_tools,instructure_contextmenu,instructure_links,instructure_embed,instructure_image,instructure_equation,instructure_record,instructure_equella,media,paste,table,inlinepopups",dialog_type:"modal",language_load:!1,relative_urls:!1,remove_script_host:!0,theme_advanced_buttons1:_,theme_advanced_toolbar_location:"top",theme_advanced_toolbar_align:"center",theme_advanced_buttons2:g,theme_advanced_buttons3:v,theme_advanced_resize_horizontal:!1,theme_advanced_resizing:!0,theme_advanced_blockformats:"p,h2,h3,h4,pre",theme_advanced_more_colors:!1,extended_valid_elements:"iframe[src|width|height|name|align|style|class|sandbox|allowfullscreen|webkitallowfullscreen|mozallowfullscreen]",content_css:"/stylesheets_compiled/legacy_normal_contrast/vendor/instructure_style.css,/stylesheets_compiled/legacy_normal_contrast/vendor/tinymce.editor_box.css",editor_css:y,auto_focus:c.focus?e:null,onchange_callback:function(){t("#"+e).trigger("change")},setup:function(e){var i=t("#"+e.editorId),r=function(){t(document).triggerHandler("editor_box_focus",i),t.publish("editorBox/focus",i)},o=function(e,n){if(9!=n.keyCode||!n.shiftKey)return!0;for(var i=t(e.getContainer());;){if(i.prevAll().find(":tabbable").andSelf().filter(":tabbable").last().focus().length)return!1;if(i=i.parent(),!i||!i.length||i.is(document))return!1}};e.onClick.add(r),e.onKeyPress.add(r),e.onKeyUp.add(o),e.onActivate.add(r),e.onEvent.add(function(){s&&e.selection&&d.data("last_bookmark",e.selection.getBookmark(1))}),e.onInit.add(function(){new n(e).accessiblize()}),e.onInit.add(function(){t(window).triggerHandler("resize"),t(e.contentDocument).bind("DOMNodeInserted",function(e){var n,i=e.target;1===i.nodeType&&"IMG"===i.nodeName&&(n=t(i).data("url"))&&t(i).attr("src",tinyMCE.activeEditor.documentBaseURI.toAbsolute(n))}),"onfocusout"in e.contentWindow||t(e.contentWindow).blur(function(){!e.removed&&e.undoManager.typing&&(e.undoManager.typing=!1,e.undoManager.add())})})}},c.tinyOptions||{});tinyMCE.init(b),this._textarea=d,this._editor=null,this._id=e,this._searchURL=r,this._submitURL=a,this._contentURL=u,l._addEditorBox(e,this),d.bind("blur change",function(){l._getEditor(e)&&l._getEditor(e).isHidden()&&t(this).editorBox("set_code",l._getTextArea(e).val())})}var s=!!i.browser.ie;t(document).ready(function(){s=!!i.browser.ie}),t.extend(r.prototype,{_addEditorBox:function(e,n){t.publish("editorBox/add",e,n),this._editor_boxes[e]=n,this._editors[e]=tinyMCE.get(e),this._textareas[e]=t("textarea#"+e)},_removeEditorBox:function(e){delete this._editor_boxes[e],delete this._editors[e],delete this._textareas[e],t.publish("editorBox/remove",e),t.isEmptyObject(this._editors)&&t.publish("editorBox/removeAll")},_getTextArea:function(e){return this._textareas[e]||(this._textareas[e]=t("textarea#"+e)),this._textareas[e]},_getEditor:function(e){return this._editors[e]||(this._editors[e]=tinyMCE.get(e)),this._editors[e]},_getEditorBox:function(e){return this._editor_boxes[e]}});var l=new r,u={getSelection:function(){var e=this.jquery?this[0]:this;return("selectionStart"in e&&function(){var t=e.selectionEnd-e.selectionStart;return{start:e.selectionStart,end:e.selectionEnd,length:t,text:e.value.substr(e.selectionStart,t)}}||document.selection&&function(){e.focus();var t=document.selection.createRange();if(null==t)return{start:0,end:e.value.length,length:0};var n=e.createTextRange(),i=n.duplicate();return n.moveToBookmark(t.getBookmark()),i.setEndPoint("EndToStart",n),{start:i.text.length,end:i.text.length+t.text.length,length:t.text.length,text:t.text}}||function(){return{start:0,end:e.value.length,length:0}})()},replaceSelection:function(){var e=this.jquery?this[0]:this,t=arguments[0]||"";return("selectionStart"in e&&function(){return e.value=e.value.substr(0,e.selectionStart)+t+e.value.substr(e.selectionEnd,e.value.length),this}||document.selection&&function(){return e.focus(),document.selection.createRange().text=t,this}||function(){return e.value+=t,this})()}};t.extend(t.fn,u);var c=1;t.fn.editorBox=function(e,n){var i=arguments;if(this.length>1)return this.each(function(){var e=t(this);e.editorBox.apply(e,i)});var r=this.attr("id");if("string"==typeof e&&"create"!=e){if("get_code"==e)return this._getContentCode(n);if("set_code"==e)this._setContentCode(n);else if("insert_code"==e)this._insertHTML(n);else{if("selection_offset"==e)return this._getSelectionOffset();if("selection_link"==e)return this._getSelectionLink();if("create_link"==e)this._linkSelection(n);else{if("focus"==e)return this._editorFocus(n);if("toggle"==e)this._toggleView();else{if("execute"==e){for(var o=[],s=1;s");f.find("a")[c?"attr":"removeAttr"]("id",c).attr({title:n,href:i,target:a})[r?"attr":"removeAttr"]("class",r).text(d);var _=f.html();t(this).replaceSelection(_)}else if(m&&""!=m)tinyMCE.get(u).execCommand("mceInsertLink",!1,{target:a||"",title:n||"",href:i,"class":r,id:c});else if(p)t(p).attr({href:i,"data-mce-href":i,_mce_href:i,title:n||"",id:c,"class":r,target:a});else{d=o;var f=t("");f.append(t("",{id:c,target:a,title:n,href:i,"class":r}).text(d)),tinyMCE.get(u).execCommand("mceInsertContent",!1,f.html())}var g=tinyMCE.get(u),v=g.selection.getNode();if("A"!=v.nodeName&&(v=t(v).children("a:last")[0]),v){for(var y={top:v.offsetTop,left:v.offsetLeft},b=v;(b=b.offsetParent)&&"BODY"!=b.tagName;)y.top=y.top+b.offsetTop||0,y.left=y.left+b.offsetLeft||0;var w=g.getContainer(),k=t(w).find("iframe").offset(),x=t(g.dom.doc).find("html").scrollTop()||t(g.dom.doc).find("body").scrollTop(),C={left:k.left+y.left,top:k.top+y.top-x};
t(v).indicate({offset:C,singleFlash:!0,scroll:!0,container:t(w).find("iframe")})}}}),define("jquery.instructure_forms",["INST","i18n!instructure","jquery","underscore","compiled/xhr/FakeXHR","compiled/behaviors/authenticity_token","str/htmlEscape","jquery.ajaxJSON","jquery.disableWhileLoading","jquery.google-analytics","jquery.instructure_date_and_time","jquery.instructure_misc_helpers","jquery.instructure_misc_plugins","compiled/jquery.rails_flash_notifications","tinymce.editor_box","vendor/jquery.scrollTo"],function(e,t,n,i,r,o,a){n.fn.formSubmit=function(t){return n(this).markRequired(t),this.submit(function(o){var s=n(this),l=t.onSubmit;if(!s.data("submitting")){s.data("trigger_event",o),s.hideErrors();var u=!1,c=s.validateForm(t);if(!c)return!1;var d=s.getFormData(t);if(t.processData&&n.isFunction(t.processData)){var h=null;try{h=t.processData.call(s,d)}catch(p){u=p}if(h===!1)return!1;h&&(d=h)}var m=s.data("method")||s.find("input[name='_method']").val()||s.attr("method"),f=s.attr("id"),_=s.attr("action"),g=null;if(n.isFunction(t.beforeSubmit)){g=null;try{g=t.beforeSubmit.call(s,d)}catch(p){u=p}if(g===!1)return!1}if(t.disableWhileLoading){var v=l;l=function(e){if("spin_on_success"===t.disableWhileLoading){var i=e;e=n.Deferred(),i.fail(function(){e.reject()})}s.disableWhileLoading(e),v&&v.apply(this,arguments)}}if(l){var y=n.Deferred(),b={};l(y,d),n.each(["success","error"],function(e,i){b[i]=t[i],t[i]=function(){return y["success"===i?"resolve":"reject"].apply(y,arguments),n.isFunction(b[i])?b[i].apply(this,arguments):void 0}})}var w=t.fileUpload;if(n.isFunction(t.fileUpload))try{w=t.fileUpload.call(s,d)}catch(p){u=p}if(w&&t.fileUploadOptions&&n.extend(t,t.fileUploadOptions),s.attr("action")&&(_=s.attr("action")),u&&!t.preventDegradeToFormSubmit)return y&&y.reject(),void(e&&"development"==e.environment&&n.flashError("formSubmit error, trying to gracefully degrade. See console for details"));o.preventDefault(),o.stopPropagation();var k=function(e,i){n.isFunction(t.success)&&t.success.call(s,e,g,i)},x=function(e,i){var r=s,o=!0;if(n.isFunction(t.error)){var a=t.error.call(s,e.errors||e,g,i);a&&(r=a),o=!1}r.parents("html").get(0)==n("html").get(0)&&t.formErrors!==!1?(n.isFunction(t.errorFormatter)&&(e=t.errorFormatter(e.errors||e)),r.formErrors(e,t)):o&&n.ajaxJSON.unhandledXHRs.push(i)};if(t.noSubmit)k.call(this,d,{});else if(w&&t.preparedFileUpload&&t.context_code)n.ajaxJSONPreparedFiles.call(this,{handle_files:t.upload_only?k:t.handle_files,single_file:t.singleFile,context_code:n.isFunction(t.context_code)?t.context_code.call(s):t.context_code,asset_string:t.asset_string,intent:t.intent,folder_id:n.isFunction(t.folder_id)?t.folder_id.call(s):t.folder_id,file_elements:s.find("input[type='file']:visible"),files:n.isFunction(t.files)?t.files.call(s):t.files,url:t.upload_only?null:_,method:t.method,uploadDataUrl:t.uploadDataUrl,formData:d,formDataTarget:t.formDataTarget,success:k,error:x});else if(w&&n.handlesHTML5Files&&s.hasClass("handlingHTML5Files")){var C=n.extend({},d);s.find("input[type='file']").each(function(){var e=n(this),t=e.data("file_list");t&&t instanceof FileList&&(C[e.attr("name")]=t)}),n.toMultipartForm(C,function(e){n.sendFormAsBinary({url:_,body:e.body,content_type:e.content_type,form_data:e.form_data,method:m,success:k,error:x})})}else if(w){var T=i.uniqueId(f+"_"),E=n("
').appendTo("body").find("#frame_"+T),S=s.attr("target"),M=s.attr("ENCTYPE"),D=new r;s.attr({method:m,action:_,ENCTYPE:"multipart/form-data",encoding:"multipart/form-data",target:"frame_"+T}),t.onlyGivenParameters&&(s.find("input[name='_method']").remove(),s.find("input[name='authenticity_token']").remove()),n.ajaxJSON.storeRequest(D,_,m,d),E.bind("form_response_loaded",function(){var e=E[0],t=e.contentDocument||e.contentWindow.document;"about:blank"!=t.location.href&&(D.setResponse(n(t).text()),n.httpSuccess(D)?k.call(this,D.response,D):(x.call(this,D.response,D),n.fn.defaultAjaxError.func.call(n.fn.defaultAjaxError.object,null,D,"0",null)),setTimeout(function(){s.attr({ENCTYPE:M,encoding:M,target:S}),n("#box_"+T).remove()},5e3))}),s.data("submitting",!0).submit().data("submitting",!1)}else n.ajaxJSON(_,m,d,k,x)}}),this},n.ajaxJSONPreparedFiles=function(e){for(var t=[],i=this,r=e.files||e.file_elements||[],o=0;o=200&&e.status<300||304==e.status||jQuery.browser.safari&&void 0==e.status}catch(t){}return!1},n.sendFormAsBinary=function(e,t){var i=e.body,r=e.url,o=e.method,a=new XMLHttpRequest;a.upload&&(a.upload.addEventListener("progress",function(t){e.progress&&n.isFunction(e.progress)&&e.progress.call(this,t)},!1),a.upload.addEventListener("error",function(t){e.error&&n.isFunction(e.error)&&e.error.call(this,"uploading error",a,t)},!1),a.upload.addEventListener("abort",function(t){e.error&&n.isFunction(e.error)&&e.error.call(this,"aborted by the user",a,t)},!1)),a.onreadystatechange=function(t){if(4==a.readyState){var i=null;try{i=n.parseJSON(a.responseText)}catch(r){}n.httpSuccess(a)&&i&&!i.errors?e.success&&n.isFunction(e.success)&&e.success.call(this,i,a,t):e.error&&n.isFunction(e.error)&&e.error.call(this,i||a.responseText,a,t)}},a.open(o,r),a.setRequestHeader("Accept","application/json, text/javascript, */*"),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.form_data?a.send(e.form_data):(a.overrideMimeType(e.content_type||"multipart/form-data"),a.setRequestHeader("Content-Type",e.content_type||"multipart/form-data"),a.setRequestHeader("Content-Length",i.length),t?a.send(i):a.sendAsBinary?a.sendAsBinary(i):console.log("xhr.sendAsBinary not supported"))},n.fileData=function(e){return{name:e.name||e.fileName,size:e.size||e.fileSize,type:e.type,forced_type:e.type||"application/octet-stream"}},n.toMultipartForm=function(e,t){function r(e){return e.replace(/\"/g,"")}function o(){l.body=u.substring(0,u.length-2)+"--",t(l)}function a(){function e(){u+="--"+p+"--\r\n--"+s+"\r\n",a()}function t(){if(0===m.length)return void e();var i=m.shift(),o=n.fileData(i),a=new FileReader;a.onloadend=function(){u+="--"+p+'\r\nContent-Disposition: file; filename="'+r(o.name)+'"\r\nContent-Type: '+o.forced_type+"\r\nContent-Transfer-Encoding: binary\r\n\r\n"+a.result,t()},a.readAsBinaryString(i)}if(0===c.length)return void o();var l=c.shift(),d=l[0],h=l[1];if(window.FileList&&h instanceof FileList&&(h=h[0]),window.FileList&&h instanceof FileList){var p="-----BbC04y"+i.uniqueId(),m=[];u+='Content-Disposition: form-data; name="'+r(d)+"\r\nContent-Type: multipart/mixed; boundary="+p+"\r\n\r\n";for(var f in h)m.push(h);t()}else if(window.File&&h instanceof File){var _=n.fileData(h),g=new FileReader;g.onloadend=function(){u+='Content-Disposition: file; name="'+r(d)+'"; filename="'+_.name+'"\r\nContent-Type: '+_.forced_type+"\r\nContent-Transfer-Encoding: binary\r\n\r\n"+g.result+"\r\n--"+s+"\r\n",a()},g.readAsBinaryString(h)}else h&&h.fake_file?(u+='Content-Disposition: file; name="'+r(d)+'"; filename="'+h.name+'"\r\nContent-Type: '+h.content_type+"\r\nContent-Transfer-Encoding: binary\r\n\r\n"+h.content+"\r\n--"+s+"\r\n",a()):(u+='Content-Disposition: form-data; name="'+r(d)+'"\r\n\r\n'+(h||"").toString()+"\r\n--"+s+"\r\n",a())}var s="-----AaB03x"+i.uniqueId(),l={content_type:"multipart/form-data; boundary="+s},u="--"+s+"\r\n",c=[],d=!1;for(var h in e)c.push([h,e[h]]),e[h]&&e[h].fake_file&&(d=!0);if(window.FormData&&!d){var p=new FormData;for(var h in e){var m=e[h];if(window.FileList&&m instanceof FileList&&(m=m[0]),m instanceof Array)for(var f=0;f=0?t+"["+r.substring(0,a)+"]"+r.substring(a):t+"["+r+"]","string"==typeof r&&0===r.indexOf("=")&&(o=r.substring(1),r=o),e instanceof Array?(i.push(o),n&&i.push(r)):(i[o]=e[s],n&&(i[r]=e[s]));return i},n._stripObjectName=function(e,t,n){var i,r={};e instanceof Array&&(r=[]);for(var o in e){var a,s;a=e instanceof Array?e[o]:o,(s=0===a.indexOf(t+"["))&&(i=a.replace(t+"[",""),closing=i.indexOf("]"),i=i.substring(0,closing)+i.substring(closing+1),e instanceof Array?r.push(i):r[i]=e[o]),(!s||n)&&(e instanceof Array?r.push(e[o]):r[o]=e[o])}return r},n.fn.validateForm=function(e){if(0===this.length)return!1;var e=n.extend({},n.fn.validateForm.defaults,e),r=this,o={},a=e.data||r.getFormData(e);if(e.object_name&&(e.required=n._addObjectName(e.required,e.object_name),e.date_fields=n._addObjectName(e.date_fields,e.object_name),e.dates=n._addObjectName(e.dates,e.object_name),e.times=n._addObjectName(e.times,e.object_name),e.numbers=n._addObjectName(e.numbers,e.object_name),e.property_validations=n._addObjectName(e.property_validations,e.object_name)),e.required){var s=i.result(e,"required");n.each(s,function(e,n){if(!a[n]){o[n]||(o[n]=[]);var i=r.getFieldLabelString(n);o[n].push(t.t("errors.required","Required field")+(i?": "+i:""))}})}e.date_fields&&n.each(e.date_fields,function(e,n){var i=r.find("input[name='"+n+"']").filter(".datetime_field_enabled");i.length&&i.parent().children(".datetime_suggest").hasClass("invalid_datetime")&&(o[n]||(o[n]=[]),o[n].push(t.t("errors.invalid_datetime","Invalid date/time value")))}),e.numbers&&n.each(e.numbers,function(e,n){var i=parseFloat(a[n]);isNaN(i)&&(o[n]||(o[n]=[]),o[n].push(t.t("errors.invalid_number","This should be a number.")))}),e.property_validations&&n.each(e.property_validations,function(e,i){if(n.isFunction(i)){var s=i.call(r,a[e],a);s&&("string"!=typeof s&&(s=t.t("errors.invalid_entry_for_field","Invalid entry: %{field}",{field:e})),o[e]||(o[e]=[]),o[e].push(s))}});var l=!1;for(var u in o){l=!0;break}return l?(r.formErrors(o,e),n.trackEvent("Form Errors",this.attr("id")||this.attr("class")||document.title,JSON.stringify(o)),!1):!0},n.fn.validateForm.defaults={object_name:null,required:null,dates:null,times:null},n.fn.formErrors=function(e,t){if(0!==this.length){var i=this,r={},o=[];e&&e.errors&&(e=e.errors),"string"==typeof e&&(e={base:e}),n.each(e,function(e,t){if("string"==typeof t){var s=[];s.push(t),t=s}else{if("number"==typeof e&&2==t.length&&t[0]instanceof jQuery&&"string"==typeof t[1])return void o.push(t);if("number"==typeof e&&2==t.length&&"string"==typeof t[1])s=[],s.push(t[1]),e=t[0],t=s;else try{s=[];for(var l in t)s.push("object"==typeof t[l]&&t[l].message?t[l].message.toString():t[l].toString());t=s}catch(u){t=t.toString()}}i.find(":input[name='"+e+"'],:input[name*='["+e+"]']").length>0?n.each(t,function(t,n){r[e]?r[e]+=" "+a(n):r[e]=a(n)}):n.each(t,function(e,t){r.general?r.general+=" "+a(t):r.general=a(t)})});var s=!1,l=0,u=null,c=(n(document).scrollTop(),{});n("#aria_alerts").empty(),n.each(r,function(e,t){var r=i.find(":input[name='"+e+"'],:input[name*='["+e+"]']").filter(":visible").first();r&&0!==r.length&&"general"!=e||(r=i),"TEXTAREA"==r[0].tagName&&r.next(".mceEditor").length&&(r=r.next().find(".mceIframeContainer")),c[e]={object:r,message:t},s=!0;var o=r.errorBox(n.raw(t)).offset();o.top>l&&(l=o.top),u=r}),u&&u.focus();for(var d=0,h=o.length;h>d;d++){var p=o[d][0],m=o[d][1];s=!0;var f=p.errorBox(m).offset();f.top>l&&(l=f.top)}return s&&(t&&t.onFormError&&t.onFormError.call(i,c),n("html,body").scrollTo({top:l,left:0})),this}},n.fn.errorBox=function(e,t){if(this.length){var i=this,r=i.data("associated_error_box");r&&r.remove();var o=n("#error_box_template");o.length||(o=n("
").appendTo("body")),n.screenReaderFlashError(e);var s=o.clone(!0).attr("id","").css("zIndex",i.zIndex()+1).appendTo("body");s.find(".error_text").html(a(e));var l=i.offset(),u=s.outerHeight(),c=Math.round(i.outerWidth()/5);"FORM"==i[0].tagName&&(c=Math.min(c,50)),s.hide().css({top:l.top-u+2,left:l.left+c}).fadeIn("fast");var d=function(){s.remove(),i.removeData("associated_error_box"),i.removeData("associated_error_object")},h=function(){s.stop(!0,!0).fadeOut("slow",d)};return i.data({associated_error_box:s,associated_error_object:i}).click(h).keypress(h),s.click(function(){n(this).fadeOut("fast",d)}),n.fn.errorBox.errorBoxes.push(i),n.fn.errorBox.isBeingAdjusted||n.moveErrorBoxes(),t&&n("html,body").scrollTo(s),s}},n.fn.errorBox.errorBoxes=[],n.moveErrorBoxes=function(){for(var e=[],t=n.fn.errorBox.errorBoxes,i=0;i").text("*").attr("title",t.t("errors.field_is_required","This field is required"))))}))})}},n.fn.getFieldLabelString=function(e){var t=n(this).find('[name="'+e+'"]');if(t.length&&t[0].id&&(label=n('label[for="'+t[0].id+'"]'),label.length))return label[0].firstChild.textContent}}),define("jquery.instructure_misc_helpers",["INST","i18n!instructure","jquery","underscore","str/htmlEscape","compiled/str/TextHelper","jquery.ajaxJSON","jquery.instructure_forms","jqueryui/dialog","vendor/jquery.scrollTo"],function(e,t,n,i,r,o){n.detect=function(e,t){var i;return n.each(e,function(n,r){return t.call(r,r,n,e)?(i=r,!1):void 0}),i},n.encodeToHex=function(e){for(var t="",n=(e.length,0);nt;t++)e[t]instanceof r.SafeString&&(e[t]=e[t].toString());return i.apply(this,e)}}),n.replaceOneTag=function(e,t,n){if(!e)return e;t=(t||"").toString(),n=(n||"").toString().replace(/\s/g,"+");var i=new RegExp("(%7B|{){2}[\\s|%20|+]*"+t+"[\\s|%20|+]*(%7D|}){2}","g");return e.replace(i,n)},n.replaceTags=function(e,t,i){if("object"==typeof t){for(var r in t)e=n.replaceOneTag(e,r,t[r]);return e}return n.replaceOneTag(e,t,i)};var a=!1;n.scrollSidebar=function(){function e(){var e=s.scrollTop(),n=e>u-d;if(n)var i=o.height(),a=t.height(),h=i>a,p=u+r.height()-e<=a+c;(n&&h&&!p)^l.hasClass("with-scrolling-right-side")&&l.toggleClass("with-scrolling-right-side"),(n&&h&&p)^l.hasClass("with-sidebar-pinned-to-bottom")&&l.toggleClass("with-sidebar-pinned-to-bottom")}if(!a){var t=n("#right-side"),r=n("#main"),o=n("#not_right_side"),s=n(window),l=n("#right-side-wrapper"),u=t.offset().top,c=l.height()-t.outerHeight(),d=t.offset().top-l.offset().top,h=i.throttle(e,50);h(),s.scroll(h),a=!0}},n.underscore=function(e){return(e||"").replace(/([A-Z])/g,"_$1").replace(/^_/,"").toLowerCase()},n.titleize=function(e){var t=(e||"").replace(/([A-Z])/g," $1").replace(/_/g," ").replace(/\s+/," ").replace(/^\s/,"");return n.map(t.split(/\s/),function(e){return(e[0]||"").toUpperCase()+e.substring(1)}).join(" ")},n.parseUserAgentString=function(e){e=(e||"").toLowerCase();var n={version:(e.match(/.+(?:me|ox|it|ra|ie|er|rv|version)[\/: ]([\d.]+)/)||[0,null])[1],chrome:/chrome/.test(e),safari:/webkit/.test(e),opera:/opera/.test(e),msie:(/msie/.test(e)||/trident/.test(e))&&!/opera/.test(e),firefox:/firefox/.test(e),mozilla:/mozilla/.test(e)&&!/(compatible|webkit)/.test(e),speedgrader:/speedgrader/.test(e)},i=null;return n.chrome?i="Chrome":n.safari?i="Safari":n.opera?i="Opera":n.msie?i="Internet Explorer":n.firefox?i="Firefox":n.mozilla?i="Mozilla":n.speedgrader&&(i="SpeedGrader for iPad"),i?n.version&&(n.version=n.version.split(/\./).slice(0,2).join("."),i=i+" "+n.version):i=t.t("browsers.unrecognized","Unrecognized Browser"),i},n.fileSize=function(e){var t=1024;return t>e?parseInt(e,10)+" bytes":t*t>e?parseInt(e/t,10)+"KB":Math.round(10*e/t/t)/10+"MB"},n.getUserServices=function(e,t,i){n.isArray(e)||(e=[e]);var r="/services?service_types="+e.join(",");n.ajaxJSON(r,"GET",{},function(e){t&&t(e)},function(e){i&&i(e)})};var s;n.findLinkForService=function(e,i){var a=n("#instructure_bookmark_search");a.length||(a=n(""),a.append(""),a.append(""),a.find("form").submit(function(i){i.preventDefault(),i.stopPropagation();var l=new Date;if("diigo"==e&&s&&15e3>l-s)return setTimeout(function(){a.find("form").submit()},15e3-(l-s)),void a.find(".results").empty().append(r(t.t("status.diigo_search_throttling","Diigo limits users to one search every ten seconds. Please wait...")));a.find(".results").empty().append(r(t.t("status.searching","Searching..."))),s=new Date;var u=a.find(".query").val(),c=n.replaceTags(a.data("reference_url"),"query",u);n.ajaxJSON(c,"GET",{},function(e){a.find(".results").empty(),e.length||a.find(".results").append(r(t.t("no_results_found","No Results Found")));for(var i in e)e[i].short_title=e[i].title,e[i].title==e[i].description&&(e[i].short_title=o.truncateText(e[i].description,{max:30})),n("").appendTo(a.find(".results")).append(n('').attr({href:e[i].url,title:e[i].title}).text(e[i].short_title)).append(n("").text(e[i].description||t.t("no_description","No description")))},function(){a.find(".results").empty().append(r(t.t("errors.search_failed","Search failed, please try again.")))})}),a.delegate(".bookmark_link","click",function(e){e.preventDefault();var t=n(this).attr("href"),r=n(this).attr("title")||n(this).text();a.dialog("close"),i({url:t,title:r})})),a.find(".search_button").text("delicious"==e?t.t("buttons.search_by_tag","Search by Tag"):t.t("buttons.search","Search")),a.find("form img").attr("src","/images/"+e+"_small_icon.png");var l="/search/bookmarks?q=%7B%7B+query+%7D%7D&service_type=%7B%7B+service_type+%7D%7D";l=n.replaceTags(l,"service_type",e),a.data("reference_url",l),a.find(".results").empty().end().find(".query").val(""),a.dialog({title:t.t("titles.bookmark_search","Bookmark Search: %{service_name}",{service_name:n.titleize(e)}),open:function(){a.find("input:visible:first").focus().select()},width:400})},n.findImageForService=function(e,i){var o=n("#instructure_image_search");if(o.find("button").attr("disabled",!1),!o.length){o=n("").append("").append(""),o.find("form").submit(function(e){e.preventDefault(),e.stopPropagation();new Date;o.find("button").attr("disabled",!0),o.find(".results").empty().append(r(t.t("status.searching","Searching..."))),o.bind("search_results",function(e,i){if(o.find("button").attr("disabled",!1),i&&i.photos&&i.photos.photo){o.find(".results").empty();for(var a in i.photos.photo){var s=i.photos.photo[a],l="https://farm"+s.farm+".static.flickr.com/"+s.server+"/"+s.id+"_"+s.secret+"_s.jpg",u="https://farm"+s.farm+".static.flickr.com/"+s.server+"/"+s.id+"_"+s.secret+".jpg",c="https://secure.flickr.com/photos/"+s.owner+"/"+s.id;o.find(".results").append(n('').append(n("",{data:{source:c,big_image_url:u},"class":"image_link",src:l,tabindex:"0",title:"embed "+(s.title||""),alt:s.title||""})))}}else o.find(".results").empty().append(r(t.t("errors.search_failed","Search failed, please try again.")))});var i=encodeURIComponent(o.find(".query").val());n.getScript("https://secure.flickr.com/services/rest/?method=flickr.photos.search&format=json&api_key=734839aadcaa224c4e043eaf74391e50&per_page=25&license=1,2,3,4,5,6&sort=relevance&text="+i)});var a=function(e){o.dialog("close"),i({image_url:n(e).data("big_image_url")||n(e).attr("src"),link_url:n(e).data("source"),title:n(e).attr("alt")})};o.delegate(".image_link","click",function(e){e.preventDefault(),a(this)}),o.delegate(".image_link","keyup",function(e){e.preventDefault();var t=e.keyCode||e.which;13==t&&a(this)})}o.find("form img").attr("src","/images/"+e+"_small_icon.png");var s=n("#editor_tabs .bookmark_search_url").attr("href");s=n.replaceTags(s,"service_type",e),o.data("reference_url",s||""),o.find(".results").empty(),o.find(".query").val(""),o.dialog({title:t.t("titles.image_search","Image Search: %{service_name}",{service_name:n.titleize(e)}),width:440,open:function(){o.find("input:visible:first").focus().select()},height:320})},n.toSentence=function(e,i){switch("undefined"==typeof i?i={}:"or"==i&&(i={two_words_connector:t.t("#support.array.or.two_words_connector"),last_word_connector:t.t("#support.array.or.last_word_connector")}),i=n.extend({words_connector:t.t("#support.array.words_connector"),two_words_connector:t.t("#support.array.two_words_connector"),last_word_connector:t.t("#support.array.last_word_connector")},i),e.length){case 0:return"";case 1:return""+e[0];case 2:return e[0]+i.two_words_connector+e[1];default:return e.slice(0,-1).join(i.words_connector)+i.last_word_connector+e[e.length-1]}},n.queryParam=function(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^]*)"),n=t.exec(window.location.search);return null==n?n:decodeURIComponent(n[1].replace(/\+/g," "))},n.capitalize=function(e){return e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()},e.youTubeRegEx=/^https?:\/\/(www\.youtube\.com\/watch.*v(=|\/)|youtu\.be\/)([^]*)/,n.youTubeID=function(t){var n=t.match(e.youTubeRegEx);return n&&n[n.length-1]?n[n.length-1]:null}}),define("translations/_core_en",["i18nObj","jquery"],function(e,t){t.extend(!0,e,{translations:{ar:{},de:{},"el-gr":{},en:{date:{abbr_day_names:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],abbr_month_names:[null,"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],day_names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],days:{today_lower:"today"},formats:{date_at_time:"%b %-d at %l:%M%P","default":"%Y-%m-%d","long":"%B %-d, %Y",long_with_weekday:"%A, %B %-d",medium:"%b %-d, %Y",medium_month:"%b %Y",medium_with_weekday:"%a %b %-d, %Y","short":"%b %-d",short_month:"%b",short_weekday:"%a",short_with_weekday:"%a, %b %-d",weekday:"%A"},month_names:[null,"January","February","March","April","May","June","July","August","September","October","November","December"],order:["year","month","day"]},datetime:{distance_in_words:{about_x_hours:{one:"about 1 hour",other:"about %{count} hours"},about_x_months:{one:"about 1 month",other:"about %{count} months"},about_x_years:{one:"about 1 year",other:"about %{count} years"},almost_x_years:{one:"almost 1 year",other:"almost %{count} years"},half_a_minute:"half a minute",less_than_x_minutes:{one:"less than a minute",other:"less than %{count} minutes"},less_than_x_seconds:{one:"less than 1 second",other:"less than %{count} seconds"},over_x_years:{one:"over 1 year",other:"over %{count} years"},x_days:{one:"1 day",other:"%{count} days"},x_minutes:{one:"1 minute",other:"%{count} minutes"},x_months:{one:"1 month",other:"%{count} months"},x_seconds:{one:"1 second",other:"%{count} seconds"}},prompts:{day:"Day",hour:"Hour",minute:"Minute",month:"Month",second:"Seconds",year:"Year"}},number:{currency:{format:{delimiter:",",format:"%u%n",precision:2,separator:".",significant:!1,strip_insignificant_zeros:!1,unit:"$"}},format:{delimiter:",",precision:3,separator:".",significant:!1,strip_insignificant_zeros:!1},human:{decimal_units:{format:"%n %u",units:{billion:"Billion",million:"Million",quadrillion:"Quadrillion",thousand:"Thousand",trillion:"Trillion",unit:""}},format:{delimiter:"",precision:3,significant:!0,strip_insignificant_zeros:!0},storage_units:{format:"%n %u",units:{"byte":{one:"Byte",other:"Bytes"},gb:"GB",kb:"KB",mb:"MB",tb:"TB"}}},percentage:{format:{delimiter:""}},precision:{format:{delimiter:""}}},support:{array:{last_word_connector:", and ",or:{last_word_connector:", or ",two_words_connector:" or "},two_words_connector:" and ",words_connector:", "},help_menu:{community_support_description:"Contact your ASC first for assistance. If they are unable to help, please contact us.",community_support_forums:"Community Support Forums",contact_support:"Contact Support",contact_support_sub_text:"Get assistance with time-sensitive issues.",curriculum_assessment_errata:"Curriculum/Assessment Errata",curriculum_assessment_errata_description:'View already reported assessment and curricula errors. Search for "errata."',networking_academy_description:"View Cisco answers to the most commonly asked questions.",networking_academy_faqs:"Networking Academy FAQs",support_desk_livechat:"Support Desk Live Chat"}},time:{am:"am",formats:{"default":"%a, %d %b %Y %H:%M:%S %z","long":"%B %d, %Y %H:%M","short":"%d %b %H:%M",tiny:"%l:%M%P",tiny_on_the_hour:"%l%P"},pm:"pm"}},"en-AU":{},"en-GB":{},es:{},"fa-IR":{},fr:{},hi:{},hu:{},"it-it":{},ja:{},ko:{},"ko-kr":{},nb:{},nl:{},pl:{},pt:{},"pt-BR":{},"pt-pt":{},"ro-ro":{},ru:{},tr:{},"tr-tr":{},zh:{},"zh-hans":{},zh_Hant:{}}})}),function(){var e=[].slice,t=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};define("compiled/handlebars_helpers",["timezone","compiled/util/enrollmentName","handlebars","i18nObj","jquery","underscore","str/htmlEscape","compiled/util/semanticDateRange","compiled/util/dateSelect","compiled/util/mimeClass","compiled/str/convertApiUserContent","compiled/str/TextHelper","jquery.instructure_date_and_time","jquery.instructure_misc_helpers","jquery.instructure_misc_plugins","translations/_core_en"],function(n,i,r,o,a,s,l,u,c,d,h,p){var m,f,_;_={t:function(){var t,n,i,a,s,u,c,d,h;t=2<=arguments.length?e.call(arguments,0,u=arguments.length-1):(u=0,[]),i=arguments[u++],s={},i=null!=(h=null!=i?i.hash:void 0)?h:{};for(n in i)a=i[n],n.match(/^w\d+$/)&&(s[new Array(parseInt(n.replace("w",""))+2).join("*")]=a,delete i[n]);for(s["*"]&&(i.wrapper=s),c=0,d=this.length;d>c;c++)n=this[c],i[n]=this[n];return new r.SafeString(l(o.t.apply(o,e.call(t).concat([i]))))},__i18nliner_escape:function(e){return l(e)},__i18nliner_safe:function(e){return new l.SafeString(e)},__i18nliner_concat:function(){var t,n,i;return t=2<=arguments.length?e.call(arguments,0,i=arguments.length-1):(i=0,[]),n=arguments[i++],t.join("")
},hiddenIf:function(e){return e?" display:none; ":void 0},hiddenUnless:function(e){return e?void 0:" display:none; "},semanticDateRange:function(){return new r.SafeString(u.apply(null,arguments))},contextSensitiveDatetimeTitle:function(e,t){var n,i,s,u,c,d;return s=t.hash.justText,u=a.datetimeString(e),d=u,ENV&&ENV.CONTEXT_TIMEZONE&&ENV.TIMEZONE!==ENV.CONTEXT_TIMEZONE&&(c=o.t("#helpers.local","Local"),i=o.t("#helpers.course","Course"),n=a.datetimeString(e,{timezone:ENV.CONTEXT_TIMEZONE}),u!==n&&(d=""+l(c)+": "+l(u)+" "+l(i)+": "+l(n))),new r.SafeString(s?d:'data-tooltip data-html-tooltip-title="'+l(d)+'"')},friendlyDatetime:function(e,t){var i,o,u,c,d;return d=t.hash,u=d.pubdate,i=d.contextSensitive,null!=e?(s.isDate(e)||(e=n.parse(e)),o=a.fudgeDateForProfileTimezone(n.parse(e)),c="",c=i&&ENV&&ENV.CONTEXT_TIMEZONE?r.helpers.contextSensitiveDatetimeTitle(e,{hash:{justText:!0}}):l(a.datetimeString(e)),new r.SafeString("")):void 0},fudge:function(e){return a.fudgeDateForProfileTimezone(e)},unfudge:function(e){return a.unfudgeDateForProfileTimezone(e)},formattedDate:function(e,t,i){var o;return o=i.hash.pubdate,null!=e?(s.isDate(e)||(e=n.parse(e)),new r.SafeString("")):void 0},datetimeFormatted:function(e,t){return null==t&&(t=!0),a.datetimeString(e,{localized:t})},dateString:function(e){return e?n.format(e,"%m/%d/%Y"):""},minutesToHM:function(e){var t,n,i;return t=Math.floor(e/60),i=e%60,n=10>i?"0"+i:i,""+t+":"+n},addIcon:function(e){return new r.SafeString("")},dateToString:function(e,t){return null==e&&(e=""),e.toString(t)},tDateToString:function(e,t){return null==e&&(e=""),e?o.l("date.formats."+t,e):""},tTimeToString:function(e,t){return null==e&&(e=""),e?o.l("time.formats."+t,e):""},tTimeHours:function(e){return null==e&&(e=""),0===e.getMinutes()&&0===e.getSeconds()?o.l("time.formats.tiny_on_the_hour",e):o.l("time.formats.tiny",e)},tEventToString:function(e,t,n){return null==e&&(e=""),null==t&&(t="short"),null==n&&(n="tiny"),o.t("time.event",{defaultValue:"%{date} at %{time}",date:o.l("date.formats."+t,e),time:o.l("time.formats."+n,e)})},strftime:function(e,t){return null==e&&(e=""),o.strftime(e,t)},mimeClass:d,convertApiUserContent:function(e,t){var n,i;return i=t.hash,n=h(e,i),i&&i.forEditing||(n=new r.SafeString(n)),n},newlinesToBreak:function(e){return e||(e=""),new r.SafeString(l(e).replace(/\n/g," "))},not:function(e){return!e},ifEqual:function(){var t,n,i,r,o,a,s,l;for(r=arguments[0],n=3<=arguments.length?e.call(arguments,1,o=arguments.length-1):(o=1,[]),l=arguments[o++],m=l.fn,i=l.inverse,a=0,s=n.length;s>a;a++){if(t=n[a],t!==r)return i(this);r=t}return m(this)},ifAll:function(){var t,n,i,r,o,a,s;for(n=2<=arguments.length?e.call(arguments,0,r=arguments.length-1):(r=0,[]),s=arguments[r++],m=s.fn,i=s.inverse,o=0,a=n.length;a>o;o++)if(t=n[o],!t)return i(this);return m(this)},ifAny:function(){var t,n,i,r,o,a,s;for(n=2<=arguments.length?e.call(arguments,0,r=arguments.length-1):(r=0,[]),s=arguments[r++],m=s.fn,i=s.inverse,o=0,a=n.length;a>o;o++)if(t=n[o])return m(this);return i(this)},eachWithIndex:function(e,t){var n,i,r,o;if(m=t.fn,r=t.inverse,o="",e&&e.length>0)for(i in e)n=e[i],n._index=i,o+=m(n);else o=r(this);return o},eachProp:function(e,t){var n;return function(){var i;i=[];for(n in e)i.push(t.fn({property:n,value:e[n]}));return i}().join("")},ifSettingIs:function(){var e,t,n,i,r;return t=arguments[0],i=arguments[1],r=arguments[2],m=r.fn,e=r.inverse,n=ENV.SETTINGS,n[t]===i?m(this):e(this)},toSentence:function(e,t){var n;return n=s.map(e,function(e){return t.fn(e)}),a.toSentence(n)},dateSelect:function(e,t){return new r.SafeString(c(e,t.hash).html())},checkbox:function(e,t){var n,i,o,u,c,d,h,p,m,f,_,g,v,y;for(o=t.hash,m=e.split(/\./),p=m.join("_"),o.prefix&&(m.unshift(o.prefix),delete o.prefix),i=m[0]+s.chain(m).rest().map(function(e){return"["+e+"]"}).value().join(""),c=s.extend({type:"checkbox",value:1,id:p,name:i},o),null==c.checked&&(_=s.reduce(m,function(e,t){return null!=e?e[t]:void 0},this),_&&(c.checked=!0)),y=["checked","disabled"],g=0,v=y.length;v>g;g++)h=y[g],c[h]?c[h]=h:delete c[h];return c.uniqid&&c.id&&(c.id+="-"+r.helpers.uniqid.call(this)),delete c.uniqid,n=function(){var e;e=[];for(d in c)f=c[d],null!=f&&e.push(""+l(d)+'="'+l(f)+'"');return e}(),u=c.disabled?"disabled":"",new r.SafeString('\n")},toPercentage:function(e){return parseInt(100*e)+"%"},toPrecision:function(e,t){return e?parseFloat(e).toPrecision(t):""},checkedIf:function(e,t){return 3===arguments.length?e===t?"checked":"":e?"checked":""},selectedIf:function(e,t){return 3===arguments.length?e===t?"selected":"":e?"selected":""},disabledIf:function(e){return e?"disabled":""},checkedUnless:function(e){return e?"":"checked"},join:function(e,t){return null==t&&(t=","),e?e.join(t):""},ifIncludes:function(e,n,i){return e?t.call(e,n)>=0?i.fn(this):i.inverse(this):!1},disabledIfIncludes:function(e,n){return e&&t.call(e,n)>=0?"disabled":""},truncate_left:function(e,t){return r.Utils.escapeExpression(p.truncateText(e.split("").reverse().join(""),{max:t}).split("").reverse().join(""))},truncate:function(e,t){return r.Utils.escapeExpression(p.truncateText(e,{max:t}))},escape_html:function(e){return l(e)},enrollmentName:i,list:function(e,t){var n,i,r,o,a,l,u;return s.defaults(t.hash,{separator:", ",propName:null,limit:null,end:"..."}),u=t.hash,r=u.propName,i=u.limit,n=u.end,a=u.separator,o=s.map(e,function(e){return r?e[r]:e}),i&&(o=o.slice(0,i)),l=o.join(a),i&&e.length>i?""+l+n:l},titleize:function(e){var t,n;return e?(n=e.split(/[ _]+/),t=s(n).map(function(e){return e[0].toUpperCase()+e.slice(1)}),t.join(" ")):""},uniqid:function(e){var t;return arguments.length<=1&&(e=this),e._uniqid_||(t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",e._uniqid_=function(){var e,n;for(n=[],e=1;8>=e;e++)n.push(t.charAt(Math.floor(Math.random()*t.length)));return n}().join("")),e._uniqid_},view:function(e){var t,n,i;return n=function(e){return(window.requestAnimationFrame||setTimeout)(e,0)},t="placeholder-"+a.guid++,i=function(){var r;return r=a("#"+t),r.length?r.replaceWith(e.$el):n(i)},e.render(),n(i),new r.SafeString('pk')},or:function(){var t,n,i,r,o,a;for(n=2<=arguments.length?e.call(arguments,0,r=arguments.length-1):(r=0,[]),i=arguments[r++],o=0,a=n.length;a>o;o++)if(t=n[o])return t}};for(f in _)m=_[f],r.registerHelper(f,m);return r})}.call(this),define("jst/helpDialog",["compiled/handlebars_helpers","i18n!help_dialog"],function(e){var t=e.template,n=e.templates=e.templates||{};return n.helpDialog=t(function(e,t,n,i,r){function o(e,t){var i,r,o="";return o+='\n
\n"}),n.helpDialog}),function(){var e=[].indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(t in this&&this[t]===e)return t;return-1};define("compiled/helpDialog",["i18n!help_dialog","jst/helpDialog","jquery","underscore","INST","str/htmlEscape","compiled/fn/preventDefault","jquery.instructure_misc_helpers","jqueryui/dialog","jquery.disableWhileLoading"],function(t,n,i,r,o,a,s){var l;return l={defaultTitle:t.t("Help","Help"),showEmail:function(){return!ENV.current_user_id},initDialog:function(){var t=this;return this.$dialog=i('').dialog({resizable:!1,width:400,title:this.defaultTitle,close:function(){return t.switchTo("#help-dialog-options")}}),this.$dialog.dialog("widget").delegate('a[href="#teacher_feedback"], a[href="#create_ticket"], a[href="#help-dialog-options"]',"click",s(function(e){var n;return n=e.currentTarget,t.switchTo(i(n).attr("href"))})),this.helpLinksDfd=i.getJSON("/help_links").done(function(o){var a;return o=i.grep(o,function(t){return r.detect(t.available_to,function(t){return"user"===t||ENV.current_user_roles&&e.call(ENV.current_user_roles,t)>=0})}),a={showEmail:t.showEmail(),helpLinks:o,url:window.location,contextAssetString:ENV.context_asset_string,userRoles:ENV.current_user_roles},t.$dialog.html(n(a)),t.initTicketForm(),i(t).trigger("ready")}),this.$dialog.disableWhileLoading(this.helpLinksDfd),this.dialogInited=!0},initTicketForm:function(){var e,t=this;return e=this.$dialog.find("#create_ticket").formSubmit({disableWhileLoading:!0,required:function(){var e;return e=["error[subject]","error[comments]","error[user_perceived_severity]"],t.showEmail()&&e.push("error[email]"),e},success:function(){return t.$dialog.dialog("close"),e.find(":input").val("")}})},switchTo:function(e){var n,r,o,s,l=this;return s="#teacher_feedback, #create_ticket",this.$dialog.find(s).hide(),r=this.$dialog.find(e),n=r.show().outerHeight(),this.$dialog.animate({left:s.match(e)?-400:0,height:n},{step:function(){return l.$dialog.dialog("option","position","center")},duration:100,complete:function(){return r.find(":input").not(":disabled").first().focus()}}),o=(o=this.$dialog.find("a[href='"+e+"'] .text").text())?i(" "+a(t.t("Back","Back"))+" "+a(o)+" "):this.defaultTitle,this.$dialog.dialog("option","title",o)},open:function(){return l.dialogInited||l.initDialog(),l.$dialog.dialog("open"),l.initTeacherFeedback()},initTeacherFeedback:function(){var t,n,r,o=this;return r=ENV.current_user_roles&&e.call(ENV.current_user_roles,"student")>=0,!this.teacherFeedbackInited&&r?(this.teacherFeedbackInited=!0,n=i.getJSON("/api/v1/courses.json"),t=null,this.helpLinksDfd.done(function(){return t=o.$dialog.find("#teacher_feedback").disableWhileLoading(n).formSubmit({disableWhileLoading:!0,required:["recipients[]","body"],success:function(){return o.$dialog.dialog("close")}})}),i.when(n,this.helpLinksDfd).done(function(e){var n,r;return n=e[0],r=i.map(n,function(e){return""}).join(""),t.find('[name="recipients[]"]').html(r)})):void 0},initTriggers:function(){return i(".help_dialog_trigger").click(s(this.open))}}})}.call(this),function(){define("compiled/tours",["require"],function(e){return{init:function(){var t,n,i,r,o;if(ENV.TOURS){for(r=ENV.TOURS,o=[],n=0,i=r.length;i>n;n++)t=r[n],o.push(e(["compiled/views/tours/"+t],function(e){return new e({name:t})}));return o}}}})}.call(this),function(){if(!("console"in window)){var e=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var t=0;ti;i++)q[i]()}}function t(e){U?e():q[q.length]=e}function n(e){if(typeof I.addEventListener!=M)I.addEventListener("load",e,!1);else if(typeof O.addEventListener!=M)O.addEventListener("load",e,!1);else if(typeof I.attachEvent!=M)g(I,"onload",e);else if("function"==typeof I.onload){var t=I.onload;I.onload=function(){t(),e()}}else I.onload=e}function i(){F?r():o()}function r(){if($&&(storedVersion=localStorage.getItem("flashversion"),storedVersion))return ua.pv=JSON.parse(storedVersion),void o();var e=O.getElementsByTagName("body")[0],t=_(D);t.setAttribute("type",P);var n=e.appendChild(t);if(n){var i=0;!function(){if(typeof n.GetVariable!=M){var r=n.GetVariable("$version");r&&(r=r.split(" ")[1].split(","),ua.pv=[parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10)],$&&localStorage.setItem("flashversion",JSON.stringify(ua.pv)))}else if(10>i)return i++,void setTimeout(arguments.callee,10);e.removeChild(t),n=null,o()}()}else o()}function o(){var e=L.length;if(e>0)for(var t=0;e>t;t++){var n=L[t].id,i=L[t].callbackFn,r={success:!1,id:n};if(ua.pv[0]>0){var o=f(n);if(o)if(!v(L[t].swfVersion)||ua.wk&&ua.wk<312)if(L[t].expressInstall&&s()){var c={};c.data=L[t].expressInstall,c.width=o.getAttribute("width")||"0",c.height=o.getAttribute("height")||"0",o.getAttribute("class")&&(c.styleclass=o.getAttribute("class")),o.getAttribute("align")&&(c.align=o.getAttribute("align"));for(var d={},h=o.getElementsByTagName("param"),p=h.length,m=0;p>m;m++)"movie"!=h[m].getAttribute("name").toLowerCase()&&(d[h[m].getAttribute("name")]=h[m].getAttribute("value"));l(c,d,n,i)}else u(o),i&&i(r);else b(n,!0),i&&(r.success=!0,r.ref=a(n),i(r))}else if(b(n,!0),i){var _=a(n);_&&typeof _.SetVariable!=M&&(r.success=!0,r.ref=_),i(r)}}}function a(e){var t=null,n=f(e);if(n&&"OBJECT"==n.nodeName)if(typeof n.SetVariable!=M)t=n;else{var i=n.getElementsByTagName(D)[0];i&&(t=i)}return t}function s(){return!V&&v("6.0.65")&&(ua.win||ua.mac)&&!(ua.wk&&ua.wk<312)}function l(e,t,n,i){V=!0,C=i||null,T={success:!1,id:n};var r=f(n);if(r){"OBJECT"==r.nodeName?(k=c(r),x=null):(k=r,x=n),e.id=z,(typeof e.width==M||!/%$/.test(e.width)&&parseInt(e.width,10)<310)&&(e.width="310"),(typeof e.height==M||!/%$/.test(e.height)&&parseInt(e.height,10)<137)&&(e.height="137"),O.title=O.title.slice(0,47)+" - Flash Player Installation";var o=ua.ie&&ua.win?"ActiveX":"PlugIn",a="MMredirectURL="+I.location.toString().replace(/&/g,"%26")+"&MMplayerType="+o+"&MMdoctitle="+O.title;if(typeof t.flashvars!=M?t.flashvars+="&"+a:t.flashvars=a,ua.ie&&ua.win&&4!=r.readyState){var s=_("div");n+="SWFObjectNew",s.setAttribute("id",n),r.parentNode.insertBefore(s,r),r.style.display="none",function(){4==r.readyState?r.parentNode.removeChild(r):setTimeout(arguments.callee,10)}()}d(e,t,n)}}function u(e){if(ua.ie&&ua.win&&4!=e.readyState){var t=_("div");e.parentNode.insertBefore(t,e),t.parentNode.replaceChild(c(e),t),e.style.display="none",function(){4==e.readyState?e.parentNode.removeChild(e):setTimeout(arguments.callee,10)}()}else e.parentNode.replaceChild(c(e),e)}function c(e){var t=_("div");if(ua.win&&ua.ie)t.innerHTML=e.innerHTML;else{var n=e.getElementsByTagName(D)[0];if(n){var i=n.childNodes;if(i)for(var r=i.length,o=0;r>o;o++)1==i[o].nodeType&&"PARAM"==i[o].nodeName||8==i[o].nodeType||t.appendChild(i[o].cloneNode(!0))}}return t}function d(e,t,n){var i,r=f(n);if(ua.wk&&ua.wk<312)return i;if(r)if(typeof e.id==M&&(e.id=n),ua.ie&&ua.win){var o="";for(var a in e)e[a]!=Object.prototype[a]&&("data"==a.toLowerCase()?t.movie=e[a]:"styleclass"==a.toLowerCase()?o+=' class="'+e[a]+'"':"classid"!=a.toLowerCase()&&(o+=" "+a+'="'+e[a]+'"'));var s="";for(var l in t)t[l]!=Object.prototype[l]&&(s+='');r.outerHTML='",H[H.length]=e.id,i=f(e.id)}else{var u=_(D);u.setAttribute("type",P);for(var c in e)e[c]!=Object.prototype[c]&&("styleclass"==c.toLowerCase()?u.setAttribute("class",e[c]):"classid"!=c.toLowerCase()&&u.setAttribute(c,e[c]));for(var d in t)t[d]!=Object.prototype[d]&&"movie"!=d.toLowerCase()&&h(u,d,t[d]);r.parentNode.replaceChild(u,r),i=u}return i}function h(e,t,n){var i=_("param");i.setAttribute("name",t),i.setAttribute("value",n),e.appendChild(i)}function p(e){var t=f(e);t&&"OBJECT"==t.nodeName&&(ua.ie&&ua.win?(t.style.display="none",function(){4==t.readyState?m(e):setTimeout(arguments.callee,10)}()):t.parentNode.removeChild(t))}function m(e){var t=f(e);if(t){for(var n in t)"function"==typeof t[n]&&(t[n]=null);t.parentNode.removeChild(t)}}function f(e){var t=null;try{t=O.getElementById(e)}catch(n){}return t}function _(e){return O.createElement(e)}function g(e,t,n){e.attachEvent(t,n),B[B.length]=[e,t,n]}function v(e){var t=ua.pv,n=e.split(".");return n[0]=parseInt(n[0],10),n[1]=parseInt(n[1],10)||0,n[2]=parseInt(n[2],10)||0,t[0]>n[0]||t[0]==n[0]&&t[1]>n[1]||t[0]==n[0]&&t[1]==n[1]&&t[2]>=n[2]?!0:!1}function y(e,t,n,i){if(!ua.ie||!ua.mac){var r=O.getElementsByTagName("head")[0];if(r){var o=n&&"string"==typeof n?n:"screen";if(i&&(E=null,S=null),!E||S!=o){var a=_("style");a.setAttribute("type","text/css"),a.setAttribute("media",o),E=r.appendChild(a),ua.ie&&ua.win&&typeof O.styleSheets!=M&&O.styleSheets.length>0&&(E=O.styleSheets[O.styleSheets.length-1]),S=o}ua.ie&&ua.win?E&&typeof E.addRule==D&&E.addRule(e,t):E&&typeof O.createTextNode!=M&&E.appendChild(O.createTextNode(e+" {"+t+"}"))}}}function b(e,t){if(W){var n=t?"visible":"hidden";U&&f(e)?f(e).style.visibility=n:y("#"+e,"visibility:"+n)}}function w(e){var t=/[\\\"<>\.;]/,n=null!=t.exec(e);return n&&typeof encodeURIComponent!=M?encodeURIComponent(e):e}var k,x,C,T,E,S,M="undefined",D="object",j="Shockwave Flash",N="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",z="SWFObjectExprInst",A="onreadystatechange",I=window,O=document,R=navigator,F=!1,q=[i],L=[],H=[],B=[],U=!1,V=!1,W=!0,$=!!window.localStorage;ua=function(){var e=typeof O.getElementById!=M&&typeof O.getElementsByTagName!=M&&typeof O.createElement!=M,t=R.userAgent.toLowerCase(),n=R.platform.toLowerCase(),i=/win/.test(n?n:t),r=/mac/.test(n?n:t),o=/webkit/.test(t)?parseFloat(t.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):!1,a=!1,s=[0,0,0],l=null;if(typeof R.plugins!=M&&typeof R.plugins[j]==D)l=R.plugins[j].description,!l||typeof R.mimeTypes!=M&&R.mimeTypes[P]&&!R.mimeTypes[P].enabledPlugin||(F=!0,a=!1,l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),s[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10),s[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10),s[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0);else if(typeof I.ActiveXObject!=M)try{var u=new ActiveXObject(N);u&&(l=u.GetVariable("$version"),l&&(a=!0,l=l.split(" ")[1].split(","),s=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]))}catch(c){}return{w3:e,pv:s,wk:o,ie:a,win:i,mac:r}}(),onDomLoad=function(){ua.w3&&((typeof O.readyState!=M&&"complete"==O.readyState||typeof O.readyState==M&&(O.getElementsByTagName("body")[0]||O.body))&&e(),U||(typeof O.addEventListener!=M&&O.addEventListener("DOMContentLoaded",e,!1),ua.ie&&ua.win&&(O.attachEvent(A,function(){"complete"==O.readyState&&(O.detachEvent(A,arguments.callee),e())}),I==top&&!function(){if(!U){try{O.documentElement.doScroll("left")}catch(t){return void setTimeout(arguments.callee,0)}e()}}()),ua.wk&&!function(){return U?void 0:/loaded|complete/.test(O.readyState)?void e():void setTimeout(arguments.callee,0)}(),n(e)))}();var Y=(function(){ua.ie&&ua.win&&window.attachEvent("onunload",function(){for(var e=B.length,t=0;e>t;t++)B[t][0].detachEvent(B[t][1],B[t][2]);for(var n=H.length,i=0;n>i;i++)p(H[i]);for(var r in ua)ua[r]=null;ua=null;for(var o in Y)Y[o]=null;Y=null})}(),{registerObject:function(e,t,n,i){if(ua.w3&&e&&t){var r={};r.id=e,r.swfVersion=t,r.expressInstall=n,r.callbackFn=i,L[L.length]=r,b(e,!1)}else i&&i({success:!1,id:e})},getObjectById:function(e){return ua.w3?a(e):void 0},embedSWF:function(e,n,i,r,o,a,u,c,h,p){var m={success:!1,id:n};ua.w3&&!(ua.wk&&ua.wk<312)&&e&&n&&i&&r&&o?(b(n,!1),t(function(){i+="",r+="";var t={};if(h&&typeof h===D)for(var f in h)t[f]=h[f];t.data=e,t.width=i,t.height=r;var _={};if(c&&typeof c===D)for(var g in c)_[g]=c[g];if(u&&typeof u===D)for(var y in u)typeof _.flashvars!=M?_.flashvars+="&"+y+"="+u[y]:_.flashvars=y+"="+u[y];if(v(o)){var w=d(t,_,n);t.id==n&&b(n,!0),m.success=!0,m.ref=w}else{if(a&&s())return t.data=a,void l(t,_,n,p);b(n,!0)}p&&p(m)})):p&&p(m)},switchOffAutoHideShow:function(){W=!1},ua:ua,getFlashPlayerVersion:function(){return{major:ua.pv[0],minor:ua.pv[1],release:ua.pv[2]}},hasFlashPlayerVersion:v,createSWF:function(e,t,n){return ua.w3?d(e,t,n):void 0},showExpressInstall:function(e,t,n,i){ua.w3&&s()&&l(e,t,n,i)},removeSWF:function(e){ua.w3&&p(e)},createCSS:function(e,t,n,i){ua.w3&&y(e,t,n,i)},addDomLoadEvent:t,addLoadEvent:n,getQueryParamValue:function(e){var t=O.location.search||O.location.hash;if(t){if(/\?/.test(t)&&(t=t.split("?")[1]),null==e)return w(t);for(var n=t.split("&"),i=0;ia;a++)r=l[a],o[r]=i(r,"current_user_id"),o["context"+n.capitalize(r)]=i(r,"current_user_id","context_asset_string");return o})}.call(this),define("translations/wiki.sidebar",["i18nObj","jquery"],function(e,t){t.extend(!0,e,{translations:{ar:{wiki:{sidebar:{aria_tree:{file:"ملف",folder:"مجلد"},buttons:{uploading:"جارٍ التحميل..."},errors:{no_valid_files_selected:"لم يتم تحديد أي ملفات صالحة",no_valid_image_files_selected:"لم يتم تحديد أي ملفات صور صالحة",unexpected_upload_problem:"حدثت مشكلة غير متوقعة أثناء تحميل %{filename}. يرجى المحاولة مرة أخرى.",upload_failed:"فشل التحميل، الرجاء المحاولة مرة أخرى"},image_form:{collapsed:"انقر لتبديل نموذج الصورة الجديدة (مطوي)",expanded:"انقر لتبديل نموذج الصورة الجديدة (موسّع)"},loading_more_results:"تحميل مزيد من النتائج",no_title:"بلا عنوان",titles:{select_folder_for_uploads:"تحديد مجلد لعمليات تحميل الملفات"}}}},de:{wiki:{sidebar:{aria_tree:{file:"Datei",folder:"Ordner"},buttons:{uploading:"Datei wird hochgeladen..."},errors:{no_valid_files_selected:"Es wurden keine gültigen Dateien ausgewählt",no_valid_image_files_selected:"Es wurden keine gültigen Bilddateien ausgewählt",unexpected_upload_problem:"Während des Uploads von %{filename} ist ein unerwartetes Problem aufgetreten. Bitte versuchen Sie es erneut.",upload_failed:"Der Upload ist fehlgeschlagen, bitte erneut versuchen"},image_form:{collapsed:"Klicken, um die neue Bildform umzuschalten (minimiert)",expanded:"Klicken, um die neue Bildform umzuschalten (erweitert)"},loading_more_results:"Weitere Ergebnisse laden",no_title:"Ohne Titel",titles:{select_folder_for_uploads:"Ordner für Dateiuploads auswählen"}}}},"el-gr":{},"en-AU":{wiki:{sidebar:{aria_tree:{file:"file",folder:"folder"},buttons:{uploading:"Uploading..."},errors:{no_valid_files_selected:"No valid files were selected",no_valid_image_files_selected:"No valid image files were selected",unexpected_upload_problem:"Unexpected problem uploading %{filename}. Please try again.",upload_failed:"Upload Failed, please try again"},image_form:{collapsed:"Click to toggle the new image form (collapsed)",expanded:"Click to toggle the new image form (expanded)"},loading_more_results:"Loading more results",no_title:"No title",titles:{select_folder_for_uploads:"Select folder for file uploads"}}}},"en-GB":{wiki:{sidebar:{aria_tree:{file:"file",folder:"folder"},buttons:{uploading:"Uploading..."},errors:{no_valid_files_selected:"No valid files were selected",no_valid_image_files_selected:"No valid image files were selected",unexpected_upload_problem:"Unexpected problem uploading %{filename}. Please try again.",upload_failed:"Upload failed. Please try again"},image_form:{collapsed:"Click to toggle the new image form (collapsed)",expanded:"Click to toggle the new image form (expanded)"},loading_more_results:"Loading more results",no_title:"No title",titles:{select_folder_for_uploads:"Select folder for file uploads"}}}},es:{wiki:{sidebar:{aria_tree:{file:"archivo",folder:"carpeta"},buttons:{uploading:"Cargando..."},errors:{no_valid_files_selected:"No se seleccionaron archivos válidos",no_valid_image_files_selected:"No se seleccionaron imagenes válidas",unexpected_upload_problem:"Problema inesperado en la carga de %{filename}. Intente de nuevo.",upload_failed:"La carga falló, intente de nuevo"},image_form:{collapsed:"Haga clic para cambiar al nuevo formato de imagen (contraido)",expanded:"Haga clic para cambiar al nuevo formato de imagen (expandido)"},loading_more_results:"Cargando más resultados",no_title:"Sin título",titles:{select_folder_for_uploads:"Seleccione una carpeta para cargas de archivos"}}}},"fa-IR":{wiki:{sidebar:{aria_tree:{file:"فایل",folder:"پوشه"},buttons:{uploading:"در حال بارگذاری..."},errors:{no_valid_files_selected:"هیچ فایل معتبر انتخاب نشده است",no_valid_image_files_selected:"هیچ فایل تصویر معتبر انتخاب نشده است",unexpected_upload_problem:"در هنگام بارگذاری %{filename} اشکال غیر منتظره ای رخ داد. لطفا دوباره سعی کنید.",upload_failed:"بارگذاری انجام نشد، لطفا دوباره سعی کنید"},image_form:{collapsed:"برای تغییر شکل تصویر جدید (جمع شده) کلیک کنید",expanded:"برای تغییر شکل تصویر جدید (باز شده) کلیک کنید"},loading_more_results:"در حال بارگذاری نتایج بیشتر",no_title:"عنوان موجود نیست",titles:{select_folder_for_uploads:"انتخاب پوشه برای بارگذاری های فایل"}}}},fr:{wiki:{sidebar:{aria_tree:{file:"fichier",folder:"dossier"},buttons:{uploading:"Téléchargement..."},errors:{no_valid_files_selected:"Aucun fichier valide sélectionné",no_valid_image_files_selected:"Aucune image valide sélectionnée",unexpected_upload_problem:"Problème inattendu lors du téléchargement de %{filename}. Veuillez réessayer.",upload_failed:"Échec du téléchargement, veuillez réessayer"},image_form:{collapsed:"Cliquez pour changer l’affichage du formulaire de nouvelle image (réduit)",expanded:"Cliquez pour changer l’affichage du formulaire de nouvelle image (développé)"},loading_more_results:"Chargement de résultats supplémentaires",no_title:"Sans titre",titles:{select_folder_for_uploads:"Sélectionner le dossier de téléchargement des fichiers"}}}},hi:{},hu:{},"it-it":{},ja:{wiki:{sidebar:{aria_tree:{file:"ファイル",folder:"フォルダ"},buttons:{uploading:"アップロードしています..."},errors:{no_valid_files_selected:"有効なファイルが選択されませんでした",no_valid_image_files_selected:"有効な画像ファイルが選択されませんでした",unexpected_upload_problem:"%{filename} のアップロードで予期せぬ問題が発生しました。もう一度、試してください。",upload_failed:"アップロードに失敗しました。もう一度やり直してください"},image_form:{collapsed:"クリックして新規画像フォームを切り替えます (折りたたみ)",expanded:"クリックして新規画像フォームを切り替えます (展開)"},loading_more_results:"より多くの結果を読み込んでいます",no_title:"タイトルなし",titles:{select_folder_for_uploads:"ファイル アップロードのためのフォルダを選択します"}}}},ko:{wiki:{sidebar:{aria_tree:{file:"파일",folder:"폴더"},buttons:{uploading:"업로드 중..."},errors:{no_valid_files_selected:"유효한 파일이 선택되지 않음",no_valid_image_files_selected:"유효한 이미지 파일이 선택되지 않음",unexpected_upload_problem:"%{filename}을(를) 업로드하는 중에 예기치 않은 문제가 생겼습니다. 다시 시도하시기 바랍니다.",upload_failed:"업로드에 실패했습니다. 다시 시도하시기 바랍니다."},loading_more_results:"더 많은 결과 로드 중",no_title:"제목 없음",titles:{select_folder_for_uploads:"파일 업로드를 위한 폴더 선택"}}}},"ko-kr":{},nb:{wiki:{sidebar:{aria_tree:{file:"fil",folder:"mappe"},buttons:{uploading:"Laster opp..."},errors:{no_valid_files_selected:"Ingen gyldige filer ble valgt",no_valid_image_files_selected:"Ingen gyldige bildefiler ble valgt",unexpected_upload_problem:"Uventet problem under opplasting av %{filename}. Prøv igjen.",upload_failed:"Opplasting mislyktes. Prøv igjen"},image_form:{collapsed:"Klikk for å vise skjemaet for nytt bilde",expanded:"Klikk for å skjule skjemaet for nytt bilde"},loading_more_results:"Laster flere resultater",no_title:"Ingen tittel",titles:{select_folder_for_uploads:"Velg en mappe for filopplastinger"}}}},nl:{wiki:{sidebar:{aria_tree:{file:"bestand",folder:"map"},buttons:{uploading:"Bezig met uploaden..."},errors:{no_valid_files_selected:"Geen geldige bestanden geselecteerd",no_valid_image_files_selected:"Geen geldige fotos geselecteerd",unexpected_upload_problem:"Onverwacht probleem bij het uploaden van %{filename}. Probeer opnieuw.",upload_failed:"Uploaden mislukt, probeer opnieuw."},image_form:{collapsed:"Hier klikken om het nieuwe afbeeldingformulier in/uit te schakelen (samenvouwen)",expanded:"Hier klikken om het nieuwe afbeeldingsformulier in/uit te schakelen (uitvouwen)"},loading_more_results:"Meer resultaten aan het laden",no_title:"Geen titel",titles:{select_folder_for_uploads:"Map selecteren voor uploads van bestanden"}}}},pl:{wiki:{sidebar:{aria_tree:{file:"plik",folder:"folder"},buttons:{uploading:"Trwa przekazywanie..."},errors:{no_valid_files_selected:"Nie wybrano żadnego poprawnego pliku",no_valid_image_files_selected:"Nie wybrano żadnych prawidłowych obrazów",unexpected_upload_problem:"Niespodziewany problem w czasie przekazywania pliku %{filename}. Spróbuj ponownie.",upload_failed:"Przekazywanie nie powiodło się, spróbuj ponownie"},image_form:{collapsed:"Kliknij, aby przełączyć formularz nowego obrazu (zwinięte)",expanded:"Kliknij, aby przełączyć formularz nowego obrazu (rozwinięte)"},loading_more_results:"Trwa ładowanie większej liczby wyników",no_title:"Brak tytułu",titles:{select_folder_for_uploads:"Wybierz folder, do którego mają być przekazane pliki"}}}},pt:{wiki:{sidebar:{aria_tree:{file:"ficheiro",folder:"pasta"},buttons:{uploading:"Fazendo upload..."},errors:{no_valid_files_selected:"Nenhum arquivo válido selecionado",no_valid_image_files_selected:"Nenhuma imagem válida selecionada",unexpected_upload_problem:"Problema inesperado ao fazer upload de %{filename}. Tente novamente.",upload_failed:"Falha no upload, tente novamente"},image_form:{collapsed:"Clique para alternar a nova forma da imagem (fechada)",expanded:"Clique para alternar a nova forma da imagem (expandida)"},loading_more_results:"Carregando mais resultados",no_title:"Sem título",titles:{select_folder_for_uploads:"Selecionar pasta para uploads de arquivo"}}}},"pt-BR":{wiki:{sidebar:{aria_tree:{file:"arquivo",folder:"pasta"},buttons:{uploading:"Fazendo upload..."},errors:{no_valid_files_selected:"Nenhum arquivo válido selecionado",no_valid_image_files_selected:"Nenhuma imagem válida selecionada",unexpected_upload_problem:"Problema inesperado ao fazer upload de %{filename}. Tente novamente.",upload_failed:"Falha no upload, tente novamente"},image_form:{collapsed:"Clique para ligar a nova forma de imagem (recolhido)",expanded:"Clique para ligar a nova forma de imagem (expandido)"},loading_more_results:"Carregando mais resultados",no_title:"Sem título",titles:{select_folder_for_uploads:"Selecionar pasta para uploads de arquivo"}}}},"pt-pt":{},"ro-ro":{},ru:{wiki:{sidebar:{aria_tree:{file:"файл",folder:"папка"},buttons:{uploading:"Идет загрузка..."},errors:{no_valid_files_selected:"Допустимые файлы не выбраны",no_valid_image_files_selected:"Допустимые файлы изображений не выбраны",unexpected_upload_problem:"Неожиданная ошибка при загрузке %{filename}. Повторите попытку.",upload_failed:"Сбой загрузки, повторите попытку"},image_form:{collapsed:"Щелкните, чтобы переключиться на новую форму изображения (свернутую)",expanded:"Щелкните, чтобы переключиться на новую форму изображения (развернутую)"},loading_more_results:"Загрузка других результатов",no_title:"Заголовок отсутствует",titles:{select_folder_for_uploads:"Выберите папку для загрузки файлов"}}}},tr:{wiki:{sidebar:{aria_tree:{file:"dosya",folder:"klasör"},buttons:{uploading:"Yükleniyor..."},errors:{no_valid_files_selected:"Geçerli dosya seçilmedi",no_valid_image_files_selected:"Geçerli resim dosyası seçilmedi",unexpected_upload_problem:"%{filename} dosyasını yüklemede bilinemeyen problemle karşılaşıldı. Lütfen tekrar deneyin.",upload_failed:"Yükleme başarısız, lütfen tekrar deneyin"},image_form:{collapsed:"Yeni bir görsel türüne geçiş için tıklayın (daraltılmış)",expanded:"Yeni görsel türüne geçiş için tıklayın (genişletilmiş)"},loading_more_results:"Daha fazla sonuç yükleniyor",no_title:"Başlık yok",titles:{select_folder_for_uploads:"Yüklemek istediğiniz dosyaların klasörünü seçiniz"}}}},"tr-tr":{},zh:{wiki:{sidebar:{aria_tree:{file:"文件",folder:"文件夹"},buttons:{uploading:"正在上传..."},errors:{no_valid_files_selected:"未选择有效的文件",no_valid_image_files_selected:"未选择有效的图像文件",unexpected_upload_problem:"上传 %{filename} 时出现意外问题。请重试。",upload_failed:"上传失败,请重试"},image_form:{collapsed:"单击以切换新图像格式 (已隐藏)",expanded:"单击以切换新图像格式 (已展开)"},loading_more_results:"正在加载其它结果",no_title:"无标题",titles:{select_folder_for_uploads:"选择文件夹进行文件上传"}}}},"zh-hans":{},zh_Hant:{wiki:{sidebar:{aria_tree:{file:"檔案",folder:"資料夾"},buttons:{uploading:"正在上傳..."},errors:{no_valid_files_selected:"沒有選中的有效檔案",no_valid_image_files_selected:"沒有選定的有效影像檔案",unexpected_upload_problem:"上傳 %{filename} 時出現意外問題。請再試一次。",upload_failed:"上傳失敗。請再試一次。"},image_form:{collapsed:"按一下以切換新影像格式 (摺疊)",expanded:"按一下以切換新影像格式 (展開)"},loading_more_results:"載入更多結果",no_title:"無標題",titles:{select_folder_for_uploads:"選擇檔案上傳的資料夾"}}}}}})}),define("translations/usage.rights",["i18nObj","jquery"],function(e,t){t.extend(!0,e,{translations:{ar:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"حدث خطأ أثناء إعداد حق الاستخدام الخاص بـ %{filename}",filename_has_been_published_with_the_following_usa_fbd8b39f:"تم نشر %{filename} بحق الاستخدام التالي: %{usage_right}"},de:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"Beim Festlegen des Nutzungsrechtes für %{filename} ist ein Fehler aufgetreten",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} wurde mit den folgenden Nutzungsrechten veröffentlicht %{usage_right}"},"el-gr":{},"en-AU":{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"An error occurred when setting the usage right for %{filename}",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} has been published with the following usage right: %{usage_right}"},"en-GB":{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"An error occurred when setting the usage right for %{filename}",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} has been published with the following usage right: %{usage_right}"},es:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"Se ha producido un error al configurar el derecho de uso para %{filename}",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} se ha publicado con los derechos de uso siguientes: %{usage_right}"},"fa-IR":{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"در هنگام تنظیم حق استفاده برای %{filename} خطایی رخ داد",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} با حق استفاده زیر منتشر شده است: %{usage_right}"},fr:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"Une erreur s’est produite lors de la définition des droits d’utilisation pour %{filename}.",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} a été publié avec le droit d’utilisation suivant : %{usage_right}"},hi:{},hu:{},"it-it":{},ja:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"%{filename} の使用権を設定する際にエラーが発生しました。",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} は次の使用権で公開されています: %{usage_right}"},ko:{},"ko-kr":{},nb:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"En feil oppstod ved innstilling av bruk rett for %{filename}",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} har blitt publisert med følgende bruk rett: %{usage_right}"},nl:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"Er is een fout opgetreden bij het instellen van de gebruiksrechten voor %{filename} ",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} is gepubliceerd met het volgende gebruiksrecht: %{usage_right} "},pl:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"Wystąpił błąd podczas nadawania prawa użytkowania dla %{filename}",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} został opublikowany z następującym prawem użytkowania: %{usage_right}"},pt:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"Ocorreu um erro ao definir o direito de utilização relativo a %{filename}",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} foi publicado com o seguinte direito de utilização: %{usage_right}"},"pt-BR":{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"Ocorreu um erro ao definir o direito de uso para %{filename}",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} foi publicado com o seguinte direito de uso: %{usage_right}"},"pt-pt":{},"ro-ro":{},ru:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"Возникла ошибка при установке права на использование для %{filename}",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} был опубликован со следующим правом на использование: %{usage_right}"},tr:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"%{filename} dosyası için kullanıcı haklarını ayarlarken bir hata oluştu",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} dosyası şu kullanım hakları ile yayınlanmıştır: %{usage_right}"},"tr-tr":{},zh:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"为 %{filename} 设置使用权限时出错",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} 已发布,使用权限如下:%{usage_right}"},"zh-hans":{},zh_Hant:{an_error_occurred_when_setting_the_usage_right_for_d4ea78f5:"在為 %{filename} 設定使用權時發生了一個錯誤",filename_has_been_published_with_the_following_usa_fbd8b39f:"%{filename} 已發佈,并具有如下使用權:%{usage_right}"}}})}),!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define("bower/react/react-with-addons",[],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.React=e()}}(function(){return function e(t,n,i){function r(a,s){if(!n[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var u=n[a]={exports:{}};t[a][0].call(u.exports,function(e){var n=t[a][1][e];return r(n?n:e)},u,u.exports,e,t,n,i)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a-1}};t.exports=i},{"./invariant":134}],4:[function(e,t){function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var i={columnCount:!0,fillOpacity:!0,flex:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},r=["Webkit","ms","Moz","O"];Object.keys(i).forEach(function(e){r.forEach(function(t){i[n(t,e)]=i[e]})});var o={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},a={isUnitlessNumber:i,shorthandPropertyExpansions:o};t.exports=a},{}],5:[function(e,t){var n=e("./CSSProperty"),i=e("./dangerousStyleValue"),r=e("./hyphenateStyleName"),o=e("./memoizeStringOnly"),a=o(function(e){return r(e)}),s={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=a(n)+":",t+=i(n,r)+";")}return t||null},setValueForStyles:function(e,t){var r=e.style;for(var o in t)if(t.hasOwnProperty(o)){var a=i(o,t[o]);if(a)r[o]=a;else{var s=n.shorthandPropertyExpansions[o];if(s)for(var l in s)r[l]="";else r[o]=""}}}};t.exports=s},{"./CSSProperty":4,"./dangerousStyleValue":115,"./hyphenateStyleName":132,"./memoizeStringOnly":143}],6:[function(e,t){function n(){this._callbacks=null,this._contexts=null}var i=e("./PooledClass"),r=e("./invariant"),o=e("./mixInto");o(n,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){r(e.length===t.length,"Mismatched list of contexts in callback queue"),this._callbacks=null,this._contexts=null;for(var n=0,i=e.length;i>n;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),i.addPoolingTo(n),t.exports=n},{"./PooledClass":28,"./invariant":134,"./mixInto":147}],7:[function(e,t){function n(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function i(e){var t=k.getPooled(S.change,D,e);y.accumulateTwoPhaseDispatches(t),w.batchedUpdates(r,t)}function r(e){v.enqueueEvents(e),v.processEventQueue()}function o(e,t){M=e,D=t,M.attachEvent("onchange",i)}function a(){M&&(M.detachEvent("onchange",i),M=null,D=null)}function s(e,t,n){return e===E.topChange?n:void 0}function l(e,t,n){e===E.topFocus?(a(),o(t,n)):e===E.topBlur&&a()}function u(e,t){M=e,D=t,j=e.value,N=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(M,"value",A),M.attachEvent("onpropertychange",d)}function c(){M&&(delete M.value,M.detachEvent("onpropertychange",d),M=null,D=null,j=null,N=null)}function d(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==j&&(j=t,i(e))}}function h(e,t,n){return e===E.topInput?n:void 0}function p(e,t,n){e===E.topFocus?(c(),u(t,n)):e===E.topBlur&&c()}function m(e){return e!==E.topSelectionChange&&e!==E.topKeyUp&&e!==E.topKeyDown||!M||M.value===j?void 0:(j=M.value,D)}function f(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function _(e,t,n){return e===E.topClick?n:void 0}var g=e("./EventConstants"),v=e("./EventPluginHub"),y=e("./EventPropagators"),b=e("./ExecutionEnvironment"),w=e("./ReactUpdates"),k=e("./SyntheticEvent"),x=e("./isEventSupported"),C=e("./isTextInputElement"),T=e("./keyOf"),E=g.topLevelTypes,S={change:{phasedRegistrationNames:{bubbled:T({onChange:null}),captured:T({onChangeCapture:null})},dependencies:[E.topBlur,E.topChange,E.topClick,E.topFocus,E.topInput,E.topKeyDown,E.topKeyUp,E.topSelectionChange]}},M=null,D=null,j=null,N=null,P=!1;b.canUseDOM&&(P=x("change")&&(!("documentMode"in document)||document.documentMode>8));var z=!1;b.canUseDOM&&(z=x("input")&&(!("documentMode"in document)||document.documentMode>9));var A={get:function(){return N.get.call(this)},set:function(e){j=""+e,N.set.call(this,e)}},I={eventTypes:S,extractEvents:function(e,t,i,r){var o,a;if(n(t)?P?o=s:a=l:C(t)?z?o=h:(o=m,a=p):f(t)&&(o=_),o){var u=o(e,t,i);if(u){var c=k.getPooled(S.change,u,r);return y.accumulateTwoPhaseDispatches(c),c}}a&&a(e,t,i)}};t.exports=I},{"./EventConstants":16,"./EventPluginHub":18,"./EventPropagators":21,"./ExecutionEnvironment":22,"./ReactUpdates":87,"./SyntheticEvent":96,"./isEventSupported":135,"./isTextInputElement":137,"./keyOf":141}],8:[function(e,t){var n=0,i={createReactRootIndex:function(){return n++}};t.exports=i},{}],9:[function(e,t){function n(e){switch(e){case g.topCompositionStart:return y.compositionStart;case g.topCompositionEnd:return y.compositionEnd;case g.topCompositionUpdate:return y.compositionUpdate}}function i(e,t){return e===g.topKeyDown&&t.keyCode===m}function r(e,t){switch(e){case g.topKeyUp:return-1!==p.indexOf(t.keyCode);case g.topKeyDown:return t.keyCode!==m;case g.topKeyPress:case g.topMouseDown:case g.topBlur:return!0;default:return!1}}function o(e){this.root=e,this.startSelection=u.getSelection(e),this.startValue=this.getText()}var a=e("./EventConstants"),s=e("./EventPropagators"),l=e("./ExecutionEnvironment"),u=e("./ReactInputSelection"),c=e("./SyntheticCompositionEvent"),d=e("./getTextContentAccessor"),h=e("./keyOf"),p=[9,13,27,32],m=229,f=l.canUseDOM&&"CompositionEvent"in window,_=!f||"documentMode"in document&&document.documentMode>8&&document.documentMode<=11,g=a.topLevelTypes,v=null,y={compositionEnd:{phasedRegistrationNames:{bubbled:h({onCompositionEnd:null}),captured:h({onCompositionEndCapture:null})},dependencies:[g.topBlur,g.topCompositionEnd,g.topKeyDown,g.topKeyPress,g.topKeyUp,g.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:h({onCompositionStart:null}),captured:h({onCompositionStartCapture:null})},dependencies:[g.topBlur,g.topCompositionStart,g.topKeyDown,g.topKeyPress,g.topKeyUp,g.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:h({onCompositionUpdate:null}),captured:h({onCompositionUpdateCapture:null})},dependencies:[g.topBlur,g.topCompositionUpdate,g.topKeyDown,g.topKeyPress,g.topKeyUp,g.topMouseDown]}};o.prototype.getText=function(){return this.root.value||this.root[d()]},o.prototype.getData=function(){var e=this.getText(),t=this.startSelection.start,n=this.startValue.length-this.startSelection.end;return e.substr(t,e.length-n-t)};var b={eventTypes:y,extractEvents:function(e,t,a,l){var u,d;if(f?u=n(e):v?r(e,l)&&(u=y.compositionEnd):i(e,l)&&(u=y.compositionStart),_&&(v||u!==y.compositionStart?u===y.compositionEnd&&v&&(d=v.getData(),v=null):v=new o(t)),u){var h=c.getPooled(u,a,l);return d&&(h.data=d),s.accumulateTwoPhaseDispatches(h),h}}};t.exports=b},{"./EventConstants":16,"./EventPropagators":21,"./ExecutionEnvironment":22,"./ReactInputSelection":63,"./SyntheticCompositionEvent":94,"./getTextContentAccessor":129,"./keyOf":141}],10:[function(e,t){function n(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var i,r=e("./Danger"),o=e("./ReactMultiChildUpdateTypes"),a=e("./getTextContentAccessor"),s=e("./invariant"),l=a();i="textContent"===l?function(e,t){e.textContent=t}:function(e,t){for(;e.firstChild;)e.removeChild(e.firstChild);if(t){var n=e.ownerDocument||document;e.appendChild(n.createTextNode(t))}};var u={dangerouslyReplaceNodeWithMarkup:r.dangerouslyReplaceNodeWithMarkup,updateTextContent:i,processUpdates:function(e,t){for(var a,l=null,u=null,c=0;a=e[c];c++)if(a.type===o.MOVE_EXISTING||a.type===o.REMOVE_NODE){var d=a.fromIndex,h=a.parentNode.childNodes[d],p=a.parentID;s(h,"processUpdates(): Unable to find child %s of element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a when using tables, nesting