(self.webpackChunkrotor=self.webpackChunkrotor||[]).push([[223],{17:()=>{!function(e,t){var n=document.createElement("input"),a="setSelectionRange"in n||"selectionStart"in n,i="createTextRange"in n||"selection"in document,r=/\r\n/g,o=/\r/g,s=function(t){return void 0!==t.value?t.value:e(t).text()},l=function(t,n){void 0!==t.value?t.value=n:e(t).text(n)},c=function(e,t){var n=s(e).replace(o,"").length;return void 0===t&&(t=n),0>(t=Math.floor(t))&&(t=n+t),0>t&&(t=0),t>n&&(t=n),t},p=function(e,t,n,a){this.start=e||0,this.end=t||0,this.length=n||0,this.text=a||""};p.prototype.toString=function(){return JSON.stringify(this,null," ")};var u=function(e){return e?a?function(e){return e.selectionStart}(e):i?function(e){var t,n,a,i,o;return e.focus(),e.focus(),(t=document.selection.createRange())&&t.parentElement()===e?(i=(a=s(e)).length,(n=e.createTextRange()).moveToBookmark(t.getBookmark()),(o=e.createTextRange()).collapse(!1),n.compareEndPoints("StartToEnd",o)>-1?a.replace(r,"\n").length:-n.moveStart("character",-i)):0}(e):t:t},d=function(e,t){e.focus(),t=c(e,t),a?function(e,t){e.setSelectionRange(t,t)}(e,t):i&&function(e,t){var n=e.createTextRange();n.move("character",t),n.select()}(e,t)},f=function(e,t){var n=u(e),a=s(e).replace(o,""),i=+(n+t.length+(a.length-n)),r=+e.getAttribute("maxlength");if(function(e,t){return e.hasAttribute?e.hasAttribute(t):void 0!==e[t]}(e,"maxlength")&&i>r){var c=t.length-(i-r);t=t.substr(0,c)}l(e,a.substr(0,n)+t+a.substr(n)),d(e,n+t.length)},m=function(e){return e?a?function(e){var t=new p;t.start=e.selectionStart,t.end=e.selectionEnd;var n=Math.min(t.start,t.end),a=Math.max(t.start,t.end);return t.length=a-n,t.text=s(e).substring(n,a),t}(e):i?function(e){var t=new p;e.focus();var n=document.selection.createRange();if(n&&n.parentElement()===e){var a,i,r,o,l=0,c=0,u=s(e);a=u.length,i=u.replace(/\r\n/g,"\n"),(r=e.createTextRange()).moveToBookmark(n.getBookmark()),(o=e.createTextRange()).collapse(!1),r.compareEndPoints("StartToEnd",o)>-1?l=c=a:(l=-r.moveStart("character",-a),l+=i.slice(0,l).split("\n").length-1,r.compareEndPoints("EndToEnd",o)>-1?c=a:(c=-r.moveEnd("character",-a),c+=i.slice(0,c).split("\n").length-1)),l-=u.substring(0,l).split("\r\n").length-1,c-=u.substring(0,c).split("\r\n").length-1,t.start=l,t.end=c,t.length=t.end-t.start,t.text=i.substr(t.start,t.length)}return t}(e):t:t},h=function(e,t,n){t=c(e,t),n=c(e,n),a?function(e,t,n){e.setSelectionRange(t,n)}(e,t,n):i&&function(e,t,n){var a=e.createTextRange();a.moveEnd("textedit",-1),a.moveStart("character",t),a.moveEnd("character",n-t),a.select()}(e,t,n)},g=function(t,n){var a=e(t),i=a.val(),r=m(t),o=+(r.start+n.length+(i.length-r.end)),s=+a.attr("maxlength");if(a.is("[maxlength]")&&o>s){var l=n.length-(o-s);n=n.substr(0,l)}var c=i.substr(0,r.start),p=i.substr(r.end);a.val(c+n+p);var u=r.start,d=u+n.length;h(t,r.length?u:d,d)},v=function(t){var n=e(t);return n.is("input, textarea")||t.select?void n.select():void(a?function(e){var t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}(t):i&&function(e){var t=document.body.createTextRange();t.moveToElementText(e),t.select()}(t))};e.extend(e.fn,{caret:function(){var e=this.filter("input, textarea");if(0===arguments.length){var t=e.get(0);return u(t)}if("number"==typeof arguments[0]){var n=arguments[0];e.each((function(e,t){d(t,n)}))}else{var a=arguments[0];e.each((function(e,t){f(t,a)}))}return this},range:function(){var e=this.filter("input, textarea");if(0===arguments.length){var t=e.get(0);return m(t)}if("number"==typeof arguments[0]){var n=arguments[0],a=arguments[1];e.each((function(e,t){h(t,n,a)}))}else{var i=arguments[0];e.each((function(e,t){g(t,i)}))}return this},selectAll:function(){return this.each((function(e,t){v(t)}))}}),e.extend(e,{deselectAll:function(){return document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges(),this}})}(window.jQuery||window.Zepto||window.$)},198:()=>{var e;$((function(){var e=$("html").attr("lang");translate=window["translate_"+e],prettyPrint(),bootbox.setDefaults({locale:"ru"}),toastr.options={toastClass:"toastr",progressBar:!0,positionClass:"toast-top-full-width"},$(".markItUp").markItUp(mySettings).on("input",(function(){var e=$(this).attr("maxlength"),t=$(this).val().replace(/(\r\n|\n|\r)/g,"\r\n").length,n=$(".js-textarea-counter");t>e?n.addClass("text-danger"):n.removeClass("text-danger"),n.text(translate.characters_left+": "+(e-t)),0===t&&n.empty()})),$(".markItUpHtml").markItUp(myHtmlSettings),$('[data-bs-toggle="tooltip"]').tooltip(),$('[data-bs-toggle="popover"]').popover(),$("body").on("click",(function(e){"popover"!==$(e.target).data("bs-toggle")&&0===$(e.target).parents(".popover.in").length&&$('[data-bs-toggle="popover"]').popover("hide")})),$(".spoiler-title").on("click",(function(){var e=$(this).parent();e.toggleClass("spoiler-open"),e.find(".spoiler-text:first").slideToggle()})),$(".news-title").on("click",(function(){$(this).toggleClass("fa-rotate-180"),$(this).nextAll(".news-text:first").slideToggle()})),$("a.gallery").colorbox({maxWidth:"100%",maxHeight:"100%",onComplete:function(){$(this).colorbox.resize()}}).colorbox({rel:function(){return $(this).data("group")},current:translate.photo_count}),$(window).resize((function(){$.colorbox.resize()})),$(".colorpicker").on("input",(function(){$(".colorpicker-addon").val(this.value)})),$(".colorpicker-addon").on("input",(function(){$(".colorpicker").val(this.value)})),$(".carousel").carousel({interval:!1}),$(".phone").mask("0 000 000-00-00-00"),$(".birthday").mask("00.00.0000"),$(window).scroll((function(){$(this).scrollTop()>200?$(".scrollup").fadeIn():$(".scrollup").fadeOut()})),$(".scrollup").click((function(){return $("html, body").animate({scrollTop:0},100),!1})),$(".js-messages-block").on("show.bs.dropdown",(function(){getNewMessages()}))})),notification=function(e,t,n,a){return toastr[e](n,t,a)},showAttachForm=function(){return $(".js-attach-button").hide(),$(".js-attach-form").slideDown(),!1},postJump=function(){$("html, body").animate({scrollTop:$(".section-form").offset().top},100)},postReply=function(e){postJump();var t=$(".markItUpEditor"),n=$(e).closest(".section").find(".section-author").data("login"),a=t.val().slice(t.val().length-1),i=-1!==$.inArray(a,["","\n"])?"":"\n";return t.focus().val(t.val()+i+n+", "),!1},postQuote=function(e){postJump();var t=$(".markItUpEditor"),n=$(e).closest(".section"),a=n.find(".section-author").data("login"),i=n.find(".section-date").text(),r=n.find(".section-message").clone(),o=$.trim(r.find("blockquote").remove().end().text()),s=t.val().slice(t.val().length-1),l=-1!==$.inArray(s,["","\n"])?"":"\n";return o?(t.focus().val(t.val()+l+"[quote="+a+" "+i+"]"+o+"[/quote]\n"),!1):(t.focus().val(t.val()+l+a+", "),!1)},logout=function(e){return bootbox.confirm(translate.confirm_logout,(function(t){t&&(window.location=$(e).attr("href"))})),!1},sendComplaint=function(e){return bootbox.confirm(translate.confirm_complain_submit,(function(t){t&&$.ajax({data:{id:$(e).data("id"),type:$(e).data("type"),page:$(e).data("page"),_token:$(e).data("token")},dataType:"json",type:"post",url:"/ajax/complaint",success:function(t){if($(e).replaceWith('<i class="fa fa-bell-slash text-muted"></i>'),!t.success)return notification("error",t.message),!1;t.success&¬ification("success",translate.complain_submitted)}})})),!1},bookmark=function(e){return $.ajax({data:{tid:$(e).data("tid"),_token:$(e).data("token")},dataType:"json",type:"post",url:"/forums/bookmarks/perform",success:function(t){if(!t.success)return notification("error",t.message),!1;t.success&&("added"===t.type&&(notification("success",t.message),$(e).text($(e).data("from"))),"deleted"===t.type&&(notification("success",t.message),$(e).text($(e).data("to"))))}}),!1},deletePost=function(e){return bootbox.confirm(translate.confirm_message_delete,(function(t){t&&$.ajax({data:{_token:$(e).data("token")},dataType:"json",type:"delete",url:$(e).attr("href"),success:function(t){t.success?(notification("success",t.message),$(e).closest(".section").hide("slow")):notification("error",t.message)}})})),!1},deleteComment=function(e){return bootbox.confirm(translate.confirm_message_delete,(function(t){t&&$.ajax({data:{id:$(e).data("id"),rid:$(e).data("rid"),type:$(e).data("type"),_token:$(e).data("token")},dataType:"json",type:"post",url:"/ajax/delcomment",success:function(t){if(!t.success)return notification("error",t.message),!1;notification("success",translate.message_deleted),$(e).closest(".section").hide("slow")}})})),!1},changeRating=function(e){return $.ajax({data:{id:$(e).data("id"),type:$(e).data("type"),vote:$(e).data("vote"),_token:$(e).data("token")},dataType:"json",type:"post",url:"/ajax/rating",success:function(t){if(!t.success)return t.message&¬ification("error",t.message),!1;var n=$(e).closest(".js-rating").find("b");$(e).closest(".js-rating").find("a").removeClass("active"),t.cancel||$(e).addClass("active"),n.html($(t.rating))}}),!1},deleteRating=function(e){return bootbox.confirm(translate.confirm_message_delete,(function(t){t&&$.ajax({data:{id:$(e).data("id"),_token:$(e).data("token")},dataType:"json",type:"post",url:"/ratings/delete",success:function(t){if(!t.success)return notification("error",t.message),!1;notification("success",translate.record_deleted),$(e).closest(".section").hide("slow")}})})),!1},deleteSpam=function(e){return $.ajax({data:{id:$(e).data("id"),_token:$(e).data("token")},dataType:"json",type:"post",url:"/admin/spam/delete",success:function(t){if(!t.success)return notification("error",t.message),!1;notification("success",translate.record_deleted),$(e).closest(".section").hide("slow")}}),!1},deleteWall=function(e){return bootbox.confirm(translate.confirm_message_delete,(function(t){t&&$.ajax({data:{id:$(e).data("id"),login:$(e).data("login"),_token:$(e).data("token")},dataType:"json",type:"post",url:"/walls/"+$(e).data("login")+"/delete",success:function(t){if(!t.success)return notification("error",t.message),!1;notification("success",translate.record_deleted),$(e).closest(".section").hide("slow")}})})),!1},showVoteForm=function(){return $(".js-vote-form").toggle(),!1},copyToClipboard=function(e){var t=$(e).closest(".input-group");return t.find("input").select(),t.find(".input-group-text").attr("data-bs-original-title",translate.copied).tooltip("update").tooltip("show"),document.execCommand("copy"),!1},submitFile=function(e){var t=new FormData;return t.append("file",e.files[0]),t.append("id",$(e).data("id")),t.append("type",$(e).data("type")),t.append("_token",$(e).data("token")),$.ajax({data:t,type:"post",contentType:!1,processData:!1,dataType:"json",url:"/ajax/file/upload",beforeSend:function(){$(".js-files").append('<i class="fas fa-spinner fa-spin fa-3x mx-3"></i>')},complete:function(){$(".fa-spinner").remove()},success:function(e){if(!e.success)return notification("error",e.message),!1;if(e.success){var t;if("image"===e.type)(t=$(".js-image-template").clone()).find("img").attr({src:e.path,"data-source":e.source});else(t=$(".js-file-template").clone()).find(".js-file-link").attr({href:e.path}).text(e.name),t.find(".js-file-size").text(e.size);t.find(".js-file-delete").attr("data-id",e.id),$(".js-files").append(t.html())}}}),!1},submitImage=function(e,t){var n=new FormData;return n.append("file",e.files[0]),n.append("id",$(e).data("id")),n.append("type",$(e).data("type")),n.append("_token",$(e).data("token")),$.ajax({data:n,type:"post",contentType:!1,processData:!1,dataType:"json",url:"/ajax/file/upload",beforeSend:function(){$(".js-files").append('<i class="fas fa-spinner fa-spin fa-3x mx-3"></i>')},complete:function(){$(".fa-spinner").remove()},success:function(e){if(!e.success)return notification("error",e.message),!1;if(e.success){var n=$(".js-image-template").clone();n.find("img").attr({src:e.path,"data-source":e.source}),n.find("a").attr("data-id",e.id),$(".js-files").append(n.html()),t&&pasteImage(n)}}}),!1},pasteImage=function(e){var t=$(".markItUpEditor"),n="[img]"+$(e).find("img").data("source")+"[/img]";t.focus().caret(n)},cutImage=function(e){var t=$(".markItUpEditor"),n=t.val(),a="[img]"+e+"[/img]";t.val(n.replace(a,""))},deleteFile=function(e){return $.ajax({data:{id:$(e).data("id"),type:$(e).data("type"),_token:$(e).data("token")},dataType:"json",type:"post",url:"/ajax/file/delete",success:function(t){if(!t.success)return notification("error",t.message),!1;t.success&&(cutImage(t.path),$(e).closest(".js-file").hide("fast"))}}),!1},resendingCode=function(){return $(".js-resending-link").hide(),$(".js-resending-form").show(),!1},showQueries=function(){$(".js-queries").slideToggle()},getNewMessages=function(){var e=$(".js-messages-block .app-nav__item"),t=e.find(".badge"),n=$(".app-notification__title span");return $.ajax({dataType:"json",type:"get",url:"/messages/new",beforeSend:function(){$(".js-messages").append('<li class="js-message-spin text-center"><i class="fas fa-spinner fa-spin fa-2x my-2"></i></li>')},complete:function(){$(".js-message-spin").remove()},success:function(a){if(!a.success)return t.length>0&&(n.html(0),t.remove()),!1;t.length>0?t.html(a.countMessages):e.append('<span class="badge bg-notify">'+a.countMessages+"</span>"),n.html(a.countMessages),$(".js-messages-block").find(".js-messages").empty().append(a.dialogues)}}),!1},checkLogin=function(t){var n=$(t).closest(".mb-3"),a=n.find(".invalid-feedback");return $(t).val().length<3?(n.removeClass("is-valid is-invalid"),a.empty(),!1):(clearTimeout(e),e=setTimeout((function(){$.ajax({data:{login:$(t).val()},dataType:"json",type:"post",url:"/check-login",success:function(e){e.success?(n.removeClass("is-invalid").addClass("is-valid"),a.empty()):(n.removeClass("is-valid").addClass("is-invalid"),a.text(e.message))}})}),1e3),!1)}},138:()=>{var e=$("html").attr("lang"),t=window["translate_"+e];mySettings={previewParserPath:"/ajax/bbcode",previewAutoRefresh:!1,onTab:{keepDefault:!1,openWith:" "},markupSet:[{title:t.editor.bold,name:'<i class="fa fa-bold"></i>',className:"bb-bold",key:"B",openWith:"[b]",closeWith:"[/b]"},{title:t.editor.italic,name:'<i class="fa fa-italic"></i>',className:"bb-italic",key:"I",openWith:"[i]",closeWith:"[/i]"},{title:t.editor.underline,name:'<i class="fa fa-underline"></i>',className:"bb-underline",key:"U",openWith:"[u]",closeWith:"[/u]"},{title:t.editor.strike,name:'<i class="fa fa-strikethrough"></i>',className:"bb-strike",key:"S",openWith:"[s]",closeWith:"[/s]"},{separator:"---------------"},{title:t.editor.link,name:'<i class="fa fa-link"></i>',className:"bb-link",key:"L",openWith:"[url=[!["+t.editor.link+":!:http://]!]]",closeWith:"[/url]",placeHolder:t.editor.link_text},{title:t.editor.image,name:'<i class="fa fa-image"></i>',className:"bb-image",openWith:"[img][!["+t.editor.image_text+":!:http://]!]",closeWith:"[/img]"},{title:t.editor.video,name:'<i class="fab fa-youtube"></i>',className:"bb-youtube",openWith:"[youtube][!["+t.editor.video_link+"]!]",closeWith:"[/youtube]"},{title:t.editor.color,name:'<i class="fa fa-th"></i>',className:"bb-color",openWith:"[color=[!["+t.editor.color_code+"]!]]",closeWith:"[/color]",dropMenu:[{name:"Yellow",openWith:"[color=#ffd700]",closeWith:"[/color]",className:"col1-1"},{name:"Orange",openWith:"[color=#ffa500]",closeWith:"[/color]",className:"col1-2"},{name:"Red",openWith:"[color=#ff0000]",closeWith:"[/color]",className:"col1-3"},{name:"Blue",openWith:"[color=#0000ff]",closeWith:"[/color]",className:"col2-1"},{name:"Purple",openWith:"[color=#800080]",closeWith:"[/color]",className:"col2-2"},{name:"Green",openWith:"[color=#00cc00]",closeWith:"[/color]",className:"col2-3"},{name:"Magenta",openWith:"[color=#ff00ff]",closeWith:"[/color]",className:"col3-1"},{name:"Gray",openWith:"[color=#808080]",closeWith:"[/color]",className:"col3-2"},{name:"Cyan",openWith:"[color=#00ffff]",closeWith:"[/color]",className:"col3-3"}]},{separator:"---------------"},{title:t.editor.font_size,name:'<i class="fa fa-font"></i>',className:"bb-size",openWith:"[size=[!["+t.editor.font_text+"]!]]",closeWith:"[/size]",dropMenu:[{name:"x-small",openWith:"[size=1]",closeWith:"[/size]"},{name:"small",openWith:"[size=2]",closeWith:"[/size]"},{name:"medium",openWith:"[size=3]",closeWith:"[/size]"},{name:"large",openWith:"[size=4]",closeWith:"[/size]"},{name:"x-large",openWith:"[size=5]",closeWith:"[/size]"}]},{title:t.editor.center,name:'<i class="fa fa-align-center"></i>',className:"bb-center",openWith:"[center]",closeWith:"[/center]"},{title:t.editor.spoiler,name:'<i class="fa fa-plus-square"></i>',className:"bb-spoiler",openWith:"[spoiler=[!["+t.editor.spoiler_title+"]!]]",closeWith:"[/spoiler]",placeHolder:t.editor.spoiler_text},{title:t.editor.sticker,name:'<i class="fa fa-smile"></i>',className:"bb-sticker",beforeInsert:function(){var e=$("#stickersModal");if(e.length)return e.modal("show"),!1;$.ajax({dataType:"json",type:"get",url:"/ajax/getstickers",success:function(e){e.success&&$("body").append(e.stickers),$("#stickersModal").modal("show")}})}},{separator:"---------------"},{title:t.editor.hide,name:'<i class="fa fa-eye-slash"></i>',className:"bb-hide",openWith:"[hide]",closeWith:"[/hide]"},{title:t.editor.quote,name:'<i class="fa fa-quote-right"></i>',className:"bb-quote",openWith:"[quote]",closeWith:"[/quote]"},{title:t.editor.code,name:'<i class="fa fa-code"></i>',className:"bb-code",openWith:"[code]",closeWith:"[/code]"},{separator:"---------------"},{title:t.editor.unorderedlist,name:'<i class="fa fa-list-ul"></i>',className:"bb-unorderedlist",multiline:!0,openBlockWith:"[list]\n",closeBlockWith:"\n[/list]",placeHolder:t.editor.list_text},{title:t.editor.orderedlist,name:'<i class="fa fa-list-ol"></i>',className:"bb-orderedlist",multiline:!0,openBlockWith:"[list=1]\n",closeBlockWith:"\n[/list]",placeHolder:t.editor.list_text},{separator:"---------------"},{title:t.editor.clean,name:'<i class="fa fa-eraser"></i>',className:"bb-clean",replaceWith:function(e){return e.selection.replace(/\[(.*?)\]/g,"")}},{title:t.editor.cutpage,name:'<i class="fa fa-cut"></i>',className:"bb-cutpage",openWith:"[cut]"},{title:t.editor.preview,name:'<i class="fa fa-check-square"></i>',classname:"bb-preview",call:"preview"}]},myHtmlSettings={onCtrlEnter:{keepDefault:!1,replaceWith:"<br />\r"},onTab:{keepDefault:!1,openWith:" "},markupSet:[{title:"Div",name:'<i class="fa fa-list-alt"></i>',className:"bb-div",openWith:'<div(!( class="[![Class]!]")!)>',closeWith:"</div>\n"},{title:"Span",name:'<i class="fa fa-columns"></i>',className:"bb-span",openWith:'<span(!( class="[![Class]!]")!)>',closeWith:"</span>\n"},{title:"Paragraph",name:'<i class="fa fa-paragraph"></i>',className:"bb-paragraph",openWith:'<p(!( class="[![Class]!]")!)>',closeWith:"</p>\n"},{title:"Paragraph",name:'<i class="fa fa-table"></i>',className:"bb-table",openWith:'<table(!( class="[![Class]!]")!)>\n\t<tr>\n\t\t<td>',closeWith:"</td>\n\t</tr>\n</table>"},{separator:"---------------"},{title:"Heading 1",name:'<i class="fa fa-heading"></i>1',className:"bb-heading1",key:"1",openWith:'<h1(!( class="[![Class]!]")!)>',closeWith:"</h1>",placeHolder:t.editor.enter_title},{title:"Heading 2",name:'<i class="fa fa-heading"></i>2',className:"bb-heading2",key:"2",openWith:'<h2(!( class="[![Class]!]")!)>',closeWith:"</h2>",placeHolder:t.editor.enter_title},{title:"Heading 3",name:'<i class="fa fa-heading"></i>3',className:"bb-heading3",key:"3",openWith:'<h3(!( class="[![Class]!]")!)>',closeWith:"</h3>",placeHolder:t.editor.enter_title},{separator:"---------------"},{title:t.editor.bold,name:'<i class="fa fa-bold"></i>',className:"bb-bold",key:"B",openWith:"(!(<strong>|!|<b>)!)",closeWith:"(!(</strong>|!|</b>)!)"},{title:t.editor.italic,name:'<i class="fa fa-italic"></i>',className:"bb-italic",key:"I",openWith:"(!(<em>|!|<i>)!)",closeWith:"(!(</em>|!|</i>)!)"},{title:t.editor.underline,name:'<i class="fa fa-underline"></i>',className:"bb-underline",key:"U",openWith:"<u>",closeWith:"</u>"},{title:t.editor.strike,name:'<i class="fa fa-strikethrough"></i>',className:"bb-strike",key:"S",openWith:"<del>",closeWith:"</del>"},{separator:"---------------"},{title:"Ul",name:'<i class="fa fa-list-ul"></i>',className:"bb-ul",openWith:"<ul>\n",closeWith:"</ul>\n"},{title:"Ol",name:'<i class="fa fa-list-ol"></i>',className:"bb-ol",openWith:"<ol>\n",closeWith:"</ol>\n"},{title:"Li",name:'<i class="fa fa-minus"></i>',className:"bb-li",openWith:"<li>",closeWith:"</li>"},{separator:"---------------"},{title:t.editor.image,name:'<i class="fa fa-image"></i>',className:"bb-picture",key:"P",replaceWith:'<img src="[!['+t.editor.image_text+':!:http://]!]" alt="[!['+t.editor.alt+']!]" />'},{title:t.editor.link,name:'<i class="fa fa-link"></i>',className:"bb-link",key:"L",openWith:'<a href="[!['+t.editor.link+':!:http://]!]"(!( title="[![Title]!]")!)>',closeWith:"</a>",placeHolder:t.editor.link_text},{separator:"---------------"},{title:t.editor.clean,name:'<i class="fa fa-eraser"></i>',classname:"bb-clean",replaceWith:function(e){return e.selection.replace(/<(.*?)>/g,"")}}]}},408:()=>{!function($){$.fn.markItUp=function(settings,extraSettings){var method,params,options,ctrlKey,shiftKey,altKey;ctrlKey=shiftKey=altKey=!1,"string"==typeof settings&&(method=settings,params=extraSettings),options={id:"",nameSpace:"",root:"",previewHandler:!1,previewInWindow:"",previewInElement:"",previewAutoRefresh:!0,previewPosition:"after",previewTemplatePath:"~/templates/preview.html",previewParser:!1,previewParserPath:"",previewParserVar:"data",previewParserAjaxType:"POST",resizeHandle:!0,beforeInsert:"",afterInsert:"",onEnter:{},onShiftEnter:{},onCtrlEnter:{},onTab:{},markupSet:[{}]},$.extend(options,settings,extraSettings),options.root||$("script").each((function(e,t){var n=$(t).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/);null!==n&&(options.root=n[1])}));var uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},matched=uaMatch(navigator.userAgent),browser={};return matched.browser&&(browser[matched.browser]=!0,browser.version=matched.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0),this.each((function(){var $$,textarea,levels,scrollPosition,caretPosition,caretOffset,clicked,hash,header,footer,previewWindow,template,iFrame,abort;if($$=$(this),textarea=this,levels=[],abort=!1,scrollPosition=caretPosition=0,caretOffset=-1,options.previewParserPath=localize(options.previewParserPath),options.previewTemplatePath=localize(options.previewTemplatePath),method)switch(method){case"remove":remove();break;case"insert":markup(params);break;default:$.error("Method "+method+" does not exist on jQuery.markItUp")}else init();function localize(e,t){return t?e.replace(/("|')~\//g,"$1"+options.root):e.replace(/^~\//,options.root)}function init(){id="",nameSpace="",options.id?id='id="'+options.id+'"':$$.attr("id")&&(id='id="markItUp'+$$.attr("id").substr(0,1).toUpperCase()+$$.attr("id").substr(1)+'"'),options.nameSpace&&(nameSpace='class="'+options.nameSpace+'"'),$$.wrap("<div "+nameSpace+"></div>"),$$.wrap("<div "+id+' class="markItUp"></div>'),$$.wrap('<div class="markItUpContainer"></div>'),$$.addClass("markItUpEditor"),header=$('<div class="markItUpHeader"></div>').insertBefore($$),$(dropMenus(options.markupSet)).appendTo(header),footer=$('<div class="markItUpFooter"></div>').insertAfter($$),!0===options.resizeHandle&&!0!==browser.safari&&(resizeHandle=$('<div class="markItUpResizeHandle"></div>').insertAfter($$).bind("mousedown.markItUp",(function(e){var t,n,a=$$.height(),i=e.clientY;t=function(e){return $$.css("height",Math.max(20,e.clientY+a-i)+"px"),!1},n=function(e){return $("html").unbind("mousemove.markItUp",t).unbind("mouseup.markItUp",n),!1},$("html").bind("mousemove.markItUp",t).bind("mouseup.markItUp",n)})),footer.append(resizeHandle)),$$.bind("keydown.markItUp",keyPressed).bind("keyup",keyPressed),$$.bind("insertion.markItUp",(function(e,t){!1!==t.target&&get(),textarea===$.markItUp.focused&&markup(t)})),$$.bind("focus.markItUp",(function(){$.markItUp.focused=this})),options.previewInElement&&refreshPreview()}function dropMenus(markupSet){var ul=$("<ul></ul>"),i=0;return $("li:hover > ul",ul).css("display","block"),$.each(markupSet,(function(){var button=this,t="",title,li,j;if(title=button.title?button.key?(button.title||"")+" [Ctrl+"+button.key+"]":button.title||"":button.key?(button.name||"")+" [Ctrl+"+button.key+"]":button.name||"",key=button.key?'accesskey="'+button.key+'"':"",button.separator)li=$('<li class="markItUpSeparator">'+(button.separator||"")+"</li>").appendTo(ul);else{for(i++,j=levels.length-1;0<=j;j--)t+=levels[j]+"-";li=$('<li class="markItUpButton markItUpButton'+t+i+" "+(button.className||"")+'"><a href="#" '+key+' title="'+title+'">'+(button.name||"")+"</a></li>").bind("contextmenu.markItUp",(function(){return!1})).bind("click.markItUp",(function(e){e.preventDefault()})).bind("focusin.markItUp",(function(){$$.focus()})).bind("mouseup",(function(e){return button.call&&eval(button.call)(e),setTimeout((function(){markup(button)}),1),!1})).bind("mouseenter.markItUp",(function(){$("> ul",this).show(),$(document).one("click",(function(){$("ul ul",header).hide()}))})).bind("mouseleave.markItUp",(function(){$("> ul",this).hide()})).appendTo(ul),button.dropMenu&&(levels.push(i),$(li).addClass("markItUpDropMenu").append(dropMenus(button.dropMenu)))}})),levels.pop(),ul}function magicMarkups(e){return e?e=(e=(e=e.toString()).replace(/\(\!\(([\s\S]*?)\)\!\)/g,(function(e,t){var n=t.split("|!|");return!0===altKey?void 0!==n[1]?n[1]:n[0]:void 0===n[1]?"":n[0]}))).replace(/\[\!\[([\s\S]*?)\]\!\]/g,(function(e,t){var n=t.split(":!:");return!0!==abort&&(value=prompt(n[0],n[1]?n[1]:""),null===value&&(abort=!0),value)})):""}function prepare(e){return $.isFunction(e)&&(e=e(hash)),magicMarkups(e)}function build(e){var t=prepare(clicked.openWith),n=prepare(clicked.placeHolder),a=prepare(clicked.replaceWith),i=prepare(clicked.closeWith),r=prepare(clicked.openBlockWith),o=prepare(clicked.closeBlockWith),s=clicked.multiline;if(""!==a)block=t+a+i;else if(""===selection&&""!==n)block=t+n+i;else{var l=[e=e||selection],c=[];!0===s&&(l=e.split(/\r?\n/));for(var p=0;p<l.length;p++){var u;line=l[p],(u=line.match(/ *$/))?c.push(t+line.replace(/ *$/g,"")+i+u):c.push(t+line+i)}block=c.join("\n")}return block=r+block+o,{block,openBlockWith:r,openWith:t,replaceWith:a,placeHolder:n,closeWith:i,closeBlockWith:o}}function markup(e){var t,n,a,i;if(hash=clicked=e,get(),$.extend(hash,{line:"",root:options.root,textarea,selection:selection||"",caretPosition,ctrlKey,shiftKey,altKey}),prepare(options.beforeInsert),prepare(clicked.beforeInsert),(!0===ctrlKey&&!0===shiftKey||!0===e.multiline)&&prepare(clicked.beforeMultiInsert),$.extend(hash,{line:1}),!0===ctrlKey&&!0===shiftKey){for(lines=selection.split(/\r?\n/),n=0,a=lines.length,i=0;i<a;i++)""!==$.trim(lines[i])?($.extend(hash,{line:++n,selection:lines[i]}),lines[i]=build(lines[i]).block):lines[i]="";string={block:lines.join("\n")},start=caretPosition,t=string.block.length+(browser.opera?a-1:0)}else!0===ctrlKey?(string=build(selection),start=caretPosition+string.openWith.length,t=string.block.length-string.openWith.length-string.closeWith.length,t-=string.block.match(/ $/)?1:0,t-=fixIeBug(string.block)):!0===shiftKey?(string=build(selection),start=caretPosition,t=string.block.length,t-=fixIeBug(string.block)):(string=build(selection),start=caretPosition+string.block.length,t=0,start-=fixIeBug(string.block));""===selection&&""===string.replaceWith&&(caretOffset+=fixOperaBug(string.block),start=caretPosition+string.openBlockWith.length+string.openWith.length,t=string.block.length-string.openBlockWith.length-string.openWith.length-string.closeWith.length-string.closeBlockWith.length,caretOffset=$$.val().substring(caretPosition,$$.val().length).length,caretOffset-=fixOperaBug($$.val().substring(0,caretPosition))),$.extend(hash,{caretPosition,scrollPosition}),string.block!==selection&&!1===abort?(insert(string.block),set(start,t)):caretOffset=-1,get(),$.extend(hash,{line:"",selection}),(!0===ctrlKey&&!0===shiftKey||!0===e.multiline)&&prepare(clicked.afterMultiInsert),prepare(clicked.afterInsert),prepare(options.afterInsert),previewWindow&&options.previewAutoRefresh&&refreshPreview(),textarea.dispatchEvent(new Event("input")),shiftKey=altKey=ctrlKey=abort=!1}function fixOperaBug(e){return browser.opera?e.length-e.replace(/\n*/g,"").length:0}function fixIeBug(e){return browser.msie?e.length-e.replace(/\r*/g,"").length:0}function insert(e){document.selection?document.selection.createRange().text=e:textarea.value=textarea.value.substring(0,caretPosition)+e+textarea.value.substring(caretPosition+selection.length,textarea.value.length)}function set(e,t){if(textarea.createTextRange){if(browser.opera&&9.5<=browser.version&&0==t)return!1;range=textarea.createTextRange(),range.collapse(!0),range.moveStart("character",e),range.moveEnd("character",t),range.select()}else textarea.setSelectionRange&&textarea.setSelectionRange(e,e+t);textarea.scrollTop=scrollPosition,textarea.focus()}function get(){if(textarea.focus(),scrollPosition=textarea.scrollTop,document.selection)if(selection=document.selection.createRange().text,browser.msie){var e=document.selection.createRange(),t=e.duplicate();for(t.moveToElementText(textarea),caretPosition=-1;t.inRange(e);)t.moveStart("character"),caretPosition++}else caretPosition=textarea.selectionStart;else caretPosition=textarea.selectionStart,selection=textarea.value.substring(caretPosition,textarea.selectionEnd);return selection}function preview(){"function"==typeof options.previewHandler?previewWindow=!0:options.previewInElement?previewWindow=$(options.previewInElement):!previewWindow||previewWindow.closed?options.previewInWindow?(previewWindow=window.open("","preview",options.previewInWindow),$(window).unload((function(){previewWindow.close()}))):(iFrame=$('<iframe class="markItUpPreviewFrame"></iframe>'),"after"==options.previewPosition?iFrame.insertAfter(footer):iFrame.insertBefore(header),previewWindow=iFrame[iFrame.length-1].contentWindow||frame[iFrame.length-1]):!0===altKey&&(iFrame?iFrame.remove():previewWindow.close(),previewWindow=iFrame=!1),options.previewAutoRefresh||refreshPreview(),options.previewInWindow&&previewWindow.focus()}function refreshPreview(){renderPreview()}function renderPreview(){var e=$$.val();return options.previewParser&&"function"==typeof options.previewParser&&(e=options.previewParser(e)),options.previewHandler&&"function"==typeof options.previewHandler?options.previewHandler(e):""!==options.previewParserPath?$.ajax({type:options.previewParserAjaxType,dataType:"text",global:!1,url:options.previewParserPath,data:options.previewParserVar+"="+encodeURIComponent(e),success:function(e){writeInPreview(localize(e,1))}}):template||$.ajax({url:options.previewTemplatePath,dataType:"text",global:!1,success:function(t){writeInPreview(localize(t,1).replace(/<!-- content -->/g,e))}}),!1}function writeInPreview(e){if(options.previewInElement)$(options.previewInElement).html(e);else if(previewWindow&&previewWindow.document){try{sp=previewWindow.document.documentElement.scrollTop}catch(e){sp=0}previewWindow.document.open(),previewWindow.document.write(e),previewWindow.document.close(),previewWindow.document.documentElement.scrollTop=sp}}function keyPressed(e){if(shiftKey=e.shiftKey,altKey=e.altKey,ctrlKey=(!e.altKey||!e.ctrlKey)&&(e.ctrlKey||e.metaKey),"keydown"===e.type){if(!0===ctrlKey&&(li=$('a[accesskey="'+(13==e.keyCode?"\\n":String.fromCharCode(e.keyCode))+'"]',header).parent("li"),0!==li.length))return ctrlKey=!1,setTimeout((function(){li.triggerHandler("mouseup")}),1),!1;if(13===e.keyCode||10===e.keyCode)return!0===ctrlKey?(ctrlKey=!1,markup(options.onCtrlEnter),options.onCtrlEnter.keepDefault):!0===shiftKey?(shiftKey=!1,markup(options.onShiftEnter),options.onShiftEnter.keepDefault):(markup(options.onEnter),options.onEnter.keepDefault);if(9===e.keyCode)return 1!=shiftKey&&1!=ctrlKey&&1!=altKey&&(-1!==caretOffset?(get(),set(caretOffset=$$.val().length-caretOffset,0),!(caretOffset=-1)):(markup(options.onTab),options.onTab.keepDefault))}}function remove(){$$.unbind(".markItUp").removeClass("markItUpEditor"),$$.parent("div").parent("div.markItUp").parent("div").replaceWith($$);var e=$$.parent("div").parent("div.markItUp").parent("div");e.length&&e.replaceWith($$),$$.data("markItUp",null)}}))},$.fn.markItUpRemove=function(){return this.each((function(){$(this).markItUp("remove")}))},$.markItUp=function(e){var t={target:!1};if($.extend(t,e),t.target)return $(t.target).each((function(){$(this).focus(),$(this).trigger("insertion",[t])}));$("textarea").trigger("insertion",[t])}}(jQuery)},548:(e,t)=>{var n,a;a=null,window.PR_SHOULD_USE_CONTINUATION=!0,function(){function i(e,t,n,a){t&&(n(e={a:t,e}),a.push.apply(a,e.g))}function r(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var a=n.nodeType;t=1===a?t?e:n:3===a&&k.test(n.nodeValue)?e:t}return t===e?void 0:t}function o(e,t){var n,r={};!function(){for(var i=e.concat(t),o=[],s={},l=0,c=i.length;l<c;++l){var p=i[l],u=p[3];if(u)for(var d=u.length;--d>=0;)r[u.charAt(d)]=p;u=""+(p=p[1]),s.hasOwnProperty(u)||(o.push(p),s[u]=a)}o.push(/[\S\s]/),n=function(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return(t=u[n])?t:"0"<=n&&n<="7"?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){return e<32?(e<16?"\\x0":"\\x")+e.toString(16):"\\"===(e=String.fromCharCode(e))||"-"===e||"]"===e||"^"===e?"\\"+e:e}function a(e){var a=e.substring(1,e.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),i=(e=[],["["]);(r="^"===a[0])&&i.push("^");for(var r=r?1:0,o=a.length;r<o;++r){var s,l=a[r];/\\[bdsw]/i.test(l)?i.push(l):(l=t(l),r+2<o&&"-"===a[r+1]?(s=t(a[r+2]),r+=2):s=l,e.push([l,s]),s<65||l>122||(s<65||l>90||e.push([32|Math.max(65,l),32|Math.min(s,90)]),s<97||l>122||e.push([-33&Math.max(97,l),-33&Math.min(s,122)])))}for(e.sort((function(e,t){return e[0]-t[0]||t[1]-e[1]})),a=[],o=[],r=0;r<e.length;++r)(l=e[r])[0]<=o[1]+1?o[1]=Math.max(o[1],l[1]):a.push(o=l);for(r=0;r<a.length;++r)l=a[r],i.push(n(l[0])),l[1]>l[0]&&(l[1]+1>l[0]&&i.push("-"),i.push(n(l[1])));return i.push("]"),i.join("")}function i(e){for(var t=e.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),i=t.length,s=[],l=0,c=0;l<i;++l){var p=t[l];"("===p?++c:"\\"===p.charAt(0)&&(p=+p.substring(1))&&(p<=c?s[p]=-1:t[l]=n(p))}for(l=1;l<s.length;++l)-1===s[l]&&(s[l]=++r);for(c=l=0;l<i;++l)"("===(p=t[l])?s[++c]||(t[l]="(?:"):"\\"===p.charAt(0)&&(p=+p.substring(1))&&p<=c&&(t[l]="\\"+s[p]);for(l=0;l<i;++l)"^"===t[l]&&"^"!==t[l+1]&&(t[l]="");if(e.ignoreCase&&o)for(l=0;l<i;++l)e=(p=t[l]).charAt(0),p.length>=2&&"["===e?t[l]=a(p):"\\"!==e&&(t[l]=p.replace(/[A-Za-z]/g,(function(e){return e=e.charCodeAt(0),"["+String.fromCharCode(-33&e,32|e)+"]"})));return t.join("")}for(var r=0,o=!1,s=!1,l=0,c=e.length;l<c;++l){var p=e[l];if(p.ignoreCase)s=!0;else if(/[a-z]/i.test(p.source.replace(/\\u[\da-f]{4}|\\x[\da-f]{2}|\\[^UXux]/gi,""))){o=!0,s=!1;break}}var u={b:8,t:9,n:10,v:11,f:12,r:13},d=[];for(l=0,c=e.length;l<c;++l){if((p=e[l]).global||p.multiline)throw Error(""+p);d.push("(?:"+i(p)+")")}return RegExp(d.join("|"),s?"gi":"g")}(o)}();var o=t.length;return function e(a){for(var s=a.e,l=[s,"pln"],c=0,u=a.a.match(n)||[],d={},f=0,m=u.length;f<m;++f){var h,g=u[f],v=d[g],b=void 0;if("string"==typeof v)h=!1;else{var y=r[g.charAt(0)];if(y)b=g.match(y[1]),v=y[0];else{for(h=0;h<o;++h)if(y=t[h],b=g.match(y[1])){v=y[0];break}b||(v="pln")}!(h=v.length>=5&&"lang-"===v.substring(0,5))||b&&"string"==typeof b[1]||(h=!1,v="src"),h||(d[g]=v)}if(y=c,c+=g.length,h){h=b[1];var $=g.indexOf(h),w=$+h.length;b[2]&&($=(w=g.length-b[2].length)-h.length),v=v.substring(5),i(s+y,g.substring(0,$),e,l),i(s+y+$,h,p(v,h),l),i(s+y+w,g.substring(w),e,l)}else l.push(s+y,v)}a.g=l}}function s(e){var t=[],n=[];e.tripleQuotedStrings?t.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,a,"'\""]):e.multiLineStrings?t.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/,a,"'\"`"]):t.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,"\"'"]),e.verbatimStrings&&n.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,a]);var i=e.hashComments;if(i&&(e.cStyleComments?(i>1?t.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,a,"#"]):t.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"]),n.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,a])):t.push(["com",/^#[^\n\r]*/,a,"#"])),e.cStyleComments&&(n.push(["com",/^\/\/[^\n\r]*/,a]),n.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,a])),i=e.regexLiterals){var r=(i=i>1?"":"\n\r")?".":"[\\S\\s]";n.push(["lang-regex",RegExp("^(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*(/(?=[^/*"+i+"])(?:[^/\\x5B\\x5C"+i+"]|\\x5C"+r+"|\\x5B(?:[^\\x5C\\x5D"+i+"]|\\x5C"+r+")*(?:\\x5D|$))+/)")])}return(i=e.types)&&n.push(["typ",i]),(i=(""+e.keywords).replace(/^ | $/g,"")).length&&n.push(["kwd",RegExp("^(?:"+i.replace(/[\s,]+/g,"|")+")\\b"),a]),t.push(["pln",/^\s+/,a," \r\n\t "]),i="^.[^\\s\\w.$@'\"`/\\\\]*",e.regexLiterals&&(i+="(?!s*/)"),n.push(["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,a],["pln",/^[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pln",/^\\[\S\s]?/,a],["pun",RegExp(i),a]),o(t,n)}function l(e,t,n){function a(e){var t=e.nodeType;if(1!=t||r.test(e.className)){if((3==t||4==t)&&n){var l=e.nodeValue,c=l.match(o);c&&(t=l.substring(0,c.index),e.nodeValue=t,(l=l.substring(c.index+c[0].length))&&e.parentNode.insertBefore(s.createTextNode(l),e.nextSibling),i(e),t||e.parentNode.removeChild(e))}}else if("br"===e.nodeName)i(e),e.parentNode&&e.parentNode.removeChild(e);else for(e=e.firstChild;e;e=e.nextSibling)a(e)}function i(e){for(;!e.nextSibling;)if(!(e=e.parentNode))return;var t;for(e=function e(t,n){var a=n?t.cloneNode(!1):t;if(i=t.parentNode){var i=e(i,1),r=t.nextSibling;i.appendChild(a);for(var o=r;o;o=r)r=o.nextSibling,i.appendChild(o)}return a}(e.nextSibling,0);(t=e.parentNode)&&1===t.nodeType;)e=t;c.push(e)}for(var r=/(?:^|\s)nocode(?:\s|$)/,o=/\r\n?|\n/,s=e.ownerDocument,l=s.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var c=[l],p=0;p<c.length;++p)a(c[p]);t===(0|t)&&c[0].setAttribute("value",t);var u=s.createElement("ol");u.className="linenums",t=Math.max(0,t-1|0)||0,p=0;for(var d=c.length;p<d;++p)(l=c[p]).className="L"+(p+t)%10,l.firstChild||l.appendChild(s.createTextNode(" ")),u.appendChild(l);e.appendChild(u)}function c(e,t){for(var n=t.length;--n>=0;){var a=t[n];W.hasOwnProperty(a)?m.console&&console.warn("cannot override language handler %s",a):W[a]=e}}function p(e,t){return e&&W.hasOwnProperty(e)||(e=/^\s*</.test(t)?"default-markup":"default-code"),W[e]}function u(e){var t=e.h;try{var n=(l=function(e,t){var n=/(?:^|\s)nocode(?:\s|$)/,a=[],i=0,r=[],o=0;return function e(s){var l=s.nodeType;if(1==l){if(!n.test(s.className)){for(l=s.firstChild;l;l=l.nextSibling)e(l);"br"!==(l=s.nodeName.toLowerCase())&&"li"!==l||(a[o]="\n",r[o<<1]=i++,r[o++<<1|1]=s)}}else 3!=l&&4!=l||(l=s.nodeValue).length&&(l=t?l.replace(/\r\n?/g,"\n"):l.replace(/[\t\n\r ]+/g," "),a[o]=l,r[o<<1]=i,i+=l.length,r[o++<<1|1]=s)}(e),{a:a.join("").replace(/\n$/,""),d:r}}(e.c,e.i)).a;e.a=n,e.d=l.d,e.e=0,p(t,n)(e);var a,i,r=(r=/\bMSIE\s(\d+)/.exec(navigator.userAgent))&&+r[1]<=8,o=(t=/\n/g,e.a),s=o.length,l=0,c=e.d,u=c.length,d=(n=0,e.g),f=d.length,h=0;for(d[f]=s,i=a=0;i<f;)d[i]!==d[i+2]?(d[a++]=d[i++],d[a++]=d[i++]):i+=2;for(f=a,i=a=0;i<f;){for(var g=d[i],v=d[i+1],b=i+2;b+2<=f&&d[b+1]===v;)b+=2;d[a++]=g,d[a++]=v,i=b}d.length=a;var y,$=e.c;$&&(y=$.style.display,$.style.display="none");try{for(;n<u;){var w,k=c[n+2]||s,x=d[h+2]||s,W=(b=Math.min(k,x),c[n+1]);if(1!==W.nodeType&&(w=o.substring(l,b))){r&&(w=w.replace(t,"\r")),W.nodeValue=w;var S=W.ownerDocument,C=S.createElement("span");C.className=d[h+1];var N=W.parentNode;N.replaceChild(C,W),C.appendChild(W),l<k&&(c[n+1]=W=S.createTextNode(o.substring(b,k)),N.insertBefore(W,C.nextSibling))}(l=b)>=k&&(n+=2),l>=x&&(h+=2)}}finally{$&&($.style.display=y)}}catch(e){m.console&&console.log(e&&e.stack||e)}}var d,f,m=window,h=[d=[[f=["break,continue,do,else,for,if,return,while"],"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],g=[d,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],v=[g,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,internal,into,is,let,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],b=[f,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],y=[f,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],$=[f,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],w=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,k=/\S/,x=s({keywords:[h,v,d=[d,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",b,y,f=[f,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"]],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),W={};c(x,["default-code"]),c(o([],[["pln",/^[^<?]+/],["dec",/^<!\w[^>]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),c(o([["pln",/^\s+/,a," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,a,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css",/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]),c(o([],[["atv",/^[\S\s]+/]]),["uq.val"]),c(s({keywords:h,hashComments:!0,cStyleComments:!0,types:w}),["c","cc","cpp","cxx","cyc","m"]),c(s({keywords:"null,true,false"}),["json"]),c(s({keywords:v,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:w}),["cs"]),c(s({keywords:g,cStyleComments:!0}),["java"]),c(s({keywords:f,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),c(s({keywords:b,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),c(s({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),c(s({keywords:y,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),c(s({keywords:d,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),c(s({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),c(s({keywords:$,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),c(o([],[["str",/^[\S\s]+/]]),["regex"]);var S=m.PR={createSimpleLexer:o,registerLangHandler:c,sourceDecorator:s,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:m.prettyPrintOne=function(e,t,n){var a=document.createElement("div");return a.innerHTML="<pre>"+e+"</pre>",a=a.firstChild,n&&l(a,n,!0),u({h:t,j:n,c:a,i:1}),a.innerHTML},prettyPrint:m.prettyPrint=function(e,t){for(var n=(i=t||document.body).ownerDocument||document,i=[i.getElementsByTagName("pre"),i.getElementsByTagName("code"),i.getElementsByTagName("xmp")],o=[],s=0;s<i.length;++s)for(var c=0,p=i[s].length;c<p;++c)o.push(i[s][c]);i=a;var d=Date;d.now||(d={now:function(){return+new Date}});var f=0,h=/\blang(?:uage)?-([\w.]+)(?!\S)/,g=/\bprettyprint\b/,v=/\bprettyprinted\b/,b=/pre|xmp/i,y=/^code$/i,$=/^(?:pre|code|xmp)$/i,w={};!function t(){for(var i=m.PR_SHOULD_USE_CONTINUATION?d.now()+250:1/0;f<o.length&&d.now()<i;f++){for(var s=o[f],c=w,p=s;(p=p.previousSibling)&&((W=(7===(k=p.nodeType)||8===k)&&p.nodeValue)?/^\??prettify\b/.test(W):3===k&&!/\S/.test(p.nodeValue));)if(W){c={},W.replace(/\b(\w+)=([\w%+\-.:]+)/g,(function(e,t,n){c[t]=n}));break}if(p=s.className,(c!==w||g.test(p))&&!v.test(p)){for(k=!1,W=s.parentNode;W;W=W.parentNode)if($.test(W.tagName)&&W.className&&g.test(W.className)){k=!0;break}if(!k){var k,x;if(s.className+=" prettyprinted",(k=c.lang)||(!(k=p.match(h))&&(x=r(s))&&y.test(x.tagName)&&(k=x.className.match(h)),k&&(k=k[1])),b.test(s.tagName))W=1;else{var W=s.currentStyle,S=n.defaultView;W=(W=W?W.whiteSpace:S&&S.getComputedStyle?S.getComputedStyle(s,a).getPropertyValue("white-space"):0)&&"pre"===W.substring(0,3)}(S="true"===(S=c.linenums)||+S)||(S=!!(S=p.match(/\blinenums\b(?::(\d+))?/))&&(!S[1]||!S[1].length||+S[1])),S&&l(s,S,W),u({h:k,c:s,j:S,i:W})}}}f<o.length?setTimeout(t,250):"function"==typeof e&&e()}()}};void 0===(n=function(){return S}.apply(t,[]))||(e.exports=n)}()},416:(e,t,n)=>{window.$=window.jQuery=n(755),window.bootbox=n(369),window.toastr=n(901),n(169),n(688),n(581),n(17),n(408),n(138),n(548),n(198)}},e=>{e.O(0,[908],(()=>{return t=416,e(e.s=t);var t}));e.O()}]);