1function scroll_pagina(){$(window).scrollTop()>5||$("#divPagina").scrollTop()>200?$("body").addClass("scrolado"):$("body").removeClass("scrolado")}function ocultar_menus(){$("#divIzq").hasClass("recogido")||menu_izq(),$("#divDer").hasClass("recogido")||menu_der(),$("#divSup").hasClass("recogido")||menu_sup(!1)}function menu_izq(e){void 0!=e&&e.preventDefault(),$("#divIzq").hasClass("recogido")?($("#divDer").attr("class","recogido"),$("#divIzq").attr("class","desplegado"),$("#divBarra").attr("class","izq"),$("#divPagina").addClass("recIzq").removeClass("recDer").removeClass("desplegado"),$("#lnkSubir").hide()):($("#divIzq").attr("class","recogido"),$("#divPagina").addClass("desplegado").removeClass("recIzq"),$("#divBarra").attr("class","cen"),$("#lnkSubir").css("display",""))}function menu_der(e){void 0!=e&&e.preventDefault(),$("#divDer").hasClass("recogido")?($("#divIzq").attr("class","recogido"),$("#divDer").attr("class","desplegado"),$("#divBarra").attr("class","der"),$("#divPagina").addClass("recDer").removeClass("recIzq").removeClass("desplegado"),$("#lnkSubir").hide()):($("#divDer").attr("class","recogido"),$("#divPagina").addClass("desplegado").removeClass("recDer"),$("#divBarra").attr("class","cen"),$("#lnkSubir").css("display",""))}function redimensionar(){$("body").hide(),$(window).width()>=988?($("[data-cont]").each(function(){$("#"+$(this).attr("data-cont")).append($(this)),$(this).removeAttr("data-cont")}),$("#divPagina").css("height","auto"),$("#divPagina").css("width","100%"),$("#divIzq").css("height","auto"),$("#divDer").css("height","auto"),$("#divSup").css("height","auto")):($(".des-izq").each(function(){void 0==$(this).attr("data-cont")&&$("#divIzq").append($(this).attr("data-cont",$(this).parent().attr("id")))}),$(".des-der").each(function(){void 0==$(this).attr("data-cont")&&$("#divDer").append($(this).attr("data-cont",$(this).parent().attr("id")))}),$("[data-mov-cont]").each(function(){void 0==$(this).attr("data-cont")&&$("#"+$(this).attr("data-mov-cont")).append($(this).attr("data-cont",$(this).parent().attr("id")))}),$(".des-der").length>0?$("#lnkDesDer").show():$("#lnkDesDer").hide(),$("#divPagina").css("width","100%"),$("#divPagina").height($(document).height()-parseInt($("#divPagina").css("top"))-parseInt($("#divPagina").css("padding-top"))-parseInt($("#divPagina").css("padding-bottom"))),$("#divIzq").height($(document).height()-parseInt($("#divPagina").css("top"))),$("#divDer").height($(document).height()-parseInt($("#divPagina").css("top"))),$("#divSup").height($(document).height())),$("body").show()}function menu_sup(e){e?($("#divSup").attr("class","desplegado"),$("#divIzq").attr("class","recogido"),$("#divDer").attr("class","recogido"),$("#divBarra").attr("class","der"),$("#divPagina").removeClass("recDer").removeClass("recIzq").removeClass("desplegado"),$("#lnkSubir").hide()):($("#divSup").attr("class","recogido"),$("#divIzq").attr("class","recogido"),$("#divDer").attr("class","recogido"),$("#divPagina").addClass("desplegado").removeClass("recDer").removeClass("recIzq"),$("#divBarra").attr("class","cen"),$("#lnkSubir").css("display",""))}function pregunta(e,t){var n;return $("#dlgPregunta p").html(t),$("#dlgPregunta .si").unbind("click").bind("click",function(t){t.preventDefault(),n=$(e).attr("data-preproceso"),$(e).removeAttr("data-preproceso"),$(e).is("form")?enviar_formulario(e):$(e).click(),$(e).attr("data-preproceso",n),$("#dlgPregunta").modal("hide")}),$("#dlgPregunta .no").unbind("click").bind("click",function(e){e.preventDefault(),$("#dlgPregunta").modal("hide")}),$("#dlgPregunta").modal({modalOverflow:!0,keyboard:!1,backdrop:"static"}),$("#dlgPregunta").modal("show"),!1}function alerta(e){bootbox.alert(e)}function recargar_contenido(e){cargar_contenido_pagina($("#"+e).attr("data-url"),e)}function cargar_contenido_pagina(e,t,n,i){void 0!=e&&($("#"+t).trigger("data-even-precarga",[t,e]),void 0!=i&&i||cargando($("#"+t).get(),!0),$("#"+t).load(e,function(){void 0!=i&&i||cargando($("#"+t).get(),!1),$("#"+t).attr("data-url",e),inicializar_subcontroles(t),$("#"+t).trigger("data-even-poscarga",[t,e]),void 0!=n&&n.apply($(this)),"dialogo"==t.toLowerCase().substr(0,7)?abrir_dialogo.apply($(this)):void 0!=$("#"+t).attr("data-refrescar")&&void 0!=$("#"+t).attr("data-url")&&setTimeout(function(){$("#"+t).attr("data-url")==e&&cargar_c
1ontenido(e,t,n,!0)},$("#"+t).attr("data-refrescar"))}))}function cargar_contenido(e,t,n,i){""!=t&&""!=e&&void 0!=e&&("dialogo"==t.toLowerCase().substr(0,7)?($("#"+t).length&&($("#"+t).is(":visible")||$("#"+t).remove()),0==$("#"+t).length&&$("body").append("<div class='modal fade' tabindex='-1' role='dialog' aria-hidden='true' id='"+t+"'/>"),cargar_contenido_pagina(e,t,n,i)):$("#"+t).length&&cargar_contenido_pagina(e,t,n,i))}function abrir_dialogo(){var e=this;$(e).is(":visible")||($(this).modal({keyboard:!1,backdrop:"static",width:$(e).find(".ventana").data("ancho")}),$(this).modal("show")),$(this).on("hidden.bs.modal",function(){var e=this;setTimeout(function(){$(e).remove()},1e3)}),$(this).find("h1").hide(),$(this).find(".dlg_cerrar").click(function(t){t.preventDefault(),$(e).modal("hide")})}function cerrar_dialogo(){$(this).parents(".modal").modal("hide")}function habilitar(e,t){t?$(e).removeClass("disabled"):$(e).addClass("disabled"),$(e).children().each(function(e,n){habilitar(n,t)})}function cargando(e,t){if(habilitar(e,!t),t?$(e).find("[data-loading-text]").button("loading"):$(e).find("[data-loading-text]").button("reset"),$("[data-cargando-class]").each(function(e,n){t?$(this).addClass($(this).attr("data-cargando-class")).attr("disabled","disabled"):$(this).removeClass($(this).attr("data-cargando-class")).removeAttr("disabled")}),$("#carg_"+$(e).attr("id")).parent().css("position",$("#carg_"+$(e).attr("id")).parent().attr("posicionamiento")),$("#carg_"+$(e).attr("id")).remove(),t&&"none"!=$(e).css("display")){"absolute"!=$(e).parent().css("position")&&$(e).parent().attr("posicionamiento",$(e).parent().css("position")).css("position","relative"),$(e).parent().append('<div id="carg_'+$(e).attr("id")+'" class="cargando" style="position:absolute"></div>');var n=$(e).position();$("#carg_"+$(e).attr("id")).css({width:$(e).outerWidth(),height:$(e).outerHeight(),top:n.top+parseInt($(e).css("margin-top")),left:n.left+parseInt($(e).css("margin-left"))})}}function callback_formulario(formulario,datos,callback){if(null!=datos)if(datos.correcto){if($(formulario).find("[name=codigo]").val(datos.codigo),void 0!=datos.mensaje?($(formulario).find(".mensaje").addClass("alert").removeClass("alert-danger").addClass("alert-success").html(datos.mensaje).fadeIn(),$(formulario).find(".mensaje").hasClass("autoocultar")&&setTimeout(function(){$(formulario).find(".mensaje").fadeOut()},3e3),0==$(formulario).find(".mensaje").length&&mostrar_notificacion(datos.mensaje,"success")):$(formulario).find(".mensaje").removeClass("alert").removeClass("alert-danger").html(""),mostrar_errores(formulario,new Array),$(formulario).find(".ocultar_sin_cambios").hide(),void 0!=datos.url)if(void 0!=$(formulario).attr("data-destino")){var cont_des=$(formulario).attr("data-destino").split(";"),cont_url=datos.url.split(";");$.each(cont_url,function(e,t){cargar_contenido(t,cont_des[e],callback)})}else window.location=datos.url;void 0!=$(formulario).attr("data-correcto")&&eval($(formulario).attr("data-correcto")).apply(formulario,[datos]),void 0!=$(formulario).attr("data-vaciar")&&$(formulario).find("input[type!=submit],textarea,select").val(""),cargando($(formulario),!1)}else cargando($(formulario),!1),void 0!=datos.campos?mostrar_errores(formulario,datos.campos):mostrar_errores(formulario,new Array),void 0!=datos.mensaje&&($(formulario).find(".mensaje").addClass("alert").removeClass("alert-success").addClass("alert-danger").html(datos.mensaje).fadeIn(),$(formulario).find(".mensaje").hasClass("autoocultar")&&setTimeout(function(){$(formulario).find(".mensaje").fadeOut()},3e3),0==$(formulario).find(".mensaje").length&&mostrar_notificacion(datos.mensaje,"danger"))}function mostrar_errores(e,t){$(e).find("input, select, textarea, .g-recaptcha").parents(".form-group,.btn-group,.input-group").removeClass("has-error"),$.each(t,function(t,n){$(e).find("input[name='"+n+"'], select[name='"+n+"'], textarea[name='"+n+"'], .g-recaptcha[name='"+n+"']").closest(".form-group,.btn-group,.input-group").addClass("has-error")}),$(e).find(".has-error:first input,.has-error:first select,.has-error:first textarea").focus(),$("[name='g-recaptcha']").length>0&&grecaptcha.reset()}function mostrar_notificacion(e,t){""!=e&&(0==$("#notificaciones").length&&$("body").prepend("<div id='notificaciones' class='notifications top'></div>"),$("#notificaciones").notify({message:{text:e},type:t}).show())}function inicializar_subcontroles_files(id_contenedor){$("#"+id_contenedor+' input[type="file"]').each(function(ind,obj){var form=$(obj).parents("form");void 0==$(form).attr("target")&&"json"==$(form).attr("tipo")&&(void 0==$(form).attr("id")&&alert("Coloca un id a todos los formularios."),$(form).parent().append('<iframe style="display:none" id="'+$(form).attr("id")+'_iframe" name="'+$(form).attr("id")+'_iframe"></iframe>'),$(form).attr({enctype:"multipart/form-data",target:$(form).attr("id")+"_iframe"}),$("iframe#"+$(form).attr("id")+"_iframe").load(function(){""!=$(this).contents().text()&&(datos=jQuery.parseJSON($(this).contents().text()),void 0!=$(form).attr("callback")?eval($(form).attr("callback")).apply(form,[datos]):callback_formulario(form,datos),cargando($(form),!1))}))})}function inicializar_subcontroles(e){var t="";void 0!=e&&(t="#"+e),posicionar_controles(e),$(t+" [data-cargar]").each(function(e,t){"1"==$(t).attr("data-cargar")?enviar_formulario(this):cargar_contenido($(t).attr("data-cargar"),$(t).attr("id"))}),$(t+" .ocultar_sin_cambios").hide(),$(t+' [data-tipo="entero"]').forzarEnteros(),$(t+' [data-tipo="decimal"]').forzarDecimales(),inicializar_imagenes(e),inicializar_ficheros(e),inicializar_editores(e),inicializar_fechas(e),inicializar_tags(e),inicializar_arboles(e),inicializar_ordenacion(e),inicializar_desplegables(e),inicializar_tabs(e),inicializar_movimiento(e),inicializar_enlaces(e),inicializar_mascaras(e),inicializar_svgs(e),inicializar_colorpickers(e),redimensionar_controles(e),"undefined"==typeof FormData&&inicializar_subcontroles_files(e)}function inicializar_links(){$(document).on("click","a, [click]",function(e){if(void 0==$(this).attr("target")&&(void 0!=$(this).attr("href")||void 0!=$(this).attr("data-action"))){$(this).parents("a").length>0&&e.stopImmediatePropagation();var ejecutar=!0;if($(this).hasClass("disabled"))e.preventDefault();else if(void 0!=$(this).attr("data-preproceso")&&(ejecutar=eval($(this).attr("data-preproceso"))),ejecutar)if(void 0!=$(this).attr("data-form")||void 0!=$(this).attr("data-destino")||void 0!=$(this).attr("data-retorno")||$(this).attr("data-recarga"))if(e.preventDefault(),void 0!=$(this).attr("data-form")){var formulario=$("#"+$(this).attr("data-form"));$(formulario).attr("action",$(this).attr("href")),void 0!=$(this).attr("data-tipo")?$(formulario).attr("data-tipo",$(this).attr("data-tipo")):$(formulario).removeAttr("data-tipo"),void 0!=$(this).attr("data-destino")?$(formulario).attr("data-destino",$(this).attr("data-destino")):$(formulario).removeAttr("data-destino"),void 0!=$(this).attr("data-retorno")?$(formulario).attr("data-retorno",$(this).attr("data-retorno")):$(formulario).removeAttr("data-retorno"),void 0!=$(this).attr("data-recarga")?$(formulario).attr("data-recarga",$(this).attr("data-recarga")):$(formulario).removeAttr("data-recarga"),void 0!=$(this).attr("data-correcto")?$(formulario).attr("data-correcto",$(this).attr("data-correcto")):$(formulario).removeAttr("data-correcto"),void 0!=$(this).attr("data-target")?$(formulario).attr("target",$(this).attr("data-target")):$(formulario).removeAttr("target"),void 0!=$(formulario).attr("data-tipo")?enviar_formulario(formulario):$(formulario).submit(),$(this).removeAttr("disabled")}else if(void 0==$(this).attr("data-retorno")&&void 0==$(this).attr("data-recarga")){if("#"!=$(this).attr("href")&&""!=$(this).attr("href")){var link=this;
1cargar_contenido($(this).attr("href"),$(this).attr("data-destino"),function(){void 0!=$(link).attr("data-recarga-form")&&$("#"+$(link).attr("data-destino")).find("form:first-child").attr("data-recarga",$(link).attr("data-recarga-form"))})}}else{var link=this;$.ajax({url:$(this).attr("href"),dataType:"json",type:"POST",cache:!1,success:function(datos){if(void 0!=$(link).attr("data-recarga")&&null!=datos&&1==datos.correcto)if("documento"==$(link).attr("data-recarga"))location.reload();else{var cont_rec=$(link).attr("data-recarga").split(";");$.each(cont_rec,function(e,t){void 0!=$("#"+t).attr("data-url")?cargar_contenido($("#"+t).attr("data-url"),t):$("#"+t).submit()})}void 0!=$(link).attr("data-retorno")&&eval($(link).attr("data-retorno")).apply(link,[datos]),void 0!=datos.mensaje&&mostrar_notificacion(datos.mensaje,datos.correcto?"success":"danger")}})}else"submit"==$(this).attr("href")&&(e.preventDefault(),$(this).parents("form").submit());else e.preventDefault()}})}function enviar_formulario(formulario){var ejecutar=!0,datos_form,par_contentType,par_processData;"undefined"!=typeof FormData?(datos_form=new FormData($(formulario).get(0)),par_contentType=!1,par_processData=!1):(datos_form=$(formulario).serialize(),par_contentType="application/x-www-form-urlencoded; charset=UTF-8",par_processData=!0),void 0!=$(formulario).attr("data-preproceso")&&(ejecutar=eval($(formulario).attr("data-preproceso"))),ejecutar&&(cargando(formulario,!0),$.ajax({url:$(formulario).attr("action"),dataType:$(formulario).attr("data-tipo"),type:$(formulario).attr("method"),data:datos_form,cache:!1,contentType:par_contentType,processData:par_processData,error:function(){},success:function(datos){switch($(formulario).attr("data-tipo")){case"html":void 0!=$(formulario).attr("data-destino")?"dialogo"==$(formulario).attr("data-destino").toLowerCase().substr(0,7)?($("#"+$(formulario).attr("data-destino")).remove(),$("body").append("<div id='"+$(formulario).attr("data-destino")+"' style='display:none;'/>"),$("#"+$(formulario).attr("data-destino")).html(datos),abrir_dialogo.apply($("#"+$(formulario).attr("data-destino")),[])):($("#"+$(formulario).attr("data-destino")).html(datos),$("#"+$(formulario).attr("data-destino")).attr("url",$(formulario).attr("action")+"?"+datos_form)):alert("Falta indicar el id del Div destino"),cargando(formulario,!1);break;case"json":void 0!=$(formulario).attr("data-retorno")?eval($(formulario).attr("data-retorno")).apply(formulario,[datos]):callback_formulario(formulario,datos);break;default:$(formulario).attr("target","_self"),$(formulario).submit(),cargando(formulario,!1)}if(null!=datos&&1==datos.correcto&&void 0!=$(formulario).attr("data-recarga"))if("documento"==$(formulario).attr("data-recarga"))location.reload();else{var cont_rec=$(formulario).attr("data-recarga").split(";");$.each(cont_rec,function(e,t){void 0!=$("#"+t).attr("data-url")?cargar_c
1ontenido($("#"+t).attr("data-url"),t):$("#"+t).submit()})}}}))}function inicializar_forms(){$(document).on("submit","form",function(e){void 0!=$(this).attr("data-tipo")?(e.preventDefault(),enviar_formulario(this)):e.result})}function inicializar_movimiento(id_contenedor){var contenedor="";void 0!=id_contenedor&&(contenedor="#"+id_contenedor),$(contenedor+" [data-mover-tipo]").length>0&&$(contenedor+" [data-mover-tipo]").draggable({cursor:"default",helper:"clone",revert:"invalid"}),$(contenedor+" [data-mover-contenedor]").each(function(ind,obj){$(obj).droppable({accept:"[data-mover-tipo='"+$(obj).attr("data-mover-contenedor")+"']",drop:function(event,ui){var a=this;$.ajax({url:ui.draggable.attr("data-mover-url")+"/"+$(a).attr("data-codigo"),dataType:"json",type:"POST",cache:!1,success:function(datos){void 0!=ui.draggable.attr("data-recarga")&&cargar_contenido($("#"+ui.draggable.attr("data-recarga")).attr("data-url"),ui.draggable.attr("data-recarga")),void 0!=ui.draggable.attr("data-retorno")&&eval(ui.draggable.attr("data-retorno")).apply(obj,[datos])}})}})})}function inicializar_desplegables(e){var t="";void 0!=e&&(t="#"+e),$(t+" [data-desplegar]").each(function(e,t){$(this).click(function(e){e.preventDefault(),$("#"+$(this).attr("data-desplegar")).slideToggle()})})}function inicializar_colorpickers(e){var t="";void 0!=e&&(t="#"+e),$(t+" [data-tipo='color']").each(function(e,t){var n=$('<div class="input-group color"></div>');$(this).wrap(n).after('<span class="input-group-addon"><i></i></span>')}),$(".color").length>0&&$(".color").colorpicker({format:"hex"})}function inicializar_ordenacion(id_contenedor){var contenedor="";void 0!=id_contenedor&&(contenedor="#"+id_contenedor),$(contenedor+" [data-ordenar-url][data-ordenar-grupo]").each(function(ind,obj){$(obj).sortable({cursor:"default",helper:"clone",handle:$(obj).attr("data-ordenar-tirador"),axis:$(obj).attr("data-ordenar-eje"),items:'[data-ordenar-grupo="'+$(obj).attr("data-ordenar-grupo")+'"]',update:function(e,ui){"#"!=$(obj).attr("data-ordenar-url")&&$.ajax({dataType:"json",type:"POST",cache:!1,url:$(obj).attr("data-ordenar-url")+"/"+$(ui.item).attr("data-codigo")+"/"+($(ui.item).prevAll('[data-ordenar-grupo="'+$(ui.item).attr("data-ordenar-grupo")+'"]').length+1),success:function(datos){void 0!=$(obj).attr("data-retorno")&&eval($(obj).attr("data-retorno")).apply(obj,[datos])}})}})})}function inicializar_svgs(e){var t="";void 0!=e&&(t="#"+e),"undefined"==typeof Modernizr||Modernizr.svg?$(t+" img.svg").each(function(){var e=jQuery(this),t=e.attr("id"),n=e.attr("class"),i=e.attr("src");$.ajax({url:i,dataType:"xml",cache:!0,success:function(i){var o=jQuery(i).find("svg");void 0!==t&&(o=o.attr("id",t)),void 0!==n&&(o=o.attr("class",n+" replaced-svg")),o=o.removeAttr("xmlns:a"),e.replaceWith(o)}})}):$(document).ready(function(){$(".svg").svgmagic()})}function inicializar_tabs(e){var t="";void 0!=e&&(t="#"+e),$(t+" .nav-tabs a").click(function(e){"#"==$(this).attr("href").substring(0,1)&&(e.preventDefault(),$(this).tab("show"))}),$(t+" .nav-tabs a.active").tab("show")}function inicializar_arboles(id_contenedor){var contenedor="";void 0!=id_contenedor&&(contenedor="#"+id_contenedor),$(contenedor+" [data-arbol-url]").each(function(ind,obj){$(obj).on("move_node.jstree",function(e,t){$.ajax({url:$(obj).attr("data-mover-url")+"/"+t.node.id+"/"+t.parent+"/"+t.position,dataType:"json",type:"POST",cache:!1,success:function(e){refrescar_drop_nodo(obj)}})}).on("set_state.jstree",function(e,t){$(obj).find("a.jstree-clicked").click(),refrescar_drop_nodo(obj)}).on("load_node.jstree",function(e,t){refrescar_drop_nodo(obj)}).on("create_node.jstree",function(e,t){refrescar_drop_nodo(obj)}).on("select_node.jstree",function(e,data){void 0!=$(obj).attr("data-arbol-pulsar")&&eval($(obj).attr("data-arbol-pulsar"))}).jstree({core:{multiple:!1,animation:0,check_callback:!0,data:{url:$(obj).attr("data-arbol-url"),data:function(e){return{id:e.id}}}},types:{"#":{max_children:1,valid_children:["raiz"]},raiz:{valid_children:["carpeta","fichero"]},carpeta:{valid_children:["carpeta","fichero"]},fichero:{icon:"glyphicon glyphicon-file",valid_children:[]}},plugins:(void 0==$(obj).attr("data-arbol-plugins")?"":$(obj).attr("data-arbol-plugins")).split(",")})})}function inicializar_tags(e){var t="";void 0!=e&&(t="#"+e),$(t+" [data-tipo='tags']").each(function(e,t){var n=this,i=void 0,o=void 0,a=void 0;"0"==$(n).attr("data-tags-add")&&(i=function(e){return"label label-info tag"+e.tipo},o=function(e){return e.codigo},a=function(e){return e.texto}),$(this).tagsinput({maxTags:$(n).attr("data-tags-max"),tagClass:i,itemValue:o,itemText:a,typeahead:{source:function(e){return void 0!=$(n).attr("data-tags-src")?(datos=$.getJSON($(n).attr("data-tags-src")+"/"+encodeURIComponent(e)),datos):[]}}});try{var r=jQuery.parseJSON($(n).val());$.each(r,function(){$(n).tagsinput("add",this)})}catch(e){}})}function inicializar_fechas(e){var t="";void 0!=e&&(t="#"+e),$(t+" [data-tipo='fecha']").each(function(){var e=this;$(this).attr("placeholder",$(this).attr("data-fecha-formato")).mask($(this).attr("data-fecha-formato").replace(/d/gi,"9").replace(/m/gi,"9").replace(/y/gi,"9")),$(this).attr("maxlength",10).wrap('<div class="input-group fecha"></div>'),$(this).addClass("form-control").parents(".input-group").append('<div class="input-group-addon" style="cursor:pointer;"><span class="glyphicon glyphicon-calendar"></span></div>'),$(this).datepicker({format:$(this).attr("data-fecha-formato"),daysOfWeekDisabled:$(this).attr("data-dia-deshabilitado"),daysOfWeekHighlighted:$(this).attr("data-dia-destacado"),autoclose:!0,weekStart:$(this).attr("data-fecha-inicio"),language:$
1(this).attr("data-idioma")}).off("focus").on("changeDate",function(t){if("//"==$(this).val().replace(/_/gi,"")||10==$(this).val().replace(/_/gi,"").length){(t=jQuery.Event("keypress")).which=13,$(e).trigger(t)}}),$(this).next(".input-group-addon").click(function(t){$(e).datepicker("show")}),void 0!=$(this).attr("data-etiqueta")&&$('<div class="input-group-addon">'+$(this).attr("data-etiqueta")+"</div>").insertBefore(this)})}function inicializar_editores(e){var t="";void 0!=e&&(t="#"+e),$(t+' [data-tipo="editor"]').each(function(){var e=new Object;void 0!=$(this).attr("data-editor-idioma")&&(e.language=$(this).attr("data-editor-idioma")),void 0!=$(this).attr("data-editor-barra")&&(e.toolbar=$(this).attr("data-editor-barra")),void 0!=$(this).attr("data-editor-imagenes")&&(e.filebrowserImageUploadUrl=$(this).attr("data-editor-imagenes")),void 0!=$(this).attr("data-editor-flash")&&(e.filebrowserFlashUploadUrl=$(this).attr("data-editor-flash")),void 0!=$(this).attr("data-editor-links")&&(e.filebrowserLinkBrowseUrl=$(this).attr("data-editor-links")),void 0!=$(this).attr("data-editor-galerias")&&(e.navegadorGalerias=$(this).attr("data-editor-galerias")),void 0!=$(this).attr("data-editor-archivos")&&(e.navegadorArchivos=$(this).attr("data-editor-archivos")),void 0!=$(this).attr("data-editor-formularios")&&(e.navegadorFormularios=$(this).attr("data-editor-formularios")),void 0!=$(this).attr("data-editor-encuestas")&&(e.navegadorEncuestas=$(this).attr("data-editor-encuestas")),$(this).ckeditor(e)})}function inicializar_ficheros(e){var t="";void 0!=e&&(t="#"+e),$(t+" [data-tipo='fichero']").each(function(e,t){var n=$('<div class="btn-group fichero"></div>'),i=$('<button type="button" class="btn btn-default">'+$(this).attr("data-fichero-nombre")+"</button>").click(function(e){$(t).click()}),o=$('<button type="button" class="btn btn-default" style="display:none;"><span class="glyphicon glyphicon-file"></span</button>'),a=$('<button type="button" class="btn btn-default"><span class="glyphicon glyphicon-remove"></span></button>'),r=$('<input type="hidden" name="'+$(t).attr("name")+'_delete">');$(n).append(o).append(i).append(a),$(this).css("display","none").change(function(e){""!=$(this).val()?($(i).html($(this).val()),$(a).show()):$(a).click()}).before(n).before(r),void 0!=$(this).attr("data-fichero-src")&&""!=$(this).attr("data-fichero-src")?($(o).attr("data-url",$(this).attr("data-fichero-src")).show(),$(a).show()):$(a).hide(),$(a).click(function(e){$(i).html($(t).attr("data-fichero-nombre")),$(t).val(""),$(r).val(1),$(o).hide(),$(a).hide()}),$(o).click(function(e){window.open($(o).attr("data-url"))})})}function inicializar_enlaces(e){var t="";void 0!=e&&(t="#"+e),$(t+" [data-tipo='enlace']").each(function(e,t){var n=$('<div style="cursor:pointer;" class="input-group-addon"><span class="glyphicon glyphicon-link"></span></div>');$(this).addClass("form-control").wrap('<div class="input-group">').after(n),$(n).click(function(e){window.open($(t).val())})})}function inicializar_mascaras(e){var t="";void 0!=e&&(t="#"+e),$(t+" [data-mascara]").each(function(e,t){$(this).mask($(this).attr("data-mascara"))})}function inicializar_imagenes(e){var t="";void 0!=e&&(t="#"+e),$(t+" [data-tipo=imagen]").each(function(e,t){var n=$('<div class="imagen"></div>'),i=$('<img class="'+$(t).attr("data-imagen-class")+'">'),o=$('<div class="on_hover" style="float:right;"></div>'),a=$('<input type="hidden" name="'+$(t).attr("name")+'_delete" value="">'),r=$('<a href="#" class="btn btn-success btn-xs"><span class="glyphicon glyphicon-pencil"></span></a> ').click(function(e){e.preventDefault(),$(t).click()}),s=$('<a href="#" class="btn btn-danger btn-xs"><span class="glyphicon glyphicon-remove"></span></a>').click(function(e){e.preventDefault(),$(a).val("1"),$(t).val(""),void 0!=$(t).attr("data-imagen-src-def")?$(i).attr("src",$(t).attr("data-imagen-src-def")).show():$(i).hide().attr("src",""),$(this).hide()});void 0!=$(t).attr("data-imagen-src")&&""!=$(t).attr("data-imagen-src")?$(i).attr("src",$(t).attr("data-imagen-src")).show():$(s).hide(),$(n).append(i),$(o).append(r),$(o).append(s),$(n).append(o),$(n).append(a),$(t).css({width:0,height:0}).after(n),$(t).change(function(e){if(""!=$(this).val()){var t=new FileReader;t.onload=function(e){$(i).attr("src",e.target.result).show()}
1,t.readAsDataURL(this.files[0]),$(s).css({display:"inline-block"})}else $(s).click()})})}function inicializar_controles(){$(document).on("focusin","input,textarea,select",function(e){$(this).addClass("focus")}),$(document).on("focusout","input,textarea,select",function(e){$(this).removeClass("focus")}),$(document).on("click","[data-sel-todos]",function(){var e='type="checkbox"';e='data-sel-grupo="'+$(this).attr("data-sel-todos")+'"',1==$(this).prop("checked")?$(this).parents("table").find("tbody input["+e+"]").each(function(e,t){$(this).prop("checked","true"),$(this).change()}):$(this).parents("table").find("tbody input["+e+"]").each(function(e,t){$(this).removeProp("checked"),$(this).change()})}),$(document).on("change",'td input[type="checkbox"][data-sel-grupo]',function(e){var t=this;$(this).parents("tr").children("td").each(function(e,n){$(n).toggleClass("sel",$(t).prop("checked"))})}),$(document).on("paste",'input[type="text"],textarea',function(){$(this).parents("form").find(".ocultar_sin_cambios").show()}),$(document).on("change",'select,input[type="file"],input[type="text"],textarea',function(){$(this).parents("form").find(".ocultar_sin_cambios").show()}),$(document).on("keypress","input,textarea",function(){$(this).parents("form").find(".ocultar_sin_cambios").show()}),$(document).on("change",'input[type="checkbox"],input[type="radio"]',function(e){$(this).parents("form").find(".ocultar_sin_cambios").show()}),$(document).on("change",'[data-autoenvio="1"] select',function(){$(this).parents("form").submit()}),$(document).on("keypress",'[data-autoenvio="1"] input',function(e){13==e.which&&(e.preventDefault(),$(this).parents("form").submit())}),$(document).on("change",'[data-autoenvio="1"] input[type="checkbox"],[data-autoenvio="1"] input[type="radio"]',function(e){$(this).parents("form").submit()}),inicializar_subcontroles()}function redimensionar_controles(id_contenedor){var contenedor="";void 0!=id_contenedor&&(contenedor="#"+id_contenedor),$(contenedor+" [data-altura]").each(function(i,o){var valores=$(o).attr("data-altura").replace("+",",").replace("-",",").split(","),altura=$(o).attr("data-altura");$.each(valores,function(e,t){isNaN(parseInt(t))&&(altura="window"==t?altura.replace(t,$(window).height()):altura.replace(t,$("#"+t).innerHeight()))}),$(o).css({height:eval(altura)-($(o).outerHeight()-$(o).innerHeight())-parseInt($(o).css("margin-top"))-parseInt($(o).css("margin-bottom"))})})}function posicionar_controles(e){var t="";void 0!=e&&(t="#"+e),$(t+" [data-contenedor]").each(function(e,t){$("#"+$(t).attr("data-contenedor")).html($(t).html()),$(t).html("")})}function id_unico(e){var t="_0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz".split("");e||(e=Math.floor(Math.random()*t.length));for(var n="",i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return 0==jQuery("#"+n).length?n:id_unico(20)}function activityIndicatorOn(){$('<div id="imagelightbox-loading"><div></div></div>').appendTo("body")}function activityIndicatorOff(){$("#imagelightbox-loading").remove()}function overlayOn(){$('<div id="imagelightbox-overlay"></div>').appendTo("body")}function overlayOff(){$("#imagelightbox-overlay").remove()}function closeButtonOn(e){$('<a id="imagelightbox-close" title="Close"></a>').appendTo("body").on("click touchend",function(){return $(this).remove(),e.quitImageLightbox(),!1})}function closeButtonOff(){$("#imagelightbox-close").remove()}function captionOn(){var e=$('a[href="'+$("#imagelightbox").attr("src")+'"] img').attr("alt");e.length>0&&$('<div id="imagelightbox-caption">'+e+"</div>").appendTo("body")}function captionOff(){$("#imagelightbox-caption").remove()}function navigationOn(e,t){var n=$(t);if(n.length){for(var i=$('<div id="imagelightbox-nav"></div>'),o=0;o<n.length;o++)i.append('<button type="button"></button>');i.appendTo("body"),i.on("click touchend",function(){return!1});var a=i.find("button");a.on("click touchend",function(){var t=$(this);return n.eq(t.index()).attr("href")!=$("#imagelightbox").attr("src")&&e.switchImageLightbox(t.index()),a.removeClass("active"),a.eq(t.index()).addClass("active"),!1}).on("touchend",function(){return!1})}}function navigationUpdate(e){var t=$("#imagelightbox-nav button");t.removeClass("active"),t.eq($(e).filter('[href="'+$("#imagelightbox").attr("src")+'"]').index(e)).addClass("active")}function navigationOff(){$("#imagelightbox-nav").remove()}function arrowsOn(e,t){var n=$('<button type="button" class="imagelightbox-arrow imagelightbox-arrow-left"></button><button type="button" class="imagelightbox-arrow imagelightbox-arrow-right"></button>');n.appendTo("body"),n.on("click touchend",function(n){n.preventDefault();var i=$(this),o=$(t+'[href="'+$("#imagelightbox").attr("src")+'"]').index(t);return i.hasClass("imagelightbox-arrow-left")?(o-=1,$(t).eq(o).length||(o=$(t).length)):(o+=1,$(t).eq(o).length||(o=0)),e.switchImageLightbox(o),!1})}function arrowsOff(){$(".imagelightbox-arrow").remove()}function cambiar_diapositiva(){var e=diapo_id;if(diapo_contador<diapositivas.length){$('<img src="'+diapositivas[diapo_contador].imagen+'">').bind("load",function(){diapo_id==e&&($("#divDiapositivas .titulo").text(diapositivas[diapo_contador].nombre),$("#divDiapositivas .titulo").attr("href",diapositivas[diapo_contador].url),$("#divDiapositivas .imagen").hide().css({"background-image":"url("+diapositivas[diapo_contador].imagen+")"}).fadeIn("slow",function(){diapo_id==e&&($("#divDiapositivas .fondo").css({"background-image":"url("+diapositivas[diapo_contador].imagen+")"}),(diapo_contador+=1)>=diapositivas.length&&(diapo_contador=0),timer_contador=setTimeout(cambiar_diapositiva,diapo_intervalo))}))})}}function avanzar_diapositiva(){clearTimeout(timer_contador),diapo_contador>=diapositivas.length&&(diapo_contador=0),diapo_id++,cambiar_diapositiva()}function retroceder_diapositiva(){clearTimeout(timer_contador),(diapo_contador-=2)<0&&(diapo_contador=diapositivas.length+diapo_contador),diapo_id++,cambiar_diapositiva()}function desactivar_scroll_maps(){$(".map_no_scroll iframe").addClass("scrolloff").mouseleave(function(){$(this).addClass("scrolloff")}),$(".map_no_scroll").on("click",function(){$(this).find("iframe").removeClass("scrolloff")})}function scroll_home(){$("video").each(function(){$(this).is(":in-viewport")?$(this)[0].play():$(this)[0].pause()})}function tratar_iframes(){$(".interior iframe").each(function(e,t){var n=$(this).attr("width"),i=$(this).attr("height");void 0!=$(this).attr("src")&&($(this).attr("src").indexOf("issuu.com")>-1?($(this).wrap("<div style='width:"+n+"px;max-width:100%;overflow:hidden'></div>"),$(this).removeAttr("width").css({width:"100%"})):(3*n/4==i?$(this).wrap("<div class='embed-responsive embed-responsive-4by3'></div>"):$(this).wrap("<div class='embed-responsive embed-responsive-16by9'></div>"),$(this).addClass("embed-responsive-item").removeAttr("width").removeAttr("height")))})}function volver_inicio(){cargar_menu_izq(),$("html, body, #divPagina").animate({scrollTop:0},"500","swing",function(){})}function ajustar_alturas(){$("[data-ancho]").each(function(){var e=$
1(this).width()*$(this).attr("data-alto")/$(this).attr("data-ancho");$(this).css("height",e)})}function ajustar_contenedores(){$(".ajustar").each(function(){var e=$(this).parent().width(),t=e*$(this).attr("data-alto")/$(this).attr("data-ancho"),n=e,i=t;void 0!=$(this).attr("data-min-alto")&&t<$(this).attr("data-min-alto")&&(i=t=$(this).attr("data-min-alto"),n=t*$(this).attr("data-ancho")/$(this).attr("data-alto")),$(this).css({"background-image":"url("+$(this).attr("data-src")+")",width:"100%",height:t,"background-position":"center center","background-repeat":"no-repeat","background-size":+n+"px "+i+"px"})})}if(function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=e.length,n=J.type(e);return"function"!==n&&!J.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e))}function i(e,t,n){if(J.isFunction(t))return J.grep(e,function(e,i){return!!t.call(e,i,e)!==n});if(t.nodeType)return J.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ae.test(t))return J.filter(t,e,n);t=J.filter(t,e)}return J.grep(e,function(e){return J.inArray(e,t)>=0!==n})}function o(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function a(){se.addEventListener?(se.removeEventListener("DOMContentLoaded",r,!1),e.removeEventListener("load",r,!1)):(se.detachEvent("onreadystatechange",r),e.detachEvent("onload",r))}function r(){(se.addEventListener||"load"===event.type||"complete"===se.readyState)&&(a(),J.ready())}function s(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(Ee,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:ge.test(n)?J.parseJSON(n):n)}catch(e){}J.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!J.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,i){if(J.acceptData(e)){var o,a,r=J.expando,s=e.nodeType,l=s?J.cache:e,c=s?e[r]:e[r]&&r;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof t)return c||(c=s?e[r]=q.pop()||J.guid++:r),l[c]||(l[c]=s?{}:{toJSON:J.noop}),("object"==typeof t||"function"==typeof t)&&(i?l[c]=J.extend(l[c],t):l[c].data=J.extend(l[c].data,t)),a=l[c],i||(a.data||(a.data={}),a=a.data),void 0!==n&&(a[J.camelCase(t)]=n),"string"==typeof t?null==(o=a[t])&&(o=a[J.camelCase(t)]):o=a,o}}function d(e,t,n){if(J.acceptData(e)){var i,o,a=e.nodeType,r=a?J.cache:e,s=a?e[J.expando]:J.expando;if(r[s]){if(t&&(i=n?r[s]:r[s].data)){J.isArray(t)?t=t.concat(J.map(t,J.camelCase)):t in i?t=[t]:(t=J.camelCase(t),t=t in i?[t]:t.split(" ")),o=t.length;for(;o--;)delete i[t[o]];if(n?!l(i):!J.isEmptyObject(i))return}(n||(delete r[s].data,l(r[s])))&&(a?J.cleanData([e],!0):Y.deleteExpando||r!=r.window?delete r[s]:r[s]=null)}}}function u(){return!0}function h(){return!1}function f(){try{return se.activeElement}catch(e){}}function p(e){var t=ke.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function m(e,t){var n,i,o=0,a=typeof e.getElementsByTagName!==me?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==me?e.querySelectorAll(t||"*"):void 0;if(!a)for(a=[],n=e.childNodes||e;null!=(i=n[o]);o++)!t||J.nodeName(i,t)?a.push(i):J.merge(a,m(i,t));return void 0===t||t&&J.nodeName(e,t)?J.merge([e],a):a}function g(e){De.test(e.type)&&(e.defaultChecked=e.checked)}function E(e,t){return J.nodeName(e,"table")&&J.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function v(e){return e.type=(null!==J.find.attr(e,"type"))+"/"+e.type,e}function T(e){var t=Fe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function C(e,t){for(var n,i=0;null!=(n=e[i]);i++)J._data(n,"globalEval",!t||J._data(t[i],"globalEval"))}function b(e,t){if(1===t.nodeType&&J.hasData(e)){var n,i,o,a=J._data(e),r=J._data(t,a),s=a.events;if(s){delete r.handle,r.events={};for(n in s)for(i=0,o=s[n].length;o>i;i++)J.event.add(t,n,s[n][i])}r.data&&(r.data=J.extend({},r.data))}}function D(e,t){var n,i,o;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!Y.noCloneEvent&&t[J.expando]){o=J._data(t);for(i in o.events)J.removeEvent(t,i,o.handle);t.removeAttribute(J.expando)}"script"===n&&t.text!==e.text?(v(t).text=e.text,T(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),Y.html5Clone&&e.innerHTML&&!J.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&De.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function y(t,n){var i,o=J(n.createElement(t)).appendTo(n.body),a=e.getDefaultComputedStyle&&(i=e.getDefaultComputedStyle(o[0]))?i.display:J.css(o[0],"display");return o.detach(),a}function I(e){var t=se,n=ze[e];return n||("none"!==(n=y(e,t))&&n||(He=(He||J("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),(t=(He[0].contentWindow||He[0].contentDocument).document).write(),t.close(),n=y(e,t),He.detach()),ze[e]=n),n}function O(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function R(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),i=t,o=it.length;o--;)if((t=it[o]+n)in e)return t;return i}function _(e,t){for(var n,i,o,a=[],r=0,s=e.length;s>r;r++)(i=e[r]).style&&(a[r]=J._data(i,"olddisplay"),n=i.style.display,t?(a[r]||"none"!==n||(i.style.display=""),""===i.style.display&&Ce(i)&&(a[r]=J._data(i,"olddisplay",I(i.nodeName)))):(o=Ce(i),(n&&"none"!==n||!o)&&J._data(i,"olddisplay",o?n:J.css(i,"dis
1play"))));for(r=0;s>r;r++)(i=e[r]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?a[r]||"":"none"));return e}function k(e,t,n){var i=Ze.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function K(e,t,n,i,o){for(var a=n===(i?"border":"content")?4:"width"===t?1:0,r=0;4>a;a+=2)"margin"===n&&(r+=J.css(e,n+Te[a],!0,o)),i?("content"===n&&(r-=J.css(e,"padding"+Te[a],!0,o)),"margin"!==n&&(r-=J.css(e,"border"+Te[a]+"Width",!0,o))):(r+=J.css(e,"padding"+Te[a],!0,o),"padding"!==n&&(r+=J.css(e,"border"+Te[a]+"Width",!0,o)));return r}function w(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,a=Ue(e),r=Y.boxSizing&&"border-box"===J.css(e,"boxSizing",!1,a);if(0>=o||null==o){if((0>(o=Ve(e,t,a))||null==o)&&(o=e.style[t]),Xe.test(o))return o;i=r&&(Y.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+K(e,t,n||(r?"border":"content"),i,a)+"px"}function x(e,t,n,i,o){return new x.prototype.init(e,t,n,i,o)}function S(){return setTimeout(function(){ot=void 0}),ot=J.now()}function N(e,t){var n,i={height:e},o=0;for(t=t?1:0;4>o;o+=2-t)n=Te[o],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function $(e,t,n){for(var i,o=(dt[t]||[]).concat(dt["*"]),a=0,r=o.length;r>a;a++)if(i=o[a].call(n,t,e))return i}function A(e,t,n){var i,o,a=0,r=ct.length,s=J.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var t=ot||S(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),a=0,r=c.tweens.length;r>a;a++)c.tweens[a].run(i);return s.notifyWith(e,[c,i,n]),1>i&&r?n:(s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:J.extend({},t),opts:J.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:ot||S(),duration:n.duration,tweens:[],createTween:function(t,n){var i=J.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)c.tweens[n].run(1);return t?s.resolveWith(e,[c,t]):s.rejectWith(e,[c,t]),this}}),d=c.props;for(function(e,t){var n,i,o,a,r;for(n in e)if(i=J.camelCase(n),o=t[i],a=e[n],J.isArray(a)&&(o=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),(r=J.cssHooks[i])&&"expand"in r){a=r.expand(a),delete e[i];for(n in a)n in e||(e[n]=a[n],t[n]=o)}else t[i]=o}(d,c.opts.specialEasing);r>a;a++)if(i=ct[a].call(c,e,d,c.opts))return i;return J.map(d,$,c),J.isFunction(c.opts.start)&&c.opts.start.call(e,c),J.fx.timer(J.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function L(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,a=t.toLowerCase().match(ue)||[];if(J.isFunction(n))for(;i=a[o++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function P(e,t,n,i){function o(s){var l;return a[s]=!0,J.each(e[s]||[],function(e,s){var c=s(t,n,i);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)}),l}var a={},r=e===Nt;return o(t.dataTypes[0])||!a["*"]&&o("*")}function B(e,t){var n,i,o=J.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:n||(n={}))[i]=t[i]);return n&&J.extend(!0,e,n),e}function F(e,t,n,i){var o;if(J.isArray(t))J.each(t,function(t,o){n||Lt.test(e)?i(e,o):F(e+"["+("object"==typeof o?t:"")+"]",o,n,i)});else if(n||"object"!==J.type(t))i(e,t);else for(o in t)F(e+"["+o+"]",t[o],n,i)}function M(){try{return new e.XMLHttpRequest}catch(e){}}function j(e){return J.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var q=[],H=q.slice,z=q.concat,U=q.push,V=q.indexOf,W={},X=W.toString,G=W.hasOwnProperty,Y={},J=function(e,t){return new J.fn.init(e,t)},Q=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Z=/^-ms-/,ee=/-([\da-z])/gi,te=function(e,t){return t.toUpperCase()};J.fn=J.prototype={jquery:"1.11.1",constructor:J,selector:"",length:0,toArray:function(){return H.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:H.call(this)},pushStack:function(e){var t=J.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return J.each(this,e,t)},map:function(e){return this.pushStack(J.map(this,function(t,n){return e.call(t,n,t)}
1))},slice:function(){return this.pushStack(H.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:q.sort,splice:q.splice},J.extend=J.fn.extend=function(){var e,t,n,i,o,a,r=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[s]||{},s++),"object"==typeof r||J.isFunction(r)||(r={}),s===l&&(r=this,s--);l>s;s++)if(null!=(o=arguments[s]))for(i in o)e=r[i],n=o[i],r!==n&&(c&&n&&(J.isPlainObject(n)||(t=J.isArray(n)))?(t?(t=!1,a=e&&J.isArray(e)?e:[]):a=e&&J.isPlainObject(e)?e:{},r[i]=J.extend(c,a,n)):void 0!==n&&(r[i]=n));return r},J.extend({expando:"jQuery"+("1.11.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===J.type(e)},isArray:Array.isArray||function(e){return"array"===J.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!J.isArray(e)&&e-parseFloat(e)>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==J.type(e)||e.nodeType||J.isWindow(e))return!1;try{if(e.constructor&&!G.call(e,"constructor")&&!G.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(Y.ownLast)for(t in e)return G.call(e,t);for(t in e);return void 0===t||G.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?W[X.call(e)]||"object":typeof e},globalEval:function(t){t&&J.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(Z,"ms-").replace(ee,te)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var o=0,a=e.length,r=n(e);if(i){if(r)for(;a>o&&!1!==t.apply(e[o],i);o++);else for(o in e)if(!1===t.apply(e[o],i))break}else if(r)for(;a>o&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(Q,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?J.merge(i,"string"==typeof e?[e]:e):U.call(i,e)),i},inArray:function(e,t,n){var i;if(t){if(V)return V.call(t,e,n);for(i=t.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;n>i;)e[o++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[o++]=t[i++];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,a=e.length,r=!n;a>o;o++)!t(e[o],o)!==r&&i.push(e[o]);return i},map:function(e,t,i){var o,a=0,r=e.length,s=[];if(n(e))for(;r>a;a++)null!=(o=t(e[a],a,i))&&s.push(o);else for(a in e)null!=(o=t(e[a],a,i))&&s.push(o);return z.apply([],s)},guid:1,proxy:function(e,t){var n,i,o;return"string"==typeof t&&(o=e[t],t=e,e=o),J.isFunction(e)?(n=H.call(arguments,2),i=function(){return e.apply(t||this,n.concat(H.call(arguments)))},i.guid=e.guid=e.guid||J.guid++,i):void 0},now:function(){return+new Date},support:Y}),J.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){W["[object "+t+"]"]=t.toLowerCase()});var ne=function(e){function t(e,t,n,i){var o,a,r,s,l,c,u,f,p,m;if((t?t.ownerDocument||t:B)!==w&&K(t),t=t||w,n=n||[],!e||"string"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(S&&!i){if(o=ge.exec(e))if(r=o[1]){if(9===s){if(!(a=t.getElementById(r))||!a.parentNode)return n;if(a.id===r)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(r))&&L(t,a)&&a.id===r)return n.push(a),n}else{if(o[2])return J.apply(n,t.getElementsByTagName(e)),n;if((r=o[3])&&T.getElementsByClassName&&t.getElementsByClassName)return J.apply(n,t.getElementsByClassName(r)),n}if(T.qsa&&(!N||!N.test(e))){if(f=u=P,p=t,m=9===s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(c=y(e),(u=t.getAttribute("id"))?f=u.replace(ve,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",l=c.length;l--;)c[l]=f+h(c[l]);p=Ee.test(e)&&d(t.parentNode)||t,m=c.join(",")}if(m)try{return J.apply(n,p.querySelectorAll(m)),n}catch(e){}finally{u||t.removeAttribute("id")}}}return O(e.replace(re,"$1"),t,n,i)}function n(){function e(n,i){return t.push(n+" ")>C.cacheLength&&delete e[t.shift()],e[n+" "]=i}var t=[];return e}function i(e){return e[P]=!0,e}function o(e){var t=w.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),i=e.length;i--;)C.attrHandle[n[i]]=t}function r(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return i(function(t){return t=+t,i(function(n,i){for(var o,a=e([],n.length,t),r=a.length;r--;)n[o=a[r]]&&(n[o]=!(i[o]=n[o]))})})}function d(e){return e&&typeof e.getElementsByTagName!==U&&e}function u(){}function h(e){for(var t=0,n=e.length,i="";n>t;t++)i+=e[t].value;return i}function f(e,t,n){var i=t.dir,o=n&&"parentNode"===i,a=M++;return t.first?function(t,n,a){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,a)}:function(t,n,r){var s,l,c=[F,a];if(r){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,r))return!0}else for(;t=t[i];)if(1===t.nodeType||o){if(l=t[P]||(t[P]={}),(s=l[i])&&s[0]===F&&s[1]===a)return c[2]=s[2];if(l[i]=c,c[2]=e(t,n,r))return!0}}}function p(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function m(e,t,n,i,o){for(var a,r=[],s=0,l=e.length,c=null!=t;l>s;
vendor: 4,808 bytes, line 1
1s++)(a=e[s])&&(!n||n(a,i,o))&&(r.push(a),c&&t.push(s));return r}function g(e,n,o,a,r,s){return a&&!a[P]&&(a=g(a)),r&&!r[P]&&(r=g(r,s)),i(function(i,s,l,c){var d,u,h,f=[],p=[],g=s.length,E=i||function(e,n,i){for(var o=0,a=n.length;a>o;o++)t(e,n[o],i);return i}(n||"*",l.nodeType?[l]:l,[]),v=!e||!i&&n?E:m(E,f,e,l,c),T=o?r||(i?e:g||a)?[]:s:v;if(o&&o(v,T,l,c),a)for(d=m(T,p),a(d,[],l,c),u=d.length;u--;)(h=d[u])&&(T[p[u]]=!(v[p[u]]=h));if(i){if(r||e){if(r){for(d=[],u=T.length;u--;)(h=T[u])&&d.push(v[u]=h);r(null,T=[],d,c)}for(u=T.length;u--;)(h=T[u])&&(d=r?Z.call(i,h):f[u])>-1&&(i[d]=!(s[d]=h))}}else T=m(T===s?T.splice(g,T.length):T),r?r(null,s,T,c):J.apply(s,T)})}function E(e){for(var t,n,i,o=e.length,a=C.relative[e[0].type],r=a||C.relative[" "],s=a?1:0,l=f(function(e){return e===t},r,!0),c=f(function(e){return Z.call(t,e)>-1},r,!0),d=[function(e,n,i){return!a&&(i||n!==R)||((t=n).nodeType?l(e,n,i):c(e,n,i))}];o>s;s++)if(n=C.relative[e[s].type])d=[f(p(d),n)];else{if((n=C.filter[e[s].type].apply(null,e[s].matches))[P]){for(i=++s;o>i&&!C.relative[e[i].type];i++);return g(s>1&&p(d),s>1&&h(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(re,"$1"),n,i>s&&E(e.slice(s,i)),o>i&&E(e=e.slice(i)),o>i&&h(e))}d.push(n)}return p(d)}var v,T,C,b,D,y,I,O,R,_,k,K,w,x,S,N,$,A,L,P="sizzle"+-new Date,B=e.document,F=0,M=0,j=n(),q=n(),H=n(),z=function(e,t){return e===t&&(k=!0),0},U="undefined",V=1<<31,W={}.hasOwnProperty,X=[],G=X.pop,Y=X.push,J=X.push,Q=X.slice,Z=X.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},ee="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",te="[\\x20\\t\\r\\n\\f]",ne="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie=ne.replace("w","w#"),oe="\\["+te+"*("+ne+")(?:"+te+"*([*^$|!~]?=)"+te+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+te+"*\\]",ae=":("+ne+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",re=new RegExp("^"+te+"+|((?:^|[^\\\\])(?:\\\\.)*)"+te+"+$","g"),se=new RegExp("^"+te+"*,"+te+"*"),le=new RegExp("^"+te+"*([>+~]|"+te+")"+te+"*"),ce=new RegExp("="+te+"*([^\\]'\"]*?)"+te+"*\\]","g"),de=new RegExp(ae),ue=new RegExp("^"+ie+"$"),he={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne.replace("w","w*")+")"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+te+"*(even|odd|(([+-]|)(\\d*)n|)"+te+"*(?:([+-]|)"+te+"*(\\d+)|))"+te+"*\\)|)","i"),bool:new RegExp("^(?:"+ee+")$","i"),needsContext:new RegExp("^"+te+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+te+"*((?:-\\d)?\\d*)"+te+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Ee=/[+~]/,ve=/'|\\/g,Te=new RegExp("\\\\([\\da-f]{1,6}"+te+"?|("+te+")|.)","ig"),Ce=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)};try{J.apply(X=Q.call(B.childNodes),B.childNodes),X[B.childNodes.length].nodeType}catch(e){J={apply:X.length?function(e,t){Y.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}T=t.support={},D=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},K=t.setDocument=function(e){var t,n=e?e.ownerDocument||e:B,i=n.defaultView;return n!==w&&9===n.nodeType&&n.documentElement?(w=n,x=n.documentElement,S=!D(n),i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",function(){K()},!1):i.attachEvent&&i.attachEvent("onunload",function(){K()})),T.attributes=o(function(e){return e.className="i",!e.getAttribute("className")}),T.getElementsByTagName=o(function(e){return e.appendChild(n.createComment("")),!e.getElementsByTagName("*").length}),T.getElementsByClassName=me.test(n.getElementsByClassName)&&o(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",2===e.getElementsByClassName("i").length}),T.getById=o(function(e){return x.appendChild(e).id=P,!n.getElementsByName||!n.getElementsByName(P).length}),T.getById?(C.find.ID=function(e,t){if(typeof t.getElementById!==U&&S){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},C.filter.ID=function(e){var t=e.replace(Te,Ce);return function(e){return e.getAttribute("id")===t}}):(delete C.find.ID,C.filter.ID=function(e){var t=e.replace(Te,Ce);return function(e){var n=typeof e.getAttributeNode!==U&&e.getAttributeNode("id");return n&&n.value===t}}),C.find.TAG=T.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==U?t.getElementsByTagName(e):void 0}:function(e,t){var n,i=[],o=0,a=t.getElementsByTagName(e);
vendor: 10,573 bytes, line 1
1if("*"===e){for(;n=a[o++];)1===n.nodeType&&i.push(n);return i}return a},C.find.CLASS=T.getElementsByClassName&&function(e,t){return typeof t.getElementsByClassName!==U&&S?t.getElementsByClassName(e):void 0},$=[],N=[],(T.qsa=me.test(n.querySelectorAll))&&(o(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&N.push("[*^$]="+te+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||N.push("\\["+te+"*(?:value|"+ee+")"),e.querySelectorAll(":checked").length||N.push(":checked")}),o(function(e){var t=n.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&N.push("name"+te+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||N.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),N.push(",.*:")})),(T.matchesSelector=me.test(A=x.matches||x.webkitMatchesSelector||x.mozMatchesSelector||x.oMatchesSelector||x.msMatchesSelector))&&o(function(e){T.disconnectedMatch=A.call(e,"div"),A.call(e,"[s!='']:x"),$.push("!=",ae)}),N=N.length&&new RegExp(N.join("|")),$=$.length&&new RegExp($.join("|")),t=me.test(x.compareDocumentPosition),L=t||me.test(x.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},z=t?function(e,t){if(e===t)return k=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!T.sortDetached&&t.compareDocumentPosition(e)===i?e===n||e.ownerDocument===B&&L(B,e)?-1:t===n||t.ownerDocument===B&&L(B,t)?1:_?Z.call(_,e)-Z.call(_,t):0:4&i?-1:1)}:function(e,t){if(e===t)return k=!0,0;var i,o=0,a=e.parentNode,s=t.parentNode,l=[e],c=[t];if(!a||!s)return e===n?-1:t===n?1:a?-1:s?1:_?Z.call(_,e)-Z.call(_,t):0;if(a===s)return r(e,t);for(i=e;i=i.parentNode;)l.unshift(i);for(i=t;i=i.parentNode;)c.unshift(i);for(;l[o]===c[o];)o++;return o?r(l[o],c[o]):l[o]===B?-1:c[o]===B?1:0},n):w},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==w&&K(e),n=n.replace(ce,"='$1']"),!(!T.matchesSelector||!S||$&&$.test(n)||N&&N.test(n)))try{var i=A.call(e,n);if(i||T.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return t(n,w,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==w&&K(e),L(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==w&&K(e);var n=C.attrHandle[t.toLowerCase()],i=n&&W.call(C.attrHandle,t.toLowerCase())?n(e,t,!S):void 0;return void 0!==i?i:T.attributes||!S?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,o=0;if(k=!T.detectDuplicates,_=!T.sortStable&&e.slice(0),e.sort(z),k){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return _=null,e},b=t.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=b(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=b(t);return n},(C=t.selectors={cacheLength:50,createPseudo:i,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Te,Ce),e[3]=(e[3]||e[4]||e[5]||"").replace(Te,Ce),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Te,Ce).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=j[e+" "];return t||(t=new RegExp("(^|"+te+")"+e+"("+te+"|$)"))&&j(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==U&&e.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(o){var a=t.attr(o,e);return null==a?"!="===n:!n||(a+="","="===n?a===i:"!="===n?a!==i:"^="===n?i&&0===a.indexOf(i):"*="===n?i&&a.indexOf(i)>-1:"$="===n?i&&a.slice(-i.length)===i:"~="===n?(" "+a+" ").indexOf(i)>-1:"|="===n&&(a===i||a.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,o){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,d,u,h,f,p,m=a!==r?"nextSibling":"previousSibling",g=t.parentNode,E=s&&t.nodeName.toLowerCase(),v=!l&&!s;if(g){if(a){for(;m;){for(u=t;u=u[m];)if(s?u.nodeName.toLowerCase()===E:1===u.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[r?g.firstChild:g.lastChild],r&&v){for(f=(c=(d=g[P]||(g[P]={}))[e]||[])[0]===F&&c[1],h=c[0]===F&&c[2],u=f&&g.childNodes[f];u=++f&&u&&u[m]||(h=f=0)||p.pop();)if(1===u.nodeType&&++h&&u===t){d[e]=[F,f,h];break}}else if(v&&(c=(t[P]||(t[P]={}))[e])&&c[0]===F)h=c[1];else for(;(u=++f&&u&&u[m]||(h=f=0)||p.pop())&&((s?u.nodeName.toLowerCase()!==E:1!==u.nodeType)||!++h||(v&&((u[P]||(u[P]={}))[e]=[F,h]),u!==t)););return(h-=o)===i||h%i==0&&h/i>=0}}},PSEUDO:function(e,n){var o,a=C.pseudos[e]||C.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return a[P]?a(n):a.length>1?(o=[e,e,"",n],C.setFilters.hasOwnProperty(e.toLowerCase())?i(function(e,t){for(var i,o=a(e,n),r=o.length;r--;)i=Z.call(e,o[r]),e[i]=!(t[i]=o[r])}):function(e){return a(e,0,o)}):a}},pseudos:{not:i(function(e){var t=[],n=[],o=I(e.replace(re,"$1"));return o[P]?i(function(e,t,n,i){for(var a,r=o(e,null,i,[]),s=e.length;s--;)(a=r[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,o(t,null,a,n),!n.pop()}}),has:i(function(e){return function(n){return t(e,n).length>0}}),contains:i(function(e){return function(t){return(t.textContent||t.innerText||b(t)).indexOf(e)>-1}}),lang:i(function(e){return ue.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(Te,Ce).toLowerCase(),function(t){var n;do{if(n=S?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===x},focus:function(e){return e===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!C.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var i=0>n?n+t:n;--i>=0;)e.push(i);return e}),gt:c(function(e,t,n){for(var i=0>n?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=C.pseudos.eq;for(v in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[v]=s(v);for(v in{submit:!0,reset:!0})C.pseudos[v]=l(v);return u.prototype=C.filters=C.pseudos,C.setFilters=new u,y=t.tokenize=function(e,n){var i,o,a,r,s,l,c,d=q[e+" "];if(d)return n?0:d.slice(0);for(s=e,l=[],c=C.preFilter;s;){(!i||(o=se.exec(s)))&&(o&&(s=s.slice(o[0].length)||s),l.push(a=[])),i=!1,(o=le.exec(s))&&(i=o.shift(),a.push({value:i,type:o[0].replace(re," ")}),s=s.slice(i.length));for(r in C.filter)!(o=he[r].exec(s))||c[r]&&!(o=c[r](o))||(i=o.shift(),a.push({value:i,type:r,matches:o}),s=s.slice(i.length));if(!i)break}return n?s.length:s?t.error(e):q(e,l).slice(0)},I=t.compile=function(e,n){var o,a=[],r=[],s=H[e+" "];if(!s){for(n||(n=y(e)),o=n.length;o--;)(s=E(n[o]))[P]?a.push(s):r.push(s);(s=H(e,function(e,n){var o=n.length>0,a=e.length>0,r=function(i,r,s,l,c){var d,u,h,f=0,p="0",g=i&&[],E=[],v=R,T=i||a&&C.find.TAG("*",c),b=F+=null==v?1:Math.random()||.1,D=T.length;for(c&&(R=r!==w&&r);p!==D&&null!=(d=T[p]);p++){if(a&&d){for(u=0;h=e[u++];)if(h(d,r,s)){l.push(d);break}c&&(F=b)}o&&((d=!h&&d)&&f--,i&&g.push(d))}if(f+=p,o&&p!==f){for(u=0;h=n[u++];)h(g,E,r,s);if(i){if(f>0)for(;p--;)g[p]||E[p]||(E[p]=G.call(l));E=m(E)}J.apply(l,E),c&&!i&&E.length>0&&f+n.length>1&&t.uniqueSort(l)}return c&&(F=b,R=v),g};return o?i(r):r}(r,a))).selector=e}return s},O=t.select=function(e,t,n,i){var o,a,r,s,l,c="function"==typeof e&&e,u=!i&&y(e=c.selector||e);if(n=n||[],1===u.length){if((a=u[0]=u[0].slice(0)).length>2&&"ID"===(r=a[0]).type&&T.getById&&9===t.nodeType&&S&&C.relative[a[1].type]){if(!(t=(C.find.ID(r.matches[0].replace(Te,Ce),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(o=he.needsContext.test(e)?0:a.length;o--&&(r=a[o],!C.relative[s=r.type]);)if((l=C.find[s])&&(i=l(r.matches[0].replace(Te,Ce),Ee.test(a[0].type)&&d(t.parentNode)||t))){if(a.splice(o,1),!(e=i.length&&h(a)))return J.apply(n,i),n;break}}return(c||I(e,u))(i,t,!S,n,Ee.test(e)&&d(t.parentNode)||t),n},T.sortStable=P.split("").sort(z).join("")===P,T.detectDuplicates=!!k,K(),T.sortDetached=o(function(e){return 1&e.compareDocumentPosition(w.createElement("div"))}),o(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),T.attributes&&o(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}
vendor: 5,616 bytes, line 1
1)||a("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),o(function(e){return null==e.getAttribute("disabled")})||a(ee,function(e,t,n){var i;return n?void 0:!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),t}(e);J.find=ne,J.expr=ne.selectors,J.expr[":"]=J.expr.pseudos,J.unique=ne.uniqueSort,J.text=ne.getText,J.isXMLDoc=ne.isXML,J.contains=ne.contains;var ie=J.expr.match.needsContext,oe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ae=/^.[^:#\[\.,]*$/;J.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?J.find.matchesSelector(i,e)?[i]:[]:J.find.matches(e,J.grep(t,function(e){return 1===e.nodeType}))},J.fn.extend({find:function(e){var t,n=[],i=this,o=i.length;if("string"!=typeof e)return this.pushStack(J(e).filter(function(){for(t=0;o>t;t++)if(J.contains(i[t],this))return!0}));for(t=0;o>t;t++)J.find(e,i[t],n);return n=this.pushStack(o>1?J.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&ie.test(e)?J(e):e||[],!1).length}});var re,se=e.document,le=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(J.fn.init=function(e,t){var n,i;if(!e)return this;if("string"==typeof e){if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:le.exec(e))||!n[1]&&t)return!t||t.jquery?(t||re).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof J?t[0]:t,J.merge(this,J.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:se,!0)),oe.test(n[1])&&J.isPlainObject(t))for(n in t)J.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((i=se.getElementById(n[2]))&&i.parentNode){if(i.id!==n[2])return re.find(e);this.length=1,this[0]=i}return this.context=se,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):J.isFunction(e)?void 0!==re.ready?re.ready(e):e(J):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),J.makeArray(e,this))}).prototype=J.fn,re=J(se);var ce=/^(?:parents|prev(?:Until|All))/,de={children:!0,contents:!0,next:!0,prev:!0};J.extend({dir:function(e,t,n){for(var i=[],o=e[t];o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!J(o).is(n));)1===o.nodeType&&i.push(o),o=o[t];return i},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),J.fn.extend({has:function(e){var t,n=J(e,this),i=n.length;return this.filter(function(){for(t=0;i>t;t++)if(J.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,o=this.length,a=[],r=ie.test(e)||"string"!=typeof e?J(e,t||this.context):0;o>i;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(r?r.index(n)>-1:1===n.nodeType&&J.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?J.unique(a):a)},index:function(e){return e?"string"==typeof e?J.inArray(this[0],J(e)):J.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(J.unique(J.merge(this.get(),J(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),J.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return J.dir(e,"parentNode")},parentsUntil:function(e,t,n){return J.dir(e,"parentNode",n)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return J.dir(e,"nextSibling")},prevAll:function(e){return J.dir(e,"previousSibling")},nextUntil:function(e,t,n){return J.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return J.dir(e,"previousSibling",n)},siblings:function(e){return J.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return J.sibling(e.firstChild)},contents:function(e){return J.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:J.merge([],e.childNodes)}},function(e,t){J.fn[e]=function(n,i){var o=J.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=J.filter(i,o)),this.length>1&&(de[e]||(o=J.unique(o)),ce.test(e)&&(o=o.reverse())),this.pushStack(o)}});var ue=/\S+/g,he={};J.Callbacks=function(e){var t,n,i,o,a,r,s=[],l=!(e="string"==typeof e?he[e]||function(e){var t=he[e]={};return J.each(e.match(ue)||[],function(e,n){t[n]=!0}),t}(e):J.extend({},e)).once&&[],c=function(u){for(n=e.memory&&u,i=!0,a=r||0,r=0,o=s.length,t=!0;s&&o>a;a++)if(!1===s[a].apply(u[0],u[1])&&e.stopOnFalse){n=!1;break}t=!1,s&&(l?l.length&&c(l.shift()):n?s=[]:d.disable())},d={add:function(){if(s){var i=s.length;!function t(n){J.each(n,function(n,i){var o=J.type(i);"function"===o?e.unique&&d.has(i)||s.push(i):i&&i.length&&"string"!==o&&t(i)})}(arguments),t?o=s.length:n&&(r=i,c(n))}return this},remove:function(){return s&&J.each(arguments,function(e,n){for(var i;(i=J.inArray(n,s,i))>-1;)s.splice(i,1),t&&(o>=i&&o--,a>=i&&a--)}),this},has:function(e){return e?J.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],o=0,this},disable:function(){return s=l=n=void 0,this},disabled:function(){return!s},lock:function(){return l=void 0,n||d.disable(),this},locked:function(){return!l},fireWith:function(e,n){return!s||i&&!l||(n=n||[],n=[e,n.slice?n.slice():n],t?l.push(n):c(n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},J.extend({Deferred:function(e){var t=[["resolve","done",J.Callbacks("once memory"),"resolved"],["reject","fail",J.Callbacks("once memory"),"rejected"],["notify","progress",J.Callbacks("memory")]],n="pe
1nding",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return J.Deferred(function(n){J.each(t,function(t,a){var r=J.isFunction(e[t])&&e[t];o[a[1]](function(){var e=r&&r.apply(this,arguments);e&&J.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?J.extend(e,i):i}},o={};return i.pipe=i.then,J.each(t,function(e,a){var r=a[2],s=a[3];i[a[1]]=r.add,s&&r.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),o[a[0]]=function(){return o[a[0]+"With"](this===o?i:this,arguments),this},o[a[0]+"With"]=r.fireWith}),i.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,i,o=0,a=H.call(arguments),r=a.length,s=1!==r||e&&J.isFunction(e.promise)?r:0,l=1===s?e:J.Deferred(),c=function(e,n,i){return function(o){n[e]=this,i[e]=arguments.length>1?H.call(arguments):o,i===t?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(r>1)for(t=new Array(r),n=new Array(r),i=new Array(r);r>o;o++)a[o]&&J.isFunction(a[o].promise)?a[o].promise().done(c(o,i,a)).fail(l.reject).progress(c(o,n,t)):--s;return s||l.resolveWith(i,a),l.promise()}});var fe;J.fn.ready=function(e){return J.ready.promise().done(e),this},J.extend({isReady:!1,readyWait:1,holdReady:function(e){e?J.readyWait++:J.ready(!0)},ready:function(e){if(!0===e?!--J.readyWait:!J.isReady){if(!se.body)return setTimeout(J.ready);J.isReady=!0,!0!==e&&--J.readyWait>0||(fe.resolveWith(se,[J]),J.fn.triggerHandler&&(J(se).triggerHandler("ready"),J(se).off("ready")))}}}),J.ready.promise=function(t){if(!fe)if(fe=J.Deferred(),"complete"===se.readyState)setTimeout(J.ready);else if(se.addEventListener)se.addEventListener("DOMContentLoaded",r,!1),e.addEventListener("load",r,!1);else{se.attachEvent("onreadystatechange",r),e.attachEvent("onload",r);var n=!1;try{n=null==e.frameElement&&se.documentElement}catch(e){}n&&n.doScroll&&function e(){if(!J.isReady){try{n.doScroll("left")}catch(t){return setTimeout(e,50)}a(),J.ready()}}()}return fe.promise(t)};var pe,me="undefined";for(pe in J(Y))break;Y.ownLast="0"!==pe,Y.inlineBlockNeedsLayout=!1,J(function(){var e,t,n,i;(n=se.getElementsByTagName("body")[0])&&n.style&&(t=se.createElement("div"),i=se.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==me&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",Y.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=se.createElement("div");if(null==Y.deleteExpando){Y.deleteExpando=!0;try{delete e.test}catch(e){Y.deleteExpando=!1}}e=null}(),J.acceptData=function(e){var t=J.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)};var ge=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ee=/([A-Z])/g;J.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?J.cache[e[J.expando]]:e[J.expando])&&!l(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return d(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return d(e,t,!0)}}),J.fn.extend({data:function(e,t){var n,i,o,a=this[0],r=a&&a.attributes;if(void 0===e){if(this.length&&(o=J.data(a),1===a.nodeType&&!J._data(a,"parsedAttrs"))){for(n=r.length;n--;)r[n]&&0===(i=r[n].name).indexOf("data-")&&(i=J.camelCase(i.slice(5)),s(a,i,o[i]));J._data(a,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each(function(){J.data(this,e)}):arguments.length>1?this.each(function(){J.data(this,e,t)}):a?s(a,e,J.data(a,e)):void 0},removeData:function(e){return this.each(function(){J.removeData(this,e)})}}),J.extend({queue:function(e,t,n){var i;return e?(t=(t||"fx")+"queue",i=J._data(e,t),n&&(!i||J.isArray(n)?i=J._data(e,t,J.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=J.queue(e,t),i=n.length,o=n.shift(),a=J._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete a.stop,o.call(e,function(){J.dequeue(e,t)},a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J._data(e,n)||J._data(e,n,{empty:J.Callbacks("once memory").add(function(){J._removeData(e,t+"queue"),J._removeData(e,n)})})}}),J.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?J.queue(this[0],e):void 0===t?this:this.each(function(){var n=J.queue(this,e,t);J._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&J.dequeue(this,e)})},dequeue:function(e){return this.each(function(){J.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=J.Deferred(),a=this,r=this.length,s=function(){--i||o.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(n=J._data(a[r],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),o.promise(t)}});var ve=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Te=["Top","Right","Bottom","Left"],Ce=function(e,t){return e=t||e,"none"===J.css(e,"display")||!J.contains(e.ownerDocument,e)},be=J.access=function(e,t,n,i,o,a,r){var s=0,l=e.length,c=null==n;
1if("object"===J.type(n)){o=!0;for(s in n)J.access(e,t,s,n[s],!0,a,r)}else if(void 0!==i&&(o=!0,J.isFunction(i)||(r=!0),c&&(r?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(J(e),n)})),t))for(;l>s;s++)t(e[s],n,r?i:i.call(e[s],s,t(e[s],n)));return o?e:c?t.call(e):l?t(e[0],n):a},De=/^(?:checkbox|radio)$/i;!function(){var e=se.createElement("input"),t=se.createElement("div"),n=se.createDocumentFragment();if(t.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",Y.leadingWhitespace=3===t.firstChild.nodeType,Y.tbody=!t.getElementsByTagName("tbody").length,Y.htmlSerialize=!!t.getElementsByTagName("link").length,Y.html5Clone="<:nav></:nav>"!==se.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),Y.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",Y.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",Y.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,Y.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){Y.noCloneEvent=!1}),t.cloneNode(!0).click()),null==Y.deleteExpando){Y.deleteExpando=!0;try{delete t.test}catch(e){Y.deleteExpando=!1}}}(),function(){var t,n,i=se.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(Y[t+"Bubbles"]=n in e)||(i.setAttribute(n,"t"),Y[t+"Bubbles"]=!1===i.attributes[n].expando);i=null}();var ye=/^(?:input|select|textarea)$/i,Ie=/^key/,Oe=/^(?:mouse|pointer|contextmenu)|click/,Re=/^(?:focusinfocus|focusoutblur)$/,_e=/^([^.]*)(?:\.(.+)|)$/;J.event={global:{},add:function(e,t,n,i,o){var a,r,s,l,c,d,u,h,f,p,m,g=J._data(e);if(g){for(n.handler&&(l=n,n=l.handler,o=l.selector),n.guid||(n.guid=J.guid++),(r=g.events)||(r=g.events={}),(d=g.handle)||(d=g.handle=function(e){return typeof J===me||e&&J.event.triggered===e.type?void 0:J.event.dispatch.apply(d.elem,arguments)},d.elem=e),s=(t=(t||"").match(ue)||[""]).length;s--;)a=_e.exec(t[s])||[],f=m=a[1],p=(a[2]||"").split(".").sort(),f&&(c=J.event.special[f]||{},f=(o?c.delegateType:c.bindType)||f,c=J.event.special[f]||{},u=J.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&J.expr.match.needsContext.test(o),namespace:p.join(".")},l),(h=r[f])||(h=r[f]=[],h.delegateCount=0,c.setup&&!1!==c.setup.call(e,i,p,d)||(e.addEventListener?e.addEventListener(f,d,!1):e.attachEvent&&e.attachEvent("on"+f,d))),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),J.event.global[f]=!0);e=null}},remove:function(e,t,n,i,o){var a,r,s,l,c,d,u,h,f,p,m,g=J.hasData(e)&&J._data(e);if(g&&(d=g.events)){for(c=(t=(t||"").match(ue)||[""]).length;c--;)if(s=_e.exec(t[c])||[],f=m=s[1],p=(s[2]||"").split(".").sort(),f){for(u=J.event.special[f]||{},h=d[f=(i?u.delegateType:u.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=h.length;a--;)r=h[a],!o&&m!==r.origType||n&&n.guid!==r.guid||s&&!s.test(r.namespace)||i&&i!==r.selector&&("**"!==i||!r.selector)||(h.splice(a,1),r.selector&&h.delegateCount--,u.remove&&u.remove.call(e,r));l&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,p,g.handle)||J.removeEvent(e,f,g.handle),delete d[f])}else for(f in d)J.event.remove(e,f+t[c],n,i,!0);J.isEmptyObject(d)&&(delete g.handle,J._removeData(e,"events"))}},trigger:function(t,n,i,o){var a,r,s,l,c,d,u,h=[i||se],f=G.call(t,"type")?t.type:t,p=G.call(t,"namespace")?t.namespace.split("."):[];if(s=d=i=i||se,3!==i.nodeType&&8!==i.nodeType&&!Re.test(f+J.event.triggered)&&(f.indexOf(".")>=0&&(p=f.split("."),f=p.shift(),p.sort()),r=f.indexOf(":")<0&&"on"+f,t=t[J.expando]?t:new J.Event(f,"object"==typeof t&&t),t.isTrigger=o?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:J.makeArray(n,[t]),c=J.event.special[f]||{},o||!c.trigger||!1!==c.trigger.apply(i,n))){if(!o&&!c.noBubble&&!J.isWindow(i)){for(l=c.delegateType||f,Re.test(l+f)||(s=s.parentNode);s;s=s.parentNode)h.push(s),d=s;d===(i.ownerDocument||se)&&h.push(d.defaultView||d.parentWindow||e)}for(u=0;(s=h[u++])&&!t.isPropagationStopped();)t.type=u>1?l:c.bindType||f,(a=(J._data(s,"events")||{})[t.type]&&J._data(s,"handle"))&&a.apply(s,n),(a=r&&s[r])&&a.apply&&J.acceptData(s)&&(t.result=a.apply(s,n),!1===t.result&&t.preventDefault());if(t.type=f,!o&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(h.pop(),n))&&J.acceptData(i)&&r&&i[f]&&!J.isWindow(i)){(d=i[r])&&(i[r]=null),J.event.triggered=f;try{i[f]()}catch(e){}J.event.triggered=void 0,d&&(i[r]=d)}return t.result}},dispatch:function(e){e=J.event.fix(e);var t,n,i,o,a,r=[],s=H.call(arguments),l=(J._data(this,"events")||{})[e.type]||[],c=J.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(r=J.event.handlers.call(this,e,l),t=0;(o=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,a=0;(i=o.handlers[a++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,void 0!==(n=((J.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,s))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,o,a,r=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(o=[],a=0;s>a;a++)i=t[a],n=i.selector+" ",void 0===o[n]&&(o[n]=i.needsContext?J(n,this).index(l)>=0:J.find(n,this,null,[l]).length),o[n]&&o.push(i);o.length&&r.push({elem:l,handlers:o})}return s<t.length&&r.push({elem:this,handlers:t.slice(s)}),r},fix:function(e){if(e[J.expando])return e;var t,n,i,o=e.type,a=e,r=this.fixHooks[o];for(r||(this.fixHooks[o]=r=Oe.test(o)?this.mouseHooks:Ie.test(o)?this.keyHooks:{}),i=r.props?this.props.concat(r.props):this.props,e=new J.Event(a),t=i.length;t--;)n=i[t],e[n]=a[n];return e.target||(e.target=a.srcElement||se),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,r.filter?r.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{}
vendor: 8,418 bytes, line 1
1,keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,o,a=t.button,r=t.fromElement;return null==e.pageX&&null!=t.clientX&&(i=e.target.ownerDocument||se,o=i.documentElement,n=i.body,e.pageX=t.clientX+(o&&o.scrollLeft||n&&n.scrollLeft||0)-(o&&o.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||n&&n.scrollTop||0)-(o&&o.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==f()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===f()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return J.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return J.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,i){var o=J.extend(new J.Event,n,{type:e,isSimulated:!0,originalEvent:{}});i?J.event.trigger(o,null,t):J.event.dispatch.call(t,o),o.isDefaultPrevented()&&n.preventDefault()}},J.removeEvent=se.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var i="on"+t;e.detachEvent&&(typeof e[i]===me&&(e[i]=null),e.detachEvent(i,n))},J.Event=function(e,t){return this instanceof J.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?u:h):this.type=e,t&&J.extend(this,t),this.timeStamp=e&&e.timeStamp||J.now(),void(this[J.expando]=!0)):new J.Event(e,t)},J.Event.prototype={isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=u,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=u,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=u,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},J.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){J.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return(!i||i!==this&&!J.contains(this,i))&&(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),Y.submitBubbles||(J.event.special.submit={setup:function(){return!J.nodeName(this,"form")&&void J.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=J.nodeName(t,"input")||J.nodeName(t,"button")?t.form:void 0;n&&!J._data(n,"submitBubbles")&&(J.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),J._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&J.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return!J.nodeName(this,"form")&&void J.event.remove(this,"._submit")}}),Y.changeBubbles||(J.event.special.change={setup:function(){return ye.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(J.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)}),J.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),J.event.simulate("change",this,e,!0)})),!1):void J.event.add(this,"beforeactivate._change",function(e){var t=e.target;ye.test(t.nodeName)&&!J._data(t,"changeBubbles")&&(J.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||J.event.simulate("change",this.parentNode,e,!0)}),J._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return J.event.remove(this,"._change"),!ye.test(this.nodeName)}}),Y.focusinBubbles||J.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){J.event.simulate(t,e.target,J.event.fix(e),!0)};J.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=J._data(i,t);o||i.addEventListener(e,n,!0),J._data(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=J._data(i,t)-1;o?J._data(i,t,o):(i.removeEventListener(e,n,!0),J._removeData(i,t))}}}),J.fn.extend({on:function(e,t,n,i,o){var a,r;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(a in e)this.on(a,t,n,e[a],o);return this}if(null==n&&null==i?(i=t,n=t=void 0):null==i&&("string"==typeof t?(i=n,n=void 0):(i=n,n=t,t=void 0)),!1===i)i=h;else if(!i)return this;return 1===o&&(r=i,i=function(e){return J().off(e),r.apply(this,arguments)},i.guid=r.guid||(r.guid=J.guid++)),this.each(function(){J.event.add(this,e,i,n,t)})},one:function(e,t,n,i){return this.on(e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,J(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return(!1===t||"function"==typeof t)&&(n=t,t=void 0),!1===n&&(n=h),this.each(function(){J.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){J.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?J.event.trigger(e,t,n,!0):void 0}});var ke="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Ke=/ jQuery\d+="(?:null|\d+)"/g,we=new RegExp("<(?:"+ke+")[\\s/>]","i"),xe=/^\s+/,Se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ne=/<([\w:]+)/,$e=/<tbody/i,Ae=/<|&#?\w+;/,Le=/<(?:script|style|link)/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^$|\/(?:java|ecma)script/i,Fe=/^true\/(.*)/,Me=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,je={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:Y.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},qe=p(se).appendChild(se.createElement("div"));je.optgroup=je.option,je.tbody=je.tfoot=je.colgroup=je.caption=je.thead,je.th=je.td,J.extend({clone:function(e,t,n){var i,o,a,r,s,l=J.contains(e.ownerDocument,e);if(Y.html5Clone||J.isXMLDoc(e)||!we.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(qe.innerHTML=e.outerHTML,qe.removeChild(a=qe.firstChild)),!(Y.noCloneEvent&&Y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||J.isXMLDoc(e)))for(i=m(a),s=m(e),r=0;null!=(o=s[r]);++r)i[r]&&D(o,i[r]);if(t)if(n)for(s=s||m(e),i=i||m(a),r=0;null!=(o=s[r]);r++)b(o,i[r]);else b(e,a);return(i=m(a,"script")).length>0&&C(i,!l&&m(e,"script")),i=s=o=null,a},buildFragment:function(e,t,n,i){for(var o,a,r,s,l,c,d,u=e.length,h=p(t),f=[],E=0;u>E;E++)if((a=e[E])||0===a)if("object"===J.type(a))J.merge(f,a.nodeType?[a]:a);else if(Ae.test(a)){for(s=s||h.appendChild(t.createElement("div")),l=(Ne.exec(a)||["",""])[1].toLowerCase(),d=je[l]||je._default,s.innerHTML=d[1]+a.replace(Se,"<$1></$2>")+d[2],o=d[0];o--;)s=s.lastChild;if(!Y.leadingWhitespace&&xe.test(a)&&f.push(t.createTextNode(xe.exec(a)[0])),!Y.tbody)for(o=(a="table"!==l||$e.test(a)?"<table>"!==d[1]||$e.test(a)?0:s:s.firstChild)&&a.childNodes.length;o--;)J.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(J.merge(f,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=h.lastChild}else f.push(t.createTextNode(a));for(s&&h.removeChild(s),Y.appendChecked||J.grep(m(f,"input"),g),E=0;a=f[E++];)if((!i||-1===J.inArray(a,i))&&(r=J.contains(a.ownerDocument,a),s=m(h.appendChild(a),"script"),r&&C(s),n)
vendor: 6,247 bytes, line 1
1)for(o=0;a=s[o++];)Be.test(a.type||"")&&n.push(a);return s=null,h},cleanData:function(e,t){for(var n,i,o,a,r=0,s=J.expando,l=J.cache,c=Y.deleteExpando,d=J.event.special;null!=(n=e[r]);r++)if((t||J.acceptData(n))&&(o=n[s],a=o&&l[o])){if(a.events)for(i in a.events)d[i]?J.event.remove(n,i):J.removeEvent(n,i,a.handle);l[o]&&(delete l[o],c?delete n[s]:typeof n.removeAttribute!==me?n.removeAttribute(s):n[s]=null,q.push(o))}}}),J.fn.extend({text:function(e){return be(this,function(e){return void 0===e?J.text(this):this.empty().append((this[0]&&this[0].ownerDocument||se).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){E(this,e).appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=E(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,i=e?J.filter(e,this):this,o=0;null!=(n=i[o]);o++)t||1!==n.nodeType||J.cleanData(m(n)),n.parentNode&&(t&&J.contains(n.ownerDocument,n)&&C(m(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&J.cleanData(m(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&J.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return J.clone(this,e,t)})},html:function(e){return be(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ke,""):void 0;if(!("string"!=typeof e||Le.test(e)||!Y.htmlSerialize&&we.test(e)||!Y.leadingWhitespace&&xe.test(e)||je[(Ne.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Se,"<$1></$2>");try{for(;i>n;n++)1===(t=this[n]||{}).nodeType&&(J.cleanData(m(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,J.cleanData(m(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=z.apply([],e);var n,i,o,a,r,s,l=0,c=this.length,d=this,u=c-1,h=e[0],f=J.isFunction(h);if(f||c>1&&"string"==typeof h&&!Y.checkClone&&Pe.test(h))return this.each(function(n){var i=d.eq(n);f&&(e[0]=h.call(this,n,i.html())),i.domManip(e,t)});if(c&&(s=J.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(o=(a=J.map(m(s,"script"),v)).length;c>l;l++)i=s,l!==u&&(i=J.clone(i,!0,!0),o&&J.merge(a,m(i,"script"))),t.call(this[l],i,l);if(o)for(r=a[a.length-1].ownerDocument,J.map(a,T),l=0;o>l;l++)i=a[l],Be.test(i.type||"")&&!J._data(i,"globalEval")&&J.contains(r,i)&&(i.src?J._evalUrl&&J._evalUrl(i.src):J.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Me,"")));s=n=null}return this}}),J.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){J.fn[e]=function(e){for(var n,i=0,o=[],a=J(e),r=a.length-1;r>=i;i++)n=i===r?this:this.clone(!0),J(a[i])[t](n),U.apply(o,n.get());return this.pushStack(o)}});var He,ze={};!function(){var e;Y.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,i;return(n=se.getElementsByTagName("body")[0])&&n.style?(t=se.createElement("div"),i=se.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),typeof t.style.zoom!==me&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(se.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(i),e):void 0}}();var Ue,Ve,We=/^margin/,Xe=new RegExp("^("+ve+")(?!px)[a-z%]+$","i"),Ge=/^(top|right|bottom|left)$/;e.getComputedStyle?(Ue=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Ve=function(e,t,n){var i,o,a,r,s=e.style;return n=n||Ue(e),r=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==r||J.contains(e.ownerDocument,e)||(r=J.style(e,t)),Xe.test(r)&&We.test(t)&&(i=s.width,o=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=r,r=n.width,s.width=i,s.minWidth=o,s.maxWidth=a)),void 0===r?r:r+""}):se.documentElement.currentStyle&&(Ue=function(e){return e.currentStyle},Ve=function(e,t,n){var i,o,a,r,s=e.style;return n=n||Ue(e),null==(r=n?n[t]:void 0)&&s&&s[t]&&(r=s[t]),Xe.test(r)&&!Ge.test(t)&&(i=s.left,o=e.runtimeStyle,(a=o&&o.left)&&(o.left=e.currentStyle.left),s.left="fontSize"===t?"1em":r,r=s.pixelLeft+"px",s.left=i,a&&(o.left=a)),void 0===r?r:r+""||"auto"}),function(){function t(){var t,n,i,o;(n=se.getElementsByTagName("body")[0])&&n.style&&(t=se.createElement("div"),i=se.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",a=r=!1,l=!0,e.getComputedStyle&&(a="1%"!==(e.getComputedStyle(t,null)||{}).top,r="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,o=t.appendChild(se.createElement("div")),o.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",o.style.marginRight=o.style.width="0",t.style.width="1px",l=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=t.getElementsByTagName("td"),o[0].style.cssText="margin:0;border:0;padding:0;display:none",(s=0===o[0].offsetHeight)&&(o[0].style.display="",o[1].style.display="none",s=0===o[0].offsetHeight),n.removeChild(i))}var n,i,o,a,r,s,l;(n=se.createElement("div")).innerHTML=" <link/><table></table><a href='/a'>a</a>
1<input type='checkbox'/>",(i=(o=n.getElementsByTagName("a")[0])&&o.style)&&(i.cssText="float:left;opacity:.5",Y.opacity="0.5"===i.opacity,Y.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",Y.clearCloneStyle="content-box"===n.style.backgroundClip,Y.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,J.extend(Y,{reliableHiddenOffsets:function(){return null==s&&t(),s},boxSizingReliable:function(){return null==r&&t(),r},pixelPosition:function(){return null==a&&t(),a},reliableMarginRight:function(){return null==l&&t(),l}}))}(),J.swap=function(e,t,n,i){var o,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];o=n.apply(e,i||[]);for(a in t)e.style[a]=r[a];return o};var Ye=/alpha\([^)]*\)/i,Je=/opacity\s*=\s*([^)]*)/,Qe=/^(none|table(?!-c[ea]).+)/,Ze=new RegExp("^("+ve+")(.*)$","i"),et=new RegExp("^([+-])=("+ve+")","i"),tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"},it=["Webkit","O","Moz","ms"];J.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:Y.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,r,s=J.camelCase(t),l=e.style;if(t=J.cssProps[s]||(J.cssProps[s]=R(l,s)),r=J.cssHooks[t]||J.cssHooks[s],void 0===n)return r&&"get"in r&&void 0!==(o=r.get(e,!1,i))?o:l[t];if("string"===(a=typeof n)&&(o=et.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(J.css(e,t)),a="number"),null!=n&&n==n&&("number"!==a||J.cssNumber[s]||(n+="px"),Y.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(r&&"set"in r&&void 0===(n=r.set(e,n,i)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,i){var o,a,r,s=J.camelCase(t);return t=J.cssProps[s]||(J.cssProps[s]=R(e.style,s)),(r=J.cssHooks[t]||J.cssHooks[s])&&"get"in r&&(a=r.get(e,!0,n)),void 0===a&&(a=Ve(e,t,i)),"normal"===a&&t in nt&&(a=nt[t]),""===n||n?(o=parseFloat(a),!0===n||J.isNumeric(o)?o||0:a):a}}),J.each(["height","width"],function(e,t){J.cssHooks[t]={get:function(e,n,i){return n?Qe.test(J.css(e,"display"))&&0===e.offsetWidth?J.swap(e,tt,function(){return w(e,t,i)}):w(e,t,i):void 0},set:function(e,n,i){var o=i&&Ue(e);return k(0,n,i?K(e,t,i,Y.boxSizing&&"border-box"===J.css(e,"boxSizing",!1,o),o):0)}}}),Y.opacity||(J.cssHooks.opacity={get:function(e,t){return Je.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,o=J.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===J.trim(a.replace(Ye,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=Ye.test(a)?a.replace(Ye,o):a+" "+o)}}),J.cssHooks.marginRight=O(Y.reliableMarginRight,function(e,t){return t?J.swap(e,{display:"inline-block"},Ve,[e,"marginRight"]):void 0}),J.each({margin:"",padding:"",border:"Width"},function(e,t){J.cssHooks[e+t]={expand:function(n){for(var i=0,o={},a="string"==typeof n?n.split(" "):[n];4>i;i++)o[e+Te[i]+t]=a[i]||a[i-2]||a[0];return o}},We.test(e)||(J.cssHooks[e+t].set=k)}),J.fn.extend({css:function(e,t){return be(this,function(e,t,n){var i,o,a={},r=0;if(J.isArray(t)){for(i=Ue(e),o=t.length;o>r;r++)a[t[r]]=J.css(e,t[r],!1,i);return a}return void 0!==n?J.style(e,t,n):J.css(e,t)},e,t,arguments.length>1)},show:function(){return _(this,!0)},hide:function(){return _(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ce(this)?J(this).show():J(this).hide()})}}),J.Tween=x,(x.prototype={constructor:x,init:function(e,t,n,i,o,a){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(J.cssNumber[n]?"":"px")},cur:function(){var e=x.propHooks[this.prop];return e&&e.get?e.get(this):x.propHooks._default.get(this)},run:function(e){var t,n=x.propHooks[this.prop];return this.pos=t=this.options.duration?J.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):x.propHooks._default.set(this),this}}).init.prototype=x.prototype,(x.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=J.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){J.fx.step[e.prop]?J.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[J.cssProps[e.prop]]||J.cssHooks[e.prop])?J.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}}).scrollTop=x.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},J.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},J.fx=x.prototype.init,J.fx.step={};
vendor: 4,778 bytes, line 1
1var ot,at,rt=/^(?:toggle|show|hide)$/,st=new RegExp("^(?:([+-])=|)("+ve+")([a-z%]*)$","i"),lt=/queueHooks$/,ct=[function(e,t,n){var i,o,a,r,s,l,c,d=this,u={},h=e.style,f=e.nodeType&&Ce(e),p=J._data(e,"fxshow");n.queue||(null==(s=J._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,J.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],"inline"===("none"===(c=J.css(e,"display"))?J._data(e,"olddisplay")||I(e.nodeName):c)&&"none"===J.css(e,"float")&&(Y.inlineBlockNeedsLayout&&"inline"!==I(e.nodeName)?h.zoom=1:h.display="inline-block")),n.overflow&&(h.overflow="hidden",Y.shrinkWrapBlocks()||d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}));for(i in t)if(o=t[i],rt.exec(o)){if(delete t[i],a=a||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||!p||void 0===p[i])continue;f=!0}u[i]=p&&p[i]||J.style(e,i)}else c=void 0;if(J.isEmptyObject(u))"inline"===("none"===c?I(e.nodeName):c)&&(h.display=c);else{p?"hidden"in p&&(f=p.hidden):p=J._data(e,"fxshow",{}),a&&(p.hidden=!f),f?J(e).show():d.done(function(){J(e).hide()}),d.done(function(){var t;J._removeData(e,"fxshow");for(t in u)J.style(e,t,u[t])});for(i in u)r=$(f?p[i]:0,i,d),i in p||(p[i]=r.start,f&&(r.end=r.start,r.start="width"===i||"height"===i?1:0))}}],dt={"*":[function(e,t){var n=this.createTween(e,t),i=n.cur(),o=st.exec(t),a=o&&o[3]||(J.cssNumber[e]?"":"px"),r=(J.cssNumber[e]||"px"!==a&&+i)&&st.exec(J.css(n.elem,e)),s=1,l=20;if(r&&r[3]!==a){a=a||r[3],o=o||[],r=+i||1;do{s=s||".5",r/=s,J.style(n.elem,e,r+a)}while(s!==(s=n.cur()/i)&&1!==s&&--l)}return o&&(r=n.start=+r||+i||0,n.unit=a,n.end=o[1]?r+(o[1]+1)*o[2]:+o[2]),n}]};J.Animation=J.extend(A,{tweener:function(e,t){J.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,o=e.length;o>i;i++)n=e[i],dt[n]=dt[n]||[],dt[n].unshift(t)},prefilter:function(e,t){t?ct.unshift(e):ct.push(e)}}),J.speed=function(e,t,n){var i=e&&"object"==typeof e?J.extend({},e):{complete:n||!n&&t||J.isFunction(e)&&e,duration:e,easing:n&&t||t&&!J.isFunction(t)&&t};return i.duration=J.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in J.fx.speeds?J.fx.speeds[i.duration]:J.fx.speeds._default,(null==i.queue||!0===i.queue)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){J.isFunction(i.old)&&i.old.call(this),i.queue&&J.dequeue(this,i.queue)},i},J.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Ce).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=J.isEmptyObject(e),a=J.speed(t,n,i),r=function(){var t=A(this,J.extend({},e),a);(o||J._data(this,"finish"))&&t.stop(!0)};return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,o=null!=e&&e+"queueHooks",a=J.timers,r=J._data(this);if(o)r[o]&&r[o].stop&&i(r[o]);else for(o in r)r[o]&&r[o].stop&<.test(o)&&i(r[o]);for(o=a.length;o--;)a[o].elem!==this||null!=e&&a[o].queue!==e||(a[o].anim.stop(n),t=!1,a.splice(o,1));(t||!n)&&J.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=J._data(this),i=n[e+"queue"],o=n[e+"queueHooks"],a=J.timers,r=i?i.length:0;for(n.finish=!0,J.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;r>t;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),J.each(["toggle","show","hide"],function(e,t){var n=J.fn[t];J.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(N(t,!0),e,i,o)}}),J.each({slideDown:N("show"),slideUp:N("hide"),slideToggle:N("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){J.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),J.timers=[],J.fx.tick=function(){var e,t=J.timers,n=0;for(ot=J.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||J.fx.stop(),ot=void 0},J.fx.timer=function(e){J.timers.push(e),e()?J.fx.start():J.timers.pop()},J.fx.interval=13,J.fx.start=function(){at||(at=setInterval(J.fx.tick,J.fx.interval))},J.fx.stop=function(){clearInterval(at),at=null},J.fx.speeds={slow:600,fast:200,_default:400},J.fn.delay=function(e,t){return e=J.fx?J.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var i=setTimeout(t,e);n.stop=function(){clearTimeout(i)}})},function(){var e,t,n,i,o;(t=se.createElement("div")).setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a'>a</a>
1<input type='checkbox'/>",i=t.getElementsByTagName("a")[0],o=(n=se.createElement("select")).appendChild(se.createElement("option")),e=t.getElementsByTagName("input")[0],i.style.cssText="top:1px",Y.getSetAttribute="t"!==t.className,Y.style=/top/.test(i.getAttribute("style")),Y.hrefNormalized="/a"===i.getAttribute("href"),Y.checkOn=!!e.value,Y.optSelected=o.selected,Y.enctype=!!se.createElement("form").enctype,n.disabled=!0,Y.optDisabled=!o.disabled,(e=se.createElement("input")).setAttribute("value",""),Y.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),Y.radioValue="t"===e.value}();var ut=/\r/g;J.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=J.isFunction(e),this.each(function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,J(this).val()):e)?o="":"number"==typeof o?o+="":J.isArray(o)&&(o=J.map(o,function(e){return null==e?"":e+""})),(t=J.valHooks[this.type]||J.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))})):o?(t=J.valHooks[o.type]||J.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(ut,""):null==n?"":n:void 0}}),J.extend({valHooks:{option:{get:function(e){var t=J.find.attr(e,"value");return null!=t?t:J.trim(J.text(e))}},select:{get:function(e){for(var t,n,i=e.options,o=e.selectedIndex,a="select-one"===e.type||0>o,r=a?null:[],s=a?o+1:i.length,l=0>o?s:a?o:0;s>l;l++)if(!(!(n=i[l]).selected&&l!==o||(Y.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&J.nodeName(n.parentNode,"optgroup"))){if(t=J(n).val(),a)return t;r.push(t)}return r},set:function(e,t){for(var n,i,o=e.options,a=J.makeArray(t),r=o.length;r--;)if(i=o[r],J.inArray(J.valHooks.option.get(i),a)>=0)try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),o}}}}),J.each(["radio","checkbox"],function(){J.valHooks[this]={set:function(e,t){return J.isArray(t)?e.checked=J.inArray(J(e).val(),t)>=0:void 0}},Y.checkOn||(J.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ht,ft,pt=J.expr.attrHandle,mt=/^(?:checked|selected)$/i,gt=Y.getSetAttribute,Et=Y.input;J.fn.extend({attr:function(e,t){return be(this,J.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){J.removeAttr(this,e)})}}),J.extend({attr:function(e,t,n){var i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return typeof e.getAttribute===me?J.prop(e,t,n):(1===a&&J.isXMLDoc(e)||(t=t.toLowerCase(),i=J.attrHooks[t]||(J.expr.match.bool.test(t)?ft:ht)),void 0===n?i&&"get"in i&&null!==(o=i.get(e,t))?o:null==(o=J.find.attr(e,t))?void 0:o:null!==n?i&&"set"in i&&void 0!==(o=i.set(e,n,t))?o:(e.setAttribute(t,n+""),n):void J.removeAttr(e,t))},removeAttr:function(e,t){var n,i,o=0,a=t&&t.match(ue);if(a&&1===e.nodeType)for(;n=a[o++];)i=J.propFix[n]||n,J.expr.match.bool.test(n)?Et&>||!mt.test(n)?e[i]=!1:e[J.camelCase("default-"+n)]=e[i]=!1:J.attr(e,n,""),e.removeAttribute(gt?n:i)},attrHooks:{type:{set:function(e,t){if(!Y.radioValue&&"radio"===t&&J.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),ft={set:function(e,t,n){return!1===t?J.removeAttr(e,n):Et&>||!mt.test(n)?e.setAttribute(!gt&&J.propFix[n]||n,n):e[J.camelCase("default-"+n)]=e[n]=!0,n}},J.each(J.expr.match.bool.source.match(/\w+/g),function(e,t){var n=pt[t]||J.find.attr;pt[t]=Et&>||!mt.test(t)?function(e,t,i){var o,a;return i||(a=pt[t],pt[t]=o,o=null!=n(e,t,i)?t.toLowerCase():null,pt[t]=a),o}:function(e,t,n){return n?void 0:e[J.camelCase("default-"+t)]?t.toLowerCase():null}}),Et&>||(J.attrHooks.value={set:function(e,t,n){return J.nodeName(e,"input")?void(e.defaultValue=t):ht&&ht.set(e,t,n)}}),gt||(ht={set:function(e,t,n){var i=e.getAttributeNode(n);return i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},pt.id=pt.name=pt.coords=function(e,t,n){var i;return n?void 0:(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},J.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:ht.set},J.attrHooks.contenteditable={set:function(e,t,n){ht.set(e,""!==t&&t,n)}},J.each(["width","height"],function(e,t){J.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),Y.style||(J.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var vt=/^(?:input|select|textarea|button|object)$/i,Tt=/^(?:a|area)$/i;J.fn.extend({prop:function(e,t){return be(this,J.prop,e,t,arguments.length>1)},removeProp:function(e){return e=J.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),J.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var i,o,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return(1!==a||!J.isXMLDoc(e))&&(t=J.propFix[t]||t,o=J.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=J.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?
vendor: 4,383 bytes, line 1
10:-1}}}}),Y.hrefNormalized||J.each(["href","src"],function(e,t){J.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),Y.optSelected||(J.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),J.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){J.propFix[this.toLowerCase()]=this}),Y.enctype||(J.propFix.enctype="encoding");var Ct=/[\t\r\n\f]/g;J.fn.extend({addClass:function(e){var t,n,i,o,a,r,s=0,l=this.length,c="string"==typeof e&&e;if(J.isFunction(e))return this.each(function(t){J(this).addClass(e.call(this,t,this.className))});if(c)for(t=(e||"").match(ue)||[];l>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ct," "):" ")){for(a=0;o=t[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r=J.trim(i),n.className!==r&&(n.className=r)}return this},removeClass:function(e){var t,n,i,o,a,r,s=0,l=this.length,c=0===arguments.length||"string"==typeof e&&e;if(J.isFunction(e))return this.each(function(t){J(this).removeClass(e.call(this,t,this.className))});if(c)for(t=(e||"").match(ue)||[];l>s;s++)if(n=this[s],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Ct," "):"")){for(a=0;o=t[a++];)for(;i.indexOf(" "+o+" ")>=0;)i=i.replace(" "+o+" "," ");r=e?J.trim(i):"",n.className!==r&&(n.className=r)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(J.isFunction(e)?function(n){J(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,i=0,o=J(this),a=e.match(ue)||[];t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else(n===me||"boolean"===n)&&(this.className&&J._data(this,"__className__",this.className),this.className=this.className||!1===e?"":J._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Ct," ").indexOf(t)>=0)return!0;return!1}}),J.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){J.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),J.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var bt=J.now(),Dt=/\?/,yt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;J.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,o=J.trim(t+"");return o&&!J.trim(o.replace(yt,function(e,t,o,a){return n&&t&&(i=0),0===i?e:(n=o||t,i+=!a-!o,"")}))?Function("return "+o)():J.error("Invalid JSON: "+t)},J.parseXML=function(t){var n,i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(i=new DOMParser,n=i.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||J.error("Invalid XML: "+t),n};var It,Ot,Rt=/#.*$/,_t=/([?&])_=[^&]*/,kt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Kt=/^(?:GET|HEAD)$/,wt=/^\/\//,xt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,St={},Nt={},$t="*/".concat("*");try{Ot=location.href}catch(e){(Ot=se.createElement("a")).href="",Ot=Ot.href}It=xt.exec(Ot.toLowerCase())||[],J.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ot,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(It[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":J.parseJSON,"text xml":J.parseXML}
vendor: 6,906 bytes, line 1
1,flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?B(B(e,J.ajaxSettings),t):B(J.ajaxSettings,e)},ajaxPrefilter:L(St),ajaxTransport:L(Nt),ajax:function(e,t){function n(e,t,n,i){var o,d,E,v,C,D=t;2!==T&&(T=2,s&&clearTimeout(s),c=void 0,r=i||"",b.readyState=e>0?4:0,o=e>=200&&300>e||304===e,n&&(v=function(e,t,n){for(var i,o,a,r,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){l.unshift(r);break}if(l[0]in n)a=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}i||(i=r)}a=a||i}return a?(a!==l[0]&&l.unshift(a),n[a]):void 0}(u,b,n)),v=function(e,t,n,i){var o,a,r,s,l,c={},d=e.dataTypes.slice();if(d[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(a=d.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=d.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=c[l+" "+a]||c["* "+a]))for(o in c)if((s=o.split(" "))[1]===a&&(r=c[l+" "+s[0]]||c["* "+s[0]])){!0===r?r=c[o]:!0!==c[o]&&(a=s[0],d.unshift(s[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(u,v,b,o),o?(u.ifModified&&((C=b.getResponseHeader("Last-Modified"))&&(J.lastModified[a]=C),(C=b.getResponseHeader("etag"))&&(J.etag[a]=C)),204===e||"HEAD"===u.type?D="nocontent":304===e?D="notmodified":(D=v.state,d=v.data,E=v.error,o=!E)):(E=D,(e||!D)&&(D="error",0>e&&(e=0))),b.status=e,b.statusText=(t||D)+"",o?p.resolveWith(h,[d,D,b]):p.rejectWith(h,[b,D,E]),b.statusCode(g),g=void 0,l&&f.trigger(o?"ajaxSuccess":"ajaxError",[b,u,o?d:E]),m.fireWith(h,[b,D]),l&&(f.trigger("ajaxComplete",[b,u]),--J.active||J.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,o,a,r,s,l,c,d,u=J.ajaxSetup({},t),h=u.context||u,f=u.context&&(h.nodeType||h.jquery)?J(h):J.event,p=J.Deferred(),m=J.Callbacks("once memory"),g=u.statusCode||{},E={},v={},T=0,C="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(2===T){if(!d)for(d={};t=kt.exec(r);)d[t[1].toLowerCase()]=t[2];t=d[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===T?r:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return T||(e=v[n]=v[n]||e,E[e]=t),this},overrideMimeType:function(e){return T||(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>T)for(t in e)g[t]=[g[t],e[t]];else b.always(e[b.status]);return this},abort:function(e){var t=e||C;return c&&c.abort(t),n(0,t),this}};if(p.promise(b).complete=m.add,b.success=b.done,b.error=b.fail,u.url=((e||u.url||Ot)+"").replace(Rt,"").replace(wt,It[1]+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=J.trim(u.dataType||"*").toLowerCase().match(ue)||[""],null==u.crossDomain&&(i=xt.exec(u.url.toLowerCase()),u.crossDomain=!(!i||i[1]===It[1]&&i[2]===It[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(It[3]||("http:"===It[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=J.param(u.data,u.traditional)),P(St,u,t,b),2===T)return b;(l=u.global)&&0==J.active++&&J.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Kt.test(u.type),a=u.url,u.hasContent||(u.data&&(a=u.url+=(Dt.test(a)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=_t.test(a)?a.replace(_t,"$1_="+bt++):a+(Dt.test(a)?"&":"?")+"_="+bt++)),u.ifModified&&(J.lastModified[a]&&b.setRequestHeader("If-Modified-Since",J.lastModified[a]),J.etag[a]&&b.setRequestHeader("If-None-Match",J.etag[a])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&b.setRequestHeader("Content-Type",u.contentType),b.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+$t+"; q=0.01":""):u.accepts["*"]);for(o in u.headers)b.setRequestHeader(o,u.headers[o]);if(u.beforeSend&&(!1===u.beforeSend.call(h,b,u)||2===T))return b.abort();C="abort";for(o in{success:1,error:1,complete:1})b[o](u[o]);if(c=P(Nt,u,t,b)){b.readyState=1,l&&f.trigger("ajaxSend",[b,u]),u.async&&u.timeout>0&&(s=setTimeout(function(){b.abort("timeout")},u.timeout));try{T=1,c.send(E,n)}catch(e){if(!(2>T))throw e;n(-1,e)}}else n(-1,"No Transport");return b},getJSON:function(e,t,n){return J.get(e,t,n,"json")},getScript:function(e,t){return J.get(e,void 0,t,"script")}}),J.each(["get","post"],function(e,t){J[t]=function(e,n,i,o){return J.isFunction(n)&&(o=o||i,i=n,n=void 0),J.ajax({url:e,type:t,dataType:o,data:n,success:i})}}),J.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){J.fn[t]=function(e){return this.on(t,e)}}),J._evalUrl=function(e){return J.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},J.fn.extend({wrapAll:function(e){if(J.isFunction(e))return this.each(function(t){J(this).wrapAll(e.call(this,t))});if(this[0]){var t=J(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return this.each(J.isFunction(e)?function(t){J(this).wrapInner(e.call(this,t))}:function(){var t=J(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=J.isFunction(e);return this.each(function(n){J(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){J.nodeName(this,"body")||J(this).replaceWith(this.childNodes)}).end()}}),J.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!Y.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||J.css(e,"display"))},J.expr.filters.visible=function(e){return!J.expr.filters.hidden(e)};var At=/%20/g,Lt=/\[\]$/,Pt=/\r?\n/g,Bt=/^(?:submit|button|image|reset|file)$/i,Ft=/^(?:input|select|textarea|keygen)/i;J.param=function(e,t){var n,i=[],o=function(e,t){t=J.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=J.ajaxSettings&&J.ajaxSettings.traditional),J.isArray(e)||e.jquery&&!J.isPlainObject(e))J.each(e,function(){o(this.name,this.value)});else for(n in e)F(n,e[n],t,o);return i.join("&").replace(At,"+")},J.fn.extend({serialize:function(){return J.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=J.prop(this,"elements");return e?J.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!J(this).is(":disabled")&&Ft.test(this.nodeName)&&!Bt.test(e)&&(this.checked||!De.test(e))}).map(function(e,t){var n=J(this).val();return null==n?null:J.isArray(n)?J.map(n,function(e){return{name:t.name,value:e.replace(Pt,"\r\n")}}):{name:t.name,value:n.replace(Pt,"\r\n")}}).get()}}),J.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.t
vendor: 2,739 bytes, line 1
1ype)&&M()||function(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}()}:M;var Mt=0,jt={},qt=J.ajaxSettings.xhr();e.ActiveXObject&&J(e).on("unload",function(){for(var e in jt)jt[e](void 0,!0)}),Y.cors=!!qt&&"withCredentials"in qt,(qt=Y.ajax=!!qt)&&J.ajaxTransport(function(e){if(!e.crossDomain||Y.cors){var t;return{send:function(n,i){var o,a=e.xhr(),r=++Mt;if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)a[o]=e.xhrFields[o];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(o in n)void 0!==n[o]&&a.setRequestHeader(o,n[o]+"");a.send(e.hasContent&&e.data||null),t=function(n,o){var s,l,c;if(t&&(o||4===a.readyState))if(delete jt[r],t=void 0,a.onreadystatechange=J.noop,o)4!==a.readyState&&a.abort();else{c={},s=a.status,"string"==typeof a.responseText&&(c.text=a.responseText);try{l=a.statusText}catch(e){l=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=c.text?200:404}c&&i(s,l,c,a.getAllResponseHeaders())},e.async?4===a.readyState?setTimeout(t):a.onreadystatechange=jt[r]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),J.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return J.globalEval(e),e}}}),J.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),J.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=se.head||J("head")[0]||se.documentElement;return{send:function(i,o){(t=se.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||o(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Ht=[],zt=/(=)\?(?=&|$)|\?\?/;J.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ht.pop()||J.expando+"_"+bt++;return this[e]=!0,e}}),J.ajaxPrefilter("json jsonp",function(t,n,i){var o,a,r,s=!1!==t.jsonp&&(zt.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(o=t.jsonpCallback=J.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(zt,"$1"+o):!1!==t.jsonp&&(t.url+=(Dt.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return r||J.error(o+" was not called"),r[0]},t.dataTypes[0]="json",a=e[o],e[o]=function(){r=arguments}
1,i.always(function(){e[o]=a,t[o]&&(t.jsonpCallback=n.jsonpCallback,Ht.push(o)),r&&J.isFunction(a)&&a(r[0]),r=a=void 0}),"script"):void 0}),J.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||se;var i=oe.exec(e),o=!n&&[];return i?[t.createElement(i[1])]:(i=J.buildFragment([e],t,o),o&&o.length&&J(o).remove(),J.merge([],i.childNodes))};var Ut=J.fn.load;J.fn.load=function(e,t,n){if("string"!=typeof e&&Ut)return Ut.apply(this,arguments);var i,o,a,r=this,s=e.indexOf(" ");return s>=0&&(i=J.trim(e.slice(s,e.length)),e=e.slice(0,s)),J.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(a="POST"),r.length>0&&J.ajax({url:e,type:a,dataType:"html",data:t}).done(function(e){o=arguments,r.html(i?J("<div>").append(J.parseHTML(e)).find(i):e)}).complete(n&&function(e,t){r.each(n,o||[e.responseText,t,e])}),this},J.expr.filters.animated=function(e){return J.grep(J.timers,function(t){return e===t.elem}).length};var Vt=e.document.documentElement;J.offset={setOffset:function(e,t,n){var i,o,a,r,s,l,c=J.css(e,"position"),d=J(e),u={};"static"===c&&(e.style.position="relative"),s=d.offset(),a=J.css(e,"top"),l=J.css(e,"left"),("absolute"===c||"fixed"===c)&&J.inArray("auto",[a,l])>-1?(i=d.position(),r=i.top,o=i.left):(r=parseFloat(a)||0,o=parseFloat(l)||0),J.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(u.top=t.top-s.top+r),null!=t.left&&(u.left=t.left-s.left+o),"using"in t?t.using.call(e,u):d.css(u)}},J.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){J.offset.setOffset(this,e,t)});var t,n,i={top:0,left:0},o=this[0],a=o&&o.ownerDocument;return a?(t=a.documentElement,J.contains(t,o)?(typeof o.getBoundingClientRect!==me&&(i=o.getBoundingClientRect()),n=j(a),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===J.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),J.nodeName(e[0],"html")||(n=e.offset()),n.top+=J.css(e[0],"borderTopWidth",!0),n.left+=J.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-J.css(i,"marginTop",!0),left:t.left-n.left-J.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||Vt;e&&!J.nodeName(e,"html")&&"static"===J.css(e,"position");)e=e.offsetParent;return e||Vt})}}),J.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);J.fn[e]=function(i){return be(this,function(e,i,o){var a=j(e);return void 0===o?a?t in a?a[t]:a.document.documentElement[i]:e[i]:void(a?a.scrollTo(n?J(a).scrollLeft():o,n?o:J(a).scrollTop()):e[i]=o)},e,i,arguments.length,null)}}),J.each(["top","left"],function(e,t){J.cssHooks[t]=O(Y.pixelPosition,function(e,n){return n?(n=Ve(e,t),Xe.test(n)?J(e).position()[t]+"px":n):void 0})}),J.each({Height:"height",Width:"width"},function(e,t){J.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){J.fn[i]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),r=n||(!0===i||!0===o?"margin":"border");return be(this,function(t,n,i){var o;return J.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?J.css(t,n,r):J.style(t,n,i,r)},t,a?i:void 0,a,null)}})}),J.fn.size=function(){return this.length},J.fn.andSelf=J.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return J});var Wt=e.jQuery,Xt=e.$;return J.noConflict=function(t){return e.$===J&&(e.$=Xt),t&&e.jQuery===J&&(e.jQuery=Wt),J},typeof t===me&&(e.jQuery=e.$=J),J}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var n=!1,i=this;e(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||e(i).trigger(e.support.transition.end)},t),this},e(function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.VERSION="3.2.0",n.prototype.close=function(t){function n(){a.detach().trigger("closed.bs.alert").remove()}var i=e(this),o=i.attr("data-target");o||(o=(o=i.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,""));var a=e(o);t&&t.preventDefault(),a.length||(a=i.hasClass("alert")?i:i.parent()),a.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(a.removeClass("in"),e.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",n).emulateTransitionEnd(150):n())};var i=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var i=e(this),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof t&&o[t].call(i)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=i,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),o=i.data("bs.button"),a="object"==typeof t&&t;o||i.data("bs.button",o=new n(this,a)),"toggle"==t?o.toggle():t&&o.setState(t)})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.isLoading=!1};n.VERSION="3.2.0",n.DEFAULTS={loadingText:"loading..."},n.prototype.setState=function(t){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",a=i.data();t+="Text",null==a.resetText&&i.data("resetText",i[o]()),i[o](null==a[t]?this.options[t]:a[t]),setTimeout(e.proxy(function(){"loadingText"==t?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},n.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}e&&this.$element.toggleClass("active")};var i=e.fn.button;e.fn.button=t,e.fn.button.Constructor=n,e.fn.button.noConflict=function(){return e.fn.button=i,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var i=e(n.target);i.hasClass("btn")||(i=i.closest(".btn")),t.call(i,"toggle"),n.preventDefault()})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),o=i.data("bs.carousel"),a=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t),r="string"==typeof t?t:a.slide;o||i.data("bs.carousel",o=new n(this,a)),"number"==typeof t?o.to(t):r?o[r]():a.interval&&o.pause().cycle()})}var n=function(t,n){this.$element=e(t).on("keydown.bs.carousel",e.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};n.VERSION="3.2.0",n.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},n.prototype.keydown=function(e){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()},n.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},n.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},n.prototype.to=function(t){var n=this,i=this.getItemIndex(this.$active=this.$element.find(".
1item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){n.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",e(this.$items[t]))},n.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},n.prototype.next=function(){if(!this.sliding)return this.slide("next")},n.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},n.prototype.slide=function(t,n){var i=this.$element.find(".item.active"),o=n||i[t](),a=this.interval,r="next"==t?"left":"right",s="next"==t?"first":"last",l=this;if(!o.length){if(!this.options.wrap)return;o=this.$element.find(".item")[s]()}if(o.hasClass("active"))return this.sliding=!1;var c=o[0],d=e.Event("slide.bs.carousel",{relatedTarget:c,direction:r});if(this.$element.trigger(d),!d.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=e(this.$indicators.children()[this.getItemIndex(o)]);u&&u.addClass("active")}var h=e.Event("slid.bs.carousel",{relatedTarget:c,direction:r});return e.support.transition&&this.$element.hasClass("slide")?(o.addClass(t),o[0].offsetWidth,i.addClass(r),o.addClass(r),i.one("bsTransitionEnd",function(){o.removeClass([t,r].join(" ")).addClass("active"),i.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(1e3*i.css("transition-duration").slice(0,-1))):(i.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),a&&this.cycle(),this}};var i=e.fn.carousel;e.fn.carousel=t,e.fn.carousel.Constructor=n,e.fn.carousel.noConflict=function(){return e.fn.carousel=i,this},e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(n){var i,o=e(this),a=e(o.attr("data-target")||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""));if(a.hasClass("carousel")){var r=e.extend({},a.data(),o.data()),s=o.attr("data-slide-to");s&&(r.interval=!1),t.call(a,r),s&&a.data("bs.carousel").to(s),n.preventDefault()}}),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var n=e(this);t.call(n,n.data())})})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),o=i.data("bs.collapse"),a=e.extend({},n.DEFAULTS,i.data(),"object"==typeof t&&t);!o&&a.toggle&&"show"==t&&(t=!t),o||i.data("bs.collapse",o=new n(this,a)),"string"==typeof t&&o[t]()})}var n=function(t,i){this.$element=e(t),this.options=e.extend({},n.DEFAULTS,i),this.transitioning=null,this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};n.VERSION="3.2.0",n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n=e.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.$parent&&this.$parent.find("> .panel > .in");if(i&&i.length){var o=i.data("bs.collapse");if(o&&o.transitioning)return;t.call(i,"hide"),o||i.data("bs.collapse",null)}var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return r.call(this);var s=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(r,this)).emulateTransitionEnd(350)[a](this.$element[0][s])}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!e.support.transition)return i.call(this);this.$element[n](0).one("bsTransitionEnd",e.proxy(i,this)).emulateTransitionEnd(350)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var i=e.fn.collapse;e.fn.collapse=t,e.fn.collapse.Constructor=n,e.fn.collapse.noConflict=function(){return e.fn.collapse=i,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var i,o=e(this),a=o.attr("data-target")||n.preventDefault()||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),r=e(a),s=r.data("bs.collapse"),l=s?"toggle":o.data(),c=o.attr("data-parent"),d=c&&e(c);s&&s.transitioning||(d&&d.find('[data-toggle="collapse"][data-parent="'+c+'"]').not(o).addClass("collapsed"),o[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),t.call(r,l)})}(jQuery),function(e){"use strict";function t(t){t&&3===t.which||(e(i).remove(),e(o).each(function(){var i=n(e(this)),o={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=e.Event("hide.bs.dropdown",o)),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown",o))}))}function n(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&e(n);return i&&i.length?i:t.parent()}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',a=function(t){e(t).on("click.bs.dropdown",this.toggle)};a.VERSION="3.2.0",a.prototype.toggle=function(i){var o=e(this);if(!o.is(".disabled, :disabled")){var a=n(o),r=a.hasClass("open");if(t(),!r){"ontouchstart"in document.documentElement&&!a.closest(".
1navbar-nav").length&&e('<div class="dropdown-backdrop"/>').insertAfter(e(this)).on("click",t);var s={relatedTarget:this};if(a.trigger(i=e.Event("show.bs.dropdown",s)),i.isDefaultPrevented())return;o.trigger("focus"),a.toggleClass("open").trigger("shown.bs.dropdown",s)}return!1}},a.prototype.keydown=function(t){if(/(38|40|27)/.test(t.keyCode)){var i=e(this);if(t.preventDefault(),t.stopPropagation(),!i.is(".disabled, :disabled")){var a=n(i),r=a.hasClass("open");if(!r||r&&27==t.keyCode)return 27==t.which&&a.find(o).trigger("focus"),i.trigger("click");var s=" li:not(.divider):visible a",l=a.find('[role="menu"]'+s+', [role="listbox"]'+s);if(l.length){var c=l.index(l.filter(":focus"));38==t.keyCode&&c>0&&c--,40==t.keyCode&&c<l.length-1&&c++,~c||(c=0),l.eq(c).trigger("focus")}}}};var r=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new a(this)),"string"==typeof t&&i[t].call(n)})},e.fn.dropdown.Constructor=a,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=r,this},e(document).on("click.bs.dropdown.data-api",t).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",o,a.prototype.toggle).on("keydown.bs.dropdown.data-api",o+', [role="menu"], [role="listbox"]',a.prototype.keydown)}(jQuery),function(e){"use strict";function t(t,i){return this.each(function(){var o=e(this),a=o.data("bs.modal"),r=e.extend({},n.DEFAULTS,o.data(),"object"==typeof t&&t);a||o.data("bs.modal",a=new n(this,r)),"string"==typeof t?a[t](i):r.show&&a.show(i)})}var n=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};n.VERSION="3.2.0",n.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},n.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},n.prototype.show=function(t){var n=this,i=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(i),this.isShown||i.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop(function(){var i=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),i&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var o=e.Event("shown.bs.modal",{relatedTarget:t});i?n.$element.find(".modal-dialog").one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(300):n.$element.trigger("focus").trigger(o)}))},n.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},n.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},n.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},n.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$element.trigger("hidden.bs.modal")})},n.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},n.prototype.backdrop=function(t){var n=this,i=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&i;if(this.$backdrop=e('<div class="modal-backdrop '+i+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(150):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){n.removeBackdrop(),t&&t()};
vendor: 14,233 bytes, line 1
1e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(150):a()}else t&&t()},n.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},n.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",e+this.scrollbarWidth)},n.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},n.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var i=e.fn.modal;e.fn.modal=t,e.fn.modal.Constructor=n,e.fn.modal.noConflict=function(){return e.fn.modal=i,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var i=e(this),o=i.attr("href"),a=e(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),r=a.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(o)&&o},a.data(),i.data());i.is("a")&&n.preventDefault(),a.one("show.bs.modal",function(e){e.isDefaultPrevented()||a.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),t.call(a,r,this)})}(jQuery),function(e){"use strict";var t=function(e,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",e,t)};t.VERSION="3.2.0",t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,n,i){this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&e(this.options.viewport.selector||this.options.viewport);for(var o=this.options.trigger.split(" "),a=o.length;a--;){var r=o[a];if("click"==r)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=r){var s="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return(t=e.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,i){n[e]!=i&&(t[e]=i)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)},t.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(document.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var i=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,l=s.test(r);l&&(r=r.replace(s,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var c=this.getPosition(),d=o[0].offsetWidth,u=o[0].offsetHeight;if(l){var h=r,f=this.$element.parent(),p=this.getPosition(f);r="bottom"==r&&c.top+c.height+u-p.scroll>p.height?"top":"top"==r&&c.top-p.scroll-u<0?"bottom":"right"==r&&c.right+d>p.width?"left":"left"==r&&c.left-d<p.left?"right":r,o.removeClass(h).addClass(r)}var m=this.getCalculatedOffset(r,c,d,u);this.applyPlacement(m,r);var g=function(){i.$element.trigger("shown.bs."+i.type),i.hoverState=null};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(150):g()}},t.prototype.applyPlacement=function(t,n){var i=this.tip(),o=i[0].offsetWidth,a=i[0].offsetHeight,r=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(s)&&(s=0),t.top=t.top+r,t.left=t.left+s,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var l=i[0].offsetWidth,c=i[0].offsetHeight;"top"==n&&c!=a&&(t.top=t.top+a-c);var d=this.getViewportAdjustedDelta(n,t,l,c);d.left?t.left+=d.left:t.top+=d.top;var u=d.left?2*d.left-o+l:2*d.top-a+c,h=d.left?"left":"top",f=d.left?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(u,i[0][f],h)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(){function t(){"in"!=n.hoverState&&i.detach(),n.$element.trigger("hidden.bs."+n.type)}var n=this,i=this.tip(),o=e.Event("hide.bs."+this.type);if(this.$element.removeAttr("aria-describedby"),this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",t).emulateTransitionEnd(150):t(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],i="BODY"==n.tagName;return e.extend({},"function"==typeof n.getBoundingClientRect?n.getBoundingClientRect():null,{scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop(),width:i?e(window).width():t.outerWidth(),height:i?e(window).height():t.outerHeight()},i?{top:0,left:0}:t.offset())},t.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(e,t,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var a=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-a-r.scroll,l=t.top+a-r.scroll+i;s<r.top?o.top=r.top-s:l>r.top+r.height&&(o.top=r.top+r.height-l)}else{var c=t.left-a,d=t.left+a+n;c<r.left?o.left=r.left-c:d>r.width&&(o.left=r.left+r.width-d)}return o},t.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},t.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},t.prototype.tip=function(){return this.$tip=this.$tip||e(this.options.template)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var i=e(this),o=i.data("bs.tooltip"),a="object"==typeof n&&n;(o||"destroy"!=n)&&(o||i.data("bs.tooltip",o=new t(this,a)),"string"==typeof n&&o[n]())})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(jQuery),function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.2.0",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").empty()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},t.prototype.tip=function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip};var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var i=e(this),o=i.data("bs.popover"),a="object"==typeof n&&n;(o||"destroy"!=n)&&(o||i.data("bs.popover",o=new t(this,a)),"string"==typeof n&&o[n]())})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(jQuery),function(e){"use strict";function t(n,i){var o=e.proxy(this.process,this);this.$body=e("body"),this.$scrollElement=e(n).is("body")?e(window):e(n),this.options=e.extend({},t.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o),this.refresh(),this.process()}function n(n){return this.each(function(){var i=e(this),o=i.data("bs.scrollspy"),a="object"==typeof n&&n;o||i.data("bs.scrollspy",o=new t(this,a)),"string"==typeof n&&o[n]()})}t.VERSION="3.2.0",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t="offset",n=0;e.isWindow(this.$scrollElement[0])||(t="position",n=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var i=this;this.$body.find(this.selector).map(function(){var i=e(this),o=i.data("target")||i.attr("href"),a=/^#./.test(o)&&e(o);return a&&a.length&&a.is(":visible")&&[[a[t]().top+n,o]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,a=this.targets,r=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=i)return r!=(e=a[a.length-1])&&this.activate(e);if(r&&t<=o[0])return r!=(e=a[0])&&this.activate(e);for(e=o.length;e--;)r!=a[e]&&t>=o[e]&&(!o[e+1]||t<=o[e+1])&&this.activate(a[e])},t.prototype.activate=function(t){this.activeTarget=t,e(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=e(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")};var i=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=i,this},e(window).on("load.bs.scrollspy.data-api",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);n.call(t,t.data())})})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),o=i.data("bs.tab");o||i.data("bs.tab",o=new n(this)),"string"==typeof t&&o[t]()})}var n=function(t){this.element=e(t)};n.VERSION="3.2.0",n.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),i=t.data("target");if(i||(i=(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=n.find(".active:last a")[0],a=e.Event("show.bs.tab",{relatedTarget:o});if(t.trigger(a),!a.isDefaultPrevented()){var r=e(i);this.activate(t.closest("li"),n),this.activate(r,r.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:o})})}}},n.prototype.activate=function(t,n,i){function o(){a.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),r?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),i&&i()}var a=n.find("> .active"),r=i&&e.support.transition&&a.hasClass("fade");r?a.one("bsTransitionEnd",o).emulateTransitionEnd(150):o(),a.removeClass("in")};var i=e.fn.tab;
1e.fn.tab=t,e.fn.tab.Constructor=n,e.fn.tab.noConflict=function(){return e.fn.tab=i,this},e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(n){n.preventDefault(),t.call(e(this),"show")})}(jQuery),function(e){"use strict";function t(t){return this.each(function(){var i=e(this),o=i.data("bs.affix"),a="object"==typeof t&&t;o||i.data("bs.affix",o=new n(this,a)),"string"==typeof t&&o[t]()})}var n=function(t,i){this.options=e.extend({},n.DEFAULTS,i),this.$target=e(this.options.target).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};n.VERSION="3.2.0",n.RESET="affix affix-top affix-bottom",n.DEFAULTS={offset:0,target:window},n.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(n.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},n.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},n.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=e(document).height(),i=this.$target.scrollTop(),o=this.$element.offset(),a=this.options.offset,r=a.top,s=a.bottom;"object"!=typeof a&&(s=r=a),"function"==typeof r&&(r=a.top(this.$element)),"function"==typeof s&&(s=a.bottom(this.$element));var l=!(null!=this.unpin&&i+this.unpin<=o.top)&&(null!=s&&o.top+this.$element.height()>=t-s?"bottom":null!=r&&i<=r&&"top");if(this.affixed!==l){null!=this.unpin&&this.$element.css("top","");var c="affix"+(l?"-"+l:""),d=e.Event(c+".bs.affix");this.$element.trigger(d),d.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(n.RESET).addClass(c).trigger(e.Event(c.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:t-this.$element.height()-s}))}}};var i=e.fn.affix;e.fn.affix=t,e.fn.affix.Constructor=n,e.fn.affix.noConflict=function(){return e.fn.affix=i,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var n=e(this),i=n.data();i.offset=i.offset||{},i.offsetBottom&&(i.offset.bottom=i.offsetBottom),i.offsetTop&&(i.offset.top=i.offsetTop),t.call(n,i)})})}(jQuery),function(e){"use strict";var t=function(e,t){this.init(e,t)};t.prototype={constructor:t,init:function(t,n){var i=this;this.options=n,this.$element=e(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",e.proxy(this.hide,this)),this.options.remote&&this.$element.find(".modal-body").load(this.options.remote,function(){var t=e.Event("loaded");i.$element.trigger(t)});var o="function"==typeof this.options.manager?this.options.manager.call(this):this.options.manager;(o=o.appendModal?o:e(o).modalmanager().data("modalmanager")).appendModal(this)},toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=e.Event("show");this.isShown||(this.$element.trigger(t),t.isDefaultPrevented()||(this.escape(),this.tab(),this.options.loading&&this.loading()))},hide:function(t){t&&t.preventDefault(),t=e.Event("hide"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.tab(),this.isLoading&&this.loading(),e(document).off("focusin.modal"),this.$element.removeClass("in").removeClass("animated").removeClass(this.options.attentionAnimation).removeClass("modal-overflow").attr("aria-hidden",!0),e.support.transition&&this.$element.hasClass("fade")?this.hideWithTransition():this.hideModal())},layout:function(){var t=this.options.height?"height":"max-height",n=this.options.height||this.options.maxHeight;if(this.options.width){this.$element.css("width",this.options.width);var i=this;this.$element.css("margin-left",function(){return/%/gi.test(i.options.width)?-parseInt(i.options.width)/2+"%":-e(this).width()/2+"px"})}else this.$element.css("width",""),this.$element.css("margin-left","");this.$element.find(".modal-body").css("overflow","").css(t,""),n&&this.$element.find(".modal
1-body").css("overflow","auto").css(t,n);e(window).height()-10<this.$element.height()||this.options.modalOverflow?this.$element.css("margin-top",0).addClass("modal-overflow"):this.$element.css("margin-top",0-this.$element.height()/2).removeClass("modal-overflow")},tab:function(){var t=this;this.isShown&&this.options.consumeTab?this.$element.on("keydown.tabindex.modal","[data-tabindex]",function(n){if(n.keyCode&&9==n.keyCode){var i=[],o=Number(e(this).data("tabindex"));t.$element.find("[data-tabindex]:enabled:visible:not([readonly])").each(function(t){i.push(Number(e(this).data("tabindex")))}),i.sort(function(e,t){return e-t});var a=e.inArray(o,i);n.shiftKey?0==a?t.$element.find("[data-tabindex="+i[i.length-1]+"]").focus():t.$element.find("[data-tabindex="+i[a-1]+"]").focus():a<i.length-1?t.$element.find("[data-tabindex="+i[a+1]+"]").focus():t.$element.find("[data-tabindex="+i[0]+"]").focus(),n.preventDefault()}}):this.isShown||this.$element.off("keydown.tabindex.modal")},escape:function(){var e=this;this.isShown&&this.options.keyboard?(this.$element.attr("tabindex")||this.$element.attr("tabindex",-1),this.$element.on("keyup.dismiss.modal",function(t){27==t.which&&e.hide()})):this.isShown||this.$element.off("keyup.dismiss.modal")},hideWithTransition:function(){var t=this,n=setTimeout(function(){t.$element.off(e.support.transition.end),t.hideModal()},500);this.$element.one(e.support.transition.end,function(){clearTimeout(n),t.hideModal()})},hideModal:function(){var e=this.options.height?"height":"max-height";(this.options.height||this.options.maxHeight)&&this.$element.find(".modal-body").css("overflow","").css(e,""),this.$element.hide().trigger("hidden")},removeLoading:function(){this.$loading.remove(),this.$loading=null,this.isLoading=!1},loading:function(t){t=t||function(){};var n=this.$element.hasClass("fade")?"fade":"";if(this.isLoading)if(this.isLoading&&this.$loading){this.$loading.removeClass("in");var i=this;e.support.transition&&this.$element.hasClass("fade")?this.$loading.one(e.support.transition.end,function(){i.removeLoading()}):i.removeLoading()}else t&&t(this.isLoading);else{var o=e.support.transition&&n;this.$loading=e('<div class="loading-mask '+n+'">').append(this.options.spinner).appendTo(this.$element),o&&this.$loading[0].offsetWidth,this.$loading.addClass("in"),this.isLoading=!0,o?this.$loading.one(e.support.transition.end,t):t()}},focus:function(){var e=this.$element.find(this.options.focusOn);(e=e.length?e:this.$element).focus()},attention:function(){if(this.options.attentionAnimation){this.$element.removeClass("animated").removeClass(this.options.attentionAnimation);var e=this;setTimeout(function(){e.$element.addClass("animated").addClass(e.options.attentionAnimation)},0)}this.focus()},destroy:function(){var t=e.Event("destroy");this.$element.trigger(t),t.isDefaultPrevented()||(this.$element.off(".modal").removeData("modal").removeClass("in").attr("aria-hidden",!0),this.$parent!==this.$element.parent()?this.$element.appendTo(this.$parent):this.$parent.length||(this.$element.remove(),this.$element=null),this.$element.trigger("destroyed"))}},e.fn.modal=function(n,i){return this.each(function(){var o=e(this),a=o.data("modal"),r=e.extend({},e.fn.modal.defaults,o.data(),"object"==typeof n&&n);a||o.data("modal",a=new t(this,r)),"string"==typeof n?a[n].apply(a,[].concat(i)):r.show&&a.show()})},e.fn.modal.defaults={keyboard:!0,backdrop:!0,loading:!1,show:!0,width:null,height:null,maxHeight:null,modalOverflow:!1,consumeTab:!0,focusOn:null,replace:!1,resize:!1,attentionAnimation:"shake",manager:"body",spinner:'<div class="loading-spinner" style="width: 200px; margin-left: -100px;"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"></div></div></div>',backdropTemplate:'<div class="modal-backdrop" />'},e.fn.modal.Constructor=t,e(function(){e(document).off("click.modal").on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),i=n.attr("href"),o=e(n.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},o.data(),n.data());t.preventDefault(),o.modal(a).one("hide",function(){n.focus()})})})}(window.jQuery),function(e){"use strict";function t(e){return function(t){if(t&&this===t.target)return e.apply(this,arguments)}}var n=function(e,t){this.init(e,t)};n.prototype={constructor:n,init:function(t,n){if(this.$element=e(t),this.options=e.extend({},e.fn.modalmanager.defaults,this.$element.data(),"object"==typeof n&&n),this.stack=[],this.backdropCount=0,this.options.resize){var i,o=this;e(window).on("resize.modal",function(){i&&clearTimeout(i),i=setTimeout(function(){for(var e=0;e<o.stack.length;e++)o.stack[e].isShown&&o.stack[e].layout()},10)})}},createModal:function(t,n){e(t).modal(e.extend({manager:this},n))},appendModal:function(n){this.stack.push(n);var i=this;n.$element.on("show.modalmanager",t(function(t){var o=function(){n.isShown=!0;var t=e.support.transition&&n.$element.hasClass("fade");i.$element.toggleClass("modal-open",i.hasOpenModal()).toggleClass("page-overflow",e(window).height()<i.$element.height()),n.$parent=n.$element.parent(),n.$container=i.createContainer(n),n.$element.appendTo(n.$container),i.backdrop(n,function(){n.$element.show(),t&&n.$element[0].offsetWidth,n.layout(),n.$element.addClass("in").attr("aria-hidden",!1);var o=function(){i.setFocus(),n.$element.trigger("shown")};t?n.$element.one(e.support.transition.end,o):o()})};n.options.replace?i.replace(o):o()})),n.$element.on("hidden.modalmanager",t(function(t){if(i.backdrop(n),n.$element.parent().length)if(n.$backdrop){e.support.transition&&n.$element.hasClass("fade")&&n.$element[0].offsetWidth,e.support.transition&&n.$element.hasClass("fade")?n.$backdrop.one(e.support.transition.end,function(){n.destroy()}):n.destroy()}else n.destroy();else i.destroyModal(n)})),n.$element.on("destroyed.modalmanager",t(function(e){i.destroyModal(n)}))},getOpenModals:function(){for(var e=[],t=0;t<this.stack.length;t++)this.stack[t].isShown&&e.push(this.stack[t]);return e},hasOpenModal:function(){return this.getOpenModals().length>0},setFocus:function(){for(var e,t=0;t<this.stack.length;t++)this.stack[t].isShown&&(e=this.stack[t]);e&&e.focus()},destroyModal:function(e){e.$element.off(".modalmanager"),e.$backdrop&&this.removeBackdrop(e),this.stack.splice(this.getIndexOfModal(e),1);var t=this.hasOpenModal();this.$element.toggleClass("modal-open",t),t||this.$element.removeClass("page-overflow"),this.removeContainer(e),this.setFocus()},getModalAt:function(e){return this.stack[e]},getIndexOfModal:function(e){for(var t=0;t<this.stack.length;t++)if(e===this.stack[t])return t},replace:function(n){for(var i,o=0;o<this.stack.length;o++)this.stack[o].isShown&&(i=this.stack[o]);i?(this.$backdropHandle=i.$backdrop,i.$backdrop=null,n&&i.$element.one("hidden",t(e.proxy(n,this))),i.hide()):n&&n()},removeBackdrop:function(e){e.$backdrop.remove(),e.$backdrop=null},createBackdrop:function(t,n){var i;return this.$backdropHandle?((i=this.$backdropHandle).off(".modalmanager"),this.$backdropHandle=null,this.isLoading&&this.removeSpinner()):i=e(n).addClass(t).appendTo(this.$element),i},removeContainer:function(e){e.$container.remove(),e.$container=null},createContainer:function(n){var o;
1return o=e('<div class="modal-scrollable">').css("z-index",i("modal",this.getOpenModals().length)).appendTo(this.$element),n&&"static"!=n.options.backdrop?o.on("click.modal",t(function(e){n.hide()})):n&&o.on("click.modal",t(function(e){n.attention()})),o},backdrop:function(t,n){var o=t.$element.hasClass("fade")?"fade":"",a=t.options.backdrop&&this.backdropCount<this.options.backdropLimit;if(t.isShown&&a){var r=e.support.transition&&o&&!this.$backdropHandle;t.$backdrop=this.createBackdrop(o,t.options.backdropTemplate),t.$backdrop.css("z-index",i("backdrop",this.getOpenModals().length)),r&&t.$backdrop[0].offsetWidth,t.$backdrop.addClass("in"),this.backdropCount+=1,r?t.$backdrop.one(e.support.transition.end,n):n()}else if(!t.isShown&&t.$backdrop){t.$backdrop.removeClass("in"),this.backdropCount-=1;var s=this;e.support.transition&&t.$element.hasClass("fade")?t.$backdrop.one(e.support.transition.end,function(){s.removeBackdrop(t)}):s.removeBackdrop(t)}else n&&n()},removeSpinner:function(){this.$spinner&&this.$spinner.remove(),this.$spinner=null,this.isLoading=!1},removeLoading:function(){this.$backdropHandle&&this.$backdropHandle.remove(),this.$backdropHandle=null,this.removeSpinner()},loading:function(t){if(t=t||function(){},this.$element.toggleClass("modal-open",!this.isLoading||this.hasOpenModal()).toggleClass("page-overflow",e(window).height()<this.$element.height()),this.isLoading)if(this.isLoading&&this.$backdropHandle){this.$backdropHandle.removeClass("in");var n=this;e.support.transition?this.$backdropHandle.one(e.support.transition.end,function(){n.removeLoading()}):n.removeLoading()}else t&&t(this.isLoading);else{this.$backdropHandle=this.createBackdrop("fade",this.options.backdropTemplate),this.$backdropHandle[0].offsetWidth;var o=this.getOpenModals();this.$backdropHandle.css("z-index",i("backdrop",o.length+1)).addClass("in");var a=e(this.options.spinner).css("z-index",i("modal",o.length+1)).appendTo(this.$element).addClass("in");this.$spinner=e(this.createContainer()).append(a).on("click.modalmanager",e.proxy(this.loading,this)),this.isLoading=!0,e.support.transition?this.$backdropHandle.one(e.support.transition.end,t):t()}}};var i=function(){var t,n={};return function(i,o){if(void 0===t){var a=e('<div class="modal hide" />').appendTo("body"),r=e('<div class="modal-backdrop hide" />').appendTo("body");n.modal=+a.css("z-index"),n.backdrop=+r.css("z-index"),t=n.modal-n.backdrop,a.remove(),r.remove(),r=a=null}return n[i]+t*o}}();e.fn.modalmanager=function(t,i){return this.each(function(){var o=e(this),a=o.data("modalmanager");a||o.data("modalmanager",a=new n(this,t)),"string"==typeof t&&a[t].apply(a,[].concat(i))})},e.fn.modalmanager.defaults={backdropLimit:999,resize:!0,spinner:'<div class="loading-spinner fade" style="width: 200px; margin-left: -100px;"><div class="progress progress-striped active"><div class="bar" style="width: 100%;"></div></div></div>',backdropTemplate:'<div class="modal-backdrop" />'},e.fn.modalmanager.Constructor=n,e(function(){e(document).off("show.bs.modal").off("hidden.bs.modal")})}(jQuery),function(e){var t=function(t,i){if(this.$element=e(t),this.$note=e('<div class="alert"></div>'),this.options=e.extend(!0,{},e.fn.notify.defaults,i),this.options.transition?"fade"==this.options.transition?this.$note.addClass("in").addClass(this.options.transition):this.$note.addClass(this.options.transition):this.$note.addClass("fade").addClass("in"),this.options.type?this.$note.addClass("alert-"+this.options.type):this.$note.addClass("alert-success"),this.options.message||""===this.$element.data("message")?"object"==typeof this.options.message?this.options.message.html?this.$note.html(this.options.message.html):this.options.message.text&&this.$note.text(this.options.message.text):this.$note.html(this.options.message):this.$note.html(this.$element.data("message")),this.options.closable){var o=e('<a class="close pull-right" href="#">×</a>');e(o).on("click",e.proxy(n,this)),this.$note.prepend(o)}return this},n=function(){return this.options.onClose(),e(this.$note).remove(),this.options.onClosed(),!1};t.prototype.show=function(){this.options.fadeOut.enabled&&this.$note.delay(this.options.fadeOut.delay||3e3).fadeOut("slow",e.proxy(n,this)),this.$element.append(this.$note),this.$note.alert()},t.prototype.hide=function(){this.options.fadeOut.enabled?this.$n
1ote.delay(this.options.fadeOut.delay||3e3).fadeOut("slow",e.proxy(n,this)):n.call(this)},e.fn.notify=function(e){return new t(this,e)},e.fn.notify.defaults={type:"success",closable:!0,transition:"fade",fadeOut:{enabled:!0,delay:3e3},message:null,onClose:function(){},onClosed:function(){}}}(window.jQuery),function(e,t){function n(){return new Date(Date.UTC.apply(Date,arguments))}function i(){var e=new Date;return n(e.getFullYear(),e.getMonth(),e.getDate())}function o(e){return function(){return this[e].apply(this,arguments)}}var a=e(window),r=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),n=0,i=this.length;n<i;n++)if(this[n].valueOf()===t)return n;return-1},remove:function(e){this.splice(e,1)},replace:function(t){t&&(e.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.splice(0)},copy:function(){var e=new r;return e.replace(this),e}};return function(){var n=[];return n.push.apply(n,arguments),e.extend(n,t),n}}(),s=function(t,n){this.dates=new r,this.viewDate=i(),this.focusDate=null,this._process_options(n),this.element=e(t),this.isInline=!1,this.isInput=this.element.is("input"),this.component=!!this.element.is(".date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=e(f.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(e,t){return parseInt(t)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};s.prototype={constructor:s,_process_options:function(t){this._o=e.extend({},this._o,t);var n=this.o=e.extend({},this._o),i=n.language;switch(h[i]||(i=i.split("-")[0],h[i]||(i=d.language)),n.language=i,n.startView){case 2:case"decade":n.startView=2;break;case 1:case"year":n.startView=1;break;default:n.startView=0}switch(n.minViewMode){case 1:case"months":n.minViewMode=1;break;case 2:case"years":n.minViewMode=2;break;default:n.minViewMode=0}n.startView=Math.max(n.startView,n.minViewMode),!0!==n.multidate&&(n.multidate=Number(n.multidate)||!1,!1!==n.multidate?n.multidate=Math.max(0,n.multidate):n.multidate=1),n.multidateSeparator=String(n.multidateSeparator),n.weekStart%=7,n.weekEnd=(n.weekStart+6)%7;var o=f.parseFormat(n.format);n.startDate!==-1/0&&(n.startDate?n.startDate instanceof Date?n.startDate=this._local_to_utc(this._zero_time(n.startDate)):n.startDate=f.parseDate(n.startDate,o,n.language):n.startDate=-1/0),n.endDate!==1/0&&(n.endDate?n.endDate instanceof Date?n.endDate=this._local_to_utc(this._zero_time(n.endDate)):n.endDate=f.parseDate(n.endDate,o,n.language):n.endDate=1/0),n.daysOfWeekDisabled=n.daysOfWeekDisabled||[],e.isArray(n.daysOfWeekDisabled)||(n.daysOfWeekDisabled=n.daysOfWeekDisabled.split(/[,\s]*/)),n.daysOfWeekDisabled=e.map(n.daysOfWeekDisabled,function(e){return parseInt(e,10)});var a=String(n.orientation).toLowerCase().split(/\s+/g),r=n.orientation.toLowerCase();if(a=e.grep(a,function(e){return/^auto|left|right|top|bottom$/.test(e)}),n.orientation={x:"auto",y:"auto"},r&&"auto"!==r)if(1===a.length)switch(a[0]){case"top":case"bottom":n.orientation.y=a[0];break;case"left":case"right":n.orientation.x=a[0]}else r=e.grep(a,function(e){return/^left|right$/.test(e)}),n.orientation.x=r[0]||"auto",r=e.grep(a,function(e){return/^top|bottom$/.test(e)}),n.orientation.y=r[0]||"auto";else;},_events:[],_secondaryEvents:[],_applyEvents:function(e){for(var t,n,i,o=0;o<e.length;o++)t=e[o][0],2===e[o].length?(n=void 0,i=e[o][1]):3===e[o].length&&(n=e[o][1],i=e[o][2]),t.on(i,n)},_unapplyEvents:function(e){for(var t,n,i,o=0;o<e.length;o++)t=e[o][0],2===e[o].length?(i=void 0,n=e[o][1]):3===e[o].length&&(i=e[o][1],n=e[o][2]),t.off(n,i)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:e.proxy(this.show,this),keyup:e.proxy(function(t){-1===e.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:e.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:e.proxy(this.show,this),keyup:e.proxy(function(t){-1===e.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:e.proxy(this.keydown,this)}],[this.component,{click:e.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:e.proxy(this.show,this)}]],this._events.push([this.element,"*",{blur:e.proxy(function(e){this._focused_from=e.target},this)}],[this.element,{blur:e.proxy(function(e){this._focused_from=e.target},this)}]),this._secondaryEvents=[[this.picker,{click:e.proxy(this.click,this)}],[e(window),{resize:e.proxy(this.place,this)}],[e(document),{"mousedown touchstart":e.proxy(function(e){this.element.is(e.target)||this.element.find(e.target).length||this.picker.is(e.target)||this.picker.find(e.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,n){var i=n||this.dates.get(-1),o=this._utc_to_local(i);this.element.trigger({type:t,date:o,dates:e.map(this.dates,this._utc_to_local),format:e.proxy(function(e,t){0===arguments.length?(e=this.dates.length-1,t=this.o.format):"string"==typeof e&&(t=e,e=this.dates.length-1),t=t||this.o.format;var n=this.dates.get(e);return f.formatDate(n,t,this.o.language)},this)})},show:function(){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.place(),this._attachSecondaryEvents(),this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date},_utc_to_local:function(e){return e&&new Date(e.getTime()+6e4*e.getTimezoneOffset())},_local_to_utc:function(e){return e&&new Date(e.getTime()-6e4*e.getTimezoneOffset())},_zero_time:function(e){return e&&new Date(e.getFullYear(),e.getMonth(),e.getDate())},_zero_utc_time:function(e){return e&&new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},getDates:function(){return e.map(this.dates,this._utc_to_local)},getUTCDates:function(){return e.map(this.dates,function(e){return new Date(e)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){return new Date(this.dates.get(-1))},setDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,t),this._trigger("changeDate"),this.setValue()},setUTCDates:function(){var t=e.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,e.map(t,this._utc_to_local)),this._trigger("changeDate"),this.setValue()},setDate:o("setDates"),setUTCDate:o("setUTCDates"),setValue:function(){var e=this.getFormattedDate();this.isInput?this.element.val(e).change():this.component&&this.element.find("input").val(e).change()},getFormattedDate:function(t){void 0===t&&(t=this.o.format);var n=this.o.language;return e.map(this.dates,function(e){return f.formatDate(e,t,n)}).join(this.o.multidateSeparator)},setStartDate:function(e){this._process_options({startDate:e}),this.update(),this.updateNavArrows()},setEndDate:function(e){this._process_options({endDate:e}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(e){this._process_options({daysOfWeekDisabled:e}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var t=this.picker.outerWidth(),n=this.picker.outerHeight(),i=a.width(),o=a.height(),r=a.scrollTop(),s=(parseInt(this.element.parents().filter(function(){return"auto"!==e(this).css("z-index")}).first().css("z-index")),this.component?this.component.parent().offset():this.element.offset()),l=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),c=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),d=s.left,u=s.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(
1d-=t-c)):(this.picker.addClass("datepicker-orient-left"),s.left<0?d-=s.left-10:s.left+t>i&&(d=i-t-10));var h,f,p=this.o.orientation.y;"auto"===p&&(h=-r+s.top-n,f=r+o-(s.top+l+n),p=Math.max(h,f)===f?"top":"bottom"),this.picker.addClass("datepicker-orient-"+p),"top"===p?u+=l:u-=n+parseInt(this.picker.css("padding-top")),this.picker.css({top:u,left:d,zIndex:9999999})}},_allow_update:!0,update:function(){if(this._allow_update){var t=this.dates.copy(),n=[],i=!1;arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),n.push(t)},this)),i=!0):(n=(n=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val())&&this.o.multidate?n.split(this.o.multidateSeparator):[n],delete this.element.data().date),n=e.map(n,e.proxy(function(e){return f.parseDate(e,this.o.format,this.o.language)},this)),n=e.grep(n,e.proxy(function(e){return e<this.o.startDate||e>this.o.endDate||!e},this),!0),this.dates.replace(n),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate)),i?this.setValue():n.length&&String(t)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&t.length&&this._trigger("clearDate"),this.fill()}},fillDow:function(){var e=this.o.weekStart,t="<tr>";if(this.o.calendarWeeks){var n='<th class="cw"> </th>';t+=n,this.picker.find(".datepicker-days thead tr:first-child").prepend(n)}for(;e<this.o.weekStart+7;)t+='<th class="dow">'+h[this.o.language].daysMin[e++%7]+"</th>";t+="</tr>",this.picker.find(".datepicker-days thead").append(t)},fillMonths:function(){for(var e="",t=0;t<12;)e+='<span class="month">'+h[this.o.language].monthsShort[t++]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var n=[],i=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),a=new Date;return t.getUTCFullYear()<i||t.getUTCFullYear()===i&&t.getUTCMonth()<o?n.push("old"):(t.getUTCFullYear()>i||t.getUTCFullYear()===i&&t.getUTCMonth()>o)&&n.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&n.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===a.getFullYear()&&t.getUTCMonth()===a.getMonth()&&t.getUTCDate()===a.getDate()&&n.push("today"),-1!==this.dates.contains(t)&&n.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled))&&n.push("disabled"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&n.push("range"),-1!==e.inArray(t.valueOf(),this.range)&&n.push("selected")),n},fill:function(){var t,i=new Date(this.viewDate),o=i.getUTCFullYear(),a=i.getUTCMonth(),r=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,s=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=h[this.o.language].today||h.en.today||"",u=h[this.o.language].clear||h.en.clear||"";this.picker.find(".datepicker-days thead th.datepicker-switch").text(h[this.o.language].months[a]+" "+o),this.picker.find("tfoot th.today").text(d).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot th.clear").text(u).toggle(!1!==this.o.clearBtn),this.updateNavArrows(),this.fillMonths();var p=n(o,a-1,28),m=f.getDaysInMonth(p.getUTCFullYear(),p.getUTCMonth());p.setUTCDate(m),p.setUTCDate(m-(p.getUTCDay()-this.o.weekStart+7)%7);var g=new Date(p);g.setUTCDate(g.getUTCDate()+42),g=g.valueOf();for(var E,v=[];p.valueOf()<g;){if(p.getUTCDay()===this.o.weekStart&&(v.push("<tr>"),this.o.calendarWeeks)){var T=new Date(+p+(this.o.weekStart-p.getUTCDay()-7)%7*864e5),C=new Date(Number(T)+(11-T.getUTCDay())%7*864e5),b=new Date(Number(b=n(C.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),D=(C-b)/864e5/7+1;v.push('<td class="cw">'+D+"</td>")}if((E=this.getClassNames(p)).push("day"),this.o.beforeShowDay!==e.noop){var y=this.o.beforeShowDay(this._utc_to_local(p));void 0===y?y={}:"boolean"==typeof y?y={enabled:y}:"string"==typeof y&&(y={classes:y}),!1===y.enabled&&E.push("disabled"),y.classes&&(E=E.concat(y.classes.split(/\s+/))),y.tooltip&&(t=y.tooltip)}E=e.unique(E),v.push('<td class="'+E.join(" ")+'"'+(t?' title="'+t+'"':"")+">"+p.getUTCDate()+"</td>"),p.getUTCDay()===this.o.weekEnd&&v.push("</tr>"),p.setUTCDate(p.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(v.join(""));var I=this.picker.find(".datepicker-months").find("th:eq(1)").text(o).end().find("span").removeClass("active");e.each(this.dates,function(e,t){t.getUTCFullYear()===o&&I.eq(t.getUTCMonth()).addClass("active")}),(o<r||o>l)&&I.addClass("disabled"),o===r&&I.slice(0,s).addClass("disabled"),o===l&&I.slice(c+1).addClass("disabled"),v="",o=10*parseInt(o/10,10);var O=this.picker.find(".datepicker-years").find("th:eq(1)").text(o+"-"+(o+9)).end().find("td");o-=1;for(var R,_=e.map(this.dates,function(e){return e.getUTCFullYear()}),k=-1;k<11;k++)R=["year"],-1===k?R.push("old"):10===k&&R.push("new"),-1!==e.inArray(o,_)&&R.push("active"),(o<r||o>
1l)&&R.push("disabled"),v+='<span class="'+R.join(" ")+'">'+o+"</span>",o+=1;O.html(v)},updateNavArrows:function(){if(this._allow_update){var e=new Date(this.viewDate),t=e.getUTCFullYear(),n=e.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&t<=this.o.startDate.getUTCFullYear()&&n<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&t>=this.o.endDate.getUTCFullYear()&&n>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&t<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&t>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){t.preventDefault();var i,o,a,r=e(t.target).closest("span, td, th");if(1===r.length)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var s=f.modes[this.viewMode].navStep*("prev"===r[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,s),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,s),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var l=new Date;l=n(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0),this.showMode(-2);var c="linked"===this.o.todayBtn?null:"view";this._setDate(l,c);break;case"clear":var d;this.isInput?d=this.element:this.component&&(d=this.element.find("input")),d&&d.val("").change(),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()}break;case"span":r.is(".disabled")||(this.viewDate.setUTCDate(1),r.is(".month")?(a=1,o=r.parent().find("span").index(r),i=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(o),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(n(i,o,a))):(a=1,o=0,i=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(i),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(n(i,o,a))),this.showMode(-1),this.fill());break;case"td":r.is(".day")&&!r.is(".disabled")&&(a=parseInt(r.text(),10)||1,i=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),r.is(".old")?0===o?(o=11,i-=1):o-=1:r.is(".new")&&(11===o?(o=0,i+=1):o+=1),this._setDate(n(i,o,a)))}this.picker.is(":visible")&&this._focused_from&&e(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e?-1!==t?this.dates.remove(t):this.dates.push(e):this.dates.clear(),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),t&&"view"!==t||(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),this._trigger("changeDate");var n;this.isInput?n=this.element:this.component&&(n=this.element.find("input")),n&&n.change(),!this.o.autoclose||t&&"date"!==t||this.hide()},moveMonth:function(e,t){if(e){if(!t)return e;var n,i,o=new Date(e.valueOf()),a=o.getUTCDate(),r=o.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1===s)i=-1===t?function(){return o.getUTCMonth()===r}:function(){return o.getUTCMonth()!==n},n=r+t,o.setUTCMonth(n),(n<0||n>11)&&(n=(n+12)%12);else{for(var l=0;l<s;l++)o=this.moveMonth(o,t);n=o.getUTCMonth(),o.setUTCDate(a),i=function(){return n!==o.getUTCMonth()}}for(;i();)o.setUTCDate(--a),o.setUTCMonth(n);return o}},moveYear:function(e,t){return this.moveMonth(e,12*t)},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":not(:visible)"))27===e.keyCode&&this.show();else{var t,n,o,a=!1,r=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;
1t=37===e.keyCode?-1:1,e.ctrlKey?(n=this.moveYear(this.dates.get(-1)||i(),t),o=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):e.shiftKey?(n=this.moveMonth(this.dates.get(-1)||i(),t),o=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):((n=new Date(this.dates.get(-1)||i())).setUTCDate(n.getUTCDate()+t),(o=new Date(r)).setUTCDate(r.getUTCDate()+t)),this.dateWithinRange(n)&&(this.focusDate=this.viewDate=o,this.setValue(),this.fill(),e.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=38===e.keyCode?-1:1,e.ctrlKey?(n=this.moveYear(this.dates.get(-1)||i(),t),o=this.moveYear(r,t),this._trigger("changeYear",this.viewDate)):e.shiftKey?(n=this.moveMonth(this.dates.get(-1)||i(),t),o=this.moveMonth(r,t),this._trigger("changeMonth",this.viewDate)):((n=new Date(this.dates.get(-1)||i())).setUTCDate(n.getUTCDate()+7*t),(o=new Date(r)).setUTCDate(r.getUTCDate()+7*t)),this.dateWithinRange(n)&&(this.focusDate=this.viewDate=o,this.setValue(),this.fill(),e.preventDefault());break;case 32:break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate,this._toggle_multidate(r),a=!0,this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(a){this.dates.length?this._trigger("changeDate"):this._trigger("clearDate");var s;this.isInput?s=this.element:this.component&&(s=this.element.find("input")),s&&s.change()}}},showMode:function(e){e&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+e))),this.picker.find(">div").hide().filter(".datepicker-"+f.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var l=function(t,n){this.element=e(t),this.inputs=e.map(n.inputs,function(e){return e.jquery?e[0]:e}),delete n.inputs,e(this.inputs).datepicker(n).bind("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e(t).data("datepicker")}),this.updateDates()};l.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});
1e.each(this.pickers,function(e,n){n.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var n=e(t.target).data("datepicker").getUTCDate(),i=e.inArray(t.target,this.inputs),o=this.inputs.length;if(-1!==i){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t.setUTCDate(n)}),n<this.dates[i])for(;i>=0&&n<this.dates[i];)this.pickers[i--].setUTCDate(n);else if(n>this.dates[i])for(;i<o&&n>this.dates[i];)this.pickers[i++].setUTCDate(n);this.updateDates(),delete this.updating}}},remove:function(){e.map(this.pickers,function(e){e.remove()}),delete this.element.data().datepicker}};var c=e.fn.datepicker;e.fn.datepicker=function(t){var n=Array.apply(null,arguments);n.shift();var i;return this.each(function(){var o=e(this),a=o.data("datepicker"),r="object"==typeof t&&t;if(!a){var c=function(t,n){function i(e,t){return t.toLowerCase()}var o=e(t).data(),a={},r=new RegExp("^"+n.toLowerCase()+"([A-Z])");n=new RegExp("^"+n.toLowerCase());for(var s in o)n.test(s)&&(a[s.replace(r,i)]=o[s]);return a}(this,"date"),f=function(t){var n={};if(h[t]||(t=t.split("-")[0],h[t])){var i=h[t];return e.each(u,function(e,t){t in i&&(n[t]=i[t])}),n}}(e.extend({},d,c,r).language),p=e.extend({},d,f,c,r);if(o.is(".input-daterange")||p.inputs){var m={inputs:p.inputs||o.find("input").toArray()};o.data("datepicker",a=new l(this,e.extend(p,m)))}else o.data("datepicker",a=new s(this,p))}if("string"==typeof t&&"function"==typeof a[t]&&void 0!==(i=a[t].apply(a,n)))return!1}),void 0!==i?i:this};var d=e.fn.datepicker.defaults={autoclose:!1,beforeShowDay:e.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},u=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=s;var h=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},f={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},getDaysInMonth:function(e,t){return[31,f.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(e){var t=e.replace(this.validParts,"\0").split("\0"),n=e.match(this.validParts);if(!t||!t.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(t,i,o){function a(){var e=this.slice(0,u[c].length);return e===u[c].slice(0,e.length)}if(t){if(t instanceof Date)return t;"string"==typeof i&&(i=f.parseFormat(i));var r,l,c,d=/([\-+]\d+)([dmwy])/,u=t.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(t)){for(t=new Date,c=0;c<u.length;c++)switch(r=d.exec(u[c]),l=parseInt(r[1]),r[2]){case"d":t.setUTCDate(t.getUTCDate()+l);break;case"m":t=s.prototype.moveMonth.call(s.prototype,t,l);break;case"w":t.setUTCDate(t.getUTCDate()+7*l);break;case"y":t=s.prototype.moveYear.call(s.prototype,t,l)}return n(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),0,0,0)}u=t&&t.match(this.nonpunctuation)||[],t=new Date;var p,m,g={},E=["yyyy","yy","M","MM","m","mm","d","dd"],v={yyyy:function(e,t){return e.setUTCFullYear(t)},yy:function(e,t){return e.setUTCFullYear(2e3+t)},m:function(e,t){if(isNaN(e))return e;for(t-=1;t<0;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};v.M=v.MM=v.mm=v.m,v.dd=v.d,t=n(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0);var T=i.parts.slice();if(u.length!==T.length&&(T=e(T).filter(function(t,n){return-1!==e.inArray(n,E)}).toArray()),u.length===T.length){var C;for(c=0,C=T.length;c<C;c++){if(p=parseInt(u[c],10),r=T[c],isNaN(p))switch(r){case"MM":m=e(h[o].months).filter(a),p=e.inArray(m[0],h[o].months)+1;break;case"M":m=e(h[o].monthsShort).filter(a),p=e.inArray(m[0],h[o].monthsShort)+1}g[r]=p}var b,D;for(c=0;c<E.length;c++)(D=E[c])in g&&!isNaN(g[D])&&(b=new Date(t),v[D](b,g[D]),isNaN(b)||(t=b))}return t}},formatDate:function(t,n,i){if(!t)return"";"string"==typeof n&&(n=f.parseFormat(n));var o={d:t.getUTCDate(),D:h[i].daysShort[t.getUTCDay()],DD:h[i].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:h[i].monthsShort[t.getUTCMonth()],MM:h[i].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};o.dd=(o.d<10?"0":"")+o.d,o.mm=(o.m<10?"0":"")+o.m,t=[];
1for(var a=e.extend([],n.separators),r=0,s=n.parts.length;r<=s;r++)a.length&&t.push(a.shift()),t.push(o[n.parts[r]]);return t.join("")},headTemplate:'<thead><tr><th class="prev">«</th><th colspan="5" class="datepicker-switch"></th><th class="next">»</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};f.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+f.headTemplate+"<tbody></tbody>"+f.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+f.headTemplate+f.contTemplate+f.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+f.headTemplate+f.contTemplate+f.footTemplate+"</table></div></div>",e.fn.datepicker.DPGlobal=f,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=c,this},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var n=e(this);n.data("datepicker")||(t.preventDefault(),n.datepicker("show"))}),e(function(){e('[data-provide="datepicker-inline"]').datepicker()})}(window.jQuery),jQuery.fn.datepicker.dates.es={days:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],daysShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb","Dom"],daysMin:["Do","Lu","Ma","Mi","Ju","Vi","Sa","Do"],months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthsShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],today:"Hoy"},window.CKEDITOR&&window.CKEDITOR.dom||(window.CKEDITOR||(window.CKEDITOR=function(){var e=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,t={timestamp:"E7KD",version:"4.4.4",revision:"1ba5105",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:e},status:"unloaded",basePath:function(){var t=window.CKEDITOR_BASEPATH||"";if(!t)for(var n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var o=n[i].src.match(e);if(o){t=o[1];break}}if(-1==t.indexOf(":/")&&"//"!=t.slice(0,2)&&(t=0===t.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+t:location.href.match(/^[^\?]*\/(?:)/)[0]+t),!t)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return t}(),getUrl:function(e){return-1==e.indexOf(":/")&&0!==e.indexOf("/")&&(e=this.basePath+e),this.timestamp&&"/"!=e.charAt(e.length-1)&&!/[&?]t=/.test(e)&&(e+=(0<=e.indexOf("?")?"&":"?")+"t="+this.timestamp),e},domReady:function(){function e(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",e,!1),t()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",e),t())}catch(e){}}function t(){for(var e;e=n.shift();)e()}var n=[];return function(t){if(n.push(t),"complete"===document.readyState&&setTimeout(e,1),1==n.length)if(document.addEventListener)document.addEventListener("DOMContentLoaded",e,!1),window.addEventListener("load",e,!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",e),window.attachEvent("onload",e),t=!1;try{t=!window.frameElement}catch(e){}if(document.documentElement.doScroll&&t){var i=function(){try{document.documentElement.doScroll("left")}catch(e){return void setTimeout(i,1)}e()};i()}}}}()},n=window.CKEDITOR_GETURL;if(n){var i=t.getUrl;t.getUrl=function(e){return n.call(t,e)||i.call(t,e)}}return t}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(e){var t,n=CKEDITOR.event.prototype;for(t in n)void 0==e[t]&&(e[t]=n[t])},CKEDITOR.event.prototype=function(){function e(e){var i=t(this);return i[e]||(i[e]=new n(e))}var t=function(e){return(e=e.getPrivate&&e.getPrivate()||e._||(e._={})).events||(e.events={})},n=function(e){this.name=e,this.listeners=[]};return n.prototype={getListenerIndex:function(e){for(var t=0,n=this.listeners;t<n.length;t++)if(n[t].fn==e)return t;return-1}},{define:function(t,n){var i=e.call(this,t);CKEDITOR.tools.extend(i,n,!0)},on:function(t,n,i,o,a){function r(e,a,r,l){return e={name:t,sender:this,editor:e,data:a,listenerData:o,stop:r,cancel:l,removeListener:s},!1!==n.call(i,e)&&e.data}function s(){c.removeListener(t,n)}var l=e.call(this,t);if(l.getListenerIndex(n)<0){l=l.listeners,i||(i=this),isNaN(a)&&(a=10);var c=this;r.fn=n,r.priority=a;for(var d=l.length-1;d>=0;d--)if(l[d].priority<=a)return l.splice(d+1,0,r),{removeListener:s};l.unshift(r)}return{removeListener:s}},once:function(){var e=arguments[1];return arguments[1]=function(t){return t.removeListener(),e.apply(this,arguments)},this.on.apply(this,arguments)},capture:function(){CKEDITOR.event.useCapture=1;var e=this.on.apply(this,arguments);return CKEDITOR.event.useCapture=0,e},fire:function(){var e=0,n=function(){e=1},i=0,o=function(){i=1};
1return function(a,r,s){var l=t(this)[a],c=(a=e,i);if(e=i=0,l){if((u=l.listeners).length)for(var d,u=u.slice(0),h=0;h<u.length;h++){if(l.errorProof)try{d=u[h].call(this,s,r,n,o)}catch(e){}else d=u[h].call(this,s,r,n,o);if(!1===d?i=1:void 0!==d&&(r=d),e||i)break}}return r=!i&&(void 0===r||r),e=a,i=c,r}}(),fireOnce:function(e,n,i){return n=this.fire(e,n,i),delete t(this)[e],n},removeListener:function(e,n){var i=t(this)[e];if(i){var o=i.getListenerIndex(n);o>=0&&i.listeners.splice(o,1)}},removeAllListeners:function(){var e,n=t(this);for(e in n)delete n[e]},hasListeners:function(e){return(e=t(this)[e])&&e.listeners.length>0}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]),CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire=function(e,t){return e in{instanceReady:1,loaded:1}&&(this[e]=!0),CKEDITOR.event.prototype.fire.call(this,e,t,this)},CKEDITOR.editor.prototype.fireOnce=function(e,t){return e in{instanceReady:1,loaded:1}&&(this[e]=!0),CKEDITOR.event.prototype.fireOnce.call(this,e,t,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var e=navigator.userAgent.toLowerCase(),t={ie:e.indexOf("trident/")>-1,webkit:e.indexOf(" applewebkit/")>-1,air:e.indexOf(" adobeair/")>-1,mac:e.indexOf("macintosh")>-1,quirks:"BackCompat"==document.compatMode&&(!document.documentMode||document.documentMode<10),mobile:e.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(e),isCustomDomain:function(){if(!this.ie)return!1;var e=document.domain,t=window.location.hostname;return e!=t&&e!="["+t+"]"},secure:"https:"==location.protocol};t.gecko="Gecko"==navigator.product&&!t.webkit&&!t.ie,t.webkit&&(e.indexOf("chrome")>-1?t.chrome=!0:t.safari=!0);var n=0;if(t.ie&&(n=t.quirks||!document.documentMode?parseFloat(e.match(/msie (\d+)/)[1]):document.documentMode,t.ie9Compat=9==n,t.ie8Compat=8==n,t.ie7Compat=7==n,t.ie6Compat=n<7||t.quirks),t.gecko){var i=e.match(/rv:([\d\.]+)/);i&&(n=1e4*(i=i[1].split("."))[0]+100*(i[1]||0)+1*(i[2]||0))}return t.air&&(n=parseFloat(e.match(/ adobeair\/(\d+)/)[1])),t.webkit&&(n=parseFloat(e.match(/ applewebkit\/(\d+)/)[1])),t.version=n,t.isCompatible=t.iOS&&n>=534||!t.mobile&&(t.ie&&n>6||t.gecko&&n>=2e4||t.air&&n>=1||t.webkit&&n>=522||!1),t.hidpi=window.devicePixelRatio>=2,t.needsBrFiller=t.gecko||t.webkit||t.ie&&n>10,t.needsNbspFiller=t.ie&&n<11,t.cssClass="cke_browser_"+(t.ie?"ie":t.gecko?"gecko":t.webkit?"webkit":"unknown"),t.quirks&&(t.cssClass=t.cssClass+" cke_browser_quirks"),t.ie&&(t.cssClass=t.cssClass+" cke_browser_ie"+(t.quirks?"6 cke_browser_iequirks":t.version)),t.air&&(t.cssClass=t.cssClass+" cke_browser_air"),t.iOS&&(t.cssClass=t.cssClass+" cke_browser_ios"),t.hidpi&&(t.cssClass=t.cssClass+" cke_hidpi"),t}()),"unloaded"==CKEDITOR.status&&(CKEDITOR.event.implementOn(CKEDITOR),CKEDITOR.loadFullCore=function(){if("basic_ready"!=CKEDITOR.status)CKEDITOR.loadFullCore._load=1;else{delete CKEDITOR.loadFullCore;var e=document.createElement("script");e.type="text/javascript",e.src=CKEDITOR.basePath+"ckeditor.js",document.getElementsByTagName("head")[0].appendChild(e)}},CKEDITOR.loadFullCoreTimeout=0,CKEDITOR.add=function(e){(this._.pending||(this._.pending=[])).push(e)},CKEDITOR.domReady(function(){var e=CKEDITOR.loadFullCore,t=CKEDITOR.loadFullCoreTimeout;e&&(CKEDITOR.status="basic_ready",e&&e._load?e():t&&setTimeout(function(){CKEDITOR.loadFullCore&&CKEDITOR.loadFullCore()},1e3*t))}),CKEDITOR.status="basic_loaded"),CKEDITOR.dom={},function(){var e=[],t=CKEDITOR.env.gecko?"-moz-":CKEDITOR.env.webkit?"-webkit-":CKEDITOR.env.ie?"-ms-":"",n=/&/g,i=/>/g,o=/</g,a=/"/g,r=/&/g,s=/>/g,l=/</g,c=/"/g;CKEDITOR.on("reset",function(){e=[]}),CKEDITOR.tools={arrayCompare:function(e,t){if(!e&&!t)return!0;if(!e||!t||e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0},clone:function(e){var t;if(e&&e instanceof Array){t=[];for(var n=0;n<e.length;n++)t[n]=CKEDITOR.tools.clone(e[n]);return t}if(null===e||"object"!=typeof e||e instanceof String||e instanceof Number||e instanceof Boolean||e instanceof Date||e instanceof RegExp||e.nodeType||e.window===e)return e;t=new e.constructor;for(n in e)t[n]=CKEDITOR.tools.clone(e[n]);return t},capitalize:function(e,t){return e.charAt(0).toUpperCase()+(t?e.slice(1):e.slice(1).toLowerCase())},extend:function(e){var t,n,i=arguments.length;"boolean"==typeof(t=arguments[i-1])?i--:"boolean"==typeof(t=arguments[i-2])&&(n=arguments[i-1],i-=2);for(var o=1;o<i;o++){var a,r=arguments[o];for(a in r)!0!==t&&void 0!=e[a]||(!n||a in n)&&(e[a]=r[a])}return e},prototypedCopy:function(e){var t=function(){};return t.prototype=e,new t},copy:function(e){var t,n={};for(t in e)n[t]=e[t];return n},isArray:function(e){return"[object Array]"==Object.prototype.toString.call(e)},isEmpty:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},cssVendorPrefix:function(e,n,i){return i?t+e+":"+n+";"+e+":"+n:(i={},i[e]=n,i[t+e]=n,i)},cssStyleToDomStyle:function(){var e=document.createElement("div").style,t=void 0!==e.cssFloat?"cssFloat":void 0!==e.styleFloat?"styleFloat":"float";return function(e){return"float"==e?t:e.replace(/-./g,function(e){return e.substr(1).toUpperCase()})}}(),buildStyleHtml:function(e){e=[].concat(e);for(var t,n=[],i=0;i<e.length;i++)(t=e[i])&&(/@import|[{}]/.test(t)?n.push("<style>"+t+"</style>"):n.push('<link type="text/css" rel=stylesheet href="'+t+'">'));return n.join("")},htmlEncode:function(e){return(""+e).replace(n,"&").replace(i,">").replace(o,"<")},htmlDecode:function(e){return e.replace(r,"&").replace(s,">").replace(l,"<")},htmlEncodeAttr:function(e){return e.replace(a,""").replace(o,"<").replace(i,">")},htmlDecodeAttr:function(e){return e.replace(c,'"').replace(l,"<").replace(s,">")},getNextNumber:function(){var e=0;return function(){return++e}}(),getNextId:function(){return"cke_"+this.getNextNumber()},override:function(e,t){var n=t(e);return n.prototype=e.prototype,n},setTimeout:function(e,t,n,i,o){return o||(o=window),n||(n=o),o.setTimeout(function(){i?e.apply(n,[].concat(i)):e.apply(n)},t||0)},trim:function(){var e=/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g;return function(t){return t.replace(e,"")}}(),ltrim:function(){var e=/^[ \t\n\r]+/g;return function(t){return t.replace(e,"")}}(),rtrim:function(){var e=/[ \t\n\r]+$/g;return function(t){return t.replace(e,"")}}(),indexOf:function(e,t){if("function"==typeof t){for(var n=0,i=e.length;n<i;n++)if(t(e[n]))return n}else{if(e.indexOf)return e.indexOf(t);for(n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1},search:function(e,t){var n=CKEDITOR.tools.indexOf(e,t);return n>=0?e[n]:null},bind:function(e,t){return function(){return e.apply(t,arguments)}},createClass:function(e){var t=e.$,n=e.base,i=e.privates||e._,o=e.proto;e=e.statics;if(!t&&(t=function(){n&&this.base.apply(this,arguments)}),i){var a=t;t=function(){var e,t=this._||(this._={});for(e in i){var n=i[e];t[e]="function"==typeof n?CKEDITOR.tools.bind(n,this):n}a.apply(this,arguments)}}return n&&(t.prototype=this.prototypedCopy(n.prototype),t.prototype.constructor=t,t.base=n,t.baseProto=n.prototype,t.prototype.base
1=function(){this.base=n.prototype.base,n.apply(this,arguments),this.base=arguments.callee}),o&&this.extend(t.prototype,o,!0),e&&this.extend(t,e,!0),t},addFunction:function(t,n){return e.push(function(){return t.apply(n||this,arguments)})-1},removeFunction:function(t){e[t]=null},callFunction:function(t){var n=e[t];return n&&n.apply(window,Array.prototype.slice.call(arguments,1))},cssLength:function(){var e,t=/^-?\d+\.?\d*px$/;return function(n){return e=CKEDITOR.tools.trim(n+"")+"px",t.test(e)?e:n||""}}(),convertToPx:function(){var e;return function(t){return e||(e=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document),CKEDITOR.document.getBody().append(e)),/%$/.test(t)?t:(e.setStyle("width",t),e.$.clientWidth)}}(),repeat:function(e,t){return Array(t+1).join(e)},tryThese:function(){for(var e,t=0,n=arguments.length;t<n;t++){var i=arguments[t];try{e=i();break}catch(e){}}return e},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(e){return function(){var t=arguments,n=this;window.setTimeout(function(){e.apply(n,t)},0)}},normalizeCssText:function(e,t){var n,i=[],o=CKEDITOR.tools.parseCssText(e,!0,t);for(n in o)i.push(n+":"+o[n]);return i.sort(),i.length?i.join(";")+";":""},convertRgbToHex:function(e){return e.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi,function(e,t,n,i){for(e=[t,n,i],t=0;t<3;t++)e[t]=("0"+parseInt(e[t],10).toString(16)).slice(-2);return"#"+e.join("")})},parseCssText:function(e,t,n){var i={};return n&&((n=new CKEDITOR.dom.element("span")).setAttribute("style",e),e=CKEDITOR.tools.convertRgbToHex(n.getAttribute("style")||"")),e&&";"!=e?(e.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,n,o){t&&("font-family"==(n=n.toLowerCase())&&(o=o.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,",")),o=CKEDITOR.tools.trim(o)),i[n]=o}),i):i},writeCssText:function(e,t){var n,i=[];for(n in e)i.push(n+":"+e[n]);return t&&i.sort(),i.join("; ")},objectCompare:function(e,t,n){var i;if(!e&&!t)return!0;if(!e||!t)return!1;for(i in e)if(e[i]!=t[i])return!1;if(!n)for(i in t)if(e[i]!=t[i])return!1;return!0},objectKeys:function(e){var t,n=[];for(t in e)n.push(t);return n},convertArrayToObject:function(e,t){var n={};1==arguments.length&&(t=!0);for(var i=0,o=e.length;i<o;++i)n[e[i]]=t;return n},fixDomain:function(){for(var e;;)try{e=window.parent.document.domain;break}catch(t){if(!(e=e?e.replace(/.+?(?:\.|$)/,""):document.domain))break;document.domain=e}return!!e},eventsBuffer:function(e,t){function n(){o=(new Date).getTime(),i=!1,t()}var i,o=0;return{input:function(){if(!i){var t=(new Date).getTime()-o;t<e?i=setTimeout(n,e-t):n()}},reset:function(){i&&clearTimeout(i),i=o=0}}},enableHtml5Elements:function(e,t){for(var n,i=["abbr","article","aside","audio","bdi","canvas","data","datalist","details","figcaption","figure","footer","header","hgroup","mark","meter","nav","output","progress","section","summary","time","video"],o=i.length;o--;)n=e.createElement(i[o]),t&&e.appendChild(n)},checkIfAnyArrayItemMatches:function(e,t){for(var n=0,i=e.length;n<i;++n)if(e[n].match(t))return!0;return!1},checkIfAnyObjectPropertyMatches:function(e,t){for(var n in e)if(n.match(t))return!0;return!1},transparentImageData:"data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw=="}}(),CKEDITOR.dtd=function(){var e=CKEDITOR.tools.extend,t=function(e,t){for(var n=CKEDITOR.tools.clone(e),i=1;i<arguments.length;i++){var o;t=arguments[i];for(o in t)delete n[o]}return n},n={},i={},o={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},a={command:1,link:1,meta:1,noscript:1,script:1,style:1},r={},s={"#":1},l={center:1,dir:1,noframes:1};return e(n,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,var:1,video:1,wbr:1},s,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1}),e(i,o,n,l),t={a:t(n,{a:1,button:1}),abbr:n,address:i,area:r,article:e({style:1},i),aside:e({style:1},i),audio:e({source:1,track:1},i),b:n,base:r,bdi:n,bdo:n,blockquote:i,body:i,br:r,button:t(n,{a:1,button:1}),canvas:n,caption:i,cite:n,code:n,col:r,colgroup:{col:1},command:r,datalist:e({option:1},n),dd:i,del:n,details:e({summary:1},i),dfn:n,div:e({style:1},i),dl:{dt:1,dd:1},dt:i,em:n,embed:r,fieldset:e({legend:1},i),figcaption:i,figure:e({figcaption:1},i),footer:i,form:i,h1:n,h2:n,h3:n,h4:n,h5:n,h6:n,head:e({title:1,base:1},a),header:i,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:r,html:e({head:1,body:1},i,a),i:n,iframe:s,img:r,input:r,ins:n,kbd:n,keygen:r,label:n,legend:n,li:i,link:r,map:i,mark:n,menu:e({li:1},i),meta:r,meter:t(n,{meter:1}),nav:i,noscript:e({link:1,meta:1,style:1},n),object:e({param:1},n),ol:{li:1},optgroup:{option:1},option:s,output:n,p:n,param:r,pre:n,progress:t(n,{progress:1}),q:n,rp:n,rt:n,ruby:e({rp:1,rt:1},n),s:n,samp:n,script:s,section:e({style:1},i),select:{optgroup:1,option:1},small:n,source:r,span:n,strong:n,style:s,sub:n,summary:n,sup:n,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:i,textarea:s,tfoot:{tr:1},th:i,thead:{tr:1},time:t(n,{time:1}),title:s,tr:{th:1,td:1},track:r,u:n,ul:{li:1},var:n,video:e({source:1,track:1},i),wbr:r,acronym:n,applet:e({param:1},i),basefont:r,big:n,center:i,dialog:r,dir:{li:1},font:n,isindex:r,noframes:i,strike:n,tt:n},e(t,{$block:e({audio:1,dd:1,dt:1,figcaption:1,li:1,video:1},o,l),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,header:1,hgroup:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,figcaption:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1}
1,$inline:n,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:e({body:1,head:1,html:1},t.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,var:1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}}),t}(),CKEDITOR.dom.event=function(e){this.$=e},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var e=this.getKey();return(this.$.ctrlKey||this.$.metaKey)&&(e+=CKEDITOR.CTRL),this.$.shiftKey&&(e+=CKEDITOR.SHIFT),this.$.altKey&&(e+=CKEDITOR.ALT),e},preventDefault:function(e){var t=this.$;t.preventDefault?t.preventDefault():t.returnValue=!1,e&&this.stopPropagation()},stopPropagation:function(){var e=this.$;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},getTarget:function(){var e=this.$.target||this.$.srcElement;return e?new CKEDITOR.dom.node(e):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var e=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(e.documentElement.scrollLeft||e.body.scrollLeft),y:this.$.pageY||this.$.clientY+(e.documentElement.scrollTop||e.body.scrollTop)}}}
1,CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(e){e&&(this.$=e)},CKEDITOR.dom.domObject.prototype={getPrivate:function(){var e;return(e=this.getCustomData("_"))||this.setCustomData("_",e={}),e},on:function(e){var t=this.getCustomData("_cke_nativeListeners");return t||(t={},this.setCustomData("_cke_nativeListeners",t)),t[e]||(t=t[e]=function(e,t){return function(n){"undefined"!=typeof CKEDITOR&&e.fire(t,new CKEDITOR.dom.event(n))}}(this,e),this.$.addEventListener?this.$.addEventListener(e,t,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+e,t)),CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(e){if(CKEDITOR.event.prototype.removeListener.apply(this,arguments),!this.hasListeners(e)){var t=this.getCustomData("_cke_nativeListeners"),n=t&&t[e];n&&(this.$.removeEventListener?this.$.removeEventListener(e,n,!1):this.$.detachEvent&&this.$.detachEvent("on"+e,n),delete t[e])}},removeAllListeners:function(){var e,t=this.getCustomData("_cke_nativeListeners");for(e in t){var n=t[e];this.$.detachEvent?this.$.detachEvent("on"+e,n):this.$.removeEventListener&&this.$.removeEventListener(e,n,!1),delete t[e]}CKEDITOR.event.prototype.removeAllListeners.call(this)}},function(e){var t={};CKEDITOR.on("reset",function(){t={}}),e.equals=function(e){try{return e&&e.$===this.$}catch(e){return!1}},e.setCustomData=function(e,n){var i=this.getUniqueId();return(t[i]||(t[i]={}))[e]=n,this},e.getCustomData=function(e){var n=this.$["data-cke-expando"];return(n=n&&t[n])&&e in n?n[e]:null},e.removeCustomData=function(e){var n,i,o;return(n=(n=this.$["data-cke-expando"])&&t[n])&&(i=n[e],o=e in n,delete n[e]),o?i:null},e.clearCustomData=function(){this.removeAllListeners();var e=this.$["data-cke-expando"];e&&delete t[e]},e.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())},CKEDITOR.event.implementOn(e)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(e){return e?new CKEDITOR.dom[e.nodeType==CKEDITOR.NODE_DOCUMENT?"document":e.nodeType==CKEDITOR.NODE_ELEMENT?"element":e.nodeType==CKEDITOR.NODE_TEXT?"text":e.nodeType==CKEDITOR.NODE_COMMENT?"comment":e.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](e):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(e,t){return e.append(this,t),e},clone:function(e,t){var n=this.$.cloneNode(e),i=function(n){if(n["data-cke-expando"]&&(n["data-cke-expando"]=!1),n.nodeType==CKEDITOR.NODE_ELEMENT&&(t||n.removeAttribute("id",!1),e)){n=n.childNodes;for(var o=0;o<n.length;o++)i(n[o])}};return i(n),new CKEDITOR.dom.node(n)},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(e){return e.$.parentNode.insertBefore(this.$,e.$.nextSibling),e},insertBefore:function(e){return e.$.parentNode.insertBefore(this.$,e.$),e},insertBeforeMe:function(e){return this.$.parentNode.insertBefore(e.$,this.$),e},getAddress:function(e){for(var t=[],n=this.getDocument().$.documentElement,i=this.$;i&&i!=n;){var o=i.parentNode;o&&t.unshift(this.getIndex.call({$:i},e)),i=o}return t},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(e){var t,n=this.$,i=-1;if(!this.$.parentNode)return i;do{(!e||n==this.$||n.nodeType!=CKEDITOR.NODE_TEXT||!t&&n.nodeValue)&&(i++,t=n.nodeType==CKEDITOR.NODE_TEXT)}while(n=n.previousSibling);return i},getNextSourceNode:function(e,t,n){if(n&&!n.call){var i=n;n=function(e){return!e.equals(i)}}var o;
1if(!(e=!e&&this.getFirst&&this.getFirst())){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;e=this.getNext()}for(;!e&&(o=(o||this).getParent());){if(n&&!1===n(o,!0))return null;e=o.getNext()}return!e||n&&!1===n(e)?null:t&&t!=e.type?e.getNextSourceNode(!1,t,n):e},getPreviousSourceNode:function(e,t,n){if(n&&!n.call){var i=n;n=function(e){return!e.equals(i)}}var o;if(!(e=!e&&this.getLast&&this.getLast())){if(this.type==CKEDITOR.NODE_ELEMENT&&n&&!1===n(this,!0))return null;e=this.getPrevious()}for(;!e&&(o=(o||this).getParent());){if(n&&!1===n(o,!0))return null;e=o.getPrevious()}return!e||n&&!1===n(e)?null:t&&e.type!=t?e.getPreviousSourceNode(!1,t,n):e},getPrevious:function(e){var t,n=this.$;do{t=(n=n.previousSibling)&&10!=n.nodeType&&new CKEDITOR.dom.node(n)}while(t&&e&&!e(t));return t},getNext:function(e){var t,n=this.$;do{t=(n=n.nextSibling)&&new CKEDITOR.dom.node(n)}while(t&&e&&!e(t));return t},getParent:function(e){var t=this.$.parentNode;return t&&(t.nodeType==CKEDITOR.NODE_ELEMENT||e&&t.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(t):null},getParents:function(e){var t=this,n=[];do{n[e?"push":"unshift"](t)}while(t=t.getParent());return n},getCommonAncestor:function(e){if(e.equals(this))return this;if(e.contains&&e.contains(this))return e;var t=this.contains?this:this.getParent();do{if(t.contains(e))return t}while(t=t.getParent());return null},getPosition:function(e){var t=this.$,n=e.$;if(t.compareDocumentPosition)return t.compareDocumentPosition(n);if(t==n)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&e.type==CKEDITOR.NODE_ELEMENT){if(t.contains){if(t.contains(n))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(n.contains(t))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in t)return t.sourceIndex<0||n.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:t.sourceIndex<n.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}t=this.getAddress(),e=e.getAddress(),n=Math.min(t.length,e.length);for(var i=0;i<=n-1;i++)if(t[i]!=e[i]){if(i<n)return t[i]<e[i]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;break}return t.length<e.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(e,t){var n,i=this.$;for(t||(i=i.parentNode);i;){if(i.nodeName&&(n=i.nodeName.toLowerCase(),"string"==typeof e?n==e:n in e))return new CKEDITOR.dom.node(i);try{i=i.parentNode}catch(e){i=null}}return null},hasAscendant:function(e,t){var n=this.$;for(t||(n=n.parentNode);n;){if(n.nodeName&&n.nodeName.toLowerCase()==e)return!0;n=n.parentNode}return!1},move:function(e,t){e.append(this.remove(),t)},remove:function(e){var t=this.$,n=t.parentNode;if(n){if(e)for(;e=t.firstChild;)n.insertBefore(t.removeChild(e),t);n.removeChild(t)}return this},replace:function(e){this.insertBefore(e),e.remove()},trim:function(){this.ltrim(),this.rtrim()},ltrim:function(){for(var e;this.getFirst&&(e=this.getFirst());){if(e.type==CKEDITOR.NODE_TEXT){var t=CKEDITOR.tools.ltrim(e.getText()),n=e.getLength();if(!t){e.remove();continue}t.length<n&&(e.split(n-t.length),this.$.removeChild(this.$.firstChild))}break}},rtrim:function(){for(var e;this.getLast&&(e=this.getLast());){if(e.type==CKEDITOR.NODE_TEXT){var t=CKEDITOR.tools.rtrim(e.getText()),n=e.getLength();if(!t){e.remove();continue}t.length<n&&(e.split(t.length),this.$.lastChild.parentNode.removeChild(this.$.lastChild))}break}CKEDITOR.env.needsBrFiller&&(e=this.$.lastChild)&&1==e.type&&"br"==e.nodeName.toLowerCase()&&e.parentNode.removeChild(e)},isReadOnly:function(){var e=this;if(this.type!=CKEDITOR.NODE_ELEMENT&&(e=this.getParent()),e&&void 0!==e.$.isContentEditable)return!(e.$.isContentEditable||e.data("cke-editable"));for(;e&&!e.data("cke-editable");){if("false"==e.getAttribute("contentEditable"))return!0;if("true"==e.getAttribute("contentEditable"))break;e=e.getParent()}return!e}}),CKEDITOR.dom.window=function(e){CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focu
1s()},getViewPaneSize:function(){var e=this.$.document,t="CSS1Compat"==e.compatMode;return{width:(t?e.documentElement.clientWidth:e.body.clientWidth)||0,height:(t?e.documentElement.clientHeight:e.body.clientHeight)||0}},getScrollPosition:function(){var e=this.$;return"pageXOffset"in e?{x:e.pageXOffset||0,y:e.pageYOffset||0}:(e=e.document,{x:e.documentElement.scrollLeft||e.body.scrollLeft||0,y:e.documentElement.scrollTop||e.body.scrollTop||0})},getFrame:function(){var e=this.$.frameElement;return e?new CKEDITOR.dom.element.get(e):null}}),CKEDITOR.dom.document=function(e){CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(e){if(this.$.createStyleSheet)this.$.createStyleSheet(e);else{var t=new CKEDITOR.dom.element("link");t.setAttributes({rel:"stylesheet",type:"text/css",href:e}),this.getHead().append(t)}},appendStyleText:function(e){if(this.$.createStyleSheet){var t=this.$.createStyleSheet("");t.cssText=e}else{var n=new CKEDITOR.dom.element("style",this);n.append(new CKEDITOR.dom.text(e,this)),this.getHead().append(n)}return t||n.$.sheet},createElement:function(e,t){var n=new CKEDITOR.dom.element(e,this);return t&&(t.attributes&&n.setAttributes(t.attributes),t.styles&&n.setStyles(t.styles)),n},createText:function(e){return new CKEDITOR.dom.text(e,this)},focus:function(){this.getWindow().focus()},getActive:function(){var e;try{e=this.$.activeElement}catch(e){return null}return new CKEDITOR.dom.element(e)},getById:function(e){return(e=this.$.getElementById(e))?new CKEDITOR.dom.element(e):null},getByAddress:function(e,t){for(var n=this.$.documentElement,i=0;n&&i<e.length;i++){var o=e[i];if(t)for(var a=-1,r=0;r<n.childNodes.length;r++){var s=n.childNodes[r];if((!0!==t||3!=s.nodeType||!s.previousSibling||3!=s.previousSibling.nodeType)&&++a==o){n=s;break}}else n=n.childNodes[o]}return n?new CKEDITOR.dom.node(n):null},getElementsByTag:function(e,t){return(!CKEDITOR.env.ie||document.documentMode>8)&&t&&(e=t+":"+e),new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(e))},getHead:function(){var e=this.$.getElementsByTagName("head")[0];return e=e?new CKEDITOR.dom.element(e):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),!0)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){return new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView)},write:function(e){this.$.open("text/html","replace"),CKEDITOR.env.ie&&(e=e.replace(/(?:^\s*<!DOCTYPE[^>]*?>)|^/i,'$&\n<script data-cke-temp="1">('+CKEDITOR.tools.fixDomain+")();<\/script>")),this.$.write(e),this.$.close()},find:function(e){return new CKEDITOR.dom.nodeList(this.$.querySelectorAll(e))},findOne:function(e){return(e=this.$.querySelector(e))?new CKEDITOR.dom.element(e):null},_getHtml5ShivFrag:function(){var e=this.getCustomData("html5ShivFrag");return e||(e=this.$.createDocumentFragment(),CKEDITOR.tools.enableHtml5Elements(e,!0),this.setCustomData("html5ShivFrag",e)),e}}),CKEDITOR.dom.nodeList=function(e){this.$=e},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(e){return e<0||e>=this.$.length?null:(e=this.$[e])?new CKEDITOR.dom.node(e):null}},CKEDITOR.dom.element=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createElement(e)),CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.element.get=function(e){return(e="string"==typeof e?document.getElementById(e)||document.getElementsByName(e)[0]:e)&&(e.$?e:new CKEDITOR.dom.element(e))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(e,t){var n=new CKEDITOR.dom.element("div",t);return n.setHtml(e),n.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(e,t,n,i){var o=t.getCustomData("list_marker_id")||t.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),a=t.getCustomData("list_marker_names")||t.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");return e[o]=t,a[n]=1,t.setCustomData(n,i)},CKEDITOR.dom.element.clearAllMarkers=function(e){for(var t in e)CKEDITOR.dom.element.clearMarkers(e,e[t],1)},CKEDITOR.dom.element.clearMarkers=function(e,t,n){var i,o=t.getCustomData("list_marker_names"),a=t.getCustomData("list_marker_id");for(i in o)t.removeCustomData(i);t.removeCustomData("list_marker_names"),n&&(t.removeCustomData("list_marker_id"),delete e[a])},function(){function e(e){var t=!0;return e.$.id||(e.$.id="cke_tmp_"+CKEDITOR.tools.getNextNumber(),t=!1),function(){t||e.removeAttribute("id")}}function t(e,t){return"#"+e.$.id+" "+t.split(/,\s*/).join(", #"+e.$.id+" ")}function n(e){for(var t=0,n=0,o=i[e].length;n<o;n++)t+=parseInt(this.getComputedStyle(i[e][n])||0,10)||0;return t}CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:function(e){var t=this.$.className;
1return t&&(RegExp("(?:^|\\s)"+e+"(?:\\s|$)","").test(t)||(t=t+" "+e)),this.$.className=t||e,this},removeClass:function(e){var t=this.getAttribute("class");return t&&(e=RegExp("(?:^|\\s+)"+e+"(?=\\s|$)","i")).test(t)&&((t=t.replace(e,"").replace(/^\s+/,""))?this.setAttribute("class",t):this.removeAttribute("class")),this},hasClass:function(e){return RegExp("(?:^|\\s+)"+e+"(?=\\s|$)","").test(this.getAttribute("class"))},append:function(e,t){return"string"==typeof e&&(e=this.getDocument().createElement(e)),t?this.$.insertBefore(e.$,this.$.firstChild):this.$.appendChild(e.$),e},appendHtml:function(e){if(this.$.childNodes.length){var t=new CKEDITOR.dom.element("div",this.getDocument());t.setHtml(e),t.moveChildren(this)}else this.setHtml(e)},appendText:function(e){void 0!=this.$.text?this.$.text=this.$.text+e:this.append(new CKEDITOR.dom.text(e))},appendBogus:function(e){if(e||CKEDITOR.env.needsBrFiller){for(e=this.getLast();e&&e.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(e.getText());)e=e.getPrevious();e&&e.is&&e.is("br")||(e=this.getDocument().createElement("br"),CKEDITOR.env.gecko&&e.setAttribute("type","_moz"),this.append(e))}},breakParent:function(e){var t=new CKEDITOR.dom.range(this.getDocument());t.setStartAfter(this),t.setEndAfter(e),e=t.extractContents(),t.insertN
1ode(this.remove()),e.insertAfterNode(this)},contains:CKEDITOR.env.ie||CKEDITOR.env.webkit?function(e){var t=this.$;return e.type!=CKEDITOR.NODE_ELEMENT?t.contains(e.getParent().$):t!=e.$&&t.contains(e.$)}:function(e){return!!(16&this.$.compareDocumentPosition(e.$))},focus:function(){function e(){try{this.$.focus()}catch(e){}}return function(t){t?CKEDITOR.tools.setTimeout(e,100,this):e.call(this)}}(),getHtml:function(){var e=this.$.innerHTML;return CKEDITOR.env.ie?e.replace(/<\?[^>]*>/g,""):e},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var e=this.$.ownerDocument.createElement("div");return e.appendChild(this.$.cloneNode(!0)),e.innerHTML},getClientRect:function(){var e=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());return!e.width&&(e.width=e.right-e.left),!e.height&&(e.height=e.bottom-e.top),e},setHtml:CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(e){try{var t=this.$;if(this.getParent())return t.innerHTML=e;var n=this.getDocument()._getHtml5ShivFrag();return n.appendChild(t),t.innerHTML=e,n.removeChild(t),e}catch(n){for(this.$.innerHTML="",(t=new CKEDITOR.dom.element("body",this.getDocument())).$.innerHTML=e,t=t.getChildren();t.count();)this.append(t.getItem(0));return e}}:function(e){return this.$.innerHTML=e},setText:function(){var e=document.createElement("p");return e.innerHTML="x",e=e.textContent,function(t){this.$[e?"textContent":"innerText"]=t}}(),getAttribute:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){switch(e){case"class":e="className";break;case"http-equiv":e="httpEquiv";break;case"name":return this.$.name;case"tabindex":return 0!==(e=this.$.getAttribute(e,2))&&0===this.$.tabIndex&&(e=null),e;case"checked":return((e=this.$.attributes.getNamedItem(e)).specified?e.nodeValue:this.$.checked)?"checked":null;case"hspace":case"value":return this.$[e];case"style":return this.$.style.cssText;case"contenteditable":case"contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(e,2)}:function(e){return this.$.getAttribute(e,2)},getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:CKEDITOR.env.ie?function(e){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(e)]}:function(e){var t=this.getWindow().$.getComputedStyle(this.$,null);return t?t.getPropertyValue(e):""},getDtd:function(){var e=CKEDITOR.dtd[this.getName()];return this.getDtd=function(){return e},e},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:CKEDITOR.env.ie?function(){var e=this.$.tabIndex;return 0===e&&!CKEDITOR.dtd.$tabIndex[this.getName()]&&0!==parseInt(this.getAttribute("tabindex"),10)&&(e=-1),e}:CKEDITOR.env.webkit?function(){var e=this.$.tabIndex;return void 0==e&&(e=parseInt(this.getAttribute("tabindex"),10),isNaN(e)&&(e=-1)),e}:function(){return this.$.tabIndex},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var e=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&!(document.documentMode>8)){var t=this.$.scopeName;"HTML"!=t&&(e=t.toLowerCase()+":"+e)}return(this.getName=function(){return e})()},getValue:function(){return this.$.value},getFirst:function(e){var t=this.$.firstChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getNext(e)),t},getLast:function(e){var t=this.$.lastChild;return(t=t&&new CKEDITOR.dom.node(t))&&e&&!e(t)&&(t=t.getPrevious(e)),t},getStyle:function(e){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(e)]},is:function(){var e=this.getName();if("object"==typeof arguments[0])return!!arguments[0][e];for(var t=0;t<arguments.length;t++)if(arguments[t]==e)return!0;return!1},isEditable:function(e){var t=this.getName();return!(this.isReadOnly()||"none"==this.getComputedStyle("display")||"hidden"==this.getComputedStyle("visibility")||CKEDITOR.dtd.$nonEditable[t]||CKEDITOR.dtd.$empty[t]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())&&(!1===e||!(!(e=CKEDITOR.dtd[t]||CKEDITOR.dtd.span)||!e["#"]))},isIdentical:function(e){var t=this.clone(0,1);e=e.clone(0,1);if(t.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),e.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]),t.$.isEqualNode)return t.$.style.cssText=CKEDITOR.tools.normalizeCssText(t.$.style.cssText),e.$.style.cssText=CKEDITOR.tools.normalizeCssText(e.$.style.cssText),t.$.isEqualNode(e.$);if(t=t.getOuterHtml(),e=e.getOuterHtml(),CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var n=this.getParent();n.type==CKEDITOR.NODE_ELEMENT&&((n=n.clone()).setHtml(t),t=n.getHtml(),n.setHtml(e),e=n.getHtml())}return t==e},isVisible:function(){var e,t,n=(this.$.offsetHeight||this.$.offsetWidth)&&"hidden"
1!=this.getComputedStyle("visibility");return n&&CKEDITOR.env.webkit&&!(e=this.getWindow()).equals(CKEDITOR.document.getWindow())&&(t=e.$.frameElement)&&(n=new CKEDITOR.dom.element(t).isVisible()),!!n},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return!1;for(var e=this.getChildren(),t=0,n=e.count();t<n;t++){var i=e.getItem(t);if((i.type!=CKEDITOR.NODE_ELEMENT||!i.data("cke-bookmark"))&&(i.type==CKEDITOR.NODE_ELEMENT&&!i.isEmptyInlineRemoveable()||i.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(i.getText())))return!1}return!0},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(){for(var e=this.$.attributes,t=0;t<e.length;t++){var n=e[t];switch(n.nodeName){case"class":if(this.getAttribute("class"))return!0;case"data-cke-expando":continue;default:if(n.specified)return!0}}return!1}:function(){var e=this.$.attributes,t=e.length,n={"data-cke-expando":1,_moz_dirty:1};return t>0&&(t>2||!n[e[0].nodeName]||2==t&&!n[e[1].nodeName])},hasAttribute:function(){function e(e){var t=this.$.attributes.getNamedItem(e);if("input"==this.getName())switch(e){case"class":return this.$.className.length>0;case"checked":return!!this.$.checked;case"value":return"checkbox"==(e=this.getAttribute("type"))||"radio"==e?"on"!=this.$.value:!!this.$.value}return!!t&&t.specified}return CKEDITOR.env.ie?CKEDITOR.env.version<8?function(t){return"name"==t?!!this.$.name:e.call(this,t)}:e:function(e){return!!this.$.attributes.getNamedItem(e)}}(),hide:function(){this.setStyle("display","none")},moveChildren:function(e,t){var n=this.$;if(n!=(e=e.$)){var i;if(t)for(;i=n.lastChild;)e.insertBefore(n.removeChild(i),e.firstChild);else for(;i=n.firstChild;)e.appendChild(n.removeChild(i))}},mergeSiblings:function(){function e(e,t,n){if(t&&t.type==CKEDITOR.NODE_ELEMENT){for(var i=[];t.data("cke-bookmark")||t.isEmptyInlineRemoveable();)if(i.push(t),!(t=n?t.getNext():t.getPrevious())||t.type!=CKEDITOR.NODE_ELEMENT)return;if(e.isIdentical(t)){for(var o=n?e.getLast():e.getFirst();i.length;)i.shift().move(e,!n);t.moveChildren(e,!n),t.remove(),o&&o.type==CKEDITOR.NODE_ELEMENT&&o.mergeSiblings()}}}return function(t){(!1===t||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a"))&&(e(this,this.getNext(),!0),e(this,this.getPrevious()))}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var e=function(e,t){return this.$.setAttribute(e,t),this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(t,n){return"class"==t?this.$.className=n:"style"==t?this.$.style.cssText=n:"tabindex"==t?this.$.tabIndex=n:"checked"==t?this.$.checked=n:"contenteditable"==t?e.call(this,"contentEditable",n):e.apply(this,arguments),this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(t,n){if("src"==t&&n.match(/^http:\/\//))try{e.apply(this,arguments)}catch(e){}else e.apply(this,arguments);return this}:e}(),setAttributes:function(e){for(var t in e)this.setAttribute(t,e[t]);return this},setValue:function(e){return this.$.value=e,this},removeAttribute:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)?function(e){"class"==e?e="className":"tabindex"==e?e="tabIndex":"contenteditable"==e&&(e="contentEditable"),this.$.removeAttribute(e)}:function(e){this.$.removeAttribute(e)},removeAttributes:function(e){if(CKEDITOR.tools.isArray(e))for(var t=0;t<e.length;t++)this.removeAttribute(e[t]);else for(t in e)e.hasOwnProperty(t)&&this.removeAttribute(t)},removeStyle:function(e){if((i=this.$.style).removeProperty||"border"!=e&&"margin"!=e&&"padding"!=e)i.removeProperty?i.removeProperty(e):i.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(e)),this.$.style.cssText||this.removeAttribute("style");else{var t,n=["top","left","right","bottom"];"border"==e&&(t=["color","style","width"]);for(var i=[],o=0;o<n.length;o++)if(t)for(var a=0;a<t.length;a++)i.push([e,n[o],t[a]].join("-"));else i.push([e,n[o]].join("-"));for(e=0;e<i.length;e++)this.removeStyle(i[e])}},setStyle:function(e,t){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(e)]=t,this},setStyles:function(e){for(var t in e)this.setStyle(t,e[t]);return this},setOpacity:function(e){CKEDITOR.env.ie&&CKEDITOR.env.version<9?(e=Math.round(100*e),this.setStyle("filter",e>=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+e+")")):this.setStyle("opacity",e)},unselectable:function(){if(this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none")),CKEDITOR.env.ie){this.setAttribute("unselectable","on");for(var e=this.getElementsByTag("*"),t=0,n=e.count();t<n;t++)e.getItem(t).setAttribute("unselectable","on")}},getPositionedAncestor:function(){for(var e=this;"html"!=e.getName();){if("static"!=e.getComputedStyle("position"))return e;e=e.getParent()}return null},getDocumentPosition:function(e){var t=0,n=0,i=this.getDocument(),o=i.getBody(),a="BackCompat"==i.$.compatMode;if(document.documentElement.getBoundingClientRect){var r=this.$.getBoundingClientRect(),s=i.$.documentElement,l=s.clientTop||o.$.clientTop||0,c=s.clientLeft||o.$.clientLeft||0,d=!0;CKEDITOR.env.ie&&(d=i.getDocumentElement().contains(this),i=i.getBody().contains(this),d=a&&i||!a&&d),d&&(t=r.left+(!a&&s.scrollLeft||o.$.scrollLeft),t-=c,n=r.top+(!a&&s.scrollTop||o.$.scrollTop),n-=l)}else for(o=this,i=null;o&&"body"!=o.getName()&&"html"!=o.getName();){for(t+=o.$.offsetLeft-o.$.scrollLeft,n+=o.$.offsetTop-o.$.scrollTop,o.equals(this)||(t+=o.$.clientLeft||0,n+=o.$.clientTop||0);i&&!i.equals(o);)t-=i.$.scrollLeft,n-=i.$.scrollTop,i=i.getParent();i=o,o=(r=o.$.offsetParent)?new CKEDITOR.dom.element(r):null}return e&&(o=this.getWindow(),i=e.getWindow(),!o.equals(i)&&o.$.frameElement&&(t+=(e=new CKEDITOR.dom.element(o.$.frameElement).getDocumentPosition(e)).x,n+=e.y)),document.documentElement.getBoundingClientRect||!CKEDITOR.env.gecko||a||(t+=this.$.clientLeft?1:0,n+=this.$.clientTop?1:0),{x:t,y:n}},scrollIntoView:function(e){var t=this.getParent();
1if(t)do{if((t.$.clientWidth&&t.$.clientWidth<t.$.scrollWidth||t.$.clientHeight&&t.$.clientHeight<t.$.scrollHeight)&&!t.is("body")&&this.scrollIntoParent(t,e,1),t.is("html")){var n=t.getWindow();try{var i=n.$.frameElement;i&&(t=new CKEDITOR.dom.element(i))}catch(e){}}}while(t=t.getParent())},scrollIntoParent:function(e,t,n){function i(t,n){/body|html/.test(e.getName())?e.getWindow().$.scrollBy(t,n):(e.$.scrollLeft=e.$.scrollLeft+t,e.$.scrollTop=e.$.scrollTop+n)}function o(e,t){var n={x:0,y:0};if(!e.is(d?"body":"html")){var i=e.$.getBoundingClientRect();n.x=i.left,n.y=i.top}return(i=e.getWindow()).equals(t)||(i=o(CKEDITOR.dom.element.get(i.$.frameElement),t),n.x=n.x+i.x,n.y=n.y+i.y),n}function a(e,t){return parseInt(e.getComputedStyle("margin-"+t)||0,10)||0}var r,s,l,c;!e&&(e=this.getWindow());var d="BackCompat"==(l=e.getDocument()).$.compatMode;e instanceof CKEDITOR.dom.window&&(e=d?l.getBody():l.getDocumentElement()),s=o(this,l=e.getWindow());var u=o(e,l),h=this.$.offsetHeight;r=this.$.offsetWidth;var f=e.$.clientHeight,p=e.$.clientWidth;l=s.x-a(this,"left")-u.x||0,c=s.y-a(this,"top")-u.y||0,r=s.x+r+a(this,"right")-(u.x+p)||0,s=s.y+h+a(this,"bottom")-(u.y+f)||0,(c<0||s>0)&&i(0,!0===t?c:!1===t?s:c<0?c:s),n&&(l<0||r>0)&&i(l<0?l:r,0)},setState:function(e,t,n){switch(t=t||"cke",e){case CKEDITOR.TRISTATE_ON:this.addClass(t+"_on"),this.removeClass(t+"_off"),this.removeClass(t+"_disabled"),n&&this.setAttribute("aria-pressed",!0),n&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(t+"_disabled"),this.removeClass(t+"_off"),this.removeClass(t+"_on"),n&&this.setAttribute("aria-disabled",!0),n&&this.removeAttribute("aria-pressed");break;default:this.addClass(t+"_off"),this.removeClass(t+"_on"),this.removeClass(t+"_disabled"),n&&this.removeAttribute("aria-pressed"),n&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var e=this.$;try{e.contentWindow.document}catch(t){e.src=e.src}return e&&new CKEDITOR.dom.document(e.contentWindow.document)},copyAttributes:function(e,t){for(var n=this.$.attributes,i=(t=t||{},0);i<n.length;i++){var o,a=n[i],r=a.nodeName.toLowerCase();r in t||("checked"==r&&(o=this.getAttribute(r))?e.setAttribute(r,o):CKEDITOR.env.ie&&!this.hasAttribute(r)||(null===(o=this.getAttribute(r))&&(o=a.nodeValue),e.setAttribute(r,o)))}""!==this.$.style.cssText&&(e.$.style.cssText=this.$.style.cssText)},renameNode:function(e){if(this.getName()!=e){var t=this.getDocument();e=new CKEDITOR.dom.element(e,t);this.copyAttributes(e),this.moveChildren(e),this.getParent()&&this.$.parentNode.replaceChild(e.$,this.$),e.$["data-cke-expando"]=this.$["data-cke-expando"],this.$=e.$,delete this.getName}},getChild:function(){function e(e,t){var n=e.childNodes;if(t>=0&&t<n.length)return n[t]}return function(t){var n=this.$;if(t.slice)for(;t.length>0&&n;)n=e(n,t.shift());else n=e(n,t);return n?new CKEDITOR.dom.node(n):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on("contextmenu",function(e){e.data.getTarget().hasClass("cke_enable_context_menu")||e.data.preventDefault()})},getDirection:function(e){return e?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(e,t){return e="data-"+e,void 0===t?this.getAttribute(e):(!1===t?this.removeAttribute(e):this.setAttribute(e,t),null)},getEditor:function(){var e,t,n=CKEDITOR.instances;for(e in n)if((t=n[e]).element.equals(this)&&t.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO)return t;return null},find:function(n){var i=e(this);n=new CKEDITOR.dom.nodeList(this.$.querySelectorAll(t(this,n)));return i(),n},findOne:function(n){var i=e(this);n=this.$.querySelector(t(this,n));return i(),n?new CKEDITOR.dom.element(n):null},forEach:function(e,t,n){if(!(n||t&&this.type!=t))var i=e(this);if(!1!==i){n=this.getChildren();for(var o=0;o<n.count();o++)(i=n.getItem(o)).type==CKEDITOR.NODE_ELEMENT?i.forEach(e,t):(!t||i.type==t)&&e(i)}}});var i={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(e,t,i){"number"==typeof t&&(!i||CKEDITOR.env.ie&&CKEDITOR.env.quirks||(t-=n.call(this,e)),this.setStyle(e,t+"px"))},CKEDITOR.dom.element.prototype.getSize=function(e,t){var i=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(e)],this.$["client"+CKEDITOR.tools.capitalize(e)])||0;return t&&(i-=n.call(this,e)),i}}(),CKEDITOR.dom.documentFragment=function(e){e=e||CKEDITOR.document,this.$=e.type==CKEDITOR.NODE_DOCUMENT?e.$.createDocumentFragment():e},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(e){(e=e.$).parentNode.insertBefore(this.$,e.nextSibling)}},!0,{append:1,appendBogus:1,getFirst:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function e(e,t){var n=this.range;if(this._.end)return null;if(!this._.start){if(this._.start=1,n.collapsed)return this.end(),null;n.optimize()}var i,o=n.startContainer;i=n.endContainer;var a,r=n.startOffset,s=n.endOffset,l=this.guard,c=this.type,d=e?"getPreviousSourceNode":"getNextSourceNode";if(!e&&!this._.guardLTR){var u=i.type==CKEDITOR.NODE_ELEMENT?i:i.getParent(),h=i.type==CKEDITOR.NODE_ELEMENT?i.getChild(s):i.getNext();this._.guardLTR=function(e,t){return!(t&&u.equals(e)||h&&e.equals(h)||e.type==CKEDITOR.NODE_ELEMENT&&t&&e.equals(n.root))}}if(e&&!this._.guardRTL){var f=o.type==CKEDITOR.NODE_ELEMENT?o:o.getParent(),p=o.type==CKEDITOR.NODE_ELEMENT?r?o.getChild(r-1):null:o.getPrevious();this._.guardRTL=function(e,t){return!(t&&f.equals(e)||p&&e.equals(p)||e.type==CKEDITOR.NODE_ELEMENT&&t&&e.equals(n.root))}}var m=e?this._.guardRTL:this._.guardLTR;for(a=l?function(e,t){return!1!==m(e,t)&&l(e,t)}:m,this.current?i=this.current[d](!1,c,a):(e?i.type==CKEDITOR.NODE_ELEMENT&&(i=s>0?i.getChild(s-1):!1===a(i,!0)?null:i.getPreviousSourceNode(!0,c,a)):(i=o).type!=CKEDITOR.NODE_ELEMENT||(i=i.getChild(r))||(i=!1===a(o,!0)?null:o.getNextSourceNode(!0,c,a)),i&&!1===a(i)&&(i=null));i&&!this._.end;
1){if(this.current=i,this.evaluator&&!1===this.evaluator(i)){if(t&&this.evaluator)return!1}else if(!t)return i;i=i[d](!1,c,a)}return this.end(),this.current=null}function t(t){for(var n,i=null;n=e.call(this,t);)i=n;return i}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(e){this.range=e,this._={}},proto:{end:function(){this._.end=1},next:function(){return e.call(this)},previous:function(){return e.call(this,1)},checkForward:function(){return!1!==e.call(this,0,1)},checkBackward:function(){return!1!==e.call(this,1,1)},lastForward:function(){return t.call(this)},lastBackward:function(){return t.call(this,1)},reset:function(){delete this.current,this._={}}}});var n={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1},i={absolute:1,fixed:1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(e){return!("none"!=this.getComputedStyle("float")||this.getComputedStyle("position")in i||!n[this.getComputedStyle("display")])||!!(this.is(CKEDITOR.dtd.$block)||e&&this.is(e))},CKEDITOR.dom.walker.blockBoundary=function(e){return function(t){return!(t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary(e))}},CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})},CKEDITOR.dom.walker.bookmark=function(e,t){function n(e){return e&&e.getName&&"span"==e.getName()&&e.data("cke-bookmark")}return function(i){var o,a;return o=i&&i.type!=CKEDITOR.NODE_ELEMENT&&(a=i.getParent())&&n(a),o=e?o:o||n(i),!!(t^o)}},CKEDITOR.dom.walker.whitespaces=function(e){return function(t){var n;return t&&t.type==CKEDITOR.NODE_TEXT&&(n=!CKEDITOR.tools.trim(t.getText())||CKEDITOR.env.webkit&&"​"==t.getText()),!!(e^n)}},CKEDITOR.dom.walker.invisible=function(e){var t=CKEDITOR.dom.walker.whitespaces();return function(n){return t(n)?n=1:(n.type==CKEDITOR.NODE_TEXT&&(n=n.getParent()),n=!n.$.offsetHeight),!!(e^n)}},CKEDITOR.dom.walker.nodeType=function(e,t){return function(n){return!!(t^n.type==e)}},CKEDITOR.dom.walker.bogus=function(e){function t(e){return!a(e)&&!r(e)}return function(n){var i=CKEDITOR.env.needsBrFiller?n.is&&n.is("br"):n.getText&&o.test(n.getText());return i&&(i=n.getParent(),n=n.getNext(t),i=i.isBlockBoundary()&&(!n||n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary())),!!(e^i)}},CKEDITOR.dom.walker.temp=function(e){return function(t){return t.type!=CKEDITOR.NODE_ELEMENT&&(t=t.getParent()),t=t&&t.hasAttribute("data-cke-temp"),!!(e^t)}};var o=/^[\t\r\n ]*(?: |\xa0)$/,a=CKEDITOR.dom.walker.whitespaces(),r=CKEDITOR.dom.walker.bookmark(),s=CKEDITOR.dom.walker.temp();CKEDITOR.dom.walker.ignored=function(e){return function(t){return t=a(t)||r(t)||s(t),!!(e^t)}};var l=CKEDITOR.dom.walker.ignored(),c=function(e){var t,n={};for(t in e)CKEDITOR.dtd[t]["#"]&&(n[t]=1);return n}(CKEDITOR.dtd.$block);CKEDITOR.dom.walker.editable=function(e){return function(t){return!!(e^function(e){if(l(e))return!1;if(e.type==CKEDITOR.NODE_TEXT)return!0;if(e.type==CKEDITOR.NODE_ELEMENT){if(e.is(CKEDITOR.dtd.$inline)||e.is("hr")||"false"==e.getAttribute("contenteditable"))return!0;var t;if((t=!CKEDITOR.env.needsBrFiller)&&(t=e.is(c)))e:{t=0;for(var n=e.getChildCount();t<n;++t)if(!l(e.getChild(t))){t=!1;break e}t=!0}if(t)return!0}return!1}(t))}},CKEDITOR.dom.element.prototype.getBogus=function(){var e=this;do{e=e.getPreviousSourceNode()}while(r(e)||a(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.is(CKEDITOR.dtd.$inline)&&!e.is(CKEDITOR.dtd.$empty));return!(!e||!(CKEDITOR.env.needsBrFiller?e.is&&e.is("br"):e.getText&&o.test(e.getText())))&&e}}(),CKEDITOR.dom.range=function(e){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null,this.collapsed=!0;var t=e instanceof CKEDITOR.dom.document;this.document=t?e:e.getDocument(),this.root=t?e.getBody():e},function(){function e(){var e=!1,t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(!0),i=CKEDITOR.dom.walker.bogus();return function(a){return!(!n(a)&&!t(a))||(i(a)&&!e?e=!0:!(a.type==CKEDITOR.NODE_TEXT&&(a.hasAscendant("pre")||CKEDITOR.tools.trim(a.getText()).length)||a.type==CKEDITOR.NODE_ELEMENT&&!a.is(o)))}}function t(e){return function(){var t;return this[e?"getPreviousNode":"getNextNode"](function(e){return!t&&l(e)&&(t=e),s(e)&&!(a(e)&&e.equals(t))})}}var n=function(e){e.collapsed=e.startContainer&&e.endContainer&&e.startContainer.equals(e.endContainer)&&e.startOffset==e.endOffset},i=function(e,t,n,i){e.optimizeBookmark();var o,a,r=e.startContainer,s=e.endContainer,l=e.startOffset,c=e.endOffset;s.type==CKEDITOR.NODE_TEXT?s=s.split(c):s.getChildCount()>0&&(c>=s.getChildCount()?(s=s.append(e.document.createText("")),a=!0):s=s.getChild(c)),r.type==CKEDITOR.NODE_TEXT?(r.split(l),r.equals(s)&&(s=r.getNext())):l?l>=r.getChildCount()?(r=r.append(e.document.createText("")),o=!0):r=r.getChild(l).getPrevious():(r=r.append(e.document.createText(""),1),o=!0);var d,u,h;l=r.getParents(),c=s.getParents();for(d=0;d<l.length&&(u=l[d],h=c[d],u.equals(h));d++);for(var f,p,m,g=n,E=d;E<l.length;E++){for(f=l[E],g&&!f.equals(r)&&(p=g.append(f.clone())),f=f.getNext();f&&(!f.equals(c[E])&&!f.equals(s));)m=f.getNext(),2==t?g.append(f.clone(!0)):(f.remove(),1==t&&g.append(f)),f=m;g&&(g=p)}for(g=n,n=d;n<c.length;n++){if(f=c[n],t>0&&!f.equals(s)&&(p=g.append(f.clone())),!l[n]||f.$.parentNode!=l[n].$.parentNode)for(f=f.getPrevious();f&&(!f.equals(l[n])&&!f.equals(r));)m=f.getPrevious(),2==t?g.$.insertBefore(f.$.cloneNode(!0),g.$.firstChild):(f.remove(),1==t&&g.$.insertBefore(f.$,g.$.firstChild)),f=m;g&&(g=p)}2==t?((u=e.startContainer).type==CKEDITOR.NODE_TEXT&&(u.$.data=u.$.data+u.$.nextSibling.data,u.$.parentNode.removeChild(u.$.nextSibling)),(e=e.endContainer).type==CKEDITOR.NODE_TEXT&&e.$.nextSibling&&(e.$.data=e.$.data+e.$.nextSibling.data,e.$.parentNode.removeChild(e.$.nextSibling))):(u&&h&&(r.$.parentNode!=u.$.parentNode||s.$.parentNode!=h.$.parentNode)&&(t=h.getIndex(),o&&h.$.parentNode==r.$.parentNode&&t--,i&&u.type==CKEDITOR.NODE_ELEMENT?((i=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',e.document)).insertAfter(u),u.mergeSiblings(!1),e.moveToBookmark({startNode:i})):e.setStart(h.getParent(),t)),e.collapse(!0)),o&&r.remove(),a&&s.$.parentNode&&s.remove()},o={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,var:1},a=CKEDITOR.dom.walker.bogus(),r=/^[\t\r\n ]*(?: |\xa0)$/,s=CKEDITOR.dom.walker.editable(),l=CKEDITOR.dom.walker.ignored(!0);CKEDITOR.dom.range.prototype={clone:function(){var e=new CKEDITOR.dom.range(this.root);return e.startContainer=this.startContainer,e.startOffset=this.startOffset,e.endContainer=this.endContainer,e.endOffset=this.endOffset,e.collapsed=this.collapsed,e},collapse:function(e){e?(this.endContainer=this.startContainer,this.endOffset=this.startOffset):(this.startContainer=this.endContainer,this.startOffset=this.endOffset),this.collapsed=!0},cloneContents:function(){var e=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||i(this,2,e),e},deleteContents:function(e){this.collapsed||i(this,0,null,e)},extractContents:function(e){var t=new CKEDITOR.dom.documentFragment(this.document);return this.collapsed||i(this,1,t,e),t},createBookmark:function(e){var t,n,i,o,a=this.collapsed;return(t=this.document.createElement("span")).data("cke-bookmark",1),t.setStyle("display","none"),t.setHtml(" "),e&&(i="cke_bm_"+CKEDITOR.tools.getNextNumber(),t.setAttribute("id",i+(a?"C":"S"))),a||((n=t.clone()).setHtml(" "),e&&n.setAttribute("id",i+"E"),(o=this.clone()).collapse(),o.insertNode(n)),(o=this.clone()).collapse(!0),o.insertNode(t),n?(this.setStartAfter(t),this.setEndBefore(n)):this.moveToPosition(t,CKEDITOR.POSITION_AFTER_END),{startNode:e?i+(a?"C":"S"):t,endNode:e?i+"E":n,serializable:e,collapsed:a}},createBookmark2:function(){function e(e){var t,n=e.container,i=e.offset,o=i;if((t=(t=n).type!=CKEDITOR.NODE_ELEMENT||0===o||o==t.getChildCount()?0:t.getChild(o-1).type==CKEDITOR.NODE_TEXT&&t.getChild(o).type==CKEDITOR.NODE_TEXT)&&(i=(n=n.getChild(i-1)).getLength()),n.type==CKEDITOR.NODE_ELEMENT&&i>1&&(i=n.getChild(i-1).getIndex(!0)+1),n.type==CKEDITOR.NODE_TEXT){for(t=n,o=0;(t=t.getPrevious())&&t.type==CKEDITOR.NODE_TEXT;)o+=t.getLength();i+=o}e.container=n,e.offset=i}return function(t){var n=this.collapsed,i={container:this.startContainer,offset:this.startOffset},o={container:this.endContainer,offset:this.endOffset};return t&&(e(i),n||e(o)),{start:i.container.getAddress(t),end:n?null:o.container.getAddress(t),startOffset:i.offset,endOffset:o.offset,normalized:t,collapsed:n,is2:!0}}}(),moveToBookmark:function(e){if(e.is2){var t=this.document.getByAddress(e.start,e.normalized),n=e.startOffset,i=e.end&&this.document.getByAddress(e.end,e.normalized);e=e.endOffset;this.setStart(t,n),i?this.setEnd(i,e):this.collapse(!0)}else t=(n=e.serializable)?this.document.getById(e.startNode):e.startNode,e=n?this.document.getById(e.endNode):e.endNode,this.setStartBefore(t),t.remove(),e?(this.setEndBefore(e),e.remove()):this.collapse(!0)},getBoundaryNodes:function(){var e,t=this.startContainer,n=this.endContainer,i=this.startOffset,o=this.endOffset;if(t.type==CKEDITOR.NODE_ELEMENT)if((e=t.getChildCount())>i)t=t.getChild(i);else if(e<1)t=t.getPreviousSourceNode();else{for(t=t.$;t.lastChild;)t=t.lastChild;t=(t=new CKEDITOR.dom.node(t)).getNextSourceNode()||t}if(n.type==CKEDITOR.NODE_ELEMENT)if((e=n.getChildCount())>o)n=n.getChild(o).getPreviousSourceNode(!0);else if(e<1)n=n.getPreviousSourceNode();else{for(n=n.$;n.lastChild;)n=n.lastChild;n=new CKEDITOR.dom.node(n)}return t.getPosition(n)&CKEDITOR.POSITION_FOLLOWING&&(t=n),{startNode:t,endNode:n}},getCommonAncestor:function(e,t){var n=this.startContainer,i=this.endContainer;n=n.equals(i)?e&&n.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?n.getChild(this.startOffset):n:n.getCommonAncestor(i);return t&&!n.is?n.getParent():n},optimize:function(){var e=this.startContainer,t=this.startOffset;e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setStartAfter(e):this.setStartBefore(e)),e=this.endContainer,t=this.endOffset,e.type!=CKEDITOR.NODE_ELEMENT&&(t?t>=e.getLength()&&this.setEndAfter(e):this.setEndBefore(e))},optimizeBookmark:function(){var e=this.startContainer,t=this.endContainer;e.is&&e.is("span")&&e.data("cke-bookmark")&&this.setStartAt(e,CKEDITOR.POSITION_BEFORE_START),t&&t.is&&t.is("span")&&t.data("cke-bookmark")&&this.setEndAt(t,CKEDITOR.POSITION_AFTER_END)},trim:function(e,t){var n=this.startContainer,i=this.startOffset,o=this.collapsed;if((!e||o)&&n&&n.type==CKEDITOR.NODE_TEXT){if(i)if(i>=n.getLength())i=n.getIndex()+1,n=n.getParent();else{var a=n.split(i);i=n.getIndex()+1,n=n.getParent();this.startContainer.equals(this.endContainer)?this.setEnd(a,this.endOffset-this.startOffset):n.equals(this.endContainer)&&(this.endOffset=this.endOffset+1)}else i=n.getIndex(),n=n.getParent();if(this.setStart(n,i),o)return void this.collapse(!0)}n=this.endContainer,i=this.endOffset,t||o||!n||n.type!=CKEDITOR.NODE_TEXT||(i?(i>=n.getLength()||n.split(i),i=n.getIndex()+1):i=n.getIndex(),n=n.getParent(),this.setEnd(n,i))},enlarge:function(e,t){function n(e){return e&&e.type==CKEDITOR.NODE_ELEMENT&&e.hasAttribute("contenteditable")?null:e}var i=RegExp(/[^\s\ufeff]/);switch(e){case CKEDITOR.ENLARGE_INLINE:var o=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var a,r,s,l,c,d,u,h=this.getCommonAncestor(),f=this.root,p=!1;d=this.startContainer;var m=this.startOffset;for(d.type==CKEDITOR.NODE_TEXT?(m&&(p=!!(d=!CKEDITOR.tools.trim(d.substring(0,m)).length&&d)),d&&!(l=d.getPrevious())&&(s=d.getParent())):(m&&(l=d.getChild(m-1)||d.getLast()),l||(s=d)),s=n(s);s||l;
1){if(s&&!l){if(!c&&s.equals(h)&&(c=!0),o?s.isBlockBoundary():!f.contains(s))break;p&&"inline"==s.getComputedStyle("display")||(p=!1,c?a=s:this.setStartBefore(s)),l=s.getPrevious()}for(;l;)if(d=!1,l.type==CKEDITOR.NODE_COMMENT)l=l.getPrevious();else{if(l.type==CKEDITOR.NODE_TEXT)u=l.getText(),i.test(u)&&(l=null),d=/[\s\ufeff]$/.test(u);else if((l.$.offsetWidth>0||t&&l.is("br"))&&!l.data("cke-bookmark"))if(p&&CKEDITOR.dtd.$removeEmpty[l.getName()]){if(u=l.getText(),i.test(u))l=null;else{m=l.$.getElementsByTagName("*");for(var g,E=0;g=m[E++];)if(!CKEDITOR.dtd.$removeEmpty[g.nodeName.toLowerCase()]){l=null;break}}l&&(d=!!u.length)}else l=null;if(d&&(p?c?a=s:s&&this.setStartBefore(s):p=!0),l){if(d=l.getPrevious(),!s&&!d){s=l,l=null;break}l=d}else s=null}s&&(s=n(s.getParent()))}d=this.endContainer,m=this.endOffset,s=l=null,c=p=!1;var v=function(e,t){(n=new CKEDITOR.dom.range(f)).setStart(e,t),n.setEndAt(f,CKEDITOR.POSITION_BEFORE_END);var n,o;for((n=new CKEDITOR.dom.walker(n)).guard=function(e){return!(e.type==CKEDITOR.NODE_ELEMENT&&e.isBlockBoundary())};o=n.next();){if(o.type!=CKEDITOR.NODE_TEXT)return!1;if(u=o!=e?o.getText():o.substring(t),i.test(u))return!1}return!0};for(d.type==CKEDITOR.NODE_TEXT?CKEDITOR.tools.trim(d.substring(m)).length?p=!0:(p=!d.getLength(),m==d.getLength()?(l=d.getNext())||(s=d.getParent()):v(d,m)&&(s=d.getParent())):(l=d.getChild(m))||(s=d);s||l;){if(s&&!l){if(!c&&s.equals(h)&&(c=!0),o?s.isBlockBoundary():!f.contains(s))break;p&&"inline"==s.getComputedStyle("display")||(p=!1,c?r=s:s&&this.setEndAfter(s)),l=s.getNext()}for(;l;){if(d=!1,l.type==CKEDITOR.NODE_TEXT)u=l.getText(),v(l,0)||(l=null),d=/^[\s\ufeff]/.test(u);else if(l.type==CKEDITOR.NODE_ELEMENT){if((l.$.offsetWidth>0||t&&l.is("br"))&&!l.data("cke-bookmark"))if(p&&CKEDITOR.dtd.$removeEmpty[l.getName()]){if(u=l.getText(),i.test(u))l=null;else for(m=l.$.getElementsByTagName("*"),E=0;g=m[E++];)if(!CKEDITOR.dtd.$removeEmpty[g.nodeName.toLowerCase()]){l=null;break}l&&(d=!!u.length)}else l=null}else d=1;if(d&&p&&(c?r=s:this.setEndAfter(s)),l){if(d=l.getNext(),!s&&!d){s=l,l=null;break}l=d}else s=null}s&&(s=n(s.getParent()))}a&&r&&(h=a.contains(r)?r:a,this.setStartBefore(h),this.setEndAfter(h));break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:s=new CKEDITOR.dom.range(this.root),f=this.root,s.setStartAt(f,CKEDITOR.POSITION_AFTER_START),s.setEnd(this.startContainer,this.startOffset),s=new CKEDITOR.dom.walker(s);var T,C,b=CKEDITOR.dom.walker.blockBoundary(e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),D=null,y=function(e){if(e.type==CKEDITOR.NODE_ELEMENT&&"false"==e.getAttribute("contenteditable"))if(D){if(D.equals(e))return void(D=null)}else D=e;else if(D)return;var t=b(e);return t||(T=e),t};o=function(e){var t=y(e);return!t&&e.is&&e.is("br")&&(C=e),t};if(s.guard=y,s=s.lastBackward(),T=T||f,this.setStartAt(T,!T.is("br")&&(!s&&this.checkStartOfBlock()||s&&T.contains(s))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END),e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){s=this.clone(),s=new CKEDITOR.dom.walker(s);var I=CKEDITOR.dom.walker.whitespaces(),O=CKEDITOR.dom.walker.bookmark();if(s.evaluator=function(e){return!I(e)&&!O(e)},(s=s.previous())&&s.type==CKEDITOR.NODE_ELEMENT&&s.is("br"))break}(s=this.clone()).collapse(),s.setEndAt(f,CKEDITOR.POSITION_BEFORE_END),(s=new CKEDITOR.dom.walker(s)).guard=e==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?o:y,T=D=C=null,s=s.lastForward(),T=T||f,this.setEndAt(T,!s&&this.checkEndOfBlock()||s&&T.contains(s)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START),C&&this.setEndAfter(C)}},shrink:function(e,t,n){if(!this.collapsed){e=e||CKEDITOR.SHRINK_TEXT;var i=this.clone(),o=this.startContainer,a=this.endContainer,r=this.startOffset,s=this.endOffset,l=1,c=1;o&&o.type==CKEDITOR.NODE_TEXT&&(r?r>=o.getLength()?i.setStartAfter(o):(i.setStartBefore(o),l=0):i.setStartBefore(o)),a&&a.type==CKEDITOR.NODE_TEXT&&(s?s>=a.getLength()?i.setEndAfter(a):(i.setEndAfter(a),c=0):i.setEndBefore(a));i=new CKEDITOR.dom.walker(i);var d=CKEDITOR.dom.walker.bookmark();i.evaluator=function(t){return t.type==(e==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var u;return i.guard=function(t,i){return!!d(t)||!(e==CKEDITOR.SHRINK_ELEMENT&&t.type==CKEDITOR.NODE_TEXT||i&&t.equals(u)||!1===n&&t.type==CKEDITOR.NODE_ELEMENT&&t.isBlockBoundary()||t.type==CKEDITOR.NODE_ELEMENT&&t.hasAttribute("contenteditable"))&&(!i&&t.type==CKEDITOR.NODE_ELEMENT&&(u=t),!0)},l&&(o=i[e==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(o,t?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START),c&&(i.reset(),(i=i[e==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(i,t?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)),!(!l&&!c)}},insertNode:function(e){this.optimizeBookmark(),this.trim(!1,!0);var t=this.startContainer,n=t.getChild(this.startOffset);n?e.insertBefore(n):t.append(e),e.getParent()&&e.getParent().equals(this.endContainer)&&this.endOffset++,this.setStartBefore(e)},moveToPosition:function(e,t){this.setStartAt(e,t),this.collapse(!0)},moveToRange:function(e){this.setStart(e.startContainer,e.startOffset),this.setEnd(e.endContainer,e.endOffset)},selectNodeContents:function(e){this.setStart(e,0),this.setEnd(e,e.type==CKEDITOR.NODE_TEXT?e.getLength():e.getChildCount())},setStart:function(e,t){e.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[e.getName()]&&(t=e.getIndex(),e=e.getParent()),this.startContainer=e,this.startOffset=t,this.endContainer||(this.endContainer=e,this.endOffset=t),n(this)},setEnd:function(e,t){e.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[e.getName()]&&(t=e.getIndex()+1,e=e.getParent()),this.endContainer=e,this.endOffset=t,this.startContainer||(this.startContainer=e,this.startOffset=t),n(this)},setStartAfter:function(e){this.setStart(e.getParent(),e.getIndex()+1)},setStartBefore:function(e){this.setStart(e.getParent(),e.getIndex())},setEndAfter:function(e){this.setEnd(e.getParent(),e.getIndex()+1)},setEndBefore:function(e){this.setEnd(e.getParent(),e.getIndex())},setStartAt:function(e,t){switch(t){case CKEDITOR.POSITION_AFTER_START:this.setStart(e,0);break;case CKEDITOR.POSITION_BEFORE_END:e.type==CKEDITOR.NODE_TEXT?this.setStart(e,e.getLength()):this.setStart(e,e.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(e);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(e)}n(this)},setEndAt:function(e,t){switch(t){case CKEDITOR.POSITION_AFTER_START:this.setEnd(e,0);break;case CKEDITOR.POSITION_BEFORE_END:e.type==CKEDITOR.NODE_TEXT?this.setEnd(e,e.getLength()):this.setEnd(e,e.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(e);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(e)}n(this)},fixBlock:function(e,t){var n=this.createBookmark(),i=this.document.createElement(t);return this.collapse(e),this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),this.extractContents().appendTo(i),i.trim(),i.appendBogus(),this.insertNode(i),this.moveToBookmark(n),i},splitBlock:function(e){var t=new CKEDITOR.dom.elementPath(this.startContainer,this.root),n=new CKEDITOR.dom.elementPath(this.endContainer,this.root),i=t.block,o=n.block,a=null;return t.blockLimit.equals(n.blockLimit)?("br"!=e&&(i||(i=this.fixBlock(!0,e),o=new CKEDITOR.dom.elementPath(this.endContainer,this.root).block),o||(o=this.fixBlock(!1,e))),e=i&&this.checkStartOfBlock(),t=o&&this.checkEndOfBlock(),this.deleteContents(),i&&i.equals(o)&&(t?(
1a=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(o,CKEDITOR.POSITION_AFTER_END),o=null):e?(a=new CKEDITOR.dom.elementPath(this.startContainer,this.root),this.moveToPosition(i,CKEDITOR.POSITION_BEFORE_START),i=null):(o=this.splitElement(i),i.is("ul","ol")||i.appendBogus())),{previousBlock:i,nextBlock:o,wasStartOfBlock:e,wasEndOfBlock:t,elementPath:a}):null},splitElement:function(e){if(!this.collapsed)return null;this.setEndAt(e,CKEDITOR.POSITION_BEFORE_END);var t=this.extractContents(),n=e.clone(!1);return t.appendTo(n),n.insertAfter(e),this.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),n},removeEmptyBlocksAtEnd:function(){function e(e){return function(i){return!(t(i)||n(i)||i.type==CKEDITOR.NODE_ELEMENT&&i.isEmptyInlineRemoveable()||e.is("table")&&i.is("caption"))}}var t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(!1);return function(t){for(var n,i=this.createBookmark(),o=this[t?"endPath":"startPath"](),a=o.block||o.blockLimit;a&&!a.equals(o.root)&&!a.getFirst(e(a));)n=a.getParent(),this[t?"setEndAt":"setStartAt"](a,CKEDITOR.POSITION_AFTER_END),a.remove(1),a=n;this.moveToBookmark(i)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(e,t){var n=t==CKEDITOR.START,i=this.clone();return i.collapse(n),i[n?"setStartAt":"setEndAt"](e,n?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END),i=new CKEDITOR.dom.walker(i),i.evaluator=function(e){var t=CKEDITOR.dom.walker.whitespaces(),n=CKEDITOR.dom.walker.bookmark(1);return function(i){return!(!n(i)&&!t(i))||!e&&a(i)||i.type==CKEDITOR.NODE_ELEMENT&&i.is(CKEDITOR.dtd.$removeEmpty)}}(n),i[n?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var t=this.startContainer,n=this.startOffset;return CKEDITOR.env.ie&&n&&t.type==CKEDITOR.NODE_TEXT&&(t=CKEDITOR.tools.ltrim(t.substring(0,n)),r.test(t)&&this.trim(0,1)),this.trim(),t=new CKEDITOR.dom.elementPath(this.startContainer,this.root),(n=this.clone()).collapse(!0),n.setStartAt(t.block||t.blockLimit,CKEDITOR.POSITION_AFTER_START),t=new CKEDITOR.dom.walker(n),t.evaluator=e(),t.checkBackward()},checkEndOfBlock:function(){var t=this.endContainer,n=this.endOffset;return CKEDITOR.env.ie&&t.type==CKEDITOR.NODE_TEXT&&(t=CKEDITOR.tools.rtrim(t.substring(n)),r.test(t)&&this.trim(1,0)),this.trim(),t=new CKEDITOR.dom.elementPath(this.endContainer,this.root),(n=this.clone()).collapse(!1),n.setEndAt(t.block||t.blockLimit,CKEDITOR.POSITION_BEFORE_END),t=new CKEDITOR.dom.walker(n),t.evaluator=e(),t.checkForward()},getPreviousNode:function(e,t,n){var i=this.clone();return i.collapse(1),i.setStartAt(n||this.root,CKEDITOR.POSITION_AFTER_START),n=new CKEDITOR.dom.walker(i),n.evaluator=e,n.guard=t,n.previous()},getNextNode:function(e,t,n){var i=this.clone();return i.collapse(),i.setEndAt(n||this.root,CKEDITOR.POSITION_BEFORE_END),n=new CKEDITOR.dom.walker(i),n.evaluator=e,n.guard=t,n.next()},checkReadOnly:function(){function e(e,t){for(;e;){if(e.type==CKEDITOR.NODE_ELEMENT){if("false"==e.getAttribute("contentEditable")&&!e.data("cke-editable"))return 0;if(e.is("html")||"true"==e.getAttribute("contentEditable")&&(e.contains(t)||e.equals(t)))break}e=e.getParent()}return 1}return function(){var t=this.startContainer,n=this.endContainer;return!(e(t,n)&&e(n,t))}}(),moveToElementEditablePosition:function(e,t){if(e.type==CKEDITOR.NODE_ELEMENT&&!e.isEditable(!1))return this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),!0;for(var n=0;e;){if(e.type==CKEDITOR.NODE_TEXT){t&&this.endContainer&&this.checkEndOfBlock()&&r.test(e.getText())?this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(e,t?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START),n=1;break}if(e.type==CKEDITOR.NODE_ELEMENT)if(e.isEditable())this.moveToPosition(e,t?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START),n=1;else if(t&&e.is("br")&&this.endContainer&&this.checkEndOfBlock())this.moveToPosition(e,CKEDITOR.POSITION_BEFORE_START);else if("false"==e.getAttribute("contenteditable")&&e.is(CKEDITOR.dtd.$block))return this.setStartBefore(e),this.setEndAfter(e),!0;var i=e,o=n,a=void 0;i.type==CKEDITOR.NODE_ELEMENT&&i.isEditable(!1)&&(a=i[t?"getLast":"getFirst"](l)),!o&&!a&&(a=i[t?"getPrevious":"getNext"](l)),e=a}return!!n}
1,moveToClosestEditablePosition:function(e,t){var n,i=new CKEDITOR.dom.range(this.root),o=0,a=[CKEDITOR.POSITION_AFTER_END,CKEDITOR.POSITION_BEFORE_START];return i.moveToPosition(e,a[t?0:1]),e.is(CKEDITOR.dtd.$block)?(n=i[t?"getNextEditableNode":"getPreviousEditableNode"]())&&(o=1,n.type==CKEDITOR.NODE_ELEMENT&&n.is(CKEDITOR.dtd.$block)&&"false"==n.getAttribute("contenteditable")?(i.setStartAt(n,CKEDITOR.POSITION_BEFORE_START),i.setEndAt(n,CKEDITOR.POSITION_AFTER_END)):i.moveToPosition(n,a[t?1:0])):o=1,o&&this.moveToRange(i),!!o},moveToElementEditStart:function(e){return this.moveToElementEditablePosition(e)},moveToElementEditEnd:function(e){return this.moveToElementEditablePosition(e,!0)},getEnclosedNode:function(){if((e=this.clone()).optimize(),e.startContainer.type!=CKEDITOR.NODE_ELEMENT||e.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var e=new CKEDITOR.dom.walker(e),t=CKEDITOR.dom.walker.bookmark(!1,!0),n=CKEDITOR.dom.walker.whitespaces(!0);e.evaluator=function(e){return n(e)&&t(e)};var i=e.next();return e.reset(),i&&i.equals(e.previous())?i:null},getTouchedStartNode:function(){var e=this.startContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.startOffset)||e},getTouchedEndNode:function(){var e=this.endContainer;return this.collapsed||e.type!=CKEDITOR.NODE_ELEMENT?e:e.getChild(this.endOffset-1)||e},getNextEditableNode:t(),getPreviousEditableNode:t(1),scrollIntoView:function(){var e,t,n,i=new CKEDITOR.dom.element.createFromHtml("<span> </span>",this.document),o=this.clone();o.optimize(),(n=o.startContainer.type==CKEDITOR.NODE_TEXT)?(t=o.startContainer.getText(),e=o.startContainer.split(o.startOffset),i.insertAfter(o.startContainer)):o.insertNode(i),i.scrollIntoView(),n&&(o.startContainer.setText(t),e.remove()),i.remove()}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,function(){function e(e){arguments.length<1||(this.range=e,this.forceBrBreak=0,this.enlargeBr=1,this.enforceRealBlocks=0,this._||(this._={}))}function t(e,t,n){for(e=e.getNextSourceNode(t,null,n);!a(e);)e=e.getNextSourceNode(t,null,n);return e}function n(e,t,i,o){e:{void 0==o&&(o=function(e){var t=[];return e.forEach(function(e){if("true"==e.getAttribute("contenteditable"))return t.push(e),!1},CKEDITOR.NODE_ELEMENT,!0),t}(i));for(var a;a=o.shift();)if(a.getDtd().p){o={element:a,remaining:o};break e}o=null}return o?(a=CKEDITOR.filter.instances[o.element.data("cke-filter")])&&!a.check(t)?n(e,t,i,o.remaining):((t=new CKEDITOR.dom.range(o.element)).selectNodeContents(o.element),t=t.createIterator(),t.enlargeBr=e.enlargeBr,t.enforceRealBlocks=e.enforceRealBlocks,t.activeFilter=t.filter=a,e._.nestedEditable={element:o.element,container:i,remaining:o.remaining,iterator:t},1):0}function i(e,t,n){return!!t&&((e=e.clone()).collapse(!n),e.checkBoundaryOfElement(t,n?CKEDITOR.START:CKEDITOR.END))}var o=/^[\r\n\t ]+$/,a=CKEDITOR.dom.walker.bookmark(!1,!0),r=CKEDITOR.dom.walker.whitespaces(!0),s=function(e){return a(e)&&r(e)},l={dd:1,dt:1,li:1};e.prototype={getNextParagraph:function(e){var r,c,d,u,h;e=e||"p";if(this._.nestedEditable){if(r=this._.nestedEditable.iterator.getNextParagraph(e))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,r;if(this.activeFilter=this.filter,n(this,e,this._.nestedEditable.container,this._.nestedEditable.remaining))return this.activeFilter=this._.nestedEditable.iterator.activeFilter,this._.nestedEditable.iterator.getNextParagraph(e);this._.nestedEditable=null}if(!this.range.root.getDtd()[e])return null;if(!this._.started){var f=this.range.clone();c=f.startPath();var p=f.endPath(),m=!f.collapsed&&i(f,c.block),g=!f.collapsed&&i(f,p.block,1);f.shrink(CKEDITOR.SHRINK_ELEMENT,!0),m&&f.setStartAt(c.block,CKEDITOR.POSITION_BEFORE_END),g&&f.setEndAt(p.block,CKEDITOR.POSITION_AFTER_START),c=f.endContainer.hasAscendant("pre",!0)||f.startContainer.hasAscendant("pre",!0),f.enlarge(this.forceBrBreak&&!c||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS),f.collapsed||(c=new CKEDITOR.dom.walker(f.clone()),p=CKEDITOR.dom.walker.bookmark(!0,!0),c.evaluator=p,this._.nextNode=c.next(),(c=new CKEDITOR.dom.walker(f.clone())).evaluator=p,c=c.previous(),this._.lastNode=c.getNextSourceNode(!0),this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()&&((p=this.range.clone()).moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END),p.checkEndOfBlock()&&(p=new CKEDITOR.dom.elementPath(p.endContainer,p.root),this._.lastNode=(p.block||p.blockLimit).getNextSourceNode(!0))),this._.lastNode&&f.root.contains(this._.lastNode)||(this._.lastNode=this._.docEndMarker=f.document.createText(""),this._.lastNode.insertAfter(c)),f=null),this._.started=1,c=f}for(p=this._.nextNode,f=this._.lastNode,this._.nextNode=null;p;){m=0,g=p.hasAscendant("pre");var E=p.type!=CKEDITOR.NODE_ELEMENT,v=0;
1if(E)p.type==CKEDITOR.NODE_TEXT&&o.test(p.getText())&&(E=0);else{var T=p.getName();if(CKEDITOR.dtd.$block[T]&&"false"==p.getAttribute("contenteditable")){n(this,e,r=p);break}if(p.isBlockBoundary(this.forceBrBreak&&!g&&{br:1})){if("br"==T)E=1;else if(!c&&!p.getChildCount()&&"hr"!=T){r=p,d=p.equals(f);break}c&&(c.setEndAt(p,CKEDITOR.POSITION_BEFORE_START),"br"!=T&&(this._.nextNode=p)),m=1}else{if(p.getFirst()){c||(c=this.range.clone()).setStartAt(p,CKEDITOR.POSITION_BEFORE_START),p=p.getFirst();continue}E=1}}if(E&&!c&&(c=this.range.clone()).setStartAt(p,CKEDITOR.POSITION_BEFORE_START),d=(!m||E)&&p.equals(f),c&&!m)for(;!p.getNext(s)&&!d;){if((T=p.getParent()).isBlockBoundary(this.forceBrBreak&&!g&&{br:1})){m=1,E=0,d||T.equals(f),c.setEndAt(T,CKEDITOR.POSITION_BEFORE_END);break}E=1,d=(p=T).equals(f),v=1}if(E&&c.setEndAt(p,CKEDITOR.POSITION_AFTER_END),p=t(p,v,f),(d=!p)||m&&c)break}if(!r){if(!c)return this._.docEndMarker&&this._.docEndMarker.remove(),this._.nextNode=null;p=(r=new CKEDITOR.dom.elementPath(c.startContainer,c.root)).blockLimit,m={div:1,th:1,td:1},!(r=r.block)&&p&&!this.enforceRealBlocks&&m[p.getName()]&&c.checkStartOfBlock()&&c.checkEndOfBlock()&&!p.equals(c.root)?r=p:!r||this.enforceRealBlocks&&r.is(l)?(r=this.range.document.createElement(e),c.extractContents().appendTo(r),r.trim(),c.insertNode(r),u=h=!0):"li"!=r.getName()?c.checkStartOfBlock()&&c.checkEndOfBlock()||(r=r.clone(!1),c.extractContents().appendTo(r),r.trim(),u=!(h=c.splitBlock()).wasStartOfBlock,h=!h.wasEndOfBlock,c.insertNode(r)):d||(this._.nextNode=r.equals(f)?null:t(c.getBoundaryNodes().endNode,1,f))}return u&&(u=r.getPrevious())&&u.type==CKEDITOR.NODE_ELEMENT&&("br"==u.getName()?u.remove():u.getLast()&&"br"==u.getLast().$.nodeName.toLowerCase()&&u.getLast().remove()),h&&(u=r.getLast())&&u.type==CKEDITOR.NODE_ELEMENT&&"br"==u.getName()&&(!CKEDITOR.env.needsBrFiller||u.getPrevious(a)||u.getNext(a))&&u.remove(),this._.nextNode||(this._.nextNode=d||r.equals(f)||!f?null:t(r,1,f)),r}},CKEDITOR.dom.range.prototype.createIterator=function(){return new e(this)}}(),CKEDITOR.command=function(e,t){this.uiItems=[],this.exec=function(n){return!(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())&&(this.editorFocus&&e.focus(),!1===this.fire("exec")||!1!==t.exec.call(this,e,n))},this.refresh=function(e,n){return!(this.readOnly||!e.readOnly)||(this.context&&!n.isContextFor(this.context)?(this.disable(),!0):this.checkAllowed(!0)?(this.startDisabled||this.enable(),this.modes&&!this.modes[e.mode]&&this.disable(),!1===this.fire("refresh",{editor:e,path:n})||t.refresh&&!1!==t.refresh.apply(this,arguments)):(this.disable(),!0))};var n;this.checkAllowed=function(t){return t||"boolean"!=typeof n?n=e.activeFilter.checkFeature(this):n},CKEDITOR.tools.extend(this,t,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!t.context,state:CKEDITOR.TRISTATE_DISABLED}),CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(this.preserveState&&void 0!==this.previousState?this.previousState:CKEDITOR.TRISTATE_OFF)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(e){return!(this.state==e||e!=CKEDITOR.TRISTATE_DISABLED&&!this.checkAllowed())&&(this.previousState=this.state,this.state=e,this.fire("state"),!0)},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1e4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function e(e,t,n,i,o){var a,s;e=[];for(a in t){s="boolean"==typeof(s=t[a])?{}:"function"==typeof s?{match:s}:O(s),"$"!=a.charAt(0)&&(s.elements=a),n&&(s.featureName=n.toLowerCase());var l=s;l.elements=r(l.elements,/\s+/)||null,l.propertiesOnly=l.propertiesOnly||!0===l.elements;var c=/\s*,\s*/,d=void 0;for(d in K){l[d]=r(l[d],c)||null;var u=l,h=w[d],f=r(l[w[d]],c),p=l[d],m=[],g=!0,E=void 0;f?g=!1:f={};
1for(E in p)"!"==E.charAt(0)&&(E=E.slice(1),m.push(E),f[E]=!0,g=!1);for(;E=m.pop();)p[E]=p["!"+E],delete p["!"+E];u[h]=!g&&f||null}l.match=l.match||null,i.push(s),e.push(s)}var v;for(t=o.elements,o=o.generic,n=0,i=e.length;n<i;++n){s=!0===(a=O(e[n])).classes||!0===a.styles||!0===a.attributes,l=a,d=h=c=void 0;for(c in K)l[c]=function(e){if(!e)return!1;if(!0===e)return!0;var t=function(e){var t,n=[];for(t in e)t.indexOf("*")>-1&&n.push(t.replace(/\*/g,".*"));return n.length?RegExp("^(?:"+n.join("|")+")$"):null}(e);return function(n){return n in e||t&&n.match(t)}}(l[c]);u=!0;for(d in w){h=l[c=w[d]],f=[],p=void 0;for(p in h)p.indexOf("*")>-1?f.push(RegExp("^"+p.replace(/\*/g,".*")+"$")):f.push(p);(h=f).length&&(l[c]=h,u=!1)}if(l.nothingRequired=u,l.noProperties=!(l.attributes||l.classes||l.styles),!0===a.elements||null===a.elements)o[s?"unshift":"push"](a);else{l=a.elements,delete a.elements;for(v in l)t[v]?t[v][s?"unshift":"push"](a):t[v]=[a]}}}function t(e,t,i,o){if((!e.match||e.match(t))&&(o||function(e,t){if(e.nothingRequired)return!0;var n,i,o,a;if(o=e.requiredClasses)for(a=t.classes,n=0;n<o.length;++n)if("string"==typeof(i=o[n])){if(-1==CKEDITOR.tools.indexOf(a,i))return!1}else if(!CKEDITOR.tools.checkIfAnyArrayItemMatches(a,i))return!1;return s(t.styles,e.requiredStyles)&&s(t.attributes,e.requiredAttributes)}(e,t))&&(e.propertiesOnly||(i.valid=!0),i.allAttributes||(i.allAttributes=n(e.attributes,t.attributes,i.validAttributes)),i.allStyles||(i.allStyles=n(e.styles,t.styles,i.validStyles)),!i.allClasses)){if(e=e.classes,t=t.classes,o=i.validClasses,e)if(!0===e)e=!0;else{for(var a,r=0,l=t.length;r<l;++r)o[a=t[r]]||(o[a]=e(a));e=!1}else e=!1;i.allClasses=e}}function n(e,t,n){if(!e)return!1;if(!0===e)return!0;for(var i in t)n[i]||(n[i]=e(i));return!1}function i(e,t,n){if(!e.match||e.match(t)){if(e.noProperties)return!1;if(n.hadInvalidAttribute=o(e.attributes,t.attributes)||n.hadInvalidAttribute,n.hadInvalidStyle=o(e.styles,t.styles)||n.hadInvalidStyle,e=e.classes,t=t.classes,e){for(var i=!1,a=!0===e,r=t.length;r--;)(a||e(t[r]))&&(t.splice(r,1),i=!0);e=i}else e=!1;n.hadInvalidClass=e||n.hadInvalidClass}}function o(e,t){if(!e)return!1;var n,i=!1,o=!0===e;for(n in t)(o||e(n))&&(delete t[n],i=!0);return i}function a(e,t,n){return!(e.disabled||e.customConfig&&!n||!t)&&(e._.cachedChecks={},!0)}function r(e,t){if(!e)return!1;if(!0===e)return e;if("string"==typeof e)return"*"==(e=R(e))||CKEDITOR.tools.convertArrayToObject(e.split(t));if(CKEDITOR.tools.isArray(e))return!!e.length&&CKEDITOR.tools.convertArrayToObject(e);var n,i={},o=0;for(n in e)i[n]=e[n],o++;return!!o&&i}function s(e,t){if(!t)return!0;for(var n,i=0;i<t.length;++i)if("string"==typeof(n=t[i])){if(!(n in e))return!1}else if(!CKEDITOR.tools.checkIfAnyObjectPropertyMatches(e,n))return!1;return!0}function l(e){if(!e)return{};e=e.split(/\s*,\s*/).sort();for(var t={};e.length;)t[e.shift()]=_;return t}function c(e){var t,n,i,o,a={},r=1;for(e=R(e);t=e.match(x);)(n=t[2])?(i=d(n,"styles"),o=d(n,"attrs"),n=d(n,"classes")):i=o=n=null,a["$"+r++]={elements:t[1],classes:n,styles:i,attributes:o},e=e.slice(t[0].length);return a}function d(e,t){var n=e.match(S[t]);return n?R(n[1]):null}function u(e){var t=e.styleBackup=e.attributes.style,n=e.classBackup=e.attributes.class;e.styles||(e.styles=CKEDITOR.tools.parseCssText(t||"",1)),e.classes||(e.classes=n?n.split(/\s+/):[])}function h(e,n,o,a){var r,s=0;if(a.toHtml&&(n.name=n.name.replace(N,"$1")),a.doCallbacks&&e.elementCallbacks){e:for(var l,c=e.elementCallbacks,d=0,h=c.length;d<h;++d)if(l=c[d](n)){r=l;break e}if(r)return r}if(a.doTransform&&(r=e._.transformations[n.name])){for(u(n),c=0;c<r.length;++c)v(e,n,r[c]);f(n)}if(a.doFilter){e:{c=n.name,e=(d=e._).allowedRules.elements[c],r=d.allowedRules.generic,c=d.disallowedRules.elements[c],d=d.disallowedRules.generic,h=a.skipRequired,l={valid:!1,validAttributes:{},validClasses:{},validStyles:{},allAttributes:!1,allClasses:!1,allStyles:!1,hadInvalidAttribute:!1,hadInvalidClass:!1,hadInvalidStyle:!1};var m,g;if(e||r){if(u(n),c)for(m=0,g=c.length;m<g;++m)if(!1===i(c[m],n,l)){e=null;break e}if(d)for(m=0,g=d.length;m<g;++m)i(d[m],n,l);if(e)for(m=0,g=e.length;m<g;++m)t(e[m],n,l,h);if(r)for(m=0,g=r.length;m<g;++m)t(r[m],n,l,h);e=l}else e=null}if(!e)return o.push(n),I;if(!e.valid)return o.push(n),I;g=e.validAttributes;var E=e.validStyles;r=e.validClasses;c=n.attributes;var T,C,b=n.styles,D=(d=n.classes,h=n.classBackup,n.styleBackup),y=[];l=[];var O=/^data-cke-/;if(m=!1,delete c.style,delete c.class,delete n.classBackup,delete n.styleBackup,!e.allAttributes)for(T in c)g[T]||(O.test(T)?T==(C=T.replace(/^data-cke-saved-/,""))||g[C]||(delete c[T],m=!0):(delete c[T],m=!0));if(!e.allStyles||e.hadInvalidStyle){for(T in b)e.allStyles||E[T]?y.push(T+":"+b[T]):m=!0;y.length&&(c.style=y.sort().join("; "))}else D&&(c.style=D);if(!e.allClasses||e.hadInvalidClass){for(T=0;T<d.length;++T)(e.allClasses||r[d[T]])&&l.push(d[T]);l.length&&(c.class=l.sort().join(" ")),h&&l.length<h.split(/\s+/).length&&(m=!0)}else h&&(c.class=h);if(m&&(s=I),!a.skipFinalValidation&&!p(n))return o.push(n),I}
1return a.toHtml&&(n.name=n.name.replace($,"cke:$1")),s}function f(e){var t,n=e.attributes;delete n.style,delete n.class,(t=CKEDITOR.tools.writeCssText(e.styles,!0))&&(n.style=t),e.classes.length&&(n.class=e.classes.sort().join(" "))}function p(e){switch(e.name){case"a":if(!e.children.length&&!e.attributes.name)return!1;break;case"img":if(!e.attributes.src)return!1}return!0}function m(){return new CKEDITOR.htmlParser.element("br")}function g(e){return e.type==CKEDITOR.NODE_ELEMENT&&("br"==e.name||y.$block[e.name])}function E(e,t,n){var i=e.name;if(y.$empty[i]||!e.children.length)"hr"==i&&"br"==t?e.replaceWith(m()):(e.parent&&n.push({check:"it",el:e.parent}),e.remove());else if(y.$block[i]||"tr"==i)if("br"==t)e.previous&&!g(e.previous)&&(t=m()).insertBefore(e),e.next&&!g(e.next)&&(t=m()).insertAfter(e),e.replaceWithChildren();else{var o;i=e.children;e:{o=y[t];for(var a,r=0,s=i.length;r<s;++r)if((a=i[r]).type==CKEDITOR.NODE_ELEMENT&&!o[a.name]){o=!1;break e}o=!0}if(o)e.name=t,e.attributes={},n.push({check:"parent-down",el:e});else{var l;for(r=(o=e.parent).type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||"body"==o.name,s=i.length;s>0;)a=i[--s],r&&(a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&y.$inline[a.name])?(l||((l=new CKEDITOR.htmlParser.element(t)).insertAfter(e),n.push({check:"parent-down",el:l})),l.add(a,0)):(l=null,a.insertAfter(e),o.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&a.type==CKEDITOR.NODE_ELEMENT&&!y[o.name][a.name]&&n.push({check:"el-up",el:a}));e.remove()}}else"style"==i?e.remove():(e.parent&&n.push({check:"it",el:e.parent}),e.replaceWithChildren())}function v(e,t,n){var i,o;for(i=0;i<n.length;++i)if((!(o=n[i]).check||e.check(o.check,!1))&&(!o.left||o.left(t))){o.right(t,A);break}}function T(e,t){var n,i,o,a,r=t.getDefinition(),s=r.attributes,l=r.styles;if(e.name!=r.element)return!1;for(n in s)if("class"==n){for(r=s[n].split(/\s+/),o=e.classes.join("|");a=r.pop();)if(-1==o.indexOf(a))return!1}else if(e.attributes[n]!=s[n])return!1;for(i in l)if(e.styles[i]!=l[i])return!1;return!0}function C(e,t){var n,i;return"string"==typeof e?n=e:e instanceof CKEDITOR.style?i=e:(n=e[0],i=e[1]),[{element:n,left:i,right:function(e,n){
1n.transform(e,t)}}]}function b(e){return function(t){return T(t,e)}}function D(e){return function(t,n){n[e](t)}}var y=CKEDITOR.dtd,I=1,O=CKEDITOR.tools.copy,R=CKEDITOR.tools.trim,_="cke-test",k=["","p","br","div"];CKEDITOR.FILTER_SKIP_TREE=2,CKEDITOR.filter=function(e){if(this.allowedContent=[],this.disallowedContent=[],this.elementCallbacks=null,this.disabled=!1,this.editor=null,this.id=CKEDITOR.tools.getNextNumber(),this._={allowedRules:{elements:{},generic:[]},disallowedRules:{elements:{},generic:[]},transformations:{},cachedTests:{}},CKEDITOR.filter.instances[this.id]=this,e instanceof CKEDITOR.editor){e=this.editor=e,this.customConfig=!0;var t=e.config.allowedContent;!0===t?this.disabled=!0:(t||(this.customConfig=!1),this.allow(t,"config",1),this.allow(e.config.extraAllowedContent,"extra",1),this.allow(k[e.enterMode]+" "+k[e.shiftEnterMode],"default",1),this.disallow(e.config.disallowedContent))}else this.customConfig=!1,this.allow(e,"default",1)},CKEDITOR.filter.instances={},CKEDITOR.filter.prototype={allow:function(t,n,i){if(!a(this,t,i))return!1;var o,r;if("string"==typeof t)t=c(t);else if(t instanceof CKEDITOR.style){if(t.toAllowedContentRules)return this.allow(t.toAllowedContentRules(this.editor),n,i);o=t.getDefinition(),t={},i=o.attributes,t[o.element]=o={styles:o.styles,requiredStyles:o.styles&&CKEDITOR.tools.objectKeys(o.styles)},i&&(i=O(i),o.classes=i.class?i.class.split(/\s+/):null,o.requiredClasses=o.classes,delete i.class,o.attributes=i,o.requiredAttributes=i&&CKEDITOR.tools.objectKeys(i))}else if(CKEDITOR.tools.isArray(t)){for(o=0;o<t.length;++o)r=this.allow(t[o],n,i);return r}return e(this,t,n,this.allowedContent,this._.allowedRules),!0},applyTo:function(e,t,n,i){if(this.disabled)return!1;var o,a=this,r=[],s=this.editor&&this.editor.config.protectedSource,l=!1,c={doFilter:!n,doTransform:!0,doCallbacks:!0,toHtml:t};e.forEach(function(e){if(e.type==CKEDITOR.NODE_ELEMENT){if("off"==e.attributes["data-cke-filter"])return!1;if(!t||"span"!=e.name||!~CKEDITOR.tools.objectKeys(e.attributes).join("|").indexOf("data-cke-"))if((o=h(a,e,r,c))&I)l=!0;else if(2&o)return!1}else if(e.type==CKEDITOR.NODE_COMMENT&&e.value.match(/^\{cke_protected\}(?!\{C\})/)){var n;e:{var i=decodeURIComponent(e.value.replace(/^\{cke_protected\}/,""));n=[];var d,u,f;if(s)for(u=0;u<s.length;++u)if((f=i.match(s[u]))&&f[0].length==i.length){n=!0;break e}1==(i=CKEDITOR.htmlParser.fragment.fromHtml(i)).children.length&&(d=i.children[0]).type==CKEDITOR.NODE_ELEMENT&&h(a,d,n,c),n=!n.length}n||r.push(e)}},null,!0),r.length&&(l=!0);var d;for(e=[],i=k[i||(this.editor?this.editor.enterMode:CKEDITOR.ENTER_P)];n=r.pop();)n.type==CKEDITOR.NODE_ELEMENT?E(n,i,e):n.remove();for(;d=e.pop();)if((n=d.el).parent)switch(d.check){case"it":y.$removeEmpty[n.name]&&!n.children.length?E(n,i,e):p(n)||E(n,i,e);break;case"el-up":n.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!y[n.parent.name][n.name]&&E(n,i,e);break;case"parent-down":n.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!y[n.parent.name][n.name]&&E(n.parent,i,e)}return l},checkFeature:function(e){return!(!this.disabled&&e)||(e.toFeature&&(e=e.toFeature(this.editor)),!e.requiredContent||this.check(e.requiredContent))},disable:function(){this.disabled=!0},disallow:function(t){return!!a(this,t,!0)&&("string"==typeof t&&(t=c(t)),e(this,t,null,this.disallowedContent,this._.disallowedRules),!0)},addContentForms:function(e){if(!this.disabled&&e){var t,n,i,o=[];for(t=0;t<e.length&&!i;++t)("string"==typeof(n=e[t])||n instanceof CKEDITOR.style)&&this.check(n)&&(i=n);if(i){for(t=0;t<e.length;++t)o.push(C(e[t],i));this.addTransformations(o)}}},addElementCallback:function(e){this.elementCallbacks||(this.elementCallbacks=[]),this.elementCallbacks.push(e)},addFeature:function(e){return!(!this.disabled&&e)||(e.toFeature&&(e=e.toFeature(this.editor)),this.allow(e.allowedContent,e.name),this.addTransformations(e.contentTransformations),this.addContentForms(e.contentForms),!e.requiredContent||!this.customConfig&&!this.disallowedContent.length||this.check(e.requiredContent))},addTransformations:function(e){var t,n;if(!this.disabled&&e){var i,o=this._.transformations;for(i=0;i<e.length;++i){t=e[i];var a=void 0,r=void 0,s=void 0,l=void 0,c=void 0,d=void 0;for(n=[],r=0;r<t.length;
1++r)"string"==typeof(s=t[r])?(l=(s=s.split(/\s*:\s*/))[0],c=null,d=s[1]):(l=s.check,c=s.left,d=s.right),a||(a=(a=s).element?a.element:l?l.match(/^([a-z0-9]+)/i)[0]:a.left.getDefinition().element),c instanceof CKEDITOR.style&&(c=b(c)),n.push({check:l==a?null:l,left:c,right:"string"==typeof d?D(d):d});o[t=a]||(o[t]=[]),o[t].push(n)}}},check:function(e,t,n){if(this.disabled)return!0;if(CKEDITOR.tools.isArray(e)){for(var i=e.length;i--;)if(this.check(e[i],t,n))return!0;return!1}var o,a;if("string"==typeof e){if((a=e+"<"+(!1===t?"0":"1")+(n?"1":"0")+">")in this._.cachedChecks)return this._.cachedChecks[a];o=(i=c(e).$1).styles;var r=i.classes;i.name=i.elements,i.classes=r=r?r.split(/\s*,\s*/):[],i.styles=l(o),i.attributes=l(i.attributes),i.children=[],r.length&&(i.attributes.class=r.join(" ")),o&&(i.attributes.style=CKEDITOR.tools.writeCssText(i.styles)),o=i}else o=(i=e.getDefinition()).styles,r=i.attributes||{},o?(o=O(o),r.style=CKEDITOR.tools.writeCssText(o,!0)):o={},o={name:i.element,attributes:r,classes:r.class?r.class.split(/\s+/):[],styles:o,children:[]};r=CKEDITOR.tools.clone(o);var s,d=[];if(!1!==t&&(s=this._.transformations[o.name])){for(i=0;i<s.length;++i)v(this,o,s[i]);f(o)}return h(this,r,d,{doFilter:!0,doTransform:!1!==t,skipRequired:!n,skipFinalValidation:!n}),t=!(d.length>0)&&!!CKEDITOR.tools.objectCompare(o.attributes,r.attributes,!0),"string"==typeof e&&(this._.cachedChecks[a]=t),t},getAllowedEnterMode:function(){var e=["p","div","br"],t={p:CKEDITOR.ENTER_P,div:CKEDITOR.ENTER_DIV,br:CKEDITOR.ENTER_BR};return function(n,i){var o,a=e.slice();if(this.check(k[n]))return n;for(i||(a=a.reverse());o=a.pop();)if(this.check(o))return t[o];return CKEDITOR.ENTER_BR}}()};var K={styles:1,attributes:1,classes:1},w={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},x=/^([a-z0-9*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,S={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},N=/^cke:(object|embed|param)$/,$=/^(object|embed|param)$/,A=CKEDITOR.filter.transformationsTools={sizeToStyle:function(e){this.lengthToStyle(e,"width"),this.lengthToStyle(e,"height")},sizeToAttribute:function(e){this.lengthToAttribute(e,"width"),this.lengthToAttribute(e,"height")},lengthToStyle:function(e,t,n){if(!((n=n||t)in e.styles)){var i=e.attributes[t];i&&(/^\d+$/.test(i)&&(i+="px"),e.styles[n]=i)}delete e.attributes[t]},lengthToAttribute:function(e,t,n){if(!((n=n||t)in e.attributes)){var i=e.styles[t],o=i&&i.match(/^(\d+)(?:\.\d*)?px$/);o?e.attributes[n]=o[1]:i==_&&(e.attributes[n]=_)}delete e.styles[t]},alignmentToStyle:function(e){if(!("float"in e.styles)){var t=e.attributes.align;"left"!=t&&"right"!=t||(e.styles.float=t)}delete e.attributes.align},alignmentToAttribute:function(e){if(!("align"in e.attributes)){var t=e.styles.float;"left"!=t&&"right"!=t||(e.attributes.align=t)}delete e.styles.float},matchesStyle:T,transform:function(e,t){if("string"==typeof t)e.name=t;else{var n,i,o,a,r=t.getDefinition(),s=r.styles,l=r.attributes;e.name=r.element;for(n in l)if("class"==n)for(r=e.classes.join("|"),o=l[n].split(/\s+/);a=o.pop();)-1==r.indexOf(a)&&e.classes.push(a);else e.attributes[n]=l[n];for(i in s)e.styles[i]=s[i]}}}}(),CKEDITOR.focusManager=function(e){return e.focusManager?e.focusManager:(this.hasFocus=!1,this.currentActive=null,this._={editor:e},this)},CKEDITOR.focusManager._={blurDelay:200},CKEDITOR.focusManager.prototype={focus:function(e){this._.timer&&clearTimeout(this._.timer),e&&(this.currentActive=e),this.hasFocus||this._.locked||((e=CKEDITOR.currentInstance)&&e.focusManager.blur(1),this.hasFocus=!0,(e=this._.editor.container)&&e.addClass("cke_focus"),this._.editor.fire("focus"))},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(e){function t(){if(this.hasFocus){this.hasFocus=!1;var e=this._.editor.container;e&&e.removeClass("cke_focus"),this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var n=CKEDITOR.focusManager._.blurDelay;e||!n?t.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer,t.call(this)},n,this)}},add:function(e,t){if(!(n=e.getCustomData("focusmanager"))||n!=this){n&&n.remove(e);var n="focus",i="blur";t&&(CKEDITOR.env.ie?(n="focusin",i="focusout"):CKEDITOR.event.useCapture=1);var o={blur:function(){e.equals(this.currentActive)&&this.blur()},focus:function(){this.focus(e)}};e.on(n,o.focus,this),e.on(i,o.blur,this),t&&(CKEDITOR.event.useCapture=0),e.setCustomData("focusmanager",this),e.setCustomData("focusmanager_handlers",o)}},remove:function(e){e.removeCustomData("focusmanager");var t=e.removeCustomData("focusmanager_handlers");e.removeListener("blur",t.blur),e.removeListener("focus",t.focus)}},CKEDITOR.keystrokeHandler=function(e){return e.keystrokeHandler?e.keystrokeHandler:(this.keystrokes={},this.blockedKeystrokes={},this._={editor:e},this)},function(){var e,t=function(t){var n=(t=t.data).getKeystroke(),i=this.keystrokes[n],o=this._.editor;return(e=!1===o.fire("key",{keyCode:n,domEvent:t}))||(i&&(e=!1!==o.execCommand(i,{from:"keystrokeHandler"})),e||(e=!!this.blockedKeystrokes[n])),e&&t.preventDefault(!0),!e},n=function(t){e&&(e=!1,t.data.preventDefault(!0))};CKEDITOR.keystrokeHandler.prototype={attach:function(e){e.on("key
1down",t,this),CKEDITOR.env.gecko&&CKEDITOR.env.mac&&e.on("keypress",n,this)}}}(),CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,"zh-cn":1,zh:1},rtl:{ar:1,fa:1,he:1,ku:1,ug:1},load:function(e,t,n){e&&CKEDITOR.lang.languages[e]||(e=this.detect(t,e));var i=this;t=function(){i[e].dir=i.rtl[e]?"rtl":"ltr",n(e,i[e])};this[e]?t():CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+e+".js"),t,this)},detect:function(e,t){var n=this.languages,i=(o=(t=t||navigator.userLanguage||navigator.language||e).toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/))[1],o=o[2];return n[i+"-"+o]?i=i+"-"+o:n[i]||(i=null),CKEDITOR.lang.detect=i?function(){return i}:function(e){return e},i||e}},CKEDITOR.scriptLoader=function(){var e={},t={};return{load:function(n,i,o,a){var r="string"==typeof n;r&&(n=[n]),o||(o=CKEDITOR);var s=n.length,l=[],c=[],d=function(e){i&&(r?i.call(o,e):i.call(o,l,c))};if(0===s)d(!0);else{var u=function(e,t){(t?l:c).push(e),--s<=0&&(a&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"),d(t))},h=function(n,i){e[n]=1;var o=t[n];delete t[n];for(var a=0;a<o.length;a++)o[a](n,i)},f=function(n){if(e[n])u(n,!0);else{var o=t[n]||(t[n]=[]);if(o.push(u),!(o.length>1)){var a=new CKEDITOR.dom.element("script");a.setAttributes({type:"text/javascript",src:n}),i&&(CKEDITOR.env.ie&&CKEDITOR.env.version<11?a.$.onreadystatechange=function(){"loaded"!=a.$.readyState&&"complete"!=a.$.readyState||(a.$.onreadystatechange=null,h(n,!0))}:(a.$.onload=function(){setTimeout(function(){h(n,!0)},0)},a.$.onerror=function(){h(n,!1)})),a.appendTo(CKEDITOR.document.getHead())}}};a&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var p=0;p<s;p++)f(n[p])}},queue:function(){function e(){var e;(e=t[0])&&this.load(e.scriptUrl,e.callback,CKEDITOR,0)}var t=[];return function(n,i){var o=this;t.push({scriptUrl:n,callback:function(){i&&i.apply(this,arguments),t.shift(),e.call(o)}}),1==t.length&&e.call(this)}}()}}(),CKEDITOR.resourceManager=function(e,t){this.basePath=e,this.fileName=t,this.registered={},this.loaded={},this.externals={},this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(e,t){if(this.registered[e])throw'[CKEDITOR.resourceManager.add] The resource name "'+e+'" is already registered.';var n=this.registered[e]=t||{};return n.name=e,n.path=this.getPath(e),CKEDITOR.fire(e+CKEDITOR.tools.capitalize(this.fileName)+"Ready",n),this.get(e)},get:function(e){return this.registered[e]||null},getPath:function(e){var t=this.externals[e];return CKEDITOR.getUrl(t&&t.dir||this.basePath+e+"/")},getFilePath:function(e){var t=this.externals[e];return CKEDITOR.getUrl(this.getPath(e)+(t?t.file:this.fileName+".js"))},addExternal:function(e,t,n){e=e.split(",");for(var i=0;i<e.length;i++){var o=e[i];n||(t=t.replace(/[^\/]+$/,function(e){return n=e,""})),this.externals[o]={dir:t,file:n||this.fileName+".js"}}},load:function(e,t,n){CKEDITOR.tools.isArray(e)||(e=e?[e]:[]);for(var i=this.loaded,o=this.registered,a=[],r={},s={},l=0;l<e.length;l++){var c=e[l];if(c)if(i[c]||o[c])s[c]=this.get(c);else{var d=this.getFilePath(c);a.push(d),d in r||(r[d]=[]),r[d].push(c)}}CKEDITOR.scriptLoader.load(a,function(e,o){if(o.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+r[o[0]].join(",")+'" was not found at "'+o[0]+'".';for(var a=0;a<e.length;a++)for(var l=r[e[a]],c=0;c<l.length;c++){var d=l[c];s[d]=this.get(d),i[d]=1}t.call(n,s)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(e){var t={};return function(n,i,o){var a={},r=function(n){e.call(this,n,function(e){CKEDITOR.tools.extend(a,e);var n,s=[];for(n in e){var l=e[n],c=l&&l.requires;if(!t[n]){if(l.icons)for(var d=l.icons.split(","),u=d.length;u--;)CKEDITOR.skin.addIcon(d[u],l.path+"icons/"+(CKEDITOR.env.hidpi&&l.hidpi?"hidpi/":"")+d[u]+".png");t[n]=1}if(c)for(c.split&&(c=c.split(",")),l=0;l<c.length;l++)a[c[l]]||s.push(c[l])}if(s.length)r.call(this,s);
1else{for(n in a)(l=a[n]).onLoad&&!l.onLoad._called&&(!1===l.onLoad()&&delete a[n],l.onLoad._called=1);i&&i.call(o||window,a)}},this)};r.call(this,n)}}),CKEDITOR.plugins.setLang=function(e,t,n){var i;e=(i=this.get(e)).langEntries||(i.langEntries={});(i=i.lang||(i.lang=[])).split&&(i=i.split(",")),-1==CKEDITOR.tools.indexOf(i,t)&&i.push(t),e[t]=n},CKEDITOR.ui=function(e){return e.ui?e.ui:(this.items={},this.instances={},this.editor=e,this._={handlers:{}},this)},CKEDITOR.ui.prototype={add:function(e,t,n){n.name=e.toLowerCase();var i=this.items[e]={type:t,command:n.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(i,n)},get:function(e){return this.instances[e]},create:function(e){var t=this.items[e],n=t&&this._.handlers[t.type],i=t&&t.command&&this.editor.getCommand(t.command);n=n&&n.create.apply(this,t.args);return this.instances[e]=n,i&&i.uiItems.push(n),n&&!n.type&&(n.type=t.type),n},addHandler:function(e,t){this._.handlers[e]=t},space:function(e){return CKEDITOR.document.getById(this.spaceId(e))},spaceId:function(e){return this.editor.id+"_"+e}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function e(e,n,a){if(CKEDITOR.event.call(this),e=e&&CKEDITOR.tools.clone(e),void 0!==n){if(!(n instanceof CKEDITOR.dom.element))throw Error("Expect element of type CKEDITOR.dom.element.");if(!a)throw Error("One of the element modes must be specified.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&a==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(!(a==CKEDITOR.ELEMENT_MODE_INLINE?n.is(CKEDITOR.dtd.$editable)||n.is("textarea"):a!=CKEDITOR.ELEMENT_MODE_REPLACE||!n.is(CKEDITOR.dtd.$nonBodyContent)))throw Error('The specified element mode is not supported on element: "'+n.getName()+'".');this.element=n,this.elementMode=a,this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(n.getId()||n.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={},this.commands={},this.templates={},this.name=this.name||function(){do{var e="editor"+ ++r}while(CKEDITOR.instances[e]);return e}(),this.id=CKEDITOR.tools.getNextId(),this.status="unloaded",this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config),this.ui=new CKEDITOR.ui(this),this.focusManager=new CKEDITOR.focusManager(this),this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this),this.on("readOnly",t),this.on("selectionChange",function(e){i(this,e.data.path)}),this.on("activeFilterChange",function(){i(this,this.elementPath(),!0)}),this.on("mode",t),this.on("instanceReady",function(){this.config.startupFocus&&this.focus()}),CKEDITOR.fire("instanceCreated",null,this),CKEDITOR.add(this),CKEDITOR.tools.setTimeout(function(){!function(e,t){e.on("customConfigLoaded",function(){if(t){if(t.on)for(var n in t.on)e.on(n,t.on[n]);CKEDITOR.tools.extend(e.config,t,!0),delete e.config.on}n=e.config,e.readOnly=!(!n.readOnly&&!(e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.element.is("textarea")?e.element.hasAttribute("disabled"):e.element.isReadOnly():e.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&e.element.hasAttribute("disabled"))),e.blockless=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!(e.element.is("textarea")||CKEDITOR.dtd[e.element.getName()].p),e.tabIndex=n.tabIndex||e.element&&e.element.getAttribute("tabindex")||0,e.activeEnterMode=e.enterMode=e.blockless?CKEDITOR.ENTER_BR:n.enterMode,e.activeShiftEnterMode=e.shiftEnterMode=e.blockless?CKEDITOR.ENTER_BR:n.shiftEnterMode,n.skin&&(CKEDITOR.skinName=n.skin),e.fireOnce("configLoaded"),e.dataProcessor=new CKEDITOR.htmlDataProcessor(e),e.filter=e.activeFilter=new CKEDITOR.filter(e),function(e){CKEDITOR.skin.loadPart("editor",function(){!function(e){CKEDITOR.lang.load(e.config.language,e.config.defaultLanguage,function(t,n){var i=e.config.title;e.langCode=t,e.lang=CKEDITOR.tools.prototypedCopy(n),e.title="string"==typeof i||!1===i?i:[e.lang.editor,e.name].join(", "),e.config.contentsLangDirection||(e.config.contentsLangDirection=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.element.getDirection(1):e.lang.dir),e.fire("langLoaded"),function(e){e.getStylesSet(function(t){e.once("loaded",function(){e.fire("stylesSet",{styles:t})},null,null,1),function(e){var t=e.config,n=t.plugins,i=t.extraPlugins,o=t.removePlugins;if(i)var a=RegExp("(?:^|,)(?:"+i.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),n=n.replace(a,""),n=n+","+i;if(o)var r=RegExp("(?:^|,)(?:"+o.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),n=n.replace(r,"");CKEDITOR.env.air&&(n+=",adobeair"),CKEDITOR.plugins.load(n.split(","),function(n){var i=[],o=[],a=[];e.plugins=n;for(var s in n){var l,c=n[s],d=c.lang,u=null,h=c.requires;if(CKEDITOR.tools.isArray(h)&&(h=h.join(",")),h&&(l=h.match(r)))for(;h=l.pop();)CKEDITOR.tools.setTimeout(function(e,t){throw Error('Plugin "'+e.replace(",","")+'" cannot be removed from the plugins list, because it\'s required by "'+t+'" plugin.')},0,null,[h,s]);d&&!e.lang[s]&&(d.split&&(d=d.split(",")),u=CKEDITOR.tools.indexOf(d,e.langCode)>=0?e.langCode:(u=e.langCode.replace(/-.*/,""))!=e.langCode&&CKEDITOR.tools.indexOf(d,u)>=0?u:CKEDITOR.tools.indexOf(d,"en")>=0?"en":d[0],c.langEntries&&c.langEntries[u]?(e.lang[s]=c.langEntries[u],u=null):a.push(CKEDITOR.getUrl(c.path+"lang/"+u+".js"))),o.push(u),i.push(c)}CKEDITOR.scriptLoader.load(a,function(){for(var n=["beforeInit","init","afterInit"],a=0;a<n.length;a++)for(var r=0;r<i.length;r++){var s=i[r];0===a&&o[r]&&s.lang&&s.langEntries&&(e.lang[s.name]=s.langEntries[o[r]]),s[n[a]]&&s[n[a]](e)}for(e.fireOnce("pluginsLoaded"),t.keystrokes&&e.setKeystroke(e.config.keystrokes),r=0;r<e.config.blockedKeystrokes.length;r++)e.keystrokeHandler.blockedKeystrokes[e.config.blockedKeystrokes[r]]=1;e.status="loaded",e.fireOnce("loaded"),CKEDITOR.fire("instanceLoaded",null,e)})})}(e)})}(e)})}(e)})}(e)}),t&&void 0!=t.customConfig&&(e.config.customConfig=t.customConfig);o(e)||e.fireOnce("customConfigLoaded")}(this,e)},0,this)}function t(){var e,t=this.commands;for(e in t)n(this,t[e])}function n(e,t){t[t.startDisabled?"disable":e.readOnly&&!t.readOnly?"disable":t.modes[e.mode]?"enable":"disable"]()}function i(e,t,n){if(t){var i,o,a=e.commands;for(o in a)i=a[o],(n||i.contextSensitive)&&i.refresh(e,t)}}function o(e){if(!(t=e.config.customConfig))return!1;var t=CKEDITOR.getUrl(t),n=s[t]||(s[t]={});return n.fn?(n.fn.call(e,e.config),(CKEDITOR.getUrl(e.config.customConfig)==t||!o(e))&&e.fireOnce("customConfigLoaded")):CKEDITOR.scriptLoader.queue(t,function(){n.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){},o(e)}),!0}function a(){var e=this.element;if(e&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var t=this.getData();return this.config.htmlEncodeOutput&&(t=CKEDITOR.tools.htmlEncode(t)),e.is("textarea")?e.setValue(t):e.setHtml(t),!0}return!1}e.prototype=CKEDITOR.editor.prototype,CKEDITOR.editor=e;var r=0,s={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(e,t){t.name=e.toLowerCase();var i=new CKEDITOR.command(this,t);return this.mode&&n(this,i),this.commands[e]=i},_attachToForm:function(){var e=this,t=e.element,n=new CKEDITOR.dom.element(t.$.form);if(t.is("textarea")&&n){var i=function(n){e.updateElement(),e._.required&&!t.getValue()&&!1===e.fire("required")&&n.data.preventDefault()};n.on("submit",i),n.$.submit&&n.$.submit.call&&n.$.submit.apply&&(n.$.submit=CKEDITOR.tools.override(n.$.submit,function(e){return function(){i(),e.apply?e.apply(this):e()}})),e.on("destroy",function(){n.removeListener("submit",i)})}},destroy:function(e){this.fire("beforeDestroy"),!e&&a.call(this),this.editable(null),this.status="destroyed",this.fire("destroy"),this.removeAllListeners(),CKEDITOR.remove(this),CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(e){if(!e){if(!(e=this.getSelection()))return null;e=e.getStartElement()}return e?new CKEDITOR.dom.elementPath(e,this.editable()):null},createRange:function(){var e=this.editable();return e?new CKEDITOR.dom.range(e):null},execCommand:function(e,t){var n=this.getCommand(e),i={name:e,commandData:t,command:n};return!(!n||n.state==CKEDITOR.TRISTATE_DISABLED||!1===this.fire("beforeCommandExec",i)||(i.returnValue=n.exec(i.commandData),n.async||!1===this.fire("afterCommandExec",i)))&&i.returnValue},getCommand:function(e){return this.commands[e]},getData:function(e){!e&&this.fire("beforeGetData");var t=this._.data;return"string"!=typeof t&&(t=(t=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?t.is("textarea")?t.getValue():t.getHtml():""),t={dataValue:t},!e&&this.fire("getData",t),t.dataValue},getSnapshot:function(){var e=this.fire("getSnapshot");if("string"!=typeof e){var t=this.element;t&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(e=t.is("textarea")?t.getValue():t.getHtml())}return e}
1,loadSnapshot:function(e){this.fire("loadSnapshot",e)},setData:function(e,t,n){var i=!0,o=t;t&&"object"==typeof t&&(n=t.internal,o=t.callback,i=!t.noSnapshot),!n&&i&&this.fire("saveSnapshot"),!o&&n||this.once("dataReady",function(e){!n&&i&&this.fire("saveSnapshot"),o&&o.call(e.editor)}),e={dataValue:e},!n&&this.fire("setData",e),this._.data=e.dataValue,!n&&this.fire("afterSetData",e)},setReadOnly:function(e){e=void 0==e||e,this.readOnly!=e&&(this.readOnly=e,this.keystrokeHandler.blockedKeystrokes[8]=+e,this.editable().setReadOnly(e),this.fire("readOnly"))},insertHtml:function(e,t){this.fire("insertHtml",{dataValue:e,mode:t})},insertText:function(e){this.fire("insertText",e)},insertElement:function(e){this.fire("insertElement",e)},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return"ready"==this.status&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return a.call(this)},setKeystroke:function(){for(var e,t,n=this.keystrokeHandler.keystrokes,i=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],o=i.length;o--;)e=i[o],t=0,CKEDITOR.tools.isArray(e)&&(t=e[1],e=e[0]),t?n[e]=t:delete n[e]},addFeature:function(e){return this.filter.addFeature(e)},setActiveFilter:function(e){e||(e=this.filter),this.activeFilter!==e&&(this.activeFilter=e,this.fire("activeFilterChange"),e===this.filter?this.setActiveEnterMode(null,null):this.setActiveEnterMode(e.getAllowedEnterMode(this.enterMode),e.getAllowedEnterMode(this.shiftEnterMode,!0)))},setActiveEnterMode:function(e,t){e=e?this.blockless?CKEDITOR.ENTER_BR:e:this.enterMode,t=t?this.blockless?CKEDITOR.ENTER_BR:t:this.shiftEnterMode,this.activeEnterMode==e&&this.activeShiftEnterMode==t||(this.activeEnterMode=e,this.activeShiftEnterMode=t,this.fire("activeEnterModeChange"))}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)--\x3e)|(?:([^\\s>]+)\\s*((?:(?:\"[^\"]*\")|(?:'[^']*')|[^\"'>])*)\\/?>))","g")}},function(){var e=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,t={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(n){for(var i,o,a,r=0;i=this._.htmlPartsRegex.exec(n);)if((o=i.index)>r&&(r=n.substring(r,o),a?a.push(r):this.onText(r)),r=this._.htmlPartsRegex.lastIndex,!(o=i[1])||(o=o.toLowerCase(),a&&CKEDITOR.dtd.$cdata[o]&&(this.onCDATA(a.join("")),a=null),a))if(a)a.push(i[0]);else if(o=i[3]){if(o=o.toLowerCase(),!/="/.test(o)){var s,l={},c=!(!(i=i[4])||"/"!=i.charAt(i.length-1));if(i)for(;s=e.exec(i);){var d=s[1].toLowerCase();s=s[2]||s[3]||s[4]||"",l[d]=!s&&t[d]?d:CKEDITOR.tools.htmlDecodeAttr(s)}this.onTagOpen(o,l,c),!a&&CKEDITOR.dtd.$cdata[o]&&(a=[])}}else(o=i[2])&&this.onComment(o);else this.onTagClose(o);n.length>r&&this.onText(n.substring(r,n.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(e){this._.output.push("<",e)},openTagClose:function(e,t){t?this._.output.push(" />"):this._.output.push(">")},attribute:function(e,t){"string"==typeof t&&(t=CKEDITOR.tools.htmlEncodeAttr(t)),this._.output.push(" ",e,'="',t,'"')},closeTag:function(e){this._.output.push("</",e,">")},text:function(e){this._.output.push(e)},comment:function(e){this._.output.push("\x3c!--",e,"--\x3e")},write:function(e){this._.output.push(e)},reset:function(){this._.output=[],this._.indent=!1},getHtml:function(e){var t=this._.output.join("");return e&&this.reset(),t}}}),CKEDITOR.htmlParser.node=function(){},CKEDITOR.htmlParser.node.prototype={remove:function(){var e=this.parent.children,t=CKEDITOR.tools.indexOf(e,this),n=this.previous,i=this.next;n&&(n.next=i),i&&(i.previous=n),e.splice(t,1),this.parent=null},replaceWith:function(e){var t=this.parent.children,n=CKEDITOR.tools.indexOf(t,this),i=e.previous=this.previous,o=e.next=this.next;i&&(i.next=e),o&&(o.previous=e),t[n]=e,e.parent=this.parent,this.parent=null},insertAfter:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e),i=e.next;t.splice(n+1,0,this),this.next=e.next,this.previous=e,e.next=this,i&&(i.previous=this),this.parent=e.parent},insertBefore:function(e){var t=e.parent.children,n=CKEDITOR.tools.indexOf(t,e);t.splice(n,0,this),this.next=e,(this.previous=e.previous)&&(e.previous.next=this),e.previous=this,this.parent=e.parent},getAscendant:function(e){for(var t="function"==typeof e?e:"string"==typeof e?function(t){return t.name==e}:function(t){return t.name in e},n=this.parent;n&&n.type==CKEDITOR.NODE_ELEMENT;){if(t(n))return n;n=n.parent}return null},wrapWith:function(e){return this.replaceWith(e),e.add(this),e},getIndex:function(){return CKEDITOR.tools.indexOf(this.parent.children,this)},getFilterContext:function(e){return e||{}}},CKEDITOR.htmlParser.comment=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(e,t){var n=this.value;return(n=e.onComment(t,n,this))?"string"!=typeof n?(this.replaceWith(n),!1):(this.value=n,!0):(this.remove(),!1)},writeHtml:function(e,t){t&&this.filter(t),e.comment(this.value)}}),CKEDITOR.htmlParser.text=function(e){this.value=e,this._={isBlockLike:!1}},CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(e,t){if(!(this.value=e.onText(t,this.value,this)))return this.remove(),!1},writeHtml:function(e,t){t&&this.filter(t),e.text(this.value)}}),CKEDITOR.htmlParser.cdata=function(e){this.value=e},CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(e){e.write(this.value)}}),CKEDITOR.htmlParser.fragment=function(){this.children=[],this.parent=null,this._={isBlockLike:!0,hasInlineStarted:!1}},function(){function e(e){return!e.attributes["data-cke-survive"]&&("a"==e.name&&e.attributes.href||CKEDITOR.dtd.$removeEmpty[e.name])}var t=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),n={ol:1,ul:1},i=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1}),o={ul:"li",ol:"li",dl:"dd",table:"tbody",tbody:"tr",thead:"tr",tfoot:"tr",tr:"td"};CKEDITOR.htmlParser.fragment.fromHtml=function(a,r,s){function l(e){var t;if(g.length>0)for(var n=0;n<g.length;n++){var i=g[n],o=i.name,a=CKEDITOR.dtd[o],r=v.name&&CKEDITOR.dtd[v.name];r&&!r[o]||e&&a&&!a[e]&&CKEDITOR.dtd[e]?o==v.name&&(u(v,v.parent,1),n--):(t||(c(),t=1),(i=i.clone()).parent=v,v=i,g.splice(n,1),n--)}}function c(){for(;E.length;)u(E.shift(),v)}function d(e){if(e._.isBlockLike&&"pre"!=e.name&&"textarea"!=e.name){var t,n=e.children.length,i=e.children[n-1];i&&i.type==CKEDITOR.NODE_TEXT&&((t=CKEDITOR.tools.rtrim(i.value))?i.value=t:e.children.length=n-1)}}function u(t,n,i){n=n||v||m;var o=v;void 0===t.previous&&(h(n,t)&&(v=n,p.onTagOpen(s,{}),t.returnPoint=n=v),d(t),(!e(t)||t.children.length)&&n.add(t),"pre"==t.name&&(C=!1),"textarea"==t.name&&(T=!1)),t.returnPoint?(v=t.returnPoint,delete t.returnPoint):v=i?n:o}function h(e,t){if((e==m||"body"==e.name)&&s&&(!e.name||CKEDITOR.dtd[e.name][s])){var n,i;return(n=t.attributes&&(i=t.attributes["data-cke-real-element-type"])?i:t.name)&&n in CKEDITOR.dtd.$inline&&!(n in CKEDITOR.dtd.head)&&!t.isOrphan||t.type==CKEDITOR.NODE_TEXT}}function f(e,t){return(e in CKEDITOR.dtd.$listItem||e in CKEDITOR.dtd.$tableContent)&&(e==t||"dt"==e&&"dd"==t||"dd"==e&&"dt"==t)}var p=new CKEDITOR.htmlParser,m=r instanceof CKEDITOR.htmlParser.element?r
1:"string"==typeof r?new CKEDITOR.htmlParser.element(r):new CKEDITOR.htmlParser.fragment,g=[],E=[],v=m,T="textarea"==m.name,C="pre"==m.name;for(p.onTagOpen=function(o,a,r,s){if((a=new CKEDITOR.htmlParser.element(o,a)).isUnknown&&r&&(a.isEmpty=!0),a.isOptionalClose=s,e(a))g.push(a);else{if("pre"==o)C=!0;else{if("br"==o&&C)return void v.add(new CKEDITOR.htmlParser.text("\n"));"textarea"==o&&(T=!0)}if("br"==o)E.push(a);else{for(;s=(r=v.name)?CKEDITOR.dtd[r]||(v._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):i,!(a.isUnknown||v.isUnknown||s[o]);)if(v.isOptionalClose)p.onTagClose(r);else if(o in n&&r in n)(r=(r=v.children)[r.length-1])&&"li"==r.name||u(r=new CKEDITOR.htmlParser.element("li"),v),!a.returnPoint&&(a.returnPoint=v),v=r;else if(o in CKEDITOR.dtd.$listItem&&!f(o,r))p.onTagOpen("li"==o?"ul":"dl",{},0,1);else if(r in t&&!f(o,r))!a.returnPoint&&(a.returnPoint=v),v=v.parent;else{if(r in CKEDITOR.dtd.$inline&&g.unshift(v),!v.parent){a.isOrphan=1;break}u(v,v.parent,1)}l(o),c(),a.parent=v,a.isEmpty?u(a):v=a}}},p.onTagClose=function(e){for(var t=g.length-1;t>=0;t--)if(e==g[t].name)return void g.splice(t,1);for(var n=[],i=[],o=v;o!=m&&o.name!=e;)o._.isBlockLike||i.unshift(o),n.push(o),o=o.returnPoint||o.parent;if(o!=m){for(t=0;t<n.length;t++){var a=n[t];u(a,a.parent)}v=o,o._.isBlockLike&&c(),u(o,o.parent),o==v&&(v=v.parent),g=g.concat(i)}"body"==e&&(s=!1)},p.onText=function(e){if(v._.hasInlineStarted&&!E.length||C||T||0!==(e=CKEDITOR.tools.ltrim(e)).length){var n=v.name,a=n?CKEDITOR.dtd[n]||(v._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):i;!T&&!a["#"]&&n in t?(p.onTagOpen(o[n]||""),p.onText(e)):(c(),l(),!C&&!T&&(e=e.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," ")),e=new CKEDITOR.htmlParser.text(e),h(v,e)&&this.onTagOpen(s,{},0,1),v.add(e))}},p.onCDATA=function(e){v.add(new CKEDITOR.htmlParser.cdata(e))},p.onComment=function(e){c(),l(),v.add(new CKEDITOR.htmlParser.comment(e))},p.parse(a),c();v!=m;)u(v,v.parent,1);return d(m),m},CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(e,t){isNaN(t)&&(t=this.children.length);var n=t>0?this.children[t-1]:null;if(n){if(e._.isBlockLike&&n.type==CKEDITOR.NODE_TEXT&&(n.value=CKEDITOR.tools.rtrim(n.value),0===n.value.length))return this.children.pop(),void this.add(e);n.next=e}e.previous=n,e.parent=this,this.children.splice(t,0,e),this._.hasInlineStarted||(this._.hasInlineStarted=e.type==CKEDITOR.NODE_TEXT||e.type==CKEDITOR.NODE_ELEMENT&&!e._.isBlockLike)},filter:function(e,t){t=this.getFilterContext(t),e.onRoot(t,this),this.filterChildren(e,!1,t)},filterChildren:function(e,t,n){if(this.childrenFilteredBy!=e.id)for(n=this.getFilterContext(n),t&&!this.parent&&e.onRoot(n,this),this.childrenFilteredBy=e.id,t=0;t<this.children.length;t++)!1===this.children[t].filter(e,n)&&t--},writeHtml:function(e,t){t&&this.filter(t),this.writeChildrenHtml(e)},writeChildrenHtml:function(e,t,n){var i=this.getFilterContext();for(n&&!this.parent&&t&&t.onRoot(i,this),t&&this.filterChildren(t,!1,i),t=0,i=(n=this.children).length;t<i;t++)n[t].writeHtml(e)},forEach:function(e,t,n){if(!(n||t&&this.type!=t))var i=e(this);if(!1!==i){n=this.children;for(var o=0;o<n.length;o++)(i=n[o]).type==CKEDITOR.NODE_ELEMENT?i.forEach(e,t):(!t||i.type==t)&&e(i)}},getFilterContext:function(e){return e||{}}}}(),function(){function e(){this.rules=[]}function t(t,n,i,o){var a,r;for(a in n)(r=t[a])||(r=t[a]=new e),r.add(n[a],i,o)}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(t){this.id=CKEDITOR.tools.getNextNumber(),this.elementNameRules=new e,this.attributeNameRules=new e,this.elementsRules={},this.attributesRules={},this.textRules=new e,this.commentRules=new e,this.rootRules=new e,t&&this.addRules(t,10)},proto:{addRules:function(e,n){var i;"number"==typeof n?i=n:n&&"priority"in n&&(i=n.priority),"number"!=typeof i&&(i=10),"object"!=typeof n&&(n={}),e.elementNames&&this.elementNameRules.addMany(e.elementNames,i,n),e.attributeNames&&this.attributeNameRules.addMany(e.attributeNames,i,n),e.elements&&t(this.elementsRules,e.elements,i,n),e.attributes&&t(this.attributesRules,e.attributes,i,n),e.text&&this.textRules.add(e.text,i,n),e.comment&&this.commentRules.add(e.comment,
1i,n),e.root&&this.rootRules.add(e.root,i,n)},applyTo:function(e){e.filter(this)},onElementName:function(e,t){return this.elementNameRules.execOnName(e,t)},onAttributeName:function(e,t){return this.attributeNameRules.execOnName(e,t)},onText:function(e,t,n){return this.textRules.exec(e,t,n)},onComment:function(e,t,n){return this.commentRules.exec(e,t,n)},onRoot:function(e,t){return this.rootRules.exec(e,t)},onElement:function(e,t){for(var n,i=[this.elementsRules["^"],this.elementsRules[t.name],this.elementsRules.$],o=0;o<3;o++)if(n=i[o]){if(!1===(n=n.exec(e,t,this)))return null;if(n&&n!=t)return this.onNode(e,n);if(t.parent&&!t.name)break}return t},onNode:function(e,t){var n=t.type;return n==CKEDITOR.NODE_ELEMENT?this.onElement(e,t):n==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(e,t.value)):n==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(e,t.value)):null},onAttribute:function(e,t,n,i){return(n=this.attributesRules[n])?n.exec(e,i,t,this):i}}}),CKEDITOR.htmlParser.filterRulesGroup=e,e.prototype={add:function(e,t,n){this.rules.splice(this.findIndex(t),0,{value:e,priority:t,options:n})},addMany:function(e,t,n){for(var i=[this.findIndex(t),0],o=0,a=e.length;o<a;o++)i.push({value:e[o],priority:t,options:n});this.rules.splice.apply(this.rules,i)},findIndex:function(e){for(var t=this.rules,n=t.length-1;n>=0&&e<t[n].priority;)n--;return n+1},exec:function(e,t){var n,i,o,a,r=t instanceof CKEDITOR.htmlParser.node||t instanceof CKEDITOR.htmlParser.fragment,s=Array.prototype.slice.call(arguments,1),l=this.rules,c=l.length;for(a=0;a<c;a++)if(r&&(n=t.type,i=t.name),o=l[a],!(e.nonEditable&&!o.options.applyToAll||e.nestedEditable&&o.options.excludeNestedEditable)){if(!1===(o=o.value.apply(null,s))||r&&o&&(o.name!=i||o.type!=n))return o;void 0!=o&&(s[0]=t=o)}return t},execOnName:function(e,t){for(var n,i=0,o=this.rules,a=o.length;t&&i<a;i++)n=o[i],!(e.nonEditable&&!n.options.applyToAll||e.nestedEditable&&n.options.excludeNestedEditable)&&(t=t.replace(n.value[0],n.value[1]));return t}}}(),function(){function e(e,t){function s(e){return e||CKEDITOR.env.needsNbspFiller?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function l(e,t){return function(o){if(o.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var r,l,d=[],u=n(o);if(u)for(c(u,1)&&d.push(u);u;)a(u)&&(r=i(u))&&c(r)&&((l=i(r))&&!a(l)?d.push(r):(s(f).insertAfter(r),r.remove())),u=u.previous;for(u=0;u<d.length;u++)d[u].remove();(d=!1!==("function"==typeof t?t(o):t))&&(d=!(!f&&!CKEDITOR.env.needsBrFiller&&o.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)&&(!(!f&&!CKEDITOR.env.needsBrFiller&&(document.documentMode>7||o.name in CKEDITOR.dtd.tr||o.name in CKEDITOR.dtd.$listItem))&&(!(d=n(o))||"form"==o.name&&"input"==d.name))),d&&o.add(s(e))}}}function c(e,t){if((!f||CKEDITOR.env.needsBrFiller)&&e.type==CKEDITOR.NODE_ELEMENT&&"br"==e.name&&!e.attributes["data-cke-eol"])return!0;var n;if(e.type==CKEDITOR.NODE_TEXT&&(n=e.value.match(h))){if(n.index&&(new CKEDITOR.htmlParser.text(e.value.substring(0,n.index)).insertBefore(e),e.value=n[0]),!CKEDITOR.env.needsBrFiller&&f&&(!t||e.parent.name in m))return!0;if(!f&&((n=e.previous)&&"br"==n.name||!n||a(n)))return!0}return!1}var d,u={elements:{}},f="html"==t,m=CKEDITOR.tools.extend({},g);for(d in m)"#"in p[d]||delete m[d];for(d in m)u.elements[d]=l(f,e.config.fillEmptyBlocks);return u.root=l(f,!1),u.elements.br=function(e){return function(t){if(t.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var n=t.attributes;if("data-cke-bogus"in n||"data-cke-eol"in n)delete n["data-cke-bogus"];else{for(n=t.next;n&&o(n);)n=n.next;var l=i(t);!n&&a(t.parent)?r(t.parent,s(e)):a(n)&&l&&!a(l)&&s(e).insertBefore(n)}}}}(f),u}function t(e,t){return e!=CKEDITOR.ENTER_BR&&!1!==t&&(e==CKEDITOR.ENTER_DIV?"div":"p")}function n(e){for(e=e.children[e.children.length-1];e&&o(e);)e=e.previous;return e}function i(e){for(e=e.previous;e&&o(e);)e=e.previous;return e}function o(e){return e.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(e.value)||e.type==CKEDITOR.NODE_ELEMENT&&e.attributes["data-cke-bookmark"]}function a(e){return e&&(e.type==CKEDITOR.NODE_ELEMENT&&e.name in g||e.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function r(e,t){var n=e.children[e.children.length-1];e.children.push(t),t.parent=e,n&&(n.next=t,t.previous=n)}function s(e){"false"!=(e=e.attributes).contenteditable&&(e["data-cke-editable"]=e.contenteditable?"true":1),e.contenteditable="false"}function l(e){switch((e=e.attributes)["data-cke-editable"]){case"true":e.contenteditable="true";break;case"1":delete e.contenteditable}}function c(e,t){return e.replace(t,function(e,t,n){return 0===e.indexOf("<textarea")&&(e=t+d(n).replace(/</g,"<").replace(/>/g,">")+"</textarea>"),"<cke:encoded>"+encodeURIComponent(e)+"</cke:encoded>"})}function d(e){return e.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(e,t){return decodeURIComponent(t)})}function u(e,t){var n=t._.dataStore;return e.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(e,t){return decodeURIComponent(t)}
1).replace(/\{cke_protected_(\d+)\}/g,function(e,t){return n&&n[t]||""})}CKEDITOR.htmlDataProcessor=function(n){var i,o,a=this;this.editor=n,this.dataFilter=i=new CKEDITOR.htmlParser.filter,this.htmlFilter=o=new CKEDITOR.htmlParser.filter,this.writer=new CKEDITOR.htmlParser.basicWriter,i.addRules(E),i.addRules(v,{applyToAll:!0}),i.addRules(e(n,"data"),{applyToAll:!0}),o.addRules(T),o.addRules(C,{applyToAll:!0}),o.addRules(e(n,"html"),{applyToAll:!0}),n.on("toHtml",function(e){var i,o=(o=(o=(o=(o=c(o=function(e){return e.replace(b,function(e,t,n){return"<"+t+n.replace(D,function(e,t){return y.test(t)&&-1==n.indexOf("data-cke-saved-"+t)?" data-cke-saved-"+e+" data-cke-"+CKEDITOR.rnd+"-"+e:e})+">"})}(o=c(o=function(e,t){for(var n=[],i=t.config.protectedSource,o=t._.dataStore||(t._.dataStore={id:1}),a=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,r=(i=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi,/<meta[\s\S]*?\/?>/gi].concat(i),e=e.replace(/<\!--[\s\S]*?--\>/g,function(e){return"\x3c!--{cke_tempcomment}"+(n.push(e)-1)+"--\x3e"}),0);r<i.length;r++)e=e.replace(i[r],function(e){return e=e.replace(a,function(e,t,i){return n[i]}),/cke_temp(comment)?/.test(e)?e:"\x3c!--{cke_temp}"+(n.push(e)-1)+"--\x3e"});return e=e.replace(a,function(e,t,i){return"\x3c!--"+f+(t?"{C}":"")+encodeURIComponent(n[i]).replace(/--/g,"%2D%2D")+"--\x3e"}),e=e.replace(/<\w+(?:\s+(?:(?:[^\s=>]+\s*=\s*(?:[^'"\s>]+|'[^']*'|"[^"]*"))|[^\s=>]+))+\s*>/g,function(e){return e.replace(/<\!--\{cke_protected\}([^>]*)--\>/g,function(e,t){return o[o.id]=decodeURIComponent(t),"{cke_protected_"+o.id+++"}"})}),e=e.replace(/<(title|iframe|textarea)([^>]*)>([\s\S]*?)<\/\1>/g,function(e,n,i,o){return"<"+n+i+">"+u(d(o),t)+"</"+n+">"})}(o=(e=e.data).dataValue,n),O)),I)).replace(_,"$1cke:$2")).replace(K,"<cke:$1$2></cke:$1>")).replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2")).replace(/([^a-z0-9<\-])(on\w{3,})(?!>)/gi,"$1data-cke-"+CKEDITOR.rnd+"-$2"),a=e.context||n.editable().getName();CKEDITOR.env.ie&&CKEDITOR.env.version<9&&"pre"==a&&(a="div",o="<pre>"+o+"</pre>",i=1),(a=n.document.createElement(a)).setHtml("a"+o),o=(o=a.getHtml().substr(1)).replace(RegExp("data-cke-"+CKEDITOR.rnd+"-","ig"),""),i&&(o=o.replace(/^<pre>|<\/pre>$/gi,"")),o=d(o=function(e){return e.replace(R,function(e,t){return decodeURIComponent(t)})}(o=o.replace(k,"$1$2"))),e.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(o,e.context,!1!==e.fixForBody&&t(e.enterMode,n.config.autoParagraph))},null,null,5),n.on("toHtml",function(e){e.data.filter.applyTo(e.data.dataValue,!0,e.data.dontFilter,e.data.enterMode)&&n.fire("dataFiltered")},null,null,6),n.on("toHtml",function(e){e.data.dataValue.filterChildren(a.dataFilter,!0)},null,null,10),n.on("toHtml",function(e){var t=(e=e.data).dataValue,n=new CKEDITOR.htmlParser.basicWriter;t.writeChildrenHtml(n),t=n.getHtml(!0),e.dataValue=function(e){return e.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(e){return"\x3c!--"+f+"{C}"+encodeURIComponent(e).replace(/--/g,"%2D%2D")+"--\x3e"})}(t)},null,null,15),n.on("toDataFormat",function(e){var i=e.data.dataValue;e.data.enterMode!=CKEDITOR.ENTER_BR&&(i=i.replace(/^<br *\/?>/i,"")),e.data.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(i,e.data.context,t(e.data.enterMode,n.config.autoParagraph))},null,null,5),n.on("toDataFormat",function(e){e.data.dataValue.filterChildren(a.htmlFilter,!0)},null,null,10),n.on("toDataFormat",function(e){e.data.filter.applyTo(e.data.dataValue,!1,!0)},null,null,11),n.on("toDataFormat",function(e){var t=e.data.dataValue,i=a.writer;i.reset(),t.writeChildrenHtml(i),t=u(t=d(t=i.getHtml(!0)),n),e.data.dataValue=t},null,null,15)},CKEDITOR.htmlDataProcessor.prototype={toHtml:function(e,t,n,i){var o,a,r,s=this.editor;return t&&"object"==typeof t?(o=t.context,n=t.fixForBody,i=t.dontFilter,a=t.filter,r=t.enterMode):o=t,!o&&null!==o&&(o=s.editable().getName()),s.fire("toHtml",{dataValue:e,context:o,fixForBody:n,dontFilter:i,filter:a||s.filter,enterMode:r||s.enterMode}).dataValue},toDataFormat:function(e,t){var n,i,o;return t&&(n=t.context,i=t.filter,o=t.enterMode),!n&&null!==n&&(n=this.editor.editable().getName()),this.editor.fire("toData
1Format",{dataValue:e,filter:i||this.editor.filter,context:n,enterMode:o||this.editor.enterMode}).dataValue}};var h=/(?: |\xa0)$/,f="{cke_protected}",p=CKEDITOR.dtd,m=["caption","colgroup","col","thead","tfoot","tbody"],g=CKEDITOR.tools.extend({},p.$blockLimit,p.$block),E={elements:{input:s,textarea:s}},v={attributeNames:[[/^on/,"data-cke-pa-on"],[/^data-cke-expando$/,""]]},T={elements:{embed:function(e){if((n=e.parent)&&"object"==n.name){var t=n.attributes.width,n=n.attributes.height;t&&(e.attributes.width=t),n&&(e.attributes.height=n)}},a:function(e){if(!e.children.length&&!e.attributes.name&&!e.attributes["data-cke-saved-name"])return!1}}},C={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus",""]],elements:{$:function(e){var t=e.attributes;if(t){if(t["data-cke-temp"])return!1;for(var n=["name","href","src"],i=0;i<n.length;i++)"data-cke-saved-"+n[i]in t&&delete t[n[i]]}return e},table:function(e){e.children.slice(0).sort(function(e,t){var n,i;return e.type==CKEDITOR.NODE_ELEMENT&&t.type==e.type&&(n=CKEDITOR.tools.indexOf(m,e.name),i=CKEDITOR.tools.indexOf(m,t.name)),n>-1&&i>-1&&n!=i||(n=e.parent?e.getIndex():-1,i=t.parent?t.getIndex():-1),n>i?1:-1})},param:function(e){return e.children=[],e.isEmpty=!0,e},span:function(e){"Apple-style-span"==e.attributes.class&&delete e.name},html:function(e){delete e.attributes.contenteditable,delete e.attributes.class},body:function(e){delete e.attributes.spellcheck,delete e.attributes.contenteditable},style:function(e){var t=e.children[0];t&&t.value&&(t.value=CKEDITOR.tools.trim(t.value)),e.attributes.type||(e.attributes.type="text/css")},title:function(e){var t=e.children[0];!t&&r(e,t=new CKEDITOR.htmlParser.text),t.value=e.attributes["data-cke-title"]||""},input:l,textarea:l},attributes:{class:function(e){return CKEDITOR.tools.ltrim(e.replace(/(?:^|\s+)cke_[^\s]*/g,""))||!1}}};CKEDITOR.env.ie&&(C.attributes.style=function(e){return e.replace(/(^|;)([^\:]+)/g,function(e){return e.toLowerCase()})});var b=/<(a|area|img|input|source)\b([^>]*)>/gi,D=/([\w-]+)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,y=/^(href|src|name)$/i,I=/(?:<style(?=[ >])[^>]*>[\s\S]*?<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,O=/(<textarea(?=[ >])[^>]*>)([\s\S]*?)(?:<\/textarea>)/gi,R=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,_=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,k=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,K=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),CKEDITOR.htmlParser.element=function(e,t){this.name=e,this.attributes=t||{},this.children=[];var n=e||"",i=n.match(/^cke:(.*)/);i&&(n=i[1]),n=!!(CKEDITOR.dtd.$nonBodyContent[n]||CKEDITOR.dtd.$block[n]||CKEDITOR.dtd.$listItem[n]||CKEDITOR.dtd.$tableContent[n]||CKEDITOR.dtd.$nonEditable[n]||"br"==n),this.isEmpty=!!CKEDITOR.dtd.$empty[e],this.isUnknown=!CKEDITOR.dtd[e],this._={isBlockLike:n,hasInlineStarted:this.isEmpty||!n}},CKEDITOR.htmlParser.cssStyle=function(e){var t={};return((e instanceof CKEDITOR.htmlParser.element?e.attributes.style:e)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(e,n,i){"font-family"==n&&(i=i.replace(/["']/g,"")),t[n.toLowerCase()]=i}),{rules:t,populate:function(e){var t=this.toString();t&&(e instanceof CKEDITOR.dom.element?e.setAttribute("style",t):e instanceof CKEDITOR.htmlParser.element?e.attributes.style=t:e.style=t)},toString:function(){var e,n=[];for(e in t)t[e]&&n.push(e,":",t[e],";");return n.join("")}}},function(){var e=function(e,t){return e=e[0],t=t[0],e<t?-1:e>t?1:0},t=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:t.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(e,t){var n,i,o=this;if((t=o.getFilterContext(t)).off)return!0;for(o.parent||e.onRoot(t,o);;){if(n=o.name,!(i=e.onElementName(t,n)))return this.remove(),!1;if(o.name=i,!(o=e.onElement(t,o)))return this.remove(),!1;if(o!==this)return this.replaceWith(o),!1;if(o.name==n)break;if(o.type!=CKEDITOR.NODE_ELEMENT)return this.replaceWith(o),!1;if(!o.name)return this.replaceWithChildren(),!1}n=o.attributes;var a,r;for(a in n){for(r=a,i=n[a];;){if(!(r=e.onAttributeName(t,a))){delete n[a];break}if(r==a)break;delete n[a],a=r}r&&(!1===(i=e.onAttribute(t,o,r,i))?delete n[r]:n[r]=i)}return o.isEmpty||this.filterChildren(e,!1,t),!0},filterChildren:t.filterChildren,writeHtml:function(t,n){n&&this.filter(n);var i,o,a=this.name,r=[],s=this.attributes;t.openTag(a,s);for(i in s)r.push([i,s[i]]);for(t.sortAttributes&&r.sort(e),i=0,o=r.length;i<o;i++)s=r[i],t.attribute(s[0],s[1]);t.openTagClose(a,this.isEmpty),this.writeChildrenHtml(t),this.isEmpty||t.closeTag(a)},writeChildrenHtml:t.writeChildrenHtml,replaceWithChildren:function(){for(var e=this.children,t=e.length;t;)e[--t].insertAfter(this);this.remove()}
1,forEach:t.forEach,getFirst:function(e){if(!e)return this.children.length?this.children[0]:null;"function"!=typeof e&&(e=function(e){return function(t){return t.type==CKEDITOR.NODE_ELEMENT&&("string"==typeof e?t.name==e:t.name in e)}}(e));for(var t=0,n=this.children.length;t<n;++t)if(e(this.children[t]))return this.children[t];return null},getHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;return this.writeChildrenHtml(e),e.getHtml()},setHtml:function(e){for(var t=0,n=(e=this.children=CKEDITOR.htmlParser.fragment.fromHtml(e).children).length;t<n;++t)e[t].parent=this},getOuterHtml:function(){var e=new CKEDITOR.htmlParser.basicWriter;return this.writeHtml(e),e.getHtml()},split:function(e){for(var t=this.children.splice(e,this.children.length-e),n=this.clone(),i=0;i<t.length;++i)t[i].parent=n;return n.children=t,t[0]&&(t[0].previous=null),e>0&&(this.children[e-1].next=null),this.parent.add(n,this.getIndex()+1),n},addClass:function(e){if(!this.hasClass(e)){var t=this.attributes.class||"";this.attributes.class=t+(t?" ":"")+e}},removeClass:function(e){var t=this.attributes.class;t&&((t=CKEDITOR.tools.trim(t.replace(RegExp("(?:\\s+|^)"+e+"(?:\\s+|$)")," ")))?this.attributes.class=t:delete this.attributes.class)},hasClass:function(e){var t=this.attributes.class;return!!t&&RegExp("(?:^|\\s)"+e+"(?=\\s|$)").test(t)},getFilterContext:function(e){var t=[];if(e||(e={off:!1,nonEditable:!1,nestedEditable:!1}),!e.off&&"off"==this.attributes["data-cke-processor"]&&t.push("off",!0),e.nonEditable||"false"!=this.attributes.contenteditable?e.nonEditable&&!e.nestedEditable&&"true"==this.attributes.contenteditable&&t.push("nestedEditable",!0):t.push("nonEditable",!0),t.length){e=CKEDITOR.tools.copy(e);for(var n=0;n<t.length;n+=2)e[t[n]]=t[n+1]}return e}},!0)}(),function(){var e={},t=/{([^}]+)}/g,n=/([\\'])/g,i=/\n/g,o=/\r/g;CKEDITOR.template=function(a){if(e[a])this.output=e[a];else{var r=a.replace(n,"\\$1").replace(i,"\\n").replace(o,"\\r").replace(t,function(e,t){return"',data['"+t+"']==undefined?'{"+t+"}':data['"+t+"'],'"});this.output=e[a]=Function("data","buffer","return buffer?buffer.push('"+r+"'):['"+r+"'].join('');")}}}(),delete CKEDITOR.loadFullCore,CKEDITOR.instances={},CKEDITOR.document=new CKEDITOR.dom.document(document),CKEDITOR.add=function(e){CKEDITOR.instances[e.name]=e,e.on("focus",function(){CKEDITOR.currentInstance!=e&&(CKEDITOR.currentInstance=e,CKEDITOR.fire("currentInstance"))}),e.on("blur",function(){CKEDITOR.currentInstance==e&&(CKEDITOR.currentInstance=null,CKEDITOR.fire("currentInstance"))}),CKEDITOR.fire("instance",null,e)},CKEDITOR.remove=function(e){delete CKEDITOR.instances[e.name]},function(){var e={};CKEDITOR.addTemplate=function(t,n){var i=e[t];return i||(i={name:t,source:n},CKEDITOR.fire("template",i),e[t]=new CKEDITOR.template(i.source))},CKEDITOR.getTemplate=function(t){return e[t]}}(),function(){var e=[];CKEDITOR.addCss=function(t){e.push(t)},CKEDITOR.getCss=function(){return e.join("\n")}}(),CKEDITOR.on("instanceDestroyed",function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")}),CKEDITOR.TRISTATE_ON=1,CKEDITOR.TRISTATE_OFF=2,CKEDITOR.TRISTATE_DISABLED=0,CKEDITOR.inline=function(e,t){if(!CKEDITOR.env.isCompatible)return null;if((e=CKEDITOR.dom.element.get(e)).getEditor())throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.';var n=new CKEDITOR.editor(t,e,CKEDITOR.ELEMENT_MODE_INLINE),i=e.is("textarea")?e:null;return i?(n.setData(i.getValue(),null,!0),(e=CKEDITOR.dom.element.createFromHtml('<div contenteditable="'+!!n.readOnly+'" class="cke_textarea_inline">'+i.getValue()+"</div>",CKEDITOR.document)).insertAfter(i),i.hide(),i.$.form&&n._attachToForm()):n.setData(e.getHtml(),null,!0),n.on("loaded",function(){n.fire("uiReady"),n.editable(e),n.container=e,n.setData(n.getData(1)),n.resetDirty(),n.fire("contentDom"),n.mode="wysiwyg",n.fire("mode"),n.status="ready",n.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,n)},null,null,1e4),n.on("destroy",function(){i&&(n.container.clearCustomData(),n.container.remove(),i.show()),n.element.clearCustomData(),delete n.element}),n},CKEDITOR.inlineAll=function(){var e,t,n;for(n in CKEDITOR.dtd.$editable)for(var i=CKEDITOR.document.getElementsByTag(n),o=0,a=i.count();o<a;o++)"true"==(e=i.getItem(o)).getAttribute("contenteditable")&&(t={element:e,config:{}},!1!==CKEDITOR.fire("inline",t)&&CKEDITOR.inline(e,t.config))},CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()}),CKEDITOR.replaceClass="ckeditor",function(){function e(e,n,i,o){if(!CKEDITOR.env.isCompatible)return null;if((e=CKEDITOR.dom.element.get(e)).getEditor())throw'The editor instance "'+e.getEditor().name+'" is already attached to the provided element.';var a=new CKEDITOR.editor(n,e,o);return o==CKEDITOR.ELEMENT_MODE_REPLACE&&(e.setStyle("visibility","hidden"),a._.required=e.hasAttribute("required"),e.removeAttribute("required")),i&&a.setData(i,null,!0),a.on("loaded",function(){!function(e){var t=e.name,n=e.element,i=e.elementMode,o=e.fire("uiSpace",{space:"top",html:""}).html,a=e.fire("uiSpace",{space:"bottom",html:""}).html,r=new CKEDITOR.template('<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" lang="{langCode}" role="application"'+(e.title?' aria-labelledby="cke_{name}_arialbl"':"")+">"+(e.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':"")+'<{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>'),t=CKEDITOR.dom.element.createFromHtml(r.output({id:e.id,name:t,langDir:e.lang.dir,langCode:e.langCode,voiceLabel:e.title,topHtml:o?'<span id="'+e.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+o+"</span>":"",contentId:e.ui.spaceId("contents"),bottomHtml:a?'<span id="'+e.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+a+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));i==CKEDITOR.ELEMENT_MODE_REPLACE?(n.hide(),t.insertAfter(n)):n.append(t);e.container=t,o&&e.ui.space("top").unselectable(),a&&e.ui.space("bottom").unselectable(),n=e.config.width,i=e.config.height,n&&t.setStyle("width",CKEDITOR.tools.cssLength(n)),i&&e.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(i)),t.disableContextMenu(),CKEDITOR.env.webkit&&t.on("focus",function(){e.focus()}),e.fireOnce("uiReady")}(a),o==CKEDITOR.ELEMENT_MODE_REPLACE&&a.config.autoUpdateElement&&e.$.form&&a._attachToForm(),a.setMode(a.config.startupMode,function(){a.resetDirty(),a.status="ready",a.fireOnce("instanceReady"),CKEDITOR.fire("instanceReady",null,a)})}),a.on("destroy",t),a}function t(){var e=this.container,t=this.element;e&&(e.clearCustomData(),e.remove()),t&&(t.clearCustomData(),this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(t.show(),this._.required&&t.setAttribute("required","required")),delete this.element)}CKEDITOR.replace=function(t,n){return e(t,n,null,CKEDITOR.ELEMENT_MODE_REPLACE)},CKEDITOR.appendTo=function(t,n,i){return e(t,n,i,CKEDITOR.ELEMENT_MODE_APPENDTO)},CKEDITOR.replaceAll=function(){for(var e=document.getElementsByTagName("textarea"),t=0;t<e.length;t++){var n=null,i=e[t];
1if(i.name||i.id){if("string"==typeof arguments[0]){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(i.className))continue}else if("function"==typeof arguments[0]&&(n={},!1===arguments[0](i,n)))continue;this.replace(i,n)}}},CKEDITOR.editor.prototype.addMode=function(e,t){(this._.modes||(this._.modes={}))[e]=t},CKEDITOR.editor.prototype.setMode=function(e,t){var n=this,i=this._.modes;if(e!=n.mode&&i&&i[e]){if(n.fire("beforeSetMode",e),n.mode){var o,a=n.checkDirty(),r=(i=n._.previousModeData,0);n.fire("beforeModeUnload"),n.editable(0),n._.previousMode=n.mode,n._.previousModeData=o=n.getData(1),"source"==n.mode&&i==o&&(n.fire("lockSnapshot",{forceUpdate:!0}),r=1),n.ui.space("contents").setHtml(""),n.mode=""}else n._.previousModeData=n.getData(1);this._.modes[e](function(){n.mode=e,void 0!==a&&!a&&n.resetDirty(),r?n.fire("unlockSnapshot"):"wysiwyg"==e&&n.fire("saveSnapshot"),setTimeout(function(){n.fire("mode"),t&&t.call(n)},0)})}},CKEDITOR.editor.prototype.resize=function(e,t,n,i){var o=this.container,a=this.ui.space("contents"),r=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement;(i=i?o.getChild(1):o).setSize("width",e,!0),r&&(r.style.width="1%"),a.setStyle("height",Math.max(t-(n?0:(i.$.offsetHeight||0)-(a.$.clientHeight||0)),0)+"px"),r&&(r.style.width="100%"),this.fire("resize")},CKEDITOR.editor.prototype.getResizable=function(e){return e?this.ui.space("contents"):this.container},CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function e(e){var t,i=e.editor,o=e.data.path,a=o.blockLimit,r=e.data.selection,s=r.getRanges()[0];(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller)&&(r=function(e,t){if(e.isFake)return 0;var i=t.block||t.blockLimit,o=i&&i.getLast(n);if(i&&i.isBlockBoundary()&&(!o||o.type!=CKEDITOR.NODE_ELEMENT||!o.isBlockBoundary())&&!i.is("pre")&&!i.getBogus())return i}(r,o))&&(r.appendBogus(),t=CKEDITOR.env.ie),!1!==i.config.autoParagraph&&i.activeEnterMode!=CKEDITOR.ENTER_BR&&i.editable().equals(a)&&!o.block&&s.c
1ollapsed&&!s.getCommonAncestor().isReadOnly()&&((o=s.clone()).enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS),(a=new CKEDITOR.dom.walker(o)).guard=function(e){return!n(e)||e.type==CKEDITOR.NODE_COMMENT||e.isReadOnly()},(!a.checkForward()||o.checkStartOfBlock()&&o.checkEndOfBlock())&&(i=s.fixBlock(!0,i.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"),CKEDITOR.env.needsBrFiller||(i=i.getFirst(n))&&i.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(i.getText()).match(/^(?: |\xa0)$/)&&i.remove(),t=1,e.cancel())),t&&s.select()}function t(e){var t=e.data.getTarget();t.is("input")&&("submit"==(t=t.getAttribute("type"))||"reset"==t)&&e.data.preventDefault()}function n(e){return l(e)&&c(e)}function i(e){e.editor.focus(),e.editor.fire("saveSnapshot")}function o(e){var t=e.editor;t.getSelection().scrollIntoView(),setTimeout(function(){t.fire("saveSnapshot")},0)}function a(e,t,n){var i=e.getCommonAncestor(t);for(t=e=n?t:e;(e=e.getParent())&&!i.equals(e)&&1==e.getChildCount();)t=e;t.remove()}CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(e,t){this.base(t.$||t),this.editor=e,this.status="unloaded",this.hasFocus=!1,this.setup()},proto:{focus:function(){var e;if(CKEDITOR.env.webkit&&!this.hasFocus&&(e=this.editor._.previousActive||this.getDocument().getActive(),this.contains(e)))e.focus();else{try{this.$[CKEDITOR.env.ie&&this.getDocument().equals(CKEDITOR.document)?"setActive":"focus"]()}catch(e){if(!CKEDITOR.env.ie)throw e}CKEDITOR.env.safari&&!this.isInline()&&((e=CKEDITOR.document.getActive()).equals(this.getWindow().getFrame())||this.getWindow().focus())}},on:function(e,t){var n=Array.prototype.slice.call(arguments,0);
1return CKEDITOR.env.ie&&/^focus|blur$/.exec(e)&&(e="focus"==e?"focusin":"focusout",t=function(e,t){return function(n){var i=CKEDITOR.dom.element.get(n.data.$.toElement||n.data.$.fromElement||n.data.$.relatedTarget);(!i||!t.equals(i)&&!t.contains(i))&&e.call(this,n)}}(t,this),n[0]=e,n[1]=t),CKEDITOR.dom.element.prototype.on.apply(this,n)},attachListener:function(e,t,n,i,o,a){!this._.listeners&&(this._.listeners=[]);var r=Array.prototype.slice.call(arguments,1);r=e.on.apply(e,r);return this._.listeners.push(r),r},clearListeners:function(){var e=this._.listeners;try{for(;e.length;)e.pop().removeListener()}catch(e){}},restoreAttrs:function(){var e,t,n=this._.attrChanges;for(t in n)n.hasOwnProperty(t)&&(null!==(e=n[t])?this.setAttribute(t,e):this.removeAttribute(t))},attachClass:function(e){var t=this.getCustomData("classes");this.hasClass(e)||(!t&&(t=[]),t.push(e),this.setCustomData("classes",t),this.addClass(e))},changeAttr:function(e,t){var n=this.getAttribute(e);t!==n&&(!this._.attrChanges&&(this._.attrChanges={}),e in this._.attrChanges||(this._.attrChanges[e]=n),this.setAttribute(e,t))},insertHtml:function(e,t){i(this),d(this,t||"html",e)},insertText:function(e){i(this);var t=(o=(t=this.editor).getSelection().getStartElement().hasAscendant("pre",!0)?CKEDITOR.ENTER_BR:t.activeEnterMode)==CKEDITOR.ENTER_BR,n=CKEDITOR.tools,o=(e=(e=n.htmlEncode(e.replace(/\r\n/g,"\n"))).replace(/\t/g," "),o==CKEDITOR.ENTER_P?"p":"div");if(!t){var a=/\n{2}/g;if(a.test(e)){var r="<"+o+">",s="</"+o+">";e=r+e.replace(a,function(){return s+r})+s}}e=e.replace(/\n/g,"<br>"),t||(e=e.replace(RegExp("<br>(?=</"+o+">)"),function(e){return n.repeat(e,2)})),e=(e=e.replace(/^ | $/g," ")).replace(/(>|\s) /g,function(e,t){return t+" "}).replace(/ (?=<)/g," "),d(this,"text",e)},insertElement:function(e,t){t?this.insertElementIntoRange(e,t):this.insertElementIntoSelection(e)},insertElementIntoRange:function(e,t){var n=this.editor,i=n.config.enterMode,o=e.getName(),a=CKEDITOR.dtd.$block[o];if(t.checkReadOnly())return!1;t.deleteContents(1),t.startContainer.type==CKEDITOR.NODE_ELEMENT&&t.startContainer.is({tr:1,table:1,tbody:1,thead:1,tfoot:1})&&u(t);var r,s;if(a)for(;(r=t.getCommonAncestor(0,1))&&(s=CKEDITOR.dtd[r.getName()])&&(!s||!s[o]);)r.getName()in CKEDITOR.dtd.span?t.splitElement(r):t.checkStartOfBlock()&&t.checkEndOfBlock()?(t.setStartBefore(r),t.collapse(!0),r.remove()):t.splitBlock(i==CKEDITOR.ENTER_DIV?"div":"p",n.editable());return t.insertNode(e),!0},insertElementIntoSelection:function(e){i(this);var t,a=(t=this.editor).activeEnterMode,s=(t=t.getSelection()).getRanges()[0],l=e.getName();l=CKEDITOR.dtd.$block[l];this.insertElementIntoRange(e,s)&&(s.moveToPosition(e,CKEDITOR.POSITION_AFTER_END),l&&((l=e.getNext(function(e){return n(e)&&!r(e)}))&&l.type==CKEDITOR.NODE_ELEMENT&&l.is(CKEDITOR.dtd.$block)?l.getDtd()["#"]?s.moveToElementEditStart(l):s.moveToElementEditEnd(e):l||a==CKEDITOR.ENTER_BR||(l=s.fixBlock(!0,a==CKEDITOR.ENTER_DIV?"div":"p"),s.moveToElementEditStart(l)))),t.selectRanges([s]),o(this)},setData:function(e,t){t||(e=this.editor.dataProcessor.toHtml(e)),this.setHtml(e),"unloaded"==this.status&&(this.status="ready"),this.editor.fire("dataReady")},getData:function(e){var t=this.getHtml();return e||(t=this.editor.dataProcessor.toDataFormat(t)),t},setReadOnly:function(e){this.setAttribute("contenteditable",!e)},detach:function(){this.removeClass("cke_editable"),this.status="detached";var e=this.editor;this._.detach(),delete e.document,delete e.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},setup:function(){var e=this.editor;if(this.attachListener(e,"beforeGetData",function(){var t=this.getData();this.is("textarea")||!1!==e.config.ignoreEmptyParagraph&&(t=t.replace(s,function(e,t){return t})),e.setData(t,null,1)},this),this.attachListener(e,"getSnapshot",function(e){e.data=this.getData(1)},this),this.attachListener(e,"afterSetData",function(){this.setData(e.getData(1))},this),this.attachListener(e,"loadSnapshot",function(e){this.setData(e.data,1)},this),this.attachListener(e,"beforeFocus",function(){var t=e.getSelection();
1(t=t&&t.getNative())&&"Control"==t.type||this.focus()},this),this.attachListener(e,"insertHtml",function(e){this.insertHtml(e.data.dataValue,e.data.mode)},this),this.attachListener(e,"insertElement",function(e){this.insertElement(e.data)},this),this.attachListener(e,"insertText",function(e){this.insertText(e.data)},this),this.setReadOnly(e.readOnly),this.attachClass("cke_editable"),this.attachClass(e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"cke_editable_inline":e.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||e.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO?"cke_editable_themed":""),this.attachClass("cke_contents_"+e.config.contentsLangDirection),e.keystrokeHandler.blockedKeystrokes[8]=+e.readOnly,e.keystrokeHandler.attach(this),this.on("blur",function(){this.hasFocus=!1},null,null,-1),this.on("focus",function(){this.hasFocus=!0},null,null,-1),e.focusManager.add(this),this.equals(CKEDITOR.document.getActive())&&(this.hasFocus=!0,e.once("contentDom",function(){e.focusManager.focus()})),this.isInline()&&this.changeAttr("tabindex",e.tabIndex),!this.is("textarea")){e.document=this.getDocument(),e.window=this.getWindow();var i=e.document;this.changeAttr("spellcheck",!e.config.disableNativeSpellChecker);var o=e.config.contentsLangDirection;this.getDirection(1)!=o&&this.changeAttr("dir",o);var c=CKEDITOR.getCss();c&&((o=i.getHead()).getCustomData("stylesheet")||(c=i.appendStyleText(c),c=new CKEDITOR.dom.element(c.ownerNode||c.owningElement),o.setCustomData("stylesheet",c),c.data("cke-temp",1))),o=i.getCustomData("stylesheet_ref")||0,i.setCustomData("stylesheet_ref",o+1),this.setCustomData("cke_includeReadonly",!e.config.disableReadonlyStyling),this.attachListener(this,"click",function(e){e=e.data;var t=new CKEDITOR.dom.elementPath(e.getTarget(),this).contains("a");t&&2!=e.$.button&&t.isReadOnly()&&e.preventDefault()});var d={8:1,46:1};this.attachListener(e,"key",function(t){if(e.readOnly)return!0;var i;if((f=t.data.domEvent.getKey())in d){var o,a,s,c,u=(t=e.getSelection()).getRanges()[0],h=u.startPath(),f=8==f;CKEDITOR.env.ie&&CKEDITOR.env.version<11&&(o=t.getSelectedElement())||(o=function(e){var t,i=e.getRanges()[0],o=e.root,a={table:1,ul:1,ol:1,dl:1};if(i.startPath().contains(a)){e=function(e){return function(i,o){if(o&&i.type==CKEDITOR.NODE_ELEMENT&&i.is(a)&&(t=i),!o&&n(i)&&(!e||!r(i)))return!1}};var s=i.clone();if(s.collapse(1),s.setStartAt(o,CKEDITOR.POSITION_AFTER_START),o=new CKEDITOR.dom.walker(s),o.guard=e(),o.checkBackward(),t)return(s=i.clone()).collapse(),s.setEndAt(t,CKEDITOR.POSITION_AFTER_END),o=new CKEDITOR.dom.walker(s),o.guard=e(!0),t=!1,o.checkForward(),t}return null}(t))?(e.fire("saveSnapshot"),u.moveToPosition(o,CKEDITOR.POSITION_BEFORE_START),o.remove(),u.select(),e.fire("saveSnapshot"),i=1):u.collapsed&&((a=h.block)&&(c=a[f?"getPrevious":"getNext"](l))&&c.type==CKEDITOR.NODE_ELEMENT&&c.is("table")&&u[f?"checkStartOfBlock":"checkEndOfBlock"]()?(e.fire("saveSnapshot"),u[f?"checkEndOfBlock":"checkStartOfBlock"]()&&a.remove(),u["moveToElementEdit"+(f?"End":"Start")](c),u.select(),e.fire("saveSnapshot"),i=1):h.blockLimit&&h.blockLimit.is("td")&&(s=h.blockLimit.getAscendant("table"))&&u.checkBoundaryOfElement(s,f?CKEDITOR.START:CKEDITOR.END)&&(c=s[f?"getPrevious":"getNext"](l))?(e.fire("saveSnapshot"),u["moveToElementEdit"+(f?"End":"Start")](c),u.checkStartOfBlock()&&u.checkEndOfBlock()?c.remove():u.select(),e.fire("saveSnapshot"),i=1):(s=h.contains(["td","th","caption"]))&&u.checkBoundaryOfElement(s,f?CKEDITOR.START:CKEDITOR.END)&&(i=1))}return!i}),e.blockless&&CKEDITOR.env.ie&&CKEDITOR.env.needsBrFiller&&this.attachListener(this,"keyup",function(t){t.data.getKeystroke()in d&&!this.getFirst(n)&&(this.appendBogus(),(t=e.createRange()).moveToPosition(this,CKEDITOR.POSITION_AFTER_START),t.select())}),this.attachListener(this,"dblclick",function(t){if(e.readOnly)return!1;t={element:t.data.getTarget()},e.fire("doubleclick",t)}),CKEDITOR.env.ie&&this.attachListener(this,"click",t),CKEDITOR.env.ie||this.attachListener(this,"mousedown",function(t){var n=t.data.getTarget();n.is("img","hr","input","textarea","select")&&!n.isReadOnly()&&(e.getSelection().selectElement(n),n.is("input","textarea","select")&&t.data.preventDefault())}),CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(t){if(2==t.data.$.button&&!(t=t.data.getTarget()).getOuterHtml().replace(s,"")){var n=e.createRange();n.moveToElementEditStart(t),n.select(!0)}}),CKEDITOR.env.webkit&&(this.attachListener(this,"click",function(e){e.data.getTarget().is("input","select")&&e.data.preventDefault()}),this.attachListener(this,"mouseup",function(e){e.data.getTarget().is("input","textarea")&&e.data.preventDefault()})),CKEDITOR.env.webkit&&this.attachListener(e,"key",function(t){if((t=t.data.domEvent.getKey())in d){var n=8==t,i=e.getSelection().getRanges()[0];t=i.startPath();if(i.collapsed){var o;e:{var r=t.block;if(r)if(i[n?"checkStartOfBlock":"checkEndOfBlock"]())if(i.moveToClose
1stEditablePosition(r,!n)&&i.collapsed){if(i.startContainer.type==CKEDITOR.NODE_ELEMENT){var s=i.startContainer.getChild(i.startOffset-(n?1:0));if(s&&s.type==CKEDITOR.NODE_ELEMENT&&s.is("hr")){e.fire("saveSnapshot"),s.remove(),o=!0;break e}}if((i=i.startPath().block)&&(!i||!i.contains(r))){e.fire("saveSnapshot");var l;(l=(n?i:r).getBogus())&&l.remove(),l=(o=e.getSelection()).createBookmarks(),(n?r:i).moveChildren(n?i:r,!1),t.lastElement.mergeSiblings(),a(r,i,!n),o.selectBookmarks(l),o=!0}}else o=!1;else o=!1;else o=!1}if(!o)return}else if(n=i,o=t.block,l=n.endPath().block,o&&l&&!o.equals(l)?(e.fire("saveSnapshot"),(r=o.getBogus())&&r.remove(),n.deleteContents(),l.getParent()&&(l.moveChildren(o,!1),t.lastElement.mergeSiblings(),a(o,l,!0)),(n=e.getSelection().getRanges()[0]).collapse(1),n.select(),t=!0):t=!1,!t)return;return e.getSelection().scrollIntoView(),e.fire("saveSnapshot"),!1}},this,null,100)}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1),this.clearListeners(),this.restoreAttrs();var e;if(e=this.removeCustomData("classes"))for(;e.length;)this.removeClass(e.pop());if(!this.is("textarea")){var t=(e=this.getDocument()).getHead();if(t.getCustomData("stylesheet")){var n=e.getCustomData("stylesheet_ref");--n?e.setCustomData("stylesheet_ref",n):(e.removeCustomData("stylesheet_ref"),t.removeCustomData("stylesheet").remove())}}this.editor.fire("contentDomUnload"),delete this.editor}}}),CKEDITOR.editor.prototype.editable=function(e){var t=this._.editable;return t&&e?0:(arguments.length&&(t=this._.editable=e?e instanceof CKEDITOR.editable?e:new CKEDITOR.editable(this,e):(t&&t.detach(),null)),t)};var r=CKEDITOR.dom.walker.bogus(),s=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi,l=CKEDITOR.dom.walker.whitespaces(!0),c=CKEDITOR.dom.walker.bookmark(!1,!0);CKEDITOR.on("instanceLoaded",function(t){var n=t.editor;n.on("insertElement",function(e){(e=e.data).type==CKEDITOR.NODE_ELEMENT&&(e.is("input")||e.is("textarea"))&&("false"!=e.getAttribute("contentEditable")&&e.data("cke-editable",e.hasAttribute("contenteditable")?"true":"1"),e.setAttribute("contentEditable",!1))}),n.on("selectionChange",function(t){if(!n.readOnly){var i=n.getSelection();i&&!i.isLocked&&(i=n.checkDirty(),n.fire("lockSnapshot"),e(t),n.fire("unlockSnapshot"),!i&&n.resetDirty())}})}),CKEDITOR.on("instanceCreated",function(e){var t=e.editor;t.on("mode",function(){var e=t.editable();if(e&&e.isInline()){var n=t.title;e.changeAttr("role","textbox"),e.changeAttr("aria-label",n),n&&e.changeAttr("title",n);if((o=t.fire("ariaEditorHelpLabel",{}).label)&&(n=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents"))){var i=CKEDITOR.tools.getNextId(),o=CKEDITOR.dom.element.createFromHtml('<span id="'+i+'" class="cke_voice_label">'+o+"</span>");n.append(o),e.changeAttr("aria-describedby",i)}}})}),CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var d=function(){function e(e){return e.type==CKEDITOR.NODE_ELEMENT}function t(n,i){var o,a,r,l,c=[],d=i.range.startContainer;o=i.range.startPath();d=s[d.getName()];for(var u=0,h=n.getChildren(),f=h.count(),p=-1,m=-1,g=0,E=o.contains(s.$list);u<f;++u)e(o=h.getItem(u))?(r=o.getName(),E&&r in CKEDITOR.dtd.$list?c=c.concat(t(o,i)):(l=!!d[r],"br"!=r||!o.data("cke-eol")||u&&u!=f-1||(g=(a=u?c[u-1].node:h.getItem(u+1))&&(!e(a)||!a.is("br")),a=a&&e(a)&&s.$block[a.getName()]),-1==p&&!l&&(p=u),l||(m=u),c.push({isElement:1,isLineBreak:g,isBlock:o.isBlockBoundary(),hasBlockSibling:a,node:o,name:r,allowed:l}),a=g=0)):c.push({isElement:0,node:o,allowed:1});return p>-1&&(c[p].firstNotAllowed=1),m>-1&&(c[m].lastNotAllowed=1),c}function i(t,n){var o,a=[],r=t.getChildren(),l=r.count(),c=0,d=s[n],u=!t.is(s.$inline)||t.is("br");for(u&&a.push(" ");c<l;c++)e(o=r.getItem(c))&&!o.is(d)?a=a.concat(i(o,n)):a.push(o);return u&&a.push(" "),a}function a(t){return t&&e(t)&&(t.is(s.$removeEmpty)||t.is("a")&&!t.isBlockBoundary())}function r(t,n,i,o){var a,s,c=t.clone();c.setEndAt(n,CKEDITOR.POSITION_BEFORE_END),(a=new CKEDITOR.dom.walker(c).next())&&e(a)&&l[a.getName()]&&(s=a.getPrevious())&&e(s)&&!s.getParent().equals(t.startContainer)&&i.contains(s)&&o.contains(a)&&a.isIdentical(s)&&(a.moveChildren(s),a.remove(),r(t,n,i,o))}var s=CKEDITOR.dtd,l={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},c={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},d=CKEDITOR.tools.extend({},s.$inline);return delete d.br,function(l,u,h){var f=l.editor;l.getDocument();var p=f.getSelection().getRanges()[0],m=!1;if("unfiltered_html"==u&&(u="html",m=!0),!p.checkReadOnly()){var g,E,v,T;f=(u={type:u,dontFilter:m,editable:l,editor:f,range:p,blockLimit:C=new CKEDITOR.dom.elementPath(p.startContainer,p.root).blockLimit||p.root,mergeCandidates:[],zombies:[]}).range,m=u.mergeCandidates;if("text"==u.type&&f.shrink(CKEDITOR.SHRINK_ELEMENT,!0,!1)&&(g=CKEDITOR.dom.element.createFromHtml("<span> </span>
1",f.document),f.insertNode(g),f.setStartAfter(g)),E=new CKEDITOR.dom.elementPath(f.startContainer),u.endPath=v=new CKEDITOR.dom.elementPath(f.endContainer),!f.collapsed){var C=v.block||v.blockLimit,b=f.getCommonAncestor();C&&!C.equals(b)&&!C.contains(b)&&f.checkEndOfBlock()&&u.zombies.push(C),f.deleteContents()}for(;(T=e(f.startContainer)&&f.startContainer.getChild(f.startOffset-1))&&e(T)&&T.isBlockBoundary()&&E.contains(T);)f.moveToPosition(T,CKEDITOR.POSITION_BEFORE_END);for(r(f,u.blockLimit,E,v),g&&(f.setEndBefore(g),f.collapse(),g.remove()),(C=(g=f.startPath()).contains(a,!1,1))&&(f.splitElement(C),u.inlineStylesRoot=C,u.inlineStylesPeak=g.lastElement),(C=(g=f.createBookmark()).startNode.getPrevious(n))&&e(C)&&a(C)&&m.push(C),(C=g.startNode.getNext(n))&&e(C)&&a(C)&&m.push(C),C=g.startNode;(C=C.getParent())&&a(C);)m.push(C);if(f.moveToBookmark(g),g=h){if(g=u.range,"text"==u.type&&u.inlineStylesRoot){for(f=(T=u.inlineStylesPeak).getDocument().createText("{cke-peak}"),m=u.inlineStylesRoot.getParent();!T.equals(m);)f=f.appendTo(T.clone()),T=T.getParent();h=f.getOuterHtml().split("{cke-peak}").join(h)}if(T=u.blockLimit.getName(),/^\s+|\s+$/.test(h)&&"span"in CKEDITOR.dtd[T]){var D='<span data-cke-marker="1"> </span>';h=D+h+D}if(h=u.editor.dataProcessor.toHtml(h,{context:null,fixForBody:!1,dontFilter:u.dontFilter,filter:u.editor.activeFilter,enterMode:u.editor.activeEnterMode}),(T=g.document.createElement("body")).setHtml(h),D&&(T.getFirst().remove(),T.getLast().remove()),(D=g.startPath().block)&&(1!=D.getChildCount()||!D.getBogus()))e:{var y;if(1==T.getChildCount()&&e(y=T.getFirst())&&y.is(c)){for(g=0,m=(D=y.getElementsByTag("*")).count();g<m;g++)if(!(f=D.getItem(g)).is(d))break e;y.moveChildren(y.getParent(1)),y.remove()}}u.dataWrapper=T,g=h}if(g){var I;D=(y=u.range).document,h=u.blockLimit;g=0;var O;T=[];var R,_,k,K;m=f=0;E=y.startContainer;var w;for(v=(C=u.endPath.elements[0]).getPosition(E),b=!(!C.getCommonAncestor(E)||v==CKEDITOR.POSITION_IDENTICAL||v&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED),function(t,n){function i(t,n){if(n.isBlock&&n.isElement&&!n.node.is("br")&&e(t)&&t.is("br"))return t.remove(),1}var o=n.endContainer.getChild(n.endOffset),a=n.endContainer.getChild(n.endOffset-1);o&&i(o,t[t.length-1]),a&&i(a,t[0])&&(n.setEnd(n.endContainer,n.endOffset-1),n.collapse())}(E=t(u.dataWrapper,u),y);g<E.length;g++){if(v=E[g],I=v.isLineBreak){I=y,k=h;var x=void 0,S=void 0;v.hasBlockSibling?I=1:(x=I.startContainer.getAscendant(s.$block,1))&&x.is({div:1,p:1})?(S=x.getPosition(k))==CKEDITOR.POSITION_IDENTICAL||S==CKEDITOR.POSITION_CONTAINS?I=0:(k=I.splitElement(x),I.moveToPosition(k,CKEDITOR.POSITION_AFTER_START),I=1):I=0}if(I)m=g>0;else{if(I=y.startPath(),!v.isBlock&&!1!==u.editor.config.autoParagraph&&u.editor.activeEnterMode!=CKEDITOR.ENTER_BR&&u.editor.editable().equals(I.blockLimit)&&!I.block&&(_=u.editor.activeEnterMode!=CKEDITOR.ENTER_BR&&!1!==u.editor.config.autoParagraph&&(u.editor.activeEnterMode==CKEDITOR.ENTER_DIV?"div":"p"))&&((_=D.createElement(_)).appendBogus(),y.insertNode(_),CKEDITOR.env.needsBrFiller&&(O=_.getBogus())&&O.remove(),y.moveToPosition(_,CKEDITOR.POSITION_BEFORE_END)),(I=y.startPath().block)&&!I.equals(R)&&((O=I.getBogus())&&(O.remove(),T.push(I)),R=I),v.firstNotAllowed&&(f=1),f&&v.isElement){for(I=y.startContainer,k=null;I&&!s[I.getName()][v.name];){if(I.equals(h)){I=null;break}k=I,I=I.getParent()}if(I)k&&(K=y.splitElement(k),u.zombies.push(K),u.zombies.push(k));else{k=h.getName(),w=!g,I=g==E.length-1;x=[],S=(k=i(v.node,k)).length;for(var N=0,$=void 0,A=0,L=-1;N<S;N++)" "==($=k[N])?(A||w&&!N||(x.push(new CKEDITOR.dom.text(" ")),L=x.length),A=1):(x.push($),A=0);I&&L==x.length&&x.pop(),w=x}}if(w){for(;I=w.pop();)y.insertNode(I);w=0}else y.insertNode(v.node);v.lastNotAllowed&&g<E.length-1&&((K=b?C:K)&&y.setEndAt(K,CKEDITOR.POSITION_AFTER_START),f=0),y.collapse()}}u.dontMoveCaret=m,u.bogusNeededBlocks=T}O=u.range;var P;for(K=u.bogusNeededBlocks,w=O.createBookmark();R=u.zombies.pop();)R.getParent()&&((_=O.clone()).moveToElementEditStart(R),_.removeEmptyBlocksAtEnd());if(K)for(;R=K.pop();)CKEDITOR.env.needsBrFiller?R.appendBogus():R.append(O.document.createText(" "));for(;R=u.mergeCandidates.pop();)R.mergeSiblings();if(O.moveToBookmark(w),!u.dontMoveCaret){for(R=e(O.startContainer)&&O.startContainer.getChild(O.startOffset-1);R&&e(R)&&!R.is(s.$empty);){if(R.isBlockBoundary())O.moveToPosition(R,CKEDITOR.POSITION_BEFORE_END);else{if(a(R)&&R.getHtml().match(/(\s| )$/g)){P=null;break}(P=O.clone()).moveToPosition(R,CKEDITOR.POSITION_BEFORE_END)}R=R.getLast(n)}P&&O.moveToRange(P)}p.select(),o(l)}}}(),u=function(){function e(e){return e=new CKEDITOR.dom.walker(e),e.guard=function(e,t){return!t&&(e.type==CKEDITOR.NODE_ELEMENT?e.is(CKEDITOR.dtd.$tableContent):void 0)},e.evaluator=function(e){return e.type==CKEDITOR.NODE_ELEMENT},e}
1function t(e,t,n){return t=e.getDocument().createElement(t),e.append(t,n),t}function n(e){for(var t,n=e.count();n-- >0;)t=e.getItem(n),CKEDITOR.tools.trim(t.getHtml())||(t.appendBogus(),CKEDITOR.env.ie&&CKEDITOR.env.version<9&&t.getChildCount()&&t.getFirst().remove())}return function(i){var o=i.startContainer,a=o.getAscendant("table",1),r=!1;n(a.getElementsByTag("td")),n(a.getElementsByTag("th")),(a=i.clone()).setStart(o,0),(a=e(a).lastBackward())||((a=i.clone()).setEndAt(o,CKEDITOR.POSITION_BEFORE_END),a=e(a).lastForward(),r=!0),a||(a=o),a.is("table")?(i.setStartAt(a,CKEDITOR.POSITION_BEFORE_START),i.collapse(!0),a.remove()):(a.is({tbody:1,thead:1,tfoot:1})&&(a=t(a,"tr",r)),a.is("tr")&&(a=t(a,a.getParent().is("thead")?"th":"td",r)),(o=a.getBogus())&&o.remove(),i.moveToPosition(a,r?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END))}}()}(),function(){function e(){var e,t=this._.fakeSelection;t&&((e=this.getSelection(1))&&e.isHidden()||(t.reset(),t=0)),(t||(t=e||this.getSelection(1))&&t.getType()!=CKEDITOR.SELECTION_NONE)&&(this.fire("selectionCheck",t),(e=this.elementPath()).compare(this._.selectionPreviousPath)||(CKEDITOR.env.webkit&&(this._.previousActive=this.document.getActive()),this._.selectionPreviousPath=e,this.fire("selectionChange",{selection:t,path:e})))}function t(){c=!0,l||(n.call(this),l=CKEDITOR.tools.setTimeout(n,200,this))}function n(){l=null,c&&(CKEDITOR.tools.setTimeout(e,0,this),c=!1)}function i(e){function t(t,n){return!(!t||t.type==CKEDITOR.NODE_TEXT)&&e.clone()["moveToElementEdit"+(n?"End":"Start")](t)}if(!(e.root instanceof CKEDITOR.editable))return!1;var n=e.startContainer,i=e.getPreviousNode(d,null,n),o=e.getNextNode(d,null,n);return!(!t(i)&&!t(o,1)&&(i||o||n.type==CKEDITOR.NODE_ELEMENT&&n.isBlockBoundary()&&n.getBogus()))}function o(e){return e.getCustomData("cke-fillingChar")}function a(e,t){var n=e&&e.removeCustomData("cke-fillingChar");if(n){if(!1!==t){var i,o=e.getDocument().getSelection().getNative(),a=o&&"None"!=o.type&&o.getRangeAt(0);if(n.getLength()>1&&a&&a.intersectsNode(n.$)){i=[o.anchorOffset,o.focusOffset],a=o.focusNode==n.$&&o.focusOffset>0,o.anchorNode==n.$&&o.anchorOffset>0&&i[0]--,a&&i[1]--;var s;(a=o).isCollapsed||((s=a.getRangeAt(0)).setStart(a.anchorNode,a.anchorOffset),s.setEnd(a.focusNode,a.focusOffset),s=s.collapsed),s&&i.unshift(i.pop())}}n.setText(r(n.getText())),i&&((n=o.getRangeAt(0)).setStart(n.startContainer,i[0]),n.setEnd(n.startContainer,i[1]),o.removeAllRanges(),o.addRange(n))}}function r(e){return e.replace(/\u200B( )?/g,function(e){return e[1]?" ":""})}function s(e,t,n){var i=e.on("focus",function(e){e.cancel()},null,null,-100);if(CKEDITOR.env.ie)var o=e.getDocument().on("selectionchange",function(e){e.cancel()},null,null,-100);else{var a=new CKEDITOR.dom.range(e);a.moveToElementEditStart(e);var r=e.getDocument().$.createRange();r.setStart(a.startContainer.$,a.startOffset),r.collapse(1),t.removeAllRanges(),t.addRange(r)}n&&e.focus(),i.removeListener(),o&&o.removeListener()}var l,c,d=CKEDITOR.dom.walker.invisible(1),u=function(){function e(e){return function(t){var n=t.editor.createRange();return n.moveToClosestEditablePosition(t.selected,e)&&t.editor.getSelection().selectRanges([n]),!1}}function t(e){return function(t){var n,i=t.editor,o=i.createRange();return(n=o.moveToClosestEditablePosition(t.selected,e))||(n=o.moveToClosestEditablePosition(t.selected,!e)),n&&i.getSelection().selectRanges([o]),i.fire("saveSnapshot"),t.selected.remove(),n||(o.moveToElementEditablePosition(i.editable()),i.getSelection().selectRanges([o])),i.fire("saveSnapshot"),!1}}var n=e(),i=e(1);return{37:n,38:n,39:i,40:i,8:t(),46:t(1)}}();CKEDITOR.on("instanceCreated",function(n){function i(){var e=o.getSelection();e&&e.removeAllRanges()}var o=n.editor;o.on("contentDom",function(){var n,i,r=o.document,s=CKEDITOR.document,l=o.editable(),c=r.getBody(),d=r.getDocumentElement(),u=l.isInline();if(CKEDITOR.env.gecko&&l.attachListener(l,"focus",function(e){e.removeListener(),0!==n&&(e=o.getSelection().getNative())&&e.isCollapsed&&e.anchorNode==l.$&&((e=o.createRange()).moveToElementEditStart(l),e.select())},null,null,-2),l.attachListener(l,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){n&&CKEDITOR.env.webkit&&(n=o._.previousActive&&o._.previousActive.equals(r.getActive())),o.unlockSelection(n),n=0},null,null,-1),l.attachListener(l,"mousedown",function(){n=0}),CKEDITOR.env.ie||u){var f=function(){(i=new CKEDITOR.dom.selection(o.getSelection())).lock()};h?l.attachListener(l,"beforedeactivate",f,null,null,-1):l.attachListener(o,"selectionCheck",f,null,null,-1),l.attachListener(l,CKEDITOR.env.webkit?"DOMFocusOut":"blur",function(){o.lockSelection(i),n=1},null,null,-1),l.attachListener(l,"mousedown",function(){n=0})}if(CKEDITOR.env.ie&&!u){var p;if(l.attachListener(l,"mousedown",function(e){2==e.data.$.button&&((e=o.document.getSelection())&&e.getType()!=CKEDITOR.SELECTION_NONE||(p=o.window.getScrollPosition()))}),l.attachListener(l,"mouseup",function(e){2==e.data.$.button&&p&&(o.document.$.documentElement.scrollLeft=p.x,o.document.$.documentElement.scrollTop=p.y),p=null}),"BackCompat"!=r.$.compatMode&&((CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&d.on("mousedown",function(e){function t(e){if(e=e.data.$,i){var t=c.$.createTextRange();try{t.moveToPoint(e.clientX,e.clientY)}catch(e){}i.setEndPoint(o.compareEndPoints("StartToStart",t)<0?"EndToEnd":"StartToStart",t),i.select()}}function n(){d.removeListener("mousemove",t),s.removeListener("mouseup",n),d.removeListener("mouseup",n),i.select()}if((e=e.data).getTarget().is("html")&&e.$.y<d.$.clientHeight&&e.$.x<d.$.clientWidth){var i=c.$.createTextRange();try{i.moveToPoint(e.$.clientX,e.$.clientY)}catch(e){}var o=i.duplicate();d.on("mousemove",t),s.on("mouseup",n),d.on("mouseup",n)}}),CKEDITOR.env.version>7&&CKEDITOR.env.version<11)){d.on("mousedown",function(e){e.data.getTarget().is("html")&&(s.on("mouseup",m),d.on("mouseup",m))});var m=function(){s.removeListener("mouseup",m),d.removeListener("mouseup",m);var e=CKEDITOR.document.$.selection,t=e.createRange();"None"!=e.type&&t.parentElement().ownerDocument==r.$&&t.select()}}}if(l.attachListener(l,"selectionchange",e,o),l.attachListener(l,"keyup",t,o),l.attachListener(l,CKEDITOR.env.webkit?"DOMFocusIn":"focus",function(){o.forceNextSelectionCheck(),o.selectionChange(1)}),u&&(CKEDITOR.env.webkit||CKEDITOR.env.gecko)){var g;l.attachListener(l,"mousedown",function(){g=1}),l.attachListener(r.getDocumentElement(),"mouseup",function(){g&&t.call(o),g=0})}else l.attachListener(CKEDITOR.env.ie?l:r.getDocumentElement(),"mouseup",t,o);CKEDITOR.env.webkit&&l.attachListener(r,"keydown",function(e){switch(e.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:a(l)}},null,null,-1),l.attachListener(l,"keydown",function(e){var t={37:1,39:1,8:1,46:1};return function(n){var i=n.data.getKeystroke();if(t[i]){var o=e.getSelection().getRanges(),a=o[0];1==o.length&&a.collapsed&&(i=a[i<38?"getPreviousEditableNode":"getNextEditableNode"]())&&i.type==CKEDITOR.NODE_ELEMENT&&"false"==i.getAttribute("contenteditable")&&(e.getSelection().fake(i),n.data.preventDefault(),n.cancel())}}}(o),null,null,-1)}),o.on("setData",function(){o.unlockSelection(),CKEDITOR.env.webkit&&i()}),o.on("contentDomUnload",function(){o.unlockSelection()}),CKEDITOR.env.ie9Compat&&o.on("beforeDestroy",i,null,null,9),o.on("dataReady",function(){delete o._.fakeSelection,delete o._.hiddenSelectionContainer,o.selectionChange(1)}
1),o.on("loadSnapshot",function(){var e=o.editable().getLast(function(e){return e.type==CKEDITOR.NODE_ELEMENT});e&&e.hasAttribute("data-cke-hidden-sel")&&e.remove()},null,null,100),o.on("key",function(e){if("wysiwyg"==o.mode){var t=o.getSelection();if(t.isFake){var n=u[e.data.keyCode];if(n)return n({editor:o,selected:t.getSelectedElement(),selection:t,keyEvent:e})}}})}),CKEDITOR.on("instanceReady",function(e){var t=e.editor;if(CKEDITOR.env.webkit){t.on("selectionChange",function(){var e=t.editable(),n=o(e);n&&(n.getCustomData("ready")?a(e):n.setCustomData("ready",1))},null,null,-1),t.on("beforeSetMode",function(){a(t.editable())},null,null,-1);e=function(){var e=t.editable();if(e&&(e=o(e))){var a=t.document.$.defaultView.getSelection();"Caret"==a.type&&a.anchorNode==e.$&&(i=1),n=e.getText(),e.setText(r(n))}};var n,i,s=function(){var e=t.editable();e&&(e=o(e))&&(e.setText(n),i&&(t.document.$.defaultView.getSelection().setPosition(e.$,e.getLength()),i=0))};t.on("beforeUndoImage",e),t.on("afterUndoImage",s),t.on("beforeGetData",e,null,null,0),t.on("getData",s)}}),CKEDITOR.editor.prototype.selectionChange=function(n){(n?e:t).call(this)},CKEDITOR.editor.prototype.getSelection=function(e){return!this._.savedSelection&&!this._.fakeSelection||e?(e=this.editable())&&"wysiwyg"==this.mode?new CKEDITOR.dom.selection(e):null:this._.savedSelection||this._.fakeSelection},CKEDITOR.editor.prototype.lockSelection=function(e){return(e=e||this.getSelection(1)).getType()!=CKEDITOR.SELECTION_NONE&&(!e.isLocked&&e.lock(),this._.savedSelection=e,!0)},CKEDITOR.editor.prototype.unlockSelection=function(e){var t=this._.savedSelection;return!!t&&(t.unlock(e),delete this._.savedSelection,!0)},CKEDITOR.editor.prototype.forceNextSelectionCheck=function(){delete this._.selectionPreviousPath},CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)},CKEDITOR.dom.range.prototype.select=function(){var e=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);return e.selectRanges([this]),e},CKEDITOR.SELECTION_NONE=1,CKEDITOR.SELECTION_TEXT=2,CKEDITOR.SELECTION_ELEMENT=3;var h="function"!=typeof window.getSelection,f=1;CKEDITOR.dom.selection=function(e){if(e instanceof CKEDITOR.dom.selection){var t=e;e=e.root}var n=e instanceof CKEDITOR.dom.element;if(this.rev=t?t.rev:f++,this.document=e instanceof CKEDITOR.dom.document?e:e.getDocument(),this.root=e=n?e:this.document.getBody(),this.isLocked=0,this._={cache:{}},t)return CKEDITOR.tools.extend(this._.cache,t._.cache),this.isFake=t.isFake,this.isLocked=t.isLocked,this;n=h?this.document.$.selection:this.document.getWindow().$.getSelection(),CKEDITOR.env.webkit?("None"==n.type&&this.document.getActive().equals(e)||"Caret"==n.type&&n.anchorNode.nodeType==CKEDITOR.NODE_DOCUMENT)&&s(e,n):CKEDITOR.env.gecko?n&&this.document.getActive().equals(e)&&n.anchorNode&&n.anchorNode.nodeType==CKEDITOR.NODE_DOCUMENT&&s(e,n,!0):CKEDITOR.env.ie&&(t=this.document.getActive(),h?"None"==n.type&&t&&t.equals(this.document.getDocumentElement())&&s(e,null,!0):((n=n&&n.anchorNode)&&(n=new CKEDITOR.dom.node(n)),t&&t.equals(this.document.getDocumentElement())&&n&&(e.equals(n)||e.contains(n))&&s(e,null,!0)));var i,o;if(e=this.getNative())if(e.getRangeAt)i=(o=e.rangeCount&&e.getRangeAt(0))&&new CKEDITOR.dom.node(o.commonAncestorContainer);else{try{o=e.createRange()}catch(e){}i=o&&CKEDITOR.dom.element.get(o.item&&o.item(0)||o.parentElement())}return(!i||i.type!=CKEDITOR.NODE_ELEMENT&&i.type!=CKEDITOR.NODE_TEXT||!this.root.equals(i)&&!this.root.contains(i))&&(this._.cache.type=CKEDITOR.SELECTION_NONE,this._.cache.startElement=null,this._.cache.selectedElement=null,this._.cache.selectedText="",this._.cache.ranges=new CKEDITOR.dom.rangeList),this};var p={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.dom.selection.prototype={getNative:function(){return void 0!==this._.cache.nativeSel?this._.cache.nativeSel:this._.cache.nativeSel=h?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:h?function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_NONE;try{var n=this.getNative(),i=n.type;
1"Text"==i&&(t=CKEDITOR.SELECTION_TEXT),"Control"==i&&(t=CKEDITOR.SELECTION_ELEMENT),n.createRange().parentElement()&&(t=CKEDITOR.SELECTION_TEXT)}catch(e){}return e.type=t}:function(){var e=this._.cache;if(e.type)return e.type;var t=CKEDITOR.SELECTION_TEXT;if((n=this.getNative())&&n.rangeCount){if(1==n.rangeCount){var n,i=(n=n.getRangeAt(0)).startContainer;i==n.endContainer&&1==i.nodeType&&n.endOffset-n.startOffset==1&&p[i.childNodes[n.startOffset].nodeName.toLowerCase()]&&(t=CKEDITOR.SELECTION_ELEMENT)}}else t=CKEDITOR.SELECTION_NONE;return e.type=t},getRanges:function(){var e=h?function(){function e(e){return new CKEDITOR.dom.node(e).getIndex()}var t=function(t,n){(t=t.duplicate()).collapse(n);var i=t.parentElement();if(!i.hasChildNodes())return{container:i,offset:0};for(var o,a,r,s,l=i.children,c=t.duplicate(),d=0,u=l.length-1,h=-1;d<=u;)if(h=Math.floor((d+u)/2),o=l[h],c.moveToElementText(o),(r=c.compareEndPoints("StartToStart",t))>0)u=h-1;else{if(!(r<0))return{container:i,offset:e(o)};d=h+1}if(-1==h||h==l.length-1&&r<0){if(c.moveToElementText(i),c.setEndPoint("StartToStart",t),c=c.text.replace(/(\r\n|\r)/g,"\n").length,l=i.childNodes,!c)return(o=l[l.length-1]).nodeType!=CKEDITOR.NODE_TEXT?{container:i,offset:l.length}:{container:o,offset:o.nodeValue.length};for(i=l.length;c>0&&i>0;)(a=l[--i]).nodeType==CKEDITOR.NODE_TEXT&&(s=a,c-=a.nodeValue.length);return{container:s,offset:-c}}if(c.collapse(r>0),c.setEndPoint(r>0?"StartToStart":"EndToStart",t),!(c=c.text.replace(/(\r\n|\r)/g,"\n").length))return{container:i,offset:e(o)+(r>0?0:1)};for(;c>0;)try{(a=o[r>0?"previousSibling":"nextSibling"]).nodeType==CKEDITOR.NODE_TEXT&&(c-=a.nodeValue.length,s=a),o=a}catch(t){return{container:i,offset:e(o)}}return{container:s,offset:r>0?-c:s.nodeValue.length+c}};return function(){var e=(s=this.getNative())&&s.createRange(),n=this.getType();if(!s)return[];if(n==CKEDITOR.SELECTION_TEXT)return s=new CKEDITOR.dom.range(this.root),n=t(e,!0),s.setStart(new CKEDITOR.dom.node(n.container),n.offset),n=t(e),s.setEnd(new CKEDITOR.dom.node(n.container),n.offset),s.endContainer.getPosition(s.startContainer)&CKEDITOR.POSITION_PRECEDING&&s.endOffset<=s.startContainer.getIndex()&&s.collapse(),[s];if(n==CKEDITOR.SELECTION_ELEMENT){n=[];for(var i=0;i<e.length;i++){for(var o=e.item(i),a=o.parentNode,r=0,s=new CKEDITOR.dom.range(this.root);r<a.childNodes.length&&a.childNodes[r]!=o;r++);s.setStart(new CKEDITOR.dom.node(a),r),s.setEnd(new CKEDITOR.dom.node(a),r+1),n.push(s)}return n}return[]}}():function(){var e,t=[],n=this.getNative();if(!n)return t;for(var i=0;i<n.rangeCount;i++){var o=n.getRangeAt(i);(e=new CKEDITOR.dom.range(this.root)).setStart(new CKEDITOR.dom.node(o.startContainer),o.startOffset),e.setEnd(new CKEDITOR.dom.node(o.endContainer),o.endOffset),t.push(e)}return t};return function(t){var n=this._.cache,i=n.ranges;return i||(n.ranges=i=new CKEDITOR.dom.rangeList(e.call(this))),t?function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.getCommonAncestor().isReadOnly()&&e.splice(t,1),!n.collapsed){if(n.startContainer.isReadOnly())for(var i,o=n.startContainer;o&&!((i=o.type==CKEDITOR.NODE_ELEMENT)&&o.is("body")||!o.isReadOnly());)i&&"false"==o.getAttribute("contentEditable")&&n.setStartAfter(o),o=o.getParent();o=n.startContainer,i=n.endContainer;var a=n.startOffset,r=n.endOffset,s=n.clone();o&&o.type==CKEDITOR.NODE_TEXT&&(a>=o.getLength()?s.setStartAfter(o):s.setStartBefore(o)),i&&i.type==CKEDITOR.NODE_TEXT&&(r?s.setEndAfter(i):s.setEndBefore(i)),(o=new CKEDITOR.dom.walker(s)).evaluator=function(i){if(i.type==CKEDITOR.NODE_ELEMENT&&i.isReadOnly()){var o=n.clone();return n.setEndBefore(i),n.collapsed&&e.splice(t--,1),i.getPosition(s.endContainer)&CKEDITOR.POSITION_CONTAINS||(o.setStartAfter(i),o.collapsed||e.splice(t+1,0,o)),!0}return!1},o.next()}}return e}(new CKEDITOR.dom.rangeList(i.slice())):i}}(),getStartElement:function(){var e=this._.cache;if(void 0!==e.startElement)return e.startElement;var t;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var n=this.getRanges()[0];if(n){if(n.collapsed)(t=n.startContainer).type!=CKEDITOR.NODE_ELEMENT&&(t=t.getParent());else{for(n.optimize();t=n.startContainer,n.startOffset==(t.getChildCount?t.getChildCount():t.getLength())&&!t.isBlockBoundary();)n.setStartAfter(t);if((t=n.startContainer).type!=CKEDITOR.NODE_ELEMENT)return t.getParent();if((t=t.getChild(n.startOffset))&&t.type==CKEDITOR.NODE_ELEMENT)for(n=t.getFirst();n&&n.type==CKEDITOR.NODE_ELEMENT;)t=n,n=n.getFirst();else t=n.startContainer}t=t.$}}return e.startElement=t?new CKEDITOR.dom.element(t):null},getSelectedElement:function(){var e=this._.cache;if(void 0!==e.selectedElement)return e.selectedElement;var t=this,n=CKEDITOR.tools.tryThese(function(){return t.getNative().createRange().item(0)},function(){for(var e,n,i=t.getRanges()[0].clone(),o=2;o&&(!(e=i.getEnclosedNode())||e.type!=CKEDITOR.NODE_ELEMENT||!p[e.getName()]||!(n=e));o--)i.shrink(CKEDITOR.SHRINK_ELEMENT);return n&&n.$});return e.selectedElement=n?new CKEDITOR.dom.element(n):null},getSelectedText:function(){var e=this._.cache;if(void 0!==e.selectedText)return e.selectedText;var t=this.getNative();
1t=h?"Control"==t.type?"":t.createRange().text:t.toString();return e.selectedText=t},lock:function(){this.getRanges(),this.getStartElement(),this.getSelectedElement(),this.getSelectedText(),this._.cache.nativeSel=null,this.isLocked=1},unlock:function(e){if(this.isLocked){if(e)var t=this.getSelectedElement(),n=!t&&this.getRanges(),i=this.isFake;this.isLocked=0,this.reset(),e&&(e=t||n[0]&&n[0].getCommonAncestor())&&e.getAscendant("body",1)&&(i?this.fake(t):t?this.selectElement(t):this.selectRanges(n))}},reset:function(){this._.cache={},this.isFake=0;var e=this.root.editor;if(e&&e._.fakeSelection&&this.rev==e._.fakeSelection.rev){delete e._.fakeSelection;var t=e._.hiddenSelectionContainer;if(t){var n=e.checkDirty();e.fire("lockSnapshot"),t.remove(),e.fire("unlockSnapshot"),!n&&e.resetDirty()}delete e._.hiddenSelectionContainer}this.rev=f++},selectElement:function(e){var t=new CKEDITOR.dom.range(this.root);t.setStartBefore(e),t.setEndAfter(e),this.selectRanges([t])},selectRanges:function(e){var t=(t=this.root.editor)&&t._.hiddenSelectionContainer;if(this.reset(),t){t=this.root;for(var n,o=0;o<e.length;++o)(n=e[o]).endContainer.equals(t)&&(n.endOffset=Math.min(n.endOffset,t.getChildCount()))}if(e.length)if(this.isLocked){var r=CKEDITOR.document.getActive();this.unlock(),this.selectRanges(e),this.lock(),r&&!r.equals(this.root)&&r.focus()}else{var s,l,c;if(1==e.length&&!(c=e[0]).collapsed&&(s=c.getEnclosedNode())&&s.type==CKEDITOR.NODE_ELEMENT&&((c=c.clone()).shrink(CKEDITOR.SHRINK_ELEMENT,!0),(l=c.getEnclosedNode())&&l.type==CKEDITOR.NODE_ELEMENT&&(s=l),"false"==s.getAttribute("contenteditable"))||(s=void 0),s)this.fake(s);else{if(h){c=CKEDITOR.dom.walker.whitespaces(!0),l=/\ufeff|\u00a0/,t={table:1,tbody:1,tr:1},e.length>1&&(s=e[e.length-1],e[0].setEnd(s.endContainer,s.endOffset));var d,u,f;e=(s=e[0]).collapsed;if((n=s.getEnclosedNode())&&n.type==CKEDITOR.NODE_ELEMENT&&n.getName()in p&&(!n.is("a")||!n.getText()))try{return(f=n.$.createControlRange()).addElement(n.$),void f.select()}catch(e){}(s.startContainer.type==CKEDITOR.NODE_ELEMENT&&s.startContainer.getName()in t||s.endContainer.type==CKEDITOR.NODE_ELEMENT&&s.endContainer.getName()in t)&&(s.shrink(CKEDITOR.NODE_ELEMENT,!0),e=s.collapsed),t=(f=s.createBookmark()).startNode,e||(r=f.endNode),(f=s.document.$.body.createTextRange()).moveToElementText(t.$),f.moveStart("character",1),r?((l=s.document.$.body.createTextRange()).moveToElementText(r.$),f.setEndPoint("EndToEnd",l),f.moveEnd("character",-1)):(d=t.getNext(c),u=t.hasAscendant("pre"),d=!(d&&d.getText&&d.getText().match(l))&&(u||!t.hasPrevious()||t.getPrevious().is&&t.getPrevious().is("br")),(u=s.document.createElement("span")).setHtml(""),u.insertBefore(t),d&&s.document.createText("\ufeff").insertBefore(t)),s.setStartBefore(t),t.remove(),e?(d?(f.moveStart("character",-1),f.select(),s.document.$.selection.clear()):f.select(),s.moveToPosition(u,CKEDITOR.POSITION_BEFORE_START),u.remove()):(s.setEndBefore(r),r.remove(),f.select())}else{if(!(r=this.getNative()))return;for(this.removeAllRanges(),f=0;f<e.length;f++)if(f<e.length-1&&(d=e[f],u=e[f+1],(l=d.clone()).setStart(d.endContainer,d.endOffset),l.setEnd(u.startContainer,u.startOffset),!l.collapsed&&(l.shrink(CKEDITOR.NODE_ELEMENT,!0),s=l.getCommonAncestor(),l=l.getEnclosedNode(),s.isReadOnly()||l&&l.isReadOnly())))u.setStart(d.startContainer,d.startOffset),e.splice(f--,1);else{s=e[f],u=this.document.$.createRange(),s.collapsed&&CKEDITOR.env.webkit&&i(s)&&(a(d=this.root,!1),l=d.getDocument().createText("​"),d.setCustomData("cke-fillingChar",l),s.insertNode(l),(d=l.getNext())&&!l.getPrevious()&&d.type==CKEDITOR.NODE_ELEMENT&&"br"==d.getName()?(a(this.root),s.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START)):s.moveToPosition(l,CKEDITOR.POSITION_AFTER_END)),u.setStart(s.startContainer.$,s.startOffset);try{u.setEnd(s.endContainer.$,s.endOffset)}catch(e){if(!(e.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")>=0))throw e;s.collapse(1),u.setEnd(s.endContainer.$,s.endOffset)}r.addRange(u)}}this.reset(),this.root.fire("selectionchange")}}},fake:function(e){var t=this.root.editor;this.reset(),function(e){var t=CKEDITOR.dom.element.createFromHtml('<div data-cke-hidden-sel="1" data-cke-temp="1" style="'+(CKEDITOR.env.ie?"display:none":"position:fixed;top:0;left:-1000px")+'"> </div>',e.document);e.fire("lockSnapshot"),e.editable().append(t);var n=e.getSelection(1),i=e.createRange(),o=n.root.on("selectionchange",function(e){e.cancel()},null,null,0);i.setStartAt(t,CKEDITOR.POSITION_AFTER_START),i.setEndAt(t,CKEDITOR.POSITION_BEFORE_END),n.selectRanges([i]),o.removeListener(),e.fire("unlockSnapshot"),e._.hiddenSelectionContainer=t}(t);var n=this._.cache,i=new CKEDITOR.dom.range(this.root);i.setStartBefore(e),i.setEndAfter(e),n.ranges=new CKEDITOR.dom.rangeList(i),n.selectedElement=n.startElement=e,n.type=CKEDITOR.SELECTION_ELEMENT,n.selectedText=n.nativeSel=null,this.isFake=1,this.rev=f++,t._.fakeSelection=this,this.root.fire("selectionchange")},isHidden:function(){var e=this.getCommonAncestor();return e&&e.type==CKEDITOR.NODE_TEXT&&(e=e.getParent()),!(!e||!e.data("cke-hidden-sel"))},createBookmarks:function(e){return e=this.getRanges().createBookmarks(e),this.isFake&&(e.isFake=1),e},createBookmarks2:function(e){return e=this.getRanges().createBookmarks2(e),this.isFake&&(e.isFake=1),e},selectBookmarks:function(e){for(var t=[],n=0;n<e.length;n++){var i=new CKEDITOR.dom.range(this.root);i.moveToBookmark(e[n]),t.push(i)}return e.isFake?this.fake(t[0].getEnclosedNode()):this.selectRanges(t),this},getCommonAncestor:function(){var e=this.getRanges();return e.length?e[0].startContainer.getCommonAncestor(e[e.length-1].endContainer):null},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){if(this.getType()!=CKEDITOR.SELECTION_NONE){var e=this.getNative();try{e&&e[h?"empty":"removeAllRanges"]()}catch(e){}this.reset()}}}}(),CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function e(e,t){for(var n,i;(e=e.getParent())&&!e.equals(t);)if(e.getAttribute("data-nostyle"))n=e;else if(!i){var o=e.getAttribute("contentEditable");
1"false"==o?n=e:"true"==o&&(i=1)}return n}function t(n){var i=n.document;if(n.collapsed)i=f(this,i),n.insertNode(i),n.moveToPosition(i,CKEDITOR.POSITION_BEFORE_END);else{var o,a=this.element,r=this._.definition,s=(g=r.ignoreReadonly)||r.includeReadonly;void 0==s&&(s=n.root.getCustomData("cke_includeReadonly"));var l=CKEDITOR.dtd[a];l||(o=!0,l=CKEDITOR.dtd.span),n.enlarge(CKEDITOR.ENLARGE_INLINE,1),n.trim();var c,u=n.createBookmark(),h=u.startNode,p=u.endNode,m=h;if(!g){var g=e(h,E=n.getCommonAncestor()),E=e(p,E);g&&(m=g.getNextSourceNode(!0)),E&&(p=E)}for(m.getPosition(p)==CKEDITOR.POSITION_FOLLOWING&&(m=0);m;){if(g=!1,m.equals(p))m=null,g=!0;else{E=(K=m.type==CKEDITOR.NODE_ELEMENT?m.getName():null)&&"false"==m.getAttribute("contentEditable");var v=K&&m.getAttribute("data-nostyle");if(K&&m.data("cke-bookmark")){m=m.getNextSourceNode(!0);continue}if(E&&s&&CKEDITOR.dtd.$block[K]){var T=m,C=function(e){var t=[];return e.forEach(function(e){if("true"==e.getAttribute("contenteditable"))return t.push(e),!1},CKEDITOR.NODE_ELEMENT,!0),t}(T),b=void 0,D=C.length,I=0;for(T=D&&new CKEDITOR.dom.range(T.getDocument());I<D;++I){b=C[I];var _=CKEDITOR.filter.instances[b.data("cke-filter")];_&&!_.check(this)||(T.selectNodeContents(b),t.call(this,T))}}if(C=K?!l[K]||v?0:E&&!s?0:(m.getPosition(p)|O)==O&&(!r.childRule||r.childRule(m)):1){if(!(C=m.getParent())||!(C.getDtd()||CKEDITOR.dtd.span)[a]&&!o||r.parentRule&&!r.parentRule(C))g=!0;else if(c||K&&CKEDITOR.dtd.$removeEmpty[K]&&(m.getPosition(p)|O)!=O||(c=n.clone()).setStartBefore(m),(K=m.type)==CKEDITOR.NODE_TEXT||E||K==CKEDITOR.NODE_ELEMENT&&!m.getChildCount()){for(var k,K=m;(g=!K.getNext(y))&&(k=K.getParent(),l[k.getName()])&&(k.getPosition(h)|R)==R&&(!r.childRule||r.childRule(k));)K=k;c.setEndAfter(K)}}else g=!0;m=m.getNextSourceNode(v||E)}if(g&&c&&!c.collapsed){var w,x,S;for(E=(g=f(this,i)).hasAttributes(),v=c.getCommonAncestor(),K={},C={},b={},D={};g&&v;){if(v.getName()==a){for(w in r.attributes)!D[w]&&(S=v.getAttribute(x))&&(g.getAttribute(w)==S?C[w]=1:D[w]=1);for(x in r.styles)!b[x]&&(S=v.getStyle(x))&&(g.getStyle(x)==S?K[x]=1:b[x]=1)}v=v.getParent()}for(w in C)g.removeAttribute(w);for(x in K)g.removeStyle(x);E&&!g.hasAttributes()&&(g=null),g?(c.extractContents().appendTo(g),c.insertNode(g),d.call(this,g),g.mergeSiblings(),CKEDITOR.env.ie||g.$.normalize()):(g=new CKEDITOR.dom.element("span"),c.extractContents().appendTo(g),c.insertNode(g),d.call(this,g),g.remove(!0)),c=null}}n.moveToBookmark(u),n.shrink(CKEDITOR.SHRINK_TEXT),n.shrink(CKEDITOR.NODE_ELEMENT,!0)}}function n(e){function t(){for(var e=new CKEDITOR.dom.elementPath(i.getParent()),t=new CKEDITOR.dom.elementPath(d.getParent()),n=null,o=null,a=0;a<e.elements.length;a++){var r=e.elements[a];if(r==e.block||r==e.blockLimit)break;h.checkElementRemovable(r)&&(n=r)}for(a=0;a<t.elements.length&&((r=t.elements[a])!=t.block&&r!=t.blockLimit);a++)h.checkElementRemovable(r)&&(o=r);o&&d.breakParent(o),n&&i.breakParent(n)}e.enlarge(CKEDITOR.ENLARGE_INLINE,1);var n=e.createBookmark(),i=n.startNode;if(e.collapsed){for(var o,a,r=new CKEDITOR.dom.elementPath(i.getParent(),e.root),s=0;s<r.elements.length&&(a=r.elements[s])&&(a!=r.block&&a!=r.blockLimit);s++)if(this.checkElementRemovable(a)){var l;e.collapsed&&(e.checkBoundaryOfElement(a,CKEDITOR.END)||(l=e.checkBoundaryOfElement(a,CKEDITOR.START)))?(o=a).match=l?"start":"end":(a.mergeSiblings(),a.is(this.element)?c.call(this,a):u(a,g(this)[a.getName()]))}if(o){for(a=i,s=0;!(l=r.elements[s]).equals(o);s++)l.match||((l=l.clone()).append(a),a=l);a["start"==o.match?"insertBefore":"insertAfter"](o)}}else{var d=n.endNode,h=this;for(t(),r=i;!r.equals(d);)o=r.getNextSourceNode(),r.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(r)&&(r.getName()==this.element?c.call(this,r):u(r,g(this)[r.getName()]),o.type==CKEDITOR.NODE_ELEMENT&&o.contains(i)&&(t(),o=i.getNext())),r=o}e.moveToBookmark(n),e.shrink(CKEDITOR.NODE_ELEMENT,!0)}function i(e){var t=e.getEnclosedNode()||e.getCommonAncestor(!1,!0);(e=new CKEDITOR.dom.elementPath(t,e.root).contains(this.element,1))&&!e.isReadOnly()&&p(e,this)}function o(e){var t=e.getCommonAncestor(!0,!0);if(e=new CKEDITOR.dom.elementPath(t,e.root).contains(this.element,1)
1){var n=(t=this._.definition).attributes;if(n)for(var i in n)e.removeAttribute(i,n[i]);if(t.styles)for(var o in t.styles)t.styles.hasOwnProperty(o)&&e.removeStyle(o)}}function a(e){var t=e.createBookmark(!0),n=e.createIterator();n.enforceRealBlocks=!0,this._.enterMode&&(n.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR);for(var i,o=e.document;i=n.getNextParagraph();)i.isReadOnly()||n.activeFilter&&!n.activeFilter.check(this)||s(i,f(this,o,i));e.moveToBookmark(t)}function r(e){var t=e.createBookmark(1),n=e.createIterator();n.enforceRealBlocks=!0,n.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var i,o;i=n.getNextParagraph();)this.checkElementRemovable(i)&&(i.is("pre")?((o=this._.enterMode==CKEDITOR.ENTER_BR?null:e.document.createElement(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))&&i.copyAttributes(o),s(i,o)):c.call(this,i));e.moveToBookmark(t)}function s(e,t){(r=!t)&&(t=e.getDocument().createElement("div"),e.copyAttributes(t));var n=t&&t.is("pre"),i=e.is("pre"),o=!n&&i;if(n&&!i){if(i=t,(o=e.getBogus())&&o.remove(),o=e.getHtml(),o=l(o,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,""),o=o.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1"),o=o.replace(/([ \t\n\r]+| )/g," "),o=o.replace(/<br\b[^>]*>/gi,"\n"),CKEDITOR.env.ie){var a=e.getDocument().createElement("div");a.append(i),i.$.outerHTML="<pre>"+o+"</pre>",i.copyAttributes(a.getFirst()),i=a.getFirst().remove()}else i.setHtml(o);t=i}else o?t=function(e,t){var n;e.length>1&&(n=new CKEDITOR.dom.documentFragment(t.getDocument()));for(var i=0;i<e.length;i++){var o=e[i],o=o.replace(/(\r\n|\r)/g,"\n"),o=l(o,/^[ \t]*\n/,""),o=l(o,/\n$/,""),o=l(o,/^[ \t]+|[ \t]+$/g,function(e,t){return 1==e.length?" ":t?" "+CKEDITOR.tools.repeat(" ",e.length-1):CKEDITOR.tools.repeat(" ",e.length-1)+" "}),o=o.replace(/\n/g,"<br>"),o=o.replace(/[ \t]{2,}/g,function(e){return CKEDITOR.tools.repeat(" ",e.length-1)+" "});if(n){var a=t.clone();a.setHtml(o),n.append(a)}else t.setHtml(o)}return n||t}(r?[e.getHtml()]:function(e){e.getName();var t=[];return l(e.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi,function(e,t,n){return t+"</pre>"+n+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(e,n){t.push(n)}),t}(e),t):e.moveChildren(t);if(t.replace(e),n){var r,s;(s=(r=t).getPrevious(I))&&s.type==CKEDITOR.NODE_ELEMENT&&s.is("pre")&&(n=l(s.getHtml(),/\n$/,"")+"\n\n"+l(r.getHtml(),/^\n/,""),CKEDITOR.env.ie?r.$.outerHTML="<pre>"+n+"</pre>":r.setHtml(n),s.remove())}else r&&h(t)}function l(e,t,n){var i="",o="";e=e.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(e,t,n){return t&&(i=t),n&&(o=n),""});return i+e.replace(t,n)+o}function c(e,t){var n,i=(o=this._.definition).attributes,o=o.styles,a=g(this)[e.getName()],r=CKEDITOR.tools.isEmpty(i)&&CKEDITOR.tools.isEmpty(o);for(n in i)("class"==n||this._.definition.fullMatch)&&e.getAttribute(n)!=E(n,i[n])||t&&"data-"==n.slice(0,5)||(r=e.hasAttribute(n),e.removeAttribute(n));for(var s in o)this._.definition.fullMatch&&e.getStyle(s)!=E(s,o[s],!0)||(r=r||!!e.getStyle(s),e.removeStyle(s));u(e,a,T[e.getName()]),r&&(this._.definition.alwaysRemoveElement?h(e,1):!CKEDITOR.dtd.$block[e.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!e.hasAttributes()?h(e):e.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function d(e){for(var t,n=g(this),i=e.getElementsByTag(this.element),o=i.count();--o>=0;)(t=i.getItem(o)).isReadOnly()||c.call(this,t,!0);for(var a in n)if(a!=this.element)for(o=(i=e.getElementsByTag(a)).count()-1;o>=0;o--)(t=i.getItem(o)).isReadOnly()||u(t,n[a])}function u(e,t,n){if(t=t&&t.attributes)for(var i=0;i<t.length;i++){var o,a=t[i][0];if(o=e.getAttribute(a)){var r=t[i][1];(null===r||r.test&&r.test(o)||"string"==typeof r&&o==r)&&e.removeAttribute(a)}}n||h(e)}function h(e,t){if(!e.hasAttributes()||t)if(CKEDITOR.dtd.$block[e.getName()]){var n=e.getPrevious(I),i=e.getNext(I);n&&(n.type==CKEDITOR.NODE_TEXT||!n.isBlockBoundary({br:1}))&&e.append("br",1),i&&(i.type==CKEDITOR.NODE_TEXT||!i.isBlockBoundary({br:1}))&&e.append("br"),e.remove(!0)}else n=e.getFirst(),i=e.getLast(),e.remove(!0),n&&(n.type==CKEDITOR.NODE_ELEMENT&&n.mergeSiblings(),i&&!n.equals(i)&&i.type==CKEDITOR.NODE_ELEMENT&&i.mergeSiblings())}function f(e,t,n){var i;return"*"==(i=e.element)&&(i="span"),i=new CKEDITOR.dom.element(i,t),n&&n.copyAttributes(i),i=p(i,e),t.getCustomData("doc_processing_style")&&i.hasAttribute("id")?i.removeAttribute("id"):t.setCustomData("doc_processing_style",1),i}function p(e,t){var n=(i=t._.definition).attributes,i=CKEDITOR.style.getStyleText(i);if(n)for(var o in n)e.setAttribute(o,n[o]);return i&&e.setAttribute("style",i),e}function m(e,t){for(var n in e)e[n]=e[n].replace(D,function(e,n){return t[n]})}function g(e){if(e._.overrides)return e._.overrides;var t=e._.overrides={},n=e._.definition.overrides;if(n){CKEDITOR.tools.isArray(n)||(n=[n]);for(var i=0;i<n.length;i++){var o,a;if("string"==typeof(s=n[i])?o=s.toLowerCase():(o=s.element?s.element.toLowerCase():e.element,a=s.attributes),s=t[o]||(t[o]={}),a){var r,s=s.attributes=s.attributes||[];for(r in a)s.push([r.toLowerCase(),a[r]])}}}return t}function E(e,t,n){var i=new CKEDITOR.dom.element("span");return i[n?"setStyle":"setAttribute"](e,t),i[n?"getStyle":"getAttribute"](e)}function v(e,t,n){for(var i,o=e.document,a=e.getRanges(),r=(t=t?this.removeFromRange:this.applyToRange,a.createIterator());i=r.getNextRange();)t.call(this,i,n);e.selectRanges(a),o.removeCustomData("doc_processing_style")}var T={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},C={a:1,blockquote:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},b=/\s*(?:;\s*|$)/,D=/#\((.+?)\)/g,y=CKEDITOR.dom.walker.bookmark(0,1),I=CKEDITOR.dom.walker.whitespace
1s(1);CKEDITOR.style=function(e,t){if("string"==typeof e.type)return new CKEDITOR.style.customHandlers[e.type](e);var n=e.attributes;n&&n.style&&(e.styles=CKEDITOR.tools.extend({},e.styles,CKEDITOR.tools.parseCssText(n.style)),delete n.style),t&&(m((e=CKEDITOR.tools.clone(e)).attributes,t),m(e.styles,t)),n=this.element=e.element?"string"==typeof e.element?e.element.toLowerCase():e.element:"*",this.type=e.type||(T[n]?CKEDITOR.STYLE_BLOCK:C[n]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE),"object"==typeof this.element&&(this.type=CKEDITOR.STYLE_OBJECT),this._={definition:e}},CKEDITOR.style.prototype={apply:function(e){if(e instanceof CKEDITOR.dom.document)return v.call(this,e.getSelection());if(this.checkApplicable(e.elementPath(),e)){var t=this._.enterMode;t||(this._.enterMode=e.activeEnterMode),v.call(this,e.getSelection(),0,e),this._.enterMode=t}},remove:function(e){if(e instanceof CKEDITOR.dom.document)return v.call(this,e.getSelection(),1);if(this.checkApplicable(e.elementPath(),e)){var t=this._.enterMode;t||(this._.enterMode=e.activeEnterMode),v.call(this,e.getSelection(),1,e),this._.enterMode=t}},applyToRange:function(e){return this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?t:this.type==CKEDITOR.STYLE_BLOCK?a:this.type==CKEDITOR.STYLE_OBJECT?i:null,this.applyToRange(e)},removeFromRange:function(e){return this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE?n:this.type==CKEDITOR.STYLE_BLOCK?r:this.type==CKEDITOR.STYLE_OBJECT?o:null,this.removeFromRange(e)},applyToObject:function(e){p(e,this)},checkActive:function(e,t){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(e.block||e.blockLimit,!0,t);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var n,i=e.elements,o=0;o<i.length;o++)if(n=i[o],this.type!=CKEDITOR.STYLE_INLINE||n!=e.block&&n!=e.blockLimit){if(this.type==CKEDITOR.STYLE_OBJECT){var a=n.getName();if(!("string"==typeof this.element?a==this.element:a in this.element))continue}if(this.checkElementRemovable(n,!0,t))return!0}}return!1},checkApplicable:function(e,t,n){if(t&&t instanceof CKEDITOR.filter&&(n=t),n&&!n.check(this))return!1;switch(this.type){case CKEDITOR.STYLE_OBJECT:return!!e.contains(this.element);case CKEDITOR.STYLE_BLOCK:return!!e.blockLimit.getDtd()[this.element]}return!0},checkElementMatch:function(e,t){var n=this._.definition;if(!e||!n.ignoreReadonly&&e.isReadOnly())return!1;var i=e.getName();if("string"==typeof this.element?i==this.element:i in this.element){if(!t&&!e.hasAttributes())return!0;if(i=n._AC)n=i;else{i={};var o=0,a=n.attributes;if(a)for(var r in a)o++,i[r]=a[r];(r=CKEDITOR.style.getStyleText(n))&&(i.style||o++,i.style=r),i._length=o,n=n._AC=i}if(!n._length)return!0;for(var s in n)if("_length"!=s){if(o=e.getAttribute(s)||"","style"==s)e:{"string"==typeof(i=n[s])&&(i=CKEDITOR.tools.parseCssText(i)),"string"==typeof o&&(o=CKEDITOR.tools.parseCssText(o,!0)),r=void 0;for(r in i)if(!(r in o)||o[r]!=i[r]&&"inherit"!=i[r]&&"inherit"!=o[r]){i=!1;break e}i=!0}else i=n[s]==o;if(i){if(!t)return!0}else if(t)return!1}if(t)return!0}return!1},checkElementRemovable:function(e,t,n){if(this.checkElementMatch(e,t,n))return!0;if(t=g(this)[e.getName()]){var i;if(!(t=t.attributes))return!0;for(n=0;n<t.length;n++)if(i=t[n][0],i=e.getAttribute(i)){var o=t[n][1];if(null===o||"string"==typeof o&&i==o||o.test(i))return!0}}return!1},buildPreview:function(e){var t=this._.definition,n=[],i=t.element;"bdo"==i&&(i="span");n=["<",i];var o=t.attributes;if(o)for(var a in o)n.push(" ",a,'="',o[a],'"');return(o=CKEDITOR.style.getStyleText(t))&&n.push(' style="',o,'"'),n.push(">",e||t.name,"</",i,">"),n.join("")},getDefinition:function(){return this._.definition}},CKEDITOR.style.getStyleText=function(e){if(t=e._ST)return t;var t=e.styles,n=e.attributes&&e.attributes.style||"",i="";n.length&&(n=n.replace(b,";"));for(var o in t){var a=t[o],r=(o+":"+a).replace(b,";");"inherit"==a?i+=r:n+=r}return n.length&&(n=CKEDITOR.tools.normalizeCssText(n,!0)),e._ST=n+i},CKEDITOR.style.customHandlers={},CKEDITOR.style.addCustomHandler=function(e){var t=function(e){this._={definition:e},this.setup&&this.setup(e)};return t.prototype=CKEDITOR.tools.extend(CKEDITOR.tools.prototypedCopy(CKEDITOR.style.prototype),{assignedTo:CKEDITOR.STYLE_OBJECT},e,!0),this.customHandlers[e.type]=t};var O=CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED,R=CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED}(),CKEDITOR.styleCommand=function(e,t){this.requiredContent=this.allowedContent=this.style=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.styleCommand.prototype.exec=function(e){e.focus(),this.state==CKEDITOR.TRISTATE_OFF?e.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&e.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(e,t,n){CKEDITOR.stylesSet.addExternal(e,t,""),CKEDITOR.stylesSet.load(e,n)},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{attachStyleStateChange:function(e,t){var n=this._.styleStateChangeCallbacks;n||(n=this._.styleStateChangeCallbacks=[],this.on("selectionChange",function(e){for(var t=0;t<n.length;t++){var i=n[t],o=i.style.checkActive(e.data.path,this)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;i.fn.call(this,o)}})),n.push({style:e,fn:t})},applyStyle:function(e){e.apply(this)},removeStyle:function(e){e.remove(this)},getStylesSet:function(e){if(this._.stylesDefinitions)e(this._.stylesDefinitions);else{var t=this;
1if(!1===(n=t.config.stylesCombo_stylesSet||t.config.stylesSet))e(null);else if(n instanceof Array)t._.stylesDefinitions=n,e(n);else{n||(n="default");var n,i=(n=n.split(":"))[0];CKEDITOR.stylesSet.addExternal(i,n[1]?n.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),""),CKEDITOR.stylesSet.load(i,function(n){t._.stylesDefinitions=n[i],e(t._.stylesDefinitions)})}}}}),CKEDITOR.dom.comment=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createComment(e)),CKEDITOR.dom.domObject.call(this,e)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"\x3c!--"+this.$.nodeValue+"--\x3e"}}),function(){var e,t={},n={};for(e in CKEDITOR.dtd.$blockLimit)e in CKEDITOR.dtd.$list||(t[e]=1);for(e in CKEDITOR.dtd.$block)e in CKEDITOR.dtd.$blockLimit||e in CKEDITOR.dtd.$empty||(n[e]=1);CKEDITOR.dom.elementPath=function(e,i){var o,a=null,r=null,s=[],l=e;i=i||e.getDocument().getBody();do{if(l.type==CKEDITOR.NODE_ELEMENT){if(s.push(l),!this.lastElement&&(this.lastElement=l,l.is(CKEDITOR.dtd.$object)||"false"==l.getAttribute("contenteditable")))continue;if(l.equals(i))break;if(!r&&(o=l.getName(),"true"==l.getAttribute("contenteditable")?r=l:!a&&n[o]&&(a=l),t[o])){var c;if(c=!a){if(o="div"==o){e:{c=0;for(var d=(o=l.getChildren()).count();c<d;c++){var u=o.getItem(c);if(u.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[u.getName()]){o=!0;break e}}o=!1}o=!o}c=o}c?a=l:r=l}}}while(l=l.getParent());r||(r=i),this.block=a,this.blockLimit=r,this.root=i,this.elements=s}}(),CKEDITOR.dom.elementPath.prototype={compare:function(e){var t=this.elements;if(!(e=e&&e.elements)||t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(!t[n].equals(e[n]))return!1;return!0},contains:function(e,t,n){var i;"string"==typeof e&&(i=function(t){return t.getName()==e}),e instanceof CKEDITOR.dom.element?i=function(t){return t.equals(e)}:CKEDITOR.tools.isArray(e)?i=function(t){return CKEDITOR.tools.indexOf(e,t.getName())>-1}:"function"==typeof e?i=e:"object"==typeof e&&(i=function(t){return t.getName()in e});var o=this.elements,a=o.length;for(t&&a--,n&&(o=Array.prototype.slice.call(o,0)).reverse(),t=0;t<a;t++)if(i(o[t]))return o[t];return null},isContextFor:function(e){return!(e in CKEDITOR.dtd.$block)||!!(this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit).getDtd()[e]},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}},CKEDITOR.dom.text=function(e,t){"string"==typeof e&&(e=(t?t.$:document).createTextNode(e)),this.$=e},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(e){this.$.nodeValue=e},split:function(e){var t=this.$.parentNode,n=t.childNodes.length,i=this.getLength(),o=this.getDocument(),a=new CKEDITOR.dom.text(this.$.splitText(e),o);return t.childNodes.length==n&&(e>=i?(a=o.createText("")).insertAfter(this):((e=o.createText("")).insertAfter(a),e.remove())),a},substring:function(e,t){return"number"!=typeof t?this.$.nodeValue.substr(e):this.$.nodeValue.substring(e,t)}}),function(){function e(e,t,n){var i=e.serializable,o=t[n?"endContainer":"startContainer"],a=n?"endOffset":"startOffset",r=i?t.document.getById(e.startNode):e.startNode;e=i?t.document.getById(e.endNode):e.endNode;return o.equals(r.getPrevious())?(t.startOffset=t.startOffset-o.getLength()-e.getPrevious().getLength(),o=e.getNext()):o.equals(e.getPrevious())&&(t.startOffset=t.startOffset-o.getLength(),o=e.getNext()),o.equals(r.getParent())&&t[a]++,o.equals(e.getParent())&&t[a]++,t[n?"endContainer":"startContainer"]=o,t}CKEDITOR.dom.rangeList=function(e){return e instanceof CKEDITOR.dom.rangeList?e:(e?e instanceof CKEDITOR.dom.range&&(e=[e]):e=[],CKEDITOR.tools.extend(e,t))};var t={createIterator:function(){var e,t=this,n=CKEDITOR.dom.walker.bookmark(),i=[];return{getNextRange:function(o){var a=t[e=void 0==e?0:e+1];if(a&&t.length>1){if(!e)for(var r=t.length-1;r>=0;r--)i.unshift(t[r].createBookmark(!0));if(o)for(var s=0;t[e+s+1];){o=0,r=(l=a.document).getById(i[s].endNode);for(var l=l.getById(i[s+1].startNode);;){if(r=r.getNextSourceNode(!1),l.equals(r))o=1;else if(n(r)||r.type==CKEDITOR.NODE_ELEMENT&&r.isBlockBoundary())continue;break}if(!o)break;s++}for(a.moveToBookmark(i.shift());s--;)(r=t[++e]).moveToBookmark(i.shift()),a.setEnd(r.endContainer,r.endOffset)}return a}}},createBookmarks:function(t){for(var n,i=[],o=0;o<this.length;o++){i.push(n=this[o].createBookmark(t,!0));for(var a=o+1;a<this.length;a++)this[a]=e(n,this[a]),this[a]=e(n,this[a],!0)}return i},createBookmarks2:function(e){for(var t=[],n=0;n<this.length;n++)t.push(this[n].createBookmark2(e));return t},moveToBookmarks:function(e){for(var t=0;t<this.length;t++)this[t].moveToBookmark(e[t])}}}(),function(){function e(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]||"skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function t(t){var n=CKEDITOR.skin["ua_"+t],i=CKEDITOR.env;if(n){n=n.split(",").sort(function(e,t){return e>t?-1:1});for(var o,a=0;a<n.length;
1a++)if(o=n[a],i.ie&&(o.replace(/^ie/,"")==i.version||i.quirks&&"iequirks"==o)&&(o="ie"),i[o]){t=t+"_"+n[a];break}}return CKEDITOR.getUrl(e()+t+".css")}function n(e,n){a[e]||(CKEDITOR.document.appendStyleSheet(t(e)),a[e]=1),n&&n()}function i(e){var t=e.getById(r);return t||((t=e.getHead().append("style")).setAttribute("id",r),t.setAttribute("type","text/css")),t}function o(e,t,n){var i,o,a;if(CKEDITOR.env.webkit)for(t=t.split("}").slice(0,-1),o=0;o<t.length;o++)t[o]=t[o].split("{");for(var r=0;r<e.length;r++)if(CKEDITOR.env.webkit)for(o=0;o<t.length;o++){for(a=t[o][1],i=0;i<n.length;i++)a=a.replace(n[i][0],n[i][1]);e[r].$.sheet.addRule(t[o][0],a)}else{for(a=t,i=0;i<n.length;i++)a=a.replace(n[i][0],n[i][1]);CKEDITOR.env.ie&&CKEDITOR.env.version<11?e[r].$.styleSheet.cssText=e[r].$.styleSheet.cssText+a:e[r].$.innerHTML=e[r].$.innerHTML+a}}var a={};CKEDITOR.skin={path:e,loadPart:function(t,i){CKEDITOR.skin.name!=CKEDITOR.skinName.split(",")[0]?CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(e()+"skin.js"),function(){n(t,i)}):n(t,i)},getPath:function(e){return CKEDITOR.getUrl(t(e))},icons:{},addIcon:function(e,t,n,i){e=e.toLowerCase(),this.icons[e]||(this.icons[e]={path:t,offset:n||0,bgsize:i||"16px"})},getIconStyle:function(e,t,n,i,o){var a;return e&&(e=e.toLowerCase(),t&&(a=this.icons[e+"-rtl"]),a||(a=this.icons[e])),e=n||a&&a.path||"",i=i||a&&a.offset,o=o||a&&a.bgsize||"16px",e&&"background-image:url("+CKEDITOR.getUrl(e)+");background-position:0 "+i+"px;background-size:"+o+";"}},CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{getUiColor:function(){return this.uiColor},setUiColor:function(e){var t=i(CKEDITOR.document);return(this.setUiColor=function(e){var n=CKEDITOR.skin.chameleon,i=[[l,e]];this.uiColor=e,o([t],n(this,"editor"),i),o(s,n(this,"panel"),i)}).call(this,e)}});var r="cke_ui_color",s=[],l=/\$color/g;CKEDITOR.on("instanceLoaded",function(e){if(!CKEDITOR.env.ie||!CKEDITOR.env.quirks){var t=e.editor;e=function(e){if(!(e=(e.data[0]||e.data).element.getElementsByTag("iframe").getItem(0).getFrameDocument()).getById("cke_ui_color")){e=i(e),s.push(e);var n=t.getUiColor();n&&o([e],CKEDITOR.skin.chameleon(t,"panel"),[[l,n]])}};t.on("panelShow",e),t.on("menuShow",e),t.config.uiColor&&t.setUiColor(t.config.uiColor)}})}(),function(){if(CKEDITOR.env.webkit)CKEDITOR.env.hc=!1;else{var e=CKEDITOR.dom.element.createFromHtml('<div style="width:0;height:0;position:absolute;left:-10000px;border:1px solid;border-color:red blue"></div>',CKEDITOR.document);e.appendTo(CKEDITOR.document.getHead());try{var t=e.getComputedStyle("border-top-color"),n=e.getComputedStyle("border-right-color");CKEDITOR.env.hc=!(!t||t!=n)}catch(e){CKEDITOR.env.hc=!1}e.remove()}if(CKEDITOR.env.hc&&(CKEDITOR.env.cssClass=CKEDITOR.env.cssClass+" cke_hc"),CKEDITOR.document.appendStyleText(".cke{visibility:hidden;}"),CKEDITOR.status="loaded",CKEDITOR.fireOnce("loaded"),e=CKEDITOR._.pending)for(delete CKEDITOR._.pending,t=0;t<e.length;t++)CKEDITOR.editor.prototype.constructor.apply(e[t][0],e[t][1]),CKEDITOR.add(e[t][0])}(),CKEDITOR.skin.name="moono",CKEDITOR.skin.ua_editor="ie,iequirks,ie7,ie8,gecko",CKEDITOR.skin.ua_dialog="ie,iequirks,ie7,ie8",CKEDITOR.skin.chameleon=function(){var e=function(e,t){for(var n=e.match(/[^#]./g),i=0;3>i;i++){var o,a=n,r=i;o=parseInt(n[i],16),o=("0"+(0>t?0|o*(1+t):0|o+(255-o)*t).toString(16)).slice(-2),a[r]=o}return"#"+n.join("")},t=function(){var e=new CKEDITOR.template("background:#{to};background-image:-webkit-gradient(linear,lefttop,leftbottom,from({from}),to({to}));background-image:-moz-linear-gradient(top,{from},{to});background-image:-webkit-linear-gradient(top,{from},{to});background-image:-o-linear-gradient(top,{from},{to});background-image:-ms-linear-gradient(top,{from},{to});background-image:linear-gradient(top,{from},{to});filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0,startColorstr='{from}',endColorstr='{to}');");return function(t,n){return e.output({from:t,to:n})}}(),n={editor:new CKEDITOR.template("{id}.cke_chrome [border-color:{defaultBorder};] {id} .cke_top [ {defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_bottom [{defaultGradient}border-top-color:{defaultBorder};] {id} .cke_resizer [border-right-color:{ckeResizer}] {id} .cke_dialog_title [{defaultGradient}border-bottom-color:{defaultBorder};] {id} .cke_dialog_footer [{defaultGradient}outline-color:{defaultBorder};border-top-color:{defaultBorder};] {id} .cke_dialog_tab [{lightGradient}border-color:{defaultBorder};] {id} .cke_dialog_tab:hover [{mediumGradient}] {id} .cke_dialog_contents [border-top-color:{defaultBorder};] {id} .cke_dialog_tab_selected, {id} .cke_dialog_tab_selected:hover [background:{dialogTabSelected};border-bottom-color:{dialogTabSelectedBorder};] {id} .cke_dialog_body [background:{dialogBody};border-color:{defaultBorder};] {id} .cke_toolgroup [{lightGradient}border-color:{defaultBorder};] {id} a.cke_button_off:hover, {id} a.cke_button_off:focus, {id} a.cke_button_off:active [{mediumGradient}] {id} .cke_button_on [{ckeButtonOn}] {id} .cke_toolbar_separator [background-color: {ckeToolbarSeparator};] {id} .cke_combo_button [border-color:{defaultBorder};{lightGradient}] {id} a.cke_combo_button:hover, {id} a.cke_combo_button:focus, {id} .cke_combo_on a.cke_combo_button [border-color:{defaultBorder};{mediumGradient}] {id} .cke_path_item [color:{elementsPathColor};] {id} a.cke_path_item:hover, {id} a.cke_path_item:focus, {id} a.cke_path_item:active [background-color:{elementsPathBg};] {id}.cke_panel [border-color:{defaultBorder};] "),panel:new CKEDITOR.template(".cke_panel_grouptitle [{lightGradient}border-color:{defaultBorder};] .cke_menubutton_icon [background-color:{menubuttonIcon};] .cke_menubutton:hover .cke_menubutton_icon, .cke_menubutton:focus .cke_menubutton_icon, .cke_menubutton:active .cke_menubutton_icon [background-color:{menubuttonIconHover};] .cke_menuseparator [background-color:{menubuttonIcon};] a:hover.cke_colorbox, a:focus.cke_colorbox, a:active.cke_colorbox [border-color:{defaultBorder};] a:hover.cke_colorauto, a:hover.cke_colormore, a:focus.cke_colorauto, a:focus.cke_colormore, a:active.cke_colorauto, a:active.cke_colormore [background-color:{ckeColorauto};border-color:{defaultBorder};] ")};return function(i,o){var a=i.uiColor;a={id:"."+i.id,defaultBorder:e(a,-.1),defaultGradient:t(e(a,.9),a),lightGradient:t(e(a,1),e(a,.7)),mediumGradient:t(e(a,.8),e(a,.5)),ckeButtonOn:t(e(a,.6),e(a,.7)),ckeResizer:e(a,-.4),ckeToolbarSeparator:e(a,.5),ckeColorauto:e(a,.8),dialogBody:e(a,.7),dialogTabSelected:t("#FFFFFF","#FFFFFF"),dialogTabSelectedBorder:"#FFF",elementsPathColor:e(a,-.6),elementsPathBg:a,menubuttonIcon:e(a,.5),menubuttonIconHover:e(a,.3)};return n[o].output(a).replace(/\[/g,"{").replace(/\]/g,"}")}}(),CKEDITOR.plugins.add("dialogui",{onLoad:function(){var e=function(e){this._||(this._={}),this._.default=this._.initValue=e.default||"",this._.required=e.required||!1;for(var t=[this._],n=1;n<arguments.length;n++)t.push(arguments[n]);return t.push(!0),CKEDITOR.tools.extend.apply(CKEDITOR.tools,t),this._},t={build:function(e,t,n){return new CKEDITOR.ui.dialog.textInput(e,t,n)}},n={build:function(e,t,n){return new CKEDITOR.ui.dialog[t.type](e,t,n)}},i={isChanged:function(){return this.getValue()!=this.getInitValue()},reset:function(e){this.setValue(this.getInitValue(),e)},setInitValue:function(){this._.initValue=this.getValue()},resetInitValue:function(){this._.initValue=this._.default},getInitValue:function(){return this._.initValue}},o=CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onChange:function(e,t){this._.domOnChangeRegistered||(e.on("load",function(){this.getInputElement().on("change",function(){e.parts.dialog.isVisible()&&this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",t)}}
1,!0),a=/^on([A-Z]\w+)/,r=function(e){for(var t in e)(a.test(t)||"title"==t||"type"==t)&&delete e[t];return e};CKEDITOR.tools.extend(CKEDITOR.ui.dialog,{labeledElement:function(t,n,i,o){if(!(4>arguments.length)){var a=e.call(this,n);a.labelId=CKEDITOR.tools.getNextId()+"_label",this._.children=[];var r={role:n.role||"presentation"};n.includeLabel&&(r["aria-labelledby"]=a.labelId),CKEDITOR.ui.dialog.uiElement.call(this,t,n,i,"div",null,r,function(){var e=[],i=n.required?" cke_required":"";return"horizontal"!=n.labelLayout?e.push('<label class="cke_dialog_ui_labeled_label'+i+'" ',' id="'+a.labelId+'"',a.inputId?' for="'+a.inputId+'"':"",(n.labelStyle?' style="'+n.labelStyle+'"':"")+">",n.label,"</label>",'<div class="cke_dialog_ui_labeled_content"',n.controlStyle?' style="'+n.controlStyle+'"':"",' role="presentation">',o.call(this,t,n),"</div>"):(i={type:"hbox",widths:n.widths,padding:0,children:[{type:"html",html:'<label class="cke_dialog_ui_labeled_label'+i+'" id="'+a.labelId+'" for="'+a.inputId+'"'+(n.labelStyle?' style="'+n.labelStyle+'"':"")+">"+CKEDITOR.tools.htmlEncode(n.label)+"</span>"},{type:"html",html:'<span class="cke_dialog_ui_labeled_content"'+(n.controlStyle?' style="'+n.controlStyle+'"':"")+">"+o.call(this,t,n)+"</span>"}]},CKEDITOR.dialog._.uiElementBuilders.hbox.build(t,i,e)),e.join("")})}},textInput:function(t,n,i){if(!(3>arguments.length)){e.call(this,n);var o=this._.inputId=CKEDITOR.tools.getNextId()+"_textInput",a={class:"cke_dialog_ui_input_"+n.type,id:o,type:n.type};n.validate&&(this.validate=n.validate),n.maxLength&&(a.maxlength=n.maxLength),n.size&&(a.size=n.size),n.inputStyle&&(a.style=n.inputStyle);var r=this,s=!1;t.on("load",function(){r.getInputElement().on("keydown",function(e){13==e.data.getKeystroke()&&(s=!0)}),r.getInputElement().on("keyup",function(e){13==e.data.getKeystroke()&&s&&(t.getButton("ok")&&setTimeout(function(){t.getButton("ok").click()},0),s=!1)},null,null,1e3)}),CKEDITOR.ui.dialog.labeledElement.call(this,t,n,i,function(){var e=['<div class="cke_dialog_ui_input_',n.type,'" role="presentation"'];n.width&&e.push('style="width:'+n.width+'" '),e.push("><input "),a["aria-labelledby"]=this._.labelId,this._.required&&(a["aria-required"]=this._.required);for(var t in a)e.push(t+'="'+a[t]+'" ');return e.push(" /></div>"),e.join("")})}},textarea:function(t,n,i){if(!(3>arguments.length)){e.call(this,n);var o=this,a=this._.inputId=CKEDITOR.tools.getNextId()+"_textarea",r={};n.validate&&(this.validate=n.validate),r.rows=n.rows||5,r.cols=n.cols||20,r.class="cke_dialog_ui_input_textarea "+(n.class||""),void 0!==n.inputStyle&&(r.style=n.inputStyle),n.dir&&(r.dir=n.dir),CKEDITOR.ui.dialog.labeledElement.call(this,t,n,i,function(){r["aria-labelledby"]=this._.labelId,this._.required&&(r["aria-required"]=this._.required);var e,t=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',a,'" '];for(e in r)t.push(e+'="'+CKEDITOR.tools.htmlEncode(r[e])+'" ');return t.push(">",CKEDITOR.tools.htmlEncode(o._.default),"</textarea></div>"),t.join("")})}},checkbox:function(t,n,i){if(!(3>arguments.length)){var o=e.call(this,n,{default:!!n.default});n.validate&&(this.validate=n.validate),CKEDITOR.ui.dialog.uiElement.call(this,t,n,i,"span",null,null,function(){var e=CKEDITOR.tools.extend({},n,{id:n.id?n.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},!0),i=[],a=CKEDITOR.tools.getNextId()+"_label",s={class:"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":a};return r(e),n.default&&(s.checked="checked"),void 0!==e.inputStyle&&(e.style=e.inputStyle),o.checkbox=new CKEDITOR.ui.dialog.uiElement(t,e,i,"input",null,s),i.push(' <label id="',a,'" for="',s.id,'"'+(n.labelStyle?' style="'+n.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(n.label),"</label>"),i.join("")})}},radio:function(t,n,i){if(!(3>arguments.length)){e.call(this,n),this._.default||(this._.default=this._.initValue=n.items[0][1]),n.validate&&(this.validate=n.valdiate);var o=[],a=this;n.role="radiogroup",n.includeLabel=!0,CKEDITOR.ui.dialog.labeledElement.call(this,t,n,i,function(){for(var e=[],i=[],s=(n.id?n.id:CKEDITOR.tools.getNextId())+"_radio",l=0;l<n.items.length;l++){var c=n.items[l],d=void 0!==c[2]?c[2]:c[0],u=void 0!==c[1]?c[1]:c[0],h=(f=CKEDITOR.tools.getNextId()+"_radio_input")+"_label",f=CKEDITOR.tools.extend({},n,{id:f,title:null,type:null},!0),p=(d=CKEDITOR.tools.extend({},f,{title:d},!0),{type:"radio",class:"cke_dialog_ui_radio_input",name:s,value:u,"aria-labelledby":h}),m=[];a._.default==u&&(p.checked="checked"),r(f),r(d),void 0!==f.inputStyle&&(f.style=f.inputStyle),f.keyboardFocusable=!0,o.push(new CKEDITOR.ui.dialog.uiElement(t,f,m,"input",null,p)),m.push(" "),new CKEDITOR.ui.dialog.uiElement(t,d,m,"label",null,{id:h,for:p.id},c[0]),e.push(m.join(""))}return new CKEDITOR.ui.dialog.hbox(t,o,e,i),i.join("")}),this._.children=o}},button:function(t,n,i){if(arguments.length){"function"==typeof n&&(n=n(t.getParentEditor())),e.call(this,n,{disabled:n.disabled||!1}),CKEDITOR.event.implementOn(this);var o=this;t.on("load",function(){var e=this.getElement();e.on("click",function(e){o.click(),e.data.preventDefault()}
1),e.on("keydown",function(e){e.data.getKeystroke()in{32:1}&&(o.click(),e.data.preventDefault())}),e.unselectable()},this);var a=CKEDITOR.tools.extend({},n);delete a.style;var r=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,t,a,i,"a",null,{style:n.style,href:"javascript:void(0)",title:n.label,hidefocus:"true",class:n.class,role:"button","aria-labelledby":r},'<span id="'+r+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(n.label)+"</span>")}},select:function(t,n,i){if(!(3>arguments.length)){var o=e.call(this,n);n.validate&&(this.validate=n.validate),o.inputId=CKEDITOR.tools.getNextId()+"_select",CKEDITOR.ui.dialog.labeledElement.call(this,t,n,i,function(){var e=CKEDITOR.tools.extend({},n,{id:n.id?n.id+"_select":CKEDITOR.tools.getNextId()+"_select"},!0),i=[],a=[],s={id:o.inputId,class:"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};i.push('<div class="cke_dialog_ui_input_',n.type,'" role="presentation"'),n.width&&i.push('style="width:'+n.width+'" '),i.push(">"),void 0!=n.size&&(s.size=n.size),void 0!=n.multiple&&(s.multiple=n.multiple),r(e);for(var l,c=0;c<n.items.length&&(l=n.items[c]);c++)a.push('<option value="',CKEDITOR.tools.htmlEncode(void 0!==l[1]?l[1]:l[0]).replace(/"/g,"""),'" /> ',CKEDITOR.tools.htmlEncode(l[0]));return void 0!==e.inputStyle&&(e.style=e.inputStyle),o.select=new CKEDITOR.ui.dialog.uiElement(t,e,i,"select",null,s,a.join("")),i.push("</div>"),i.join("")})}},file:function(t,n,i){if(!(3>arguments.length)){void 0===n.default&&(n.default="");var o=CKEDITOR.tools.extend(e.call(this,n),{definition:n,buttons:[]});n.validate&&(this.validate=n.validate),t.on("load",function(){CKEDITOR.document.getById(o.frameId).getParent().addClass("cke_dialog_ui_input_file")}),CKEDITOR.ui.dialog.labeledElement.call(this,t,n,i,function(){o.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var e=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="',o.frameId,'" title="',n.label,'" src="javascript:void('];return e.push(CKEDITOR.env.ie?"(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"})()":"0"),e.push(')"></iframe>'),e.join("")})}},fileButton:function(t,n,i){if(!(3>arguments.length)){e.call(this,n);var o=this;n.validate&&(this.validate=n.validate);var a=CKEDITOR.tools.extend({},n),r=a.onClick;a.className=(a.className?a.className+" ":"")+"cke_dialog_ui_button",a.onClick=function(e){var i=n.for;r&&!1===r.call(this,e)||(t.getContentElement(i[0],i[1]).submit(),this.disable())},t.on("load",function(){t.getContentElement(n.for[0],n.for[1])._.buttons.push(o)}),CKEDITOR.ui.dialog.button.call(this,t,a,i)}},html:function(){var e=/^\s*<[\w:]+\s+([^>]*)?>/,t=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,n=/\/$/;return function(i,o,a){if(!(3>arguments.length)){var r=[],s=o.html;"<"!=s.charAt(0)&&(s="<span>"+s+"</span>");var l=o.focus;if(l){var c=this.focus;this.focus=function(){("function"==typeof l?l:c).call(this),this.fire("focus")},o.isFocusable&&(this.isFocusable=this.isFocusable),this.keyboardFocusable=!0}CKEDITOR.ui.dialog.uiElement.call(this,i,o,r,"span",null,null,""),r=r.join("").match(e),s=s.match(t)||["","",""],n.test(s[1])&&(s[1]=s[1].slice(0,-1),s[2]="/"+s[2]),a.push([s[1]," ",r[1]||"",s[2]].join(""))}}}(),fieldset:function(e,t,n,i,o){var a=o.label;this._={children:t},CKEDITOR.ui.dialog.uiElement.call(this,e,o,i,"fieldset",null,null,function(){var e=[];a&&e.push("<legend"+(o.labelStyle?' style="'+o.labelStyle+'"':"")+">"+a+"</legend>");for(var t=0;t<n.length;t++)e.push(n[t]);return e.join("")})}},!0),CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement,CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(e){var t=CKEDITOR.document.getById(this._.labelId);return 1>t.getChildCount()?new CKEDITOR.dom.text(e,CKEDITOR.document).appendTo(t):t.getChild(0).$.nodeValue=e,this},getLabel:function(){var e=CKEDITOR.document.getById(this._.labelId);return!e||1>e.getChildCount()?"":e.getChild(0).getText()},eventProcessors:o},!0),CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled&&this.fire("click",{dialog:this._.dialog})},enable:function(){this._.disabled=!1;var e=this.getElement();e&&e.removeClass("cke_disabled")},disable:function(){this._.disabled=!0,this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled},eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(e,t){this.on("click",function(){t.apply(this,arguments)})}},!0),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)}
1,focus:function(){var e=this.selectParentTab();setTimeout(function(){var t=e.getInputElement();t&&t.$.focus()},0)},select:function(){var e=this.selectParentTab();setTimeout(function(){var t=e.getInputElement();t&&(t.$.focus(),t.$.select())},0)},accessKeyUp:function(){this.select()},setValue:function(e){return!e&&(e=""),CKEDITOR.ui.dialog.uiElement.prototype.setValue.apply(this,arguments)},keyboardFocusable:!0},i,!0),CKEDITOR.ui.dialog.textarea.prototype=new CKEDITOR.ui.dialog.textInput,CKEDITOR.ui.dialog.select.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return this._.select.getElement()},add:function(e,t,n){var i=new CKEDITOR.dom.element("option",this.getDialog().getParentEditor().document),o=this.getInputElement().$;return i.$.text=e,i.$.value=void 0===t||null===t?e:t,void 0===n||null===n?CKEDITOR.env.ie?o.add(i.$):o.add(i.$,null):o.add(i.$,n),this},remove:function(e){return this.getInputElement().$.remove(e),this},clear:function(){for(var e=this.getInputElement().$;0<e.length;)e.remove(0);return this},keyboardFocusable:!0},i,!0),CKEDITOR.ui.dialog.checkbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getInputElement:function(){return this._.checkbox.getElement()},setValue:function(e,t){this.getInputElement().$.checked=e,!t&&this.fire("change",{value:e})},getValue:function(){return this.getInputElement().$.checked},accessKeyUp:function(){this.setValue(!this.getValue())},eventProcessors:{onChange:function(e,t){return!CKEDITOR.env.ie||8<CKEDITOR.env.version?o.onChange.apply(this,arguments):(e.on("load",function(){var e=this._.checkbox.getElement();e.on("propertychange",function(t){"checked"==(t=t.data.$).propertyName&&this.fire("change",{value:e.$.checked})},this)},this),this.on("change",t),null)}},keyboardFocusable:!0},i,!0),CKEDITOR.ui.dialog.radio.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setValue:function(e,t){for(var n,i=this._.children,o=0;o<i.length&&(n=i[o]);o++)n.getElement().$.checked=n.getValue()==e;!t&&this.fire("change",{value:e})},getValue:function(){for(var e=this._.children,t=0;t<e.length;t++)if(e[t].getElement().$.checked)return e[t].getValue();return null},accessKeyUp:function(){var e,t=this._.children;for(e=0;e<t.length;e++)if(t[e].getElement().$.checked)return void t[e].getElement().focus();t[0].getElement().focus()},eventProcessors:{onChange:function(e,t){return CKEDITOR.env.ie?(e.on("load",function(){for(var e=this._.children,t=this,n=0;n<e.length;n++)e[n].getElement().on("propertychange",function(e){"checked"==(e=e.data.$).propertyName&&this.$.checked&&t.fire("change",{value:this.getAttribute("value")})})},this),this.on("change",t),null):o.onChange.apply(this,arguments)}}},i,!0),CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,i,{getInputElement:function(){var e=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return 0<e.$.forms.length?new CKEDITOR.dom.element(e.$.forms[0].elements[0]):this.getElement()},submit:function(){return this.getInputElement().getParent().$.submit(),this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(e){var t,n,i=/^on([A-Z]\w+)/,o=function(e,t,n,i){e.on("formLoaded",function(){e.getInputElement().on(n,i,e)})};for(n in e)(t=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,e[n]):o(this,this._.dialog,t[1].toLowerCase(),e[n]));return this},reset:function(){function e(){n.$.open();var e="";i.size&&(e=i.size-(CKEDITOR.env.ie?7:0));var c=t.frameId+"_input";for(n.$.write(['<html dir="'+s+'" lang="'+l+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+s+'" lang="'+l+'" action="',CKEDITOR.tools.htmlEncode(i.action),'"><label id="',t.labelId,'" for="',c,'" style="display:none">',CKEDITOR.tools.htmlEncode(i.label),'</label><input style="width:100%" id="',c,'" aria-labelledby="',t.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(i.id||"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(0<e?e:""),'" /></form></body></html><script>',CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"","window.parent.CKEDITOR.tools.callFunction("+a+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+r+")}","<\/script>"].join("")),n.$.close(),e=0;e<o.length;e++)o[e].enable()}var t=this._,n=CKEDITOR.document.getById(t.frameId).getFrameDocument(),i=t.definition,o=t.buttons,a=this.formLoadedNumber,r=this.formUnloadNumber,s=t.dialog._.editor.lang.dir,l=t.dialog._.editor.langCode;a||(a=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this),r=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this),this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(a),CKEDITOR.tools.removeFunction(r)})),CKEDITOR.env.gecko?setTimeout(e,500):e()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(e,t){this._.domOnChangeRegistered||(this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this),this._.domOnChangeRegistered=!0),this.on("change",t)}},keyboardFocusable:!0},!0),CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button,CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype),CKEDITOR.dialog.addUIElement("text",t),CKEDITOR.dialog.addUIElement("password",t),CKEDITOR.dialog.addUIElement("textarea",
1n),CKEDITOR.dialog.addUIElement("checkbox",n),CKEDITOR.dialog.addUIElement("radio",n),CKEDITOR.dialog.addUIElement("button",n),CKEDITOR.dialog.addUIElement("select",n),CKEDITOR.dialog.addUIElement("file",n),CKEDITOR.dialog.addUIElement("fileButton",n),CKEDITOR.dialog.addUIElement("html",n),CKEDITOR.dialog.addUIElement("fieldset",{build:function(e,t,n){for(var i,o=t.children,a=[],r=[],s=0;s<o.length&&(i=o[s]);s++){var l=[];a.push(l),r.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(e,i,l))}return new CKEDITOR.ui.dialog[t.type](e,r,a,n,t)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,function(){function e(){for(var e=this._.tabIdList.length,t=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+e,n=t-1;n>t-e;n--)if(this._.tabs[this._.tabIdList[n%e]][0].$.offsetHeight)return this._.tabIdList[n%e];return null}function t(){for(var e=this._.tabIdList.length,t=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId),n=t+1;n<t+e;n++)if(this._.tabs[this._.tabIdList[n%e]][0].$.offsetHeight)return this._.tabIdList[n%e];return null}function n(e,t){for(var n=e.$.getElementsByTagName("input"),i=0,o=n.length;i<o;i++){var a=new CKEDITOR.dom.element(n[i]);"text"==a.getAttribute("type").toLowerCase()&&(t?(a.setAttribute("value",a.getCustomData("fake_value")||""),a.removeCustomData("fake_value")):(a.setCustomData("fake_value",a.getAttribute("value")),a.setAttribute("value","")))}}function i(e,t,n){this.element=t,this.focusIndex=n,this.tabIndex=0,this.isFocusable=function(){return!t.getAttribute("disabled")&&t.isVisible()},this.focus=function(){e._.currentFocusIndex=this.focusIndex,this.element.focus()},t.on("keydown",function(e){e.data.getKeystroke()in{32:1,13:1}&&this.fire("click")}),t.on("focus",function(){this.fire("mouseover")}),t.on("blur",function(){this.fire("mouseout")})}function o(e,t){this._={dialog:e},CKEDITOR.tools.extend(this,t)}function a(e){e.data.preventDefault(1)}function r(e){var t=CKEDITOR.document.getWindow(),n=(r=e.config).dialog_backgroundCoverColor||"white",i=r.dialog_backgroundCoverOpacity,o=r.baseFloatZIndex,r=CKEDITOR.tools.genKey(n,i,o),s=E[r];s?s.show():(o=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",o,"; top: 0px; left: 0px; ",CKEDITOR.env.ie6Compat?"":"background-color: "+n,'" class="cke_dialog_background_cover">'],CKEDITOR.env.ie6Compat&&(n="<html><body style=\\'background-color:"+n+";\\'></body></html>",o.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:'),o.push("void((function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.write( '"+n+"' );document.close();")+"})())"),o.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')),o.push("</div>"),(s=CKEDITOR.dom.element.createFromHtml(o.join(""))).setOpacity(void 0!=i?i:.5),s.on("keydown",a),s.on("keypress",a),s.on("keyup",a),s.appendTo(CKEDITOR.document.getBody()),E[r]=s),e.focusManager.add(s),g=s;var l=function(){var e=t.getScrollPosition(),n=CKEDITOR.dialog._.currentTop;if(s.setStyles({left:e.x+"px",top:e.y+"px"}),n)do{e=n.getPosition(),n.move(e.x,e.y)}while(n=n._.parentDialog)};if(m=e=function(){var e=t.getViewPaneSize();s.setStyles({width:e.width+"px",height:e.height+"px"})},t.on("resize",e),e(),(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&s.focus(),CKEDITOR.env.ie6Compat){var c=function(){l(),arguments.callee.prevScrollHandler.apply(this,arguments)};t.$.setTimeout(function(){c.prevScrollHandler=window.onscroll||function(){},window.onscroll=c},0),l()}}function s(e){g&&(e.focusManager.remove(g),e=CKEDITOR.document.getWindow(),g.hide(),e.removeListener("resize",m),CKEDITOR.env.ie6Compat&&e.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0),m=null)}var l=CKEDITOR.tools.cssLength,c='<div class="cke_reset_all {editorId} {editorDialogClass} {hidpi}" dir="{langDir}" lang="{langCode}" role="dialog" aria-labelledby="cke_dialog_title_{id}"><table class="cke_dialog '+CKEDITOR.env.cssClass+' cke_{langDir}" style="position:absolute" role="presentation"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>';CKEDITOR.dialog=function(n,i){function o(e){var t=T._.focusList;e=e||0;if(!(1>t.length)){var n=T._.currentFocusIndex;try{t[n].getInputElement().$.blur()}catch(e){}for(var i=n=(n+e+t.length)%t.length;e&&!t[i].isFocusable()&&(i=(i+e+t.length)%t.length)!=n;);t[i].focus(),"text"==t[i].type&&t[i].select()}}function a(i){if(T==CKEDITOR.dialog._.currentTop){var a=i.data.getKeystroke(),c="rtl"==n.lang.dir;
1if(s=l=0,9==a||a==CKEDITOR.SHIFT+9)a=a==CKEDITOR.SHIFT+9,T._.tabBarMode?(a=a?e.call(T):t.call(T),T.selectPage(a),T._.tabs[a][0].focus()):o(a?-1:1),s=1;else if(a==CKEDITOR.ALT+121&&!T._.tabBarMode&&1<T.getPageCount())T._.tabBarMode=!0,T._.tabs[T._.currentTabId][0].focus(),s=1;else if(37!=a&&39!=a||!T._.tabBarMode)if(13!=a&&32!=a||!T._.tabBarMode)if(13==a)(a=i.data.getTarget()).is("a","button","select","textarea")||a.is("input")&&"button"==a.$.type||((a=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(a.click,0,a),s=1),l=1;else{if(27!=a)return;(a=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(a.click,0,a):!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),l=1}else this.selectPage(this._.currentTabId),this._.tabBarMode=!1,this._.currentFocusIndex=-1,o(1),s=1;else a=a==(c?39:37)?e.call(T):t.call(T),T.selectPage(a),T._.tabs[a][0].focus(),s=1;r(i)}}function r(e){s?e.data.preventDefault(1):l&&e.data.stopPropagation()}var s,l,u=CKEDITOR.dialog._.dialogDefinitions[i],h=CKEDITOR.tools.clone(d),f=n.config.dialog_buttonsOrder||"OS",m=n.lang.dir,E={};if(("OS"==f&&CKEDITOR.env.mac||"rtl"==f&&"ltr"==m||"ltr"==f&&"rtl"==m)&&h.buttons.reverse(),u=CKEDITOR.tools.extend(u(n),h),u=CKEDITOR.tools.clone(u),u=new p(this,u),h=function(e){var t=(e=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",c).output({id:CKEDITOR.tools.getNextNumber(),editorId:e.id,langDir:e.lang.dir,langCode:e.langCode,editorDialogClass:"cke_editor_"+e.name.replace(/\./g,"\\.")+"_dialog",closeTitle:e.lang.common.close,hidpi:CKEDITOR.env.hidpi?"cke_hidpi":""}))).getChild([0,0,0,0,0]),n=t.getChild(0),i=t.getChild(1);if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var o="javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())";CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+o+'" tabIndex="-1"></iframe>').appendTo(t.getParent())}return n.unselectable(),i.unselectable(),{element:e,parts:{dialog:e.getChild(0),title:n,close:i,tabs:t.getChild(2),contents:t.getChild([3,0,0,0]),footer:t.getChild([3,0,1,0])}}}(n),this._={editor:n,element:h.element,name:i,contentSize:{width:0,height:0}
1,size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null,currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:!1,focusList:[],currentFocusIndex:0,hasFocus:!1},this.parts=h.parts,CKEDITOR.tools.setTimeout(function(){n.fire("ariaWidget",this.parts.contents)},0,this),h={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"},h["rtl"==m?"right":"left"]=0,this.parts.dialog.setStyles(h),CKEDITOR.event.call(this),this.definition=u=CKEDITOR.fire("dialogDefinition",{name:i,definition:u},n).definition,!("removeDialogTabs"in n._)&&n.config.removeDialogTabs){for(h=n.config.removeDialogTabs.split(";"),m=0;m<h.length;m++)if(2==(f=h[m].split(":")).length){var v=f[0];E[v]||(E[v]=[]),E[v].push(f[1])}n._.removeDialogTabs=E}if(n._.removeDialogTabs&&(E=n._.removeDialogTabs[i]))for(m=0;m<E.length;m++)u.removeContents(E[m]);u.onLoad&&this.on("load",u.onLoad),u.onShow&&this.on("show",u.onShow),u.onHide&&this.on("hide",u.onHide),u.onOk&&this.on("ok",function(e){n.fire("saveSnapshot"),setTimeout(function(){n.fire("saveSnapshot")},0),!1===u.onOk.call(this,e)&&(e.data.hide=!1)}),u.onCancel&&this.on("cancel",function(e){!1===u.onCancel.call(this,e)&&(e.data.hide=!1)});var T=this,C=function(e){var t,n=T._.contents;for(t in n)for(var i in n[t])if(e.call(this,n[t][i]))return};this.on("ok",function(e){C(function(t){if(t.validate){var n=t.validate(this),i="string"==typeof n||!1===n;return i&&(e.data.hide=!1,e.stop()),function(e,t){var n=this.getInputElement();n&&(e?n.removeAttribute("aria-invalid"):n.setAttribute("aria-invalid",!0)),e||(this.select?this.select():this.focus()),t&&alert(t),this.fire("validated",{valid:e,msg:t})}.call(t,!i,"string"==typeof n?n:void 0),i}})},this,null,0),this.on("cancel",function(e){C(function(t){if(t.isChanged())return!n.config.dialog_noConfirmCancel&&!confirm(n.lang.common.confirmCancel)&&(e.data.hide=!1),!0})},this,null,0),this.parts.close.on("click",function(e){!1!==this.fire("cancel",{hide:!0}).hide&&this.hide(),e.data.preventDefault()},this),this.changeFocus=o;var b=this._.element;
1for(n.focusManager.add(b,1),this.on("show",function(){b.on("keydown",a,this),CKEDITOR.env.gecko&&b.on("keypress",r,this)}),this.on("hide",function(){b.removeListener("keydown",a),CKEDITOR.env.gecko&&b.removeListener("keypress",r),C(function(e){(function(){var e=this.getInputElement();e&&e.removeAttribute("aria-invalid")}).apply(e)})}),this.on("iframeAdded",function(e){new CKEDITOR.dom.document(e.data.iframe.$.contentWindow.document).on("keydown",a,this,null,0)}),this.on("show",function(){if(function(){var e=T._.focusList;e.sort(function(e,t){return e.tabIndex!=t.tabIndex?t.tabIndex-e.tabIndex:e.focusIndex-t.focusIndex});for(var t=e.length,n=0;n<t;n++)e[n].focusIndex=n}(),n.config.dialog_startupFocusTab&&1<T._.pageCount)T._.tabBarMode=!0,T._.tabs[T._.currentTabId][0].focus();else if(!this._.hasFocus)if(this._.currentFocusIndex=-1,u.onFocus){var e=u.onFocus.call(this);e&&e.focus()}else o(1)},this,null,4294967295),CKEDITOR.env.ie6Compat&&this.on("load",function(){var e=this.getElement(),t=e.getFirst();t.remove(),t.appendTo(e)},this),function(e){function t(t){var n=e.getSize(),l=CKEDITOR.document.getWindow().getViewPaneSize(),c=t.data.$.screenX,d=t.data.$.screenY,u=c-i.x,h=d-i.y;i={x:c,y:d},o.x+=u,o.y+=h,e.move(o.x+s[3]<r?-s[3]:o.x-s[1]>l.width-n.width-r?l.width-n.width+("rtl"==a.lang.dir?0:s[1]):o.x,o.y+s[0]<r?-s[0]:o.y-s[2]>l.height-n.height-r?l.height-n.height+s[2]:o.y,1),t.data.preventDefault()}function n(){if(CKEDITOR.document.removeListener("mousemove",t),CKEDITOR.document.removeListener("mouseup",n),CKEDITOR.env.ie6Compat){var e=g.getChild(0).getFrameDocument();e.removeListener("mousemove",t),e.removeListener("mouseup",n)}}var i=null,o=null;e.getElement().getFirst();var a=e.getParentEditor(),r=a.config.dialog_magnetDistance,s=CKEDITOR.skin.margins||[0,0,0,0];void 0===r&&(r=20),e.parts.title.on("mousedown",function(a){if(i={x:a.data.$.screenX,y:a.data.$.screenY},CKEDITOR.document.on("mousemove",t),CKEDITOR.document.on("mouseup",n),o=e.getPosition(),CKEDITOR.env.ie6Compat){var r=g.getChild(0).getFrameDocument();r.on("mousemove",t),r.on("mouseup",n)}a.data.preventDefault()},e)}(this),function(e){function t(t){var n="rtl"==h.lang.dir,u=d.width,f=d.height,p=u+(t.data.$.screenX-i)*(n?-1:1)*(e._.moved?1:2),m=f+(t.data.$.screenY-o)*(e._.moved?1:2),g=e._.element.getFirst(),E=(g=n&&g.getComputedStyle("right"),e.getPosition());E.y+m>c.height&&(m=c.height-E.y),(n?g:E.x)+p>c.width&&(p=c.width-(n?g:E.x)),r!=CKEDITOR.DIALOG_RESIZE_WIDTH&&r!=CKEDITOR.DIALOG_RESIZE_BOTH||(u=Math.max(a.minWidth||0,p-s)),r!=CKEDITOR.DIALOG_RESIZE_HEIGHT&&r!=CKEDITOR.DIALOG_RESIZE_BOTH||(f=Math.max(a.minHeight||0,m-l)),e.resize(u,f),e._.moved||e.layout(),t.data.preventDefault()}function n(){if(CKEDITOR.document.removeListener("mouseup",n),CKEDITOR.document.removeListener("mousemove",t),u&&(u.remove(),u=null),CKEDITOR.env.ie6Compat){var e=g.getChild(0).getFrameDocument();e.removeListener("mouseup",n),e.removeListener("mousemove",t)}}var i,o,a=e.definition,r=a.resizable;if(r!=CKEDITOR.DIALOG_RESIZE_NONE){var s,l,c,d,u,h=e.getParentEditor(),f=CKEDITOR.tools.addFunction(function(a){d=e.getSize();var r=e.parts.contents;r.$.getElementsByTagName("iframe").length&&(u=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'),r.append(u)),l=d.height-e.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.ie&&CKEDITOR.env.quirks)),s=d.width-e.parts.contents.getSize("width",1),i=a.screenX,o=a.screenY,c=CKEDITOR.document.getWindow().getViewPaneSize(),CKEDITOR.document.on("mousemove",t),CKEDITOR.document.on("mouseup",n),CKEDITOR.env.ie6Compat&&((r=g.getChild(0).getFrameDocument()).on("mousemove",t),r.on("mouseup",n)),a.preventDefault&&a.preventDefault()});e.on("load",function(){var t="";r==CKEDITOR.DIALOG_RESIZE_WIDTH?t=" cke_resizer_horizontal":r==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(t=" cke_resizer_vertical"),t=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+t+" cke_resizer_"+h.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(h.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+f+', event )">'+("ltr"==h.lang.dir?"◢":"◣")+"</div>"),e.parts.footer.append(t,1)}),h.on("destroy",function(){CKEDITOR.tools.removeFunction(f)})}}(this),new CKEDITOR.dom.text(u.title,CKEDITOR.document).appendTo(this.parts.title),m=0;m<u.contents.length;m++)(E=u.contents[m])&&this.addPage(E);for(this.parts.tabs.on("click",function(e){var t=e.data.getTarget();t.hasClass("cke_dialog_tab")&&(t=t.$.id,this.selectPage(t.substring(4,t.lastIndexOf("_"))),this._.tabBarMode&&(this._.tabBarMode=!1,this._.currentFocusIndex=-1,o(1)),e.data.preventDefault())},this),m=[],E=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this,{type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:u.buttons},m).getChild(),this.parts.footer.setHtml(m.join("")),m=0;m<E.length;m++)this._.buttons[E[m].id]=E[m]}
1,CKEDITOR.dialog.prototype={destroy:function(){this.hide(),this._.element.remove()},resize:function(e,t){this._.contentSize&&this._.contentSize.width==e&&this._.contentSize.height==t||(CKEDITOR.dialog.fire("resize",{dialog:this,width:e,height:t},this._.editor),this.fire("resize",{width:e,height:t},this._.editor),this.parts.contents.setStyles({width:e+"px",height:t+"px"}),"rtl"==this._.editor.lang.dir&&this._.position&&(this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10)),this._.contentSize={width:e,height:t})},getSize:function(){var e=this._.element.getFirst();return{width:e.$.offsetWidth||0,height:e.$.offsetHeight||0}},move:function(e,t,n){var i=this._.element.getFirst(),o="rtl"==this._.editor.lang.dir,a="fixed"==i.getComputedStyle("position");CKEDITOR.env.ie&&i.setStyle("zoom","100%"),a&&this._.position&&this._.position.x==e&&this._.position.y==t||(this._.position={x:e,y:t},a||(a=CKEDITOR.document.getWindow().getScrollPosition(),e+=a.x,t+=a.y),o&&(a=this.getSize(),e=CKEDITOR.document.getWindow().getViewPaneSize().width-a.width-e),t={top:(0<t?t:0)+"px"},t[o?"right":"left"]=(0<e?e:0)+"px",i.setStyles(t),n&&(this._.moved=1))},getPosition:function(){return CKEDITOR.tools.extend({},this._.position)},show:function(){var e=this._.element,t=this.definition;e.getParent()&&e.getParent().equals(CKEDITOR.document.getBody())?e.setStyle("display","block"):e.appendTo(CKEDITOR.document.getBody()),this.resize(this._.contentSize&&this._.contentSize.width||t.width||t.minWidth,this._.contentSize&&this._.contentSize.height||t.height||t.minHeight),this.reset(),this.selectPage(this.definition.contents[0].id),null===CKEDITOR.dialog._.currentZIndex&&(CKEDITOR.dialog._.currentZIndex=this._.editor.config.baseFloatZIndex),this._.element.getFirst().setStyle("z-index",CKEDITOR.dialog._.currentZIndex+=10),null===CKEDITOR.dialog._.currentTop?(CKEDITOR.dialog._.currentTop=this,this._.parentDialog=null,r(this._.editor)):(this._.parentDialog=CKEDITOR.dialog._.currentTop,this._.parentDialog.getElement().getFirst().$.style.zIndex-=Math.floor(this._.editor.config.baseFloatZIndex/2),CKEDITOR.dialog._.currentTop=this),e.on("keydown",T),e.on("keyup",C),this._.hasFocus=!1;for(var n in t.contents)if(t.contents[n]){e=t.contents[n];var i=this._.tabs[e.id],o=e.requiredContent,a=0;if(i){for(var s in this._.contents[e.id]){var l=this._.contents[e.id][s];"hbox"==l.type||"vbox"==l.type||!l.getInputElement()||(l.requiredContent&&!this._.editor.activeFilter.check(l.requiredContent)?l.disable():(l.enable(),a++))}!a||o&&!this._.editor.activeFilter.check(o)?i[0].addClass("cke_dialog_tab_disabled"):i[0].removeClass("cke_dialog_tab_disabled")}}CKEDITOR.tools.setTimeout(function(){this.layout(),function(e){function t(){e.layout()}var n=CKEDITOR.document.getWindow();n.on("resize",t),e.on("hide",function(){n.removeListener("resize",t)})}(this),this.parts.dialog.setStyle("visibility",""),this.fireOnce("load",{}),CKEDITOR.ui.fire("ready",this),this.fire("show",{}),this._.editor.fire("dialogShow",this),this._.parentDialog||this._.editor.focusManager.lock(),this.foreach(function(e){e.setInitValue&&e.setInitValue()})},100,this)},layout:function(){var e=this.parts.dialog,t=this.getSize(),n=CKEDITOR.document.getWindow().getViewPaneSize(),i=(n.width-t.width)/2,o=(n.height-t.height)/2;CKEDITOR.env.ie6Compat||(t.height+(0<o?o:0)>n.height||t.width+(0<i?i:0)>n.width?e.setStyle("position","absolute"):e.setStyle("position","fixed")),this.move(this._.moved?this._.position.x:i,this._.moved?this._.position.y:o)},foreach:function(e){for(var t in this._.contents)for(var n in this._.contents[t])e.call(this,this._.contents[t][n]);return this},reset:function(){var e=function(e){e.reset&&e.reset(1)};return function(){return this.foreach(e),this}}(),setupContent:function(){var e=arguments;this.foreach(function(t){t.setup&&t.setup.apply(t,e)})},commitContent:function(){var e=arguments;this.foreach(function(t){CKEDITOR.env.ie&&this._.currentFocusIndex==t.focusIndex&&t.getInputElement().$.blur(),t.commit&&t.commit.apply(t,e)})},hide:function(){if(this.parts.dialog.isVisible()){this.fire("hide",{}),this._.editor.fire("dialogHide",this),this.selectPage(this._.tabIdList[0]);var e=this._.element;for(e.setStyle("display","none"),this.parts.dialog.setStyle("visibility","hidden"),D(this);CKEDITOR.dialog._.currentTop!=this;)CKEDITOR.dialog._.currentTop.hide();if(this._.parentDialog){var t=this._.parentDialog.getElement().getFirst();t.setStyle("z-index",parseInt(t.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex/2))}else s(this._.editor);if(CKEDITOR.dialog._.currentTop=this._.parentDialog)CKEDITOR.dialog._.currentZIndex-=10;
1else{CKEDITOR.dialog._.currentZIndex=null,e.removeListener("keydown",T),e.removeListener("keyup",C);var n=this._.editor;n.focus(),setTimeout(function(){n.focusManager.unlock()},0)}delete this._.parentDialog,this.foreach(function(e){e.resetInitValue&&e.resetInitValue()})}},addPage:function(e){if(!e.requiredContent||this._.editor.filter.check(e.requiredContent)){for(var t=[],n=e.label?' title="'+CKEDITOR.tools.htmlEncode(e.label)+'"':"",i=CKEDITOR.dialog._.uiElementBuilders.vbox.build(this,{type:"vbox",className:"cke_dialog_page_contents",children:e.elements,expand:!!e.expand,padding:e.padding,style:e.style||"width: 100%;"},t),o=this._.contents[e.id]={},a=i.getChild(),r=0;i=a.shift();)!i.notAllowed&&"hbox"!=i.type&&"vbox"!=i.type&&r++,o[i.id]=i,"function"==typeof i.getChild&&a.push.apply(a,i.getChild());r||(e.hidden=!0),(t=CKEDITOR.dom.element.createFromHtml(t.join(""))).setAttribute("role","tabpanel"),i=CKEDITOR.env,o="cke_"+e.id+"_"+CKEDITOR.tools.getNextNumber(),n=CKEDITOR.dom.element.createFromHtml(['<a class="cke_dialog_tab"',0<this._.pageCount?" cke_last":"cke_first",n,e.hidden?' style="display:none"':"",' id="',o,'"',i.gecko&&!i.hc?"":' href="javascript:void(0)"',' tabIndex="-1" hidefocus="true" role="tab">',e.label,"</a>"].join("")),t.setAttribute("aria-labelledby",o),this._.tabs[e.id]=[n,t],this._.tabIdList.push(e.id),!e.hidden&&this._.pageCount++,this._.lastTab=n,this.updateStyle(),t.setAttribute("name",e.id),t.appendTo(this.parts.contents),n.unselectable(),this.parts.tabs.append(n),e.accessKey&&(b(this,this,"CTRL+"+e.accessKey,I,y),this._.accessKeyMap["CTRL+"+e.accessKey]=e.id)}},selectPage:function(e){if(this._.currentTabId!=e&&!this._.tabs[e][0].hasClass("cke_dialog_tab_disabled")&&!1!==this.fire("selectPage",{page:e,currentPage:this._.currentTabId})){for(var t in this._.tabs){var i=this._.tabs[t][0],o=this._.tabs[t][1];t!=e&&(i.removeClass("cke_dialog_tab_selected"),o.hide()),o.setAttribute("aria-hidden",t!=e)}var a=this._.tabs[e];a[0].addClass("cke_dialog_tab_selected"),CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat?(n(a[1]),a[1].show(),setTimeout(function(){n(a[1],1)},0)):a[1].show(),this._.currentTabId=e,this._.currentTabIndex=CKEDITOR.tools.indexOf(this._.tabIdList,e)}},updateStyle:function(){this.parts.dialog[(1===this._.pageCount?"add":"remove")+"Class"]("cke_single_page")},hidePage:function(t){var n=this._.tabs[t]&&this._.tabs[t][0];n&&1!=this._.pageCount&&n.isVisible()&&(t==this._.currentTabId&&this.selectPage(e.call(this)),n.hide(),this._.pageCount--,this.updateStyle())},showPage:function(e){(e=this._.tabs[e]&&this._.tabs[e][0])&&(e.show(),this._.pageCount++,this.updateStyle())},getElement:function(){return this._.element},getName:function(){return this._.name},getContentElement:function(e,t){var n=this._.contents[e];return n&&n[t]},getValueOf:function(e,t){return this.getContentElement(e,t).getValue()},setValueOf:function(e,t,n){return this.getContentElement(e,t).setValue(n)},getButton:function(e){return this._.buttons[e]},click:function(e){return this._.buttons[e].click()},disableButton:function(e){return this._.buttons[e].disable()},enableButton:function(e){return this._.buttons[e].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(e,t){if(void 0===t)t=this._.focusList.length,this._.focusList.push(new i(this,e,t));else{this._.focusList.splice(t,0,new i(this,e,t));for(var n=t+1;n<this._.focusList.length;n++)this._.focusList[n].focusIndex++}}},CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(e,t){this._.dialogDefinitions[e]&&"function"!=typeof t||(this._.dialogDefinitions[e]=t)},exists:function(e){return!!this._.dialogDefinitions[e]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(e,t,n){return!((e=e.config.removeDialogTabs)&&e.match(RegExp("(?:^|;)"+t+":"+n+"(?:$|;)","i")))},okButton:function(){var e=function(e,t){return t=t||{},CKEDITOR.tools.extend({id:"ok",type:"button",label:e.lang.common.ok,class:"cke_dialog_ui_button_ok",onClick:function(e){!1!==(e=e.data.dialog).fire("ok",{hide:!0}).hide&&e.hide()}},t,!0)};return e.type="button",e.override=function(t){return CKEDITOR.tools.extend(function(n){return e(n,t)},{type:"button"},!0)},e}(),cancelButton:function(){var e=function(e,t){return t=t||{},CKEDITOR.tools.extend({id:"cancel",type:"button",label:e.lang.common.cancel,class:"cke_dialog_ui_button_cancel",onClick:function(e){!1!==(e=e.data.dialog).fire("cancel",{hide:!0}).hide&&e.hide()}},t,!0)};return e.type="button",e.override=function(t){return CKEDITOR.tools.extend(function(n){return e(n,t)},{type:"button"},!0)},e}(),addUIElement:function(e,t){this._.uiElementBuilders[e]=t}}),CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null},CKEDITOR.event.implementOn(CKEDITOR.dialog),CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var d={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600,minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},u=function(e,t,n){for(var i,o=0;i=e[o];o++)if(i.id==t||n&&i[n]&&(i=u(i[n],t,n)))return i;return null},h=function(e,t,n,i,o){if(n){for(var a,r=0;a=e[r];r++){if(a.id==n)return e.splice(r,0,t),t;if(i&&a[i]&&(a=h(a[i],t,n,i,!0)))return a}if(o)return null}return e.push(t),t},f=function(e,t,n){for(var i,o=0;i=e[o];o++){if(i.id==t)return e.splice(o,1);if(n&&i[n]&&(i=f(i[n],t,n)))return i}return null},p=function(e,t){this.dialog=e;for(var n,i=t.contents,a=0;n=i[a];a++)i[a]=n&&new o(e,n);CKEDITOR.tools.extend(this,t)};p.prototype={getContents:function(e){return u(this.contents,e)},getButton:function(e){return u(this.buttons,e)},addContents:function(e,t){return h(this.contents,e,t)},addButton:function(e,t){return h(this.buttons,e,t)},removeContents:function(e){f(this.contents,e)},removeButton:function(e){f(this.buttons,e)}},o.prototype={get:function(e){return u(this.elements,e,"children")},add:function(e,t){return h(this.elements,e,t,"children")},remove:function(e){f(this.elements,e,"children")}};var m,g,E={},v={},T=function(e){var t=e.data.$.ctrlKey||e.data.$.metaKey,n=e.data.$.altKey,i=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode);(t=v[(t?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+o])&&t.length&&((t=t[t.length-1]).keydown&&t.keydown.call(t.uiElement,t.dialog,t.key),e.data.preventDefault())},C=function(e){var t=e.data.$.ctrlKey||e.data.$.metaKey,n=e.data.$.altKey,i=e.data.$.shiftKey,o=String.fromCharCode(e.data.$.keyCode);(t=v[(t?"CTRL+":"")+(n?"ALT+":"")+(i?"SHIFT+":"")+o])&&t.length&&(t=t[t.length-1]).keyup&&(t.keyup.call(t.uiElement,t.dialog,t.key),e.data.preventDefault())},b=function(e,t,n,i,o){(v[n]||(v[n]=[])).push({uiElement:e,dialog:t,key:n,keyup:o||e.accessKeyUp,keydown:i||e.accessKeyDown})},D=function(e){for(var t in v){for(var n=v[t],i=n.length-1;0<=i;i--)(n[i].dialog==e||n[i].uiElement==e)&&n.splice(i,1);0===n.length&&delete v[t]}},y=function(e,t){e._.accessKeyMap[t]&&e.selectPage(e._.accessKeyMap[t])},I=function(){};CKEDITOR.ui.dialog={uiElement:function(e,t,n,i,o,a,r){if(!(4>arguments.length)){var s=(i.call?i(t):i)||"div",l=["<",s," "],c=(o&&o.call?o(t):o)||{},d=(a&&a.call?a(t):a)||{},u=(r&&r.call?r.call(this,e,t):r)||"",h=this.domId=d.id||CKEDITOR.tools.getNextId()+"_uiElement";this.id=t.id,t.requiredContent&&!e.getParentEditor().filter.check(t.requiredContent)&&(c.display="none",this.notAllowed=!0),d.id=h;var f={};t.type&&(f["cke_dialog_ui_"+t.type]=1),t.className&&(f[t.className]=1),t.disabled&&(f.cke_disabled=1);var p=d.class&&d.class.split?d.class.split(" "):[];for(h=0;h<p.length;h++)p[h]&&(f[p[h]]=1);p=[];for(h in f)p.push(h);d.class=p.join(" "),t.title&&(d.title=t.title),f=(t.style||"").split(";"),t.align&&(p=t.align,c["margin-left"]="left"==p?0:"auto",c["margin-right"]="right"==p?0:"auto");for(h in c)f.push(h+":"+c[h]);for(t.hidden&&f.push("display:none"),h=f.length-1;0<=h;h--)""===f[h]&&f.splice(h,1);0<f.length&&(d.style=(d.style?d.style+"; ":"")+f.join("; "));for(h in d)l.push(h+'="'+CKEDITOR.tools.htmlEncode(d[h])+'" ');l.push(">",u,"</",s,">"),n.push(l.join("")),(this._||(this._={})).dialog=e,"boolean"==typeof t.isChanged&&(this.isChanged=function(){return t.isChanged}),"function"==typeof t.isChanged&&(this.isChanged=t.isChanged),"function"==typeof t.setValue&&(this.setValue=CKEDITOR.tools.override(this.setValue,function(e){return function(n){e.call(this,t.setValue.call(this,n))}})),"function"==typeof t.getValue&&(this.getValue=CKEDITOR.tools.override(this.getValue,function(e){return function(){return t.getValue.call(this,e.call(this))}})),CKEDITOR.event.implementOn(this),this.registerEvents(t),this.accessKeyUp&&this.accessKeyDown&&t.accessKey&&b(this,e,"CTRL+"+t.accessKey);var m=this;e.on("load",function(){var t=m.getInputElement();if(t){var n=m.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?"cke_dialog_ui_focused":"";t.on("focus",function(){e._.tabBarMode=!1,e._.hasFocus=!0,m.fire("focus"),n&&this.addClass(n)}),t.on("blur",function(){m.fire("blur"),n&&this.removeClass(n)})}}),CKEDITOR.tools.extend(this,t),this.keyboardFocusable&&(this.tabIndex=t.tabIndex||0,this.focusIndex=e._.focusList.push(this)-1,this.on("focus",function(){e._.currentFocusIndex=m.focusIndex}))}},hbox:function(e,t,n,i,o){if(!(4>arguments.length)){this._||(this._={});var a,r=this._.children=t,s=o&&o.widths||null,c=o&&o.height||null,d={role:"presentation"};o&&o.align&&(d.align=o.align),CKEDITOR.ui.dialog.uiElement.call(this,e,o||{type:"hbox"},i,"table",{},d,function(){var e=['<tbody><tr class="cke_dialog_ui_hbox">'];for(a=0;a<n.length;a++){var t="cke_dialog_ui_hbox_child",i=[];
10===a&&(t="cke_dialog_ui_hbox_first"),a==n.length-1&&(t="cke_dialog_ui_hbox_last"),e.push('<td class="',t,'" role="presentation" '),s?s[a]&&i.push("width:"+l(s[a])):i.push("width:"+Math.floor(100/n.length)+"%"),c&&i.push("height:"+l(c)),o&&void 0!=o.padding&&i.push("padding:"+l(o.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&r[a].align&&i.push("text-align:"+r[a].align),0<i.length&&e.push('style="'+i.join("; ")+'" '),e.push(">",n[a],"</td>")}return e.push("</tr></tbody>"),e.join("")})}},vbox:function(e,t,n,i,o){if(!(3>arguments.length)){this._||(this._={});var a=this._.children=t,r=o&&o.width||null,s=o&&o.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,e,o||{type:"vbox"},i,"div",null,{role:"presentation"},function(){var t=['<table role="presentation" cellspacing="0" border="0" '];t.push('style="'),o&&o.expand&&t.push("height:100%;"),t.push("width:"+l(r||"100%"),";"),CKEDITOR.env.webkit&&t.push("float:none;"),t.push('"'),t.push('align="',CKEDITOR.tools.htmlEncode(o&&o.align||("ltr"==e.getParentEditor().lang.dir?"left":"right")),'" '),t.push("><tbody>");for(var i=0;i<n.length;i++){var c=[];t.push('<tr><td role="presentation" '),r&&c.push("width:"+l(r||"100%")),s?c.push("height:"+l(s[i])):o&&o.expand&&c.push("height:"+Math.floor(100/n.length)+"%"),o&&void 0!=o.padding&&c.push("padding:"+l(o.padding)),CKEDITOR.env.ie&&CKEDITOR.env.quirks&&a[i].align&&c.push("text-align:"+a[i].align),0<c.length&&t.push('style="',c.join("; "),'" '),t.push(' class="cke_dialog_ui_vbox_child">',n[i],"</td></tr>")}return t.push("</tbody></table>"),t.join("")})}}},CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(e,t){return this.getInputElement().setValue(e),!t&&this.fire("change",{value:e}),this},getValue:function(){return this.getInputElement().getValue()},isChanged:function(){return!1},selectParentTab:function(){for(var e=this.getInputElement();(e=e.getParent())&&-1==e.$.className.search("cke_dialog_page_contents"););return e?(e=e.getAttribute("name"),this._.dialog._.currentTabId!=e&&this._.dialog.selectPage(e),this):this},focus:function(){return this.selectParentTab().getInputElement().focus(),this},registerEvents:function(e){var t,n,i=/^on([A-Z]\w+)/,o=function(e,t,n,i){t.on("load",function(){e.getInputElement().on(n,i,e)})};for(n in e)(t=n.match(i))&&(this.eventProcessors[n]?this.eventProcessors[n].call(this,this._.dialog,e[n]):o(this,this._.dialog,t[1].toLowerCase(),e[n]));return this},eventProcessors:{onLoad:function(e,t){e.on("load",t,this)},onShow:function(e,t){e.on("show",t,this)},onHide:function(e,t){e.on("hide",t,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var e=this.getElement();this.getInputElement().setAttribute("disabled","true"),e.addClass("cke_disabled")},enable:function(){var e=this.getElement();this.getInputElement().removeAttribute("disabled"),e.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!(!this.isEnabled()||!this.isVisible())}},CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(e){return 1>arguments.length?this._.children.concat():(e.splice||(e=[e]),2>e.length?this._.children[e[0]]:this._.children[e[0]]&&this._.children[e[0]].getChild?this._.children[e[0]].getChild(e.slice(1,e.length)):null)}},!0),CKEDITOR.ui.dialog.vbox.prototype=new CKEDITOR.ui.dialog.hbox,function(){var e={build:function(e,t,n){for(var i,o=t.children,a=[],r=[],s=0;s<o.length&&(i=o[s]);s++){var l=[];a.push(l),r.push(CKEDITOR.dialog._.uiElementBuilders[i.type].build(e,i,l))}return new CKEDITOR.ui.dialog[t.type](e,r,a,n,t)}};CKEDITOR.dialog.addUIElement("hbox",e),CKEDITOR.dialog.addUIElement("vbox",e)}(),CKEDITOR.dialogCommand=function(e,t){this.dialogName=e,CKEDITOR.tools.extend(this,t,!0)},CKEDITOR.dialogCommand.prototype={exec:function(e){e.openDialog(this.dialogName)},canUndo:!1,editorFocus:1},function(){var e=/^([a]|[^a])+$/,t=/^\d*$/,n=/^\d*(?:\.\d+)?$/,i=/^(((\d*(\.\d+))|(\d*))(px|\%)?)?$/,o=/^(((\d*(\.\d+))|(\d*))(px|em|ex|in|cm|mm|pt|pc|\%)?)?$/i,a=/^(\s*[\w-]+\s*:\s*[^:;]+(?:;|$))*$/;CKEDITOR.VALIDATE_OR=1,CKEDITOR.VALIDATE_AND=2,CKEDITOR.dialog.validate={functions:function(){var e=arguments;return function(){var t,n=this&&this.getValue?this.getValue():e[0],i=void 0,o=CKEDITOR.VALIDATE_AND,a=[];for(t=0;t<e.length&&"function"==typeof e[t];t++)a.push(e[t]);t<e.length&&"string"==typeof e[t]&&(i=e[t],t++),t<e.length&&"number"==typeof e[t]&&(o=e[t]);var r=o==CKEDITOR.VALIDATE_AND;for(t=0;t<a.length;t++)r=o==CKEDITOR.VALIDATE_AND?r&&a[t](n):r||a[t](n);return!!r||i}},regex:function(e,t){return function(n){return n=this&&this.getValue?this.getValue():n,!!e.test(n)||t}},notEmpty:function(t){return this.regex(e,t)},integer:function(e){return this.regex(t,e)},number:function(e){return this.regex(n,e)},cssLength:function(e){return this.functions(function(e){return o.test(CKEDITOR.tools.trim(e))},e)},htmlLength:function(e){return this.functions(function(e){return i.test(CKEDITOR.tools.trim(e))},e)},inlineStyle:function(e){return this.functions(function(e){return a.test(CKEDITOR.tools.trim(e))},e)},equals:function(e,t){return this.functions(function(t){return t==e},t)},notEqual:function(e,t){return this.functions(function(t){return t!=e},t)}},CKEDITOR.on("instanceDestroyed",function(e){if(CKEDITOR.tools.isEmpty(CKEDITOR.instances)){for(var t;t=CKEDITOR.dialog._.currentTop;)t.hide();for(var n in E)E[n].remove();E={}}var i;e=e.editor._.storedDialogs;for(i in e)e[i].destroy()})}(),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{openDialog:function(e,t){var n=null,i=CKEDITOR.dialog._.dialogDefinitions[e];if(null===CKEDITOR.dialog._.currentTop&&r(this),"function"==typeof i)n=this._.storedDialogs||(this._.storedDialogs={}),n=n[e]||(n[e]=new CKEDITOR.dialog(this,e)),t&&t.call(n,n),n.show();else{if("failed"==i)throw s(this),Error('[CKEDITOR.dialog.openDialog] Dialog "'+e+'" failed when loading definition.');"string"==typeof i&&CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(i),function(){"function"!=typeof CKEDITOR.dialog._.dialogDefinitions[e]&&(CKEDITOR.dialog._.dialogDefinitions[e]="failed"),this.openDialog(e,t)},this,0,1)}return CKEDITOR.skin.loadPart("dialog"),n}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(e){e.on("doubleclick",function(t){t.data.dialog&&e.openDialog(t.data.dialog)},null,null,999)}}),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(e){var t=e.addCommand("about",new CKEDITOR.dialogCommand("about"));t.modes={wysiwyg:1,source:1},t.canUndo=!1,t.readOnly=1,e.ui.addButton&&e.ui.addButton("About",{label:e.lang.about.title,command:"about",toolbar:"about"}),CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{ar:1,bg:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,si:1,sk:1,sl:1,sq:1,sr:1,"sr-latn":1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},init:function(e){var t=this;e.addCommand("a11yHelp",{exec:function(){var n=e.langCode;n=t.availableLangs[n]?n:t.availableLangs[n.replace(/-.*/,"")]?n.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(t.path+"dialogs/lang/"+n+".js"),function(){e.lang.a11yhelp=t.langEntries[n],e.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:!1}),e.setKeystroke(CKEDITOR.ALT+48,"a11yHelp"),CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js"),e.on("ariaEditorHelpLabel",function(t){t.data.label=e.lang.common.editorHelp})}}),function(){function e(e){var t=this.att;void 0!==(e=e&&e.hasAttribute(t)&&e.getAttribute(t)||"")&&this.setValue(e)}function t(){for(var e,t=0;t<arguments.length;t++)if(arguments[t]instanceof CKEDITOR.dom.element){e=arguments[t];break}if(e){t=this.att;var n=this.getValue();n?e.setAttribute(t,n):e.removeAttribute(t,n)}}var n={id:1,dir:1,classes:1,styles:1};CKEDITOR.plugins.add("dialogadvtab",{requires:"dialog",allowedContent:function(e){e||(e=n);var t=[];
1e.id&&t.push("id"),e.dir&&t.push("dir");var i="";return t.length&&(i+="["+t.join(",")+"]"),e.classes&&(i+="(*)"),e.styles&&(i+="{*}"),i},createAdvancedTab:function(i,o,a){o||(o=n);var r=i.lang.common,s={id:"advanced",label:r.advancedTab,title:r.advancedTab,elements:[{type:"vbox",padding:1,children:[]}]},l=[];return(o.id||o.dir)&&(o.id&&l.push({id:"advId",att:"id",type:"text",requiredContent:a?a+"[id]":null,label:r.id,setup:e,commit:t}),o.dir&&l.push({id:"advLangDir",att:"dir",type:"select",requiredContent:a?a+"[dir]":null,label:r.langDir,default:"",style:"width:100%",items:[[r.notSet,""],[r.langDirLTR,"ltr"],[r.langDirRTL,"rtl"]],setup:e,commit:t}),s.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(l)})),(o.styles||o.classes)&&(l=[],o.styles&&l.push({id:"advStyles",att:"style",type:"text",requiredContent:a?a+"{cke-xyz}":null,label:r.styles,default:"",validate:CKEDITOR.dialog.validate.inlineStyle(r.invalidInlineStyle),onChange:function(){},getStyle:function(e,t){var n=this.getValue().match(RegExp("(?:^|;)\\s*"+e+"\\s*:\\s*([^;]*)","i"));return n?n[1]:t},updateStyle:function(e,t){var n=this.getValue(),o=i.document.createElement("span");o.setAttribute("style",n),o.setStyle(e,t),n=CKEDITOR.tools.normalizeCssText(o.getAttribute("style")),this.setValue(n,1)},setup:e,commit:t}),o.classes&&l.push({type:"hbox",widths:["45%","55%"],children:[{id:"advCSSClasses",att:"class",type:"text",requiredContent:a?a+"(cke-xyz)":null,label:r.cssClasses,default:"",setup:e,commit:t}]}),s.elements[0].children.push({type:"hbox",widths:["50%","50%"],children:[].concat(l)})),s}})}(),CKEDITOR.plugins.add("basicstyles",{init:function(e){var t=0,n=function(n,o,a,r){if(r){r=new CKEDITOR.style(r);var s=i[a];s.unshift(r),e.attachStyleStateChange(r,function(t){!e.readOnly&&e.getCommand(a).setState(t)}),e.addCommand(a,new CKEDITOR.styleCommand(r,{contentForms:s})),e.ui.addButton&&e.ui.addButton(n,{label:o,command:a,toolbar:"basicstyles,"+(t+=10)})}},i={bold:["strong","b",["span",function(e){return"bold"==(e=e.styles["font-weight"])||700<=+e}]],italic:["em","i",["span",function(e){return"italic"==e.styles["font-style"]}]],underline:["u",["span",function(e){return"underline"==e.styles["text-decoration"]}]],strike:["s","strike",["span",function(e){return"line-through"==e.styles["text-decoration"]}]],subscript:["sub"],superscript:["sup"]},o=e.config,a=e.lang.basicstyles;n("Bold",a.bold,"bold",o.coreStyles_bold),n("Italic",a.italic,"italic",o.coreStyles_italic),n("Underline",a.underline,"underline",o.coreStyles_underline),n("Strike",a.strike,"strike",o.coreStyles_strike),n("Subscript",a.subscript,"subscript",o.coreStyles_subscript),n("Superscript",a.superscript,"superscript",o.coreStyles_superscript),e.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript={element:"sup"},function(){function e(e,t,n,i){if(!e.isReadOnly()&&!e.equals(n.editable())){CKEDITOR.dom.element.setMarker(i,e,"bidi_processed",1);i=e;for(var o=n.editable();(i=i.getParent())&&!i.equals(o);)if(i.getCustomData("bidi_processed"))return e.removeStyle("direction"),void e.removeAttribute("dir");((i="useComputedState"in n.config?n.config.useComputedState:1)?e.getComputedStyle("direction"):e.getStyle("direction")||e.hasAttribute("dir"))!=t&&(e.removeStyle("direction"),i?(e.removeAttribute("dir"),t!=e.getComputedStyle("direction")&&e.setAttribute("dir",t)):e.setAttribute("dir",t),n.forceNextSelectionCheck())}}function t(e,t,n){var i=e.getCommonAncestor(!1,!0);if((e=e.clone()).enlarge(n==CKEDITOR.ENTER_BR?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS),e.checkBoundaryOfElement(i,CKEDITOR.START)&&e.checkBoundaryOfElement(i,CKEDITOR.END)){for(var o;i&&i.type==CKEDITOR.NODE_ELEMENT&&(o=i.getParent())&&1==o.getChildCount()&&!(i.getName()in t);)i=o;return i.type==CKEDITOR.NODE_ELEMENT&&i.getName()in t&&i}}function n(n){return{context:"p",allowedContent:{"h1 h2 h3 h4 h5 h6 table ul ol blockquote div tr p div li td":{propertiesOnly:!0,attributes:"dir"}},requiredContent:"p[dir]",refresh:function(e,t){var n,i;if(!(i=void 0===(i=e.config.useComputedState)||i)){n=t.lastElement;for(var o=e.editable();n&&!(n.getName()in r||n.equals(o));){var a=n.getParent();if(!a)break;n=a}}(n=n||t.block||t.blockLimit).equals(e.editable())&&(o=e.getSelection().getRanges()[0].getEnclosedNode())&&o.type==CKEDITOR.NODE_ELEMENT&&(n=o),n&&(i=i?n.getComputedStyle("direction"):n.get
1Style("direction")||n.getAttribute("dir"),e.getCommand("bidirtl").setState("rtl"==i?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),e.getCommand("bidiltr").setState("ltr"==i?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)),(i=(t.block||t.blockLimit||e.editable()).getDirection(1))!=(e._.selDir||e.lang.dir)&&(e._.selDir=i,e.fire("contentDirChanged",i))},exec:function(i){var r=i.getSelection(),s=i.config.enterMode;if((u=r.getRanges())&&u.length){for(var l,c={},d=r.createBookmarks(),u=u.createIterator(),h=0;l=u.getNextRange(1);){var f=l.getEnclosedNode();f&&(!f||f.type==CKEDITOR.NODE_ELEMENT&&f.getName()in a)||(f=t(l,o,s)),f&&e(f,n,i,c);var p=new CKEDITOR.dom.walker(l),m=d[h].startNode,g=d[h++].endNode;for(p.evaluator=function(e){return!!(e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in o&&(e.getName()!=(s==CKEDITOR.ENTER_P?"p":"div")||e.getParent().type!=CKEDITOR.NODE_ELEMENT||"blockquote"!=e.getParent().getName())&&e.getPosition(m)&CKEDITOR.POSITION_FOLLOWING&&(e.getPosition(g)&CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_CONTAINS)==CKEDITOR.POSITION_PRECEDING)};f=p.next();)e(f,n,i,c);for((l=l.createIterator()).enlargeBr=s!=CKEDITOR.ENTER_BR;f=l.getNextParagraph(s==CKEDITOR.ENTER_P?"p":"div");)e(f,n,i,c)}CKEDITOR.dom.element.clearAllMarkers(c),i.forceNextSelectionCheck(),r.selectBookmarks(d),i.focus()}}}}function i(e){var t=e==s.setAttribute,n=e==s.removeAttribute,i=/\bdirection\s*:\s*(.*?)\s*(:?$|;)/;return function(o,a){if(!this.isReadOnly()){var r;if(r=o==(t||n?"dir":"direction")||"style"==o&&(n||i.test(a))){e:{for(var s=(r=this).getDocument().getBody().getParent();r;){if(r.equals(s)){r=!1;break e}r=r.getParent()}r=!0}r=!r}if(r&&(r=this.getDirection(1),s=e.apply(this,arguments),r!=this.getDirection(1)))return this.getDocument().fire("dirChanged",this),s}return e.apply(this,arguments)}}var o={table:1,ul:1,ol:1,blockquote:1,div:1},a={},r={};CKEDITOR.tools.extend(a,o,{tr:1,p:1,div:1,li:1}),CKEDITOR.tools.extend(r,a,{td:1}),CKEDITOR.plugins.add("bidi",{init:function(e){function t(t,n,i,o,a){e.addCommand(i,new CKEDITOR.command(e,o)),e.ui.addButton&&e.ui.addButton(t,{label:n,command:i,toolbar:"bidi,"+a})}if(!e.blockless){var i=e.lang.bidi;t("BidiLtr",i.ltr,"bidiltr",n("ltr"),10),t("BidiRtl",i.rtl,"bidirtl",n("rtl"),20),e.on("contentDom",function(){e.document.on("dirChanged",function(t){e.fire("dirChanged",{node:t.data,dir:t.data.getDirection(1)})})}),e.on("contentDirChanged",function(t){t=(e.lang.dir!=t.data?"add":"remove")+"Class";var n=e.ui.space(e.config.toolbarLocation);n&&n[t]("cke_mixed_dir_content")})}}});for(var s=CKEDITOR.dom.element.prototype,l=["setStyle","removeStyle","setAttribute","removeAttribute"],c=0;c<l.length;c++)s[l[c]]=CKEDITOR.tools.override(s[l[c]],i)}(),function(){var e={exec:function(e){var t=e.getCommand("blockquote").state,n=e.getSelection(),i=n&&n.getRanges()[0];if(i){var o=n.createBookmarks();if(CKEDITOR.env.ie){var a,r=o[0].startNode,s=o[0].endNode;if(r&&"blockquote"==r.getParent().getName())for(a=r;a=a.getNext();)if(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()){r.move(a,!0);break}if(s&&"blockquote"==s.getParent().getName())for(a=s;a=a.getPrevious();)if(a.type==CKEDITOR.NODE_ELEMENT&&a.isBlockBoundary()){s.move(a);break}}if((l=i.createIterator()).enlargeBr=e.config.enterMode!=CKEDITOR.ENTER_BR,t==CKEDITOR.TRISTATE_OFF){for(r=[];t=l.getNextParagraph();)r.push(t);for(1>r.length&&(t=e.document.createElement(e.config.enterMode==CKEDITOR.ENTER_P?"p":"div"),s=o.shift(),i.insertNode(t),t.append(new CKEDITOR.dom.text("\ufeff",e.document)),i.moveToBookmark(s),i.selectNodeContents(t),i.collapse(!0),s=i.createBookmark(),r.push(t),o.unshift(s)),a=r[0].getParent(),i=[],s=0;s<r.length;s++)t=r[s],a=a.getCommonAncestor(t.getParent());for(t={table:1,tbody:1,tr:1,ol:1,ul:1};t[a.getName()];)a=a.getParent();for(s=null;0<r.length;){for(t=r.shift();!t.getParent().equals(a);)t=t.getParent();t.equals(s)||i.push(t),s=t}for(;0<i.length;)if("blockquote"==(t=i.shift()).getName()){for(s=new CKEDITOR.dom.documentFragment(e.document);t.getFirst();)s.append(t.getFirst().remove()),r.push(s.getLast());s.replace(t)}else r.push(t);for((i=e.document.createElement("blockquote")).insertBefore(r[0]);0<r.length;)t=r.shift(),i.append(t)}else if(t==CKEDITOR.TRISTATE_ON){for(s=[],a={};t=l.getNextParagraph();){for(r=i=null;t.getParent();){if("blockquote"==t.getParent().getName()){i=t.getParent(),r=t;break}t=t.getParent()}i&&r&&!r.getCustomData("blockquote_moveout")&&(s.push(r),CKEDITOR.dom.element.setMarker(a,r,"blockquote_moveout",!0))}for(CKEDITOR.dom.element.clearAllMarkers(a),t=[],r=[],a={};0<s.length;)l=s.shift(),i=l.getParent(),l.getPrevious()?l.getNext()?(l.breakParent(l.getParent()),r.push(l.getNext())):l.remove().insertAfter(i):l.remove().insertBefore(i),i.getCustomData("blockquote_processed")||(r.push(i),CKEDITOR.dom.element.setMarker(a,i,"blockquote_processed",!0)),t.push(l);for(CKEDITOR.dom.element.clearAllMarkers(a),s=r.length-1;0<=s;s--){e:{for(var l=0,c=(a=i=r[s]).getChildCount(),d=void 0;l<c&&(d=a.getChild(l));l++)if(d.type==CKEDITOR.NODE_ELEMENT&&d.isBlockBoundary()){a=!1;break e}a=!0}a&&i.remove()}if(e.config.enterMode==CKEDITOR.ENTER_BR)for(i=!0;t.length;)if("div"==(l=t.shift()).getName()){for(s=new CKEDITOR.dom.documentFragment(e.document),i&&l.getPrevious()&&(l.getPrevious().type!=CKEDITOR.NODE_ELEMENT||!l.getPrevious().isBlockBoundary())&&s.append(e.document.createElement("br")),i=l.getNext()&&!(l.getNext().type==CKEDITOR.NODE_ELEMENT&&l.getNext().isBlockBoundary());l.getFirst();)l.getFirst().remove().appendTo(s);i&&s.append(e.document.createElement("br")),s.replace(l),i=!1}}n.selectBookmarks(o),e.focus()}},refresh:function(e,t){this.setState(e.elementPath(t.block||t.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(t){t.blockless||(t.addCommand("blockquote",e),t.ui.addButton&&t.ui.addButton("Blockquote",{label:t.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"}))}})}(),function(){function e(e){function t(){var t=e.editable();t.on(m,function(e){(!CKEDITOR.env.ie||!h)&&c(e)}),CKEDITOR.env.ie&&t.on("paste",function(t){f||(i(),t.data.preventDefault(),c(t),a("paste")||e.openDialog("paste"))}),CKEDITOR.env.ie&&(t.on("contextmenu",o,null,null,0),t.on("beforepaste",function(e){e.data&&!e.data.$.ctrlKey&&!e.data.$.shiftKey&&o()},null,null,0)),t.on("beforecut",function(){!h&&s()});var n;t.attachListener(CKEDITOR.env.ie?t:e.document.getDocumentElement(),"mouseup",function(){n=setTimeout(function(){d()},0)}),e.on("destroy",function(){clearTimeout(n)}),t.on("keyup",d)}function n(t){return{type:t,canUndo:"cut"==t,startDisabled:!0,exec:function(){"cut"==this.type&&s();var t,n=this.type;if(CKEDITOR.env.ie)t=a(n);else try{t=e.document.$.execCommand(n,!1,null)}catch(e){t=!1}return t||alert(e.lang.clipboard[this.type+"Error"]),t}}}function i(){f=1,setTimeout(function(){f=0},100)}function o(){h=1,setTimeout(function(){h=0},10)}function a(t){var n=e.document,i=n.getBody(),o=!1,a=function(){o=!0};return i.on(t,a),(7<CKEDITOR.env.version?n.$:n.$.selection.createRange()).execCommand(t),i.removeListener(t,a),o}function r(t,n,i){return t={type:t},!(i&&!1===e.fire("beforePaste",t)||!n)&&(t.dataValue=n,e.fire("paste",t))}function s(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var t,n,i,o=e.getSelection();o.getType()==CKEDITOR.SELECTION_ELEMENT&&(t=o.getSelectedElement())&&(n=o.getRanges()[0],(i=e.document.createText("")).insertBefore(t),n.setStartBefore(i),n.setEndAfter(t),o.selectRanges([n]),setTimeout(function(){t.getParent()&&
1(i.remove(),o.selectElement(t))},0))}}function l(t){if("wysiwyg"==e.mode)switch(t.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:t=e.editable(),i(),!CKEDITOR.env.ie&&t.fire("beforepaste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:e.fire("saveSnapshot"),setTimeout(function(){e.fire("saveSnapshot")},50)}}function c(t){var n={type:"auto"},i=e.fire("beforePaste",n);!function(t,n){var i,o=e.document,a=e.editable(),r=function(e){e.cancel()};if(!o.getById("cke_pastebin")){var s=e.getSelection(),l=s.createBookmarks();CKEDITOR.env.ie&&s.root.fire("selectionchange");var c=new CKEDITOR.dom.element(!CKEDITOR.env.webkit&&!a.is("body")||CKEDITOR.env.ie?"div":"body",o);c.setAttributes({id:"cke_pastebin","data-cke-temp":"1"});var d=0;o=o.getWindow(),CKEDITOR.env.webkit?(a.append(c),c.addClass("cke_editable"),a.is("body")||(d="static"!=a.getComputedStyle("position")?a:CKEDITOR.dom.element.get(a.$.offsetParent),d=d.getDocumentPosition().y)):a.getAscendant(CKEDITOR.env.ie?"body":"html",1).append(c),c.setStyles({position:"absolute",top:o.getScrollPosition().y-d+10+"px",width:"1px",height:Math.max(1,o.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0}),(d=c.getParent().isReadOnly())?(c.setOpacity(0),c.setAttribute("contenteditable",!0)):c.setStyle("ltr"==e.config.contentsLangDirection?"left":"right","-1000px"),e.on("selectionChange",r,null,null,0),(CKEDITOR.env.webkit||CKEDITOR.env.gecko)&&(i=a.once("blur",r,null,null,-100)),d&&c.focus(),(d=new CKEDITOR.dom.range(c)).selectNodeContents(c);var u=d.select();CKEDITOR.env.ie&&(i=a.once("blur",function(){e.lockSelection(u)}));var h=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=h),i&&i.removeListener(),CKEDITOR.env.ie&&a.focus(),s.selectBookmarks(l),c.remove();var t;CKEDITOR.env.webkit&&(t=c.getFirst())&&t.is&&t.hasClass("Apple-style-span")&&(c=t),e.removeListener("selectionChange",r),n(c.getHtml())},0)}}(0,function(e){e=e.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/gi,""),i&&r(n.type,e,0)})}function d(){if("wysiwyg"==e.mode){var t=u("paste");e.getCommand("cut").setState(u("cut")),e.getCommand("copy").setState(u("copy")),e.getCommand("paste").setState(t),e.fire("pasteState",t)}}function u(t){if(p&&t in{paste:1,cut:1})return CKEDITOR.TRISTATE_DISABLED;if("paste"==t)return CKEDITOR.TRISTATE_OFF;var n=(t=e.getSelection()).getRanges();return t.getType()==CKEDITOR.SELECTION_NONE||1==n.length&&n[0].collapsed?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_OFF}var h=0,f=0,p=0,m=CKEDITOR.env.ie?"beforepaste":"paste";e.on("key",l),e.on("contentDom",t),e.on("selectionChange",function(e){p=e.data.selection.getRanges()[0].checkReadOnly(),d()}),e.contextMenu&&e.contextMenu.addListener(function(e,t){return p=t.getRanges()[0].checkReadOnly(),{cut:u("cut"),copy:u("copy"),paste:u("paste")}}),function(){function t(t,n,i,o,a){var r=e.lang.clipboard[n];e.addCommand(n,i),e.ui.addButton&&e.ui.addButton(t,{label:r,command:n,toolbar:"clipboard,"+o}),e.addMenuItems&&e.addMenuItem(n,{label:r,command:n,group:"clipboard",order:a})}t("Cut","cut",n("cut"),10,1),t("Copy","copy",n("copy"),20,4),t("Paste","paste",{canUndo:!1,async:!0,exec:function(e,t){var n=function(t,n){t&&r(t.type,t.dataValue,!!n),e.fire("afterCommandExec",{name:"paste",command:i,returnValue:!!t})},i=this;"string"==typeof t?n({type:"auto",dataValue:t},1):e.getClipboardData(n)}},30,8)}(),e.getClipboardData=function(t,n){function o(e){e.removeListener(),e.cancel(),n(e.data)}function r(e){e.removeListener(),e.cancel(),c=!0,n({type:l,dataValue:e.data})}var s=!1,l="auto",c=!1;n||(n=t,t=null),e.on("paste",o,null,null,0),e.on("beforePaste",function(e){e.removeListener(),s=!0,l=e.data.type},null,null,1e3),!1===function(){if(CKEDITOR.env.ie){e.focus(),i();var t=e.focusManager;if(t.lock(),e.editable().fire(m)&&!a("paste"))return t.unlock(),!1;t.unlock()}else try{if(e.editable().fire(m)&&!e.document.$.execCommand("Paste",!1,null))throw 0}catch(e){return!1}return!0}()&&(e.removeListener("paste",o),s&&e.fire("pasteDialog",function(){this.customTitle=t&&t.title})?(e.on("pasteDialogCommit",r),e.on("dialogHide",function(e){e.removeListener(),e.data.removeListener("pasteDialogCommit",r),setTimeout(function(){c||n(null)},10)})):n(null))}}function t(e,t){return e.enterMode==CKEDITOR.ENTER_BR?t=t.replace(/(<\/p><p>)+/g,function(e){return CKEDITOR.tools.repeat("<br>",e.length/7*2)}).replace(/<\/?p>/g,""):e.enterMode==CKEDITOR.ENTER_DIV&&(t=t.replace(/<(\/)?p>/g,"<$1div>")),t}CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(n){var i;e(n),CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js")),n.on("paste",function(e){var t=e.data.dataValue,n=CKEDITOR.dtd.$block;if(-1<t.indexOf("Apple-")&&(t=t.replace(/<span class="Apple-converted-s
1pace"> <\/span>/gi," "),"html"!=e.data.type&&(t=t.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(e,t){return t.replace(/\t/g," ")})),-1<t.indexOf('<br class="Apple-interchange-newline">')&&(e.data.startsWithEOL=1,e.data.preSniffing="html",t=t.replace(/<br class="Apple-interchange-newline">/,"")),t=t.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1")),t.match(/^<[^<]+cke_(editable|contents)/i)){var i,o,a=new CKEDITOR.dom.element("div");for(a.setHtml(t);1==a.getChildCount()&&(i=a.getFirst())&&i.type==CKEDITOR.NODE_ELEMENT&&(i.hasClass("cke_editable")||i.hasClass("cke_contents"));)a=o=i;o&&(t=o.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?t=t.replace(/^ (?: |\r\n)?<(\w+)/g,function(t,i){return i.toLowerCase()in n?(e.data.preSniffing="html","<"+i):t}):CKEDITOR.env.webkit?t=t.replace(/<\/(\w+)><div><br><\/div>$/,function(t,i){return i in n?(e.data.endsWithEOL=1,"</"+i+">"):t}):CKEDITOR.env.gecko&&(t=t.replace(/(\s)<br>$/,"$1")),e.data.dataValue=t},null,null,3),n.on("paste",function(e){var o,a=(e=e.data).type,r=e.dataValue,s=n.config.clipboard_defaultContentType||"html";"htmlifiedtext"==(o="html"==a||"html"==e.preSniffing?"html":function(e){if(CKEDITOR.env.webkit){if(!e.match(/^[^<]*$/g)&&!e.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!e.match(/^([^<]|<br( ?\/)?>)*$/gi)&&!e.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else{if(!CKEDITOR.env.gecko)return"html";if(!e.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}return"htmlifiedtext"}(r))?r=function(e,n){function i(e){return CKEDITOR.tools.repeat("</p><p>",~~(e/2))+(1==e%2?"<br>":"")}return n=n.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>"),(n=n.replace(/<\/?[A-Z]+>/g,function(e){return e.toLowerCase()})).match(/^[^<]$/)?n:(CKEDITOR.env.webkit&&-1<n.indexOf("<div>")&&((n=n.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>")).match(/<div>(<br>|)<\/div>/)&&(n="<p>"+n.replace(/(<div>(<br>|)<\/div>)+/g,function(e){return i(e.split("</div><div>").length+1)})+"</p>"),n=n.replace(/<\/div><div>/g,"<br>"),n=n.replace(/<\/?div>/g,"")),CKEDITOR.env.gecko&&e.enterMode!=CKEDITOR.ENTER_BR&&(CKEDITOR.env.gecko&&(n=n.replace(/^<br><br>$/,"<br>")),-1<n.indexOf("<br><br>")&&(n="<p>"+n.replace(/(<br>){2,}/g,function(e){return i(e.length/4)})+"</p>")),t(e,n))}(n.config,r):"text"==a&&"html"==o&&(r=function(e,n,i){n=new CKEDITOR.htmlParser.fragment.fromHtml(n);var o=new CKEDITOR.htmlParser.basicWriter;n.writeHtml(o,i);var a=0;return t(e,n=(n=(n=o.getHtml()).replace(/\s*(<\/?[a-z:]+ ?\/?>)\s*/g,"$1").replace(/(<cke:br \/>){2,}/g,"<cke:br />").replace(/(<cke:br \/>)(<\/?p>|<br \/>)/g,"$2").replace(/(<\/?p>|<br \/>)(<cke:br \/>)/g,"$1").replace(/<(cke:)?br( \/)?>/g,"<br>").replace(/<p><\/p>/g,"")).replace(/<\/?p>/g,function(e){if("<p>"==e){if(1<++a)return"</p><p>"}else if(0<--a)return"</p><p>";return e}).replace(/<p><\/p>/g,""))}(n.config,r,i||(i=function(){var e=new CKEDITOR.htmlParser.filter,t={blockquote:1,dl:1,fieldset:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ol:1,p:1,table:1,ul:1},n=CKEDITOR.tools.extend({br:0},CKEDITOR.dtd.$inline),i={p:1,br:1,"cke:br":1},o=CKEDITOR.dtd,a=CKEDITOR.tools.extend({area:1,basefont:1,embed:1,iframe:1,map:1,object:1,param:1},CKEDITOR.dtd.$nonBodyContent,CKEDITOR.dtd.$cdata),r=function(e){delete e.name,e.add(new CKEDITOR.htmlParser.text(" "))},s=function(e){for(var t,n=e;(n=n.next)&&n.name&&n.name.match(/^h\d$/);)for((t=new CKEDITOR.htmlParser.element("cke:br")).isEmpty=!0,e.add(t);t=n.children.shift();)e.add(t)};return e.addRules({elements:{h1:s,h2:s,h3:s,h4:s,h5:s,h6:s,img:function(e){var t=" ";return(e=CKEDITOR.tools.trim(e.attributes.alt||""))&&!e.match(/(^http|\.(jpe?g|gif|png))/i)&&(t=" ["+e+"] "),new CKEDITOR.htmlParser.text(t)},td:r,th:r,$:function(e){var r,s=e.name;if(a[s])return!1;if(e.attributes={},"br"==s)return e;if(t[s])e.name="p";else if(n[s])delete e.name;else if(o[s]){if(r=new CKEDITOR.htmlParser.element("cke:br"),r.isEmpty=!0,CKEDITOR.dtd.$empty[s])return r;e.add(r,0),(r=r.clone()).isEmpty=!0,e.add(r),delete e.name}return i[e.name]||delete e.name,e}}},{applyToAll:!0}),e}()))),e.startsWithEOL&&(r='<br data-cke-eol="1">'+r),e.endsWithEOL&&(r+='<br data-cke-eol="1">'),"auto"==a&&(a="html"==o||"html"==s?"html":"text"),e.type=a,e.dataValue=r,delete e.preSniffing,delete e.startsWithEOL,delete e.endsWithEOL},null,null,6),n.on("paste",function(e){e=e.data,n.insertHtml(e.dataValue,e.type),setTimeout(function(){n.fire("afterPaste")},0)},null,null,1e3),n.on("pasteDialog",function(e){setTimeout(function(){n.openDialog("paste",e.data)},0)})}})}(),function(){var e='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":" href=\"javascript:void('{titleJs}')\"")+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="{hasArrow}" aria-disabled="{ariaDisabled}"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');e=(e=e+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);
1" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"')+'> </span><span id="{id}_label" class="cke_button_label cke_button__{name}_label" aria-hidden="false">{label}</span>{arrowHtml}</a>';var t=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"▼":"")+"</span>"),n=CKEDITOR.addTemplate("button",e);CKEDITOR.plugins.add("button",{beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}}),CKEDITOR.UI_BUTTON="button",CKEDITOR.ui.button=function(e){CKEDITOR.tools.extend(this,e,{title:e.label,click:e.click||function(t){t.execCommand(e.command)}}),this._={}},CKEDITOR.ui.button.handler={create:function(e){return new CKEDITOR.ui.button(e)}},CKEDITOR.ui.button.prototype={render:function(e,i){var o,a=CKEDITOR.env,r=this._.id=CKEDITOR.tools.getNextId(),s="",l=this.command;this._.editor=e;var c={id:r,button:this,editor:e,focus:function(){CKEDITOR.document.getById(r).focus()},execute:function(){this.button.click(e)},attach:function(e){this.button.attach(e)}},d=CKEDITOR.tools.addFunction(function(e){if(c.onkey)return e=new CKEDITOR.dom.event(e),!1!==c.onkey(c,e.getKeystroke())}),u=CKEDITOR.tools.addFunction(function(e){var t;return c.onfocus&&(t=!1!==c.onfocus(c,new CKEDITOR.dom.event(e))),t}),h=0;if(c.clickFn=o=CKEDITOR.tools.addFunction(function(){h&&(e.unlockSelection(1),h=0),c.execute()}),this.modes){var f={},p=function(){var t=e.mode;t&&(t=this.modes[t]?void 0!=f[t]?f[t]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,t=e.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:t,this.setState(t),this.refresh&&this.refresh())};e.on("beforeModeUnload",function(){e.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED&&(f[e.mode]=this._.state)},this),e.on("activeFilterChange",p,this),e.on("mode",p,this),!this.readOnly&&e.on("readOnly",p,this)}else l&&(l=e.getCommand(l))&&(l.on("state",function(){this.setState(l.state)},this),s+=l.state==CKEDITOR.TRISTATE_ON?"on":l.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off");this.directional&&e.on("contentDirChanged",function(t){var n=CKEDITOR.document.getById(this._.id),i=n.getFirst();(t=t.data)!=e.lang.dir?n.addClass("cke_"+t):n.removeClass("cke_ltr").removeClass("cke_rtl"),i.setAttribute("style",CKEDITOR.skin.getIconStyle(m,"rtl"==t,this.icon,this.iconOffset))},this),l||(s+="off");var m=p=this.name||this.command;return this.icon&&!/\./.test(this.icon)&&(m=this.icon,this.icon=null),a={id:r,name:p,iconName:m,label:this.label,cls:this.className||"",state:s,ariaDisabled:"disabled"==s?"true":"false",title:this.title,titleJs:a.gecko&&!a.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:d,focusFn:u,clickFn:o,style:CKEDITOR.skin.getIconStyle(m,"rtl"==e.lang.dir,this.icon,this.iconOffset),arrowHtml:this.hasArrow?t.output():""},n.output(a,i),this.onRender&&this.onRender(),c},setState:function(e){if(this._.state==e)return!1;this._.state=e;var t=CKEDITOR.document.getById(this._.id);return!!t&&(t.setState(e,"cke_button"),e==CKEDITOR.TRISTATE_DISABLED?t.setAttribute("aria-disabled",!0):t.removeAttribute("aria-disabled"),this.hasArrow?(e=e==CKEDITOR.TRISTATE_ON?this._.editor.lang.button.selectedLabel.replace(/%1/g,this.label):this.label,CKEDITOR.document.getById(this._.id+"_label").setText(e)):e==CKEDITOR.TRISTATE_ON?t.setAttribute("aria-pressed",!0):t.removeAttribute("aria-pressed"),!0)},getState:function(){return this._.state},toFeature:function(e){if(this._.feature)return this._.feature;var t=this;return!this.allowedContent&&!this.requiredContent&&this.command&&(t=e.getCommand(this.command)||t),this._.feature=t}},CKEDITOR.ui.prototype.addButton=function(e,t){this.add(e,CKEDITOR.UI_BUTTON,t)}}(),CKEDITOR.plugins.add("panelbutton",{requires:"button",onLoad:function(){function e(e){var t=this._;t.state!=CKEDITOR.TRISTATE_DISABLED&&(this.createPanel(e),t.on?t.panel.hide():t.panel.showBlock(this._.id,this.document.getById(this._.id),4))}CKEDITOR.ui.panelButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(t){var n=t.panel||{};delete t.panel,this.base(t),this.document=n.parent&&n.parent.getDocument()||CKEDITOR.document,n.block={attributes:n.attributes},this.hasArrow=n.toolbarRelated=!0,this.click=e,this._={panelDefinition:n}},statics:{handler:{create:function(e){return new CKEDITOR.ui.panelButton(e)}}},proto:{createPanel:function(e){var t=this._;if(!t.panel){var n=this._.panelDefinition,i=this._.panelDefinition.block,o=n.parent||CKEDITOR.document.getBody(),a=this._.panel=new CKEDITOR.ui.floatPanel(e,o,n),r=(n=a.addBlock(t.id,i),this);a.onShow=function(){r.className&&this.element.addClass(r.className+"_panel"),r.setState(CKEDITOR.TRISTATE_ON),t.on=1,r.editorFocus&&e.focus(),r.onOpen&&r.onOpen()},a.onHide=function(n){r.className&&this.element.getFirst().removeClass(r.className+"_panel"),r.setState(r.modes&&r.modes[e.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),t.on=0,!n&&r.onClose&&r.onClose()},a.onEscape=function(){a.hide(1),r.document.getById(t.id).focus()},this.onBlock&&this.onBlock(a,n),n.onHide=function(){t.on=0,r.setState(CKEDITOR.TRISTATE_OFF)}}}}})},beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_PANELBUTTON,CKEDITOR.ui.panelButton.handler)}}),CKEDITOR.UI_PANELBUTTON="panelbutton",function(){CKEDITOR.plugins.add("panel",{beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}}),CKEDITOR.UI_PANEL="panel",CKEDITOR.ui.panel=function(e,t){t&&CKEDITOR.tools.extend(this,t),CKEDITOR.tools.extend(this,{className:"",css:[]}),this.id=CKEDITOR.tools.getNextId(),this.document=e,this.isFramed=this.forceIFrame||this.css.length,this._={blocks:{}}},CKEDITOR.ui.panel.handler={create:function(e){return new CKEDITOR.ui.panel(e)}};var e=CKEDITOR.addTemplate("panel",'<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),t=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="presentation" frameborder="0" src="{src}"></iframe>'),n=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>');CKEDITOR.ui.panel.prototype={render:function(i,o){this.getHolderElement=function(){if(!(t=this._.holder)){if(this.isFramed){var e=(t=this.document.getById(this.id+"_frame")).getParent(),t=t.getFrameDocument();CKEDITOR.env.iOS&&e.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"}),e=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=!0,this.onLoad&&this.onLoad()},this)),t.write(n.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css),onload:"window.parent.CKEDITOR.tools.callFunction("+e+");"}
1,a))),t.getWindow().$.CKEDITOR=CKEDITOR,t.on("keydown",function(e){var t=e.data.getKeystroke(),n=this.document.getById(this.id).getAttribute("dir");this._.onKeyDown&&!1===this._.onKeyDown(t)?e.data.preventDefault():(27==t||t==("rtl"==n?39:37))&&this.onEscape&&!1===this.onEscape(t)&&e.data.preventDefault()},this),(t=t.getBody()).unselectable(),CKEDITOR.env.air&&CKEDITOR.tools.callFunction(e)}else t=this.document.getById(this.id);this._.holder=t}return t};var a={editorId:i.id,id:this.id,langCode:i.langCode,dir:i.lang.dir,cls:this.className,frame:"",env:CKEDITOR.env.cssClass,"z-index":i.config.baseFloatZIndex+1};if(this.isFramed){var r=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent("document.open();("+CKEDITOR.tools.fixDomain+")();document.close();")+"}())":"";a.frame=t.output({id:this.id+"_frame",src:r})}return r=e.output(a),o&&o.push(r),r},addBlock:function(e,t){return t=this._.blocks[e]=t instanceof CKEDITOR.ui.panel.block?t:new CKEDITOR.ui.panel.block(this.getHolderElement(),t),this._.currentBlock||this.showBlock(e),t},getBlock:function(e){return this._.blocks[e]},showBlock:function(e){e=this._.blocks[e];var t=this._.currentBlock,n=!this.forceIFrame||CKEDITOR.env.ie?this._.holder:this.document.getById(this.id+"_frame");return t&&t.hide(),this._.currentBlock=e,CKEDITOR.fire("ariaWidget",n),e._.focusIndex=-1,this._.onKeyDown=e.onKeyDown&&CKEDITOR.tools.bind(e.onKeyDown,e),e.show(),e},destroy:function(){this.element&&this.element.remove()}},CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(e,t){this.element=e.append(e.getDocument().createElement("div",{attributes:{tabindex:-1,class:"cke_panel_block"},styles:{display:"none"}})),t&&CKEDITOR.tools.extend(this,t),this.element.setAttributes({role:this.attributes.role||"presentation","aria-label":this.attributes["aria-label"],title:this.attributes.title||this.attributes["aria-label"]}),this.keys={},this._.focusIndex=-1,this.element.disableContextMenu()},_:{markItem:function(e){-1!=e&&(e=this.element.getElementsByTag("a").getItem(this._.focusIndex=e),CKEDITOR.env.webkit&&e.getDocument().getWindow().focus(),e.focus(),this.onMark&&this.onMark(e))}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){(!this.onHide||!0!==this.onHide.call(this))&&this.element.setStyle("display","none")},onKeyDown:function(e,t){switch(o=this.keys[e]){case"next":for(var n,i=this._.focusIndex,o=this.element.getElementsByTag("a");n=o.getItem(++i);)if(n.getAttribute("_cke_focus")&&n.$.offsetWidth){this._.focusIndex=i,n.focus();break}return!n&&!t&&(this._.focusIndex=-1,this.onKeyDown(e,1));case"prev":for(i=this._.focusIndex,o=this.element.getElementsByTag("a");0<i&&(n=o.getItem(--i));){if(n.getAttribute("_cke_focus")&&n.$.offsetWidth){this._.focusIndex=i,n.focus();break}n=null}return!n&&!t&&(this._.focusIndex=o.count(),this.onKeyDown(e,1));case"click":case"mouseup":return i=this._.focusIndex,(n=0<=i&&this.element.getElementsByTag("a").getItem(i))&&(n.$[o]?n.$[o]():n.$["on"+o]()),!1}return!0}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){var e={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(t,n,i,o){function a(){c.hide()}i.forceIFrame=1,i.toolbarRelated&&t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(n=CKEDITOR.document.getById("cke_"+t.name));var r=n.getDocument(),s=(o=function(t,n,i,o,a){a=CKEDITOR.tools.genKey(n.getUniqueId(),i.getUniqueId(),t.lang.dir,t.uiColor||"",o.css||"",a||"");var r=e[a];return r||(r=e[a]=new CKEDITOR.ui.panel(n,o),r.element=i.append(CKEDITOR.dom.element.createFromHtml(r.render(t),n)),r.element.setStyles({display:"none",position:"absolute"})),r}(t,r,n,i,o||0)).element,l=s.getFirst(),c=this;s.disableContextMenu(),this.element=s,this._={editor:t,panel:o,parentElement:n,definition:i,document:r,iframe:l,children:[],dir:t.lang.dir},t.on("mode",a),t.on("resize",a),CKEDITOR.env.iOS||r.getWindow().on("resize",a)},proto:{addBlock:function(e,t){return this._.panel.addBlock(e,t)},addListBlock:function(e,t){return this._.panel.addListBlock(e,t)},getBlock:function(e){return this._.panel.getBlock(e)},showBlock:function(e,t,n,i,o,a){var r=this._.panel,s=r.showBlock(e);this.allowBlur(!1),e=this._.editor.editable(),this._.returnFocus=e.hasFocus?e:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement),this._.hideTimeout=0;var l=this.element,c=(e=this._.iframe,e=CKEDITOR.env.ie?e:new CKEDITOR.dom.window(e.$.contentWindow),l.getDocument()),d=this._.parentElement.getPositionedAncestor(),u=t.getDocumentPosition(c),h=(c=d?d.getDocumentPosition(c):{x:0,y:0},"rtl"==this._.dir),f=u.x+(i||0)-c.x,p=u.y+(o||0)-c.y;!h||1!=n&&4!=n?h||2!=n&&3!=n||(f+=t.$.offsetWidth-1):f+=t.$.offsetWidth,3!=n&&4!=n||(p+=t.$.offsetHeight-1),this._.panel._.offsetParentId=t.getId(),l.setStyles({top:p+"px",left:0,display:""}),l.setOpacity(0),l.getFirst().removeStyle("width"),this._.editor.focusManager.add(e),this._.blurSet||(CKEDITOR.event.useCapture=!0,e.on("blur",function(e){function t(){delete this._.returnFocus,this.hide()}this.allowBlur()&&e.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild&&(CKEDITOR.env.iOS?this._.hideTimeout||(this._.hideTimeout=CKEDITOR.tools.setTimeout(t,0,this)):t.call(this))},this),e.on("focus",function(){this._.focused=!0,this.hideChild(),this.allowBlur(!0)},this),CKEDITOR.env.iOS&&(e.on("touchstart",function(){clearTimeout(this._.hideTimeout)},this),e.on("touchend",function(){this._.hideTimeout=0,this.focus()},this)),CKEDITOR.event.useCapture=!1,this._.blurSet=1),r.onEscape=CKEDITOR.tools.bind(function(e){if(this.onEscape&&!1===this.onEscape(e))return!1},this),CKEDITOR.tools.setTimeout(function(){var e=CKEDITOR.tools.bind(function(){if(l.removeStyle("width"),s.autoSize){var e=s.element.getDocument();e=(CKEDITOR.env.webkit?s.element:e.getBody()).$.scrollWidth;CKEDITOR.env.ie&&CKEDITOR.env.quirks&&e>0&&(e+=(l.$.offsetWidth||0)-(l.$.clientWidth||0)+3),l.setStyle("width",e+10+"px"),e=s.element.$.scrollHeight,CKEDITOR.env.ie&&CKEDITOR.env.quirks&&e>0&&(e+=(l.$.offsetHeight||0)-(l.$.clientHeight||0)+3),l.setStyle("height",e+"px"),r._.currentBlock.element.setStyle("display","none").removeStyle("display")}else l.removeStyle("height");h&&(f-=l.$.offsetWidth),l.setStyle("left",f+"px");var t=r.element.getWindow(),n=(e=l.$.getBoundingClientRect(),t=t.getViewPaneSize(),e.width||e.right-e.left),i=e.he
1ight||e.bottom-e.top,o=h?e.right:t.width-e.left,c=h?t.width-e.right:e.left;h?o<n&&(f=c>n?f+n:t.width>n?f-e.left:f-e.right+t.width):o<n&&(f=c>n?f-n:t.width>n?f-e.right+t.width:f-e.left),n=e.top,t.height-e.top<i&&(p=n>i?p-i:t.height>i?p-e.bottom+t.height:p-e.top),CKEDITOR.env.ie&&("html"==(t=e=new CKEDITOR.dom.element(l.$.offsetParent)).getName()&&(t=t.getDocument().getBody()),"rtl"==t.getComputedStyle("direction")&&(f=CKEDITOR.env.ie8Compat?f-2*l.getDocument().getDocumentElement().$.scrollLeft:f-(e.$.scrollWidth-e.$.clientWidth)));var d;(d=(e=l.getFirst()).getCustomData("activePanel"))&&d.onHide&&d.onHide.call(this,1),e.setCustomData("activePanel",this),l.setStyles({top:p+"px",left:f+"px"}),l.setOpacity(1),a&&a()},this);r.isLoaded?e():r.onLoad=e,CKEDITOR.tools.setTimeout(function(){var e=CKEDITOR.env.webkit&&CKEDITOR.document.getWindow().getScrollPosition().y;this.focus(),s.element.focus(),CKEDITOR.env.webkit&&(CKEDITOR.document.getBody().$.scrollTop=e),this.allowBlur(!0),this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this),this.visible=1,this.onShow&&this.onShow.call(this)},focus:function(){if(CKEDITOR.env.webkit){var e=CKEDITOR.document.getActive();e&&!e.equals(this._.iframe)&&e.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var e=this._.iframe.getFrameDocument().getActive();e&&e.is("a")&&(this._.lastFocused=e)},hide:function(e){!this.visible||this.onHide&&!0===this.onHide.call(this)||(this.hideChild(),CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur(),this.element.setStyle("display","none"),this.visible=0,this.element.getFirst().removeCustomData("activePanel"),(e=e&&this._.returnFocus)&&(CKEDITOR.env.webkit&&e.type&&e.getWindow().$.focus(),e.focus()),delete this._.lastFocused,this._.editor.fire("panelHide",this))},allowBlur:function(e){var t=this._.panel;return void 0!=e&&(t.allowBlur=e),t.allowBlur},showAsChild:function(e,t,n,i,o,a){this._.activeChild==e&&e._.panel._.offsetParentId==n.getId()||(this.hideChild(),e.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this),this._.activeChild=e,this._.focused=!1,e.showBlock(t,n,i,o,a),this.blur(),(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){e.element.getChild(0).$.style.cssText+=""},100))},hideChild:function(e){var t=this._.activeChild;t&&(delete t.onHide,delete this._.activeChild,t.hide(),e&&this.focus())}}}),CKEDITOR.on("instanceDestroyed",function(){var t,n=CKEDITOR.tools.isEmpty(CKEDITOR.instances);for(t in e){var i=e[t];n?i.destroy():i.element.hide()}n&&(e={})})}(),CKEDITOR.plugins.add("colorbutton",{requires:"panelbutton,floatpanel",init:function(e){function t(t,a,r,s){var l=new CKEDITOR.style(i["colorButton_"+a+"Style"]),c=CKEDITOR.tools.getNextId()+"_colorBox";e.ui.add(t,CKEDITOR.UI_PANELBUTTON,{label:r,title:r,modes:{wysiwyg:1},editorFocus:0,toolbar:"colors,"+s,allowedContent:l,requiredContent:l,panel:{css:CKEDITOR.skin.getPath("editor"),attributes:{role:"listbox","aria-label":o.panelTitle}},onBlock:function(t,r){r.autoSize=!0,r.element.addClass("cke_colorblock"),r.element.setHtml(function(t,a,r){var s=[],l=i.colorButton_colors.split(","),c=CKEDITOR.tools.addFunction(function(o,a){if("?"==o){var r=arguments.callee,s=function(e){this.removeListener("ok",s),this.removeListener("cancel",s),"ok"==e.name&&r(this.getContentElement("picker","selectedColor").getValue(),a)};e.openDialog("colordialog",function(){this.on("ok",s),this.on("cancel",s)})}else{if(e.focus(),t.hide(),e.fire("saveSnapshot"),e.removeStyle(new CKEDITOR.style(i["colorButton_"+a+"Style"],{color:"inherit"})),o){var l=i["colorButton_"+a+"Style"];l.childRule="back"==a?function(e){return n(e)}:function(e){return!(e.is("a")||e.getElementsByTag("a").count())||n(e)},e.applyStyle(new CKEDITOR.style(l,{color:o}))}e.fire("saveSnapshot")}});for(s.push('<a class="cke_colorauto" _cke_focus=1 hidefocus=true title="',o.auto,'" onclick="CKEDITOR.tools.callFunction(',c,",null,'",a,"');return false;\" href=\"javascript:void('",o.auto,'\')" role="option"><table role="presentation" cellspacing=0 cellpadding=0 width="100%"><tr><td><span class="cke_colorbox" id="',r,'"></span></td><td colspan=7 align=center>',o.auto,'</td></tr></table></a><table role="presentation" cellspacing=0 cellpadding=0 width="100%">'),r=0;r<l.length;r++){0==r%8&&s.push("</tr><tr>");var d=l[r].split("/"),u=d[0],h=d[1]||u;d[1]||(u="#"+u.replace(/^(.)(.)(.)$/,"$1$1$2$2$3$3")),d=e.lang.colorbutton.colors[h]||h,s.push('<td><a class="cke_colorbox" _cke_focus=1 hidefocus=true title="',d,'" onclick="CKEDITOR.tools.callFunction(',c,",'",u,"','",a,"'); return false;\" href=\"javascript:void('",d,'\')" role="option"><span class="cke_colorbox" style="background-color:#',h,'"></span></a></td>')}return(e.plugins.colordialog&&void 0===i.colorButton_enableMore||i.colorButton_enableMore)&&s.push('</tr><tr><td colspan=8 align=center><a class="cke_colormore" _cke_focus=1 hidefocus=true title="',o.more,'" onclick="CKEDITOR.tools.callFunction(',c,",'?','",a,"');return false;\" href=\"javascript:void('",o.more,"')\"",' role="option">',o.more,"</a></td>"),s.push("</tr></table>"),s.join("")}(t,a,c)),r.element.getDocument().getBody().setStyle("overflow","hidden"),CKEDITOR.ui.fire("ready",this);var s=r.keys,l="rtl"==e.lang.dir;s[l?37:39]="next",s[40]="next",s[9]="next",s[l?39:37]="prev",s[38]="prev",s[CKEDITOR.SH
1IFT+9]="prev",s[32]="click"},refresh:function(){e.activeFilter.check(l)||this.setState(CKEDITOR.TRISTATE_DISABLED)},onOpen:function(){var t,n=(n=e.getSelection())&&n.getStartElement();if(n=e.elementPath(n)){n=n.block||n.blockLimit||e.document.getBody();do{t=n&&n.getComputedStyle("back"==a?"background-color":"color")||"transparent"}while("back"==a&&"transparent"==t&&n&&(n=n.getParent()));return t&&"transparent"!=t||(t="#ffffff"),this._.panel._.iframe.getFrameDocument().getById(c).setStyle("background-color",t),t}}})}function n(e){return"false"==e.getAttribute("contentEditable")||e.getAttribute("data-nostyle")}var i=e.config,o=e.lang.colorbutton;CKEDITOR.env.hc||(t("TextColor","fore",o.textColorTitle,10),t("BGColor","back",o.bgColorTitle,20))}}),CKEDITOR.config.colorButton_colors="000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA520,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE82EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF",CKEDITOR.config.colorButton_foreStyle={element:"span",styles:{color:"#(color)"},overrides:[{element:"font",attributes:{color:null}}]},CKEDITOR.config.colorButton_backStyle={element:"span",styles:{"background-color":"#(color)"}},CKEDITOR.plugins.colordialog={requires:"dialog",init:function(e){var t=new CKEDITOR.dialogCommand("colordialog");t.editorFocus=!1,e.addCommand("colordialog",t),CKEDITOR.dialog.add("colordialog",this.path+"dialogs/colordialog.js"),e.getColorFromDialog=function(t,n){var i=function(e){this.removeListener("ok",i),this.removeListener("cancel",i),e="ok"==e.name?this.getValueOf("picker","selectedColor"):null,t.call(n,e)},o=function(e){e.on("ok",i),e.on("cancel",i)};e.execCommand("colordialog"),e._.storedDialogs&&e._.storedDialogs.colordialog?o(e._.storedDialogs.colordialog):CKEDITOR.on("dialogDefinition",function(e){if("colordialog"==e.data.name){var t=e.data.definition;e.removeListener(),t.onLoad=CKEDITOR.tools.override(t.onLoad,function(e){return function(){o(this),t.onLoad=e,"function"==typeof e&&e.call(this)}})}})}}},CKEDITOR.plugins.add("colordialog",CKEDITOR.plugins.colordialog),function(){CKEDITOR.plugins.add("templates",{requires:"dialog",init:function(e){CKEDITOR.dialog.add("templates",CKEDITOR.getUrl(this.path+"dialogs/templates.js")),e.addCommand("templates",new CKEDITOR.dialogCommand("templates")),e.ui.addButton&&e.ui.addButton("Templates",{label:e.lang.templates.button,command:"templates",toolbar:"doctools,10"})}});var e={},t={};CKEDITOR.addTemplates=function(t,n){e[t]=n},CKEDITOR.getTemplates=function(t){return e[t]},CKEDITOR.loadTemplates=function(e,n){for(var i=[],o=0,a=e.length;o<a;o++)t[e[o]]||(i.push(e[o]),t[e[o]]=1);i.length?CKEDITOR.scriptLoader.load(i,n):setTimeout(n,0)}}(),CKEDITOR.config.templates_files=[CKEDITOR.getUrl("plugins/templates/templates/default.js")],CKEDITOR.config.templates_replaceContent=!0,CKEDITOR.plugins.add("menu",{requires:"floatpanel",beforeInit:function(e){for(var t=e.config.menu_groups.split(","),n=e._.menuGroups={},i=e._.menuItems={},o=0;o<t.length;o++)n[t[o]]=o+1;e.addMenuGroup=function(e,t){n[e]=t||100},e.addMenuItem=function(e,t){n[t.group]&&(i[e]=new CKEDITOR.menuItem(this,e,t))},e.addMenuItems=function(e){for(var t in e)this.addMenuItem(t,e[t])},e.getMenuItem=function(e){return i[e]},e.removeMenuItem=function(e){delete i[e]}}}),function(){var e='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1"_cke_focus=1 hidefocus="true" role="{role}" aria-haspopup="{hasPopup}" aria-disabled="{disabled}" {ariaChecked}';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');e=e+' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">';var t=CKEDITOR.addTemplate("menuItem",e+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{arrowHtml}</span></a></span>'),n=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>');CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(e,t){t=this._.definition=t||{},this.id=CKEDITOR.tools.getNextId(),this.editor=e,this.items=[],this._.listeners=[],this._.level=t.level||1;var n=CKEDITOR.tools.extend({},t.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),i=n.block.attributes=n.attributes||{};!i.role&&(i.role="menu"),this._.panelDefinition=n},_:{onShow:function(){var e=this.editor.getSelection(),t=e&&e.getStartElement(),n=this.editor.elementPath(),i=this._.listeners;this.removeAll();for(var o=0;o<i.length;o++){var a=i[o](t,e,n);if(a)for(var r in a){var s=this.editor.getMenuItem(r);!s||s.command&&!this.editor.getCommand(s.command).state||(s.state=a[r],this.add(s))}}},onClick:function(e){this.hide(),e.onClick?e.onClick():e.command&&this.editor.execCommand(e.command)},onEscape:function(e){var t=this.parent;return t?t._.panel.hideChild(1):27==e&&this.hide(1),!1},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(e){var t=this._.subMenu,n=this.items[e];if(n=n.getItems&&n.getItems()){t?t.removeAll():(t=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({}
1,this._.definition,{level:this._.level+1},!0)),t.parent=this,t._.onClick=CKEDITOR.tools.bind(this._.onClick,this));for(var i in n){var o=this.editor.getMenuItem(i);o&&(o.state=n[i],t.add(o))}var a=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+""+e);setTimeout(function(){t.show(a,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(e){e.order||(e.order=this.items.length),this.items.push(e)},removeAll:function(){this.items=[]},show:function(e,t,n,i){if(this.parent||(this._.onShow(),this.items.length)){t=t||("rtl"==this.editor.lang.dir?2:1);var o=this.items,a=this.editor,r=this._.panel,s=this._.element;if(!r){(r=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level)).onEscape=CKEDITOR.tools.bind(function(e){if(!1===this._.onEscape(e))return!1},this),r.onShow=function(){r._.panel.getHolderElement().getParent().addClass("cke cke_reset_all")},r.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this),(s=r.addBlock(this.id,this._.panelDefinition.block)).autoSize=!0;
1(l=s.keys)[40]="next",l[9]="next",l[38]="prev",l[CKEDITOR.SHIFT+9]="prev",l["rtl"==a.lang.dir?37:39]=CKEDITOR.env.ie?"mouseup":"click",l[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(l[13]="mouseup"),(l=(s=this._.element=s.element).getDocument()).getBody().setStyle("overflow","hidden"),l.getElementsByTag("html").getItem(0).setStyle("overflow","hidden"),this._.itemOverFn=CKEDITOR.tools.addFunction(function(e){clearTimeout(this._.showSubTimeout),this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,a.config.menu_subMenuDelay||400,this,[e])},this),this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this),this._.itemClickFn=CKEDITOR.tools.addFunction(function(e){var t=this.items[e];t.state==CKEDITOR.TRISTATE_DISABLED?this.hide(1):t.getItems?this._.showSubMenu(e):this._.onClick(t)},this)}!function(e){e.sort(function(e,t){return e.group<t.group?-1:e.group>t.group?1:e.order<t.order?-1:e.order>t.order?1:0})}(o);for(var l=['<div class="cke_menu'+((l=a.elementPath())&&l.direction()!=a.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],c=o.length,d=c&&o[0].group,u=0;u<c;u++){var h=o[u];d!=h.group&&(l.push('<div class="cke_menuseparator" role="separator"></div>'),d=h.group),h.render(this,u,l)}l.push("</div>"),s.setHtml(l.join("")),CKEDITOR.ui.fire("ready",this),this.parent?this.parent._.panel.showAsChild(r,this.id,e,t,n,i):r.showBlock(this.id,e,t,n,i),a.fire("menuShow",[r])}},addListener:function(e){this._.listeners.push(e)},hide:function(e){this._.onHide&&this._.onHide(),this._.panel&&this._.panel.hide(e)}}}),CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(e,t,n){CKEDITOR.tools.extend(this,n,{order:0,className:"cke_menubutton__"+t}),this.group=e._.menuGroups[this.group],this.editor=e,this.name=t},proto:{render:function(e,i,o){var a=e.id+""+i,r=void 0===this.state?CKEDITOR.TRISTATE_OFF:this.state,s="",l=r==CKEDITOR.TRISTATE_ON?"on":r==CKEDITOR.TRISTATE_DISABLED?"disabled":"off";this.role in{menuitemcheckbox:1,menuitemradio:1}&&(s=' aria-checked="'+(r==CKEDITOR.TRISTATE_ON?"true":"false")+'"');var c=this.getItems,d="&#"+("rtl"==this.editor.lang.dir?"9668":"9658")+";",u=this.name;this.icon&&!/\./.test(this.icon)&&(u=this.icon),e={id:a,name:this.name,iconName:u,label:this.label,cls:this.className||"",state:l,hasPopup:c?"true":"false",disabled:r==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:e._.itemOverFn,moveOutFn:e._.itemOutFn,clickFn:e._.itemClickFn,index:i,iconStyle:CKEDITOR.skin.getIconStyle(u,"rtl"==this.editor.lang.dir,u==this.icon?null:this.icon,this.iconOffset),arrowHtml:c?n.output({label:d}):"",role:this.role?this.role:"menuitem",ariaChecked:s},t.output(e,o)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(e){this.base.call(this,e,{panel:{className:"cke_menu_panel",attributes:{"aria-label":e.lang.contextmenu.options}}})},proto:{addTarget:function(e,t){if(e.on("contextmenu",function(e){e=e.data;var i=CKEDITOR.env.webkit?n:CKEDITOR.env.mac?e.$.metaKey:e.$.ctrlKey;if(!t||!i){if(e.preventDefault(),CKEDITOR.env.mac&&CKEDITOR.env.webkit){i=this.editor;(o=new CKEDITOR.dom.elementPath(e.getTarget(),i.editable()).contains(function(e){return e.hasAttribute("contenteditable")},!0))&&"false"==o.getAttribute("contenteditable")&&i.getSelection().fake(o)}var o=e.getTarget().getDocument(),a=e.getTarget().getDocument().getDocumentElement(),r=(i=!o.equals(CKEDITOR.document),o=o.getWindow().getScrollPosition(),i?e.$.clientX:e.$.pageX||o.x+e.$.clientX),s=i?e.$.clientY:e.$.pageY||o.y+e.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(a,null,r,s)},CKEDITOR.env.ie?200:0,this)}},this),CKEDITOR.env.webkit){var n,i=function(){n=0};e.on("keydown",function(e){n=CKEDITOR.env.mac?e.data.$.metaKey:e.data.$.ctrlKey}),e.on("keyup",i),e.on("contextmenu",i)}},open:function(e,t,n,i){this.editor.focus(),e=e||CKEDITOR.document.getDocumentElement(),this.editor.selectionChange(1),this.show(e,t,n,i)}}})},beforeInit:function(e){var t=e.contextMenu=new CKEDITOR.plugins.contextMenu(e);e.on("contentDom",function(){t.addTarget(e.editable(),!1!==e.config.browserContextMenuOnCtrl)}),e.addCommand("contextMenu",{exec:function(){e.contextMenu.open(e.document.getBody())}}
1),e.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu"),e.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),CKEDITOR.plugins.add("div",{requires:"dialog",init:function(e){if(!e.blockless){var t=e.lang.div,n="div(*)";CKEDITOR.dialog.isTabEnabled(e,"editdiv","advanced")&&(n+=";div[dir,id,lang,title]{*}"),e.addCommand("creatediv",new CKEDITOR.dialogCommand("creatediv",{allowedContent:n,requiredContent:"div",contextSensitive:!0,refresh:function(e,t){this.setState("div"in(e.config.div_wrapTable?t.root:t.blockLimit).getDtd()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})),e.addCommand("editdiv",new CKEDITOR.dialogCommand("editdiv",{requiredContent:"div"})),e.addCommand("removediv",{requiredContent:"div",exec:function(e){function t(t){(t=CKEDITOR.plugins.div.getSurroundDiv(e,t))&&!t.data("cke-div-added")&&(r.push(t),t.data("cke-div-added"))}for(var n,i=e.getSelection(),o=i&&i.getRanges(),a=i.createBookmarks(),r=[],s=0;s<o.length;s++)(n=o[s]).collapsed?t(i.getStartElement()):(n=new CKEDITOR.dom.walker(n),n.evaluator=t,n.lastForward());for(s=0;s<r.length;s++)r[s].remove(!0);i.selectBookmarks(a)}}),e.ui.addButton&&e.ui.addButton("CreateDiv",{label:t.toolbar,command:"creatediv",toolbar:"blocks,50"}),e.addMenuItems&&(e.addMenuItems({editdiv:{label:t.edit,command:"editdiv",group:"div",order:1},removediv:{label:t.remove,command:"removediv",group:"div",order:5}}),e.contextMenu&&e.contextMenu.addListener(function(t){return!t||t.isReadOnly()?null:CKEDITOR.plugins.div.getSurroundDiv(e)?{editdiv:CKEDITOR.TRISTATE_OFF,removediv:CKEDITOR.TRISTATE_OFF}:null})),CKEDITOR.dialog.add("creatediv",this.path+"dialogs/div.js"),CKEDITOR.dialog.add("editdiv",this.path+"dialogs/div.js")}}}),CKEDITOR.plugins.div={getSurroundDiv:function(e,t){var n=e.elementPath(t);return e.elementPath(n.blockLimit).contains(function(e){return e.is("div")&&!e.isReadOnly()},1)}},CKEDITOR.plugins.add("resize",{init:function(e){var t,n,i,o,a=e.config,r=e.ui.spaceId("resizer"),s=e.element?e.element.getDirection(1):"ltr";if(!a.resize_dir&&(a.resize_dir="vertical"),void 0==a.resize_maxWidth&&(a.resize_maxWidth=3e3),void 0==a.resize_maxHeight&&(a.resize_maxHeight=3e3),void 0==a.resize_minWidth&&(a.resize_minWidth=750),void 0==a.resize_minHeight&&(a.resize_minHeight=250),!1!==a.resize_enabled){var l=null,c=("both"==a.resize_dir||"horizontal"==a.resize_dir)&&a.resize_minWidth!=a.resize_maxWidth,d=("both"==a.resize_dir||"vertical"==a.resize_dir)&&a.resize_minHeight!=a.resize_maxHeight,u=function(r){var l=t,u=n,h=l+(r.data.$.screenX-i)*("rtl"==s?-1:1);r=u+(r.data.$.screenY-o);c&&(l=Math.max(a.resize_minWidth,Math.min(h,a.resize_maxWidth))),d&&(u=Math.max(a.resize_minHeight,Math.min(r,a.resize_maxHeight))),e.resize(c?l:null,u)},h=function(){CKEDITOR.document.removeListener("mousemove",u),CKEDITOR.document.removeListener("mouseup",h),e.document&&(e.document.removeListener("mousemove",u),e.document.removeListener("mouseup",h))},f=CKEDITOR.tools.addFunction(function(r){l||(l=e.getResizable()),t=l.$.offsetWidth||0,n=l.$.offsetHeight||0,i=r.screenX,o=r.screenY,a.resize_minWidth>t&&(a.resize_minWidth=t),a.resize_minHeight>n&&(a.resize_minHeight=n),CKEDITOR.document.on("mousemove",u),CKEDITOR.document.on("mouseup",h),e.document&&(e.document.on("mousemove",u),e.document.on("mouseup",h)),r.preventDefault&&r.preventDefault()});e.on("destroy",function(){CKEDITOR.tools.removeFunction(f)}),e.on("uiSpace",function(t){if("bottom"==t.data.space){var n="";c&&!d&&(n=" cke_resizer_horizontal"),!c&&d&&(n=" cke_resizer_vertical");var i='<span id="'+r+'" class="cke_resizer'+n+" cke_resizer_"+s+'" title="'+CKEDITOR.tools.htmlEncode(e.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+f+', event)">'+("ltr"==s?"◢":"◣")+"</span>";"ltr"==s&&"ltr"==n?t.data.html+=i:t.data.html=i+t.data.html}},e,null,100),e.on("maximize",function(t){e.ui.space("resizer")[t.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){function e(e){function n(t,n){if(n.length){t.items?t.items.push(e.ui.create("-")):t.items=[];for(var o;o=n.shift();)o="string"==typeof o?o:o.name,i&&-1!=CKEDITOR.tools.indexOf(i,o)||(o=e.ui.create(o))&&e.addFeature(o)&&t.items.push(o)}}var i=(i=e.config.removeButtons)&&i.split(","),o=e.config.toolbar;return"string"==typeof o&&(o=e.config["toolbar_"+o]),e.toolbar=o?function(e){var t,i,o,a=[];for(t=0;t<e.length;++t)i=e[t],o={},"/"==i?a.push(i):CKEDITOR.tools.isArray(i)?(n(o,CKEDITOR.tools.clone(i)),a.push(o)):i.items&&(n(o,CKEDITOR.tools.clone(i.items)),o.name=i.name,a.push(o));return a}(o):function(){for(var i=function(){var t,n,i,o={};for(t in e.ui.items)n=e.ui.items[t],i=n.toolbar||"others",i=i.split(","),n=i[0],i=parseInt(i[1]||-1,10),o[n]||(o[n]=[]),o[n].push({name:t,order:i}
1);for(n in o)o[n]=o[n].sort(function(e,t){return e.order==t.order?0:0>t.order?-1:0>e.order?1:e.order<t.order?-1:1});return o}(),o=CKEDITOR.tools.clone(e.config.toolbarGroups)||t(e),a=0;a<o.length;a++){var r=o[a];if("/"!=r){"string"==typeof r&&(r=o[a]={name:r});var s,l=r.groups;if(l)for(var c=0;c<l.length;c++)s=l[c],(s=i[s])&&n(r,s);(s=i[r.name])&&n(r,s)}}return o}()}function t(e){return e._.toolbarGroups||(e._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var n=function(){this.toolbars=[],this.focusCommandExecuted=!1};n.prototype.focus=function(){for(var e,t=0;e=this.toolbars[t++];)for(var n,i=0;n=e.items[i++];)if(n.focus)return void n.focus()};var i={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(e){e.toolbox&&(e.toolbox.focusCommandExecuted=!0,CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){e.toolbox.focus()},100):e.toolbox.focus())}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(t){var o,a=function(e,n){var i,r="rtl"==t.lang.dir,s=t.config.toolbarGroupCycling,l=r?37:39;r=r?39:37,s=void 0===s||s;switch(n){case 9:case CKEDITOR.SHIFT+9:for(;!i||!i.items.length;)if((i=9==n?(i?i.next:e.toolbar.next)||t.toolbox.toolbars[0]:(i?i.previous:e.toolbar.previous)||t.toolbox.toolbars[t.toolbox.toolbars.length-1]).items.length)for(e=i.items[o?i.items.length-1:0];e&&!e.focus;)(e=o?e.previous:e.next)||(i=0);return e&&e.focus(),!1;case l:i=e;do{!(i=i.next)&&s&&(i=e.toolbar.items[0])}while(i&&!i.focus);return i?i.focus():a(e,9),!1;case 40:return e.button&&e.button.hasArrow?(t.once("panelShow",function(e){e.data._.panel._.currentBlock.onKeyDown(40)}),e.execute()):a(e,40==n?l:r),!1;case r:case 38:i=e;do{!(i=i.previous)&&s&&(i=e.toolbar.items[e.toolbar.items.length-1])}while(i&&!i.focus);
1return i?i.focus():(o=1,a(e,CKEDITOR.SHIFT+9),o=0),!1;case 27:return t.focus(),!1;case 13:case 32:return e.execute(),!1}return!0};t.on("uiSpace",function(i){if(i.data.space==t.config.toolbarLocation){i.removeListener(),t.toolbox=new n;var o,r,s=['<span id="',l=CKEDITOR.tools.getNextId(),'" class="cke_voice_label">',t.lang.toolbar.toolbars,"</span>",'<span id="'+t.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',l,'" onmousedown="return false;">'],l=!1!==t.config.toolbarStartupExpanded;t.config.toolbarCanCollapse&&t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&s.push('<span class="cke_toolbox_main"'+(l?">":' style="display:none">'));for(var c=t.toolbox.toolbars,d=e(t),u=0;u<d.length;u++){var h,f,p,m=0,g=d[u];if(g)if(o&&(s.push("</span>"),r=o=0),"/"===g)s.push('<span class="cke_toolbar_break"></span>');else{p=g.items||g;for(var E=0;E<p.length;E++){var v,T=p[E];if(T)if(T.type==CKEDITOR.UI_SEPARATOR)r=o&&T;else{if(v=!1!==T.canGroup,!m){h=CKEDITOR.tools.getNextId(),m={id:h,items:[]},f=g.name&&(t.lang.toolbar.toolbarGroups[g.name]||g.name),s.push('<span id="',h,'" class="cke_toolbar"',f?' aria-labelledby="'+h+'_label"':"",' role="toolbar">'),f&&s.push('<span id="',h,'_label" class="cke_voice_label">',f,"</span>"),s.push('<span class="cke_toolbar_start"></span>');var C=c.push(m)-1;0<C&&(m.previous=c[C-1],m.previous.next=m)}v?o||(s.push('<span class="cke_toolgroup" role="presentation">'),o=1):o&&(s.push("</span>"),o=0),h=function(e){e=e.render(t,s),(C=m.items.push(e)-1)>0&&(e.previous=m.items[C-1],e.previous.next=e),e.toolbar=m,e.onkey=a,e.onfocus=function(){t.toolbox.focusCommandExecuted||t.focus()}},r&&(h(r),r=0),h(T)}}o&&(s.push("</span>"),r=o=0),m&&s.push('<span class="cke_toolbar_end"></span></span>')}}if(t.config.toolbarCanCollapse&&s.push("</span>"),t.config.toolbarCanCollapse&&t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var b=CKEDITOR.tools.addFunction(function(){t.execCommand("toolbarCollapse")});t.on("destroy",function(){CKEDITOR.tools.removeFunction(b)}),t.addCommand("toolbarCollapse",{readOnly:1,exec:function(e){var t=e.ui.space("toolbar_collapser"),n=t.getPrevious(),i=e.ui.space("contents"),o=n.getParent(),a=parseInt(i.$.style.height,10),r=o.$.offsetHeight,s=t.hasClass("cke_toolbox_collapser_min");s?(n.show(),t.removeClass("cke_toolbox_collapser_min"),t.setAttribute("title",e.lang.toolbar.toolbarCollapse)):(n.hide(),t.addClass("cke_toolbox_collapser_min"),t.setAttribute("title",e.lang.toolbar.toolbarExpand)),t.getFirst().setText(s?"▲":"◀"),i.setStyle("height",a-(o.$.offsetHeight-r)+"px"),e.fire("resize")},modes:{wysiwyg:1,source:1}}),t.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse"),s.push('<a title="'+(l?t.lang.toolbar.toolbarCollapse:t.lang.toolbar.toolbarExpand)+'" id="'+t.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser'),l||s.push(" cke_toolbox_collapser_min"),s.push('" onclick="CKEDITOR.tools.callFunction('+b+')">','<span class="cke_arrow">▲</span>',"</a>")}s.push("</span>"),i.data.html+=s.join("")}}),t.on("destroy",function(){if(this.toolbox){var e,t,n,i,o=0;for(e=this.toolbox.toolbars;o<e.length;o++)for(n=e[o].items,t=0;t<n.length;t++)(i=n[t]).clickFn&&CKEDITOR.tools.removeFunction(i.clickFn),i.keyDownFn&&CKEDITOR.tools.removeFunction(i.keyDownFn)}}),t.on("uiReady",function(){var e=t.ui.space("toolbox");e&&t.focusManager.add(e,1)}),t.addCommand("toolbarFocus",i),t.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus"),t.ui.add("-",CKEDITOR.UI_SEPARATOR,{}),t.ui.addHandler(CKEDITOR.UI_SEPARATOR,{create:function(){return{render:function(e,t){return t.push('<span class="cke_toolbar_separator" role="separator"></span>'),{}}}}})}}),CKEDITOR.ui.prototype.addToolbarGroup=function(e,n,i){var o=t(this.editor),a=0===n,r={name:e};if(i){if(i=CKEDITOR.tools.search(o,function(e){return e.name==i}))return!i.groups&&(i.groups=[]),n&&0<=(n=CKEDITOR.tools.indexOf(i.groups,n))?void i.groups.splice(n+1,0,e):void(a?i.groups.splice(0,0,e):i.groups.push(e));n=null}n&&(n=CKEDITOR.tools.indexOf(o,function(e){return e.name==n})),a?o.splice(0,0,e):"number"==typeof n?o.splice(n+1,0,r):o.push(e)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){var e;e={editorFocus:!1,readOnly:1,exec:function(e){(e=CKEDITOR.document.getById(e._.elementsPath.idBase+"0"))&&e.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}};var t='<span class="cke_path_empty"> </span>',n="";CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(n+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(n+=' onblur="this.style.cssText = this.style.cssText;"');var i=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+n+' hidefocus="true" onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(n){n._.elementsPath={idBase:"cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_",f
1ilters:[]},n.on("uiSpace",function(o){"bottom"==o.data.space&&function(n,o){function a(e){if((e=c.list[e]).equals(n.editable())||"true"==e.getAttribute("contenteditable")){var t=n.createRange();t.selectNodeContents(e),t.select()}else n.getSelection().selectElement(e);n.focus()}function r(){s&&s.setHtml(t),delete c.list}var s,l=n.ui.spaceId("path"),c=n._.elementsPath,d=c.idBase;o.html+='<span id="'+l+'_label" class="cke_voice_label">'+n.lang.elementspath.eleLabel+'</span><span id="'+l+'" class="cke_path" role="group" aria-labelledby="'+l+'_label">'+t+"</span>",n.on("uiReady",function(){var e=n.ui.space("path");e&&n.focusManager.add(e,1)}),c.onClick=a;var u=CKEDITOR.tools.addFunction(a),h=CKEDITOR.tools.addFunction(function(e,t){var i,o=c.idBase;switch(t=new CKEDITOR.dom.event(t),i="rtl"==n.lang.dir,t.getKeystroke()){case i?39:37:case 9:return(i=CKEDITOR.document.getById(o+(e+1)))||(i=CKEDITOR.document.getById(o+"0")),i.focus(),!1;case i?37:39:case CKEDITOR.SHIFT+9:return(i=CKEDITOR.document.getById(o+(e-1)))||(i=CKEDITOR.document.getById(o+(c.list.length-1))),i.focus(),!1;case 27:return n.focus(),!1;case 13:case 32:return a(e),!1}return!0});n.on("selectionChange",function(){n.editable();for(var e,o=[],a=c.list=[],r=[],f=c.filters,p=!0,m=n.elementPath().elements,g=m.length;g--;){var E=m[g],v=0;e=E.data("cke-display-name")?E.data("cke-display-name"):E.data("cke-real-element-type")?E.data("cke-real-element-type"):E.getName(),!(p=E.hasAttribute("contenteditable")?"true"==E.getAttribute("contenteditable"):p)&&!E.hasAttribute("contenteditable")&&(v=1);for(var T=0;T<f.length;T++){var C=f[T](E,e);if(!1===C){v=1;break}e=C||e}v||(a.unshift(E),r.unshift(e))}for(a=a.length,f=0;f<a;f++)e=r[f],p=n.lang.elementspath.eleTitle.replace(/%1/,e),e=i.output({id:d+f,label:p,text:e,jsTitle:"javascript:void('"+e+"')",index:f,keyDownFn:h,clickFn:u}),o.unshift(e);s||(s=CKEDITOR.document.getById(l)),(r=s).setHtml(o.join("")+t),n.fire("elementsPathUpdate",{space:r})}),n.on("readOnly",r),n.on("contentDomUnload",r),n.addCommand("elementsPathFocus",e),n.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}(n,o.data)})}})}(),function(){function e(e,t,n){n=e.config.forceEnterMode||n,"wysiwyg"==e.mode&&(t||(t=e.activeEnterMode),e.elementPath().isContextFor("p")||(t=CKEDITOR.ENTER_BR,n=1),e.fire("saveSnapshot"),t==CKEDITOR.ENTER_BR?a(e,t,null,n):r(e,t,null,n),e.fire("saveSnapshot"))}function t(e){for(var t=(e=e.getSelection().getRanges(!0)).length-1;0<t;t--)e[t].deleteContents();return e[0]}CKEDITOR.plugins.add("enterkey",{init:function(t){t.addCommand("enter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(t){e(t)}}),t.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:!1,exec:function(t){e(t,t.activeShiftEnterMode,1)}}
1),t.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var n=CKEDITOR.dom.walker.whitespaces(),i=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(e,o,r,l){if(r=r||t(e)){var c,d=r.document,u=r.checkStartOfBlock(),h=r.checkEndOfBlock(),f=e.elementPath(r.startContainer),p=f.block,m=o==CKEDITOR.ENTER_DIV?"div":"p";if(u&&h){if(p&&(p.is("li")||p.getParent().is("li"))){p.is("li")||(p=p.getParent()),c=(r=p.getParent()).getParent();l=!p.hasPrevious();var g=!p.hasNext(),E=(m=e.getSelection()).createBookmarks(),v=(u=p.getDirection(1),h=p.getAttribute("class"),p.getAttribute("style")),T=c.getDirection(1)!=u;e=e.enterMode!=CKEDITOR.ENTER_BR||T||v||h;if(c.is("li"))l||g?p[l?"insertBefore":"insertAfter"](c):p.breakParent(c);else{if(e)f.block.is("li")?(c=d.createElement(o==CKEDITOR.ENTER_P?"p":"div"),T&&c.setAttribute("dir",u),v&&c.setAttribute("style",v),h&&c.setAttribute("class",h),p.moveChildren(c)):c=f.block,l||g?c[l?"insertBefore":"insertAfter"](r):(p.breakParent(r),c.insertAfter(r));else if(p.appendBogus(!0),l||g)for(;d=p[l?"getFirst":"getLast"]();)d[l?"insertBefore":"insertAfter"](r);else for(p.breakParent(r);d=p.getLast();)d.insertAfter(r);p.remove()}return void m.selectBookmarks(E)}if(p&&p.getParent().is("blockquote"))return p.breakParent(p.getParent()),p.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))||p.getPrevious().remove(),p.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||p.getNext().remove(),r.moveToElementEditStart(p),void r.select()}else if(p&&p.is("pre")&&!h)return void a(e,o,r,l);if(u=r.splitBlock(m)){if(o=u.previousBlock,p=u.nextBlock,f=u.wasStartOfBlock,e=u.wasEndOfBlock,p?(E=p.getParent()).is("li")&&(p.breakParent(E),p.move(p.getNext(),1)):o&&(E=o.getParent())&&E.is("li")&&(o.breakParent(E),E=o.getNext(),r.moveToElementEditStart(E),o.move(o.getPrevious())),f||e){if(o?(o.is("li")||!s.test(o.getName())&&!o.is("pre"))&&(c=o.clone()):p&&(c=p.clone()),c?l&&!c.is("li")&&c.renameNode(m):E&&E.is("li")?c=E:(c=d.createElement(m),o&&(g=o.getDirection())&&c.setAttribute("dir",g)),d=u.elementPath)for(l=0,m=d.elements.length;l<m&&(!(E=d.elements[l]).equals(d.block)&&!E.equals(d.blockLimit));l++)CKEDITOR.dtd.$removeEmpty[E.getName()]&&(E=E.clone(),c.moveChildren(E),c.append(E));c.appendBogus(),c.getParent()||r.insertNode(c),c.is("li")&&c.removeAttribute("value"),!CKEDITOR.env.ie||!f||e&&o.getChildCount()||(r.moveToElementEditStart(e?o:c),r.select()),r.moveToElementEditStart(f&&!e?p:c)}else p.is("li")&&((c=r.clone()).selectNodeContents(p),c=new CKEDITOR.dom.walker(c),c.evaluator=function(e){return!(i(e)||n(e)||e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in CKEDITOR.dtd.$inline&&!(e.getName()in CKEDITOR.dtd.$empty))},(E=c.next())&&E.type==CKEDITOR.NODE_ELEMENT&&E.is("ul","ol")&&(CKEDITOR.env.needsBrFiller?d.createElement("br"):d.createText(" ")).insertBefore(E)),p&&r.moveToElementEditStart(p);r.select(),r.scrollIntoView()}}},enterBr:function(e,n,i,o){if(i=i||t(e)){var a=i.document,l=i.checkEndOfBlock(),c=new CKEDITOR.dom.elementPath(e.getSelection().getStartElement()),d=c.block,u=d&&c.block.getName();o||"li"!=u?(!o&&l&&s.test(u)?(l=d.getDirection())?((a=a.createElement("div")).setAttribute("dir",l),a.insertAfter(d),i.setStart(a,0)):(a.createElement("br").insertAfter(d),CKEDITOR.env.gecko&&a.createText("").insertAfter(d),i.setStartAt(d.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)):(e="pre"==u&&CKEDITOR.env.ie&&8>CKEDITOR.env.version?a.createText("\r"):a.createElement("br"),i.deleteContents(),i.insertNode(e),CKEDITOR.env.needsBrFiller?(a.createText("\ufeff").insertAfter(e),l&&(d||c.blockLimit).appendBogus(),e.getNext().$.nodeValue="",i.setStartAt(e.getNext(),CKEDITOR.POSITION_AFTER_START)):i.setStartAt(e,CKEDITOR.POSITION_AFTER_END)),i.collapse(!0),i.select(),i.scrollIntoView()):r(e,n,i,o)}}};var o=CKEDITOR.plugins.enterkey,a=o.enterBr,r=o.enterBlock,s=/^h[1-6]$/}(),function(){function e(e,t){var n={},i=[],o={nbsp:" ",shy:"ÂÂ",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'};e=e.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(e,a){var r=t?"&"+a+";":o[a];return n[r]=t?o[a]:"&"+a+";",i.push(r),""});if(!t&&e){e=e.split(",");var a,r=document.createElement("div");for(r.innerHTML="&"+e.join(";&")+";",a=r.innerHTML,r=null,r=0;r<a.length;r++){var s=a.charAt(r);n[s]="&"+e[r]+";",i.push(s)}}return n.regex=i.join(t?"|":""),n}CKEDITOR.plugins.add("entities",{afterInit:function(t){var n=t.config;if(t=(t=t.dataProcessor)&&t.htmlFilter){var i=[];!1!==n.basicEntities&&i.push("nbsp,gt,lt,amp"),n.entities&&(i.length&&i.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"),n.entities_latin&&i.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml"),n.entities_greek&&i.push("Alp
1ha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"),n.entities_additional&&i.push(n.entities_additional));var o=e(i.join(",")),a=o.regex?"["+o.regex+"]":"a^";delete o.regex,n.entities&&n.entities_processNumerical&&(a="[^ -~]|"+a);a=RegExp(a,"g");var r=function(e){return"force"!=n.entities_processNumerical&&o[e]?o[e]:"&#"+e.charCodeAt(0)+";"},s=e("nbsp,gt,lt,amp,shy",!0),l=RegExp(s.regex,"g"),c=function(e){return s[e]};t.addRules({text:function(e){return e.replace(l,c).replace(a,r)}},{applyToAll:!0,excludeNestedEditable:!0})}}})}(),CKEDITOR.config.basicEntities=!0,CKEDITOR.config.entities=!0,CKEDITOR.config.entities_latin=!0,CKEDITOR.config.entities_greek=!0,CKEDITOR.config.entities_additional="#39",CKEDITOR.plugins.add("popup"),CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{popup:function(e,t,n,i){t=t||"80%",n=n||"70%","string"==typeof t&&1<t.length&&"%"==t.substr(t.length-1,1)&&(t=parseInt(window.screen.width*parseInt(t,10)/100,10)),"string"==typeof n&&1<n.length&&"%"==n.substr(n.length-1,1)&&(n=parseInt(window.screen.height*parseInt(n,10)/100,10)),640>t&&(t=640),420>n&&(n=420);var o=parseInt((window.screen.height-n)/2,10),a=parseInt((window.screen.width-t)/2,10),r=(i=(i||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+",width="+t+",height="+n+",top="+o+",left="+a,window.open("",null,i,!0));if(!r)return!1;try{-1==navigator.userAgent.toLowerCase().indexOf(" chrome/")&&(r.moveTo(a,o),r.resizeTo(t,n)),r.focus(),r.location.href=e}catch(t){window.open(e,null,i,!0)}return!0}}),function(){function e(e,t){var n=[];if(!t)return e;for(var i in t)n.push(i+"="+encodeURIComponent(t[i]));return e+(-1!=e.indexOf("?")?"&":"?")+n.join("&")}function t(e){return(e+="").charAt(0).toUpperCase()+e.substr(1)}function n(){var n=(o=this.getDialog()).getParentEditor();n._.filebrowserSe=this;var i=n.config["filebrowser"+t(o.getName())+"WindowWidth"]||n.config.filebrowserWindowWidth||"80%",o=n.config["filebrowser"+t(o.getName())+"WindowHeight"]||n.config.filebrowserWindowHeight||"70%",a=this.filebrowser.params||{};a.CKEditor=n.name,a.CKEditorFuncNum=n._.filebrowserFn,a.langCode||(a.langCode=n.langCode),a=e(this.filebrowser.url,a),n.popup(a,i,o,n.config.filebrowserWindowFeatures||n.config.fileBrowserWindowFeatures)}function i(){var e=this.getDialog();return e.getParentEditor()._.filebrowserSe=this,!(!e.getContentElement(this.for[0],this.for[1]).getInputElement().$.value||!e.getContentElement(this.for[0],this.for[1]).getAction())}function o(t,n,i){var o=i.params||{};o.CKEditor=t.name,o.CKEditorFuncNum=t._.filebrowserFn,o.langCode||(o.langCode=t.langCode),n.action=e(i.url,o),n.filebrowser=i}function a(e,r,s,l){if(l&&l.length)for(var c,d=l.length;d--;)if(("hbox"==(c=l[d]).type||"vbox"==c.type||"fieldset"==c.type)&&a(e,r,s,c.children),c.filebrowser)if("string"==typeof c.filebrowser&&(c.filebrowser={action:"fileButton"==c.type?"QuickUpload":"Browse",target:c.filebrowser}),"Browse"==c.filebrowser.action){var u=c.filebrowser.url;void 0===u&&void 0===(u=e.config["filebrowser"+t(r)+"BrowseUrl"])&&(u=e.config.filebrowserBrowseUrl),u&&(c.onClick=n,c.filebrowser.url=u,c.hidden=!1)}else if("QuickUpload"==c.filebrowser.action&&c.for&&(void 0===(u=c.filebrowser.url)&&void 0===(u=e.config["filebrowser"+t(r)+"UploadUrl"])&&(u=e.config.filebrowserUploadUrl),u)){var h=c.onClick;c.onClick=function(e){var t=e.sender;return(!h||!1!==h.call(t,e))&&i.call(t,e)},c.filebrowser.url=u,c.hidden=!1,o(e,s.getContents(c.for[0]).get(c.for[1]),c.filebrowser)}}function r(e,t,n){if(-1!==n.indexOf(";")){n=n.split(";");for(var i=0;i<n.length;i++)if(r(e,t,n[i]))return!0;return!1}return(e=e.getContents(t).get(n).filebrowser)&&e.url}function s(e,t){var n=this._.filebrowserSe.getDialog(),i=this._.filebrowserSe.for,o=this._.filebrowserSe.filebrowser.onSelect;i&&n.getContentElement(i[0],i[1]).reset(),"function"==typeof t&&!1===t.call(this._.filebrowserSe)||o&&!1===o.call(this._.filebrowserSe,e,t)||("string"==typeof t&&t&&alert(t),!(e&&(i=this._.filebrowserSe,n=i.getDialog(),i=i.filebrowser.target||null)))||(i=i.split(":"),(o=n.getContentElement(i[0],i[1]))&&(o.setValue(e),n.selectPage(i[0])))}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(e){e._.filebrowserFn=CKEDITOR.tools.addFunction(s,e),e.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}}),CKEDITOR.on("dialogDefinition",function(e){if(e.editor.plugins.filebrowser)for(var t,n=e.data.definition,i=0;i<n.contents.length;++i)(t=n.contents[i])&&(a(e.editor,e.data.name,n,t.elements),t.hidden&&t.filebrowser&&(t.hidden=!r(n,t.id,t.filebrowser)))})}(),CKEDITOR.plugins.add("find",{requires:"dialog",init:function(e){var t=e.addCommand("find",new CKEDITOR.dialogCommand("find"));t.canUndo=!1,t.readOnly=1,e.addCommand("replace",new CKEDITOR.dialogCommand("replace")).canUndo=!1,e.ui.addButton&&(e.ui.addButton("Find",{label:e.lang.find.find,command:"find",toolbar:"find,10"}),e.ui.addButton("Replace",{label:e.lang.find.replace,command:"replace",toolbar:"find,20"})),CKEDITOR.dialog.add("find",this.path+"dialogs/find.js"),CKEDITOR.dialog.add("replace",this.path+"dialogs/find.js")}}),CKEDITOR.config.find_highlight={element:"span",styles:{"background-color":"#004",color:"#fff"}},function(){function e(e,t){var n=i.exec(e),o=i.exec(t);if(n){if(!n[2]&&"px"==o[2])return o[1];if("px"==n[2]&&!o[2])return o[1]+"px"}return t}var t=CKEDITOR.htmlParser.cssStyle,n=CKEDITOR.tools.cssLength,i=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,o={elements:{$:function(n){var i=n.attributes;if((i=(i=(i=i&&i["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(i)))&&i.children[0])&&n.attributes["data-cke-resizable"]){var o=new t(n).rules,a=(n=i.attributes,o.width);o=o.height;a&&(n.width=e(n.width,a)),o&&(n.height=e(n.height,o))}return i}}};CKEDITOR.plugins.add("fakeobjects",{init:function(e){e.filter.allow("img[!data-cke-realelement,src,alt,title](*){*}","fakeobjects")},afterInit:function(e){(e=(e=e.dataProcessor)&&e.htmlFilter)&&e.addRules(o,{applyToAll:!0})}}),CKEDITOR.editor.prototype.createFakeElement=function(e,i,o,a){var r=(r=this.lang.fakeobjects)[o]||r.unknown;i={class:i,"data-cke-realelement":encodeURIComponent(e.getOuterHtml()),"data-cke-real-node-type":e.type,alt:r,title:r,align:e.getAttribute("align")||""};return CKEDITOR.env.hc||(i.src=CKEDITOR.tools.transparentImageData),o&&(i["data-cke-real-element-type"]=o),a&&(i["data-cke-resizable"]=a,o=new t,a=e.getAttribute("width"),e=e.getAttribute("height"),a&&(o.rules.width=n(a)),e&&(o.rules.height=n(e)),o.populate(i)),this.document.createElement("img",{attributes:i})},CKEDITOR.editor.prototype.createFakeParserElement=function(e,i,o,a){var r,s=(s=this.lang.fakeobjects)[o]||s.unknown;return r=new CKEDITOR.htmlParser.basicWriter,e.writeHtml(r),r=r.getHtml(),i={class:i,"data-cke-realelement":encodeURIComponent(r),"data-cke-real-node-type":e.type,alt:s,title:s,align:e.attributes.align||""},CKEDITOR.env.hc||(i.src=CKEDITOR.tools.transparentImageData),o&&(i["data-cke-real-element-type"]=o),a&&(i["data-cke-resizable"]=a,a=e.attributes,e=new t,o=a.width,a=a.height,void 0!=o&&(e.rules.width=n(o)),void 0!=a&&(e.rules.height=n(a)),e.populate(i)),new CKEDITOR.htmlParser.element("img",i)},CKEDITOR.editor.prototype.restoreRealElement=function(t){if(t.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var n=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(t.data("cke-realelement")),this.document);if(t.data("cke-resizable")){var i=t.getStyle("width");t=t.getStyle("height");i&&n.setAttribute("width",e(n.getAttribute("width"),i)),t&&n.setAttribute("height",e(n.getAttribute("height"),t))}return n}}(),function(){function e(e){return"application/x-shockwave-flash"==(e=e.attributes).type||n.test(e.src||"")}function t(e,t){return e.createFakeParserElement(t,"cke_flash","flash",!0)}var n=/\.swf(?:$|\?)/i;CKEDITOR.plugins.add("flash",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_flash{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(e){var t="object[classid,codebase,height,hspace,vspace,width];param[name,value];embed[height,hspace,pluginspage,src,type,vspace,width]";CKEDITOR.dialog.isTabEnabled(e,"flash","properties")&&(t+=";object[align];
1 embed[allowscriptaccess,quality,scale,wmode]"),CKEDITOR.dialog.isTabEnabled(e,"flash","advanced")&&(t+=";object[id]{*}; embed[bgcolor]{*}(*)"),e.addCommand("flash",new CKEDITOR.dialogCommand("flash",{allowedContent:t,requiredContent:"embed"})),e.ui.addButton&&e.ui.addButton("Flash",{label:e.lang.common.flash,command:"flash",toolbar:"insert,20"}),CKEDITOR.dialog.add("flash",this.path+"dialogs/flash.js"),e.addMenuItems&&e.addMenuItems({flash:{label:e.lang.flash.properties,command:"flash",group:"flash"}}),e.on("doubleclick",function(e){var t=e.data.element;t.is("img")&&"flash"==t.data("cke-real-element-type")&&(e.data.dialog="flash")}),e.contextMenu&&e.contextMenu.addListener(function(e){if(e&&e.is("img")&&!e.isReadOnly()&&"flash"==e.data("cke-real-element-type"))return{flash:CKEDITOR.TRISTATE_OFF}})},afterInit:function(n){var i=n.dataProcessor;(i=i&&i.dataFilter)&&i.addRules({elements:{"cke:object":function(i){var o=i.attributes;if(!(o.classid&&(""+o.classid).toLowerCase()||e(i))){for(o=0;o<i.children.length;o++)if("cke:embed"==i.children[o].name){if(!e(i.children[o]))break;return t(n,i)}return null}return t(n,i)},"cke:embed":function(i){return e(i)?t(n,i):null}}},5)}})}(),CKEDITOR.tools.extend(CKEDITOR.config,{flashEmbedTagOnly:!1,flashAddEmbedTag:!0,flashConvertOnEdit:!1}),function(){var e=CKEDITOR.document.getWindow(),t=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(n){n.on("loaded",function(){!function(n){var i=n.config,o=n.fire("uiSpace",{space:"top",html:""}).html,a=function(){function o(e,n,i){s.setStyle(n,t(i)),s.setStyle("position",e)}function r(e){var t=c.getDocumentPosition();switch(e){case"top":o("absolute","top",t.y-f-g);break;case"pin":o("fixed","top",v);break;case"bottom":o("absolute","top",t.y+(u.height||u.bottom-u.top)+g)}l=e}var l,c,d,u,h,f,p,m=i.floatSpaceDockedOffsetX||0,g=i.floatSpaceDockedOffsetY||0,E=i.floatSpacePinnedOffsetX||0,v=i.floatSpacePinnedOffsetY||0;return function(i){if(c=n.editable())if(i&&"focus"==i.name&&s.show(),s.removeStyle("left"),s.removeStyle("right"),d=s.getClientRect(),u=c.getClientRect(),h=e.getViewPaneSize(),f=d.height,p="pageXOffset"in e.$?e.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft,l){f+g<=u.top?r("top"):f+g>h.height-u.bottom?r("pin"):r("bottom");var o;i=h.width/2,i=0<u.left&&u.right<h.width&&u.width>d.width?"rtl"==n.config.contentsLangDirection?"right":"left":i-u.left>u.right-i?"left":"right",d.width>h.width?(i="left",o=0):(o="left"==i?0<u.left?u.left:0:u.right<h.width?h.width-u.right:0)+d.width>h.width&&(i="left"==i?"right":"left",o=0),s.setStyle(i,t(("pin"==l?E:m)+o+("pin"==l?0:"left"==i?p:-p)))}else l="pin",r("pin"),a(i)}}();if(o){var r=new CKEDITOR.template('<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}"'+(n.title?' aria-labelledby="cke_{name}_arialbl"':" ")+">"+(n.title?'<span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span>':" ")+'<div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>'),s=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(r.output({content:o,id:n.id,langDir:n.lang.dir,langCode:n.langCode,name:n.name,style:"display:none;z-index:"+(i.baseFloatZIndex-1),topId:n.ui.spaceId("top"),voiceLabel:n.title}))),l=CKEDITOR.tools.eventsBuffer(500,a),c=CKEDITOR.tools.eventsBuffer(100,a);s.unselectable(),s.on("mousedown",function(e){(e=e.data).getTarget().hasAscendant("a",1)||e.preventDefault()}),n.on("focus",function(t){a(t),n.on("change",l.input),e.on("scroll",c.input),e.on("resize",c.input)}),n.on("blur",function(){s.hide(),n.removeListener("change",l.input),e.removeListener("scroll",c.input),e.removeListener("resize",c.input)}),n.on("destroy",function(){e.removeListener("scroll",c.input),e.removeListener("resize",c.input),s.clearCustomData(),s.remove()}),n.focusManager.hasFocus&&s.show(),n.focusManager.add(s,1)}}(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var e=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),t=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')" {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'),n=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>'),i=/\'/g;CKEDITOR.ui.panel.prototype.addListBlock=function(e,t){return this.addBlock(e,new CKEDITOR.ui.listBlock(this.getHolderElement(),t))},CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(e,t){var n=(t=t||{}).attributes||(t.attributes={});(this.multiSelect=!!t.multiSelect)&&(n["aria-multiselectable"]=!0),!n.role&&(n.role="listbox"),this.base.apply(this,arguments),this.element.setAttribute("role",n.role),(n=this.keys)[40]="next",n[9]="next",n[38]="prev",n[CKEDITOR.SH
1IFT+9]="prev",n[32]=CKEDITOR.env.ie?"mouseup":"click",CKEDITOR.env.ie&&(n[13]="mouseup"),this._.pendingHtml=[],this._.pendingList=[],this._.items={},this._.groups={}},_:{close:function(){if(this._.started){var t=e.output({items:this._.pendingList.join("")});this._.pendingList=[],this._.pendingHtml.push(t),delete this._.started}},getClick:function(){return this._.click||(this._.click=CKEDITOR.tools.addFunction(function(e){var t=this.toggle(e);this.onClick&&this.onClick(e,t)},this)),this._.click}},proto:{add:function(e,n,o){var a=CKEDITOR.tools.getNextId();this._.started||(this._.started=1,this._.size=this._.size||0),this._.items[e]=a;e={id:a,val:CKEDITOR.tools.htmlEncodeAttr(e).replace(i,"\\'"),onclick:CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick",clickFn:this._.getClick(),title:CKEDITOR.tools.htmlEncodeAttr(o||e),text:n||e},this._.pendingList.push(t.output(e))},startGroup:function(e){this._.close();var t=CKEDITOR.tools.getNextId();this._.groups[e]=t,this._.pendingHtml.push(n.output({id:t,label:e}))},commit:function(){this._.close(),this.element.appendHtml(this._.pendingHtml.join("")),delete this._.size,this._.pendingHtml=[]},toggle:function(e){var t=this.isMarked(e);return t?this.unmark(e):this.mark(e),!t},hideGroup:function(e){var t=(e=this.element.getDocument().getById(this._.groups[e]))&&e.getNext();e&&(e.setStyle("display","none"),t&&"ul"==t.getName()&&t.setStyle("display","none"))},hideItem:function(e){this.element.getDocument().getById(this._.items[e]).setStyle("display","none")},showAll:function(){var e,t=this._.items,n=this._.groups,i=this.element.getDocument();for(e in t)i.getById(t[e]).setStyle("display","");for(var o in n)t=i.getById(n[o]),e=t.getNext(),t.setStyle("display",""),e&&"ul"==e.getName()&&e.setStyle("display","")},mark:function(e){this.multiSelect||this.unmarkAll();e=this._.items[e];var t=this.element.getDocument().getById(e);t.addClass("cke_selected"),this.element.getDocument().getById(e+"_option").setAttribute("aria-selected",!0),this.onMark&&this.onMark(t)},unmark:function(e){var t=this.element.getDocument(),n=(e=this._.items[e],t.getById(e));n.removeClass("cke_selected"),t.getById(e+"_option").removeAttribute("aria-selected"),this.onUnmark&&this.onUnmark(n)},unmarkAll:function(){var e,t=this._.items,n=this.element.getDocument();for(e in t){var i=t[e];n.getById(i).removeClass("cke_selected"),n.getById(i+"_option").removeAttribute("aria-selected")}this.onUnmark&&this.onUnmark()},isMarked:function(e){return this.element.getDocument().getById(this._.items[e]).hasClass("cke_selected")},focus:function(e){this._.focusIndex=-1;var t,n=this.element.getElementsByTag("a"),i=-1;if(e){for(t=this.element.getDocument().getById(this._.items[e]).getFirst();e=n.getItem(++i);)if(e.equals(t)){this._.focusIndex=i;break}}else this.element.focus();t&&setTimeout(function(){t.focus()},0)}}})}}),CKEDITOR.plugins.add("richcombo",{requires:"floatpanel,listblock,button",beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_RICHCOMBO,CKEDITOR.ui.richCombo.handler)}}),function(){var e='<span id="{id}" class="cke_combo cke_combo__{name} {cls}" role="presentation"><span id="{id}_label" class="cke_combo_label">{label}</span><a class="cke_combo_button" hidefocus=true title="{title}" tabindex="-1"'+(CKEDITOR.env.gecko&&!CKEDITOR.env.hc?"":'" href="javascript:void(\'{titleJs}\')"')+' hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="true"';CKEDITOR.env.gecko&&CKEDITOR.env.mac&&(e+=' onkeypress="return false;"'),CKEDITOR.env.gecko&&(e+=' onblur="this.style.cssText = this.style.cssText;"');e=e+' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event,this);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" '+(CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+(CKEDITOR.env.hc?"▼":CKEDITOR.env.air?" ":"")+"</span></span></a></span>";var t=CKEDITOR.addTemplate("combo",e);CKEDITOR.UI_RICHCOMBO="richcombo",CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(e){CKEDITOR.tools.extend(this,e,{canGroup:!1,title:e.label,modes:{wysiwyg:1},editorFocus:1}),e=this.panel||{},delete this.panel,this.id=CKEDITOR.tools.getNextNumber(),this.document=e.parent&&e.parent.getDocument()||CKEDITOR.document,e.className="
1cke_combopanel",e.block={multiSelect:e.multiSelect,attributes:e.attributes},e.toolbarRelated=!0,this._={panelDefinition:e,items:{}}},proto:{renderHtml:function(e){var t=[];return this.render(e,t),t.join("")},render:function(e,n){function i(){if(this.getState()!=CKEDITOR.TRISTATE_ON){var t=this.modes[e.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;e.readOnly&&!this.readOnly&&(t=CKEDITOR.TRISTATE_DISABLED),this.setState(t),this.setValue(""),t!=CKEDITOR.TRISTATE_DISABLED&&this.refresh&&this.refresh()}}var o=CKEDITOR.env,a="cke_"+this.id,r=CKEDITOR.tools.addFunction(function(t){u&&(e.unlockSelection(1),u=0),l.execute(t)},this),s=this,l={id:a,combo:this,focus:function(){CKEDITOR.document.getById(a).getChild(1).focus()},execute:function(t){var n=s._;if(n.state!=CKEDITOR.TRISTATE_DISABLED)if(s.createPanel(e),n.on)n.panel.hide();else{s.commit();var i=s.getValue();i?n.list.mark(i):n.list.unmarkAll(),n.panel.showBlock(s.id,new CKEDITOR.dom.element(t),4)}},clickFn:r};e.on("activeFilterChange",i,this),e.on("mode",i,this),e.on("selectionChange",i,this),!this.readOnly&&e.on("readOnly",i,this);var c=CKEDITOR.tools.addFunction(function(t,n){var i=(t=new CKEDITOR.dom.event(t)).getKeystroke();switch(40==i&&e.once("panelShow",function(e){e.data._.panel._.currentBlock.onKeyDown(40)}),i){case 13:case 32:case 40:CKEDITOR.tools.callFunction(r,n);break;default:l.onkey(l,i)}t.preventDefault()}),d=CKEDITOR.tools.addFunction(function(){l.onfocus&&l.onfocus()}),u=0;return l.keyDownFn=c,o={id:a,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:o.gecko&&!o.hc?"":(this.title||"").replace("'",""),keydownFn:c,focusFn:d,clickFn:r},t.output(o,n),this.onRender&&this.onRender(),l},createPanel:function(e){if(!this._.panel){var t=this._.panelDefinition,n=this._.panelDefinition.block,i=t.parent||CKEDITOR.document.getBody(),o="cke_combopanel__"+this.name,a=new CKEDITOR.ui.floatPanel(e,i,t),r=a.addListBlock(this.id,n),s=this;a.onShow=function(){this.element.addClass(o),s.setState(CKEDITOR.TRISTATE_ON),s._.on=1,s.editorFocus&&!e.focusManager.hasFocus&&e.focus(),s.onOpen&&s.onOpen(),e.once("panelShow",function(){r.focus(!r.multiSelect&&s.getValue())})},a.onHide=function(t){this.element.removeClass(o),s.setState(s.modes&&s.modes[e.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),s._.on=0,!t&&s.onClose&&s.onClose()},a.onEscape=function(){a.hide(1)},r.onClick=function(e,t){s.onClick&&s.onClick.call(s,e,t),a.hide()},this._.panel=a,this._.list=r,a.getBlock(this.id).onHide=function(){s._.on=0,s.setState(CKEDITOR.TRISTATE_OFF)},this.init&&this.init()}},setValue:function(e,t){this._.value=e;var n=this.document.getById("cke_"+this.id+"_text");n&&(e||t?n.removeClass("cke_combo_inlinelabel"):(t=this.label,n.addClass("cke_combo_inlinelabel")),n.setText(void 0!==t?t:e))},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(e){this._.list.mark(e)},hideItem:function(e){this._.list.hideItem(e)},hideGroup:function(e){this._.list.hideGroup(e)},showAll:function(){this._.list.showAll()},add:function(e,t,n){this._.items[e]=n||e,this._.list.add(e,t,n)},startGroup:function(e){this._.list.startGroup(e)},commit:function(){this._.committed||(this._.list.commit(),this._.committed=1,CKEDITOR.ui.fire("ready",this)),this._.committed=1},setState:function(e){if(this._.state!=e){var t=this.document.getById("cke_"+this.id);t.setState(e,"cke_combo"),e==CKEDITOR.TRISTATE_DISABLED?t.setAttribute("aria-disabled",!0):t.removeAttribute("aria-disabled"),this._.state=e}},getState:function(){return this._.state},enable:function(){this._.state==CKEDITOR.TRISTATE_DISABLED&&this.setState(this._.lastState)},disable:function(){this._.state!=CKEDITOR.TRISTATE_DISABLED&&(this._.lastState=this._.state,this.setState(CKEDITOR.TRISTATE_DISABLED))}},statics:{handler:{create:function(e){return new CKEDITOR.ui.richCombo(e)}}}}),CKEDITOR.ui.prototype.addRichCombo=function(e,t){this.add(e,CKEDITOR.UI_RICHCOMBO,t)}}(),function(){function e(e,t,n,i,o,a,r,s){for(var l=e.config,c=new CKEDITOR.style(r),d=o.split(";"),u=(o=[],{}),h=0;h<d.length;h++){if(f=d[h]){var f=f.split("/"),p={},m=d[h]=f[0];p[n]=o[h]=f[1]||m,u[m]=new CKEDITOR.style(r,p),u[m]._.definition.name=m}else d.splice(h--,1)}e.ui.addRichCombo(t,{label:i.label,title:i.panelTitle,toolbar:"styles,"+s,allowedContent:c,requiredContent:c,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(l.contentsCss),multiSelect:!1,attributes:{"aria-label":i.panelTitle}},init:function(){this.startGroup(i.panelTitle);for(var e=0;e<d.length;e++){var t=d[e];this.add(t,u[t].buildPreview(),t)}},onClick:function(t){e.focus(),e.fire("saveSnapshot");var n=u[t];e[this.getValue()==t?"removeStyle":"applyStyle"](n),e.fire("saveSnapshot")},onRender:function(){e.on("selectionChange",function(t){for(var n,i=this.getValue(),o=(t=t.data.path.elements,0);o<t.length;o++){n=t[o];for(var r in u)if(u[r].checkElementMatch(n,!0,e))return void(r!=i&&this.setValue(r))}this.setValue("",a)},this)},refresh:function(){e.activeFilter.check(c)||this.setState(CKEDITOR.TRISTATE_DISABLED)}})}CKEDITOR.plugins.add("font",{requires:"richcombo",init:function(t){var n=t.config;e(t,"Font","family",t.lang.font,n.font_names,n.font_defaultLabel,n.font_style,30),e(t,"FontSize","size",t.lang.font.fontSize,n.fontSize_sizes,n.fontSize_defaultLabel,n.fontSize_style,40)}})}(),CKEDITOR.config.font_names="Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif",CKEDITOR.config.font_defaultLabel="",CKEDITOR.config.font_style={element:"span",styles:{"font-family":"#(family)"},overrides:[{element:"font",attributes:{face:null}}]},CKEDITOR.config.fontSize_sizes="8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px",CKEDITOR.config.fontSize_defaultLabel="",CKEDITOR.config.fontSize_style={element:"span",styles:{"font-size":"#(size)"},overrides:[{element:"font",attributes:{size:null}}]},CKEDITOR.plugins.add("forms",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss(".cke_editable form{border: 1px dotted #FF0000;padding: 2px;}\n"),CKEDITOR.addCss("img.cke_hidden{background-image: url("+CKEDITOR.getUrl(this.path+"images/hiddenfield.gif")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 16px !important;height: 16px !important;}")},init:function(e){var t=e.lang,n=0,i={email:1,password:1,search:1,tel:1,text:1,url:1},o={checkbox:"input[type,name,checked]",radio:"input[type,name,checked]",textfield:"input[type,name,value,size,maxlength]",textarea:"textarea[cols,rows,name]",select:"select[name,size,multiple]; option[value,selected]",button:"input[type,name,value]",form:"form[action,name,id,enctype,target,method]",hiddenfield:"input[type,name,value]",imagebutton:"input[type,alt,src]{width,height,border,border-width,border-style,margin,float}"},a={checkbox:"input",radio:"input",textfield:"input",textarea:"textarea",select:"select",button:"input",form:"form",hiddenfield:"input",imagebutton:"input"},r=function(i,r,s){var l={allowedContent:o[r],requiredContent:a[r]}
1;"form"==r&&(l.context="form"),e.addCommand(r,new CKEDITOR.dialogCommand(r,l)),e.ui.addButton&&e.ui.addButton(i,{label:t.common[i.charAt(0).toLowerCase()+i.slice(1)],command:r,toolbar:"forms,"+(n+=10)}),CKEDITOR.dialog.add(r,s)},s=this.path+"dialogs/";!e.blockless&&r("Form","form",s+"form.js"),r("Checkbox","checkbox",s+"checkbox.js"),r("Radio","radio",s+"radio.js"),r("TextField","textfield",s+"textfield.js"),r("Textarea","textarea",s+"textarea.js"),r("Select","select",s+"select.js"),r("Button","button",s+"button.js");var l=e.plugins.image;l&&!e.plugins.image2&&r("ImageButton","imagebutton",CKEDITOR.plugins.getPath("image")+"dialogs/image.js"),r("HiddenField","hiddenfield",s+"hiddenfield.js"),e.addMenuItems&&(r={checkbox:{label:t.forms.checkboxAndRadio.checkboxTitle,command:"checkbox",group:"checkbox"},radio:{label:t.forms.checkboxAndRadio.radioTitle,command:"radio",group:"radio"},textfield:{label:t.forms.textfield.title,command:"textfield",group:"textfield"},hiddenfield:{label:t.forms.hidden.title,command:"hiddenfield",group:"hiddenfield"},button:{label:t.forms.button.title,command:"button",group:"button"},select:{label:t.forms.select.title,command:"select",group:"select"},textarea:{label:t.forms.textarea.title,command:"textarea",group:"textarea"}},l&&(r.imagebutton={label:t.image.titleButton,command:"imagebutton",group:"imagebutton"}),!e.blockless&&(r.form={label:t.forms.form.menu,command:"form",group:"form"}),e.addMenuItems(r)),e.contextMenu&&(!e.blockless&&e.contextMenu.addListener(function(e,t,n){if((e=n.contains("form",1))&&!e.isReadOnly())return{form:CKEDITOR.TRISTATE_OFF}}),e.contextMenu.addListener(function(e){if(e&&!e.isReadOnly()){var t=e.getName();if("select"==t)return{select:CKEDITOR.TRISTATE_OFF};if("textarea"==t)return{textarea:CKEDITOR.TRISTATE_OFF};if("input"==t){var n=e.getAttribute("type")||"text";switch(n){case"button":case"submit":case"reset":return{button:CKEDITOR.TRISTATE_OFF};case"checkbox":return{checkbox:CKEDITOR.TRISTATE_OFF};case"radio":return{radio:CKEDITOR.TRISTATE_OFF};case"image":return l?{imagebutton:CKEDITOR.TRISTATE_OFF}:null}if(i[n])return{textfield:CKEDITOR.TRISTATE_OFF}}if("img"==t&&"hiddenfield"==e.data("cke-real-element-type"))return{hiddenfield:CKEDITOR.TRISTATE_OFF}}})),e.on("doubleclick",function(t){var n=t.data.element;if(!e.blockless&&n.is("form"))t.data.dialog="form";else if(n.is("select"))t.data.dialog="select";else if(n.is("textarea"))t.data.dialog="textarea";else if(n.is("img")&&"hiddenfield"==n.data("cke-real-element-type"))t.data.dialog="hiddenfield";else if(n.is("input")){switch(n=n.getAttribute("type")||"text"){case"button":case"submit":case"reset":t.data.dialog="button";break;case"checkbox":t.data.dialog="checkbox";break;case"radio":t.data.dialog="radio";break;case"image":t.data.dialog="imagebutton"}i[n]&&(t.data.dialog="textfield")}})},afterInit:function(e){var t=(n=e.dataProcessor)&&n.htmlFilter,n=n&&n.dataFilter;CKEDITOR.env.ie&&t&&t.addRules({elements:{input:function(e){var t=(e=e.attributes).type;t||(e.type="text"),("checkbox"==t||"radio"==t)&&"on"==e.value&&delete e.value}}},{applyToAll:!0}),n&&n.addRules({elements:{input:function(t){if("hidden"==t.attributes.type)return e.createFakeParserElement(t,"cke_hidden","hiddenfield")}}},{applyToAll:!0})}}),CKEDITOR.plugins.add("format",{requires:"richcombo",init:function(e){if(!e.blockless){for(var t=e.config,n=e.lang.format,i=t.format_tags.split(";"),o={},a=0,r=[],s=0;s<i.length;s++){var l=i[s],c=new CKEDITOR.style(t["format_"+l]);e.filter.customConfig&&!e.filter.check(c)||(a++,o[l]=c,o[l]._.enterMode=e.config.enterMode,r.push(c))}0!==a&&e.ui.addRichCombo("Format",{label:n.label,title:n.panelTitle,toolbar:"styles,20",allowedContent:r,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(t.contentsCss),multiSelect:!1,attributes:{"aria-label":n.panelTitle}},init:function(){this.startGroup(n.panelTitle);for(var e in o){var t=n["tag_"+e];this.add(e,o[e].buildPreview(t),t)}},onClick:function(t){e.focus(),e.fire("saveSnapshot");t=o[t];var n=e.elementPath();e[t.checkActive(n,e)?"removeStyle":"applyStyle"](t),setTimeout(function(){e.fire("saveSnapshot")},0)},onRender:function(){e.on("selectionChange",function(t){var n=this.getValue();t=t.data.path;this.refresh();for(var i in o)if(o[i].checkActive(t,e))return void(i!=n&&this.setValue(i,e.lang.format["tag_"+i]));this.setValue("")},this)},onOpen:function(){this.showAll();for(var t in o)e.activeFilter.check(o[t])||this.hideItem(t)},refresh:function(){var t=e.elementPath();if(t){if(t.isContextFor("p"))for(var n in o)if(e.activeFilter.check(o[n]))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}}})}}}),CKEDITOR.config.format_tags="p;h1;h2;h3;h4;h5;h6;pre;address;div",CKEDITOR.config.format_p={element:"p"},CKEDITOR.config.format_div={element:"div"},CKEDITOR.config.format_pre={element:"pre"},CKEDITOR.config.format_address={element:"address"},CKEDITOR.config.format_h1={element:"h1"},CKEDITOR.config.format_h2={element:"h2"},CKEDITOR.config.format_h3={element:"h3"},CKEDITOR.config.format_h4={element:"h4"},CKEDITOR.config.format_h5={element:"h5"},CKEDITOR.config.format_h6={element:"h6"},function(){var e={canUndo:!1,exec:function(e){var t=e.document.createElement("hr");e.insertElement(t)},allowedContent:"hr",requiredContent:"hr"};CKEDITOR.plugins.add("horizontalrule",{init:function(t){t.blockless||(t.addCommand("horizontalrule",e),t.ui.addButton&&t.ui.addButton("HorizontalRule",{label:t.lang.horizontalrule.toolbar,command:"horizontalrule",toolbar:"insert,40"}))}})}(),CKEDITOR.plugins.add("htmlwriter",{init:function(e){var t=new CKEDITOR.htmlWriter;t.forceSimpleAmpersand=e.config.forceSimpleAmpersand,t.indentationChars=e.config.dataIndentationChars||"\t",e.dataProcessor.writer=t}}),CKEDITOR.htmlWriter=CKEDITOR.tools.createClass({base:CKEDITOR.htmlParser.basicWriter,$:function(){this.base(),this.indentationChars="\t",this.selfClosingEnd=" />",this.lineBreakChars="\n",this.sortAttributes=1,this._.indent=0,this._.indentation="",this._.inPre=0,this._.rules={};var e,t=CKEDITOR.dtd;for(e in CKEDITOR.tools.extend({},t.$nonBodyContent,t.$block,t.$listItem,t.$tableContent))this.setRules(e,{indent:!t[e]["#"],breakBeforeOpen:1,breakBeforeClose:!t[e]["#"],breakAfterClose:1,needsSpace:e in t.$block&&!(e in{li:1,dt:1,dd:1})});this.setRules("br",{breakAfterOpen:1}),this.setRules("title",{indent:0,breakAfterOpen:0}),this.setRules("style",{indent:0,breakBeforeClose:1}),this.setRules("pre",{breakAfterOpen:1,indent:0})},proto:{openTag:function(e){var t=this._.rules[e];this._.afterCloser&&t&&t.needsSpace&&this._.needsSpace&&this._.output.push("\n"),this._.indent?this.indentation():t&&t.breakBeforeOpen&&(this.lineBreak(),this.indentation()),this._.output.push("<",e),this._.afterCloser=0},openTagClose:function(e,t){var n=this._.rules[e];t?(this._.output.push(this.selfClosingEnd),n&&n.breakAfterClose&&(this._.needsSpace=n.needsSpace)):(this._.output.push(">"),n&&n.indent&&(this._.indentation+=this.indentationChars)),n&&n.breakAfterOpen&&this.lineBreak(),"pre"==e&&(this._.inPre=1)},attribute:function(e,t){"string"==typeof t&&(this.forceSimpleAmpersand&&(t=t.replace(/&/g,"&")),t=CKEDITOR.tools.htmlEncodeAttr(t)),this._.output.push(" ",e,'="',t,'"')},closeTag:function(e){var t=this._.rules[e];t&&t.indent&&(this._.indentation=this._.indentation.substr(this.indentationChars.length)),this._.indent?this.indentation():t&&t.breakBeforeClose&&(this.lineBreak(),this.indentation()),this._.output.push("</",e,">"),"pre"==e&&(this._.inPre=0),t&&t.breakAfterClose&&(this.lineBreak(),this._.needsSpace=t.needsSpace),this._.afterCloser=1},text:function(e){this._.indent&&(this.indentation(),!this._.inPre&&(e=CKEDITOR.tools.ltrim(e))),this._.output.push(e)},comment:function(e){this._.indent&&this.indentation(),this._.output.push("\x3c!--",e,"--\x3e")},lineBreak:function(){!this._.inPre&&0<this._.output.length&&this._.output.push(this.lineBreakChars),this._.indent=1},indentation:function(){!this._.inPre&&this._.indentation&&this._.output.push(this._.indentation),this._.indent=0},reset:function(){this._.output=[],this._.indent=0,this._.indentation="",this._.afterCloser=0,this._.inPre=0},setRules:function(e,t){var n=this._.rules[e];
1n?CKEDITOR.tools.extend(n,t,!0):this._.rules[e]=t}}}),CKEDITOR.plugins.add("iframe",{requires:"dialog,fakeobjects",onLoad:function(){CKEDITOR.addCss("img.cke_iframe{background-image: url("+CKEDITOR.getUrl(this.path+"images/placeholder.png")+");background-position: center center;background-repeat: no-repeat;border: 1px solid #a9a9a9;width: 80px;height: 80px;}")},init:function(e){var t=e.lang.iframe,n="iframe[align,longdesc,frameborder,height,name,scrolling,src,title,width]";e.plugins.dialogadvtab&&(n+=";iframe"+e.plugins.dialogadvtab.allowedContent({id:1,classes:1,styles:1})),CKEDITOR.dialog.add("iframe",this.path+"dialogs/iframe.js"),e.addCommand("iframe",new CKEDITOR.dialogCommand("iframe",{allowedContent:n,requiredContent:"iframe"})),e.ui.addButton&&e.ui.addButton("Iframe",{label:t.toolbar,command:"iframe",toolbar:"insert,80"}),e.on("doubleclick",function(e){var t=e.data.element;t.is("img")&&"iframe"==t.data("cke-real-element-type")&&(e.data.dialog="iframe")}),e.addMenuItems&&e.addMenuItems({iframe:{label:t.title,command:"iframe",group:"image"}}),e.contextMenu&&e.contextMenu.addListener(function(e){if(e&&e.is("img")&&"iframe"==e.data("cke-real-element-type"))return{iframe:CKEDITOR.TRISTATE_OFF}})},afterInit:function(e){var t=e.dataProcessor;(t=t&&t.dataFilter)&&t.addRules({elements:{iframe:function(t){return e.createFakeParserElement(t,"cke_iframe","iframe",!0)}}})}}),function(){function e(e){var t=this.editor,n=e.document,i=n.body,o=n.getElementById("cke_actscrpt");o&&o.parentNode.removeChild(o),(o=n.getElementById("cke_shimscrpt"))&&o.parentNode.removeChild(o),(o=n.getElementById("cke_basetagscrpt"))&&o.parentNode.removeChild(o),CKEDITOR.env.gecko&&(i.contentEditable=!1,2e4>CKEDITOR.env.version&&(i.innerHTML=i.innerHTML.replace(/^.*<\!-- cke-content-start --\>/,""),setTimeout(function(){var e=new CKEDITOR.dom.range(new CKEDITOR.dom.document(n));e.setStart(new CKEDITOR.dom.node(i),0),t.getSelection().selectRanges([e])},0))),i.contentEditable=!0,CKEDITOR.env.ie&&(i.hideFocus=!0,i.disabled=!0,i.removeAttribute("disabled")),delete this._.isLoadingData,this.$=i,n=new CKEDITOR.dom.document(n),this.setup(),CKEDITOR.env.ie&&(n.getDocumentElement().addClass(n.$.compatMode),t.config.enterMode!=CKEDITOR.ENTER_P&&this.attachListener(n,"selectionchange",function(){var e=n.getBody(),i=t.getSelection(),o=i&&i.getRanges()[0];o&&e.getHtml().match(/^<p>(?: |<br>)<\/p>$/i)&&o.startContainer.equals(e)&&setTimeout(function(){(o=t.getSelection().getRanges()[0]).startContainer.equals("body")||(e.getFirst().remove(1),o.moveToElementEditEnd(e),o.select())},0)})),(CKEDITOR.env.webkit||CKEDITOR.env.ie&&10<CKEDITOR.env.version)&&n.getDocumentElement().on("mousedown",function(e){e.data.getTarget().is("html")&&setTimeout(function(){t.editable().focus()})}),function(e){function t(e){e.returnValue=!1}if(CKEDITOR.env.gecko)try{var n=e.document.$;n.execCommand("enableObjectResizing",!1,!e.config.disableObjectResizing),n.execCommand("enableInlineTableEditing",!1,!e.config.disableNativeTableHandles)}catch(e){}else CKEDITOR.env.ie&&11>CKEDITOR.env.version&&e.config.disableObjectResizing&&function(){var n;e.editable().attachListener(e,"selectionChange",function(){var i=e.getSelection().getSelectedElement();i&&(n&&(n.detachEvent("onresizestart",t),n=null),i.$.attachEvent("onresizestart",t),n=i.$)})}()}(t);try{t.document.$.execCommand("2D-position",!1,!0)}catch(e){}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&"CSS1Compat"==t.document.$.compatMode)&&this.attachListener(this,"keydown",function(e){var n=e.data.getKeystroke();if(33==n||34==n)if(CKEDITOR.env.ie)setTimeout(function(){t.getSelection().scrollIntoView()},0);else if(t.window.$.innerHeight>this.$.offsetHeight){var i=t.createRange();i[33==n?"moveToElementEditStart":"moveToElementEditEnd"](this),i.select(),e.data.preventDefault()}}),CKEDITOR.env.ie&&this.attachListener(n,"blur",function(){try{n.$.selection.empty()}catch(e){}}),CKEDITOR.env.iOS&&this.attachListener(n,"touchend",function(){e.focus()}),t.document.getElementsByTag("title").getItem(0).data("cke-title",t.document.$.title),CKEDITOR.env.ie&&(t.document.$.title=this._.docTitle),CKEDITOR.tools.setTimeout(function(){"unloaded"==this.status&&(this.status="ready"),t.fire("contentDom"),this._.isPendingFocus&&(t.focus(),this._.isPendingFocus=!1),setTimeout(function(){t.fire("dataReady")},0),CKEDITOR.env.ie&&setTimeout(function(){if(t.document){var e=t.document.$.body;e.runtimeStyle.marginBottom="0px",e.runtimeStyle.marginBottom=""}},1e3)},0,this)}CKEDITOR.plugins.add("wysiwygarea",{init:function(e){e.config.fullPage&&e.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"}),e.addMode("wysiwyg",function(n){function i(i){i&&i.removeListener(),e.editable(new t(e,a.$.contentWindow.document.body)),e.setData(e.getData(1),n)}var o="document.open();"+(CKEDITOR.env.ie?"("+CKEDITOR.tools.fixDomain+")();":"")+"document.close();",a=(o=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent(o)+"}())":"",CKEDITOR.dom.element.createFromHtml('<iframe src="'+o+'" frameBorder="0"></iframe>'));a.setStyles({width:"100%",height:"100%"}),a.addClass("cke_wysiwyg_frame cke_reset");var r=e.ui.space("contents");r.append(a),(o=CKEDITOR.env.ie||CKEDITOR.env.gecko)&&a.on("load",i);var s=e.title,l=e.fire("ariaEditorHelpLabel",{}).label;if(s&&(CKEDITOR.env.ie&&l&&(s+=", "+l),a.setAttribute("title",s)),l){s=CKEDITOR.tools.getNextId();var c=CKEDITOR.dom.element.createFromHtml('<span id="'+s+'" class="cke_voice_label">'+l+"</span>");r.append(c,1),a.setAttribute("aria-describedby",s)}e.on("beforeModeUnload",function(e){e.removeListener(),c&&c.remove()}),a.setAttributes({tabIndex:e.tabIndex,allowTransparency:"true"}),!o&&i(),CKEDITOR.env.webkit&&(o=function(){r.setStyle("width","100%"),a.hide(),a.setSize("width",r.getSize("width")),r.removeStyle("width"),a.show()},a.setCustomData("onResize",o),CKEDITOR.document.getWindow().on("resize",o)),e.fire("ariaWidget",a)})}}),CKEDITOR.editor.prototype.addContentsCss=function(e){var t=this.config,n=t.contentsCss;CKEDITOR.tools.isArray(n)||(t.contentsCss=n?[n]:[]),t.contentsCss.push(e)};var t=CKEDITOR.tools.createClass({$:function(t){this.base.apply(this,arguments),this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(t){CKEDITOR.tools.setTimeout(e,0,this,t)},this),this._.docTitle=this.getWindow().getFrame().getAttribute("title")},base:CKEDITOR.editable,proto:{setData:function(e,t){var n=this.editor;if(t)this.setHtml(e),n.fire("dataReady");else{this._.isLoadingData=!0,n._.dataStore={id:1};var i=n.config,o=i.fullPage,a=i.docType,r=CKEDITOR.tools.buildStyleHtml(function(){var e=[];
1if(8<=CKEDITOR.document.$.documentMode){e.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var t,n=[];for(t in CKEDITOR.dtd.$removeEmpty)n.push("html.CSS1Compat "+t+"[contenteditable=false]");e.push(n.join(",")+"{display:inline-block}")}else CKEDITOR.env.gecko&&(e.push("html{height:100% !important}"),e.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"));return e.push("html{cursor:text;*cursor:auto}"),e.push("img,input,textarea{cursor:default}"),e.join("\n")}()).replace(/<style>/,'<style data-cke-temp="1">');o||(r+=CKEDITOR.tools.buildStyleHtml(n.config.contentsCss));var s=i.baseHref?'<base href="'+i.baseHref+'" data-cke-temp="1" />':"";o&&(e=e.replace(/<!DOCTYPE[^>]*>/i,function(e){return n.docType=a=e,""}).replace(/<\?xml\s[^\?]*\?>/i,function(e){return n.xmlDeclaration=e,""})),e=n.dataProcessor.toHtml(e),o?(/<body[\s|>]/.test(e)||(e="<body>"+e),/<html[\s|>]/.test(e)||(e="<html>"+e+"</html>"),/<head[\s|>]/.test(e)?/<title[\s|>]/.test(e)||(e=e.replace(/<head[^>]*>/,"$&<title></title>")):e=e.replace(/<html[^>]*>/,"$&<head><title></title></head>"),s&&(e=e.replace(/<head>/,"$&"+s)),e=e.replace(/<\/head\s*>/,r+"$&"),e=a+e):e=i.docType+'<html dir="'+i.contentsLangDirection+'" lang="'+(i.contentsLanguage||n.langCode)+'"><head><title>'+this._.docTitle+"</title>"+s+r+"</head><body"+(i.bodyId?' id="'+i.bodyId+'"':"")+(i.bodyClass?' class="'+i.bodyClass+'"':"")+">"+e+"</body></html>",CKEDITOR.env.gecko&&(e=e.replace(/<body/,'<body contenteditable="true" '),2e4>CKEDITOR.env.version&&(e=e.replace(/<body[^>]*>/,"$&\x3c!-- cke-content-start --\x3e"))),i='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ':"")+">var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"<\/script>",CKEDITOR.env.ie&&9>CKEDITOR.env.version&&(i+='<script id="cke_shimscrpt">window.parent.CKEDITOR.tools.enableHtml5Elements(document)<\/script>'),s&&CKEDITOR.env.ie&&10>CKEDITOR.env.version&&(i+='<script id="cke_basetagscrpt">var baseTag = document.querySelector( "base" );baseTag.href = baseTag.href;<\/script>'),e=e.replace(/(?=\s*<\/(:?head)>)/,i),this.clearCustomData(),this.clearListeners(),n.fire("contentDomUnload");var l=this.getDocument();try{l.write(e)}catch(t){setTimeout(function(){l.write(e)},0)}}},getData:function(e){if(e)return this.getHtml();var t=(e=this.editor).config,n=(a=t.fullPage)&&e.docType,i=a&&e.xmlDeclaration,o=this.getDocument(),a=a?o.getDocumentElement().getOuterHtml():o.getBody().getHtml();return CKEDITOR.env.gecko&&t.enterMode!=CKEDITOR.ENTER_BR&&(a=a.replace(/<br>(?=\s*(:?$|<\/body>))/,"")),a=e.dataProcessor.toDataFormat(a),i&&(a=i+"\n"+a),n&&(a=n+"\n"+a),a},focus:function(){this._.isLoadingData?this._.isPendingFocus=!0:t.baseProto.focus.call(this)},detach:function(){var e=(n=this.editor).document,n=n.window.getFrame();t.baseProto.detach.call(this),this.clearCustomData(),e.getDocumentElement().clearCustomData(),n.clearCustomData(),CKEDITOR.tools.removeFunction(this._.frameLoadedHandler),(e=n.removeCustomData("onResize"))&&e.removeListener(),n.remove()}}})}(),CKEDITOR.config.disableObjectResizing=!1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.contentsCss=CKEDITOR.getUrl("contents.css"),function(){function e(e,t){if(t||(t=e.getSelection().getSelectedElement()),t&&t.is("img")&&!t.data("cke-realelement")&&!t.isReadOnly())return t}function t(e){var t=e.getStyle("float");return"inherit"!=t&&"none"!=t||(t=0),t||(t=e.getAttribute("align")),t}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(t){if(!t.plugins.image2){CKEDITOR.dialog.add("image",this.path+"dialogs/image.js");var n="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(t,"image","advanced")&&(n="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)"),t.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:n,requiredContent:"img[alt,src]",contentTransformations:[["img{width}
1: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]})),t.ui.addButton&&t.ui.addButton("Image",{label:t.lang.common.image,command:"image",toolbar:"insert,10"}),t.on("doubleclick",function(e){var t=e.data.element;t.is("img")&&!t.data("cke-realelement")&&!t.isReadOnly()&&(e.data.dialog="image")}),t.addMenuItems&&t.addMenuItems({image:{label:t.lang.image.menu,command:"image",group:"image"}}),t.contextMenu&&t.contextMenu.addListener(function(n){if(e(t,n))return{image:CKEDITOR.TRISTATE_OFF}})}},afterInit:function(n){function i(i){var o=n.getCommand("justify"+i);o&&("left"!=i&&"right"!=i||o.on("exec",function(o){var a=e(n);a&&(t(a)==i?(a.removeStyle("float"),i==t(a)&&a.removeAttribute("align")):a.setStyle("float",i),o.cancel())}),o.on("refresh",function(o){var a=e(n);a&&(a=t(a),this.setState(a==i?CKEDITOR.TRISTATE_ON:"right"==i||"left"==i?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),o.cancel())}))}n.plugins.image2||(i("left"),i("right"),i("center"),i("block"))}})}(),CKEDITOR.config.image_removeLinkByEmptyURL=!0,function(){function e(e,i){var o,a;i.on("refresh",function(e){var i,o=[t];for(i in e.data.states)o.push(e.data.states[i]);this.setState(CKEDITOR.tools.search(o,n)?n:t)},i,null,100),i.on("exec",function(t){o=e.getSelection(),a=o.createBookmarks(1),t.data||(t.data={}),t.data.done=!1},i,null,0),i.on("exec",function(){e.forceNextSelectionCheck(),o.selectBookmarks(a)},i,null,100)}var t=CKEDITOR.TRISTATE_DISABLED,n=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indent",{init:function(t){var n=CKEDITOR.plugins.indent.genericDefinition;e(t,t.addCommand("indent",new n(!0))),e(t,t.addCommand("outdent",new n)),t.ui.addButton&&(t.ui.addButton("Indent",{label:t.lang.indent.indent,command:"indent",directional:!0,toolbar:"indent,20"}),t.ui.addButton("Outdent",{label:t.lang.indent.outdent,command:"outdent",directional:!0,toolbar:"indent,10"})),t.on("dirChanged",function(e){var n=t.createRange(),i=e.data.node;n.setStartBefore(i),n.setEndAfter(i);for(var o,a=new CKEDITOR.dom.walker(n);o=a.next();)if(o.type==CKEDITOR.NODE_ELEMENT)if(!o.equals(i)&&o.getDirection())n.setStartAfter(o),a=new CKEDITOR.dom.walker(n);else{var r=t.config.indentClasses;if(r)for(var s="ltr"==e.data.dir?["_rtl",""]:["","_rtl"],l=0;l<r.length;l++)o.hasClass(r[l]+s[0])&&(o.removeClass(r[l]+s[0]),o.addClass(r[l]+s[1]));r=o.getStyle("margin-right"),s=o.getStyle("margin-left"),r?o.setStyle("margin-left",r):o.removeStyle("margin-left"),s?o.setStyle("margin-right",s):o.removeStyle("margin-right")}})}}),CKEDITOR.plugins.indent={genericDefinition:function(e){this.isIndent=!!e,this.startDisabled=!this.isIndent},specificDefinition:function(e,t,n){this.name=t,this.editor=e,this.jobs={},this.enterBr=e.config.enterMode==CKEDITOR.ENTER_BR,this.isIndent=!!n,this.relatedGlobal=n?"indent":"outdent",this.indentKey=n?9:CKEDITOR.SHIFT+9,this.database={}},registerCommands:function(e,t){e.on("pluginsLoaded",function(){for(var e in t)!function(e,t){var n,i=e.getCommand(t.relatedGlobal);for(n in t.jobs)i.on("exec",function(i){i.data.done||(e.fire("lockSnapshot"),t.execJob(e,n)&&(i.data.done=!0),e.fire("unlockSnapshot"),CKEDITOR.dom.element.clearAllMarkers(t.database))},this,null,n),i.on("refresh",function(i){i.data.states||(i.data.states={}),i.data.states[t.name+"@"+n]=t.refreshJob(e,n,i.data.path)},this,null,n);e.addFeature(t)}(this,t[e])})}},CKEDITOR.plugins.indent.genericDefinition.prototype={context:"p",exec:function(){}},CKEDITOR.plugins.indent.specificDefinition.prototype={execJob:function(e,n){var i=this.jobs[n];if(i.state!=t)return i.exec.call(this,e)},refreshJob:function(e,n,i){return n=this.jobs[n],n.state=e.activeFilter.checkFeature(this)?n.refresh.call(this,e,i):t,n.state},getContext:function(e){return e.contains(this.context)}}}(),function(){function e(e,n,i){if(!e.getCustomData("indent_processed")){var o=this.editor,a=this.isIndent;if(n){if(o=e.$.className.match(this.classNameRegex),i=0,o&&(o=o[1],i=CKEDITOR.tools.indexOf(n,o)+1),0>(i+=a?1:-1))return;i=Math.min(i,n.length),i=Math.max(i,0),e.$.className=CKEDITOR.tools.ltrim(e.$.className.replace(this.classNameRegex,"")),0<i&&e.addClass(n[i-1])}else{n=t(e,i),i=parseInt(e.getStyle(n),10);var r=o.config.indentOffset||40;if(isNaN(i)&&(i=0),0>(i+=(a?1:-1)*r))return;i=Math.max(i,0),i=Math.ceil(i/r)*r,e.setStyle(n,i?i+(o.config.indentUnit||"px"):""),""===e.getAttribute("style")&&e.removeAttribute("style")}CKEDITOR.dom.element.setMarker(this.database,e,"indent_processed",1)}}function t(e,t){return"ltr"==(t||e.getComputedStyle("direction"))?"margin-left":"margin-right"}var n=CKEDITOR.dtd.$listItem,i=CKEDITOR.dtd.$list,o=CKEDITOR.TRISTATE_DISABLED,a=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentblock",{requires:"indent",init:function(r){function s(r,s){l.specificDefinition.apply(this,arguments),this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:!0,styles:c?null:"margin-left,margin-right",classes:c||null}},this.enterBr&&(this.allowedContent.div=!0),this.requiredContent=(this.enterBr?"div":"p")+(c?"("+c.join(",")+")":"{margin-left}"),this.jobs={20:{refresh:function(e,i){if((s=i.block||i.blockLimit).is(n))s=s.getParent();else if(s.getAscendant(n))return o;if(!this.enterBr&&!this.getContext(i))return o;if(c){var r;r=c;var s=s.$.className.match(this.classNameRegex),l=this.isIndent;return(r=s?!l||s[1]!=r.slice(-1):l)?a:o}return this.isIndent?a:s?CKEDITOR[(parseInt(s.getStyle(t(s)),10)||0)<=0?"TRISTATE_DISABLED":"TRISTATE_OFF"]:o},exec:function(t){var n,o=(o=t.getSelection())&&o.getRanges()[0];if(n=t.elementPath().contains(i))e.call(this,n,c);else for(o=o.createIterator(),t=t.config.enterMode,o.enforceRealBlocks=!0,o.enlargeBr=t!=CKEDITOR.ENTER_BR;n=o.getNextParagraph(t==CKEDITOR.ENTER_P?"p":"div");)n.isReadOnly()||e.call(this,n,c);return!0}}}}var l=CKEDITOR.plugins.indent,c=r.config.indentClasses;l.registerCommands(r,{indentblock:new s(r,"indentblock",!0),outde
1ntblock:new s(r,"outdentblock")}),CKEDITOR.tools.extend(s.prototype,l.specificDefinition.prototype,{context:{div:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,p:1,pre:1,table:1},classNameRegex:c?RegExp("(?:^|\\s+)("+c.join("|")+")(?=$|\\s)"):null})}})}(),function(){function e(e){function t(t){for(var n=o.startContainer,l=o.endContainer;n&&!n.getParent().equals(t);)n=n.getParent();for(;l&&!l.getParent().equals(t);)l=l.getParent();if(!n||!l)return!1;for(var c=n,d=(n=[],!1);!d;)c.equals(l)&&(d=!0),n.push(c),c=c.getNext();if(1>n.length)return!1;for(c=t.getParents(!0),l=0;l<c.length;l++)if(c[l].getName&&s[c[l].getName()]){t=c[l];break}c=a.isIndent?1:-1,l=n[0],n=n[n.length-1];var u=(d=CKEDITOR.plugins.list.listToArray(t,r))[n.getCustomData("listarray_index")].indent;for(l=l.getCustomData("listarray_index");l<=n.getCustomData("listarray_index");l++)if(d[l].indent+=c,0<c){var h=d[l].parent;d[l].parent=new CKEDITOR.dom.element(h.getName(),h.getDocument())}for(l=n.getCustomData("listarray_index")+1;l<d.length&&d[l].indent>u;l++)d[l].indent+=c;if(n=CKEDITOR.plugins.list.arrayToList(d,r,null,e.config.enterMode,t.getDirection()),!a.isIndent){var f;if((f=t.getParent())&&f.is("li")){c=n.listNode.getChildren();var p,m=[];for(l=c.count()-1;0<=l;l--)(p=c.getItem(l))&&p.is&&p.is("li")&&m.push(p)}}if(n&&n.listNode.replace(t),m&&m.length)for(l=0;l<m.length;l++){for(p=t=m[l];(p=p.getNext())&&p.is&&p.getName()in s;)CKEDITOR.env.needsNbspFiller&&!t.getFirst(i)&&t.append(o.document.createText(" ")),t.append(p);t.insertAfter(f)}return n&&e.fire("contentDomInvalidated"),!0}for(var o,a=this,r=this.database,s=this.context,l=((l=e.getSelection())&&l.getRanges()).createIterator();o=l.getNextRange();){for(var c=o.getCommonAncestor();c&&(c.type!=CKEDITOR.NODE_ELEMENT||!s[c.getName()]);)c=c.getParent();if(c||(c=o.startPath().contains(s))&&o.setEndAt(c,CKEDITOR.POSITION_BEFORE_END),!c){var d=o.getEnclosedNode();d&&d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in s&&(o.setStartAt(d,CKEDITOR.POSITION_AFTER_START),o.setEndAt(d,CKEDITOR.POSITION_BEFORE_END),c=d)}if(c&&o.startContainer.type==CKEDITOR.NODE_ELEMENT&&o.startContainer.getName()in s&&(d=new CKEDITOR.dom.walker(o),d.evaluator=n,o.startContainer=d.next()),c&&o.endContainer.type==CKEDITOR.NODE_ELEMENT&&o.endContainer.getName()in s&&(d=new CKEDITOR.dom.walker(o),d.evaluator=n,o.endContainer=d.previous()),c)return t(c)}return 0}function t(e,t){return t||(t=e.contains(this.context)),t&&e.block&&e.block.equals(t.getFirst(n))}function n(e){return e.type==CKEDITOR.NODE_ELEMENT&&e.is("li")}function i(e){return o(e)&&a(e)}var o=CKEDITOR.dom.walker.whitespaces(!0),a=CKEDITOR.dom.walker.bookmark(!1,!0),r=CKEDITOR.TRISTATE_DISABLED,s=CKEDITOR.TRISTATE_OFF;CKEDITOR.plugins.add("indentlist",{requires:"indent",init:function(n){function i(n,i){o.specificDefinition.apply(this,arguments),this.requiredContent=["ul","ol"],n.on("key",function(e){if("wysiwyg"==n.mode&&e.data.keyCode==this.indentKey){var i=this.getContext(n.elementPath());!i||this.isIndent&&t.call(this,n.elementPath(),i)||(n.execCommand(this.relatedGlobal),e.cancel())}},this),this.jobs[this.isIndent?10:30]={refresh:this.isIndent?function(e,n){var i=this.getContext(n),o=t.call(this,n,i);return i&&this.isIndent&&!o?s:r}:function(e,t){return!this.getContext(t)||this.isIndent?r:s},exec:CKEDITOR.tools.bind(e,this)}}var o=CKEDITOR.plugins.indent;o.registerCommands(n,{indentlist:new i(n,"indentlist",!0),outdentlist:new i(n,"outdentlist")}),CKEDITOR.tools.extend(i.prototype,o.specificDefinition.prototype,{context:{ol:1,ul:1}})}})}(),CKEDITOR.plugins.add("smiley",{requires:"dialog",init:function(e){e.config.smiley_path=e.config.smiley_path||this.path+"images/",e.addCommand("smiley",new CKEDITOR.dialogCommand("smiley",{allowedContent:"img[alt,height,!src,title,width]",requiredContent:"img"})),e.ui.addButton&&e.ui.addButton("Smiley",{label:e.lang.smiley.toolbar,command:"smiley",toolbar:"insert,50"}),CKEDITOR.dialog.add("smiley",this.path+"dialogs/smiley.js")}}),CKEDITOR.config.smiley_images="regular_smile.png sad_smile.png wink_smile.png teeth_smile.png confused_smile.png tongue_smile.png embarrassed_smile.png omg_smile.png whatchutalkingabout_smile.png angry_smile.png angel_smile.png shades_smile.png devil_smile.png cry_smile.png lightbulb.png thumbs_down.png thumbs_up.png heart.png broken_heart.png kiss.png envelope.png".split(" "),CKEDITOR.config.smiley_descriptions="smiley;sad;wink;laugh;frown;cheeky;blush;surprise;indecision;angry;angel;cool;devil;crying;enlightened;no;yes;heart;broken heart;kiss;mail".split(";"),function(){function e(e,t){var n;if(t=void 0===t||t)n=e.getComputedStyle("text-align");else{for(;(!e.hasAttribute||!e.hasAttribute("align")&&!e.getStyle("text-align"))&&(n=e.getParent());)e=n;n=e.getStyle("text-align")||e.getAttribute("align")||""}return n&&(n=n.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,"")),!n&&t&&(n="rtl"==e.getComputedStyle("direction")?"right":"left"),n}function t(e,t,n){this.editor=e,this.name=t,this.value=n,this.context="p";t=e.config.justifyClasses;var i=e.config.enterMode==CKEDITOR.ENTER_P?"p":"div";if(t){switch(n){case"left":this.cssClassName=t[0];break;case"center":this.cssClassName=t[1];break;case"right":this.cssClassName=t[2];break;case"justify":this.cssClassName=t[3]}this.cssClassRegex=RegExp("(?:^|\\s+)(?:"+t.join("|")+")(?=$|\\s)"),this.requiredContent=i+"("+this.cssClassName+")"}else this.requiredContent=i+"{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:!0,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}},e.config.enterMode==CKEDITOR.ENTER_BR&&(this.allowedContent.div=!0)}function n(e){var t=e.editor,n=t.createRange();n.setStartBefore(e.data.node),n.setEndAfter(e.data.node);for(var i,o=new CKEDITOR.dom.walker(n);i=o.next();)if(i.type==CKEDITOR.NODE_ELEMENT)if(!i.equals(e.data.node)&&i.getDirection())n.setStartAfter(i),o=new CKEDITOR.dom.walker(n);else{var a=t.config.justifyClasses;a&&(i.hasClass(a[0])?(i.removeClass(a[0]),i.addClass(a[2])):i.hasClass(a[2])&&(i.removeClass(a[2]),i.addClass(a[0]))),"left"==(a=i.getStyle("text-align"))?i.setStyle("text-align","right"):"right"==a&&i.setStyle("text-align","left")}}t.prototype={exec:function(t){var n=t.getSelection(),i=t.config.enterMode;if(n){for(var o,a,r=n.createBookmarks(),s=n.getRanges(),l=this.cssClassName,c=void 0===(c=t.config.useComputedState)||c,d=s.length-1;0<=d;d--)for((o=s[d].createIterator()).enlargeBr=i!=CKEDITOR.ENTER_BR;a=o.getNextParagraph(i==CKEDITOR.ENTER_P?"p":"div");)if(!a.isReadOnly()){a.removeAttribute("align"),a.removeStyle("text-align");var u=l&&(a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(this.cssClassRegex,""))),h=this.state==CKEDITOR.TRISTATE_OFF&&(!c||e(a,!0)!=this.value);l?h?a.addClass(l):u||a.removeAttribute("class"):h&&a.setStyle("text-align",this.value)}t.focus(),t.forceNextSelectionCheck(),n.selectBookmarks(r)}},refresh:function(t,n){var i=n.block||n.blockLimit;this.setState("body"!=i.getName()&&e(i,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}},CKEDITOR.plugins.add("justify",{init:function(e){if(!e.blockless){var i=new t(e,"justifyleft","left"),o=new t(e,"justifycenter","center"),a=new t(e,"justifyright","right"),r=new t(e,"justifyblock","justify");e.addCommand("justifyleft",i),e.addCommand("justifycenter",o),e.addCommand("justifyright",a),e.addCommand("justifyblock",r),e.ui.addButton&&(e.ui.addButton("JustifyLeft",{label:e.lang.justify.left,command:"justifyleft",toolbar:"align,10"}),e.ui.addButton("JustifyCenter",{label:e.lang.justify.center,command:"justifycenter",toolbar:"align,20"}),e.ui.addButton("JustifyRight",{label:e.lang.justify.right,command:"justifyright",toolbar:"align,30"}),e.ui.addButton("JustifyBlock",{label:e.lang.justify.block,command:"justifyblock",toolbar:"align,40"})),e.on("dirChanged",n)}}})}(),CKEDITOR.plugins.add("menubutton",{requires:"button,menu",onLoad:function(){var e=function(e){var t=this._,n=t.menu;t.state!==CKEDITOR.TRISTATE_DISABLED&&(t.on&&n?n.hide():(t.previousState=t.state,n||(n=t.menu=new CKEDITOR.menu(e,{panel:{className:"cke_menu_panel",attributes:{"aria-label":e.lang.common.options}}}),n.onHide=CKEDITOR.tools.bind(function(){var n=this.command?e.getCommand(this.command).modes:this.modes;this.setState(!n||n[e.mode]?t.previousState:CKEDITOR.TRISTATE_DISABLED),t.on=0},this),this.onMenu&&n.addListener(this.onMenu)),this.setState(CKEDITOR.TRISTATE_ON),t.on=1,setTimeout(function(){n.show(CKEDITOR.document.getById(t.id),4)},0)))};CKEDITOR.ui.menuButton=CKEDITOR.tools.createClass({base:CKEDITOR.ui.button,$:function(t){delete t.panel,this.base(t),this.hasArrow=!0,this.click=e},statics:{handler:{create:function(e){return new CKEDITOR.ui.menuButton(e)}}}})},beforeInit:function(e){e.ui.addHandler(CKEDITOR.UI_MENUBUTTON,CKEDITOR.ui.menuButton.handler)}}),CKEDITOR.UI_MENUBUTTON="menubutton",CKEDITOR.plugins.add("language",{requires:"menubutton",init:function(e){var t,n,i,o,a=e.config.language_list||["ar:Arabic:rtl","fr:French","es:Spanish"],r=this,s=e.lang.language,l={};for(e.addCommand("language",{allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",contextSensitive:!0,exec:function(e,t){var n=l["language_"+t];n&&e[n.style.checkActive(e.elementPath(),e)?"removeStyle":"applyStyle"](n.style)},refresh:function(e){this.setState(r.getCurrentLangElement(e)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}}),o=0;o<a.length;o++)t=a[o].split(":"),n=t[0],i="language_"+n,l[i]={label:t[1],langId:n,group:"language",order:o,ltr:"rtl"!=(""+t[2]).toLowerCase(),onClick:function(){e.execCommand("language",this.langId)},role:"menuitemcheckbox"},l[i].style=new CKEDITOR.style({element:"span",attributes:{lang:n,dir:l[i].ltr?"ltr":"rtl"}});l.language_remove={label:s.remove,group:"language_remove",state:CKEDITOR.TRISTATE_DISABLED,order:l.length,onClick:function(){var t=r.getCurrentLangElement(e);t&&e.execCommand("language",t.getAttribute("lang"))}},e.addMenuGroup("language",1),e.addMenuGroup("language_remove"),e.addMenuItems(l),e.ui.add("Language",CKEDITOR.UI_MENUBUTTON,{label:s.button,allowedContent:"span[!lang,!dir]",requiredContent:"span[lang,dir]",toolbar:"bidi,30",command:"language",onMenu:function(){var t,n={},i=r.getCurrentLangElement(e);for(t in l)n[t]=CKEDITOR.TRISTATE_OFF;return n.language_remove=i?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,i&&(n["language_"+i.getAttribute("lang")]=CKEDITOR.TRISTATE_ON),n}})},getCurrentLangElement:function(e){var t,n=e.elementPath();e=n&&n.elements;if(n)for(var i=0;i<e.length;i++)n=e[i],!t&&"span"==n.getName()&&n.hasAttribute("dir")&&n.hasAttribute("lang")&&(t=n);return t}}),function(){function e(e){return e.replace(/'/g,"\\$&")}CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function e(e){return n.replace(/%1/g,"rtl"==e?"right":"left").replace(/%2/g,"cke_contents_"+e)}var t="background:url("+CKEDITOR.getUrl(this.path+"images"+(CKEDITOR.env.hidpi?"/
1hidpi":"")+"/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;background-size:16px;",n=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+t+"padding-%1:18px;cursor:auto;}.%2 img.cke_anchor{"+t+"width:16px;min-height:15px;height:1.15em;vertical-align:text-bottom;}";CKEDITOR.addCss(e("ltr")+e("rtl"))},init:function(e){var t="a[!href]";CKEDITOR.dialog.isTabEnabled(e,"link","advanced")&&(t=t.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type]{*}(*)")),CKEDITOR.dialog.isTabEnabled(e,"link","target")&&(t=t.replace("]",",target,onclick]")),e.addCommand("link",new CKEDITOR.dialogCommand("link",{allowedContent:t,requiredContent:"a[href]"})),e.addCommand("anchor",new CKEDITOR.dialogCommand("anchor",{allowedContent:"a[!name,id]",requiredContent:"a[name]"})),e.addCommand("unlink",new CKEDITOR.unlinkCommand),e.addCommand("removeAnchor",new CKEDITOR.removeAnchorCommand),e.setKeystroke(CKEDITOR.CTRL+76,"link"),e.ui.addButton&&(e.ui.addButton("Link",{label:e.lang.link.toolbar,command:"link",toolbar:"links,10"}),e.ui.addButton("Unlink",{label:e.lang.link.unlink,command:"unlink",toolbar:"links,20"}),e.ui.addButton("Anchor",{label:e.lang.link.anchor.toolbar,command:"anchor",toolbar:"links,30"})),CKEDITOR.dialog.add("link",this.path+"dialogs/link.js"),CKEDITOR.dialog.add("anchor",this.path+"dialogs/anchor.js"),e.on("doubleclick",function(t){var n=CKEDITOR.plugins.link.getSelectedLink(e)||t.data.element;n.isReadOnly()||(n.is("a")?(t.data.dialog=!n.getAttribute("name")||n.getAttribute("href")&&n.getChildCount()?"link":"anchor",t.data.link=n):CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,n)&&(t.data.dialog="anchor"))},null,null,0),e.on("doubleclick",function(t){t.data.dialog in{link:1,anchor:1}&&t.data.link&&e.getSelection().selectElement(t.data.link)},null,null,20),e.addMenuItems&&e.addMenuItems({anchor:{label:e.lang.link.anchor.menu,command:"anchor",group:"anchor",order:1},removeAnchor:{label:e.lang.link.anchor.remove,command:"removeAnchor",group:"anchor",order:5},link:{label:e.lang.link.menu,command:"link",group:"link",order:1},unlink:{label:e.lang.link.unlink,command:"unlink",group:"link",order:5}}),e.contextMenu&&e.contextMenu.addListener(function(t){if(!t||t.isReadOnly())return null;if(!(t=CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t))&&!(t=CKEDITOR.plugins.link.getSelectedLink(e)))return null;var n={};return t.getAttribute("href")&&t.getChildCount()&&(n={link:CKEDITOR.TRISTATE_OFF,unlink:CKEDITOR.TRISTATE_OFF}),t&&t.hasAttribute("name")&&(n.anchor=n.removeAnchor=CKEDITOR.TRISTATE_OFF),n}),this.compiledProtectionFunction=function(e){var t;return(e=e.config.emailProtection||"")&&"encode"!=e&&(t={},e.replace(/^([^(]+)\(([^)]+)\)$/,function(e,n,i){t.name=n,t.params=[],i.replace(/[^,\s]+/g,function(e){t.params.push(e)})})),t}(e)},afterInit:function(e){e.dataProcessor.dataFilter.addRules({elements:{a:function(t){return t.attributes.name?t.children.length?null:e.createFakeParserElement(t,"cke_anchor","anchor"):null}}});var t=e._.elementsPath&&e._.elementsPath.filters;t&&t.push(function(t,n){if("a"==n&&(CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t)||t.getAttribute("name")&&(!t.getAttribute("href")||!t.getChildCount())))return"anchor"})}});var t=/^javascript:/,n=/^mailto:([^?]+)(?:\?(.+))?$/,i=/subject=([^;?:@&=$,\/]*)/,o=/body=([^;?:@&=$,\/]*)/,a=/^#(.*)$/,r=/^((?:http|https|ftp|news):\/\/)?(.*)$/,s=/^(_(?:self|top|parent|blank))$/,l=/^javascript:void\(location\.href='mailto:'\+String\.fromCharCode\(([^)]+)\)(?:\+'(.*)')?\)$/,c=/^javascript:([^(]+)\(([^)]+)\)$/,d=/\s*window.open\(\s*this\.href\s*,\s*(?:'([^']*)'|null)\s*,\s*'([^']*)'\s*\)\s*;\s*return\s*false;*\s*/,u=/(?:^|,)([^=]+)=(\d+|yes|no)/gi,h={id:"advId",dir:"advLangDir",accessKey:"advAccessKey",name:"advName",lang:"advLangCode",tabindex:"advTabIndex",title:"advTitle",type:"advContentType",class:"advCSSClasses",charset:"advCharset",style:"advStyles",rel:"advRel"};CKEDITOR.plugins.link={getSelectedLink:function(e){var t=e.getSelection(),n=t.getSelectedElement();return n&&n.is("a")?n:(t=t.getRanges()[0])?(t.shrink(CKEDITOR.SHRINK_TEXT),e.elementPath(t.getCommonAncestor()).contains("a",1)):null},getEditorAnchors:function(e){for(var t,n=(i=(n=e.editable()).isInline()&&!e.plugins.divarea?e.document:n).getElementsByTag("a"),i=i.getElementsByTag("img"),o=[],a=0;t=n.getItem(a++);)(t.data("cke-saved-name")||t.hasAttribute("name"))&&o.push({name:t.data("cke-saved-name")||t.getAttribute("name"),id:t.getAttribute("id")});for(a=0;t=i.getItem(a++);)(t=this.tryRestoreFakeAnchor(e,t))&&o.push({name:t.getAttribute("name"),id:t.getAttribute("id")});return o},fakeAnchor:!0,tryRestoreFakeAnchor:function(e,t){if(t&&t.data("cke-real-element-type")&&"anchor"==t.data("cke-real-element-type")){var n=e.restoreRealElement(t);if(n.data("cke-saved-name"))return n}},parseLinkAttributes:function(e,f){var p,m=f&&(f.data("cke-saved-href")||f.getAttribute("href"))||"",g=e.plugins.link.compiledProtectionFunction,E=e.config.emailProtection,v={};if(m.match(t)&&("encode"==E?m=m.replace(l,function(e,t,n){return"mailto:"+String.fromCharCode.apply(String,t.split(","))+(n&&n.replace(/\\'/g,"'"))}):E&&m.replace(c,function(e,t,n){if(t==g.name){v.type="email";e=v.email={},t=/(^')|('$)/g;for(var i,o,a=(n=n.match(/[^,\s]+/g)).length,r=0;r<a;r++)i=decodeURIComponent,o=n[r].replace(t,"").replace(/\\'/g,"'"),o=i(o),i=g.params[r].toLowerCase(),e[i]=o;e.address=[e.name,e.domain].join("@")}}
1)),!v.type)if(E=m.match(a))v.type="anchor",v.anchor={},v.anchor.name=v.anchor.id=E[1];else if(E=m.match(n)){p=m.match(i),m=m.match(o),v.type="email";var T=v.email={};T.address=E[1],p&&(T.subject=decodeURIComponent(p[1])),m&&(T.body=decodeURIComponent(m[1]))}else m&&(p=m.match(r))&&(v.type="url",v.url={},v.url.protocol=p[1],v.url.url=p[2]);if(f){if(m=f.getAttribute("target"))v.target={type:m.match(s)?m:"frame",name:m};else if(m=(m=f.data("cke-pa-onclick")||f.getAttribute("onclick"))&&m.match(d))for(v.target={type:"popup",name:m[1]};E=u.exec(m[2]);)"yes"!=E[2]&&"1"!=E[2]||E[1]in{height:1,width:1,top:1,left:1}?isFinite(E[2])&&(v.target[E[1]]=E[2]):v.target[E[1]]=!0;var C;m={};for(C in h)(E=f.getAttribute(C))&&(m[h[C]]=E);(C=f.data("cke-saved-name")||m.advName)&&(m.advName=C),CKEDITOR.tools.isEmpty(m)||(v.advanced=m)}return v},getLinkAttributes:function(t,n){var i=t.config.emailProtection||"",o={};switch(n.type){case"url":i=n.url&&void 0!=n.url.protocol?n.url.protocol:"http://";var a=n.url&&CKEDITOR.tools.trim(n.url.url)||"";o["data-cke-saved-href"]=0===a.indexOf("/")?a:i+a;break;case"anchor":i=n.anchor&&n.anchor.id,o["data-cke-saved-href"]="#"+(n.anchor&&n.anchor.name||i||"");break;case"email":a=(l=n.email).address;switch(i){case"":case"encode":var r=encodeURIComponent(l.subject||""),s=encodeURIComponent(l.body||""),l=[];r&&l.push("subject="+r),s&&l.push("body="+s),l=l.length?"?"+l.join("&"):"","encode"==i?(i=["javascript:void(location.href='mailto:'+",function(e){for(var t,n=e.length,i=[],o=0;o<n;o++)t=e.charCodeAt(o),i.push(t);return"String.fromCharCode("+i.join(",")+")"}(a)],l&&i.push("+'",e(l),"'"),i.push(")")):i=["mailto:",a,l];break;default:i=a.split("@",2),l.name=i[0],l.domain=i[1],i=["javascript:",function(t,n){var i,o,a=t.plugins.link,r=a.compiledProtectionFunction.params;o=[a.compiledProtectionFunction.name,"("];for(var s=0;s<r.length;s++)a=r[s].toLowerCase(),i=n[a],0<s&&o.push(","),o.push("'",i?e(encodeURIComponent(n[a])):"","'");return o.push(")"),o.join("")}(t,l)]}o["data-cke-saved-href"]=i.join("")}if(n.target)if("popup"==n.target.type){i=["window.open(this.href, '",n.target.name||"","', '"];var c="resizable status location toolbar menubar fullscreen scrollbars dependent".split(" ");for(a=c.length,r=function(e){n.target[e]&&c.push(e+"="+n.target[e])},l=0;l<a;l++)c[l]+=n.target[c[l]]?"=yes":"=no";r("width"),r("left"),r("height"),r("top"),i.push(c.join(","),"'); return false;"),o["data-cke-pa-onclick"]=i.join("")}else"notSet"!=n.target.type&&n.target.name&&(o.target=n.target.name);if(n.advanced){for(var d in h)(i=n.advanced[h[d]])&&(o[d]=i);o.name&&(o["data-cke-saved-name"]=o.name)}o["data-cke-saved-href"]&&(o.href=o["data-cke-saved-href"]),d=CKEDITOR.tools.extend({target:1,onclick:1,"data-cke-pa-onclick":1,"data-cke-saved-name":1},h);for(var u in o)delete d[u];return{set:o,removed:CKEDITOR.tools.objectKeys(d)}}},CKEDITOR.unlinkCommand=function(){},CKEDITOR.unlinkCommand.prototype={exec:function(e){var t=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1});e.removeStyle(t)},refresh:function(e,t){var n=t.lastElement&&t.lastElement.getAscendant("a",!0);n&&"a"==n.getName()&&n.getAttribute("href")&&n.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]"},CKEDITOR.removeAnchorCommand=function(){},CKEDITOR.removeAnchorCommand.prototype={exec:function(e){var t,n=e.getSelection(),i=n.createBookmarks();n&&(t=n.getSelectedElement())&&(t.getChildCount()?t.is("a"):CKEDITOR.plugins.link.tryRestoreFakeAnchor(e,t))?t.remove(1):(t=CKEDITOR.plugins.link.getSelectedLink(e))&&(t.hasAttribute("href")?(t.removeAttributes({name:1,"data-cke-saved-name":1}),t.removeClass("cke_anchor")):t.remove(1)),n.selectBookmarks(i)},requiredContent:"a[name]"},CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0})}(),function(){function e(e,t,n){function i(n){!(l=d[n?"getFirst":"getLast"]())||l.is&&l.isBlockBoundary()||!(c=t.root[n?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(!0)))||c.is&&c.isBlockBoundary({br:1})||e.document.createElement("br")[n?"insertBefore":"insertAfter"](l)}for(var o=CKEDITOR.plugins.list.listToArray(t.root,n),a=[],r=0;r<t.contents.length;r++){var s=t.contents[r];(s=s.getAscendant("li",!0))&&!s.getCustomData("list_item_processed")&&(a.push(s),CKEDITOR.dom.element.setMarker(n,s,"list_item_processed",!0))}for(s=null,r=0;r<a.length;r++)s=a[r].getCustomData("listarray_index"),o[s].indent=-1;for(r=s+1;r<o.length;r++)if(o[r].indent>o[r-1].indent+1){for(a=o[r-1].indent+1-o[r].indent,s=o[r].indent;o[r]&&o[r].indent>=s;)o[r].indent+=a,r++;r--}var l,c,d=CKEDITOR.plugins.list.arrayToList(o,n,null,e.config.enterMode,t.root.getAttribute("dir")).listNode;i(!0),i(),d.replace(t.root),e.fire("contentDomInvalidated")}function t(e,t){this.name=e,this.context=this.type=t,this.allowedContent=t+" li",this.requiredContent=t}function n(e,t,n,i){for(var o,a;o=e[i?"getLast":"getFirst"](f);)(a=o.getDirection(1))!==t.getDirection(1)&&o.setAttribute("dir",a),o.remove(),n?o[i?"insertBefore":"insertAfter"](n):t.append(o,i)}function i(e){var t;(t=function(t){var i=e[t?"getPrevious":"getNext"](d);i&&i.type==CKEDITOR.NODE_ELEMENT&&i.is(e.getName())&&(n(e,i,null,!t),e.remove(),e=i)})(),t(1)}function o(e){return e.type==CKEDITOR.NODE_ELEMENT&&(e.getName()in CKEDITOR.dtd.$block||e.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[e.getName()]["#"]}function a(e,t,o){e.fire("saveSnapshot"),o.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var a=o.extractContents();t.trim(!1,!0);var s=t.createBookmark(),l=(c=new CKEDITOR.dom.elementPath(t.startContainer)).block,c=c.lastElement.getAscendant("li",1)||l,h=(f=new CKEDITOR.dom.elementPath(o.startContainer)).contains(CKEDITOR.dtd.$listItem),f=f.contains(CKEDITOR.dtd.$list);for(l?(l=l.getBogus())&&l.remove():f&&(l=f.getPrevious(d))&&u(l)&&l.remove(),(l=a.getLast())&&l.type==CKEDITOR.NODE_ELEMENT&&l.is("br")&&l.remove(),(l=t.startContainer.getChild(t.startOffset))?a.insertBefore(l):t.startContainer.append(a),h&&(a=r(h))&&(c.contains(h)?(n(a,h.getParent(),h),a.remove()):c.append(a));o.checkStartOfBlock()&&o.checkEndOfBlock()&&(f=o.startPath(),a=f.block);)a.is("li")&&(c=a.getParent(),a.equals(c.getLast(d))&&a.equals(c.getFirst(d))&&(a=c)),o.moveToPosition(a,CKEDITOR.POSITION_BEFORE_START),a.remove();o=o.clone(),a=e.editable(),o.setEndAt(a,CKEDITOR.POSITION_BEFORE_END),(o=new CKEDITOR.dom.walker(o)).evaluator=function(e){return d(e)&&!u(e)},(o=o.next())&&o.type==CKEDITOR.NODE_ELEMENT&&o.getName()in CKEDITOR.dtd.$list&&i(o),t.moveToBookmark(s),t.select(),e.fire("saveSnapshot")}function r(e){return(e=e.getLast(d))&&e.type==CKEDITOR.NODE_ELEMENT&&e.getName()in s?e:null}var s={ol:1,ul:1}
1,l=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(),d=function(e){return!(l(e)||c(e))},u=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list={listToArray:function(e,t,n,i,o){if(!s[e.getName()])return[];i||(i=0),n||(n=[]);for(var a=0,r=e.getChildCount();a<r;a++){var l=e.getChild(a);if(l.type==CKEDITOR.NODE_ELEMENT&&l.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(l,t,n,i+1),"li"==l.$.nodeName.toLowerCase()){var c={parent:e,indent:i,element:l,contents:[]};o?c.grandparent=o:(c.grandparent=e.getParent(),c.grandparent&&"li"==c.grandparent.$.nodeName.toLowerCase()&&(c.grandparent=c.grandparent.getParent())),t&&CKEDITOR.dom.element.setMarker(t,l,"listarray_index",n.length),n.push(c);for(var d,u=0,h=l.getChildCount();u<h;u++)(d=l.getChild(u)).type==CKEDITOR.NODE_ELEMENT&&s[d.getName()]?CKEDITOR.plugins.list.listToArray(d,t,n,i+1,c.grandparent):c.contents.push(d)}}return n},arrayToList:function(e,t,n,i,o){if(n||(n=0),!e||e.length<n+1)return null;for(var a,r,l,u=e[n].parent.getDocument(),h=new CKEDITOR.dom.documentFragment(u),f=null,p=n,m=Math.max(e[n].indent,0),g=null,E=i==CKEDITOR.ENTER_P?"p":"div";;){var v=e[p];if(a=v.grandparent,r=v.element.getDirection(1),v.indent==m){for(f&&e[p].parent.getName()==f.getName()||(f=e[p].parent.clone(!1,1),o&&f.setAttribute("dir",o),h.append(f)),g=f.append(v.element.clone(0,1)),r!=f.getDirection(1)&&g.setAttribute("dir",r),a=0;a<v.contents.length;a++)g.append(v.contents[a].clone(1,1));p++}else if(v.indent==Math.max(m,0)+1)v=e[p-1].element.getDirection(1),p=CKEDITOR.plugins.list.arrayToList(e,null,p,i,v!=r?r:null),!g.getChildCount()&&CKEDITOR.env.needsNbspFiller&&!(7<u.$.documentMode)&&g.append(u.createText(" ")),g.append(p.listNode),p=p.nextIndex;else{if(-1!=v.indent||n||!a)return null;s[a.getName()]?(g=v.element.clone(!1,!0),r!=a.getDirection(1)&&g.setAttribute("dir",r)):g=new CKEDITOR.dom.documentFragment(u);f=a.getDirection(1)!=r;var T,C,b=v.element,D=b.getAttribute("class"),y=b.getAttribute("style"),I=g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(i!=CKEDITOR.ENTER_BR||f||y||D),O=v.contents.length;for(a=0;a<O;a++)if(T=v.contents[a],c(T)&&1<O)I?C=T.clone(1,1):g.append(T.clone(1,1));else if(T.type==CKEDITOR.NODE_ELEMENT&&T.isBlockBoundary()){f&&!T.getDirection()&&T.setAttribute("dir",r),l=T;var R=b.getAttribute("style");R&&l.setAttribute("style",R.replace(/([^;])$/,"$1;")+(l.getAttribute("style")||"")),D&&T.addClass(D),l=null,C&&(g.append(C),C=null),g.append(T.clone(1,1))}else I?(l||(l=u.createElement(E),g.append(l),f&&l.setAttribute("dir",r)),y&&l.setAttribute("style",y),D&&l.setAttribute("class",D),C&&(l.append(C),C=null),l.append(T.clone(1,1))):g.append(T.clone(1,1));C&&((l||g).append(C),C=null),g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&p!=e.length-1&&(CKEDITOR.env.needsBrFiller&&(r=g.getLast())&&r.type==CKEDITOR.NODE_ELEMENT&&r.is("br")&&r.remove(),(!(r=g.getLast(d))||r.type!=CKEDITOR.NODE_ELEMENT||!r.is(CKEDITOR.dtd.$block))&&g.append(u.createElement("br"))),("div"==(r=g.$.nodeName.toLowerCase())||"p"==r)&&g.appendBogus(),h.append(g),f=null,p++}if(l=null,e.length<=p||Math.max(e[p].indent,0)<m)break}if(t)for(e=h.getFirst();e;){if(e.type==CKEDITOR.NODE_ELEMENT&&(CKEDITOR.dom.element.clearMarkers(t,e),e.getName()in CKEDITOR.dtd.$listItem&&(n=e,u=o=i=void 0,i=n.getDirection()))){for(o=n.getParent();o&&!(u=o.getDirection());)o=o.getParent();i==u&&n.removeAttribute("dir")}e=e.getNextSourceNode()}return{listNode:h,nextIndex:p}}};var h=/^h[1-6]$/,f=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);t.prototype={exec:function(t){this.refresh(t,t.elementPath());var n=t.config,o=t.getSelection(),a=o&&o.getRanges();if(this.state==CKEDITOR.TRISTATE_OFF){if((l=t.editable()).getFirst(d)){var r=1==a.length&&a[0];(n=r&&r.getEnclosedNode())&&n.is&&this.type==n.getName()&&this.setState(CKEDITOR.TRISTATE_ON)}else n.enterMode==CKEDITOR.ENTER_BR?l.appendBogus():a[0].fixBlock(1,n.enterMode==CKEDITOR.ENTER_P?"p":"div"),o.selectRanges(a)}n=o.createBookmarks(!0);for(var l=[],c={},u=(a=a.createIterator(),0);(r=a.getNextRange())&&++u;){var f=(C=r.getBoundaryNodes()).startNode,p=C.endNode;for(f.type==CKEDITOR.NODE_ELEMENT&&"td"==f.getName()&&r.setStartAt(C.startNode,CKEDITOR.POSITION_AFTER_START),p.type==CKEDITOR.NODE_ELEMENT&&"td"==p.getName()&&r.setEndAt(C.endNode,CKEDITOR.POSITION_BEFORE_END),(r=r.createIterator()).forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;C=r.getNextParagraph();)if(!C.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(c,C,"list_block",1);f=(g=t.elementPath(C)).elements,p=0;for(var m,g=g.blockLimit,E=f.length-1;0<=E&&(m=f[E]);E--)if(s[m.getName()]&&g.contains(m)){g.removeCustomData("list_group_object_"+u),(f=m.getCustomData("list_group_object"))?f.contents.push(C):(f={root:m,contents:[C]},l.push(f),CKEDITOR.dom.element.setMarker(c,m,"list_group_object",f)),p=1;break}p||((p=g).getCustomData("list_group_object_"+u)?p.getCustomData("list_group_object_"+u).contents.push(C):(f={root:p,contents:[C]},CKEDITOR.dom.element.setMarker(c,p,"list_group_object_"+u,f),l.push(f)))}}for(m=[];0<l.length;)if(f=l.shift(),this.state==CKEDITOR.TRISTATE_OFF)if(s[f.root.getName()]){for(a=t,u=f,f=c,r=m,p=CKEDITOR.plugins.list.listToArray(u.root,f),g=[],C=0;C<u.contents.length;C++)E=u.contents[C],(E=E.getAscendant("li",!0))&&!E.getCustomData("list_item_processed")&&(g.push(E),CKEDITOR.dom.element.setMarker(f,E,"list_item_processed",!0));E=u.root.getDocument();for(var v=void 0,T=void 0,C=0;C<g.length;C++){var b=g[C].getCustomData("listarray_index");
1(v=p[b].parent).is(this.type)||(T=E.createElement(this.type),v.copyAttributes(T,{start:1,type:1}),T.removeStyle("list-style-type"),p[b].parent=T)}for(f=CKEDITOR.plugins.list.arrayToList(p,f,null,a.config.enterMode),p=void 0,g=f.listNode.getChildCount(),C=0;C<g&&(p=f.listNode.getChild(C));C++)p.getName()==this.type&&r.push(p);f.listNode.replace(u.root),a.fire("contentDomInvalidated")}else{for(p=t,r=m,g=(C=f).contents,a=C.root.getDocument(),u=[],1==g.length&&g[0].equals(C.root)&&(f=a.createElement("div"),g[0].moveChildren&&g[0].moveChildren(f),g[0].append(f),g[0]=f),C=C.contents[0].getParent(),E=0;E<g.length;E++)C=C.getCommonAncestor(g[E].getParent());for(v=p.config.useComputedState,p=f=void 0,v=void 0===v||v,E=0;E<g.length;E++)for(T=g[E];b=T.getParent();){if(b.equals(C)){u.push(T),!p&&T.getDirection()&&(p=1),T=T.getDirection(v),null!==f&&(f=f&&f!=T?null:T);break}T=b}if(!(1>u.length)){for(g=u[u.length-1].getNext(),E=a.createElement(this.type),r.push(E),v=r=void 0;u.length;)r=u.shift(),v=a.createElement("li"),r.is("pre")||h.test(r.getName())||"false"==r.getAttribute("contenteditable")?r.appendTo(v):(r.copyAttributes(v),f&&r.getDirection()&&(v.removeStyle("direction"),v.removeAttribute("dir")),r.moveChildren(v),r.remove()),v.appendTo(E);f&&p&&E.setAttribute("dir",f),g?E.insertBefore(g):E.appendTo(C)}}else this.state==CKEDITOR.TRISTATE_ON&&s[f.root.getName()]&&e.call(this,t,f,c);for(E=0;E<m.length;E++)i(m[E]);CKEDITOR.dom.element.clearAllMarkers(c),o.selectBookmarks(n),t.focus()},refresh:function(e,t){var n=t.contains(s,1),i=t.blockLimit||t.root;n&&i.contains(n)?this.setState(n.is(this.type)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.plugins.add("list",{requires:"indentlist",init:function(e){e.blockless||(e.addCommand("numberedlist",new t("numberedlist","ol")),e.addCommand("bulletedlist",new t("bulletedlist","ul")),e.ui.addButton&&(e.ui.addButton("NumberedList",{label:e.lang.list.numberedlist,command:"numberedlist",directional:!0,toolbar:"list,10"}),e.ui.addButton("BulletedList",{label:e.lang.list.bulletedlist,command:"bulletedlist",directional:!0,toolbar:"list,20"})),e.on("key",function(t){var n=t.data.domEvent.getKey();if("wysiwyg"==e.mode&&n in{8:1,46:1}){var i=e.getSelection().getRanges()[0],l=i&&i.startPath();if(i&&i.collapsed){var c=8==n,h=e.editable(),f=new CKEDITOR.dom.walker(i.clone());if(f.evaluator=function(e){return d(e)&&!u(e)},f.guard=function(e,t){return!(t&&e.type==CKEDITOR.NODE_ELEMENT&&e.is("table"))},n=i.clone(),c){var p,m;(p=l.contains(s))&&i.checkBoundaryOfElement(p,CKEDITOR.START)&&(p=p.getParent())&&p.is("li")&&(p=r(p))?(m=p,p=p.getPrevious(d),n.moveToPosition(p&&u(p)?p:m,CKEDITOR.POSITION_BEFORE_START)):(f.range.setStartAt(h,CKEDITOR.POSITION_AFTER_START),f.range.setEnd(i.startContainer,i.startOffset),(p=f.previous())&&p.type==CKEDITOR.NODE_ELEMENT&&(p.getName()in s||p.is("li"))&&(p.is("li")||(f.range.selectNodeContents(p),f.reset(),f.evaluator=o,p=f.previous()),m=p,n.moveToElementEditEnd(m))),m?(a(e,n,i),t.cancel()):(n=l.contains(s))&&i.checkBoundaryOfElement(n,CKEDITOR.START)&&(m=n.getFirst(d),i.checkBoundaryOfElement(m,CKEDITOR.START)&&(p=n.getPrevious(d),r(m)?p&&(i.moveToElementEditEnd(p),i.select()):e.execCommand("outdent"),t.cancel()))}else(m=l.contains("li"))?(f.range.setEndAt(h,CKEDITOR.POSITION_BEFORE_END),h=(l=m.getLast(d))&&o(l)?l:m,m=0,(p=f.next())&&p.type==CKEDITOR.NODE_ELEMENT&&p.getName()in s&&p.equals(l)?(m=1,p=f.next()):i.checkBoundaryOfElement(h,CKEDITOR.END)&&(m=1),m&&p&&((i=i.clone()).moveToElementEditStart(p),a(e,n,i),t.cancel())):(f.range.setEndAt(h,CKEDITOR.POSITION_BEFORE_END),(p=f.next())&&p.type==CKEDITOR.NODE_ELEMENT&&p.is(s)&&(p=p.getFirst(d),l.block&&i.checkStartOfBlock()&&i.checkEndOfBlock()?(l.block.remove(),i.moveToElementEditStart(p),i.select()):r(p)?(i.moveToElementEditStart(p),i.select()):((i=i.clone()).moveToElementEditStart(p),a(e,n,i)),t.cancel()));setTimeout(function(){e.selectionChange(1)})}}}))}})}(),CKEDITOR.plugins.liststyle={requires:"dialog,contextmenu",init:function(e){if(!e.blockless){var t;t=new CKEDITOR.dialogCommand("numberedListStyle",{requiredContent:"ol",allowedContent:"ol{list-style-type}[start]"}),t=e.addCommand("numberedListStyle",t),e.addFeature(t),CKEDITOR.dialog.add("numberedListStyle",this.path+"dialogs/liststyle.js"),t=new CKEDITOR.dialogCommand("bulletedListStyle",{requiredContent:"ul",allowedContent:"ul{list-style-type}"}),t=e.addCommand("bulletedListStyle",t),e.addFeature(t),CKEDITOR.dialog.add("bulletedListStyle",this.path+"dialogs/liststyle.js"),e.addMenuGroup("list",108),e.addMenuItems({numberedlist:{label:e.lang.liststyle.numberedTitle,group:"list",command:"numberedListStyle"},bulletedlist:{label:e.lang.liststyle.bulletedTitle,group:"list",command:"bulletedListStyle"}}
1),e.contextMenu.addListener(function(e){if(!e||e.isReadOnly())return null;for(;e;){var t=e.getName();if("ol"==t)return{numberedlist:CKEDITOR.TRISTATE_OFF};if("ul"==t)return{bulletedlist:CKEDITOR.TRISTATE_OFF};e=e.getParent()}return null})}}},CKEDITOR.plugins.add("liststyle",CKEDITOR.plugins.liststyle),function(){function e(e,t,n){return c(t)&&c(n)&&n.equals(t.getNext(function(e){return!(U(e)||V(e)||d(e))}))}function t(e){this.upper=e[0],this.lower=e[1],this.set.apply(this,e.slice(2))}function n(e){var t=e.element;if(t&&c(t)&&(t=t.getAscendant(e.triggers,!0))&&e.editable.contains(t)){var n=a(t);if("true"==n.getAttribute("contenteditable"))return t;if(n.is(e.triggers))return n}return null}function i(e,t,n){return E(e,t),E(e,n),e=t.size.bottom,n=n.size.top,e&&n?0|(e+n)/2:e||n}function o(e,t,n){return t=t[n?"getPrevious":"getNext"](function(t){return t&&t.type==CKEDITOR.NODE_TEXT&&!U(t)||c(t)&&!d(t)&&!l(e,t)})}function a(e,t){if(e.data("cke-editable"))return null;for(t||(e=e.getParent());e&&!e.data("cke-editable");){if(e.hasAttribute("contenteditable"))return e;e=e.getParent()}return null}function r(e,t,n){var i,o=new CKEDITOR.dom.range(e.doc),r=e.editor;y.ie&&e.enterMode==CKEDITOR.ENTER_BR?i=e.doc.createText(A):(i=(i=a(e.element,!0))&&i.data("cke-enter-mode")||e.enterMode,(i=new b(R[i],e.doc)).is("br")||e.doc.createText(A).appendTo(i)),n&&r.fire("saveSnapshot"),t(i),o.moveToPosition(i,CKEDITOR.POSITION_AFTER_START),r.getSelection().selectRanges([o]),e.hotNode=i,n&&r.fire("saveSnapshot")}function s(e,t){return{canUndo:!0,modes:{wysiwyg:1},exec:function(){function i(n){var i=y.ie&&9>y.version?" ":A,o=e.hotNode&&e.hotNode.getText()==i&&e.element.equals(e.hotNode)&&e.lastCmdDirection===!!t;r(e,function(i){o&&e.hotNode&&e.hotNode.remove(),i[t?"insertAfter":"insertBefore"](n),i.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!t}),e.lastCmdDirection=!!t}),!y.ie&&e.enterMode!=CKEDITOR.ENTER_BR&&e.hotNode.scrollIntoView(),e.line.detach()}return function(r){var s;r=(r=r.getSelection().getStartElement()).getAscendant(F,1);if(!f(e,r)&&r&&!r.equals(e.editable)&&!r.contains(e.editable)){(s=a(r))&&"false"==s.getAttribute("contenteditable")&&(r=s),e.element=r;var l;c(s=o(e,r,!t))&&s.is(e.triggers)&&s.is(B)&&(!o(e,s,!t)||(l=o(e,s,!t))&&c(l)&&l.is(e.triggers))?i(s):(l=n(e),c(l)&&(o(e,l,!t)?(r=o(e,l,!t))&&c(r)&&r.is(e.triggers)&&i(l):i(l)))}}}()}}function l(e,t){if(!t||t.type!=CKEDITOR.NODE_ELEMENT||!t.$)return!1;var n=e.line;return n.wrap.equals(t)||n.wrap.contains(t)}function c(e){return e&&e.type==CKEDITOR.NODE_ELEMENT&&e.$}function d(e){if(!c(e))return!1;var t;return(t=u(e))||(c(e)?(t={left:1,right:1,center:1},t=!(!t[e.getComputedStyle("float")]&&!t[e.getAttribute("align")])):t=!1),t}function u(e){return!!{absolute:1,fixed:1}[e.getComputedStyle("position")]}function h(e,t){return c(t)?t.is(e.triggers):null}function f(e,t){if(!t)return!1;for(var n=t.getParents(1),i=n.length;i--;)for(var o=e.tabuList.length;o--;)if(n[i].hasAttribute(e.tabuList[o]))return!0;return!1}function p(e){var n=e.editable,i=e.mouse,o=e.view,a=e.triggerOffset;v(e);var r=i.y>(e.inInlineMode?o.editable.top+o.editable.height/2:Math.min(o.editable.height,o.pane.height)/2);return(n=n[r?"getLast":"getFirst"](function(e){return!(U(e)||V(e))}))?(l(e,n)&&(n=e.line.wrap[r?"getPrevious":"getNext"](function(e){return!(U(e)||V(e))})),c(n)&&!d(n)&&h(e,n)?(E(e,n),!r&&0<=n.size.top&&0<i.y&&i.y<n.size.top+a?(e=e.inInlineMode||0===o.scroll.y?S:$,new t([null,n,_,w,e])):r&&n.size.bottom<=o.pane.height&&i.y>n.size.bottom-a&&i.y<o.pane.height?(e=e.inInlineMode||n.size.bottom>o.pane.height-a&&n.size.bottom<o.pane.height?N:$,new t([n,null,k,w,e])):null):null):null}function m(e){var i=e.mouse,a=e.view,r=e.triggerOffset,s=n(e);if(!s)return null;E(e,s);r=Math.min(r,0|s.size.outerHeight/2);var l,u,f=[];if(i.y>s.size.top-1&&i.y<s.size.top+r)u=!1;else{if(!(i.y>s.size.bottom-r&&i.y<s.size.bottom+1))return null;u=!0}if(d(s)||function(e,t,n){return!!(t=t[n?"getLast":"getFirst"](function(t){return e.isRelevant(t)&&!t.is(P)}))&&(E(e,t),n?t.size.top>e.mouse.y:t.size.bottom<e.mouse.y)}(e,s,u)||s.getParent().is(L))return null;var p=o(e,s,!u);if(p){if(p&&p.type==CKEDITOR.NODE_TEXT)return null;if(c(p)){if(d(p)||!h(e,p)||p.getParent().is(L))return null;f=[p,s][u?"reverse":"concat"]().concat([K,w])}}else s.equals(e.editable[u?"getLast":"getFirst"](e.isRelevant))?(v(e),u&&i.y>s.size.bottom-r&&i.y<a.pane.height&&s.size.bottom>a.pane.height-r&&s.size.bottom<a.pane.height?l=N:0<i.y&&i.y<s.size.top+r&&(l=S)):l=$,f=[null,s][u?"reverse":"concat"]().concat([u?k:_,w,l,s.equals(e.editable[u?"getLast":"getFirst"](e.isRelevant))?u?N:S:$]);return 0 in f?new t(f):null}function g(e,t,n,i){for(var o=function(){var n=y.ie?t.$.currentStyle:e.win.$.getComputedStyle(t.$,"");return y.ie?function(e){return n[CKEDITOR.tools.cssStyleToDomStyle(e)]}:function(e){return n.getPropertyValue(e)}}(),a=t.getDocumentPosition(),r={},s={},l={},c={},d=X.length;d--;)r[X[d]]=parseInt(o("border-"+X[d]+"-width"),10)||0,l[X[d]]=parseInt(o("padding-"+X[d]),10)||0,s[X[d]]=parseInt(o("margin-"+X[d]),10)||0;return(!n||i)&&T(e,i),c.top=a.y-(n?0:e.view.scroll.y),c.left=a.x-(n?0:e.view.scroll.x),c.outerWidth=t.$.offsetWidth,c.outerHeight=t.$.offsetHeight,c.height=c.outerHeight-(l.top+l.bottom+r.top+r.bottom),c.width=c.outerWidth-(l.left+l.right+r.left+r.right),c.bottom=c.top+c.outerHeight,c.right=c.left+c.outerWidth,e.inInlineMode&&(c.scroll={top:t.$.scrollTop,left:t.$.scrollLeft}),C({border:r,padding:l,margin:s,ignoreScroll:n},c,!0)}function E(e,t,n){if(!c(t))return t.size=null;if(t.size){if(t.size.ignoreScroll==n&&t.size.date>new Date-M)return null}else t.size={};return C(t.size,g(e,t,n),{date:+new Date},!0)}function v(e,t){e.view.editable=g(e,e.editable,t,!0)}function T(e,t){e.view||(e.view={});var n=e.view;if(t||!(n&&n.date>new Date-M)){n=(i=e.win).getScrollPosition();var i=i.getViewPaneSize();C(e.view,{scroll:{x:n.x,y:n.y,width:e.doc.$.documentElement.scrollWidth-i.width,height:e.doc.$.documentElement.scrollHeight-i.height},pane:{width:i.width,height:i.height,bottom:i.height+n.y},date:+new Date},!0)}}CKEDITOR.plugins.add("magicline",{init:function(e){var i,a,h,R=e.config,k=R.magicline_triggerOffset||30,K={editor:e,enterMode:R.enterMode,triggerOffset:k,holdDistance:0|k*(R.magicline_holdDistance||.5),boxColor:R.magicline_color||"#ff0000",rtl:"rtl"==R.contentsLangDirection,tabuList:["data-cke-hidden-sel"].concat(R.magicline_tabuList||[]),triggers:R.magicline_everywhere?F:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}};K.isRelevant=function(e){return c(e)&&!l(K,e)&&!d(e)},e.on("contentDom",function(){var c=e.editable(),d=e.document,k=e.window;C(K,{editable:c,inInlineMode:c.isInline(),doc:d,win:k,hotNode:null},!0),K.boundary=K.inInlineMode?K.editable:K.doc.getDocumentElement(),c.is(O.$inline)||(K.inInlineMode&&!u(c)&&c.setStyles({position:"relative",top:null,left:null}),function(e){var t=e.doc,n=D('<span contenteditable="false" style="'+j+"position:absolute;border-top:1px dashed "+e.boxColor+'"></span>',t),i=this.path+"images/"+(y.hidpi?"hidpi/":"")+"icon"+(e.rtl?"-rtl":"")+".png";for(C(n,{attach:function(){return this.wrap.getParent()||this.wrap.appendTo(e.editable,!0),this},lineChildren:[C(D('<span title="'+e.editor.lang.magicline.title+'" contenteditable="false">↵</span>',t),{base:j+"height:17px;width:17px;"+(e.rtl?"left":"right")+":17px;background:url("+i+") center no-repeat "+e.boxColor+";cursor:pointer;"+(y.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;":"")+(y.hidpi?"background-size: 9px 10px;":""),looks:["top:-8px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","2px",1),"top:-17px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","2px 2px 0px 0px",1),"top:-1px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","0px 0px 2px 2px",1)]}),C(D(H,t),{base:q+"left:0px;border-left-color:"+e.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),C(D(H,t),{base:q+"right:0px;border-right-color:"+e.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px","border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){return this.wrap.getParent()&&this.wrap.remove(),this},mouseNear:function(){E(e,this);var t=e.holdDistance,n=this.size;return!!(n&&e.mouse.y>n.top-t&&e.mouse.y<n.bottom+t&&e.mouse.x>n.left-t&&e.mouse.x<n.right+t)}
1,place:function(){var t=e.view,n=e.editable,i=e.trigger,o=i.upper,a=i.lower,r=o||a,s=r.getParent(),l={};this.trigger=i,o&&E(e,o,!0),a&&E(e,a,!0),E(e,s,!0),e.inInlineMode&&v(e,!0),s.equals(n)?(l.left=t.scroll.x,l.right=-t.scroll.x,l.width=""):(l.left=r.size.left-r.size.margin.left+t.scroll.x-(e.inInlineMode?t.editable.left+t.editable.border.left:0),l.width=r.size.outerWidth+r.size.margin.left+r.size.margin.right+t.scroll.x,l.right=""),o&&a?l.top=o.size.margin.bottom===a.size.margin.top?0|o.size.bottom+o.size.margin.bottom/2:o.size.margin.bottom<a.size.margin.top?o.size.bottom+o.size.margin.bottom:o.size.bottom+o.size.margin.bottom-a.size.margin.top:o?a||(l.top=o.size.bottom+o.size.margin.bottom):l.top=a.size.top-a.size.margin.top,i.is(S)||l.top>t.scroll.y-15&&l.top<t.scroll.y+5?(l.top=e.inInlineMode?0:t.scroll.y,this.look(S)):i.is(N)||l.top>t.pane.bottom-5&&l.top<t.pane.bottom+15?(l.top=e.inInlineMode?t.editable.height+t.editable.padding.top+t.editable.padding.bottom:t.pane.bottom-1,this.look(N)):(e.inInlineMode&&(l.top-=t.editable.top+t.editable.border.top),this.look($)),e.inInlineMode&&(l.top--,l.top+=t.editable.scroll.top,l.left+=t.editable.scroll.left);for(var c in l)l[c]=CKEDITOR.tools.cssLength(l[c]);this.setStyles(l)},look:function(e){if(this.oldLook!=e){for(var t,n=this.lineChildren.length;n--;)(t=this.lineChildren[n]).setAttribute("style",t.base+t.looks[0|e/2]);this.oldLook=e}},wrap:new b("span",e.doc)}),t=n.lineChildren.length;t--;)n.lineChildren[t].appendTo(n);n.look($),n.appendTo(n.wrap),n.unselectable(),n.lineChildren[0].on("mouseup",function(t){n.detach(),r(e,function(t){var n=e.line.trigger;t[n.is(_)?"insertBefore":"insertAfter"](n.is(_)?n.lower:n.upper)},!0),e.editor.focus(),!y.ie&&e.enterMode!=CKEDITOR.ENTER_BR&&e.hotNode.scrollIntoView(),t.data.preventDefault(!0)}),n.on("mousedown",function(e){e.data.preventDefault(!0)}),e.line=n}.call(this,K),T(K),c.attachListener(e,"beforeUndoImage",function(){K.line.detach()}),c.attachListener(e,"beforeGetData",function(){K.line.wrap.getParent()&&(K.line.detach(),e.once("getData",function(){K.line.attach()},null,null,1e3))},null,null,0),c.attachListener(K.inInlineMode?d:d.getWindow().getFrame(),"mouseout",function(t){if("wysiwyg"==e.mode)if(K.inInlineMode){var n=t.data.$.clientX;t=t.data.$.clientY;T(K),v(K,!0);var i=K.view.editable,o=K.view.scroll;n>i.left-o.x&&n<i.right-o.x&&t>i.top-o.y&&t<i.bottom-o.y||(clearTimeout(h),h=null,K.line.detach())}else clearTimeout(h),h=null,K.line.detach()}),c.attachListener(c,"keyup",function(){K.hiddenMode=0}),c.attachListener(c,"keydown",function(t){if("wysiwyg"==e.mode)switch(t=t.data.getKeystroke(),e.getSelection().getStartElement(),t){case 2228240:case 16:K.hiddenMode=1,K.line.detach()}}),c.attachListener(K.inInlineMode?c:d,"mousemove",function(t){if(a=!0,"wysiwyg"==e.mode&&!e.readOnly&&!h){var n={x:t.data.$.clientX,y:t.data.$.clientY};h=setTimeout(function(){K.mouse=n,h=K.trigger=null,T(K),a&&!K.hiddenMode&&e.focusManager.hasFocus&&!K.line.mouseNear()&&(K.element=z(K,!0))&&((K.trigger=p(K)||m(K)||W(K))&&!f(K,K.trigger.upper||K.trigger.lower)?K.line.attach().place():(K.trigger=null,K.line.detach()),a=!1)},30)}}),c.attachListener(k,"scroll",function(){"wysiwyg"==e.mode&&(K.line.detach(),y.webkit&&(K.hiddenMode=1,clearTimeout(i),i=setTimeout(function(){K.mouseDown||(K.hiddenMode=0)},50)))}),c.attachListener(I?d:k,"mousedown",function(){"wysiwyg"==e.mode&&(K.line.detach(),K.hiddenMode=1,K.mouseDown=1)}),c.attachListener(I?d:k,"mouseup",function(){K.hiddenMode=0,K.mouseDown=0}),e.addCommand("accessPreviousSpace",s(K)),e.addCommand("accessNextSpace",s(K,!0)),e.setKeystroke([[R.magicline_keystrokePrevious,"accessPreviousSpace"],[R.magicline_keystrokeNext,"accessNextSpace"]]),e.on("loadSnapshot",function(){var t,n,i,o;for(o in{p:1,br:1,div:1})for(i=(t=e.document.getElementsByTag(o)).count();i--;)if((n=t.getItem(i)).data("cke-magicline-hot"))return K.hotNode=n,void(K.lastCmdDirection="true"===n.data("cke-magicline-dir"))}),this.backdoor={accessFocusSpace:r,boxTrigger:t,isLine:l,getAscendantTrigger:n,getNonEmptyNeighbour:o,getSize:g,that:K,triggerEdge:m,triggerEditable:p,triggerExpand:W})},this)}});var C=CKEDITOR.tools.extend,b=CKEDITOR.dom.element,D=b.createFromHtml,y=CKEDITOR.env,I=CKEDITOR.env.ie&&9>CKEDITOR.env.version,O=CKEDITOR.dtd,R={},_=128,k=64,K=32,w=16,x=8,S=4,N=2,$=1,A=" ",L=O.$listItem,P=O.$tableContent,B=C({},O.$nonEditable,O.$empty),F=O.$block,M=100,j="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;",q=j+"border-color:transparent;display:block;border-style:solid;",H="<span>"+A+"</span>";R[CKEDITOR.ENTER_BR]="br",R[CKEDITOR.ENTER_P]="p",R[CKEDITOR.ENTER_DIV]="div",t.prototype={set:function(e,t,n){return this.properties=e+t+(n||$),this},is:function(e){return(this.properties&e)==e}};var z=function(){function e(e,t){var n=e.$.elementFromPoint(t.x,t.y);return n&&n.nodeType?new CKEDITOR.dom.element(n):null}return function(t,n,i){if(!t.mouse)return null;var o=t.doc,a=t.line.wrap,r=e(o,i=i||t.mouse);return n&&l(t,r)&&(a.hide(),r=e(o,i),a.show()),!r||r.type!=CKEDITOR.NODE_ELEMENT||!r.$||y.ie&&9>
1y.version&&!t.boundary.equals(r)&&!t.boundary.contains(r)?null:r}}(),U=CKEDITOR.dom.walker.whitespaces(),V=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),W=function(){function n(n){var a,r,s;if(!c(f=n.element)||f.contains(n.editable)||f.isReadOnly())return null;if(s=function(e,n,i,o){for(var a=o,r=o,s=0,l=!1,c=!1,d=e.view.pane.height,u=e.mouse;u.y+s<d&&0<u.y-s&&(l||(l=n(a,o)),c||(c=n(r,o)),!l&&0<u.y-s&&(a=i(e,{x:u.x,y:u.y-s})),!c&&u.y+s<d&&(r=i(e,{x:u.x,y:u.y+s})),!l||!c);)s+=2;return new t([a,r,null,null])}(n,function(e,t){return!t.equals(e)},function(e,t){return z(e,!0,t)},f),a=s.upper,r=s.lower,e(0,a,r))return s.set(K,x);if(a&&f.contains(a))for(;!a.getParent().equals(f);)a=a.getParent();else a=f.getFirst(function(e){return o(n,e)});if(r&&f.contains(r))for(;!r.getParent().equals(f);)r=r.getParent();else r=f.getLast(function(e){return o(n,e)});if(!a||!r)return null;if(E(n,a),E(n,r),!(n.mouse.y>a.size.top&&n.mouse.y<r.size.bottom))return null;for(var l,d,u,h,f=Number.MAX_VALUE;r&&!r.equals(a)&&(d=a.getNext(n.isRelevant));)(l=Math.abs(i(n,a,d)-n.mouse.y))<f&&(f=l,u=a,h=d),a=d,E(n,a);return u&&h&&n.mouse.y>u.size.top&&n.mouse.y<h.size.bottom?(s.upper=u,s.lower=h,s.set(K,x)):null}function o(e,t){return!(t&&t.type==CKEDITOR.NODE_TEXT||V(t)||d(t)||l(e,t)||t.type==CKEDITOR.NODE_ELEMENT&&t.$&&t.is("br"))}return function(t){var i,o=n(t);if(i=o){i=o.upper;var a=o.lower;i=!(!i||!a||d(a)||d(i)||a.equals(i)||i.equals(a)||a.contains(i)||i.contains(a))&&!!(h(t,i)&&h(t,a)&&e(0,i,a))}return i?o:null}}(),X=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+51,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+52,function(){function e(e){if(!e||e.type!=CKEDITOR.NODE_ELEMENT||"form"!=e.getName())return[];for(var t=[],n=["style","className"],i=0;i<n.length;i++){var o=e.$.elements.namedItem(n[i]);o&&(o=new CKEDITOR.dom.element(o),t.push([o,o.nextSibling]),o.remove())}return t}function t(e,t){if(e&&e.type==CKEDITOR.NODE_ELEMENT&&"form"==e.getName()&&0<t.length)for(var n=t.length-1;0<=n;n--){var i=t[n][0],o=t[n][1];o?i.insertBefore(o):i.appendTo(e)}}function n(n,i){var o=e(n),a={},r=n.$;return i||(a.class=r.className||"",r.className=""),a.inline=r.style.cssText||"",i||(r.style.cssText="position: static; overflow: visible"),t(o),a}function i(n,i){var o=e(n),a=n.$;"class"in i&&(a.className=i.class),"inline"in i&&(a.style.cssText=i.inline),t(o)}function o(e){if(!e.editable().isInline()){var t,n=CKEDITOR.instances;for(t in n){var i=n[t];"wysiwyg"==i.mode&&!i.readOnly&&((i=i.document.getBody()).setAttribute("contentEditable",!1),i.setAttribute("contentEditable",!0))}e.editable().hasFocus&&(e.toolbox.focus(),e.focus())}}CKEDITOR.plugins.add("maximize",{init:function(e){function t(){var t=d.getViewPaneSize();e.resize(t.width,t.height,null,!0)}if(e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var a,r,s,l=e.lang,c=CKEDITOR.document,d=c.getWindow(),u=CKEDITOR.TRISTATE_OFF;e.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:!1,exec:function(){var h=e.container.getChild(1),f=e.ui.space("contents");if("wysiwyg"==e.mode){var p=e.getSelection();a=p&&p.getRanges(),r=d.getScrollPosition()}else{var m=e.editable().$;a=!CKEDITOR.env.ie&&[m.selectionStart,m.selectionEnd],r=[m.scrollLeft,m.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){for(d.on("resize",t),s=d.getScrollPosition(),p=e.container;p=p.getParent();)p.setCustomData("maximize_saved_styles",n(p)),p.setStyle("z-index",e.config.baseFloatZIndex-5);f.setCustomData("maximize_saved_styles",n(f,!0)),h.setCustomData("maximize_saved_styles",n(h,!0)),f={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0},c.getDocumentElement().setStyles(f),!CKEDITOR.env.gecko&&c.getDocumentElement().setStyle("position","fixed"),(!CKEDITOR.env.gecko||!CKEDITOR.env.quirks)&&c.getBody().setStyles(f),CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(0,0)},0):d.$.scrollTo(0,0),h.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute"),h.$.offsetLeft,h.setStyles({"z-index":e.config.baseFloatZIndex-5,left:"0px",top:"0px"}),h.addClass("cke_maximized"),t(),f=h.getDocumentPosition(),h.setStyles({left:-1*f.x+"px",top:-1*f.y+"px"}),CKEDITOR.env.gecko&&o(e)}else if(this.state==CKEDITOR.TRISTATE_ON){for(d.removeListener("resize",t),f=[f,h],p=0;p<f.length;p++)i(f[p],f[p].getCustomData("maximize_saved_styles")),f[p].removeCustomData("maximize_saved_styles");for(p=e.container;p=p.getParent();)i(p,p.getCustomData("maximize_saved_styles")),p.removeCustomData("maximize_saved_styles");CKEDITOR.env.ie?setTimeout(function(){d.$.scrollTo(s.x,s.y)},0):d.$.scrollTo(s.x,s.y),h.removeClass("cke_maximized"),CKEDITOR.env.webkit&&(h.setStyle("display","inline"),setTimeout(function(){h.setStyle("display","block")},0)),e.fire("resize")}this.toggleState(),(p=this.uiItems[0])&&(f=this.state==CKEDITOR.TRISTATE_OFF?l.maximize.maximize:l.maximize.minimize,(p=CKEDITOR.document.getById(p._.id)).getChild(1).setHtml(f),p.setAttribute("title",f),p.setAttribute("href",'javascript:void("'+f+'");')),"wysiwyg"==e.mode?a?(CKEDITOR.env.gecko&&o(e),e.getSelection().selectRanges(a),(m=e.getSelection().getStartElement())&&m.scrollIntoView(!0)):d.$.scrollTo(r.x,r.y):(a&&(m.selectionStart=a[0],m.selectionEnd=a[1]),m.scrollLeft=r[0],m.scrollTop=r[1]),a=r=null,u=this.state,e.fire("maximize",this.state)},canUndo:!1}),e.ui.addButton&&e.ui.addButton("Maximize",{label:l.maximize.maximize,command:"maximize",toolbar:"tools,10"}),e.on("mode",function(){var t=e.getCommand("maximize");t.setState(t.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:u)},null,null,100)}}})}(),CKEDITOR.plugins.add("newpage",{init:function(e){e.addCommand("newpage",{modes:{wysiwyg:1,source:1},exec:function(e){var t=this;e.setData(e.config.newpage_html||"",function(){e.focus(),setTimeout(function(){e.fire("afterCommandExec",{name:"newpage",command:t}),e.selectionChange()},200)})},async:!0}),e.ui.addButton&&e.ui.addButton("NewPage",{label:e.lang.newpage.toolbar,command:"newpage",toolbar:"document,20"})}}),function(){function e(e){return{"aria-label":e,class:"cke_pagebreak",contenteditable:"false","data-cke-display-name":"pagebreak","data-cke-pagebreak":1,style:"page-break-after: always",title:e}}CKEDITOR.plugins.add("pagebreak",{requires:"fakeobjects",onLoad:function(){var e=("background:url("+CKEDITOR.getUrl(this.path+"images/pagebreak.gif")+") no-repeat center center;clear:both;width:100%;border-top:#999 1px dotted;border-bottom:#999 1px dotted;padding:0;height:5px;cursor:default;").replace(/;/g," !important;");CKEDITOR.addCss("div.cke_pagebreak{"+e+"}")},init:function(e){e.blockless||(e.addCommand("pagebreak",CKEDITOR.plugins.pagebreakCmd),e.ui.addButton&&e.ui.addButton("PageBreak",{label:e.lang.pagebreak.toolbar,command:"pagebreak",toolbar:"insert,70"}),CKEDITOR.env.webkit&&e.on("contentDom",function(){e.document.on("click",function(t){(t=t.data.getTarget()).is("div")&&t.hasClass("cke_pagebreak")&&e.getSelection().selectElement(t)})}))},afterInit:function(t){function n(n){CKEDITOR.tools.extend(n.attributes,e(t.lang.pagebreak.alt),!0),n.children.length=0}var i,o=(i=t.dataProcessor)&&i.dataFilter,a=/page-break-after\s*:\s*always/i,r=/display\s*:\s*none/i;(i=i&&i.htmlFilter)&&i.addRules({attributes:{class:function(e,t){var n=e.replace("cke_pagebreak","");if(n!=e){var i=CKEDITOR.htmlParser.fragment.fromHtml('<span style="display: none;"> </span>').children[0];t.children.length=0,t.add(i),delete(i=t.attributes)["aria-label"],delete i.contenteditable,delete i.title}return n}}},{applyToAll:!0,priority:5}),o&&o.addRules({elements:{div:function(e){if(e.attributes["data-cke-pagebreak"])n(e);else if(a.test(e.attributes.style)){var t=e.children[0];t&&"span"==t.name&&r.test(t.attributes.style)&&n(e)}}}})}}),CKEDITOR.plugins.pagebreakCmd={exec:function(t){var n=t.document.createElement("div",{attributes:e(t.lang.pagebreak.alt)});t.insertElement(n)},context:"div",allowedContent:{div:{styles:"!page-break-after"},span:{match:function(e){return(e=e.parent)&&"div"==e.name&&e.styles["page-break-after"]},styles:"display"}},requiredContent:"div{page-break-after}"}}(),function(){var e={canUndo:!1,async:!0,exec:function(t){t.getClipboardData({title:t.lang.pastetext.title},function(n){n&&t.fire("paste",{type:"text",dataValue:n.dataValue}),t.fire("afterCommandExec",{name:"pastetext",command:e,returnValue:!!n})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(t){t.addCommand("pastetext",e),t.ui.addButton&&t.ui.addButton("PasteText",{label:t.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"}),t.config.forcePasteAsPlainText&&t.on("beforePaste",function(e){"html"!=e.data.type&&(e.data.type="text")}),t.on("pasteState",function(e){t.getCommand("pastetext").setState(e.data)})}})}(),function(){function e(e){e.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(t){var n=0,i=this.path;t.addCommand("pastefromword",{canUndo:!1,async:!0,exec:function(t){var i=this;n=1,t.once("beforePaste",e),t.getClipboardData({title:t.lang.pastefromword.title},function(e){e&&t.fire("paste",{type:"html",dataValue:e.dataValue}),t.fire("afterCommandExec",{name:"pastefromword",command:i,returnValue:!!e})})}}),t.ui.addButton&&t.ui.addButton("PasteFromWord",{label:t.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"}),t.on("pasteState",function(e){t.getCommand("pastefromword").setState(e.data)}),t.on("paste",function(e){var o=e.data,a=o.dataValue;if(a&&(n||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(a))){var r=function(e,t,n){var i=CKEDITOR.cleanWord;return i?n():(e=CKEDITOR.getUrl(e.config.pasteFromWordCleanupFile||t+"filter/default.js"),CKEDITOR.scriptLoader.load(e,n,null,!0)),!i}(t,i,function(){r?t.fire("paste",o):(!t.config.pasteFromWordPromptCleanup||n||confirm(t.lang.pastefromword.confirmCleanup))&&(o.dataValue=CKEDITOR.cleanWord(a,t))});r&&e.cancel()}},null,null,3)}})}(),function(){var e,t={modes:{wysiwyg:1,source:1},canUndo:!1,readOnly:1,exec:function(t){var n,i=(o=t.config).baseHref?'<base href="'+o.baseHref+'"/>':"";if(o.fullPage)n=t.getData().replace(/<head>/,"$&"+i).replace(/[^>]*(?=<\/title>)/,"$& — "+t.lang.preview.preview);else{var o="<body ";
1(r=t.document&&t.document.getBody())&&(r.getAttribute("id")&&(o+='id="'+r.getAttribute("id")+'" '),r.getAttribute("class")&&(o+='class="'+r.getAttribute("class")+'" ')),n=t.config.docType+'<html dir="'+t.config.contentsLangDirection+'"><head>'+i+"<title>"+t.lang.preview.preview+"</title>"+CKEDITOR.tools.buildStyleHtml(t.config.contentsCss)+"</head>"+o+">"+t.getData()+"</body></html>"}i=640,o=420,r=80;try{var a=window.screen,r=(i=Math.round(.8*a.width),o=Math.round(.7*a.height),Math.round(.1*a.width))}catch(e){}if(!1===t.fire("contentPreview",t={dataValue:n}))return!1;var s;a="";return CKEDITOR.env.ie&&(window._cke_htmlToLoad=t.dataValue,s="javascript:void( (function(){document.open();"+("("+CKEDITOR.tools.fixDomain+")();").replace(/\/\/.*?\n/g,"").replace(/parent\./g,"window.opener.")+"document.write( window.opener._cke_htmlToLoad );document.close();window.opener._cke_htmlToLoad = null;})() )",a=""),CKEDITOR.env.gecko&&(window._cke_htmlToLoad=t.dataValue,a=e+"preview.html"),a=window.open(a,null,"toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width="+i+",height="+o+",left="+r),CKEDITOR.env.ie&&a&&(a.location=s),!CKEDITOR.env.ie&&!CKEDITOR.env.gecko&&((s=a.document).open(),s.write(t.dataValue),s.close()),!0}};CKEDITOR.plugins.add("preview",{init:function(n){n.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(e=this.path,n.addCommand("preview",t),n.ui.addButton&&n.ui.addButton("Preview",{label:n.lang.preview.preview,command:"preview",toolbar:"document,40"}))}})}(),CKEDITOR.plugins.add("print",{init:function(e){e.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&(e.addCommand("print",CKEDITOR.plugins.print),e.ui.addButton&&e.ui.addButton("Print",{label:e.lang.print.toolbar,command:"print",toolbar:"document,50"}))}}),CKEDITOR.plugins.print={exec:function(e){CKEDITOR.env.gecko?e.window.$.print():e.document.$.execCommand("Print")},canUndo:!1,readOnly:1,modes:{wysiwyg:1}},CKEDITOR.plugins.add("removeformat",{init:function(e){e.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat),e.ui.addButton&&e.ui.addButton("RemoveFormat",{label:e.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(e){for(var t,n=e._.removeFormatRegex||(e._.removeFormatRegex=RegExp("^(?:"+e.config.removeFormatTags.replace(/,/g,"|")+")$","i")),i=e._.removeAttributes||(e._.removeAttributes=e.config.removeFormatAttributes.split(",")),o=CKEDITOR.plugins.removeformat.filter,a=e.getSelection().getRanges(),r=a.createIterator(),s=function(e){return e.type==CKEDITOR.NODE_ELEMENT};t=r.getNextRange();){t.collapsed||t.enlarge(CKEDITOR.ENLARGE_ELEMENT);var l=t.createBookmark(),c=l.startNode,d=l.endNode,u=function(t){for(var i,a=e.elementPath(t),r=a.elements,s=1;(i=r[s])&&!i.equals(a.block)&&!i.equals(a.blockLimit);s++)n.test(i.getName())&&o(e,i)&&t.breakParent(i)};if(u(c),d)for(u(d),c=c.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT);c&&!c.equals(d);)if(c.isReadOnly()){if(c.getPosition(d)&CKEDITOR.POSITION_CONTAINS)break;c=c.getNext(s)}else u=c.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT),!("img"==c.getName()&&c.data("cke-realelement"))&&o(e,c)&&(n.test(c.getName())?c.remove(1):(c.removeAttributes(i),e.fire("removeFormatCleanup",c))),c=u;t.moveToBookmark(l)}e.forceNextSelectionCheck(),e.getSelection().selectRanges(a)}}},filter:function(e,t){for(var n=e._.removeFormatFilters||[],i=0;i<n.length;i++)if(!1===n[i](t))return!1;return!0}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(e){this._.removeFormatFilters||(this._.removeFormatFilters=[]),this._.removeFormatFilters.push(e)},CKEDITOR.config.removeFormatTags="b,big,code,del,dfn,em,font,i,ins,kbd,q,s,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",function(){var e={readOnly:1,exec:function(e){if(e.fire("save")&&(e=e.element.$.form))try{e.submit()}catch(t){e.submit.click&&e.submit.click()}}};CKEDITOR.plugins.add("save",{init:function(t){t.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(t.addCommand("save",e).modes={wysiwyg:!!t.element.$.form},t.ui.addButton&&t.ui.addButton("Save",{label:t.lang.save.toolbar,command:"save",toolbar:"document,10"}))}})}(),CKEDITOR.plugins.add("selectall",{init:function(e){e.addCommand("selectAll",{modes:{wysiwyg:1,source:1},exec:function(e){var t=e.editable();if(t.is("textarea"))e=t.$,CKEDITOR.env.ie?e.createTextRange().execCommand("SelectAll"):(e.selectionStart=0,e.selectionEnd=e.value.length),e.focus();else{if(t.is("body"))e.document.$.execCommand("SelectAll",!1,null);else{var n=e.createRange();n.selectNodeContents(t),n.select()}e.forceNextSelectionCheck(),e.selectionChange()}},canUndo:!1}),e.ui.addButton&&e.ui.addButton("SelectAll",{label:e.lang.selectall.toolbar,command:"selectAll",toolbar:"selection,10"})}}),function(){var e={readOnly:1,preserveState:!0,editorFocus:!1,exec:function(e){this.toggleState(),this.refresh(e)},refresh:function(e){if(e.document){var t=this.state!=CKEDITOR.TRISTATE_ON||e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!e.focusManager.hasFocus?"removeClass":"attachClass";e.editable()[t]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){var e,t,n,i,o,a,r="p div pre address blockquote h1 h2 h3 h4 h5 h6".split(" "),s=CKEDITOR.getUrl(this.path),l=!(CKEDITOR.env.ie&&9>CKEDITOR.env.version),c=l?":not([contenteditable=false]):not(.cke_show_blocks_off)":"";for(e=t=n=i="";o=r.pop();)a=r.length?",":"",e+=".cke_show_blocks "+o+c+a,n+=".cke_show_blocks.cke_contents_ltr "+o+c+a,i+=".cke_show_blocks.cke_contents_rtl "+o+c+a,t+=".cke_show_blocks "+o+c+"{background-image:url("+s+"images/block_"+o+".png)}";CKEDITOR.addCss((e+"{background-repeat:no-repeat;border:1px dotted gray;padding-top:8px}").concat(t,n+"{background-position:top left;padding-left:8px}",i+"{background-position:top right;padding-right:8px}")),l||CKEDITOR.addCss(".cke_show_blocks [contenteditable=false],.cke_show_blocks .cke_show_blocks_off{border:none;padding-top:0;background-image:none}.cke_show_blocks.cke_contents_rtl [contenteditable=false],.cke_show_blocks.cke_contents_rtl .cke_show_blocks_off{padding-right:0}.cke_show_blocks.cke_contents_ltr [contenteditable=false],.cke_show_blocks.cke_contents_ltr .cke_show_blocks_off{padding-left:0}")},init:function(t){function n(){i.refresh(t)}if(!t.blockless){var i=t.addCommand("showblocks",e);i.canUndo=!1,t.config.startupOutlineBlocks&&i.setState(CKEDITOR.TRISTATE_ON),t.ui.addButton&&t.ui.addButton("ShowBlocks",{label:t.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"}),t.on("mode",function(){i.state!=CKEDITOR.TRISTATE_DISABLED&&i.refresh(t)}),t.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(t.on("focus",n),t.on("blur",n)),t.on("contentDom",function(){i.state!=CKEDITOR.TRISTATE_DISABLED&&i.refresh(t)})}}})}(),function(){var e={preserveState:!0,editorFocus:!1,readOnly:1,exec:function(e){this.toggleState(),this.refresh(e)},refresh:function(e){if(e.document){var t=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";e.editable()[t]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var e;e=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted","}"]:".%1 table.%2,;.%1 table.%2 > tr > td, .%1 table.%2 > tr > th,;.%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,;.%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,;.%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th;{;border : #d3d3d3 1px dotted;}".split(";")).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders "),CKEDITOR.addCss(e)},init:function(t){var n=t.addCommand("showborders",e);n.canUndo=!1,!1!==t.config.startupShowBorders&&n.setState(CKEDITOR.TRISTATE_ON),t.on("mode",function(){n.state!=CKEDITOR.TRISTATE_DISABLED&&n.refresh(t)},null,null,100),t.on("contentDom",function(){n.state!=CKEDITOR.TRISTATE_DISABLED&&n.refresh(t)}),t.on("removeFormatCleanup",function(e){e=e.data,t.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&e.is("table")&&(!e.hasAttribute("border")||0>=parseInt(e.getAttribute("border"),10))&&e.addClass("cke_show_border")})},afterInit:function(e){e=(t=e.dataProcessor)&&t.dataFilter;var t=t&&t.htmlFilter;e&&e.addRules({elements:{table:function(e){var t=(e=e.attributes).class,n=parseInt(e.border,10);n&&!(0>=n)||t&&-1!=t.indexOf("cke_show_border")||(e.class=(t||"")+" cke_show_border")}}}),t&&t.addRules({elements:{table:function(e){var t=(e=e.attributes).class;t&&(e.class=t.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}}),CKEDITOR.on("dialogDefinition",function(e){var t=e.data.name;"table"!=t&&"tableProperties"!=t||(e=e.data.definition,t=e.getContents("info").get("txtBorder"),t.commit=CKEDITOR.tools.override(t.commit,function(e){return function(t,n){e.apply(this,arguments);var i=parseInt(this.getValue(),10);n[!i||0>=i?"addClass":"removeClass"]("cke_show_border")}}
1),(e=(e=e.getContents("advanced"))&&e.get("advCSSClasses"))&&(e.setup=CKEDITOR.tools.override(e.setup,function(e){return function(){e.apply(this,arguments),this.setValue(this.getValue().replace(/cke_show_border/,""))}}),e.commit=CKEDITOR.tools.override(e.commit,function(e){return function(t,n){e.apply(this,arguments),parseInt(n.getAttribute("border"),10)||n.addClass("cke_show_border")}})))})}(),function(){CKEDITOR.plugins.add("sourcearea",{init:function(t){function n(){var e=o&&this.equals(CKEDITOR.document.getActive());this.hide(),this.setStyle("height",this.getParent().$.clientHeight+"px"),this.setStyle("width",this.getParent().$.clientWidth+"px"),this.show(),e&&this.focus()}if(t.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var i=CKEDITOR.plugins.sourcearea;t.addMode("source",function(i){var o=t.ui.space("contents").getDocument().createElement("textarea");o.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",t.config.sourceAreaTabSize||4))),o.setAttribute("dir","ltr"),o.addClass("cke_source cke_reset cke_enable_context_menu"),t.ui.space("contents").append(o),(o=t.editable(new e(t,o))).setData(t.getData(1)),CKEDITOR.env.ie&&(o.attachListener(t,"resize",n,o),o.attachListener(CKEDITOR.document.getWindow(),"resize",n,o),CKEDITOR.tools.setTimeout(n,0,o)),t.fire("ariaWidget",this),i()}),t.addCommand("source",i.commands.source),t.ui.addButton&&t.ui.addButton("Source",{label:t.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"}),t.on("mode",function(){t.getCommand("source").setState("source"==t.mode?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)});var o=CKEDITOR.env.ie&&9==CKEDITOR.env.version}}});var e=CKEDITOR.tools.createClass({base:CKEDITOR.editable,proto:{setData:function(e){this.setValue(e),this.status="ready",this.editor.fire("dataReady")},getData:function(){return this.getValue()},insertHtml:function(){},insertElement:function(){},insertText:function(){},setReadOnly:function(e){this[(e?"set":"remove")+"Attribute"]("readOnly","readonly")},detach:function(){e.baseProto.detach.call(this),this.clearCustomData(),this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(e){"wysiwyg"==e.mode&&e.fire("saveSnapshot"),e.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED),e.setMode("source"==e.mode?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("specialchar",{availableLangs:{ar:1,bg:1,ca:1,cs:1,cy:1,de:1,el:1,en:1,"en-gb":1,eo:1,es:1,et:1,fa:1,fi:1,fr:1,"fr-ca":1,gl:1,he:1,hr:1,hu:1,id:1,it:1,ja:1,km:1,ku:1,lv:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ru:1,si:1,sk:1,sl:1,sq:1,sv:1,th:1,tr:1,tt:1,ug:1,uk:1,vi:1,zh:1,"zh-cn":1},requires:"dialog",init:function(e){var t=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js"),e.addCommand("specialchar",{exec:function(){var n=e.langCode;n=t.availableLangs[n]?n:t.availableLangs[n.replace(/-.*/,"")]?n.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(t.path+"dialogs/lang/"+n+".js"),function(){CKEDITOR.tools.extend(e.lang.specialchar,t.langEntries[n]),e.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:!1}),e.ui.addButton&&e.ui.addButton("SpecialChar",{label:e.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! " # $ % & ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ € ‘ ’ “ ” – — ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Œ œ Ŵ Ŷ ŵ ŷ ‚ ‛ „ … ™ ► • → ⇒ ⇔ ♦ ≈".split(" "),CKEDITOR.plugins.add("scayt",{requires:"menubutton,dialog",tabToOpen:null,dialogName:"scaytDialog",init:function(e){var t=this,n=CKEDITOR.plugins.scayt;this.bindEvents(e),this.parseConfig(e),this.addRule(e),CKEDITOR.dialog.add(this.dialogName,CKEDITOR.getUrl(this.path+"dialogs/options.js")),this.addMenuItems(e);var i=e.lang.scayt,o=CKEDITOR.env;e.ui.add("Scayt",CKEDITOR.UI_MENUBUTTON,{label:i.text_title,title:i.text_title,modes:{wysiwyg:!(o.ie&&(8>o.version||o.quirks))},toolbar:"spellchecker,20",refresh:function(){var t=e.ui.instances.Scayt.getState();e.scayt&&(t=n.state[e.name]?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF),e.fire("scaytButtonState",t)},onRender:function(){var t=this;e.on("scaytButtonState",function(e){void 0!==typeof e.data&&t.setState(e.data)})},onMenu:function(){var t=e.scayt;return e.getMenuItem("scaytToggle").label=e.lang.scayt[t&&n.state[e.name]?"btn_disable":"btn_enable"],t={scaytToggle:CKEDITOR.TRISTATE_OFF,scaytOptions:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytLangs:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytDict:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,scaytAbout:t?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,WSC:e.plugins.wsc?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED},e.config.scayt_uiTabs[0]||delete t.scaytOptions,e.config.scayt_uiTabs[1]||delete t.scaytLangs,e.config.scayt_uiTabs[2]||delete t.scaytDict,t}}),e.contextMenu&&e.addMenuItems&&(e.contextMenu.addListener(function(){var n,i=e.scayt;if(i){var o=i.getSelectionNode();(o=o?o.getAttribute(i.getNodeAttribute()):o)&&(n=t.menuGenerator(e,o,t),i.showBanner("."+e.contextMenu._.definition.panel.className.split(" ").join(" .")))}return n}),e.contextMenu._.onHide=CKEDITOR.tools.override(e.contextMenu._.onHide,function(t){return function(){var n=e.scayt;return n&&n.hideBanner(),t.apply(this)}}))},addMenuItems:function(e){var t=this,n=CKEDITOR.plugins.scayt;e.addMenuGroup("scaytButton");var i=e.config.scayt_contextMenuItemsOrder.split("|");if(i&&i.length)for(var o=0;o<i.length;o++)e.addMenuGroup("scayt_"+i[o],o-10);i={scaytToggle:{label:e.lang.scayt.btn_enable,group:"scaytButton",onClick:function(){var t=e.scayt;n.state[e.name]=!n.state[e.name],!0===n.state[e.name]?t||n.createScayt(e):t&&n.destroy(e)}},scaytAbout:{label:e.lang.scayt.btn_about,group:"scaytButton",onClick:function(){e.scayt.tabToOpen="about",e.lockSelection(),e.openDialog(t.dialogName)}},scaytOptions:{label:e.lang.scayt.btn_options,group:"scaytButton",onClick:function(){e.scayt.tabToOpen="options",e.lockSelection(),e.openDialog(t.dialogName)}},scaytLangs:{label:e.lang.scayt.btn_langs,group:"scaytButton",onClick:function(){e.scayt.tabToOpen="langs",e.lockSelection(),e.openDialog(t.dialogName)}},scaytDict:{label:e.lang.scayt.btn_dictionaries,group:"scaytButton",onClick:function(){e.scayt.tabToOpen="dictionaries",e.lockSelection(),e.openDialog(t.dialogName)}}},e.plugins.wsc&&(i.WSC={label:e.lang.wsc.toolbar,group:"scaytButton",onClick:function(){var t=CKEDITOR.plugins.scayt,n=e.scayt,i=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.container.getText():e.document.getBody().getText();(i=i.replace(/\s/g,""))?(n&&t.state[e.name]&&n.setMarkupPaused&&n.setMarkupPaused(!0),e.lockSelection(),e.execCommand("checkspell")):alert("Nothing to check!")}}),e.addMenuItems(i)},bindEvents:function(e){var t=CKEDITOR.plugins.scayt,n=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE;CKEDITOR.on("dialogDefinition",function(e){"scaytDialog"===e.data.name&&e.data.definition.dialog.on("cancel",function(){return!1},this,null,-1)});var i=function(){e.scayt&&t.destroy(e)},o=function(){t.state[e.name]&&!e.readOnly&&t.createScayt(e)},a=function(){n?(e.on("blur",i),e.on("focus",o),e.focusManager.hasFocus&&o()):o()};e.on("contentDom",a),e.on("beforeCommandExec",function(n){n.data.name in t.options.disablingCommandExec&&"wysiwyg"==e.mode?(n=e.scayt)&&(t.destroy(e),e.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED)):"bold"!==n.data.name&&"italic"!==n.data.name&&"underline"!==n.data.name&&"strike"!==n.data.name&&"subscript"!==n.data.name&&"superscript"!==n.data.name||(n=e.scayt)&&(n.removeMarkupInSelectionNode(),n.fire("startSpellCheck"))}),e.on("beforeSetMode",function(n){"source"==n.data&&(n=e.scayt)&&(t.destroy(e),e.fire("scaytButtonState",CKEDITOR.TRISTATE_DISABLED))}),e.on("afterCommandExec",function(t){var n;"wysiwyg"!=e.mode||"undo"!=t.data.name&&"redo"!=t.data.name||(n=e.scayt)&&setTimeout(function(){n.fire("startSpellCheck")},250)}),e.on("readOnly",function(n){var i;n&&(i=e.scayt,!0===n.editor.readOnly?i&&i.fire("removeMarkupInDocument",{}):i?i.fire("startSpellCheck"):"wysiwyg"==n.editor.mode&&!0===t.state[n.editor.name]&&(t.createScayt(e),n.editor.fire("scaytButtonState",CKEDITOR.TRISTATE_ON)))}),e.on("beforeDestroy",i),e.on("setData",function(){i(),e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&a()},this,null,50),e.on("insertElement",function(){var t=e.scayt;t&&(t.removeMarkupInSelectionNode(),t.fire("startSpellCheck"))},this,null,50),e.on("insertHtml",function(){var t=e.scayt;t&&(t.removeMarkupInSelectionNode(),t.fire("startSpellCheck"))},this,null,50),e.on("scaytDialogShown",function(t){t.data.selectPage(e.scayt.tabToOpen)})},parseConfig:function(e){var t=CKEDITOR.plugins.scayt;if(t.replaceOldOptionsNames(e.config),"boolean"!=typeof e.config.scayt_autoStartup&&(e.config.scayt_autoStartup=!1),t.state[e.name]=e.config.scayt_autoStartup,e.config.scayt_contextCommands||(e.config.scayt_contextCommands="ignore|ignoreall|add"),e.config.scayt_contextMenuItemsOrder||(e.config.scayt_contextMenuItemsOrder="suggest|moresuggest|control"),e.config.scayt_sLang||(e.config.scayt_sLang="en_US"),(void 0===e.config.scayt_maxSuggestions||"number"!=typeof e.config.scayt_maxSuggestions||0>e.config.scayt_maxSuggestions)&&(e.config.scayt_maxSuggestions=5),void 0!==e.config.scayt_customDictionaryIds&&"string"==typeof e.config.scayt_customDictionaryIds||(e.config.scayt_customDictionaryIds=""),void 0!==e.config.scayt_userDictionaryName&&"string"==typeof e.config.scayt_userDictionaryName||(e.config.scayt_userDictionaryName=null),"string"==typeof e.config.scayt_uiTabs&&3===e.config.scayt_uiTabs.split(",").length){var n=[],i=[];e.config.scayt_uiTabs=e.config.scayt_uiTabs.split(","),CKEDITOR.tools.search(e.config.scayt_uiTabs,function(e){1===Number(e)||0===Number(e)?(i.push(!0),n.push(Number(e))):i.push(!1)}),e.config.scayt_uiTabs=null===CKEDITOR.tools.search(i,!1)?n:[1,1,1]}else e.config.scayt_uiTabs=[1,1,1];"string"!=typeof e.config.scayt_serviceProtocol&&(e.config.scayt_serviceProtocol=null),"string"!=typeof e.config.scayt_serviceHost&&(e.config.scayt_serviceHost=null),"string"!=typeof e.config.scayt_servicePort&&(e.config.scayt_servicePort=null),"string"!=typeof e.config.scayt_servicePath&&(e.config.scayt_servicePath=null),e.config.scayt_moreSuggestions||(e.config.scayt_moreSuggestions="on"),"string"!=typeof e.config.scayt_customerId&&(e.config.scayt_customerId="1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2"),"string"!=typeof e.config.scayt_srcUrl&&(t=document.location.protocol,t=-1!=t.search(/https?:/)?t:"http:",e.config.scayt_srcUrl=t+"//svc.webspellchecker.net/spellcheck31/lf/scayt3/ckscayt/ckscayt.js"),"boolean"!=typeof CKEDITOR.config.scayt_handleCheckDirty&&(CKEDITOR.config.scayt_handleCheckDirty=!0),"boolean"!=typeof CKEDITOR.config.scayt_handleUndoRedo&&(CKEDITOR.config.scayt_handleUndoRedo=!0)},addRule:function(e){var t=(i=e.dataProcessor)&&i.htmlFilter,n=e._.elementsPath&&e._.elementsPath.filters,i=i&&i.dataFilter,o=e.addRemoveFormatFilter;n&&n.push(function(t){var n=CKEDITOR.plugins.scayt;if(e.scayt&&t.hasAttribute(n.options.data_attribute_name))return!1}),i&&i.addRules({elements:{span:function(t){var n=CKEDITOR.plugins.scayt;return n&&n.state[e.name]&&t.classes&&CKEDITOR.tools.search(t.classes,n.options.misspelled_word_class)&&(t.classes&&t.parent.type===CKEDITOR.NODE_DOCUMENT_FRAGMENT?(delete t.attributes.style,delete t.name):delete t.classes[CKEDITOR.tools.indexOf(t.classes,n.options.misspelled_word_class)]),t}}}),t&&t.addRules({elements:{span:function(t){var n=CKEDITOR.plugins.scayt;return n&&n.state[e.name]&&t.hasClass(n.options.misspelled_word_class)&&t.attributes[n.options.data_attribute_name]&&(t.removeClass(n.options.misspelled_word_class),delete t.attributes[n.options.data_attribute_name],delete t.name),t}}}),o&&o.call(e,function(t){var n=CKEDITOR.plugins.scayt,i=!0;return e.scayt&&t.hasAttribute(n.options.data_attribute_name)&&(i=!1),i})},scaytMenuDefinition:function(e){var t=this;return{scayt_ignore:{label:(e=e.scayt).getLocal("btn_ignore"),group:"scayt_control",order:1,exec:function(e){e.scayt.ignoreWord()}},scayt_ignoreall:{label:e.getLocal("btn_ignoreAll"),group:"scayt_control",order:2,exec:function(e){e.scayt.ignoreAllWords()}},scayt_add:{label:e.getLocal("btn_addWord"),group:"scayt_control",order:3,exec:function(e){var t=e.scayt;setTimeout(function(){t.addWordToUserDictionary()},10)}},option:{label:e.getLocal("btn_options"),group:"scayt_control",order:4,exec:function(e){e.scayt.tabToOpen="options",e.lockSelection(),e.openDialog(t.dialogName)},verification:function(e){return 1==e.config.scayt_uiTabs[0]}},language:{label:e.getLocal("btn_langs"),group:"scayt_control",order:5,exec:function(e){e.scayt.tabToOpen="langs",e.lockSelection(),e.openDialog(t.dialogName)},verification:function(e){return 1==e.config.scayt_uiTabs[1]}},dictionary:{label:e.getLocal("btn_dictionaries"),group:"scayt_control",order:6,exec:function(e){e.scayt.tabToOpen="dictionaries",e.lockSelection(),e.openDialog(t.dialogName)},verification:function(e){return 1==e.config.scayt_uiTabs[2]}},about:{label:e.getLocal("btn_about"),group:"scayt_control",order:7,exec:function(e){e.scayt.tabToOpen="about",e.lockSelection(),e.openDialog(t.dialogName)}}}},buildSuggestionMenuItems:function(e,t){var n={},i={},o=e.scayt;if(0<t.length&&"no_any_suggestions"!==t[0])for(var a=0;a<t.length;a++){var r="scayt_suggest_"+CKEDITOR.plugins.scayt.suggestions[a].replace(" ","_");e.addCommand(r,this.createCommand(CKEDITOR.plugins.scayt.suggestions[a])),a<e.config.scayt_maxSuggestions?(e.addMenuItem(r,{label:t[a],command:r,group:"scayt_suggest",order:a+1}),n[r]=CKEDITOR.TRISTATE_OFF):(e.addMenuItem(r,{label:t[a],command:r,group:"scayt_moresuggest",order:a+1}),i[r]=CKEDITOR.TRISTATE_OFF,"on"===e.config.scayt_moreSuggestions&&(e.addMenuItem("scayt_moresuggest",{label:o.getLocal("btn_moreSuggestions"),group:"scayt_moresuggest",order:10,getItems:function(){return i}}),n.scayt_moresuggest=CKEDITOR.TRISTATE_OFF))}else n.no_scayt_suggest=CKEDITOR.TRISTATE_DISABLED,e.addCommand("no_scayt_suggest",{exec:function(){}}),e.addMenuItem("no_scayt_suggest",{label:o.getLocal("btn_noSuggestions")||"no_scayt_suggest",command:"no_scayt_suggest",group:"scayt_suggest",order:0});return n},menuGenerator:function(e,t){var n=e.scayt,i=this.scaytMenuDefinition(e),o={},a=e.config.scayt_contextCommands.split("|");if(n.fire("getSuggestionsList",{lang:n.getLang(),word:t}),o=this.buildSuggestionMenuItems(e,CKEDITOR.plugins.scayt.suggestions),"off"==e.config.scayt_contextCommands)return o;for(var r in i)-1==CKEDITOR.tools.indexOf(a,r.replace("scayt_",""))&&"all"!=e.config.scayt_contextCommands||(o[r]=CKEDITOR.TRISTATE_OFF,"function"==typeof i[r].verification&&!i[r].verification(e)&&delete o[r],e.addCommand(r,{exec:i[r].exec}),e.addMenuItem(r,{label:e.lang.scayt[i[r].label]||i[r].label,command:r,group:i[r].group,order:i[r].order}));return o},createCommand:function(e){return{exec:function(t){t.scayt.replaceSelectionNode({word:e})}}}}),CKEDITOR.plugins.scayt={state:{},suggestions:[],loadingHelper:{loadOrder:[]},isLoading:!1,options:{disablingCommandExec:{source:!0,newpage:!0,templates:!0},data_attribute_name:"data-scayt-word",misspelled_word_class:"scayt-misspell-word"},backCompatibilityMap:{scayt_service_protocol:"scay
1t_serviceProtocol",scayt_service_host:"scayt_serviceHost",scayt_service_port:"scayt_servicePort",scayt_service_path:"scayt_servicePath",scayt_customerid:"scayt_customerId"},replaceOldOptionsNames:function(e){for(var t in e)t in this.backCompatibilityMap&&(e[this.backCompatibilityMap[t]]=e[t],delete e[t])},createScayt:function(e){var t=this;this.loadScaytLibrary(e,function(e){var n={lang:e.config.scayt_sLang,container:"BODY"==e.editable().$.nodeName?e.document.getWindow().$.frameElement:e.editable().$,customDictionary:e.config.scayt_customDictionaryIds,userDictionaryName:e.config.scayt_userDictionaryName,localization:e.langCode,customer_id:e.config.scayt_customerId,data_attribute_name:t.options.data_attribute_name,misspelled_word_class:t.options.misspelled_word_class};e.config.scayt_serviceProtocol&&(n.service_protocol=e.config.scayt_serviceProtocol),e.config.scayt_serviceHost&&(n.service_host=e.config.scayt_serviceHost),e.config.scayt_servicePort&&(n.service_port=e.config.scayt_servicePort),e.config.scayt_servicePath&&(n.service_path=e.config.scayt_servicePath),(n=new SCAYT.CKSCAYT(n,function(){},function(){})).subscribe("suggestionListSend",function(e){for(var t={},n=[],i=0;i<e.suggestionList.length;i++)t[e.suggestionList[i]]||(t[e.suggestionList[i]]=e.suggestionList[i],n.push(e.suggestionList[i]));CKEDITOR.plugins.scayt.suggestions=n}),e.scayt=n,e.fire("scaytButtonState",e.readOnly?CKEDITOR.TRISTATE_DISABLED:CKEDITOR.TRISTATE_ON)})},destroy:function(e){e.scayt&&e.scayt.destroy(),delete e.scayt,e.fire("scaytButtonState",CKEDITOR.TRISTATE_OFF)},loadScaytLibrary:function(e,t){var n=this;void 0===window.SCAYT||"function"!=typeof window.SCAYT.CKSCAYT?(this.loadingHelper[e.name]=t,this.loadingHelper.loadOrder.push(e.name),CKEDITOR.scriptLoader.load(e.config.scayt_srcUrl,function(){var e;CKEDITOR.fireOnce("scaytReady");for(var t=0;t<n.loadingHelper.loadOrder.length;t++)e=n.loadingHelper.loadOrder[t],"function"==typeof n.loadingHelper[e]&&n.loadingHelper[e](CKEDITOR.instances[e]),delete n.loadingHelper[e];n.loadingHelper.loadOrder=[]})):window.SCAYT&&"function"==typeof window.SCAYT.CKSCAYT&&(CKEDITOR.fireOnce("scaytReady"),e.scayt||"function"==typeof t&&t(e))}},CKEDITOR.on("scaytReady",function(){if(!0===CKEDITOR.config.scayt_handleCheckDirty){(e=CKEDITOR.editor.prototype).checkDirty=CKEDITOR.tools.override(e.checkDirty,function(e){return function(){var t=null,n=this.scayt;if(CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state[this.name]&&this.scayt){if(t="ready"==this.status){var i=n.removeMarkupFromString(this.getSnapshot());n=n.removeMarkupFromString(this._.previousValue),t=t&&n!==i}}else t=e.call(this);return t}}),e.resetDirty=CKEDITOR.tools.override(e.resetDirty,function(e){return function(){var t=this.scayt;CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state[this.name]&&this.scayt?this._.previousValue=t.removeMarkupFromString(this.getSnapshot()):e.call(this)}})}if(!0===CKEDITOR.config.scayt_handleUndoRedo){var e,t="function"==typeof(e=CKEDITOR.plugins.undo.Image.prototype).equalsContent?"equalsContent":"equals";e[t]=CKEDITOR.tools.override(e[t],function(e){return function(t){var n=t.editor.scayt,i=this.contents,o=t.contents,a=null;return CKEDITOR.plugins.scayt&&CKEDITOR.plugins.scayt.state[t.editor.name]&&t.editor.scayt&&(this.contents=n.removeMarkupFromString(i)||"",t.contents=n.removeMarkupFromString(o)||""),a=e.apply(this,arguments),this.contents=i,t.contents=o,a}})}}),CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(e){var t=e.config,n=e.lang.stylescombo,i={},o=[],a=[];e.on("stylesSet",function(n){if(n=n.data.styles){for(var r,s,l,c=0,d=n.length;c<d;c++)r=n[c],e.blockless&&r.element in CKEDITOR.dtd.$block||(s=r.name,r=new CKEDITOR.style(r),e.filter.customConfig&&!e.filter.check(r))||(r._name=s,r._.enterMode=t.enterMode,r._.type=l=r.assignedTo||r.type,r._.weight=c+1e3*(l==CKEDITOR.STYLE_OBJECT?1:l==CKEDITOR.STYLE_BLOCK?2:3),i[s]=r,o.push(r),a.push(r));o.sort(function(e,t){return e._.weight-t._.weight})}}),e.ui.addRichCombo("Styles",{label:n.label,title:n.panelTitle,toolbar:"styles,10",allowedContent:a,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(t.contentsCss),multiSelect:!0,attributes:{"aria-label":n.panelTitle}},init:function(){var e,t,i,a,r,s;for(r=0,s=o.length;r<s;r++)e=o[r],t=e._name,(a=e._.type)!=i&&(this.startGroup(n["panelTitle"+a]),i=a),this.add(t,e.type==CKEDITOR.STYLE_OBJECT?t:e.buildPreview(),t);this.commit()},onClick:function(t){e.focus(),e.fire("saveSnapshot");t=i[t];var n=e.elementPath();e[t.checkActive(n,e)?"removeStyle":"applyStyle"](t),e.fire("saveSnapshot")},onRender:function(){e.on("selectionChange",function(t){for(var n,o=this.getValue(),a=0,r=(t=t.data.path.elements).length;a<r;a++){n=t[a];for(var s in i)if(i[s].checkElementRemovable(n,!0,e))return void(s!=o&&this.setValue(s))}this.setValue("")},this)},onOpen:function(){var t=e.getSelection().getSelectedElement(),o=(t=e.elementPath(t),[0,0,0,0]);this.showAll(),this.unmarkAll();for(var a in i){var r=i[a],s=r._.type;r.checkApplicable(t,e,e.activeFilter)?o[s]++:this.hideItem(a),r.checkActive(t,e)&&this.mark(a)}o[CKEDITOR.STYLE_BLOCK]||this.hideGroup(n["panelTitle"+CKEDITOR.STYLE_BLOCK]),o[CKEDITOR.STYLE_INLINE]||this.hideGroup(n["panelTitle"+CKEDITOR.STYLE_INLINE]),o[CKEDITOR.STYLE_OBJECT]||this.hideGroup(n["panelTitle"+CKEDITOR.STYLE_OBJECT])},refresh:function(){var t=e.elementPath();if(t){for(var n in i)if(i[n].checkApplicable(t,e,e.activeFilter))return;this.setState(CKEDITOR.TRISTATE_DISABLED)}},reset:function(){i={},o=[]}})}}),function(){function e(e){return{editorFocus:!1,canUndo:!1,modes:{wysiwyg:1},exec:function(t){if(t.editable().hasFocus){var n,i=t.getSelection();if(n=new CKEDITOR.dom.elementPath(i.getCommonAncestor(),i.root).contains({td:1,th:1},1)){i=t.createRange();if((a=CKEDITOR.tools.tryThese(function(){var t=n.getParent().$.cells[n.$.cellIndex+(e?-1:1)];return t.parentNode.parentNode,t},function(){var t;return(t=(t=n.getParent()).getAscendant("table").$.rows[t.$.rowIndex+(e?-1:1)]).cells[e?t.cells.length-1:0]}))||e){if(!a)return!0;a=new CKEDITOR.dom.element(a),i.moveToElementEditStart(a),(!i.checkStartOfBlock()||!i.checkEndOfBlock())&&i.selectNodeContents(a)}else{for(var o=n.getAscendant("table").$,a=n.getParent().$.cells,r=(o=new CKEDITOR.dom.element(o.insertRow(-1),t.document),0),s=a.length;r<s;r++)o.append(new CKEDITOR.dom.element(a[r],t.document).clone(!1,!1)).appendBogus();i.moveToElementEditStart(o)}return i.select(!0),!0}}return!1}}}var t={editorFocus:!1,modes:{wysiwyg:1,source:1}},n={exec:function(e){e.container.focusNext(!0,e.tabIndex)}},i={exec:function(e){e.container.focusPrevious(!0,e.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(o){for(var a=!1!==o.config.enableTabKeyTools,r=o.config.tabSpaces||0,s="";r--;)s+=" ";s&&o.on("key",function(e){9==e.data.keyCode&&(o.insertHtml(s),e.cancel())}),a&&o.on("key",function(e){(9==e.data.keyCode&&o.execCommand("selectNextCell")||e.data.keyCode==CKEDITOR.SH
1IFT+9&&o.execCommand("selectPreviousCell"))&&e.cancel()}),o.addCommand("blur",CKEDITOR.tools.extend(n,t)),o.addCommand("blurBack",CKEDITOR.tools.extend(i,t)),o.addCommand("selectNextCell",e()),o.addCommand("selectPreviousCell",e(!0))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(e,t){var n,i,o,a,r,s,l=void 0===t?this.getTabIndex():t;if(0>=l)for(r=this.getNextSourceNode(e,CKEDITOR.NODE_ELEMENT);r;){if(r.isVisible()&&0===r.getTabIndex()){o=r;break}r=r.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT)}else for(r=this.getDocument().getBody().getFirst();r=r.getNextSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&r.equals(this)){if(i=!0,e){if(!(r=r.getNextSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(r)&&(n=1);if(r.isVisible()&&!(0>(s=r.getTabIndex()))){if(n&&s==l){o=r;break}s>l&&(!o||!a||s<a)?(o=r,a=s):!o&&0===s&&(o=r,a=s)}}o&&o.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(e,t){for(var n,i,o,a,r=void 0===t?this.getTabIndex():t,s=0,l=this.getDocument().getBody().getLast();l=l.getPreviousSourceNode(!1,CKEDITOR.NODE_ELEMENT);){if(!n)if(!i&&l.equals(this)){if(i=!0,e){if(!(l=l.getPreviousSourceNode(!0,CKEDITOR.NODE_ELEMENT)))break;n=1}}else i&&!this.contains(l)&&(n=1);if(l.isVisible()&&!(0>(a=l.getTabIndex())))if(0>=r){if(n&&0===a){o=l;break}a>s&&(o=l,s=a)}else{if(n&&a==r){o=l;break}a<r&&(!o||a>s)&&(o=l,s=a)}}o&&o.focus()},CKEDITOR.plugins.add("table",{requires:"dialog",init:function(e){function t(e){return CKEDITOR.tools.extend(e||{},{contextSensitive:1,refresh:function(e,t){this.setState(t.contains("table",1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}if(!e.blockless){var n=e.lang.table;e.addCommand("table",new CKEDITOR.dialogCommand("table",{context:"table",allowedContent:"table{width,height}[align,border,cellpadding,cellspacing,summary];caption tbody thead tfoot;th td tr[scope];"+(e.plugins.dialogadvtab?"table"+e.plugins.dialogadvtab.allowedContent():""),requiredContent:"table",contentTransformations:[["table{width}: sizeToStyle","table[width]: sizeToAttribute"]]})),e.addCommand("tableProperties",new CKEDITOR.dialogCommand("tableProperties",t())),e.addCommand("tableDelete",t({exec:function(e){var t=e.elementPath().contains("table",1);if(t){var n=t.getParent(),i=e.editable();1==n.getChildCount()&&!n.is("td","th")&&!n.equals(i)&&(t=n),(e=e.createRange()).moveToPosition(t,CKEDITOR.POSITION_BEFORE_START),t.remove(),e.select()}}})),e.ui.addButton&&e.ui.addButton("Table",{label:n.toolbar,command:"table",toolbar:"insert,30"}),CKEDITOR.dialog.add("table",this.path+"dialogs/table.js"),CKEDITOR.dialog.add("tableProperties",this.path+"dialogs/table.js"),e.addMenuItems&&e.addMenuItems({table:{label:n.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:n.deleteTable,command:"tableDelete",group:"table",order:1}}),e.on("doubleclick",function(e){e.data.element.is("table")&&(e.data.dialog="tableProperties")}),e.contextMenu&&e.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function e(e){function t(e){!(0<n.length)&&e.type==CKEDITOR.NODE_ELEMENT&&h.test(e.getName())&&!e.getCustomData("selected_cell")&&(CKEDITOR.dom.element.setMarker(i,e,"selected_cell",!0),n.push(e))}e=e.getRanges();for(var n=[],i={},o=0;o<e.length;o++){if((a=e[o]).collapsed)a=a.getCommonAncestor(),(a=a.getAscendant("td",!0)||a.getAscendant("th",!0))&&n.push(a);else{var a,r;for((a=new CKEDITOR.dom.walker(a)).guard=t;r=a.next();)r.type==CKEDITOR.NODE_ELEMENT&&r.is(CKEDITOR.dtd.table)||(r=r.getAscendant("td",!0)||r.getAscendant("th",!0))&&!r.getCustomData("selected_cell")&&(CKEDITOR.dom.element.setMarker(i,r,"selected_cell",!0),n.push(r))}}return CKEDITOR.dom.element.clearAllMarkers(i),n}function t(t,n){var i=(o=(s=e(t))[0]).getAscendant("table"),o=o.getDocument(),a=(l=s[0].getParent()).$.rowIndex,r=(s=s[s.length-1]).getParent().$.rowIndex+s.$.rowSpan-1,s=new CKEDITOR.dom.element(i.$.rows[r]),l=(a=n?a:r,n?l:s);for(i=(s=CKEDITOR.tools.buildTableMap(i))[a],a=n?s[a-1]:s[a+1],s=s[0].length,o=o.createElement("tr"),r=0;i[r]&&r<s;r++){var c;1<i[r].rowSpan&&a&&i[r]==a[r]?(c=i[r],c.rowSpan+=1):((c=new CKEDITOR.dom.element(i[r]).clone()).removeAttribute("rowSpan"),c.appendBogus(),o.append(c),c=c.$),r+=c.colSpan-1}n?o.insertBefore(l):o.insertAfter(l)}function n(t){if(t instanceof CKEDITOR.dom.selection){for(var i=(r=e(t))[0].getAscendant("table"),o=CKEDITOR.tools.buildTableMap(i),a=(t=r[0].getParent().$.rowIndex,(r=r[r.length-1]).getParent().$.rowIndex+r.$.rowSpan-1),r=[],s=t;s<=a;s++){for(var l=o[s],c=new CKEDITOR.dom.element(i.$.rows[s]),d=0;d<l.length;d++){var u=new CKEDITOR.dom.element(l[d]),h=u.getParent().$.rowIndex;1==u.$.rowSpan?u.remove():(u.$.rowSpan-=1,h==s&&((h=o[s+1])[d-1]?u.insertAfter(new CKEDITOR.dom.element(h[d-1])):new CKEDITOR.dom.element(i.$.rows[s+1]).append(u,1))),d+=u.$.colSpan-1}r.push(c)}
1for(o=i.$.rows,i=new CKEDITOR.dom.element(o[a+1]||(0<t?o[t-1]:null)||i.$.parentNode),s=r.length;0<=s;s--)n(r[s]);return i}return t instanceof CKEDITOR.dom.element&&(1==(i=t.getAscendant("table")).$.rows.length?i.remove():t.remove()),null}function i(e,t){for(var n=t?1/0:0,i=0;i<e.length;i++){for(var o,a=t,r=(o=e[i]).getParent().$.cells,s=0,l=0;l<r.length;l++){var c=r[l];s=s+(a?1:c.colSpan);if(c==o.$)break}o=s-1,(t?o<n:o>n)&&(n=o)}return n}function o(t,n){for(var o=(r=e(t))[0].getAscendant("table"),a=i(r,1),r=i(r),s=(a=n?a:r,CKEDITOR.tools.buildTableMap(o)),l=(o=[],r=[],s.length),c=0;c<l;c++)o.push(s[c][a]),r.push(n?s[c][a-1]:s[c][a+1]);for(c=0;c<l;c++)o[c]&&(1<o[c].colSpan&&r[c]==o[c]?(a=o[c],a.colSpan+=1):((a=new CKEDITOR.dom.element(o[c]).clone()).removeAttribute("colSpan"),a.appendBogus(),a[n?"insertBefore":"insertAfter"].call(a,new CKEDITOR.dom.element(o[c])),a=a.$),c+=a.rowSpan-1)}function a(e,t){var n=e.getStartElement();if(n=n.getAscendant("td",1)||n.getAscendant("th",1)){var i=n.clone();i.appendBogus(),t?i.insertBefore(n):i.insertAfter(n)}}function r(t){if(t instanceof CKEDITOR.dom.selection){var n,i=(t=e(t))[0]&&t[0].getAscendant("table");e:{var o=0;n=t.length-1;for(var a,l,c={};a=t[o++];)CKEDITOR.dom.element.setMarker(c,a,"delete_cell",!0);for(o=0;a=t[o++];)if((l=a.getPrevious())&&!l.getCustomData("delete_cell")||(l=a.getNext())&&!l.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(c),n=l;break e}CKEDITOR.dom.element.clearAllMarkers(c),(l=(l=t[0].getParent()).getPrevious())?n=l.getLast():(l=t[n].getParent(),n=(l=l.getNext())?l.getChild(0):null)}for(l=t.length-1;0<=l;l--)r(t[l]);n?s(n,!0):i&&i.remove()}else t instanceof CKEDITOR.dom.element&&(1==(i=t.getParent()).getChildCount()?i.remove():t.remove())}function s(e,t){var n=e.getDocument(),i=CKEDITOR.document;CKEDITOR.env.ie&&10==CKEDITOR.env.version&&(i.focus(),n.focus()),(n=new CKEDITOR.dom.range(n))["moveToElementEdit"+(t?"End":"Start")](e)||(n.selectNodeContents(e),n.collapse(!t)),n.select(!0)}function l(e,t,n){if(e=e[t],void 0===n)return e;for(t=0;e&&t<e.length;t++){if(n.is&&e[t]==n.$)return t;if(t==n)return new CKEDITOR.dom.element(e[t])}return n.is?-1:null}function c(t,n,i){var o,a=e(t);if((n?1!=a.length:2>a.length)||(o=t.getCommonAncestor())&&o.type==CKEDITOR.NODE_ELEMENT&&o.is("table"))return!1;var r;o=(t=a[0]).getAscendant("table");var s=CKEDITOR.tools.buildTableMap(o),c=s.length,d=s[0].length,u=t.getParent().$.rowIndex,h=l(s,u,t);if(n){var f;try{var p=parseInt(t.getAttribute("rowspan"),10)||1;r=parseInt(t.getAttribute("colspan"),10)||1,f=s["up"==n?u-p:"down"==n?u+p:u]["left"==n?h-r:"right"==n?h+r:h]}catch(e){return!1}if(!f||t.$==f)return!1;a["up"==n||"left"==n?"unshift":"push"](new CKEDITOR.dom.element(f))}n=t.getDocument();var m=u,g=(p=f=0,!i&&new CKEDITOR.dom.documentFragment(n)),E=0;for(n=0;n<a.length;n++){var v=(r=a[n]).getParent(),T=r.getFirst(),C=r.$.colSpan,b=r.$.rowSpan,D=l(s,v=v.$.rowIndex,r);E=E+C*b,p=Math.max(p,D-h+C);f=Math.max(f,v-u+b),i||((b=(C=r).getBogus())&&b.remove(),C.trim(),r.getChildren().count()&&(v==m||!T||T.isBlockBoundary&&T.isBlockBoundary({br:1})||(m=g.getLast(CKEDITOR.dom.walker.whitespaces(!0)))&&(!m.is||!m.is("br"))&&g.append("br"),r.moveChildren(g)),n?r.remove():r.setHtml("")),m=v}if(i)return f*p==E;for(g.moveChildren(t),t.appendBogus(),p>=d?t.removeAttribute("rowSpan"):t.$.rowSpan=f,f>=c?t.removeAttribute("colSpan"):t.$.colSpan=p,n=(a=(i=new CKEDITOR.dom.nodeList(o.$.rows)).count())-1;0<=n;n--)(o=i.getItem(n)).$.cells.length||(o.remove(),a++);return t}function d(t,n){if(1<(i=e(t)).length)return!1;if(n)return!0;var i,o,a=(d=(i=i[0]).getParent()).getAscendant("table"),r=l(u=CKEDITOR.tools.buildTableMap(a),h=d.$.rowIndex,i);if(1<(c=i.$.rowSpan)){o=Math.ceil(c/2);for(var s,c=Math.floor(c/2),d=h+o,u=(a=new CKEDITOR.dom.element(a.$.rows[d]),l(u,d)),h=(d=i.clone(),0);h<u.length;h++){if((s=u[h]).parentNode==a.$&&h>r){d.insertBefore(new CKEDITOR.dom.element(s));break}s=null}s||a.append(d)}else for(c=o=1,(a=d.clone()).insertAfter(d),a.append(d=i.clone()),s=l(u,h),r=0;r<s.length;r++)s[r].rowSpan++;return d.appendBogus(),i.$.rowSpan=o,d.$.rowSpan=c,1==o&&i.removeAttribute("rowSpan"),1==c&&d.removeAttribute("rowSpan"),d}function u(t,n){if(1<(i=e(t)).length)return!1;if(n)return!0;var i,o=(i=i[0]).getParent(),a=o.getAscendant("table"),r=l(a=CKEDITOR.tools.buildTableMap(a),o.$.rowIndex,i);if(1<(s=i.$.colSpan))o=Math.ceil(s/2),s=Math.floor(s/2);else{for(var s=o=1,c=[],d=0;d<a.length;d++){var u=a[d];c.push(u[r]),1<u[r].rowSpan&&(d+=u[r].rowSpan-1)}for(a=0;a<c.length;a++)c[a].colSpan++}return(a=i.clone()).insertAfter(i),a.appendBogus(),i.$.colSpan=o,a.$.colSpan=s,1==o&&i.removeAttribute("colSpan"),1==s&&a.removeAttribute("colSpan"),a}var h=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(i){function l(e){return CKEDITOR.tools.extend(e||{},{contextSensitive:1,refresh:function(e,t){this.setState(t.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function h(e,t){var n=i.addCommand(e,t);i.addFeature(n)}var f=i.lang.table;h("cellProperties",new CKEDITOR.dialogCommand("cellProperties",l({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table"}))),CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js"),h("rowDelete",l({requiredContent:"table",exec:function(e){s(n(e=e.getSelection()))}})),h("rowInsertBefore",l({requiredContent:"table",exec:function(e){t(e=e.getSelection(),!0)}})),h("rowInsertAfter",l({requiredContent:"table",exec:function(e){t(e=e.getSelection())}})),h("columnDelete",l({requiredContent:"table",exec:function(t){for(var n,i,o=(t=e(t=t.getSelection()))[0],a=t[t.length-1],r=(t=o.getAscendant("table"),CKEDITOR.tools.buildTableMap(t)),l=[],c=0,d=r.length;c<d;c++)for(var u=0,h=r[c].length;u<h;u++)r[c][u]==o.$&&(n=u),r[c][u]==a.$&&(i=u);for(c=n;c<=i;c++)for(u=0;
1u<r.length;u++)a=r[u],o=new CKEDITOR.dom.element(t.$.rows[u]),(a=new CKEDITOR.dom.element(a[c])).$&&(1==a.$.colSpan?a.remove():a.$.colSpan-=1,u+=a.$.rowSpan-1,o.$.cells.length||l.push(o));i=t.$.rows[0]&&t.$.rows[0].cells,n=new CKEDITOR.dom.element(i[n]||(n?i[n-1]:t.$.parentNode)),l.length==d&&t.remove(),n&&s(n,!0)}})),h("columnInsertBefore",l({requiredContent:"table",exec:function(e){o(e=e.getSelection(),!0)}})),h("columnInsertAfter",l({requiredContent:"table",exec:function(e){o(e=e.getSelection())}})),h("cellDelete",l({requiredContent:"table",exec:function(e){r(e=e.getSelection())}})),h("cellMerge",l({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(e){s(c(e.getSelection()),!0)}})),h("cellMergeRight",l({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(e){s(c(e.getSelection(),"right"),!0)}})),h("cellMergeDown",l({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(e){s(c(e.getSelection(),"down"),!0)}})),h("cellVerticalSplit",l({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(e){s(d(e.getSelection()))}})),h("cellHorizontalSplit",l({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(e){s(u(e.getSelection()))}})),h("cellInsertBefore",l({requiredContent:"table",exec:function(e){a(e=e.getSelection(),!0)}})),h("cellInsertAfter",l({requiredContent:"table",exec:function(e){a(e=e.getSelection())}})),i.addMenuItems&&i.addMenuItems({tablecell:{label:f.cell.menu,group:"tablecell",order:1,getItems:function(){var t=i.getSelection(),n=e(t);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:c(t,null,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:c(t,"right",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:c(t,"down",!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:d(t,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:u(t,!0)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:0<n.length?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:f.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:f.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10},tablecell_delete:{label:f.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:f.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:f.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:f.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:f.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:f.cell.splitVertical,group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:f.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:f.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:f.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:f.row.insertAfter,group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:f.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:f.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:f.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:f.column.insertAfter,group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:f.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}}),i.contextMenu&&i.contextMenu.addListener(function(e,t,n){return(e=n.contains({td:1,th:1},1))&&!e.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:e},CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(e){e=e.$.rows;for(var t=-1,n=[],i=0;i<e.length;i++){!n[++t]&&(n[t]=[]);for(var o=-1,a=0;a<e[i].cells.length;a++){var r=e[i].cells[a];for(o++;n[t][o];)o++;for(var s=isNaN(r.colSpan)?1:r.colSpan,l=(r=isNaN(r.rowSpan)?1:r.rowSpan,0);l<r;l++){n[t+l]||(n[t+l]=[]);for(var c=0;c<s;c++)n[t+l][o+c]=e[i].cells[a]}o+=s-1}}return n},function(){var e=[CKEDITOR.CTRL+90,CKEDITOR.CTRL+89,CKEDITOR.CTRL+CKEDITOR.SH
1IFT+90],t={8:1,46:1};CKEDITOR.plugins.add("undo",{init:function(t){function i(e){a.enabled&&!1!==e.data.command.canUndo&&a.save()}function o(){a.enabled=!t.readOnly&&"wysiwyg"==t.mode,a.onChange()}var a=t.undoManager=new n(t),r=a.editingHandler=new l(a),s=t.addCommand("undo",{exec:function(){a.undo()&&(t.selectionChange(),this.fire("afterUndo"))},startDisabled:!0,canUndo:!1}),c=t.addCommand("redo",{exec:function(){a.redo()&&(t.selectionChange(),this.fire("afterRedo"))},startDisabled:!0,canUndo:!1});t.setKeystroke([[e[0],"undo"],[e[1],"redo"],[e[2],"redo"]]),a.onChange=function(){s.setState(a.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED),c.setState(a.redoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)},t.on("beforeCommandExec",i),t.on("afterCommandExec",i),t.on("saveSnapshot",function(e){a.save(e.data&&e.data.contentOnly)}),t.on("contentDom",r.attachListeners,r),t.on("instanceReady",function(){t.fire("saveSnapshot")}),t.on("beforeModeUnload",function(){"wysiwyg"==t.mode&&a.save(!0)}),t.on("mode",o),t.on("readOnly",o),t.ui.addButton&&(t.ui.addButton("Undo",{label:t.lang.undo.undo,command:"und
1o",toolbar:"undo,10"}),t.ui.addButton("Redo",{label:t.lang.undo.redo,command:"redo",toolbar:"undo,20"})),t.resetUndo=function(){a.reset(),t.fire("saveSnapshot")},t.on("updateSnapshot",function(){a.currentImage&&a.update()}),t.on("lockSnapshot",function(e){e=e.data,a.lock(e&&e.dontUpdate,e&&e.forceUpdate)}),t.on("unlockSnapshot",a.unlock,a)}}),CKEDITOR.plugins.undo={};var n=CKEDITOR.plugins.undo.UndoManager=function(e){this.editor=e,this.reset()};n.prototype={keyGroupsEnum:{PRINTABLE:0,FUNCTIONAL:1},strokesRecorded:[0,0],navigationKeyCodes:{37:1,38:1,39:1,40:1,36:1,35:1,33:1,34:1},previousKeyGroup:-1,type:function(e){var n=this.keyGroupsEnum,i=(e=t[e]?n.FUNCTIONAL:n.PRINTABLE,this.strokesRecorded[e]+1),o=e!==this.previousKeyGroup,a=25<=i;n=e==n.FUNCTIONAL?n.PRINTABLE:n.FUNCTIONAL;this.typing||(this.hasUndo=this.typing=!0,this.hasRedo=!1,this.onChange()),(o&&-1!==this.previousKeyGroup||a)&&(o?(this.strokesRecorded[n]=0,this.save(!1,this.editingHandler.lastKeydownImage,!1)||this.snapshots.splice(this.index+1,this.snapshots.length-this.index-1)):(i=0,this.editor.fire("saveSnapshot"),this.typing=!0)),this.strokesRecorded[e]=i,this.previousKeyGroup=e,this.editor.fire("change")},reset:function(){this.snapshots=[],this.index=-1,this.limit=this.editor.config.undoStackSize||20,this.currentImage=null,this.hasRedo=this.hasUndo=!1,this.locked=null,this.resetType()},resetType:function(){this.strokesRecorded=[0,0],this.typing=!1,this.previousKeyGroup=-1},refreshState:function(){this.hasUndo=!!this.getNextImage(!0),this.hasRedo=!!this.getNextImage(!1),this.resetType(),this.onChange()},save:function(e,t,n){var o=this.editor;if(this.locked||"ready"!=o.status||"wysiwyg"!=o.mode)return!1;var a=o.editable();if(!a||"ready"!=a.status)return!1;if(a=this.snapshots,t||(t=new i(o)),!1===t.contents)return!1;if(this.currentImage)if(t.equalsContent(this.currentImage)){if(e||t.equalsSelection(this.currentImage))return!1}else!1!==n&&o.fire("change");return a.splice(this.index+1,a.length-this.index-1),a.length==this.limit&&a.shift(),this.index=a.push(t)-1,this.currentImage=t,!1!==n&&this.refreshState(),!0},restoreImage:function(e){var t,n=this.editor;e.bookmarks&&(n.focus(),t=n.getSelection()),this.locked={level:999},this.editor.loadSnapshot(e.contents),e.bookmarks?t.selectBookmarks(e.bookmarks):CKEDITOR.env.ie&&((t=this.editor.document.getBody().$.createTextRange()).collapse(!0),t.select()),this.locked=null,this.index=e.index,this.currentImage=this.snapshots[this.index],this.update(),this.refreshState(),n.fire("change")},getNextImage:function(e){var t,n=this.snapshots,i=this.currentImage;if(i)if(e){for(t=this.index-1;0<=t;t--)if(e=n[t],!i.equalsContent(e))return e.index=t,e}else for(t=this.index+1;t<n.length;t++)if(e=n[t],!i.equalsContent(e))return e.index=t,e;return null},redoable:function(){return this.enabled&&this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(!0);var e=this.getNextImage(!0);if(e)return this.restoreImage(e),!0}return!1},redo:function(){if(this.redoable()&&(this.save(!0),this.redoable())){var e=this.getNextImage(!1);if(e)return this.restoreImage(e),!0}return!1},update:function(e){if(!this.locked){e||(e=new i(this.editor));for(var t=this.index,n=this.snapshots;0<t&&this.currentImage.equalsContent(n[t-1]);)t-=1;n.splice(t,this.index-t+1,e),this.index=t,this.currentImage=e}},updateSelection:function(e){if(!this.snapshots.length)return!1;var t=this.snapshots,n=t[t.length-1];return!(!n.equalsContent(e)||n.equalsSelection(e))&&(this.currentImage=t[t.length-1]=e,!0)},lock:function(e,t){if(this.locked)this.locked.level++;else if(e)this.locked={level:1};else{var n=null;if(t)n=!0;else{var o=new i(this.editor,!0);this.currentImage&&this.currentImage.equalsContent(o)&&(n=o)}this.locked={update:n,level:1}}},unlock:function(){if(this.locked&&!--this.locked.level){var e=this.locked.update;if(this.locked=null,!0===e)this.update();else if(e){var t=new i(this.editor,!0);e.equalsContent(t)||this.update()}}},isNavigationKey:function(e){return!!this.navigationKeyCodes[e]}};var i=CKEDITOR.plugins.undo.Image=function(e,t){this.editor=e,e.fire("beforeUndoImage");var n=e.getSnapshot();CKEDITOR.env.ie&&n&&(n=n.replace(/\s+data-cke-expando=".*?"/g,"")),this.contents=n,t||(this.bookmarks=(n=n&&e.getSelection())&&n.createBookmarks2(!0)),e.fire("afterUndoImage")},o=/\b(?:href|src|name)="[^"]*?"/gi;i.prototype={equalsContent:function(e){var t=this.contents;e=e.contents;return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks)&&(t=t.replace(o,""),e=e.replace(o,"")),t==e},equalsSelection:function(e){var t=this.bookmarks;e=e.bookmarks;if(t||e){if(!t||!e||t.length!=e.length)return!1;for(var n=0;n<t.length;n++){var i=t[n],o=e[n];if(i.startOffset!=o.startOffset||i.endOffset!=o.endOffset||!CKEDITOR.tools.arrayCompare(i.start,o.start)||!CKEDITOR.tools.arrayCompare(i.end,o.end))return!1}}return!0}};var a=0,r=!1,s=function(){r=!0},l=CKEDITOR.plugins.undo.NativeEditingHandler=function(e){this.undoManager=e};l.prototype={onKeydown:function(t){if(-1<CKEDITOR.tools.indexOf(e,t.data.getKeystroke()))t.data.preventDefault();else{t=t.data.getKey();var n=this.undoManager;this.lastKeydownImage=new i(n.editor),n.isNavigationKey(t)&&(n.strokesRecorded[0]||n.strokesRecorded[1])&&(n.save(!1,this.lastKeydownImage),n.resetType())}},onInput:function(){a+=1,r&&(a-=1,r=!1)},onKeyup:function(e){var n=this.undoManager,o=(e=e.data.getKey(),n.editor);if(CKEDITOR.env.ie&&e in t&&this.lastKeydownImage){if(this.lastKeydownImage.equalsContent(new i(o,!0)))return;a+=1}0<a?(a-=1,n.type(e)):n.isNavigationKey(e)&&this.onNavigationKey(!0)},onNavigationKey:function(e){var t=this.undoManager;(e||!t.save(!0,null,!1))&&t.updateSelection(new i(t.editor)),t.resetType()},resetCounter:function(){a=0},attachListeners:function(){var e=this.undoManager.editor.editable(),t=this;e.attachListener(e,"keydown",t.onKeydown,t),e.attachListener(e,CKEDITOR.env.ie?"keypress":"input",t.onInput,t),e.attachListener(e,"keyup",t.onKeyup,t),e.attachListener(e,"paste",s),e.attachListener(e,"drop",s),e.attachListener(e,"click",function(){t.onNavigationKey()})}}}(),CKEDITOR.config.wsc_removeGlobalVariable=!0,CKEDITOR.plugins.add("wsc",{requires:"dialog",parseApi:function(e){e.config.wsc_onFinish="function"==typeof e.config.wsc_onFinish?e.config.wsc_onFinish:function(){},e.config.wsc_onClose="function"==typeof e.config.wsc_onClose?e.config.wsc_onClose:function(){}},parseConfig:function(e){e.config.wsc_customerId=e.config.wsc_customerId||CKEDITOR.config.wsc_customerId||"1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk",e.config.wsc_customDictionaryIds=e.config.wsc_customDictionaryIds||CKEDITOR.config.wsc_customDictionaryIds||"",e.config.wsc_userDictionaryName=e.config.wsc_userDictionaryName||CKEDITOR.config.wsc_userDictionaryName||"",e.config.wsc_customLoaderScript=e.config.wsc_customLoaderScript||CKEDITOR.config.wsc_customLoaderScript,CKEDITOR.config.wsc_cmd=e.config.wsc_cmd||CKEDITOR.config.wsc_cmd||"spell",CKEDITOR.config.wsc_version=CKEDITOR.version+" | %Rev%"},init:function(e){var t=CKEDITOR.env;this.parseConfig(e),this.parseApi(e),e.addCommand("checkspell",new CKEDITOR.dialogCommand("checkspell")).modes={wysiwyg:!(CKEDITOR.env.opera||CKEDITOR.env.air||document.domain!=window.location.hostname||t.ie&&(8>
1t.version||t.quirks))},void 0===e.plugins.scayt&&e.ui.addButton&&e.ui.addButton("SpellChecker",{label:e.lang.wsc.toolbar,click:function(e){var t=e.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?e.container.getText():e.document.getBody().getText();(t=t.replace(/\s/g,""))?e.execCommand("checkspell"):alert("Nothing to check!")},toolbar:"spellchecker,10"}),CKEDITOR.dialog.add("checkspell",this.path+(CKEDITOR.env.ie&&7>=CKEDITOR.env.version?"dialogs/wsc_ie.js":window.postMessage?"dialogs/wsc.js":"dialogs/wsc_ie.js"))}}),CKEDITOR.config.plugins="dialogui,dialog,about,a11yhelp,dialogadvtab,basicstyles,bidi,blockquote,clipboard,button,panelbutton,panel,floatpanel,colorbutton,colordialog,templates,menu,contextmenu,div,resize,toolbar,elementspath,enterkey,entities,popup,filebrowser,find,fakeobjects,flash,floatingspace,listblock,richcombo,font,forms,format,horizontalrule,htmlwriter,iframe,wysiwygarea,image,indent,indentblock,indentlist,smiley,justify,menubutton,language,link,list,liststyle,magicline,maximize,newpage,pagebreak,pastetext,pastefromword,preview,print,removeformat,save,selectall,showblocks,showborders,sourcearea,specialchar,scayt,stylescombo,tab,table,tabletools,undo,wsc",CKEDITOR.config.skin="moono",function(){var e=function(e,t){var n=CKEDITOR.getUrl("plugins/"+t);e=e.split(",");for(var i=0;i<e.length;i++)CKEDITOR.skin.icons[e[i]]={path:n,offset:-e[++i],bgsize:e[++i]}};CKEDITOR.env.hidpi?e("about,0,,bold,24,,italic,48,,strike,72,,subscript,96,,superscript,120,,underline,144,,bidiltr,168,,bidirtl,192,,blockquote,216,,copy-rtl,240,,copy,264,,cut-rtl,288,,cut,312,,paste-rtl,336,,paste,360,,bgcolor,384,,textcolor,408,,templates-rtl,432,,templates,456,,creatediv,480,,find-rtl,504,,find,528,,replace,552,,flash,576,,button,600,,checkbox,624,,form,648,,hiddenfield,672,,imagebutton,696,,radio,720,,select-rtl,744,,select,768,,textarea-rtl,792,,textarea,816,,textfield-rtl,840,,textfield,864,,horizontalrule,888,,iframe,912,,image,936,,indent-rtl,960,,indent,984,,outdent-rtl,1008,,outdent,1032,,smiley,1056,,justifyblock,1080,,justifycenter,1104,,justifyleft,1128,,justifyright,1152,,language,1176,,anchor-rtl,1200,,anchor,1224,,link,1248,,unlink,1272,,bulletedlist-rtl,1296,,bulletedlist,1320,,numberedlist-rtl,1344,,numberedlist,1368,,maximize,1392,,newpage-rtl,1416,,newpage,1440,,pagebreak-rtl,1464,,pagebreak,1488,,pastetext-rtl,1512,,pastetext,1536,,pastefromword-rtl,1560,,pastefromword,1584,,preview-rtl,1608,,preview,1632,,print,1656,,removeformat,1680,,save,1704,,selectall,1728,,showblocks-rtl,1752,,showblocks,1776,,source-rtl,1800,,source,1824,,specialchar,1848,,scayt,1872,,table,1896,,redo-rtl,1920,,redo,1944,,undo-rtl,1968,,undo,1992,,spellchecker,2016,","icons_hidpi.png"):e("about,0,auto,bold,24,auto,italic,48,auto,strike,72,auto,subscript,96,auto,superscript,120,auto,underline,144,auto,bidiltr,168,auto,bidirtl,192,auto,blockquote,216,auto,copy-rtl,240,auto,copy,264,auto,cut-rtl,288,auto,cut,312,auto,paste-rtl,336,auto,paste,360,auto,bgcolor,384,auto,textcolor,408,auto,templates-rtl,432,auto,templates,456,auto,creatediv,480,auto,find-rtl,504,auto,find,528,auto,replace,552,auto,flash,576,auto,button,600,auto,checkbox,624,auto,form,648,auto,hiddenfield,672,auto,imagebutton,696,auto,radio,720,auto,select-rtl,744,auto,select,768,auto,textarea-rtl,792,auto,textarea,816,auto,textfield-rtl,840,auto,textfield,864,auto,horizontalrule,888,auto,iframe,912,auto,image,936,auto,indent-rtl,960,auto,indent,984,auto,outdent-rtl,1008,auto,outdent,1032,auto,smiley,1056,auto,justifyblock,1080,auto,justifycenter,1104,auto,justifyleft,1128,auto,justifyright,1152,auto,language,1176,auto,anchor-rtl,1200,auto,anchor,1224,auto,link,1248,auto,unlink,1272,auto,bulletedlist-rtl,1296,auto,bulletedlist,1320,auto,numberedlist-rtl,1344,auto,numberedlist,1368,auto,maximize,1392,auto,newpage-rtl,1416,auto,newpage,1440,auto,pagebreak-rtl,1464,auto,pagebreak,1488,auto,pastetext-rtl,1512,auto,pastetext,1536,auto,pastefromword-rtl,1560,auto,pastefromword,1584,auto,preview-rtl,1608,auto,preview,1632,auto,print,1656,auto,removeformat,1680,auto,save,1704,auto,selectall,1728,auto,showblocks-rtl,1752,auto,showblocks,1776,auto,source-rtl,1800,auto,source,1824,auto,specialchar,1848,auto,scayt,1872,auto,table,1896,auto,redo-rtl,1920,auto,redo,1944,auto,undo-rtl,1968,auto,undo,1992,auto,spellchecker,2016,auto","icons.png")}(),CKEDITOR.lang.languages={af:1,sq:1,ar:1,eu:1,bn:1,bs:1,bg:1,ca:1,"zh-cn":1,zh:1,hr:1,cs:1,da:1,nl:1,en:1,"en-au":1,"en-ca":1,"en-gb":1,eo:1,et:1,fo:1,fi:1,fr:1,"fr-ca":1,gl:1,ka:1,de:1,el:1,gu:1,he:1,hi:1,hu:1,is:1,id:1,it:1,ja:1,km:1,ko:1,ku:1,lv:1,lt:1,mk:1,ms:1,mn:1,no:1,nb:1,fa:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,sr:1,"sr-latn":1,si:1,sk:1,sl:1,es:1,sv:1,tt:1,th:1,tr:1,ug:1,uk:1,vi:1,cy:1}),function(e){CKEDITOR.config.jqueryOverrideVal=void 0===CKEDITOR.config.jqueryOverrideVal||CKEDITOR.config.jqueryOverrideVal,void 0!==e&&(e.extend(e.fn,{ckeditorGet:function(){var e=this.eq(0).data("ckeditorInstance");if(!e)throw"CKEditor is not initialized yet, use ckeditor() with a callback.";return e},ckeditor:function(t,n){if(!CKEDITOR.env.isCompatible)throw Error("The environment is incompatible.");if(!e.isFunction(t)){var i=n;n=t,t=i}var o=[];n=n||{};this.each(function(){var i=e(this),a=i.data("ckeditorInstance"),r=i.data("_ckeditorInstanceLock"),s=this,l=new e.Deferred;o.push(l.promise()),a&&!r?(t&&t.apply(a,[this]),l.resolve()):r?a.once("instanceReady",function(){setTimeout(function(){a.element?(a.element.$==s&&t&&t.apply(a,[s]),l.resolve()):setTimeout(arguments.callee,100)},0)},null,null,9999):((n.autoUpdateElement||void 0===n.autoUpdateElement&&CKEDITOR.config.autoUpdateElement)&&(n.autoUpdateElementJquery=!0),n.autoUpdateElement=!1,i.data("_ckeditorInstanceLock",!0),a=e(this).is("textarea")?CKEDITOR.replace(s,n):CKEDITOR.inline(s,n),i.data("ckeditorInstance",a),a.on("instanceReady",function(n){var o=n.editor;setTimeout(function(){if(o.element){if(n.removeListener(),o.on("dataReady",function(){i.trigger("dataReady.ckeditor",[o])}),o.on("setData",function(e){i.trigger("setData.ckeditor",[o,e.data])}),o.on("getData",function(e){i.trigger("getData.ckeditor",[o,e.data])},999),o.on("destroy",function(){i.trigger("destroy.ckeditor",[o])}),o.on("save",function(){return e(s.form).submit(),!1},null,null,20),o.config.autoUpdateElementJquery&&i.is("textarea")&&e(s.form).length){var a=function(){i.ckeditor(function(){o.updateElement()})};e(s.form).submit(a),e(s.form).bind("form-pre-serialize",a),i.bind("destroy.ckeditor",function(){e(s.form).unbind("submit",a),e(s.form).unbind("form-pre-serialize",a)})}o.on("destroy",function(){i.removeData("ckeditorInstance")}),i.removeData("_ckeditorInstanceLock"),i.trigger("instanceReady.ckeditor",[o]),t&&t.apply(o,[s]),l.resolve()}else setTimeout(arguments.callee,100)},0)},null,null,9999))});var a=new e.Deferred;return this.promise=a.promise(),e.when.apply(this,o).then(function(){a.resolve()}),this.editor=this.eq(0).data("ckeditorInstance"),this}}),CKEDITOR.config.jqueryOverrideVal&&(e.fn.val=CKEDITOR.tools.override(e.fn.val,function(t){return function(n){if(arguments.length){var i=this,o=[],a=this.each(function(){var i=e(this),a=i.data("ckeditorInstance");if(i.is("textarea")&&a){var r=new e.Deferred;return a.setData(n,function(){r.resolve()}),o.push(r.promise()),!0}return t.call(i,n)});if(o.length){var r=new e.Deferred;return e.when.apply(this,o).done(function(){r.resolveWith(i)}),r.promise()}return a}var s=(a=e(this).eq(0)).data("ckeditorInstance");return a.is("textarea")&&s?s.getData():t.call(a)}})))}(window.jQuery),CKEDITOR.editorConfig=function(e){e.language="es",e.toolbar="completa",e.extraPlugins="archivo,mediaembed",e.allowedContent=!0,e.toolbar_completa=[{name:"styles",items:["Format"]},{name:"colors",items:["TextColor","BGColor"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"insert",items:["Image","Archivo","Table","HorizontalRule","SpecialChar","PageBreak","MediaEmbed"]},{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote","-","CreateDiv","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","BidiLtr","BidiRtl"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"tools",items:["ShowBlocks","-","About"]},{name:"document",items:["Source"]}],e.toolbar_media=[{name:"styles",items:["Format"]},{name:"colors",items:["TextColor","BGColor"]},{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"insert",items:["Table","HorizontalRule","SpecialChar"]},{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote","-","CreateDiv","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","BidiLtr","BidiRtl"]},{name:"links",items:["Link","Unlink","Anchor"]},{name:"tools",items:["ShowBlocks","-","About"]},{name:"document",items:["Source"]}],e.toolbar_basica=[{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript","-","RemoveFormat"]},{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"paragraph",items:["NumberedList","BulletedList","-","Outdent","Indent","-","Blockquote","CreateDiv","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","BidiLtr","BidiRtl"]},{name:"links",items:["Link","Unlink"]},{name:"document",items:["Source"]},{name:"tools",items:["ShowBlocks","-","About"]}],e.toolbar_mini=[{name:"basicstyles",items:["Bold","Italic","Underline","Strike","Subscript","Superscript"]},{name:"clipboard",items:["Cut","Copy","Paste","PasteText","PasteFromWord","-","Undo","Redo"]},{name:"paragraph",items:["NumberedList","BulletedList"]},{name:"links",items:["Link","Unlink"]},{name:"tools",items:["About"]}]},function(e){var t,n=function(){var e=document.createElement("input");return e.setAttribute("onpaste",""),"function"==typeof e.onpaste?"paste":"input"}()+".mask",i=navigator.userAgent,o=/iphone/i.test(i),a=/android/i.test(i);e.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},dataName:"rawMaskFn",placeholder:"_"},e.fn.extend({caret:function(e,t){var n;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof e?(t="number"==typeof t?t:e,this.each(function(){this.setSelectionRange?this.setSelectionRange(e,t):this.createTextRange&&((n=this.createTextRange()).collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select())})):(this[0].setSelectionRange?(e=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(n=document.selection.createRange(),e=0-n.duplicate().moveStart("character",-1e5),t=e+n.text.length),{begin:e,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(i,r){var s,l,c,d,u;return!i&&this.length>0?e(this[0]).data(e.mask.dataName)():(r=e.extend({placeholder:e.mask.placeholder,completed:null},r),s=e.mask.definitions,l=[],c=u=i.length,d=null,e.each(i.split(""),function(e,t){"?"==t?(u--,c=e):s[t]?(l.push(new RegExp(s[t])),null===d&&(d=l.length-1)):l.push(null)}),this.trigger("unmask").each(function(){function h(e){for(;++e<u&&!l[e];);return e}function f(e,t){var n,i;if(!(e<0)){for(n=e,i=h(t);n<u;
1n++)if(l[n]){if(!(i<u&&l[n].test(v[i])))break;v[n]=v[i],v[i]=r.placeholder,i=h(i)}m(),E.caret(Math.max(d,e))}}function p(e,t){var n;for(n=e;n<t&&n<u;n++)l[n]&&(v[n]=r.placeholder)}function m(){E.val(v.join(""))}function g(e){var t,n,i=E.val(),o=-1;for(t=0,pos=0;t<u;t++)if(l[t]){for(v[t]=r.placeholder;pos++<i.length;)if(n=i.charAt(pos-1),l[t].test(n)){v[t]=n,o=t;break}if(pos>i.length)break}else v[t]===i.charAt(pos)&&t!==c&&(pos++,o=t);return e?m():o+1<c?(E.val(""),p(0,u)):(m(),E.val(E.val().substring(0,o+1))),c?t:d}var E=e(this),v=e.map(i.split(""),function(e,t){if("?"!=e)return s[e]?r.placeholder:e}),T=E.val();E.data(e.mask.dataName,function(){return e.map(v,function(e,t){return l[t]&&e!=r.placeholder?e:null}).join("")}),E.attr("readonly")||E.one("unmask",function(){E.unbind(".mask").removeData(e.mask.dataName)}).bind("focus.mask",function(){clearTimeout(t);var e;T=E.val(),e=g(),t=setTimeout(function(){m(),e==i.length?E.caret(0,e):E.caret(e)},10)}).bind("blur.mask",function(){g(),E.val()!=T&&E.change()}).bind("keydown.mask",function(e){var t,n,i,a=e.which;8===a||46===a||o&&127===a?(n=(t=E.caret()).begin,(i=t.end)-n==0&&(n=46!==a?function(e){for(;--e>=0&&!l[e];);return e}(n):i=h(n-1),i=46===a?h(i):i),p(n,i),f(n,i-1),e.preventDefault()):27==a&&(E.val(T),E.caret(0,g()),e.preventDefault())}).bind("keypress.mask",function(t){var n,i,o,s=t.which,c=E.caret();t.ctrlKey||t.altKey||t.metaKey||s<32||s&&(c.end-c.begin!=0&&(p(c.begin,c.end),f(c.begin,c.end-1)),(n=h(c.begin-1))<u&&(i=String.fromCharCode(s),l[n].test(i)&&(function(e){var t,n,i,o;for(t=e,n=r.placeholder;t<u;t++)if(l[t]){if(i=h(t),o=v[t],v[t]=n,!(i<u&&l[i].test(o)))break;n=o}}(n),v[n]=i,m(),o=h(n),a?setTimeout(e.proxy(e.fn.caret,E,o),0):E.caret(o),r.completed&&o>=u&&r.completed.call(E))),t.preventDefault())}).bind(n,function(){setTimeout(function(){var e=g(!0);E.caret(e),r.completed&&e==E.val().length&&r.completed.call(E)},0)}),g()}))}})}(jQuery),function(e,t,n,i){function o(t,n){this.settings=null,this.options=e.extend({},o.Defaults,n),this.$element=e(t),this.drag=e.extend({},s),this.state=e.extend({},l),this.e=e.extend({},c),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],e.each(o.Plugins,e.proxy(function(e,t){this._plugins[e[0].toLowerCase()+e.slice(1)]=new t(this)},this)),e.each(o.Pipe,e.proxy(function(t,n){this._pipe.push({filter:n.filter,run:e.proxy(n.run,this)})},this)),this.setup(),this.initialize()}function a(e){if(e.touches!==i)return{x:e.touches[0].pageX,y:e.touches[0].pageY};if(e.touches===i){if(e.pageX!==i)return{x:e.pageX,y:e.pageY};if(e.pageX===i)return{x:e.clientX,y:e.clientY}}}function r(e){var t,i,o=n.createElement("div"),a=e;for(t in a)if(i=a[t],void 0!==o.style[i])return o=null,[i,t];return[!1]}var s,l,c;s={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},l={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},c={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},o.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:t,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},o.Width={Default:"default",Inner:"inner",Outer:"outer"},o.Plugins={},o.Pipe=[{filter:["width","items","settings"],run:function(e){e.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var e=this._clones;(this.$stage.children(".cloned").length!==e.length||!this.settings.loop&&e.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var e,t,n=this._clones,i=this._items,o=this.settings.loop?n.length-Math.max(2*this.settings.items,4):0;for(e=0,t=Math.abs(o/2);e<t;e++)o>0?(this.$stage.children().eq(i.length+n.length-1).remove(),n.pop(),this.$stage.children().eq(0).remove(),n.pop()):(n.push(n.length/2),this.$stage.append(i[n[n.length-1]].clone().addClass("cloned")),n.push(i.length-1-(n.length-1)/2),this.$stage.prepend(i[n[n.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var e,t,n,i=this.settings.rtl?1:-1,o=(this.width()/this.settings.items).toFixed(3),a=0;for(this._coordinates=[],t=0,n=this._clones.length+this._items.length;t<n;t++)e=this._mergers[this.relative(t)],e=this.settings.mergeFit&&Math.min(e,this.settings.items)||e,a+=(this.settings.autoWidth?this._items[this.relative(t)].width()+this.settings.margin:o*e)*i,this._coordinates.push(a)}},{filter:["width","items","settings"],run:function(){var t,n,i=(this.width()/this.settings.items).toFixed(3),o={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(o),o={width:this.settings.autoWidth?"auto":i-this.settings.margin},o[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&e.grep(this._mergers,function(e){return e>1}).length>0)for(t=0,n=this._coordinates.length;t<n;t++)o.width=Math.abs(this._coordinates[t])-Math.abs(this._coordinates[t-1]||0)-this.settings.margin,this.$stage.children().eq(t).css(o);else this.$stage.children().css(o)}},{filter:["width","items","settings"],run:function(e){e.current&&this.reset(this.$stage.children().index(e.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var e,t,n,i,o=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,r=this.coordinates(this.current())+a,s=r+this.width()*o,l=[];for(n=0,i=this._coordinates.length;n<i;n++)e=this._coordinates[n-1]||0,t=Math.abs(this._coordinates[n])+a*o,(this.op(e,"<=",r)&&this.op(e,">",s)||this.op(t,"<",r)&&this.op(t,">",s))&&l.push(n);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],o.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&!0!==this.state.imagesLoaded){var t,n,o;if(t=this.$element.find("img"),n=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:i,o=this.$element.children(n).width(),t.length&&o<=0)return this.preloadAutoWidthImages(t),!1}this.$element.addClass("owl-loading"),this.$stage=e("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},o.prototype.setup=function(){var t=this.viewport(),n=this.options.responsive,i=-1,o=null;n?(e.each(n,function(e){e<=t&&e>i&&(i=Number(e))}),delete(o=e.extend({},this.options,n[i])).responsive,o.responsiveClass&&this.$element.attr("class",function(e,t){return t.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+i)):o=e.extend({},this.options),null!==this.settings&&this._breakpoint===i||(this.trigger("change",{property:{name:"settings",value:o}}),this._breakpoint=i,this.settings=o,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},o.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},o.prototype.prepare=function(t){var n=this.trigger("prepare",{content:t});return n.data||(n.data=e("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:n.data}),n.data},o.prototype.update=function(){for(var t=0,n=this._pipe.length,i=e.proxy(function(e){return this[e]},this._invalidated),o={};t<n;)(this._invalidated.all||e.grep(this._pipe[t].filter,i).length>0)&&this._pipe[t].run(o),t++;this._invalidated={}},o.prototype.width=function(e){switch(e=e||o.Width.Default){case o.Width.Inner:case o.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},o.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=t.orientation,this.watchVisibility(),this.trigger("refreshed")},o.prototype.eventsCall=function(){this.e._onDragStart=e.proxy(function(e){this.onDragStart(e)},this),this.e._onDragMove=e.proxy(function(e){this.onDragMove(e)},this),this.e._onDragEnd=e.proxy(function(e){this.onDragEnd(e)},this),this.e._onResize=e.proxy(function(e){this.onResize(e)},this),this.e._transitionEnd=e.proxy(function(e){this.transitionEnd(e)},this),this.e._preventClick=e.proxy(function(e){this.preventClick(e)},this)},o.prototype.onThrottledResize=function(){t.clearTimeout(this.resizeTimer),this.resizeTimer=t.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},o.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!this.trigger("resize").isDefaultPrevented()&&(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized"))))},o.prototype.eventsRouter=function(e){var t=e.type;"mousedown"===t||"touchstart"===t?this.onDragStart(e):"mousemove"===t||"touchmove"===t?this.onDragMove(e):"mouseup"===t||"touchend"===t?this.onDragEnd(e):"touchcancel"===t&&this.onDragEnd(e)},o.prototype.internalEvents=function(){"ontouchstart"in t||navigator.msMaxTouchPoints;var n=t.navigator.msPointerEnabled;this.settings.mouseDrag?(this.$stage.on("mousedown",e.proxy(function(e){this.eventsRouter(e)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!n&&this.$stage.on("touchstart touchcancel",e.proxy(function(e){this.eventsRouter(e)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),!1!==this.settings.responsive&&this.on(t,"resize",e.proxy(this.onThrottledResize,this))},o.prototype.onDragStart=function(i){var o,r,s,l;if(3===(o=i.originalEvent||i||t.event).which||this.state.isTouch)return!1;if("mousedown"===o.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,r=a(o).x,s=a(o).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)l=this.getTransformProperty(),this.drag.offsetX=l,this.animate(l),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=r-this.drag.offsetX,this.drag.startY=s-this.drag.offsetY,this.drag.start=r-this.drag.startX,this.drag.targetEl=o.target||o.srcElement,this.drag.updatedX=this.drag.start,"IMG"!==this.drag.targetEl.tagName&&"A"!==this.drag.targetEl.tagName||(this.drag.targetEl.draggable=!1),e(n).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",e.proxy(function(e){this.eventsRouter(e)},this))},o.prototype.onDragMove=function(e){var n,o,r,s,l,c;this.state.isTouch&&(this.state.isScrolling||(o=a(n=e.originalEvent||e||t.event).x,r=a(n).y,this.drag.currentX=o-this.drag.startX,this.drag.currentY=r-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(s=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),l=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),c=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,s+c),l+c)),(this.drag.distance>8||this.drag.distance<-8)&&(n.preventDefault!==i?n.preventDefault():n.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>
116||this.drag.currentY<-16)&&!1===this.state.isSwiping&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},o.prototype.onDragEnd=function(t){var i,o;if(this.state.isTouch){if("mouseup"===t.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&!0!==this.state.inMotion)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),i=this.drag.endTime-this.drag.startTime,(Math.abs(this.drag.distance)>3||i>300)&&this.removeClick(this.drag.targetEl),o=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(o),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(o)||this.transitionEnd(),this.drag.distance=0,e(n).off(".owl.dragEvents")}},o.prototype.removeClick=function(n){this.drag.targetEl=n,e(n).on("click.preventClick",this.e._preventClick),t.setTimeout(function(){e(n).off("click.preventClick")},300)},o.prototype.preventClick=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),e(t.target).off("click.preventClick")},o.prototype.getTransformProperty=function(){var e;return e=t.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),e=e.replace(/matrix(3d)?\(|\)/g,"").split(","),!0!==(16===e.length)?e[4]:e[12]},o.prototype.closest=function(t){var n=-1,i=this.width(),o=this.coordinates();return this.settings.freeDrag||e.each(o,e.proxy(function(e,a){return t>a-30&&t<a+30?n=e:this.op(t,"<",a)&&this.op(t,">",o[e+1]||a-i)&&(n="left"===this.state.direction?e+1:e),-1===n},this)),this.settings.loop||(this.op(t,">",o[this.minimum()])?n=t=this.minimum():this.op(t,"<",o[this.maximum()])&&(n=t=this.maximum())),n},o.prototype.animate=function(t){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+t+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:t+"px"}):this.$stage.animate({left:t},this.speed()/1e3,this.settings.fallbackEasing,e.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},o.prototype.current=function(e){if(e===i)return this._current;if(0===this._items.length)return i;if(e=this.normalize(e),this._current!==e){var t=this.trigger("change",{property:{name:"position",value:e}});t.data!==i&&(e=this.normalize(t.data)),this._current=e,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},o.prototype.invalidate=function(e){this._invalidated[e]=!0},o.prototype.reset=function(e){(e=this.normalize(e))!==i&&(this._speed=0,this._current=e,this.suppress(["translate","translated"]),this.animate(this.coordinates(e)),this.release(["translate","translated"]))},o.prototype.normalize=function(t,n){var o=n?this._items.length:this._items.length+this._clones.length;return!e.isNumeric(t)||o<1?i:t=this._clones.length?(t%o+o)%o:Math.max(this.minimum(n),Math.min(this.maximum(n),t))},o.prototype.relative=function(e){return e=this.normalize(e),e-=this._clones.length/2,this.normalize(e,!0)},o.prototype.maximum=function(e){var t,n,i,o=0,a=this.settings;if(e)return this._items.length-1;if(!a.loop&&a.center)t=this._items.length-1;else if(a.loop||a.center)if(a.loop||a.center)t=this._items.length+a.items;else{if(!a.autoWidth&&!a.merge)throw"Can not detect maximum absolute position.";for(revert=a.rtl?1:-1,n=this.$stage.width()-this.$element.width();(i=this.coordinates(o))&&!(i*revert>=n);)t=++o}else t=this._items.length-a.items;return t},o.prototype.minimum=function(e){return e?0:this._clones.length/2},o.prototype.items=function(e){return e===i?this._items.slice():(e=this.normalize(e,!0),this._items[e])},o.prototype.mergers=function(e){return e===i?this._mergers.slice():(e=this.normalize(e,!0),this._mergers[e])},o.prototype.clones=function(t){var n=this._clones.length/2,o=n+this._items.length,a=function(e){return e%2==0?o+e/2:n-(e+1)/2};return t===i?e.map(this._clones,function(e,t){return a(t)}):e.map(this._clones,function(e,n){return e===t?a(n):null})},o.prototype.speed=function(e){return e!==i&&(this._speed=e),this._speed},o.prototype.coordinates=function(t){var n=null;return t===i?e.map(this._coordinates,e.proxy(function(e,t){return this.coordinates(t)},this)):(this.settings.center?(n=this._coordinates[t],n+=(this.width()-n+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1)):n=this._coordinates[t-1]||0,n)},o.prototype.duration=function(e,t,n){return Math.min(Math.max(Math.abs(t-e),1),6)*Math.abs(n||this.settings.smartSpeed)}
1,o.prototype.to=function(n,i){if(this.settings.loop){var o=n-this.relative(this.current()),a=this.current(),r=this.current(),s=this.current()+o,l=r-s<0,c=this._clones.length+this._items.length;s<this.settings.items&&!1===l?(a=r+this._items.length,this.reset(a)):s>=c-this.settings.items&&!0===l&&(a=r-this._items.length,this.reset(a)),t.clearTimeout(this.e._goToLoop),this.e._goToLoop=t.setTimeout(e.proxy(function(){this.speed(this.duration(this.current(),a+o,i)),this.current(a+o),this.update()},this),30)}else this.speed(this.duration(this.current(),n,i)),this.current(n),this.update()},o.prototype.next=function(e){e=e||!1,this.to(this.relative(this.current())+1,e)},o.prototype.prev=function(e){e=e||!1,this.to(this.relative(this.current())-1,e)},o.prototype.transitionEnd=function(e){if(e!==i&&(e.stopPropagation(),(e.target||e.srcElement||e.originalTarget)!==this.$stage.get(0)))return!1;this.state.inMotion=!1,this.trigger("translated")},o.prototype.viewport=function(){var i;if(this.options.responsiveBaseElement!==t)i=e(this.options.responsiveBaseElement).width();else if(t.innerWidth)i=t.innerWidth;else{if(!n.documentElement||!n.documentElement.clientWidth)throw"Can not detect viewport width.";i=n.documentElement.clientWidth}return i},o.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:e(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(e.proxy(function(e,t){t=this.prepare(t),this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(e.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},o.prototype.add=function(e,t){t=t===i?this._items.length:this.normalize(t,!0),this.trigger("add",{content:e,position:t}),0===this._items.length||t===this._items.length?(this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[t].before(e),this._items.splice(t,0,e),this._mergers.splice(t,0,1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:e,position:t})},o.prototype.remove=function(e){(e=this.normalize(e,!0))!==i&&(this.trigger("remove",{content:this._items[e],position:e}),this._items[e].remove(),this._items.splice(e,1),this._mergers.splice(e,1),this.invalidate("items"),this.trigger("removed",{content:null,position:e}))},o.prototype.addTriggerableEvents=function(){var t=e.proxy(function(t,n){return e.proxy(function(e){e.relatedTarget!==this&&(this.suppress([n]),t.apply(this,[].slice.call(arguments,1)),this.release([n]))},this)},this);e.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},e.proxy(function(e,n){this.$element.on(e+".owl.carousel",t(n,e+".owl.carousel"))},this))},o.prototype.watchVisibility=function(){function n(e){return e.offsetWidth>0&&e.offsetHeight>0}n(this.$element.get(0))||(this.$element.addClass("owl-hidden"),t.clearInterval(this.e._checkVisibile),this.e._checkVisibile=t.setInterval(e.proxy(function(){n(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),t.clearInterval(this.e._checkVisibile))},this),500))},o.prototype.preloadAutoWidthImages=function(t){var n,i,o,a;n=0,i=this,t.each(function(r,s){o=e(s),(a=new Image).onload=function(){n++,o.attr("src",a.src),o.css("opacity",1),n>=t.length&&(i.state.imagesLoaded=!0,i.initialize())},a.src=o.attr("src")||o.attr("data-src")||o.attr("data-src-retina")})},o.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),!1!==this.settings.responsive&&e(t).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var i in this._plugins)this._plugins[i].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),e(n).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},o.prototype.op=function(e,t,n){var i=this.settings.rtl;switch(t){case"<":return i?e>n:e<n;case">":return i?e<n:e>n;case">=":return i?e<=n:e>=n;case"<=":return i?e>=n:e<=n}},o.prototype.on=function(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on"+t,n)},o.prototype.off=function(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on"+t,n)},o.prototype.trigger=function(t,n,i){var o={item:{count:this._items.length,index:this.current()}},a=e.camelCase(e.grep(["on",t,i],function(e){return e}).join("-").toLowerCase()),r=e.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),e.extend({relatedTarget:this},o,n));return this._supress[t]||(e.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(r)}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[a]&&this.settings[a].apply(this,r)),r},o.prototype.suppress=function(t){e.each(t,e.proxy(function(e,t){this._supress[t]=!0},this))},o.prototype.release=function(t){e.each(t,e.proxy(function(e,t){delete this._supress[t]},this))},o.prototype.browserSupport=function(){if(this.support3d=r(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0],this.support3d){this.transformVendor=r(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0];this.transitionEndVendor=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"][r(["transition","WebkitTransition","MozTransition","OTransition"])[1]],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=t.orientation},e.fn.owlCarousel=function(t){return this.each(function(){e(this).data("owlCarousel")||e(this).data("owlCarousel",new o(this,t))})},e.fn.owlCarousel.Constructor=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":e.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var n=this._core.settings,i=n.center&&Math.ceil(n.items/2)||n.items,o=n.center&&-1*i||0,a=(t.property&&t.property.value||this._core.current())+o,r=this._core.clones().length,s=e.proxy(function(e,t){this.load(t)},this);o++<i;)this.load(r/2+this._core.relative(a)),r&&e.each(this._core.clones(this._core.relative(a++)),s)},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={lazyLoad:!1},o.prototype.load=function(n){var i=this._core.$stage.children().eq(n),o=i&&i.find(".owl-lazy");!o||e.inArray(i.get(0),this._loaded)>-1||(o.each(e.proxy(function(n,i){var o,a=e(i),r=t.devicePixelRatio>1&&a.attr("data-src-retina")||a.attr("data-src");this._core.trigger("load",{element:a,url:r},"lazy"),a.is("img")?a.one("load.owl.lazy",e.proxy(function(){a.css("opacity",1),this._core.trigger("loaded",{element:a,url:r},"lazy")},this)).attr("src",r):((o=new Image).onload=e.proxy(function(){a.css({"background-image":"url("+r+")",opacity:"1"}),this._core.trigger("loaded",{element:a,url:r},"lazy")},this),o.src=r)},this)),this._loaded.push(i.get(0)))},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this._core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Lazy=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this._core=t,this._handlers={"initialized.owl.carousel":e.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(e){this._core.settings.autoHeight&&"position"==e.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(e){this._core.settings.autoHeight&&e.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers)};o.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},o.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},o.prototype.destroy=function(){var e,t;for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this._core=t,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":e.proxy(function(e){this._core.settings.video&&!this.isInFullScreen()&&e.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":e.proxy(function(e){this._playing&&this.stop()},this),"prepared.owl.carousel":e.proxy(function(t){var n=e(t.content).find(".owl-video");n.length&&(n.css("display","none"),this.fetch(n,e(t.content)))},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",e.proxy(function(e){this.play(e)},this))};o.Defaults={video:!1,videoHeight:!1,videoWidth:!1},o.prototype.fetch=function(e,t){var n=e.attr("data-vimeo-id")?"vimeo":"youtube",i=e.attr("data-vimeo-id")||e.attr("data-youtube-id"),o=e.attr("data-width")||this._core.settings.videoWidth,a=e.attr("data-height")||this._core.settings.videoHeight,r=e.attr("href");if(!r)throw new Error("Missing video URL.");
1if((i=r.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)n="youtube";else{if(!(i[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");n="vimeo"}i=i[6],this._videos[r]={type:n,id:i,width:o,height:a},t.attr("data-video",r),this.thumbnail(e,this._videos[r])},o.prototype.thumbnail=function(t,n){var i,o,a,r=n.width&&n.height?'style="width:'+n.width+"px;height:"+n.height+'px;"':"",s=t.find("img"),l="src",c="",d=this._core.settings,u=function(e){o='<div class="owl-video-play-icon"></div>',i=d.lazyLoad?'<div class="owl-video-tn '+c+'" '+l+'="'+e+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+e+')"></div>',t.after(i),t.after(o)};if(t.wrap('<div class="owl-video-wrapper"'+r+"></div>"),this._core.settings.lazyLoad&&(l="data-src",c="owl-lazy"),s.length)return u(s.attr(l)),s.remove(),!1;"youtube"===n.type?(a="http://img.youtube.com/vi/"+n.id+"/hqdefault.jpg",u(a)):"vimeo"===n.type&&e.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+n.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){a=e[0].thumbnail_large,u(a)}})},o.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},o.prototype.play=function(t){this._core.trigger("play",null,"video"),this._playing&&this.stop();var n,i,o=e(t.target||t.srcElement),a=o.closest("."+this._core.settings.itemClass),r=this._videos[a.attr("data-video")],s=r.width||"100%",l=r.height||this._core.$stage.height();"youtube"===r.type?n='<iframe width="'+s+'" height="'+l+'" src="http://www.youtube.com/embed/'+r.id+"?autoplay=1&v="+r.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===r.type&&(n='<iframe src="http://player.vimeo.com/video/'+r.id+'?autoplay=1" width="'+s+'" height="'+l+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),a.addClass("owl-video-playing"),this._playing=a,i=e('<div style="height:'+l+"px; width:"+s+'px" class="owl-video-frame">'+n+"</div>"),o.after(i)},o.prototype.isInFullScreen=function(){var i=n.fullscreenElement||n.mozFullScreenElement||n.webkitFullscreenElement;return i&&e(i).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),!(i&&this._fullscreen&&this._playing)&&(this._fullscreen?(this._fullscreen=!1,!1):!this._playing||this._core.state.orientation===t.orientation||(this._core.state.orientation=t.orientation,!1))},o.prototype.destroy=function(){var e,t;this._core.$element.off("click.owl.video");for(e in this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Video=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":e.proxy(function(e){"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":e.proxy(function(e){this.swapping="translated"==e.type},this),"translate.owl.carousel":e.proxy(function(e){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};o.Defaults={animateOut:!1,animateIn:!1},o.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var t,n=e.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),o=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.css({left:t+"px"}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",n)),a&&o.addClass("animated owl-animated-in").addClass(a).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",n))}},o.prototype.clear=function(t){e(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},o.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},e.fn.owlCarousel.Constructor.Plugins.Animate=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){var o=function(t){this.core=t,this.core.options=e.extend({},o.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":e.proxy(function(){this.autoplay()},this),"play.owl.autoplay":e.proxy(function(e,t,n){this.play(t,n)},this),"stop.owl.autoplay":e.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};o.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},o.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(t.clearInterval(this.interval),this.interval=t.setInterval(e.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):t.clearInterval(this.interval)},o.prototype.play=function(e,i){!0!==n.hidden&&(this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion||(!1!==this.core.settings.autoplay?this.core.next(this.core.settings.autoplaySpeed):t.clearInterval(this.interval)))},o.prototype.stop=function(){t.clearInterval(this.interval)},o.prototype.pause=function(){t.clearInterval(this.interval)},o.prototype.destroy=function(){var e,n;t.clearInterval(this.interval);for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){"use strict";var o=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":e.proxy(function(t){this._core.settings.dotsData&&this._templates.push(e(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":e.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,0,e(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":e.proxy(function(e){this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"change.owl.carousel":e.proxy(function(e){if("position"==e.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var t=this._core.current(),n=this._core.maximum(),i=this._core.minimum();e.data=e.property.value>n?t>=n?i:n:e.property.value<i?n:e.property.value}},this),"changed.owl.carousel":e.proxy(function(e){"position"==e.property.name&&this.draw()},this),"refreshed.owl.carousel":e.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers)};o.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-control
1s"},o.prototype.initialize=function(){var t,n,i=this._core.settings;i.dotsData||(this._templates=[e("<div>").addClass(i.dotClass).append(e("<span>")).prop("outerHTML")]),i.navContainer&&i.dotsContainer||(this._controls.$container=e("<div>").addClass(i.controlsClass).appendTo(this.$element)),this._controls.$indicators=i.dotsContainer?e(i.dotsContainer):e("<div>").hide().addClass(i.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",e.proxy(function(t){var n=e(t.target).parent().is(this._controls.$indicators)?e(t.target).index():e(t.target).parent().index();t.preventDefault(),this.to(n,i.dotsSpeed)},this)),t=i.navContainer?e(i.navContainer):e("<div>").addClass(i.navContainerClass).prependTo(this._controls.$container),this._controls.$next=e("<"+i.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(i.navClass[0]).html(i.navText[0]).hide().prependTo(t).on("click",e.proxy(function(e){this.prev(i.navSpeed)},this)),this._controls.$next.addClass(i.navClass[1]).html(i.navText[1]).hide().appendTo(t).on("click",e.proxy(function(e){this.next(i.navSpeed)},this));for(n in this._overrides)this._core[n]=e.proxy(this[n],this)},o.prototype.destroy=function(){var e,t,n,i;for(e in this._handlers)this.$element.off(e,this._handlers[e]);for(t in this._controls)this._controls[t].remove();for(i in this.overides)this._core[i]=this._overrides[i];for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},o.prototype.update=function(){var e,t,n=this._core.settings,i=this._core.clones().length/2,o=i+this._core.items().length,a=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],e=i,t=0,0;e<o;e++)(t>=a||0===t)&&(this._pages.push({start:e-i,end:e-i+a-1}),t=0,0),t+=this._core.mergers(this._core.relative(e))},o.prototype.draw=function(){var t,n,i="",o=this._core.settings,a=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!o.nav||o.loop||o.navRewind||(this._controls.$previous.toggleClass("disabled",a<=0),this._controls.$next.toggleClass("disabled",a>=this._core.maximum())),this._controls.$previous.toggle(o.nav),this._controls.$next.toggle(o.nav),o.dots){if(t=this._pages.length-this._controls.$indicators.children().length,o.dotData&&0!==t){for(n=0;n<this._controls.$indicators.children().length;n++)i+=this._templates[this._core.relative(n)];this._controls.$indicators.html(i)}else t>0?(i=new Array(t+1).join(this._templates[0]),this._controls.$indicators.append(i)):t<0&&this._controls.$indicators.children().slice(t).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(e.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(o.dots)},o.prototype.onTrigger=function(t){var n=this._core.settings;t.page={index:e.inArray(this.current(),this._pages),count:this._pages.length,size:n&&(n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items)}},o.prototype.current=function(){var t=this._core.relative(this._core.current());return e.grep(this._pages,function(e){return e.start<=t&&e.end>=t}).pop()},o.prototype.getPosition=function(t){var n,i,o=this._core.settings;return"page"==o.slideBy?(n=e.inArray(this.current(),this._pages),i=this._pages.length,t?++n:--n,n=this._pages[(n%i+i)%i].start):(n=this._core.relative(this._core.current()),i=this._core.items().length,t?n+=o.slideBy:n-=o.slideBy),n},o.prototype.next=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},o.prototype.prev=function(t){e.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},o.prototype.to=function(t,n,i){var o;i?e.proxy(this._overrides.to,this._core)(t,n):(o=this._pages.length,e.proxy(this._overrides.to,this._core)(this._pages[(t%o+o)%o].start,n))},e.fn.owlCarousel.Constructor.Plugins.Navigation=o}(window.Zepto||window.jQuery,window,document),function(e,t,n,i){"use strict";var o=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":e.proxy(function(){"URLHash"==this._core.settings.startPosition&&e(t).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":e.proxy(function(t){var n=e(t.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[n]=t.content},this)},this._core.options=e.extend({},o.Defaults,this._core.options),this.$element.on(this._handlers),e(t).on("hashchange.owl.navigation",e.proxy(function(){var e=t.location.hash.substring(1),n=this._core.$stage.children(),i=this._hashes[e]&&n.index(this._hashes[e])||0;if(!e)return!1;this._core.to(i,!1,!0)},this))};o.Defaults={URLhashListener:!1},o.prototype.destroy=function(){var n,i;e(t).off("hashchange.owl.navigation");for(n in this._handlers)this._core.$element.off(n,this._handlers[n]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.fn.owlCarousel.Constructor.Plugins.Hash=o}(window.Zepto||window.jQuery,window,document),$(document).ready(function(){$(window).scroll(scroll_pagina),$("#divPagina").scroll(scroll_pagina),$("#lnkSubir").on("click",function(e){$("html, body, #divPagina").animate({scrollTop:0},"500","swing",function(){})}),$("#divIzq").on("click","a",function(e){$(this).next("ul").length>0&&(e.preventDefault(),$(this).toggleClass("abi").next("ul").slideToggle())}),$("#lnkDesIzq").click(menu_izq),$("#lnkDesDer").click(menu_der),$(window).resize(redimensionar),setTimeout(function(){redimensionar()},150)}),jQuery.fn.forzarEnteros=function(){return this.each(function(){$(this).key
1down(function(e){var t=e.charCode||e.keyCode||0;return 13==t||8==t||9==t||46==t||t>=37&&t<=40||t>=48&&t<=57||t>=96&&t<=105})})},jQuery.fn.forzarDecimales=function(){return this.each(function(){$(this).keydown(function(e){var t=e.charCode||e.keyCode||0;return 8==t||9==t||46==t||""!=$(this).val()&&-1==$(this).val().indexOf(".")&&-1==$(this).val().indexOf(",")&&(110==t||190==t||188==t)||t>=37&&t<=40||t>=48&&t<=57||t>=96&&t<=105})})},$(document).ready(function(){$.ajaxSetup({cache:!1}),$(window).resize(function(){redimensionar_controles()}),inicializar_controles(),inicializar_links(),inicializar_forms()}),$.fn.modal.Constructor.prototype.enforceFocus=function(){modal_this=this,$(document).on("focusin.modal",function(e){modal_this.$element[0]===e.target||modal_this.$element.has(e.target).length||$(e.target.parentNode).hasClass("cke_dialog_ui_input_select")||$(e.target.parentNode).hasClass("cke_dialog_ui_input_text")||modal_this.$element.focus()})},function(e,t,n,i){"use strict";var o=function(){var e;return""==(e=(e=n.body||n.documentElement).style).WebkitTransition?"-webkit-":""==e.MozTransition?"-moz-":""==e.OTransition?"-o-":""==e.transition&&""},a=!1!==o(),r=function(e,t,n){var i={},a=o();i[a+"transform"]="translateX("+t+")",i[a+"transition"]=a+"transform "+n+"s linear",e.css(i)},s="ontouchstart"in t,l=t.navigator.pointerEnabled||t.navigator.msPointerEnabled,c=function(e){if(s)return!0;if(!l||void 0===e||void 0===e.pointerType)return!1;if(void 0!==e.MSPOINTER_TYPE_MOUSE){if(e.MSPOINTER_TYPE_MOUSE!=e.pointerType)return!0}else if("mouse"!=e.pointerType)return!0;return!1};e.fn.imageLightbox=function(i){i=e.extend({selector:'id="imagelightbox"',allowedTypes:"png|jpg|jpeg|gif",animationSpeed:250,preloadNext:!0,enableKeyboard:!0,quitOnEnd:!1,quitOnImgClick:!1,quitOnDocClick:!0,onStart:!1,onEnd:!1,onLoadStart:!1,onLoadEnd:!1},i);var o=e([]),d=e(),u=e(),h=0,f=0,p=0,m=!1,g=function(t){return"a"==e(t).prop("tagName").toLowerCase()&&new RegExp(".("+i.allowedTypes+")$","i").test(e(t).attr("href"))},E=function(){if(!u.length)return!0;var n=.8*e(t).width(),i=.9*e(t).height(),o=new Image;o.src=u.attr("src"),o.onload=function(){if(h=o.width,f=o.height,h>n||f>i){var a=h/f>n/i?h/n:f/i;h/=a,f/=a}u.css({width:h+"px",height:f+"px",top:(e(t).height()-f)/2+"px",left:(e(t).width()-h)/2+"px"})}},v=function(t){if(m)return!1;if(t=void 0!==t&&("left"==t?1:-1),u.length){if(!1!==t&&(o.length<2||!0===i.quitOnEnd&&(-1===t&&0==o.index(d)||1===t&&o.index(d)==o.length-1)))return C(),!1;var n={opacity:0};a?r(u,100*t-p+"px",i.animationSpeed/1e3):n.left=parseInt(u.css("left"))+100*t+"px",u.animate(n,i.animationSpeed,function(){T()}),p=0}m=!0,!1!==i.onLoadStart&&i.onLoadStart(),setTimeout(function(){var n=0,s=0,f=0;(u=e("<img "+i.selector+" />").attr("src",d.attr("href")).load(function(){u.appendTo("body"),E();var n={opacity:1};if(u.css("opacity",0),a)r(u,-100*t+"px",0),setTimeout(function(){r(u,"0px",i.animationSpeed/1e3)},50);else{var s=parseInt(u.css("left"));n.left=s+"px",u.css("left",s-100*t+"px")}if(u.animate(n,i.animationSpeed,function(){m=!1,!1!==i.onLoadEnd&&i.onLoadEnd()}),i.preloadNext){var l=o.eq(o.index(d)+1);l.length||(l=o.eq(0)),e("<img />").attr("src",l.attr("href")).load()}}).error(function(){!1!==i.onLoadEnd&&i.onLoadEnd()})).on(l?"pointerup MSPointerUp":"click",function(e){if(e.preventDefault(),i.quitOnImgClick)return C(),!1;if(c(e.originalEvent))return!0;var t=(e.pageX||e.originalEvent.pageX)-e.target.offsetLeft;(d=o.eq(o.index(d)-(h/2>t?1:-1))).length||(d=o.eq(h/2>t?o.length:0)),v(h/2>t?"left":"right")}).on("touchstart pointerdown MSPointerDown",function(e){if(!c(e.originalEvent)||i.quitOnImgClick)return!0;a&&(f=parseInt(u.css("left"))),n=e.originalEvent.pageX||e.originalEvent.touches[0].pageX}).on("touchmove pointermove MSPointerMove",function(e){if(!c(e.originalEvent)||i.quitOnImgClick)return!0;e.preventDefault(),s=e.originalEvent.pageX||e.originalEvent.touches[0].pageX,p=n-s,a?r(u,-p+"px",0):u.css("left",f-p+"px")}).on("touchend touchcancel pointerup pointercancel MSPointerUp MSPointerCancel",function(e){if(!c(e.originalEvent)||i.quitOnImgClick)return!0;Math.abs(p)>50?((d=o.eq(o.index(d)-(p<0?1:-1))).length||(d=o.eq(p<0?o.length:0)),v(p>0?"right":"left")):a?r(u,"0px",i.animationSpeed/1e3):u.animate({left:f+"px"},i.animationSpeed/2)})},i.animationSpeed+100)},T=function(){if(!u.length)return!1;u.remove(),u=e()},C=function(){if(!u.length)return!1;u.animate({opacity:0}
1,i.animationSpeed,function(){T(),m=!1,!1!==i.onEnd&&i.onEnd()})};return e(t).on("resize",E),i.quitOnDocClick&&e(n).on(s?"touchend":"click",function(t){u.length&&!e(t.target).is(u)&&C()}),i.enableKeyboard&&e(n).on("keyup",function(e){if(!u.length)return!0;e.preventDefault(),27==e.keyCode&&C(),37!=e.keyCode&&39!=e.keyCode||((d=o.eq(o.index(d)-(37==e.keyCode?1:-1))).length||(d=o.eq(37==e.keyCode?o.length:0)),v(37==e.keyCode?"left":"right"))}),e(n).on("click",this.selector,function(t){return!g(this)||(t.preventDefault(),!m&&(m=!1,!1!==i.onStart&&i.onStart(),d=e(this),void v()))}),this.each(function(){if(!g(this))return!0;o=o.add(e(this))}),this.switchImageLightbox=function(e){var t=o.eq(e);if(t.length){var n=o.index(d);d=t,v(e<n?"left":"right")}return this},this.quitImageLightbox=function(){return C(),this},this}}(jQuery,window,document),function(e){e.fn.stickySidebar=function(t){var n=e.extend({headerSelector:"header",navSelector:"nav",contentSelector:".interior",footerSelector:"footer",sidebarTopMargin:20,footerThreshold:40,headerHeight:0},t),i=function(){var t=e(this),i=e(window).height(),o=(e(window).width(),e(document).height()),a=e(n.headerSelector).outerHeight(),r=e(n.navSelector).outerHeight(),s=t.outerHeight()+n.headerHeight,l=e(n.contentSelector).outerHeight(),c=e(n.footerSelector).outerHeight(),d=e(window).scrollTop(),u=a+r,h=o-(s+c+n.footerThreshold);if(n.headerHeight>0&&(n.sidebarTopMargin=n.headerHeight,u=5),l>s&&i>s)if(d<u)t.removeClass("sticky").css({top:0,width:"auto"});else if(d>=u&&d<h)t.addClass("sticky").css({top:n.sidebarTopMargin,width:t.parent().width()});else{var f=n.headerHeight+h-d;t.addClass("sticky").css({top:f,width:t.parent().width()})}else t.removeClass("sticky").css({top:0,width:"auto"})};return this.each(function(){e(window).on("scroll",e.proxy(i,this)),e(window).on("resize",e.proxy(i,this)),e.proxy(i,this)()})}}(jQuery),window.Modernizr=function(e,t,n){function i(e){d.cssText=e}function o(e,t){return typeof e===t}var a,r,s={},l=t.documentElement,c=t.createElement("modernizr"),d=c.style,u="http://www.w3.org/2000/svg",h={},f=[],p=f.slice,m={}.hasOwnProperty;r=o(m,"undefined")||o(m.call,"undefined")?function(e,t){return t in e&&o(e.constructor.prototype[t],"undefined")}:function(e,t){return m.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;var n=p.call(arguments,1),i=function(){if(this instanceof i){var o=function(){};o.prototype=t.prototype;var a=new o,r=t.apply(a,n.concat(p.call(arguments)));return Object(r)===r?r:a}return t.apply(e,n.concat(p.call(arguments)))};return i}),h.svg=function(){return!!t.createElementNS&&!!t.createElementNS(u,"svg").createSVGRect};for(var g in h)r(h,g)&&(a=g.toLowerCase(),s[a]=h[g](),f.push((s[a]?"":"no-")+a));return s.addTest=function(e,t){if("object"==typeof e)for(var i in e)r(e,i)&&s.addTest(i,e[i]);else{if(e=e.toLowerCase(),s[e]!==n)return s;t="function"==typeof t?t():t,l.className+=" "+(t?"":"no-")+e,s[e]=t}return s},i(""),c=null,function(e,t){function n(){var e=p.elements;return"string"==typeof e?e.split(" "):e}function i(e){var t=f[e[u]];return t||(t={},h++,e[u]=h,f[h]=t),t}function o(e,n,o){if(n||(n=t),s)return n.createElement(e);o||(o=i(n));var a;return!(a=o.cache[e]?o.cache[e].cloneNode():d.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e)).canHaveChildren||c.test(e)||a.tagUrn?a:o.frag.appendChild(a)}function a(e){e||(e=t);var a=i(e);return p.shivCSS&&!r&&!a.hasCSS&&(a.hasCSS=!!function(e,t){var n=e.createElement("p"),i=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",i.insertBefore(n.lastChild,i.firstChild)}(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),s||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return p.shivMethods?o(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/[\w\-]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(p,t.frag)}(e,a),e}var r,s,l=e.html5||{},c=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,d=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,u="_html5shiv",h=0,f={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",r="hidden"in e,s=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){r=!0,s=!0}}();var p={elements:l.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==l.shivCSS,supportsUnknownElements:s,shivMethods:!1!==l.shivMethods,t
1ype:"default",shivDocument:a,createElement:o,createDocumentFragment:function(e,o){if(e||(e=t),s)return e.createDocumentFragment();for(var a=(o=o||i(e)).frag.cloneNode(),r=0,l=n(),c=l.length;r<c;r++)a.createElement(l[r]);return a}};e.html5=p,a(t)}(this,t),s._version="2.8.3",l.className=l.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+f.join(" "),s}(0,this.document),function(e,t,n){function i(e){return"[object Function]"==m.call(e)}function o(e){return"string"==typeof e}function a(){}function r(e){return!e||"loaded"==e||"complete"==e||"uninitialized"==e}function s(){var e=g.shift();E=1,e?e.t?f(function(){("c"==e.t?u.injectCss:u.injectJs)(e.s,0,e.a,e.x,e.e,1)},0):(e(),s()):E=0}function l(e,n,i,a,l){return E=0,n=n||"j",o(e)?function(e,n,i,o,a,l,c){function d(t){if(!m&&r(h.readyState)&&(b.r=m=1,!E&&s(),h.onload=h.onreadystatechange=null,t)){"img"!=e&&f(function(){C.removeChild(h)},50);for(var i in O[n])O[n].hasOwnProperty(i)&&O[n][i].onload()}}c=c||u.errorTimeout;var h=t.createElement(e),m=0,v=0,b={t:i,s:n,e:a,a:l,x:c};1===O[n]&&(v=1,O[n]=[]),"object"==e?h.data=n:(h.src=n,h.type=e),h.width=h.height="0",h.onerror=h.onload=h.onreadystatechange=function(){d.call(this,v)},g.splice(o,0,b),"img"!=e&&(v||2===O[n]?(C.insertBefore(h,T?null:p),f(d,c)):O[n].push(h))}("c"==n?D:b,e,n,this.i++,i,a,l):(g.splice(this.i++,0,e),1==g.length&&s()),this}function c(){var e=u;return e.loader={load:l,i:0},e}var d,u,h=t.documentElement,f=e.setTimeout,p=t.getElementsByTagName("script")[0],m={}.toString,g=[],E=0,v="MozAppearance"in h.style,T=v&&!!t.createRange().compareNode,C=T?h:p.parentNode,b=(h=e.opera&&"[object Opera]"==m.call(e.opera),h=!!t.attachEvent&&!h,v?"object":h?"script":"img"),D=h?"script":b,y=Array.isArray||function(e){return"[object Array]"==m.call(e)},I=[],O={},R={timeout:function(e,t){return t.length&&(e.timeout=t[0]),e}};(u=function(e){function t(e,t,o,a,r){var s=function(e){e=e.split("!");var t,n,i,o=I.length,a=e.pop(),r=e.length;for(a={url:a,origUrl:a,prefixes:e},n=0;n<r;n++)i=e[n].split("="),(t=R[i.shift()])&&(a=t(a,i));for(n=0;n<o;n++)a=I[n](a);return a}(e),l=s.autoCallback;s.url.split(".").pop().split("?").shift(),s.bypass||(t&&(t=i(t)?t:t[e]||t[a]||t[e.split("/").pop().split("?")[0]]),s.instead?s.instead(e,t,o,a,r):(O[s.url]?s.noexec=!0:O[s.url]=1,o.load(s.url,s.forceCSS||!s.forceJS&&"css"==s.url.split(".").pop().split("?").shift()?"c":n,s.noexec,s.attrs,s.timeout),(i(t)||i(l))&&o.load(function(){c(),t&&t(s.origUrl,r,a),l&&l(s.origUrl,r,a),O[s.url]=2})))}function r(e,n){function r(e,a){if(e){if(o(e))a||(u=function(){var e=[].slice.call(arguments);h.apply(this,e),f()}),t(e,u,n,0,c);else if(Object(e)===e)for(l in s=function(){var t,n=0;for(t in e)e.hasOwnProperty(t)&&n++;return n}(),e)e.hasOwnProperty(l)&&(!a&&!--s&&(i(u)?u=function(){var e=[].slice.call(arguments);h.apply(this,e),f()}:u[l]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),f()}}(h[l])),t(e[l],u,n,l,c))}else!a&&f()}var s,l,c=!!e.test,d=e.load||e.both,u=e.callback||a,h=u,f=e.complete||a;r(c?e.yep:e.nope,!!d),d&&r(d)}var s,l,d=this.yepnope.loader;if(o(e))t(e,0,d,0);else if(y(e))for(s=0;s<e.length;s++)l=e[s],o(l)?t(l,0,d,0):y(l)?u(l):Object(l)===l&&r(l,d);else Object(e)===e&&r(e,d)}).addPrefix=function(e,t){R[e]=t},u.addFilter=function(e){I.push(e)},u.errorTimeout=1e4,null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",d=function(){t.removeEventListener("DOMContentLoaded",d,0),t.readyState="complete"},0)),e.yepnope=c(),e.yepnope.executeStack=s,e.yepnope.injectJs=function(e,n,i,o,l,c){var d,h,m=t.createElement("script");o=o||u.errorTimeout;m.src=e;for(h in i)m.setAttribute(h,i[h]);n=c?s:n||a,m.onreadystatechange=m.onload=function(){!d&&r(m.readyState)&&(d=1,n(),m.onload=m.onreadystatechange=null)},f(function(){d||(d=1,n(1))},o),l?m.onload():p.parentNode.insertBefore(m,p)},e.yepnope.injectCss=function(e,n,i,o,r,l){var c;o=t.createElement("link"),n=l?s:n||a;o.href=e,o.rel="stylesheet",o.type="text/css";for(c in i)o.setAttribute(c,i[c]);r||(p.parentNode.insertBefore(o,p),f(n,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},function($){$.fn.svgmagic=function(givenOptions){function shouldPerformReplacement(e){return e.forceReplacements||"function"!=typeof document.createElement("svg").getAttributeNS}function buildImageList(e,t){var n=[];return t.each(function(){var t,i=$(this);if(i.attr(srcAttributeName)){(o=buildImageReference(i.attr(srcAttributeName),i,!1))&&(n.push(o),e.temporaryHoldingImage&&(t=setTimeout(function(){i.attr(srcAttributeName,e.temporaryHoldingImage)},holdingImageTimeoutDuration),holdingImageTimeouts[n.length-1]=t))}
1if(e.handleBackgroundImages&&i.css(backgroundImagePropertyName)&&"none"!=i.css(backgroundImagePropertyName)){var o;(o=buildImageReference(urlMatcher.exec(i.css(backgroundImagePropertyName))[1],i,!0))&&n.push(o)}}),log(!1,["Builded image list",n]),n}function buildImageReference(e,t,n){var i=null;if(svgExtension.test(e)||svgDataUri.test(e)){var o=new Image;o.src=e,i={element:t,isBackground:n,originalUri:o.src,replacementUri:null}}return i}function getReplacementUris(e,t){var n=e.replacementUriCreator;if((images=buildImageList(e,t)).length>0)if(n&&"function"==typeof n){for(var i=0;i<images.length;i++){var o=images[i];o.replacementUri=n(o.element,o.originalUri,o.isBackground)}performReplacements(e)}else getReplacementUrisFromRemoteService(e)}function getReplacementUrisFromRemoteService(e){for(var t=[],n={},i=0;i<images.length;i++)t.push(images[i].originalUri);var o=window.location.href.split("/");$.extend(n,e.additionalRequestData,{svgsources:t,version:VERSION,origin:o[2]}),$.ajax({dataType:e.remoteDataType,method:e.remoteRequestType,url:e.remoteServerUri,data:n,timeout:3e3,success:function(t,n,i){for(var o=0;o<images.length;o++){var a=images[o],r=t.images[o].image;a.replacementUri=r,a.error=t.images[o].error,a.responseMsg=t.images[o].msg,a.filename=t.images[o].filename}performReplacements(e)},error:function(){log(!0,"The request took longer than 3 seconds to complete. No image were replaced. Use the developer tools to check wheter the server responded with an error.")}})}function performReplacements(e){for(var t=0;t<images.length;t++){var n=images[t],i=n.replacementUri;i?n.error?log(!0,n.filename+": "+n.responseMsg):n.isBackground?(log(!1,n.filename+": Background image replaced. Server responded with: "+n.responseMsg),n.element.css(backgroundImagePropertyName,'url("'+i+'")')):(log(!1,n.filename+": Image replaced. Server responded with: "+n.responseMsg),e.temporaryHoldingImage&&clearTimeout(holdingImageTimeouts[t]),n.element.attr(srcAttributeName,i)):log(!0,n.filename+": No new url received")}e.postReplacementCallback&&"function"==typeof e.postReplacementCallback&&e.postReplacementCallback(images)}function tidyOptions(e){return!e.temporaryHoldingImage&&e.preloader&&"string"==typeof e.preloader&&(e.temporaryHoldingImage=e.preloader),e.testmode&&"boolean"==typeof e.testmode&&(e.forceReplacements=!0),!e.postReplacementCallback&&e.callback&&"function"==typeof e.callback&&(e.postReplacementCallback=function(t){e.callback()}),e.additionalRequestData.secure||(e.additionalRequestData.secure=e.secure),e.additionalRequestData.dumpcache||(e.additionalRequestData.dumpcache=e.dumpcache),e}function log(e,t){options.debug&&(e?console.error(t):console.log(t))}var defaultOptions={preloader:!1,testmode:!1,secure:!1,callback:!1,backgroundimage:!1,dumpcache:!1,temporaryHoldingImage:null,forceReplacements:!1,handleBackgroundImages:!1,additionalRequestData:{},postReplacementCallback:null,remoteServerUri:"http://bitlabs.nl/svgmagic/converter/3/",remoteRequestType:"POST",remoteDataType:"jsonp",debug:!1,replacementUriCreator:null},untidyOptions=$.extend(defaultOptions,givenOptions),options=tidyOptions(untidyOptions),holdingImageTimeouts={},matchedNodes=this,images=[],imgElementName="img",srcAttributeName="src",backgroundImagePropertyName="background-image",urlMatcher=/^url\(["']?([^"'()]+)["']?\)$/,svgExtension=/\.svg$/,svgDataUri=/^data:image\/svg\+xml/,holdingImageTimeoutDuration=500,VERSION=3;return("https:"==window.location.protocol||options.additionalRequestData.secure)&&(options.remoteServerUri=options.remoteServerUri.replace("http://","https://")),log(!1,"Using "+options.remoteServerUri+" as remote server"),shouldPerformReplacement(options)&&getReplacementUris(options,matchedNodes),"undefined"==typeof JSON&&("object"!=typeof JSON&&(JSON={}),function(){"use strict";function f(e){return e<10?"0"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?'"'+e.replace(escapable,function(e){var t=meta[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var n,i,o,a,r,s=gap,l=t[e];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(e)),"function"==typeof rep&&(l=rep.call(t,e,l)),typeof l){case"string":return quote(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(gap+=indent,r=[],"[object Array]"===Object.prototype.toString.apply(l)){for(a=l.length,n=0;n<a;n+=1)r[n]=str(n,l)||"null";return o=0===r.length?"[]":gap?"[\n"+gap+r.join(",\n"+gap)+"\n"+s+"]":"["+r.join(",")+"]",gap=s,o}if(rep&&"object"==typeof rep)for(a=rep.length,n=0;n<a;n+=1)"string"==typeof rep[n]&&(o=str(i=rep[n],l))&&r.push(quote(i)+(gap?": ":":")+o);else for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(o=str(i,l))&&r.push(quote(i)+(gap?": ":":")+o);return o=0===r.length?"{}":gap?"{\n"+gap+r.join(",\n"+gap)+"\n"+s+"}":"{"+r.join(",")+"}",gap=s,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;
1"function"!=typeof JSON.stringify&&(JSON.stringify=function(e,t,n){var i;if(gap="",indent="","number"==typeof n)for(i=0;i<n;i+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return str("",{"":e})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(e,t){var n,i,o=e[t];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(void 0!==(i=walk(o,n))?o[n]=i:delete o[n]);return reviver.call(e,t,o)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()),this}}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(e){function t(e){return a.raw?e:encodeURIComponent(e)}function n(e){return a.raw?e:decodeURIComponent(e)}function i(t,n){var i=a.raw?t:function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(o," ")),a.json?JSON.parse(e):e}catch(e){}}(t);return e.isFunction(n)?n(i):i}var o=/\+/g,a=e.cookie=function(o,r,s){if(arguments.length>1&&!e.isFunction(r)){if("number"==typeof(s=e.extend({},a.defaults,s)).expires){var l=s.expires,c=s.expires=new Date;c.setTime(+c+864e5*l)}return document.cookie=[t(o),"=",function(e){return t(a.json?JSON.stringify(e):String(e))}(r),s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}for(var d=o?void 0:{},u=document.cookie?document.cookie.split("; "):[],h=0,f=u.length;h<f;h++){var p=u[h].split("="),m=n(p.shift()),g=p.join("=");if(o&&o===m){d=i(g,r);break}o||void 0===(g=i(g))||(d[m]=g)}return d};a.defaults={},e.removeCookie=function(t,n){return void 0!==e.cookie(t)&&(e.cookie(t,"",e.extend({},n,{expires:-1})),!e.cookie(t))}}),function(e){function t(t,n){var o=this;o.el=t,o.$el=e(t),o.options=e.extend({},i,n),o.terms=[],o.excludes=[],o.replaced=[],o.regexOption=o.options.replaceOnce?"i":"ig",e.getJSON(this.options.sourceURL).then(function(e){if(o.glossary=e,o.glossary.length&&0!=o.glossary.length){for(var t=0;t<o.glossary.length;t++)for(var n=o.glossary[t].term.split(","),i=0;i<n.length;i++){var a=n[i].replace(/^\s+|\s+$/g,""),r=a.indexOf("!");-1==r||0!=r?o.terms.push(a):o.excludes.push(a.substr(1))}o.wrapTerms()}})}var n="glossarizer",i={sourceURL:"",replaceTag:"abbr",lookupTagName:"p, ul, a, div",callback:null,replaceOnce:!1,replaceClass:"termino"};t.prototype={getDescription:function(e){new RegExp("(,|s*)"+this.clean(e)+"\\s*|\\,$","i");for(var t=0;t<this.glossary.length;t++)if(this.glossary[t].term.toUpperCase()==e.toUpperCase())return this.glossary[t].description.replace(/\"/gi,""")},clean:function(e){var t=new RegExp("(\\"+["/",".","*","+","?","(",")","[","]","{","}","\\"].join("|\\")+")","g");return e.replace(t,"\\$1")},wrapTerms:function(){this.cleanedTerms=this.clean(this.terms.join("|")),this.excludedTerms=this.clean(this.excludes.join("|"));for(var e=this.el.querySelectorAll(this.options.lookupTagName),t=0;t<e.length;t++)this.traverser(e[t]);this.options.callback&&this.options.callback.call(this.$el)},traverser:function(t){var n,i=this;if(1===t.nodeType){if(t=t.firstChild)do{n=t.nextSibling,t.className!=this.options.replaceClass&&this.traverser(t)}while(t=n)}else if(3===t.nodeType){var o=document.createElement("div"),a=t.data,r=new RegExp("(?:^|\\b)("+this.cleanedTerms+")(?!\\w)",i.regexOption),s=new RegExp("(?:^|\\b)("+this.excludedTerms+")(?!\\w)",i.regexOption);if(r.test(a)){var l=s.exec(a);for(a=a.replace(r,function(t,n,o,r){if(i.options.replaceOnce&&function(t,n,i){if("string"!=typeof t)return e.inArray.apply(this,arguments);if(n){var o=n.length;for(i=i?i<0?Math.max(0,o+i):i:0,t=t.toLowerCase();i<o;i++)if(i in n&&n[i].toLowerCase()==t)return i}return-1}(t,i.replaced)>=0)return t;i.replaced.push(t);if(new RegExp("(?:^|\\b)"+i.clean(t)+"(?!\\w)").exec(a)){if(l&&i.excludes.length){var s=o,c=l.index,d=l.index+l[0].length;return c<=s&&s<=d?t:"<"+i.options.replaceTag+' class="'+i.options.replaceClass+'" title="'+t+'" data-placement="bottom" data-content="'+i.getDescription(t)+'">'+t+"</"+i.options.replaceTag+">"}return"<"+i.options.replaceTag+' class="'+i.options.replaceClass+'" title="'+t+'" data-placement="bottom" data-content="'+i.getDescription(t)+'">'+t+"</"+i.options.replaceTag+">"}}),e(o).html(a);o.firstChild;)t.parentNode.insertBefore(o.firstChild,t);t.parentNode.removeChild(t)}}}};var o={destroy:function(){this.$el.removeData("plugin_"+n),this.$el.find("."+this.options.replaceClass).each(function(){var t=e(this),n=t.text();t.replaceWith(n)})}};t.prototype=e.extend({},t.prototype,o),e.fn[n]=function(i){return this.each(function(){var a=e(this).data("plugin_"+n);"string"==typeof i&&a&&o.hasOwnProperty(i)?a[i].apply(a):(a&&a.destroy.apply(a),e.data(this,"plugin_"+n,new t(this,i)))})}}(jQuery),function(e,t){function n(i,o){var a=i.getBoundingClientRect(),r=a.top,s=a.bottom,l=a.left,c=a.right,d=e.extend({tolerance:0,viewport:t},o),u=!1,h=d.viewport.jquery?d.viewport:e(d.viewport);h.length||(console.warn("isInViewport: The viewport selector you have provided matches no element on page."),console.warn("isInViewport: Defaulting to viewport as window"),h=e(t));var f=h.height(),p=h.width(),m=h[0].toString();if(h[0]!==t&&"[object Window]"!==m&&"[object DOMWindow]"!==m){var g=h[0].getBoundingClientRect();r-=g.top,s-=g.top,l-=g.left,c-=g.left,p-=n.scrollBarWidth=n.scrollBarWidth||function(t){var n,i=e("<div></div>").css({width:"100%"});return t.append(i),n=t.width()-i.width(),i.remove(),n}(h)}return d.tolerance=~~Math.round(parseFloat(d.tolerance)),d.tolerance<0&&(d.tolerance=f+d.tolerance),c<=0||l>=p?u:u=d.tolerance?r<=d.tolerance&&s>=d.tolerance:s>0&&r<=f}String.prototype.hasOwnProperty("trim")||(String.prototype.trim=function(){return this.replace(/^\s*(.*?)\s*$/,"$1")});var i=function(t){if(1===arguments.length&&"function"==typeof t&&(t=[t]),!(t instanceof Array))throw new SyntaxError("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions");for(var n=0;n<t.length;n++)if("function"==typeof t[n])for(var i=0;i<this.length;i++)t[n].call(e(this[i]));else console.warn("isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions"),console.warn("isInViewport: Ignoring non-function values in array and moving on");return this};e.fn.do=function(e){return console.warn("isInViewport: .do is deprecated as it causes issues in IE and some browsers since it's a reserved word. Use $.fn.run instead i.e., $(el).run(fn)."),i(e)},e.fn.run=i;var o=function(t){if(t){var n=t.split(",");return 1===n.length&&isNaN(n[0])&&(n[1]=n[0],n[0]=void 0),{tolerance:n[0]?n[0].trim():void 0,viewport:n[1]?e(n[1].trim()):void 0}}return{}};e.extend(e.expr[":"],{"in-viewport":e.expr.createPseudo?e.expr.createPseudo(function(e){return function(t){return n(t,o(e))}}):function(e,t,i){return n(e,o(i[3]))}}),e.fn.isInViewport=function(e){return this.filter(function(t,i){return n(i,e)})}}(jQuery,window);var diapositivas=Array(),diapo_contador=0,diapo_intervalo=4e3,diapo_id=0,timer_contador=null;$(function(){void 0==$.cookie("aviso_cookie")&&$("#cookies").show(),$("#lnkCookies").click(function(e){e.preventDefault(),$.cookie("aviso_cookie","1",{expires:365}),$("#cookies").hide()}),tratar_iframes(),desactivar_scroll_maps(),$(window).scroll(scroll_home),$("#divPagina").scroll(scroll_home),$(window).on("resize",function(){ajustar_contenedores(),ajustar_alturas()}),setTimeout(function(){ajustar_contenedores(),ajustar_alturas()},10)});
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.