card-mod-tinymce_editor 0.15.5 → 0.15.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/script/nest_editor.js.coffee +76 -63
- data/assets/script/script_tinymce.js +2 -2
- data/assets/script/tinymce_config.js.coffee +6 -0
- data/data/files/mod_tinymce_editor_script_asset_output/file.js +15 -17
- data/public/icons/default/icons.min.js +1 -0
- data/public/jquery.tinymce.min.js +40 -41
- data/public/langs/{readme.md → README.md} +0 -0
- data/public/license.txt +0 -0
- data/public/plugins/advlist/plugin.min.js +2 -2
- data/public/plugins/anchor/plugin.min.js +2 -2
- data/public/plugins/autolink/plugin.min.js +2 -2
- data/public/plugins/autoresize/plugin.min.js +2 -2
- data/public/plugins/autosave/plugin.min.js +2 -2
- data/public/plugins/bbcode/plugin.min.js +2 -2
- data/public/plugins/charmap/plugin.min.js +2 -2
- data/public/plugins/code/plugin.min.js +2 -2
- data/public/plugins/codesample/plugin.min.js +2 -2
- data/public/plugins/colorpicker/plugin.min.js +2 -2
- data/public/plugins/contextmenu/plugin.min.js +2 -2
- data/public/plugins/directionality/plugin.min.js +2 -2
- data/public/plugins/emoticons/js/emojiimages.js +9424 -0
- data/public/plugins/emoticons/js/emojiimages.min.js +3 -0
- data/public/plugins/emoticons/js/emojis.js +1916 -1508
- data/public/plugins/emoticons/js/emojis.min.js +2 -2
- data/public/plugins/emoticons/plugin.min.js +2 -2
- data/public/plugins/fullpage/plugin.min.js +2 -2
- data/public/plugins/fullscreen/plugin.min.js +2 -2
- data/public/plugins/help/plugin.min.js +2 -2
- data/public/plugins/hr/plugin.min.js +2 -2
- data/public/plugins/image/plugin.min.js +2 -2
- data/public/plugins/imagetools/plugin.min.js +2 -2
- data/public/plugins/importcss/plugin.min.js +2 -2
- data/public/plugins/insertdatetime/plugin.min.js +2 -2
- data/public/plugins/legacyoutput/plugin.min.js +2 -2
- data/public/plugins/link/plugin.min.js +2 -2
- data/public/plugins/lists/plugin.min.js +2 -2
- data/public/plugins/media/plugin.min.js +2 -2
- data/public/plugins/nonbreaking/plugin.min.js +2 -2
- data/public/plugins/noneditable/plugin.min.js +2 -2
- data/public/plugins/pagebreak/plugin.min.js +2 -2
- data/public/plugins/paste/plugin.min.js +2 -2
- data/public/plugins/preview/plugin.min.js +2 -2
- data/public/plugins/print/plugin.min.js +2 -2
- data/public/plugins/quickbars/plugin.min.js +2 -2
- data/public/plugins/save/plugin.min.js +2 -2
- data/public/plugins/searchreplace/plugin.min.js +2 -2
- data/public/plugins/spellchecker/plugin.min.js +2 -2
- data/public/plugins/tabfocus/plugin.min.js +2 -2
- data/public/plugins/table/plugin.min.js +2 -2
- data/public/plugins/template/plugin.min.js +2 -2
- data/public/plugins/textcolor/plugin.min.js +2 -2
- data/public/plugins/textpattern/plugin.min.js +2 -2
- data/public/plugins/toc/plugin.min.js +2 -2
- data/public/plugins/visualblocks/plugin.min.js +2 -2
- data/public/plugins/visualchars/plugin.min.js +2 -2
- data/public/plugins/wordcount/plugin.min.js +2 -2
- data/public/skins/content/dark/content.min.css +7 -0
- data/public/skins/content/default/content.min.css +1 -1
- data/public/skins/content/document/content.min.css +1 -1
- data/public/skins/content/writer/content.min.css +1 -1
- data/public/skins/ui/oxide/content.inline.min.css +1 -1
- data/public/skins/ui/oxide/content.min.css +1 -1
- data/public/skins/ui/oxide/content.mobile.min.css +0 -0
- data/public/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- data/public/skins/ui/oxide/skin.min.css +1 -1
- data/public/skins/ui/oxide/skin.mobile.min.css +1 -1
- data/public/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- data/public/skins/ui/oxide-dark/content.inline.min.css +1 -1
- data/public/skins/ui/oxide-dark/content.min.css +1 -1
- data/public/skins/ui/oxide-dark/content.mobile.min.css +0 -0
- data/public/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- data/public/skins/ui/oxide-dark/skin.min.css +1 -1
- data/public/skins/ui/oxide-dark/skin.mobile.min.css +1 -1
- data/public/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- data/public/themes/mobile/theme.min.js +2 -2
- data/public/themes/silver/theme.min.js +2 -2
- data/public/tinymce.d.ts +3039 -0
- data/public/tinymce.min.js +2 -2
- data/set/all/reference_editor/link_editor.rb +1 -1
- metadata +15 -8
@@ -3,7 +3,7 @@
|
|
3
3
|
// link_editor.js.coffee
|
4
4
|
(function(){$(document).ready(function(){return $("body").on("click","button._link-apply",function(){return link.applyLink($(this).data("tinymce-id"),$(this).data("tm-snippet-start"),$(this).data("tm-snippet-size"))})}),window.link||(window.link={}),$(document).ready(function(){return $("body").on("click","._link-field-toggle",function(){return $(this).is(":checked")?link.addPlus():link.removePlus()}),$("body").on("input","input._link-target",function(){return link.targetChanged()}),$("body").on("input","input._link-title",function(){return link.titleChanged()})}),$.extend(link,{openLinkEditor:function(n){var i;return null==i&&(i=nest.editParams(n,"[[","]]")),nest.openEditorForTm(n,i,"link_editor","modal_link_editor")},applyLink:function(n,i,e){return nest.applySnippet("link",n,i,e)},target:function(){return link.evalFieldOption($("input._link-target").val())},title:function(){return $("input._link-title").val()},titleChanged:function(){var n;return n=$("._link-preview").val().replace(/^\[\[[^\]]*/,"[["+link.target()+"|"+link.title()),link.updatePreview(n)},targetChanged:function(){var n;return n=$("._link-preview").val().replace(/^\[\[[^\]|]*/,"[["+link.target()),link.updatePreview(n)},evalFieldOption:function(n){return link.isField()?"+"+n:n},isField:function(){return $("._link-field-toggle").is(":checked")},addPlus:function(){var n;return n=$("._link-preview").val().replace(/^\[\[\+?/,"[[+"),link.updatePreview(n),$(".input-group.hide-prefix").removeClass("hide-prefix").addClass("show-prefix")},removePlus:function(){var n;return n=$("._link-preview").val().replace(/^\[\[\+?/,"[["),link.updatePreview(n),$(".input-group.show-prefix").removeClass("show-prefix").addClass("hide-prefix")},updatePreview:function(n){return null==n&&(n="[["+link.target()+"|"+link.title()+"]]"),$("._link-preview").val(n)}})}).call(this);
|
5
5
|
// nest_editor.js.coffee
|
6
|
-
(function(){
|
6
|
+
(function(){var t,e,n,r,o,a,s,i;$(document).ready(function(){return $("body").on("click","button._nest-apply",function(){return null!=$(this).data("index")?nest.applyNestToNestListEditor($(this).data("index")):nest.applyNestToTinymceEditor($(this).data("tinymce-id"),$(this).data("tm-snippet-start"),$(this).data("tm-snippet-size"))}),$("body").on("click","button._image_nest-apply",function(){return nest.applyNestToTinymceEditor($(this).data("tinymce-id"),$(this).data("tm-snippet-start"),$(this).data("tm-snippet-size"))}),$("body").on("click","button._change-create-to-update",function(){var t;return t=$(this).closest("form").find("#success_tinymce_id").val(),n(t)}),$("body").on("click","button._open-nest-editor",function(){var t,e,n,r;return r=(e=$(this).closest("._nest-form")).find("._reference").val(),n=e.find("._nest-options").val(),t=encodeURIComponent("{{"+r+"|"+n+"}}"),nest.openNestEditorForSlot($(this).closest(".card-slot"),$(this).closest(".slotter"),"index="+e.data("index")+"&tm_snippet_raw="+t)})}),window.nest||(window.nest={}),$.extend(nest,{openNestEditor:function(t,e){return null==e&&(e=nest.editParams(t)),this.openEditorForTm(t,e,"nest_editor","modal_nest_editor")},openNestEditorForSlot:function(t,n,r){var o;return o=e(t[0]),s(o,"nest_editor","modal_nest_editor",n,r)},openEditorForTm:function(n,r,o,a){var i,d,l,c;return r+="&tinymce_id="+n.id,l=$("#"+n.id).closest(".card-slot"),d=$("#"+n.id).closest(".card-editor"),c=$("#"+n.id),0===(i=t(d[0])||e(l[0])).length&&(i=":update"),s(i,o,a,c,r)},openImageEditor:function(t){var e;return null==e&&(e=nest.editParams(t,"{{","}}",!1)),this.openEditorForTm(t,e,"nest_image","modal_nest_image")},insertNest:function(t,e){return t.insertContent(e)},editParams:function(t,e,n,r){var a,s,i,d,l,c,u,p,f;return null==e&&(e="{{"),null==n&&(n="}}"),null==r&&(r=!0),null==(p=t.selection.getSel())||null==p.anchorNode?nest.paramsStr(0):(f=p.anchorNode.data)?(u=p.anchorOffset,s=f.substr(0,u),a=f.substr(u),(i={before:{close:s.lastIndexOf(n),open:s.lastIndexOf(e)},after:{close:a.indexOf(n),open:a.indexOf(e)}}).before.open>i.before.close&&-1!==i.after.close&&(-1===i.after.open||i.after.close<i.after.open)?(c=i.before.open,null==d&&(l=i.after.close+u+2-c,d=f.substr(c,l)),r?o(c,d):o(c+l)):o(u)):nest.paramsStr(p.anchorOffset)},applyNestToTinymceEditor:function(t,e,n){return nest.applySnippet("nest",t,e,n)},applyNestToNestListEditor:function(t){var e;return(e=$("._nest-form[data-index='"+t+"']")).find("._reference").val(nest.name()),e.find("._nest-options").val(nest.options()),decko.updateAddItemButton(e)},applySnippet:function(t,e,n,o){var s,i,d;return s=$("._"+t+"-preview").val(),i=tinymce.get(e),null!=n?a(i,n,o,s):(i.insertContent(s),d=r(i,s),$("button._"+t+"-apply").attr("data-tm-snippet-start",d)),$("button._"+t+"-apply").attr("data-tm-snippet-size",s.length)},updatePreview:function(t){var e;return null==t&&(t="{{ "+nest.name()+"|"+nest.options()+" }}"),(e=$("._nest-preview")).val(t),e.data("nest-options",nest.options()),e.data("reference",nest.name())}}),e=function(t){return t?$(t).attr("data-card-link-name"):":update"},t=function(t){if(t)return $(t).attr("data-card-id")&&"~"+$(t).attr("card-id")||$(t).attr("data-card-link-name")},n=function(t){var e,n;return n=(e=$("#"+t).closest("form")).attr("action").replace("card/create","card/update"),e.attr("action",n)},s=function(t,e,n,r,o){var a;return a=$(".board-sidebar > ._overlay-container-placeholder > .card-slot"),a=$($(".card-slot")[0]),i(r,a,"modal",t,n,o)},o=function(t,e){var n;return n="",null!=t&&(n+="&tm_snippet_start="+t),null!=e&&e.length>0&&(n+="&tm_snippet_raw="+encodeURIComponent(e)),n},i=function(t,e,n,r,o,a){var s;return null==a&&(a=""),s="/"+r+"?view="+o+"&"+a,$.ajax({url:s,success:function(r){return e.slotContent(r,n,t)}})},r=function(t,e){return t.selection.getSel().anchorOffset-e.length},a=function(t,e,n,r){var o,a;return null!=(o=t.selection.getSel())&&null!=o.anchorNode&&null!=o.anchorNode.data?(null==n&&(n=0),a=""+(a=o.anchorNode.data).substr(0,e)+r+a.substr(e+n),o.anchorNode.data=a):t.insertContent(r)}}).call(this);
|
7
7
|
// nest_editor_name.js.coffee
|
8
8
|
(function(){var e;e=null,$(document).ready(function(){var t;return t=!1,$("body").on("click","._nest-field-toggle",function(){return $(this).is(":checked")?nest.addPlus():nest.removePlus(),t?nest.addPlus():nest.removePlus(),t=!t}),$("body").on("input","input._nest-name",function(t){if(nest.nameChanged(),13!==t.which)return e&&clearTimeout(e),e=setTimeout(function(){return nest.updateNameRelatedTabs()},700)}),$("body").on("keydown","input._nest-name",function(t){if(13===t.which)return e&&clearTimeout(e),nest.updateNameRelatedTabs()})}),$.extend(nest,{name:function(){return nest.evalFieldOption($("input._nest-name").val())},nameChanged:function(){var e;return e=$("._nest-preview").val().replace(/^\{\{[^}|]*/,"{{"+nest.name()),nest.updatePreview(e)},evalFieldOption:function(e){return nest.isField()?"+"+e:e},isField:function(){return $(".show-prefix > ._field-indicator").length>0},addPlus:function(){var e;return e=$("._nest-preview").val().replace(/^\{\{\+?/,"{{+"),nest.updatePreview(e),$(".input-group.hide-prefix").removeClass("hide-prefix").addClass("show-prefix")},removePlus:function(){var e;return e=$("._nest-preview").val().replace(/^\{\{\+?/,"{{"),nest.updatePreview(e),$(".input-group.show-prefix").removeClass("show-prefix").addClass("hide-prefix")},rulesTabSlot:function(){return $("._nest-editor .tab-pane-rules > .card-slot")},contentTabSlot:function(){return $("._nest-editor .tab-pane-content > .card-slot")},tabPanel:function(){return $("._nest-editor .tab-panel")},emptyNameAlert:function(e){return e?$("._empty-nest-name-alert").removeClass("d-none"):$("._empty-nest-name-alert:not(.d-none)").addClass("d-none")},updateNameRelatedTabs:function(){return nest.name().length>0?nest.tabPanel().show():nest.tabPanel().hide(),nest.updateRulesTab(),nest.updateContentTab()},updateContentTab:function(){var e,t;if((e=nest.contentTabSlot()).length>0)return t=decko.path(nest.fullName()+"?view=nest_content"),nest.updateNameDependentSlot(e,t)},updateRulesTab:function(){var e,t;return e=nest.rulesTabSlot(),t=decko.path(nest.setNameForRules()+"?view=nest_rules"),nest.updateNameDependentSlot(e,t)},updateNameDependentSlot:function(e,t){var n;return null!=(n=$("input._nest-name").val())&&n.length>0?(nest.emptyNameAlert(!1),e.slotReload(t)):(e.slotClear(),nest.emptyNameAlert(!0))},fullName:function(){var e,t;return t=(e=$("input._nest-name")).val(),nest.isField()&&e.attr("data-left-name")?e.attr("data-left-name")+"+"+t:t},setNameForRules:function(){var e,t;return t=(e=$("input._nest-name")).val(),nest.isField()?e.attr("data-left-type")?e.attr("data-left-type")+"+"+t+"+*type plus right":t+"+*right":t+"+*self"}})}).call(this);
|
9
9
|
// nest_editor_options.js.coffee
|
@@ -17,21 +17,19 @@
|
|
17
17
|
* For LGPL see License.txt in the project root for license information.
|
18
18
|
* For commercial licenses see https://www.tiny.cloud/
|
19
19
|
*
|
20
|
-
* Version: 5.
|
20
|
+
* Version: 5.10.7 (2022-12-06)
|
21
21
|
*/
|
22
|
-
!function(e){"use strict";function t(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}function n(){var e=[];return function t(n,r){return e.push(n+" ")>$e.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function r(e){return e[xt]=!0,e}function o(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function i(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function a(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function s(e){return e&&typeof e.getElementsByTagName!==Mt&&e}function l(){}function c(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=Et++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,s,l=[Nt,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if((u=(s=t[xt]||(t[xt]={}))[r])&&u[0]===Nt&&u[1]===i)return l[2]=u[2];if((s[r]=l)[2]=e(t,n,a))return!0}}}function d(e){return 1<e.length?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function h(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,l=null!=t;u<s;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),l&&t.push(u)));return a}function m(e,t,n,o,i,a){return o&&!o[xt]&&(o=m(o)),i&&!i[xt]&&(i=m(i,a)),r(function(r,a,u,s){var l,c,f,d=[],m=[],g=a.length,p=r||function(e,t,n){for(var r=0,o=t.length;r<o;r++)rn(e,t[r],n);return n}(t||"*",u.nodeType?[u]:u,[]),v=!e||!r&&t?p:h(p,d,e,u,s),y=n?i||(r?e:g||o)?[]:a:v;if(n&&n(v,y,u,s),o)for(l=h(y,m),o(l,[],u,s),c=l.length;c--;)(f=l[c])&&(y[m[c]]=!(v[m[c]]=f));if(r){if(i||e){if(i){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,s)}for(c=y.length;c--;)(f=y[c])&&-1<(l=i?Lt.call(r,f):d[c])&&(r[l]=!(a[l]=f))}}else y=h(y===a?y.splice(g,y.length):y),i?i(null,a,y,s):Ht.apply(a,y)})}function g(e){for(var t,n,r,o=e.length,i=$e.relative[e[0].type],a=i||$e.relative[" "],u=i?1:0,s=f(function(e){return e===t},a,!0),l=f(function(e){return-1<Lt.call(t,e)},a,!0),h=[function(e,n,r){return!i&&(r||n!==Je)||((t=n).nodeType?s(e,n,r):l(e,n,r))}];u<o;u++)if(n=$e.relative[e[u].type])h=[f(d(h),n)];else{if((n=$e.filter[e[u].type].apply(null,e[u].matches))[xt]){for(r=++u;r<o&&!$e.relative[e[r].type];r++);return m(1<u&&d(h),1<u&&c(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(Ut,"$1"),n,u<r&&g(e.slice(u,r)),r<o&&g(e=e.slice(r)),r<o&&c(e))}h.push(n)}return d(h)}function p(e){var t,n,r,o,i,a,u,s,l,c,f,d,h,m={},g={},p=[],v={},y={},b=function(t,n,r){var o=e[t];return o?o=zi(o,/[, ]/,zi(o.toUpperCase(),/[, ]/)):(o=wi[t])||(o=zi(n," ",zi(n.toUpperCase()," ")),o=Ei(o,r),wi[t]=o),o};r=Ai((e=e||{}).schema),!1===e.verify_html&&(e.valid_elements="*[*]"),t=Mi(e.valid_styles),n=Mi(e.invalid_styles,"map"),s=Mi(e.valid_classes,"map"),o=b("whitespace_elements","pre script noscript style textarea video audio iframe object code"),i=b("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),a=b("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),u=b("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),c=b("non_empty_elements","td th iframe video audio object script pre code",a),f=b("move_caret_before_on_enter_elements","table",c),d=b("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),l=b("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",d),h=b("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp"),Ni((e.special||"script noscript noframes noembed title style textarea xmp").split(" "),function(e){y[e]=new RegExp("</"+e+"[^>]*>","gi")});var C=function(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")},w=function(e){var t,n,r,o,i,a,u,s,l,c,f,d,h,g,v,y,b,w,x,z=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)\])?$/,N=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,E=/[*?+]/;if(e)for(e=Ti(e,","),m["@"]&&(y=m["@"].attributes,b=m["@"].attributesOrder),t=0,n=e.length;t<n;t++)if(i=z.exec(e[t])){if(g=i[1],l=i[2],v=i[3],s=i[5],a={attributes:d={},attributesOrder:h=[]},"#"===g&&(a.paddEmpty=!0),"-"===g&&(a.removeEmpty=!0),"!"===i[4]&&(a.removeEmptyAttrs=!0),y){for(w in y)d[w]=y[w];h.push.apply(h,b)}if(s)for(r=0,o=(s=Ti(s,"|")).length;r<o;r++)if(i=N.exec(s[r])){if(u={},f=i[1],c=i[2].replace(/[\\:]:/g,":"),g=i[3],x=i[4],"!"===f&&(a.attributesRequired=a.attributesRequired||[],a.attributesRequired.push(c),u.required=!0),"-"===f){delete d[c],h.splice(ki(h,c),1);continue}g&&("="===g&&(a.attributesDefault=a.attributesDefault||[],a.attributesDefault.push({name:c,value:x}),u.defaultValue=x),":"===g&&(a.attributesForced=a.attributesForced||[],a.attributesForced.push({name:c,value:x}),u.forcedValue=x),"<"===g&&(u.validValues=zi(x,"?"))),E.test(c)?(a.attributePatterns=a.attributePatterns||[],u.pattern=C(c),a.attributePatterns.push(u)):(d[c]||h.push(c),d[c]=u)}y||"@"!==l||(y=d,b=h),v&&(a.outputName=l,m[v]=a),E.test(l)?(a.pattern=C(l),p.push(a)):m[l]=a}},x=function(e){m={},p=[],w(e),Ni(r,function(e,t){g[t]=e.children})},z=function(e){var t=/^(~)?(.+)$/;e&&(wi.text_block_elements=wi.block_elements=null,Ni(Ti(e,","),function(e){var n=t.exec(e),r="~"===n[1],o=r?"span":"div",i=n[2];if(g[i]=g[o],v[i]=o,r||(l[i.toUpperCase()]={},l[i]={}),!m[i]){var a=m[o];delete(a=Ei({},a)).removeEmptyAttrs,delete a.removeEmpty,m[i]=a}Ni(g,function(e,t){e[o]&&(g[t]=e=Ei({},g[t]),e[i]=e[o])})}))},N=function(t){var n=/^([+\-]?)(\w+)\[([^\]]+)\]$/;wi[e.schema]=null,t&&Ni(Ti(t,","),function(e){var t,r,o=n.exec(e);o&&(r=o[1],t=r?g[o[2]]:g[o[2]]={"#comment":{}},t=g[o[2]],Ni(Ti(o[3],"|"),function(e){"-"===r?delete t[e]:t[e]={}}))})},E=function(e){var t,n=m[e];if(n)return n;for(t=p.length;t--;)if((n=p[t]).pattern.test(e))return n};return e.valid_elements?x(e.valid_elements):(Ni(r,function(e,t){m[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},g[t]=e.children}),"html5"!==e.schema&&Ni(Ti("strong/b em/i"),function(e){e=Ti(e,"/"),m[e[1]].outputName=e[0]}),Ni(Ti("ol ul sub sup blockquote span font a table tbody tr strong em b i"),function(e){m[e]&&(m[e].removeEmpty=!0)}),Ni(Ti("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){m[e].paddEmpty=!0}),Ni(Ti("span"),function(e){m[e].removeEmptyAttrs=!0})),z(e.custom_elements),N(e.valid_children),w(e.extended_valid_elements),N("+ol[ul|ol],+ul[ul|ol]"),Ni({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(e,t){m[t]&&(m[t].parentsRequired=Ti(e))}),e.invalid_elements&&Ni(Si(e.invalid_elements),function(e){m[e]&&delete m[e]}),E("span")||w("span[!data-mce-type|*]"),{children:g,elements:m,getValidStyles:function(){return t},getValidClasses:function(){return s},getBlockElements:function(){return l},getInvalidStyles:function(){return n},getShortEndedElements:function(){return a},getTextBlockElements:function(){return d},getTextInlineElements:function(){return h},getBoolAttrs:function(){return u},getElementRule:E,getSelfClosingElements:function(){return i},getNonEmptyElements:function(){return c},getMoveCaretBeforeOnEnterElements:function(){return f},getWhiteSpaceElements:function(){return o},getSpecialElements:function(){return y},isValidChild:function(e,t){var n=g[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,o=E(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},getCustomElements:function(){return v},addValidElements:w,setValidElements:x,addCustomElements:z,addValidChildren:N}}function v(t,n){var r,o=this;void 0===n&&(n={});var i={},a=e.window,u={},s=0,l=function(t,n){void 0===n&&(n={});var r,o=0,i={};r=n.maxLoadTime||5e3;var a=function(e){t.getElementsByTagName("head")[0].appendChild(e)},u=function(u,s,l){var c,f,d,h,m=function(e){h.status=e,h.passed=[],h.failed=[],c&&(c.onload=null,c.onerror=null,c=null)},g=function(){for(var e=h.passed,t=e.length;t--;)e[t]();m(2)},p=function(){for(var e=h.failed,t=e.length;t--;)e[t]();m(3)},v=function(e,t){e()||((new Date).getTime()-d<r?dt.setTimeout(t):p())},y=function(){v(function(){for(var e,n,r=t.styleSheets,o=r.length;o--;)if((n=(e=r[o]).ownerNode?e.ownerNode:e.owningElement)&&n.id===c.id)return g(),!0},y)},b=function(){v(function(){try{var e=f.sheet.cssRules;return g(),!!e}catch(s){}},b)};if(u=hn._addCacheSuffix(u),i[u]?h=i[u]:(h={passed:[],failed:[]},i[u]=h),s&&h.passed.push(s),l&&h.failed.push(l),1!==h.status)if(2!==h.status)if(3!==h.status){if(h.status=1,(c=t.createElement("link")).rel="stylesheet",c.type="text/css",c.id="u"+o++,c.async=!1,c.defer=!1,d=(new Date).getTime(),n.contentCssCors&&(c.crossOrigin="anonymous"),"onload"in c&&!((C=e.navigator.userAgent.match(/WebKit\/(\d*)/))&&parseInt(C[1],10)<536))c.onload=y,c.onerror=p;else{if(0<e.navigator.userAgent.indexOf("Firefox"))return(f=t.createElement("style")).textContent='@import "'+u+'"',b(),void a(f);y()}var C;a(c),c.href=u}else p();else g()},s=function(e){return To.nu(function(t){u(e,W(t,K(Bo.value(e))),W(t,K(Bo.error(e))))})},l=function(e){return e.fold(X,X)};return{load:u,loadAll:function(e,t,n){Mo(pe(e,s)).get(function(e){var r=ye(e,function(e){return e.isValue()});0<r.fail.length?n(r.fail.map(l)):t(r.pass.map(l))})}}}(t,{contentCssCors:n.contentCssCors}),c=[],f=n.schema?n.schema:p({}),d=Di({url_converter:n.url_converter,url_converter_scope:n.url_converter_scope},n.schema),h=n.ownEvents?new wt:wt.Event,m=f.getBlockElements(),g=Xn.overrideDefaults(function(){return{context:t,element:q.getRoot()}}),y=function(e){if(e&&t&&"string"==typeof e){var n=t.getElementById(e);return n&&n.id!==e?t.getElementsByName(e)[1]:n}return e},b=function(e){return"string"==typeof e&&(e=y(e)),g(e)},C=function(e,t,n){var o,i,a=b(e);return a.length&&(i=(o=r[t])&&o.get?o.get(a,t):a.attr(t)),void 0===i&&(i=n||""),i},w=function(e){var t=y(e);return t?t.attributes:[]},x=function(e,t,o){var i,a;""===o&&(o=null);var u=b(e);i=u.attr(t),u.length&&((a=r[t])&&a.set?a.set(u,o,t):u.attr(t,o),i!==o&&n.onSetAttrib&&n.onSetAttrib({attrElm:u,attrName:t,attrValue:o}))},z=function(){return n.root_element||t.body},N=function(e,n){return No.getPos(t.body,y(e),n)},E=function(e,t,n){var r=b(e);return n?r.css(t):("float"===(t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}))&&(t=ut.ie&&ut.ie<12?"styleFloat":"cssFloat"),r[0]&&r[0].style?r[0].style[t]:undefined)},S=function(e){var t,n;return e=y(e),t=E(e,"width"),n=E(e,"height"),-1===t.indexOf("px")&&(t=0),-1===n.indexOf("px")&&(n=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(n,10)||e.offsetHeight||e.clientHeight}},k=function(e,t){var n;if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(_i.test(t)){var r=t.toLowerCase().split(/,/),o=e.nodeName.toLowerCase();for(n=r.length-1;0<=n;n--)if(r[n]===o)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return 0<rn(t,i[0].ownerDocument||i[0],null,i).length},T=function(e,t,n,r){var o,i=[],a=y(e);for(r=r===undefined,n=n||("BODY"!==z().nodeName?z().parentNode:null),hn.is(t,"string")&&(t="*"===(o=t)?function(e){return 1===e.nodeType}:function(e){return k(e,o)});a&&a!==n&&a.nodeType&&9!==a.nodeType;){if(!t||"function"==typeof t&&t(a)){if(!r)return[a];i.push(a)}a=a.parentNode}return r?i:null},A=function(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return k(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null},M=function(e,t,n){var r,i="string"==typeof e?y(e):e;if(!i)return!1;if(hn.isArray(i)&&(i.length||0===i.length))return r=[],Bi(i,function(e,o){e&&("string"==typeof e&&(e=y(e)),r.push(t.call(n,e,o)))}),r;var a=n||o;return t.call(a,i)},R=function(e,t){b(e).each(function(e,n){Bi(t,function(e,t){x(n,t,e)})})},D=function(e,t){var n=b(e);Hi?n.each(function(e,n){if(!1!==n.canHaveHTML){for(;n.firstChild;)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(m){Xn("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}}):n.html(t)},B=function(e,n,r,o,i){return M(e,function(e){var a="string"==typeof n?t.createElement(n):n;return R(a,r),o&&("string"!=typeof o&&o.nodeType?a.appendChild(o):"string"==typeof o&&D(a,o)),i?a:e.appendChild(a)})},O=function(e,n,r){return B(t.createElement(e),e,n,r,!0)},H=Ci.decode,_=Ci.encodeAllRaw,L=function(e,t){var n=b(e);return t?n.each(function(){for(var e;e=this.firstChild;)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)}).remove():n.remove(),1<n.length?n.toArray():n[0]},P=function(e,t,n){b(e).toggleClass(t,n).each(function(){""===this.className&&Xn(this).attr("class",null)})},V=function(e,t,n){return M(t,function(t){return hn.is(t,"array")&&(e=e.cloneNode(!0)),n&&Bi(Oi(t.childNodes),function(t){e.appendChild(t)}),t.parentNode.replaceChild(e,t)})},I=function(){return t.createRange()},F=function(e,r,o,i){if(hn.isArray(e)){for(var u=e.length,s=[];u--;)s[u]=F(e[u],r,o,i);return s}return!n.collect||e!==t&&e!==a||c.push([e,r,o,i]),h.bind(e,r,o,i||q)},U=function(e,n,r){var o;if(hn.isArray(e)){o=e.length;for(var i=[];o--;)i[o]=U(e[o],n,r);return i}if(c&&(e===t||e===a))for(o=c.length;o--;){var u=c[o];e!==u[0]||n&&n!==u[1]||r&&r!==u[2]||h.unbind(u[0],u[1],u[2])}return h.unbind(e,n,r)},j=function(e){if(e&&Wo.isElement(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null},q={doc:t,settings:n,win:a,files:u,stdMode:!0,boxModel:!0,styleSheetLoader:l,boundEvents:c,styles:d,schema:f,events:h,isBlock:function(e){if("string"==typeof e)return!!m[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!m[e.nodeName])}return!1},$:g,$$:b,root:null,clone:function(e,n){if(!Hi||1!==e.nodeType||n)return e.cloneNode(n);if(n)return null;var r=t.createElement(e.nodeName);return Bi(w(e),function(t){x(r,t.nodeName,C(e,t.nodeName))}),r},getRoot:z,getViewPort:function(e){var t=e||a,n=t.document.documentElement;return{x:t.pageXOffset||n.scrollLeft,y:t.pageYOffset||n.scrollTop,w:t.innerWidth||n.clientWidth,h:t.innerHeight||n.clientHeight}},getRect:function(e){var t,n;return e=y(e),t=N(e),n=S(e),{x:t.x,y:t.y,w:n.w,h:n.h}},getSize:S,getParent:function(e,t,n){var r=T(e,t,n,!1);return r&&0<r.length?r[0]:null},getParents:T,get:y,getNext:function(e,t){return A(e,t,"nextSibling")},getPrev:function(e,t){return A(e,t,"previousSibling")},select:function(e,r){return rn(e,y(r)||n.root_element||t,[])},is:k,add:B,create:O,createHTML:function(e,t,n){var r,o="";for(r in o+="<"+e,t)t.hasOwnProperty(r)&&null!==t[r]&&"undefined"!=typeof t[r]&&(o+=" "+r+'="'+_(t[r])+'"');return void 0!==n?o+">"+n+"</"+e+">":o+" />"},createFragment:function(e){var n,r=t.createElement("div"),o=t.createDocumentFragment();for(e&&(r.innerHTML=e);n=r.firstChild;)o.appendChild(n);return o},remove:L,setStyle:function(e,t,r){var o=ie(t)?b(e).css(t,r):b(e).css(t);n.update_styles&&Vi(d,o)},getStyle:E,setStyles:function(e,t){var r=b(e).css(t);n.update_styles&&Vi(d,r)},removeAllAttribs:function(e){return M(e,function(e){var t,n=e.attributes;for(t=n.length-1;0<=t;t--)e.removeAttributeNode(n.item(t))})},setAttrib:x,setAttribs:R,getAttrib:C,getPos:N,parseStyle:function(e){return d.parse(e)},serializeStyle:function(e,t){return d.serialize(e,t)},addStyle:function(n){var r,o;if(q!==v.DOM&&t===e.document){if(i[n])return;i[n]=!0}(o=t.getElementById("mceDefaultStyles"))||((o=t.createElement("style")).id="mceDefaultStyles",o.type="text/css",(r=t.getElementsByTagName("head")[0]).firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o)),o.styleSheet?o.styleSheet.cssText+=n:o.appendChild(t.createTextNode(n))},loadCSS:function(r){var o;q===v.DOM||t!==e.document?(r||(r=""),o=t.getElementsByTagName("head")[0],Bi(r.split(","),function(e){var t;e=hn._addCacheSuffix(e),u[e]||(u[e]=!0,t=O("link",De({rel:"stylesheet",type:"text/css",href:e},n.contentCssCors?{crossOrigin:"anonymous"}:{})),o.appendChild(t))})):v.DOM.loadCSS(r)},addClass:function(e,t){b(e).addClass(t)},removeClass:function(e,t){P(e,t,!1)},hasClass:function(e,t){return b(e).hasClass(t)},toggleClass:P,show:function(e){b(e).show()},hide:function(e){b(e).hide()},isHidden:function(e){return"none"===b(e).css("display")},uniqueId:function(e){return(e||"mce_")+s++},setHTML:D,getOuterHTML:function(e){var t="string"==typeof e?y(e):e;return Wo.isElement(t)?t.outerHTML:Xn("<div></div>").append(Xn(t).clone()).html()},setOuterHTML:function(e,t){b(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}L(Xn(this).html(t),!0)})},decode:H,encode:_,insertAfter:function(e,t){var n=y(t);return M(e,function(e){var t,r;return t=n.parentNode,(r=n.nextSibling)?t.insertBefore(e,r):t.appendChild(e),e})},replace:V,rename:function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=O(t),Bi(w(e),function(t){x(n,t.nodeName,C(e,t.nodeName))}),V(n,e,!0)),n||e},findCommonAncestor:function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},toHex:function(e){return d.toHex(hn.trim(e))},run:M,getAttribs:w,isEmpty:function(e,t){var n,r,o,i,a=0;if(e=e.firstChild){var u=new Ko(e,e.parentNode),s=f?f.getWhiteSpaceElements():{};t=t||(f?f.getNonEmptyElements():null);do{if(o=e.nodeType,Wo.isElement(e)){var l=e.getAttribute("data-mce-bogus");if(l){e=u.next("all"===l);continue}if(i=e.nodeName.toLowerCase(),t&&t[i]){if("br"!==i)return!1;a++,e=u.next();continue}for(n=(r=w(e)).length;n--;)if("name"===(i=r[n].nodeName)||"data-mce-bookmark"===i)return!1}if(8===o)return!1;if(3===o&&!Li.test(e.nodeValue))return!1;if(3===o&&e.parentNode&&s[e.parentNode.nodeName]&&Li.test(e.nodeValue))return!1;e=u.next()}while(e)}return a<=1},createRng:I,nodeIndex:Ii,split:function(e,t,n){var r,o,i,a=I();if(e&&t)return a.setStart(e.parentNode,Ii(e)),a.setEnd(t.parentNode,Ii(t)),r=a.extractContents(),(a=I()).setStart(t.parentNode,Ii(t)+1),a.setEnd(e.parentNode,Ii(e)+1),o=a.extractContents(),(i=e.parentNode).insertBefore(si.trimNode(q,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(si.trimNode(q,o),e),L(e),n||t},bind:F,unbind:U,fire:function(e,t,n){return h.fire(e,t,n)},getContentEditable:j,getContentEditableParent:function(e){for(var t=z(),n=null;e&&e!==t&&null===(n=j(e));e=e.parentNode);return n},destroy:function(){if(c)for(var e=c.length;e--;){var t=c[e];h.unbind(t[0],t[1],t[2])}rn.setDocument&&rn.setDocument()},isChildOf:function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset}};return r=Pi(d,n,function(){return q}),q}function y(){var e=this,t=[],n={},r={},o=[],i=function(e){var t;return r[e]&&(t=r[e].dependencies),t||[]},a=function(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}},u=function(e,t,n,r){var o=i(e);Ji(o,function(e){var n=a(t,e);s(n.resource,n,undefined,undefined)}),n&&(r?n.call(r):n.call(Wi))},s=function(e,t,o,i,a){if(!n[e]){var s="string"==typeof t?t:t.prefix+t.resource+t.suffix;0!==s.indexOf("/")&&-1===s.indexOf("://")&&(s=y.baseURL+"/"+s),n[e]=s.substring(0,s.lastIndexOf("/")),r[e]?u(e,t,o,i):Wi.ScriptLoader.add(s,function(){return u(e,t,o,i)},i,a)}};return{items:t,urls:n,lookup:r,_listeners:o,get:function(e){return r[e]?r[e].instance:undefined},dependencies:i,requireLangPack:function(e,t){var r=Gi.getCode();if(r&&!1!==y.languageLoad){if(t)if(-1!==(t=","+t+",").indexOf(","+r.substr(0,2)+","))r=r.substr(0,2);else if(-1===t.indexOf(","+r+","))return;Wi.ScriptLoader.add(n[e]+"/langs/"+r+".js")}},add:function(e,n,i){t.push(n),r[e]={instance:n,dependencies:i};var a=ye(o,function(t){return t.name===e});return o=a.fail,Ji(a.pass,function(e){e.callback()}),n},remove:function(e){delete n[e],delete r[e]},createUrl:a,addComponents:function(t,n){var r=e.urls[t];Ji(n,function(e){Wi.ScriptLoader.add(r+"/"+e)})},load:s,waitFor:function(e,t){r.hasOwnProperty(e)?t():o.push({name:e,callback:t})}}}function b(e,t,n,r,o){return e(n,r)?re.some(n):ce(o)&&o(n)?re.none():t(n,r,o)}function C(e,t,n){var r=function(){return n||(n=Iu(C(e,t))),n};return{container:K(e),offset:K(t),toRange:function(){var n;return(n=Bu(e.ownerDocument)).setStart(e,t),n.setEnd(e,t),n},getClientRects:r,isVisible:function(){return 0<r().length},isAtStart:function(){return Au(e),0===t},isAtEnd:function(){return Au(e)?t>=e.data.length:t>=e.childNodes.length},isEqual:function(n){return n&&e===n.container()&&t===n.offset()},getNode:function(n){return Du(e,n?t-1:t)}}}function w(e,t){void 0===t&&(t=p());var n=function(){};!1!==(e=e||{}).fix_self_closing&&(e.fix_self_closing=!0);var r=e.comment?e.comment:n,o=e.cdata?e.cdata:n,i=e.text?e.text:n,a=e.start?e.start:n,u=e.end?e.end:n,s=e.pi?e.pi:n,l=e.doctype?e.doctype:n;return{parse:function(n){var c,f,d,h,m,g,p,v,y,b,C,w,x,z,N,E,S,k,T,A,M,R,D,B,O,H,_,L,P,V=0,I=[],F=0,U=Ci.decode,j=hn.makeMap("src,href,data,background,formaction,poster,xlink:href"),q=/((java|vb)script|mhtml):/i,$=function(e){var t,n;for(t=I.length;t--&&I[t].name!==e;);if(0<=t){for(n=I.length-1;t<=n;n--)(e=I[n]).valid&&u(e.name);I.length=t}},W=function(t,n,r,o,i){var a,u,s,l,c;if(r=(n=n.toLowerCase())in C?n:U(r||o||i||""),x&&!v&&0==(0===(s=n).indexOf("data-")||0===s.indexOf("aria-"))){if(!(a=k[n])&&T){for(u=T.length;u--&&!(a=T[u]).pattern.test(n););-1===u&&(a=null)}if(!a)return;if(a.validValues&&!(r in a.validValues))return}if(j[n]&&!e.allow_script_urls){var f=r.replace(/[\s\u0000-\u001F]+/g,"");try{f=decodeURIComponent(f)}catch(N){f=unescape(f)}if(q.test(f))return;if(c=f,!(l=e).allow_html_data_urls&&(/^data:image\//i.test(c)?!1===l.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(c):/^data:/i.test(c)))return}v&&(n in j||0===n.indexOf("on"))||(h.map[n]=r,h.push({name:n,value:r}))};for(O=new RegExp("<(?:(?:!--([\\w\\W]*?)-->)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),H=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,b=t.getShortEndedElements(),B=e.self_closing_elements||t.getSelfClosingElements(),C=t.getBoolAttrs(),x=e.validate,y=e.remove_internals,P=e.fix_self_closing,_=t.getSpecialElements(),D=n+">";c=O.exec(D);){if(V<c.index&&i(U(n.substr(V,c.index-V))),f=c[6])":"===(f=f.toLowerCase()).charAt(0)&&(f=f.substr(1)),$(f);else if(f=c[7]){if(c.index+c[0].length>n.length){i(U(n.substr(c.index))),V=c.index+c[0].length;continue}":"===(f=f.toLowerCase()).charAt(0)&&(f=f.substr(1)),w=f in b,P&&B[f]&&0<I.length&&I[I.length-1].name===f&&$(f);var K=uc(H,c[8]);if(null!==K){if("all"===K){V=ac(t,n,O.lastIndex),O.lastIndex=V;continue}N=!1}if(!x||(z=t.getElementRule(f))){if(N=!0,x&&(k=z.attributes,T=z.attributePatterns),(S=c[8])?((v=-1!==S.indexOf("data-mce-type"))&&y&&(N=!1),(h=[]).map={},S.replace(H,W)):(h=[]).map={},x&&!v){if(A=z.attributesRequired,M=z.attributesDefault,R=z.attributesForced,z.removeEmptyAttrs&&!h.length&&(N=!1),R)for(m=R.length;m--;)p=(E=R[m]).name,"{$uid}"===(L=E.value)&&(L="mce_"+F++),h.map[p]=L,h.push({name:p,value:L});if(M)for(m=M.length;m--;)(p=(E=M[m]).name)in h.map||("{$uid}"===(L=E.value)&&(L="mce_"+F++),h.map[p]=L,h.push({name:p,value:L}));if(A){for(m=A.length;m--&&!(A[m]in h.map););-1===m&&(N=!1)}if(E=h.map["data-mce-bogus"]){if("all"===E){V=ac(t,n,O.lastIndex),O.lastIndex=V;continue}N=!1}}N&&a(f,h,w)}else N=!1;if(d=_[f]){d.lastIndex=V=c.index+c[0].length,V=(c=d.exec(n))?(N&&(g=n.substr(V,c.index-V)),c.index+c[0].length):(g=n.substr(V),n.length),N&&(0<g.length&&i(g,!0),u(f)),O.lastIndex=V;continue}w||(S&&S.indexOf("/")===S.length-1?N&&u(f):I.push({name:f,valid:N}))}else(f=c[1])?(">"===f.charAt(0)&&(f=" "+f),e.allow_conditional_comments||"[if"!==f.substr(0,3).toLowerCase()||(f=" "+f),r(f)):(f=c[2])?o(f.replace(/<!--|-->/g,"")):(f=c[3])?l(f):(f=c[4])&&s(f,c[5]);V=c.index+c[0].length}for(V<n.length&&i(U(n.substr(V))),m=I.length-1;0<=m;m--)(f=I[m]).valid&&u(f.name)}}}function x(e){var t,n=[],r=function(){var t=e.theme;return t&&t.getNotificationManagerImpl?t.getNotificationManagerImpl():function(){var e=function(){throw new Error("Theme did not provide a NotificationManager implementation.")};return{open:e,close:e,reposition:e,getArgs:e}}()},o=function(){0<n.length&&r().reposition(n)},i=function(e){ze(n,function(t){return t===e}).each(function(e){n.splice(e,1)})},a=function(t){if(!e.removed&&xd(e))return xe(n,function(e){return n=r().getArgs(e),o=t,!(n.type!==o.type||n.text!==o.text||n.progressBar||n.timeout||o.progressBar||o.timeout);var n,o}).getOrThunk(function(){e.editorManager.setActive(e);var a,u=r().open(t,function(){i(u),o()});return a=u,n.push(a),o(),u})};return(t=e).on("SkinLoaded",function(){var e=t.settings.service_message;e&&a({text:e,type:"warn",timeout:0})}),t.on("ResizeEditor ResizeWindow NodeChange",function(){dt.requestAnimationFrame(o)}),t.on("remove",function(){ve(n.slice(),function(e){r().close(e)})}),{open:a,close:function(){re.from(n[0]).each(function(e){r().close(e),i(e),o()})},getNotifications:function(){return n}}}function z(){return new(He.getOrDie("XMLHttpRequest"))}function N(t,n){var r={},o=function(t,r,o,i){var a,u;(a=z()).open("POST",n.url),a.withCredentials=n.credentials,a.upload.onprogress=function(e){i(e.loaded/e.total*100)},a.onerror=function(){o("Image upload failed due to a XHR Transport error. Code: "+a.status)},a.onload=function(){var e,t,i;a.status<200||300<=a.status?o("HTTP Error: "+a.status):(e=JSON.parse(a.responseText))&&"string"==typeof e.location?r((t=n.basePath,i=e.location,t?t.replace(/\/$/,"")+"/"+i.replace(/^\//,""):i)):o("Invalid JSON: "+a.responseText)},(u=new e.FormData).append("file",t.blob(),t.filename()),a.send(u)},i=function(e,t){return{url:t,blobInfo:e,status:!0}},a=function(e,t){return{url:"",blobInfo:e,status:!1,error:t}},u=function(e,t){hn.each(r[e],function(e){e(t)}),delete r[e]},s=function(e,o){return e=hn.grep(e,function(e){return!t.isUploaded(e.blobUri())}),st.all(hn.map(e,function(e){return t.isPending(e.blobUri())?(f=e.blobUri(),new st(function(e){r[f]=r[f]||[],r[f].push(e)})):(s=e,l=n.handler,c=o,t.markPending(s.blobUri()),new st(function(n){var r;try{var o=function(){r&&r.close()};l(s,function(e){o(),t.markUploaded(s.blobUri(),e),u(s.blobUri(),i(s,e)),n(i(s,e))},function(e){o(),t.removeFailed(s.blobUri()),u(s.blobUri(),a(s,e)),n(a(s,e))},function(e){e<0||100<e||(r||(r=c()),r.progressBar.value(e))})}catch(e){n(a(s,e.message))}}));var s,l,c,f}))};return!1===ce(n.handler)&&(n.handler=o),{upload:function(e,t){return n.url||n.handler!==o?s(e,t):new st(function(e){e([])})}}}function E(e,t){var n={};return{findAll:function(r,o){var i,a;o||(o=K(!0)),i=be((a=r)?Re(a.getElementsByTagName("img")):[],function(t){var n=t.src;return!!ut.fileApi&&!t.hasAttribute("data-mce-bogus")&&!t.hasAttribute("data-mce-placeholder")&&!(!n||n===ut.transparentSrc)&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&o(t):0===n.indexOf("data:")&&o(t))});var u=pe(i,function(e){if(n[e.src])return new st(function(t){n[e.src].then(function(n){if("string"==typeof n)return n;t({image:e,blobInfo:n.blobInfo})})});var r=new st(function(n,r){var o,i,a,u,s,l;o=t,a=n,u=r,0!==(i=e).src.indexOf("blob:")?(s=Pd(i.src).data,(l=o.findFirst(function(e){return e.base64()===s}))?a({image:i,blobInfo:l}):_d(i.src).then(function(e){l=o.create(Id(),e,s),o.add(l),a({image:i,blobInfo:l})},function(e){u(e)})):(l=o.getByUri(i.src))?a({image:i,blobInfo:l}):_d(i.src).then(function(e){Ld(e).then(function(t){s=Pd(t).data,l=o.create(Id(),e,s),o.add(l),a({image:i,blobInfo:l})})},function(e){u(e)})}).then(function(e){return delete n[e.image.src],e})["catch"](function(t){return delete n[e.src],t});return n[e.src]=r});return st.all(u)}}}function S(e){return{getBookmark:t(Tl,e),moveToBookmark:t(Al,e)}}function k(e){return{walk:function(t,n){return Xl(e,t,n)},split:Hm,normalize:function(t){return Yv(e,t).fold(K(!1),function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0})}}}var T,A,M,R,D,B,O,H,_,L,P,V,I,F,U,j,q,$=function(){},W=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}},K=function(e){return function(){return e}},X=function(e){return e},Y=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return!e.apply(null,t)}},G=K(!1),J=K(!0),Q=G,Z=J,ee=function(){return te},te=(R={fold:function(e){return e()},is:Q,isSome:Q,isNone:Z,getOr:M=function(e){return e},getOrThunk:A=function(e){return e()},getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:M,orThunk:A,map:ee,ap:ee,each:function(){},bind:ee,flatten:ee,exists:Q,forall:Z,filter:ee,equals:T=function(e){return e.isNone()},equals_:T,toArray:function(){return[]},toString:K("none()")},Object.freeze&&Object.freeze(R),R),ne=function(e){var t=function(){return e},n=function(){return o},r=function(t){return t(e)},o={fold:function(t,n){return n(e)},is:function(t){return e===t},isSome:Z,isNone:Q,getOr:t,getOrThunk:t,getOrDie:t,getOrNull:t,getOrUndefined:t,or:n,orThunk:n,map:function(t){return ne(t(e))},ap:function(t){return t.fold(ee,function(t){return ne(t(e))})},each:function(t){t(e)},bind:r,flatten:t,exists:r,forall:r,filter:function(t){return t(e)?o:te},equals:function(t){return t.is(e)},equals_:function(t,n){return t.fold(Q,function(t){return n(e,t)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},re={some:ne,none:ee,from:function(e){return null===e||e===undefined?te:ne(e)}},oe=function(e){return function(t){return function(e){if(null===e)return"null";var t=typeof e;return"object"===t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"===t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}(t)===e}},ie=oe("string"),ae=oe("object"),ue=oe("array"),se=oe("null"),le=oe("boolean"),ce=oe("function"),fe=oe("number"),de=Array.prototype.slice,he=(D=Array.prototype.indexOf)===undefined?function(e,t){return Ne(e,t)}:function(e,t){return D.call(e,t)},me=function(e,t){return-1<he(e,t)},ge=function(e,t){return ze(e,t).isSome()},pe=function(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o,e)}return r},ve=function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n,e)},ye=function(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o];(t(a,o,e)?n:r).push(a)}return{pass:n,fail:r}},be=function(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r,e)&&n.push(i)}return n},Ce=function(e,t,n){return function(e,t){for(var n=e.length-1;0<=n;n--)t(e[n],n,e)}(e,function(e){n=t(n,e)}),n},we=function(e,t,n){return ve(e,function(e){n=t(n,e)}),n},xe=function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n];if(t(o,n,e))return re.some(o)}return re.none()},ze=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n,e))return re.some(n);return re.none()},Ne=function(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return n;return-1},Ee=Array.prototype.push,Se=function(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!Array.prototype.isPrototypeOf(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);Ee.apply(t,e[n])}return t}(pe(e,t))},ke=function(e,t){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n],n,e))return!1;return!0},Te=function(e,t){return be(e,function(e){return!me(t,e)})},Ae=function(e){return 0===e.length?re.none():re.some(e[0])},Me=function(e){return 0===e.length?re.none():re.some(e[e.length-1])},Re=ce(Array.from)?Array.from:function(e){return de.call(e)},De=function(){return(De=Object.assign||function(e){
|
23
|
-
for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},Be="undefined"!=typeof e.window?e.window:Function("return this;")(),Oe=function(e,t){return function(e,t){for(var n=t!==undefined&&null!==t?t:Be,r=0;r<e.length&&n!==undefined&&null!==n;++r)n=n[e[r]];return n}(e.split("."),t)},He={getOrDie:function(e,t){var n=Oe(e,t);if(n===undefined||null===n)throw e+" not available on this browser";return n}},_e=function(){return He.getOrDie("URL")},Le=function(e){return _e().createObjectURL(e)},Pe=function(e){_e().revokeObjectURL(e)},Ve=e.navigator,Ie=Ve.userAgent,Fe=function(t){return"matchMedia"in e.window&&e.matchMedia(t).matches};I=/Android/.test(Ie),O=(O=!(B=/WebKit/.test(Ie))&&/MSIE/gi.test(Ie)&&/Explorer/gi.test(Ve.appName))&&/MSIE (\w+)\./.exec(Ie)[1],H=-1!==Ie.indexOf("Trident/")&&(-1!==Ie.indexOf("rv:")||-1!==Ve.appName.indexOf("Netscape"))&&11,_=-1!==Ie.indexOf("Edge/")&&!O&&!H&&12,O=O||H||_,L=!B&&!H&&/Gecko/.test(Ie),P=-1!==Ie.indexOf("Mac"),V=/(iPad|iPhone)/.test(Ie),F="FormData"in e.window&&"FileReader"in e.window&&"URL"in e.window&&!!Le,U=Fe("only screen and (max-device-width: 480px)")&&(I||V),j=Fe("only screen and (min-width: 800px)")&&(I||V),q=-1!==Ie.indexOf("Windows Phone"),_&&(B=!1);var Ue,je,qe,$e,We,Ke,Xe,Ye,Ge,Je,Qe,Ze,et,tt,nt,rt,ot,it,at,ut={opera:!1,webkit:B,ie:O,gecko:L,mac:P,iOS:V,android:I,contentEditable:!V||F||534<=parseInt(Ie.match(/AppleWebKit\/(\d*)/)[1],10),transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:8!==O,range:e.window.getSelection&&"Range"in e.window,documentMode:O&&!_?e.document.documentMode||7:10,fileApi:F,ceFalse:!1===O||8<O,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!1===O||11<O,desktop:!U&&!j,windowsPhone:q},st=window.Promise?window.Promise:function(){function t(e,t){return function(){e.apply(t,arguments)}}function n(e){var t=this;null!==this._state?c(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(M){return void e.reject(M)}e.resolve(r)}else(t._state?e.resolve:e.reject)(t._value)}):this._deferreds.push(e)}function r(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void u(t(n,e),t(r,this),t(o,this))}this._state=!0,this._value=e,i.call(this)}catch(M){o.call(this,M)}}function o(e){this._state=!1,this._value=e,i.call(this)}function i(){for(var e=0,t=this._deferreds.length;e<t;e++)n.call(this,this._deferreds[e]);this._deferreds=null}function a(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function u(e,t,n){var o=!1;try{e(function(e){o||(o=!0,t(e))},function(e){o||(o=!0,n(e))})}catch(r){if(o)return;o=!0,n(r)}}var s=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},l=function(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],u(e,t(r,this),t(o,this))},c=l.immediateFn||"function"==typeof e.setImmediate&&e.setImmediate||function(t){e.setTimeout(t,1)};return l.prototype["catch"]=function(e){return this.then(null,e)},l.prototype.then=function(e,t){var r=this;return new l(function(o,i){n.call(r,new a(e,t,o,i))})},l.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&s(arguments[0])?arguments[0]:arguments);return new l(function(n,r){function o(a,u){try{if(u&&("object"==typeof u||"function"==typeof u)){var s=u.then;if("function"==typeof s)return void s.call(u,function(e){o(a,e)},r)}e[a]=u,0==--i&&n(e)}catch(t){r(t)}}if(0===e.length)return n([]);for(var i=e.length,a=0;a<e.length;a++)o(a,e[a])})},l.resolve=function(e){return e&&"object"==typeof e&&e.constructor===l?e:new l(function(t){t(e)})},l.reject=function(e){return new l(function(t,n){n(e)})},l.race=function(e){return new l(function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)})},l}(),lt=function(t,n){return"number"!=typeof n&&(n=0),e.setTimeout(t,n)},ct=function(t,n){return"number"!=typeof n&&(n=1),e.setInterval(t,n)},ft=function(t,n){var r,o;return(o=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];e.clearTimeout(r),r=lt(function(){t.apply(this,o)},n)}).stop=function(){e.clearTimeout(r)},o},dt={requestAnimationFrame:function(t,n){Ue?Ue.then(t):Ue=new st(function(t){n||(n=e.document.body),function(t,n){var r,o=e.window.requestAnimationFrame,i=["ms","moz","webkit"];for(r=0;r<i.length&&!o;r++)o=e.window[i[r]+"RequestAnimationFrame"];o||(o=function(t){e.window.setTimeout(t,0)}),o(t,n)}(t,n)}).then(t)},setTimeout:lt,setInterval:ct,setEditorTimeout:function(e,t,n){return lt(function(){e.removed||t()},n)},setEditorInterval:function(t,n,r){var o;return o=ct(function(){t.removed?e.clearInterval(o):n()},r)},debounce:ft,throttle:ft,clearInterval:function(t){return e.clearInterval(t)},clearTimeout:function(t){return e.clearTimeout(t)}},ht=/^(?:mouse|contextmenu)|click/,mt={keyLocation:1,layerX:1,layerY:1,returnValue:1,webkitMovementX:1,webkitMovementY:1,keyIdentifier:1},gt=function(){return!1},pt=function(){return!0},vt=function(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)},yt=function(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)},bt=function(t,n){var r,o,i=n||{};for(r in t)mt[r]||(i[r]=t[r]);if(i.target||(i.target=i.srcElement||e.document),ut.experimentalShadowDom&&(i.target=function(e,t){if(e.composedPath){var n=e.composedPath();if(n&&0<n.length)return n[0]}return t}(t,i.target)),t&&ht.test(t.type)&&t.pageX===undefined&&t.clientX!==undefined){var a=i.target.ownerDocument||e.document,u=a.documentElement,s=a.body;i.pageX=t.clientX+(u&&u.scrollLeft||s&&s.scrollLeft||0)-(u&&u.clientLeft||s&&s.clientLeft||0),i.pageY=t.clientY+(u&&u.scrollTop||s&&s.scrollTop||0)-(u&&u.clientTop||s&&s.clientTop||0)}return i.preventDefault=function(){i.isDefaultPrevented=pt,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},i.stopPropagation=function(){i.isPropagationStopped=pt,t&&(t.stopPropagation?t.stopPropagation():t.cancelBubble=!0)},!(i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=pt,i.stopPropagation()})==((o=i).isDefaultPrevented===pt||o.isDefaultPrevented===gt)&&(i.isDefaultPrevented=gt,i.isPropagationStopped=gt,i.isImmediatePropagationStopped=gt),"undefined"==typeof i.metaKey&&(i.metaKey=!1),i},Ct=function(e,t,n){var r=e.document,o={type:"ready"};if(n.domLoaded)t(o);else{var i=function(){return"complete"===r.readyState||"interactive"===r.readyState&&r.body},a=function(){yt(e,"DOMContentLoaded",a),yt(e,"load",a),n.domLoaded||(n.domLoaded=!0,t(o))},u=function(){i()&&(yt(r,"readystatechange",u),a())},s=function(){try{r.documentElement.doScroll("left")}catch(e){return void dt.setTimeout(s)}a()};!r.addEventListener||ut.ie&&ut.ie<11?(vt(r,"readystatechange",u),r.documentElement.doScroll&&e.self===e.top&&s()):i()?a():vt(e,"DOMContentLoaded",a),vt(e,"load",a)}},wt=function(){function t(){this.domLoaded=!1,this.events={},this.count=1,this.expando="mce-data-"+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in e.document.documentElement,this.hasFocusIn="onfocusin"in e.document.documentElement,this.count=1}return t.prototype.bind=function(t,n,r,o){var i,a,u,s,l,c,f,d=this,h=e.window,m=function(e){d.executeHandlers(bt(e||h.event),i)};if(t&&3!==t.nodeType&&8!==t.nodeType){t[d.expando]?i=t[d.expando]:(i=d.count++,t[d.expando]=i,d.events[i]={}),o=o||t;var g=n.split(" ");for(u=g.length;u--;)c=m,l=f=!1,"DOMContentLoaded"===(s=g[u])&&(s="ready"),d.domLoaded&&"ready"===s&&"complete"===t.readyState?r.call(o,bt({type:s})):(d.hasMouseEnterLeave||(l=d.mouseEnterLeave[s])&&(c=function(e){var t,n;if(t=e.currentTarget,(n=e.relatedTarget)&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||((e=bt(e||h.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,d.executeHandlers(e,i))}),d.hasFocusIn||"focusin"!==s&&"focusout"!==s||(f=!0,l="focusin"===s?"focus":"blur",c=function(e){(e=bt(e||h.event)).type="focus"===e.type?"focusin":"focusout",d.executeHandlers(e,i)}),(a=d.events[i][s])?"ready"===s&&d.domLoaded?r(bt({type:s})):a.push({func:r,scope:o}):(d.events[i][s]=a=[{func:r,scope:o}],a.fakeName=l,a.capture=f,a.nativeHandler=c,"ready"===s?Ct(t,c,d):vt(t,l||s,c,f)));return t=a=0,r}},t.prototype.unbind=function(e,t,n){var r,o,i,a,u,s;if(!e||3===e.nodeType||8===e.nodeType)return this;if(r=e[this.expando]){if(s=this.events[r],t){var l=t.split(" ");for(i=l.length;i--;)if(o=s[u=l[i]]){if(n)for(a=o.length;a--;)if(o[a].func===n){var c=o.nativeHandler,f=o.fakeName,d=o.capture;(o=o.slice(0,a).concat(o.slice(a+1))).nativeHandler=c,o.fakeName=f,o.capture=d,s[u]=o}n&&0!==o.length||(delete s[u],yt(e,o.fakeName||u,o.nativeHandler,o.capture))}}else{for(u in s)o=s[u],yt(e,o.fakeName||u,o.nativeHandler,o.capture);s={}}for(u in s)return this;delete this.events[r];try{delete e[this.expando]}catch(te){e[this.expando]=null}}return this},t.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;var o=bt(null,n);for(o.type=t,o.target=e;(r=e[this.expando])&&this.executeHandlers(o,r),(e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow)&&!o.isPropagationStopped(););return this},t.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(this.unbind(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[this.expando]&&this.unbind(e);return this},t.prototype.destroy=function(){this.events={}},t.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},t.prototype.executeHandlers=function(e,t){var n,r,o,i,a=this.events[t];if(n=a&&a[e.type])for(r=0,o=n.length;r<o;r++)if((i=n[r])&&!1===i.func.call(i.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return},t.Event=new t,t}(),xt="sizzle"+-new Date,zt=e.window.document,Nt=0,Et=0,St=n(),kt=n(),Tt=n(),At=function(e,t){return e===t&&(Ze=!0),0},Mt=typeof undefined,Rt={}.hasOwnProperty,Dt=[],Bt=Dt.pop,Ot=Dt.push,Ht=Dt.push,_t=Dt.slice,Lt=Dt.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},Pt="[\\x20\\t\\r\\n\\f]",Vt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",It="\\["+Pt+"*("+Vt+")(?:"+Pt+"*([*^$|!~]?=)"+Pt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+Vt+"))|)"+Pt+"*\\]",Ft=":("+Vt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+It+")*)|.*)\\)|)",Ut=new RegExp("^"+Pt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Pt+"+$","g"),jt=new RegExp("^"+Pt+"*,"+Pt+"*"),qt=new RegExp("^"+Pt+"*([>+~]|"+Pt+")"+Pt+"*"),$t=new RegExp("="+Pt+"*([^\\]'\"]*?)"+Pt+"*\\]","g"),Wt=new RegExp(Ft),Kt=new RegExp("^"+Vt+"$"),Xt={ID:new RegExp("^#("+Vt+")"),CLASS:new RegExp("^\\.("+Vt+")"),TAG:new RegExp("^("+Vt+"|[*])"),ATTR:new RegExp("^"+It),PSEUDO:new RegExp("^"+Ft),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Pt+"*(even|odd|(([+-]|)(\\d*)n|)"+Pt+"*(?:([+-]|)"+Pt+"*(\\d+)|))"+Pt+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+Pt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Pt+"*((?:-\\d)?\\d*)"+Pt+"*\\)|)(?=[^-]|$)","i")},Yt=/^(?:input|select|textarea|button)$/i,Gt=/^h\d$/i,Jt=/^[^{]+\{\s*\[native \w/,Qt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Zt=/[+~]/,en=/'|\\/g,tn=new RegExp("\\\\([\\da-f]{1,6}"+Pt+"?|("+Pt+")|.)","ig"),nn=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{Ht.apply(Dt=_t.call(zt.childNodes),zt.childNodes),Dt[zt.childNodes.length].nodeType}catch(eE){Ht={apply:Dt.length?function(e,t){Ot.apply(e,_t.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var rn=function(e,t,n,r){var o,i,a,u,l,f,d,h,m,g;if((t?t.ownerDocument||t:zt)!==tt&&et(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=(t=t||tt).nodeType)&&9!==u)return[];if(rt&&!r){if(o=Qt.exec(e))if(a=o[1]){if(9===u){if(!(i=t.getElementById(a))||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&at(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return Ht.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&qe.getElementsByClassName)return Ht.apply(n,t.getElementsByClassName(a)),n}if(qe.qsa&&(!ot||!ot.test(e))){if(h=d=xt,m=t,g=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(f=Xe(e),(d=t.getAttribute("id"))?h=d.replace(en,"\\$&"):t.setAttribute("id",h),h="[id='"+h+"'] ",l=f.length;l--;)f[l]=h+c(f[l]);m=Zt.test(e)&&s(t.parentNode)||t,g=f.join(",")}if(g)try{return Ht.apply(n,m.querySelectorAll(g)),n}catch(ne){}finally{d||t.removeAttribute("id")}}}return Ge(e.replace(Ut,"$1"),t,n,r)};for(je in qe=rn.support={},Ke=rn.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},et=rn.setDocument=function(e){var t,n=e?e.ownerDocument||e:zt,r=n.defaultView;return n!==tt&&9===n.nodeType&&n.documentElement?(nt=(tt=n).documentElement,rt=!Ke(n),r&&r!==function(e){try{return e.top}catch(t){}return null}(r)&&(r.addEventListener?r.addEventListener("unload",function(){et()},!1):r.attachEvent&&r.attachEvent("onunload",function(){et()})),qe.attributes=!0,qe.getElementsByTagName=!0,qe.getElementsByClassName=Jt.test(n.getElementsByClassName),qe.getById=!0,$e.find.ID=function(e,t){if(typeof t.getElementById!==Mt&&rt){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},$e.filter.ID=function(e){var t=e.replace(tn,nn);return function(e){return e.getAttribute("id")===t}},$e.find.TAG=qe.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==Mt)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[o++];)1===n.nodeType&&r.push(n);return r},$e.find.CLASS=qe.getElementsByClassName&&function(e,t){if(rt)return t.getElementsByClassName(e)},it=[],ot=[],qe.disconnectedMatch=!0,ot=ot.length&&new RegExp(ot.join("|")),it=it.length&&new RegExp(it.join("|")),t=Jt.test(nt.compareDocumentPosition),at=t||Jt.test(nt.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},At=t?function(e,t){if(e===t)return Ze=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!qe.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===zt&&at(zt,e)?-1:t===n||t.ownerDocument===zt&&at(zt,t)?1:Qe?Lt.call(Qe,e)-Lt.call(Qe,t):0:4&r?-1:1)}:function(e,t){if(e===t)return Ze=!0,0;var r,i=0,a=e.parentNode,u=t.parentNode,s=[e],l=[t];if(!a||!u)return e===n?-1:t===n?1:a?-1:u?1:Qe?Lt.call(Qe,e)-Lt.call(Qe,t):0;if(a===u)return o(e,t);for(r=e;r=r.parentNode;)s.unshift(r);for(r=t;r=r.parentNode;)l.unshift(r);for(;s[i]===l[i];)i++;return i?o(s[i],l[i]):s[i]===zt?-1:l[i]===zt?1:0},n):tt},rn.matches=function(e,t){return rn(e,null,null,t)},rn.matchesSelector=function(e,t){if((e.ownerDocument||e)!==tt&&et(e),t=t.replace($t,"='$1']"),qe.matchesSelector&&rt&&(!it||!it.test(t))&&(!ot||!ot.test(t)))try{var n=(void 0).call(e,t);if(n||qe.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(eE){}return 0<rn(t,tt,null,[e]).length},rn.contains=function(e,t){return(e.ownerDocument||e)!==tt&&et(e),at(e,t)},rn.attr=function(e,t){(e.ownerDocument||e)!==tt&&et(e);var n=$e.attrHandle[t.toLowerCase()],r=n&&Rt.call($e.attrHandle,t.toLowerCase())?n(e,t,!rt):undefined;return r!==undefined?r:qe.attributes||!rt?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},rn.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},rn.uniqueSort=function(e){var t,n=[],r=0,o=0;if(Ze=!qe.detectDuplicates,Qe=!qe.sortStable&&e.slice(0),e.sort(At),Ze){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return Qe=null,e},We=rn.getText=function(e){var t,n="",r=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+=We(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=We(t);return n},($e=rn.selectors={cacheLength:50,createPseudo:r,match:Xt,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(tn,nn),e[3]=(e[3]||e[4]||e[5]||"").replace(tn,nn),"~="===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]||rn.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]&&rn.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Xt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Wt.test(n)&&(t=Xe(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(tn,nn).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=St[e+" "];return t||(t=new RegExp("(^|"+Pt+")"+e+"("+Pt+"|$)"))&&St(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!==Mt&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=rn.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1<o.indexOf(n):"$="===t?n&&o.slice(-n.length)===n:"~="===t?-1<(" "+o+" ").indexOf(n):"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,s){var l,c,f,d,h,m,g=i!==a?"nextSibling":"previousSibling",p=t.parentNode,v=u&&t.nodeName.toLowerCase(),y=!s&&!u;if(p){if(i){for(;g;){for(f=t;f=f[g];)if(u?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;m=g="only"===e&&!m&&"nextSibling"}return!0}if(m=[a?p.firstChild:p.lastChild],a&&y){for(h=(l=(c=p[xt]||(p[xt]={}))[e]||[])[0]===Nt&&l[1],d=l[0]===Nt&&l[2],f=h&&p.childNodes[h];f=++h&&f&&f[g]||(d=h=0)||m.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[Nt,h,d];break}}else if(y&&(l=(t[xt]||(t[xt]={}))[e])&&l[0]===Nt)d=l[1];else for(;(f=++h&&f&&f[g]||(d=h=0)||m.pop())&&((u?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(y&&((f[xt]||(f[xt]={}))[e]=[Nt,d]),f!==t)););return(d-=o)===r||d%r==0&&0<=d/r}}},PSEUDO:function(e,t){var n,o=$e.pseudos[e]||$e.setFilters[e.toLowerCase()]||rn.error("unsupported pseudo: "+e);return o[xt]?o(t):1<o.length?(n=[e,e,"",t],$e.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=Lt.call(e,i[a])]=!(n[r]=i[a])}):function(e){return o(e,0,n)}):o}},pseudos:{not:r(function(e){var t=[],n=[],o=Ye(e.replace(Ut,"$1"));return o[xt]?r(function(e,t,n,r){for(var i,a=o(e,null,r,[]),u=e.length;u--;)(i=a[u])&&(e[u]=!(t[u]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),!n.pop()}}),has:r(function(e){return function(t){return 0<rn(e,t).length}}),contains:r(function(e){return e=e.replace(tn,nn),function(t){return-1<(t.textContent||t.innerText||We(t)).indexOf(e)}}),lang:r(function(e){return Kt.test(e||"")||rn.error("unsupported lang: "+e),e=e.replace(tn,nn).toLowerCase(),function(t){var n;do{if(n=rt?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.window.location&&e.window.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===nt},focus:function(e){return e===tt.activeElement&&(!tt.hasFocus||tt.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!$e.pseudos.empty(e)},header:function(e){return Gt.test(e.nodeName)},input:function(e){return Yt.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:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=$e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})$e.pseudos[je]=i(je);for(je in{submit:!0,reset:!0})$e.pseudos[je]=a(je);l.prototype=$e.filters=$e.pseudos,$e.setFilters=new l,Xe=rn.tokenize=function(e,t){var n,r,o,i,a,u,s,l=kt[e+" "];if(l)return t?0:l.slice(0);for(a=e,u=[],s=$e.preFilter;a;){for(i in n&&!(r=jt.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=qt.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(Ut," ")}),a=a.slice(n.length)),$e.filter)$e.filter.hasOwnProperty(i)&&(!(r=Xt[i].exec(a))||s[i]&&!(r=s[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?rn.error(e):kt(e,u).slice(0)},Ye=rn.compile=function(e,t){var n,o=[],i=[],a=Tt[e+" "];if(!a){for(t||(t=Xe(e)),n=t.length;n--;)(a=g(t[n]))[xt]?o.push(a):i.push(a);(a=Tt(e,function(e,t){var n=0<t.length,o=0<e.length,i=function(r,i,a,u,s){var l,c,f,d=0,m="0",g=r&&[],p=[],v=Je,y=r||o&&$e.find.TAG("*",s),b=Nt+=null==v?1:Math.random()||.1,C=y.length;for(s&&(Je=i!==tt&&i);m!==C&&null!=(l=y[m]);m++){if(o&&l){for(c=0;f=e[c++];)if(f(l,i,a)){u.push(l);break}s&&(Nt=b)}n&&((l=!f&&l)&&d--,r&&g.push(l))}if(d+=m,n&&m!==d){for(c=0;f=t[c++];)f(g,p,i,a);if(r){if(0<d)for(;m--;)g[m]||p[m]||(p[m]=Bt.call(u));p=h(p)}Ht.apply(u,p),s&&!r&&0<p.length&&1<d+t.length&&rn.uniqueSort(u)}return s&&(Nt=b,Je=v),g};return n?r(i):i}(i,o))).selector=e}return a},Ge=rn.select=function(e,t,n,r){var o,i,a,u,l,f="function"==typeof e&&e,d=!r&&Xe(e=f.selector||e);if(n=n||[],1===d.length){if(2<(i=d[0]=d[0].slice(0)).length&&"ID"===(a=i[0]).type&&qe.getById&&9===t.nodeType&&rt&&$e.relative[i[1].type]){if(!(t=($e.find.ID(a.matches[0].replace(tn,nn),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=Xt.needsContext.test(e)?0:i.length;o--&&(a=i[o],!$e.relative[u=a.type]);)if((l=$e.find[u])&&(r=l(a.matches[0].replace(tn,nn),Zt.test(i[0].type)&&s(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&c(i)))return Ht.apply(n,r),n;break}}return(f||Ye(e,d))(r,t,!rt,n,Zt.test(e)&&s(t.parentNode)||t),n},qe.sortStable=xt.split("").sort(At).join("")===xt,qe.detectDuplicates=!!Ze,et(),qe.sortDetached=!0;var on=Array.isArray,an=function(e,t,n){var r,o;if(!e)return 0;if(n=n||e,e.length!==undefined){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return 0}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return 0;return 1},un=function(e,t,n){var r,o;for(r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1},sn={isArray:on,toArray:function(e){var t,n,r=e;if(!on(e))for(r=[],t=0,n=e.length;t<n;t++)r[t]=e[t];return r},each:an,map:function(e,t){var n=[];return an(e,function(r,o){n.push(t(r,o,e))}),n},filter:function(e,t){var n=[];return an(e,function(r,o){t&&!t(r,o,e)||n.push(r)}),n},indexOf:function(e,t){var n,r;if(e)for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},reduce:function(e,t,n,r){var o=0;for(arguments.length<3&&(n=e[0]);o<e.length;o++)n=t.call(r,n,e[o],o);return n},findIndex:un,find:function(e,t,n){var r=un(e,t,n);return-1!==r?e[r]:undefined},last:function(e){return e[e.length-1]}},ln=/^\s*|\s*$/g,cn=function(e){return null===e||e===undefined?"":(""+e).replace(ln,"")},fn=function(e,t){return t?!("array"!==t||!sn.isArray(e))||typeof e===t:e!==undefined},dn=function(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),sn.each(e,function(e,o){if(!1===t.call(r,e,o,n))return!1;dn(e,t,n,r)}))},hn={trim:cn,isArray:sn.isArray,is:fn,toArray:sn.toArray,makeMap:function(e,t,n){var r;for(t=t||",","string"==typeof(e=e||[])&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n},each:sn.each,map:sn.map,grep:sn.filter,inArray:sn.indexOf,hasOwn:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},extend:function(e,t){for(var n,r,o,i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var u,s=arguments;for(n=1,r=s.length;n<r;n++)for(o in t=s[n])t.hasOwnProperty(o)&&(u=t[o])!==undefined&&(e[o]=u);return e},create:function(e,t,n){var r,o,i,a,u,s=this,l=0;if(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e),i=e[3].match(/(^|\.)(\w+)$/i)[2],!(o=s.createNS(e[3].replace(/\.\w+$/,""),n))[i]){if("static"===e[2])return o[i]=t,void(this.onCreate&&this.onCreate(e[2],e[3],o[i]));t[i]||(t[i]=function(){},l=1),o[i]=t[i],s.extend(o[i].prototype,t),e[5]&&(r=s.resolve(e[5]).prototype,a=e[5].match(/\.(\w+)$/i)[1],u=o[i],o[i]=l?function(){return r[a].apply(this,arguments)}:function(){return this.parent=r[a],u.apply(this,arguments)},o[i].prototype[i]=o[i],s.each(r,function(e,t){o[i].prototype[t]=r[t]}),s.each(t,function(e,t){r[t]?o[i].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==i&&(o[i].prototype[t]=e)})),s.each(t["static"],function(e,t){o[i][t]=e})}},walk:dn,createNS:function(t,n){var r,o;for(n=n||e.window,t=t.split("."),r=0;r<t.length;r++)n[o=t[r]]||(n[o]={}),n=n[o];return n},resolve:function(t,n){var r,o;for(n=n||e.window,r=0,o=(t=t.split(".")).length;r<o&&(n=n[t[r]]);r++);return n},explode:function(e,t){return!e||fn(e,"array")?e:sn.map(e.split(t||","),cn)},_addCacheSuffix:function(e){var t=ut.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},mn=e.document,gn=Array.prototype.push,pn=Array.prototype.slice,vn=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,yn=wt.Event,bn=hn.makeMap("children,contents,next,prev"),Cn=function(e){return void 0!==e},wn=function(e){return"string"==typeof e},xn=function(e,t){var n,r,o;for(o=(t=t||mn).createElement("div"),n=t.createDocumentFragment(),o.innerHTML=e;r=o.firstChild;)n.appendChild(r);return n},zn=function(e,t,n,r){var o;if(wn(t))t=xn(t,Ln(e[0]));else if(t.length&&!t.nodeType){if(t=Xn.makeArray(t),r)for(o=t.length-1;0<=o;o--)zn(e,t[o],n,r);else for(o=0;o<t.length;o++)zn(e,t[o],n,r);return e}if(t.nodeType)for(o=e.length;o--;)n.call(e[o],t);return e},Nn=function(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")},En=function(e,t,n){var r,o;return t=Xn(t)[0],e.each(function(){var e=this;n&&r===e.parentNode||(r=e.parentNode,o=t.cloneNode(!1),e.parentNode.insertBefore(o,e)),o.appendChild(e)}),e},Sn=hn.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),kn=hn.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),Tn={"for":"htmlFor","class":"className",readonly:"readOnly"},An={float:"cssFloat"},Mn={},Rn={},Dn=function(e,t){return new Xn.fn.init(e,t)},Bn=/^\s*|\s*$/g,On=function(e){return null===e||e===undefined?"":(""+e).replace(Bn,"")},Hn=function(e,t){var n,r,o,i;if(e)if((n=e.length)===undefined){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n&&(i=e[o],!1!==t.call(i,o,i));o++);return e},_n=function(e,t){var n=[];return Hn(e,function(e,r){t(r,e)&&n.push(r)}),n},Ln=function(e){return e?9===e.nodeType?e:e.ownerDocument:mn};Dn.fn=Dn.prototype={constructor:Dn,selector:"",context:null,length:0,init:function(t,n){var r,o,i=this;if(!t)return i;if(t.nodeType)return i.context=i[0]=t,i.length=1,i;if(n&&n.nodeType)i.context=n;else{if(n)return Xn(t).attr(n);i.context=n=e.document}if(wn(t)){if(!(r="<"===(i.selector=t).charAt(0)&&">"===t.charAt(t.length-1)&&3<=t.length?[null,t,null]:vn.exec(t)))return Xn(n).find(t);if(r[1])for(o=xn(t,Ln(n)).firstChild;o;)gn.call(i,o),o=o.nextSibling;else{if(!(o=Ln(n).getElementById(r[2])))return i;if(o.id!==r[2])return i.find(t);i.length=1,i[0]=o}}else this.add(t,!1);return i},toArray:function(){return hn.toArray(this)},add:function(e,t){var n,r,o=this;if(wn(e))return o.add(Xn(e));if(!1!==t)for(n=Xn.unique(o.toArray().concat(Xn.makeArray(e))),o.length=n.length,r=0;r<n.length;r++)o[r]=n[r];else gn.apply(o,Xn.makeArray(e));return o},attr:function(e,t){var n,r=this;if("object"==typeof e)Hn(e,function(e,t){r.attr(e,t)});else{if(!Cn(t)){if(r[0]&&1===r[0].nodeType){if((n=Mn[e])&&n.get)return n.get(r[0],e);if(kn[e])return r.prop(e)?e:undefined;null===(t=r[0].getAttribute(e,2))&&(t=undefined)}return t}this.each(function(){var n;if(1===this.nodeType){if((n=Mn[e])&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}})}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=Tn[e]||e))Hn(e,function(e,t){n.prop(e,t)});else{if(!Cn(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each(function(){1===this.nodeType&&(this[e]=t)})}return n},css:function(e,t){var n,r,o=this,i=function(e){return e.replace(/-(\D)/g,function(e,t){return t.toUpperCase()})},a=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e})};if("object"==typeof e)Hn(e,function(e,t){o.css(e,t)});else if(Cn(t))e=i(e),"number"!=typeof t||Sn[e]||(t=t.toString()+"px"),o.each(function(){var n=this.style;if((r=Rn[e])&&r.set)r.set(this,t);else{try{this.style[An[e]||e]=t}catch(i){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(a(e)):n.removeAttribute(e))}});else{if(n=o[0],(r=Rn[e])&&r.get)return r.get(n);if(!n.ownerDocument.defaultView)return n.currentStyle?n.currentStyle[i(e)]:"";try{return n.ownerDocument.defaultView.getComputedStyle(n,null).getPropertyValue(a(e))}catch(Q){return undefined}}return o},remove:function(){for(var e,t=this.length;t--;)e=this[t],yn.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this.length;t--;)for(e=this[t];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(e){var t,n=this;if(Cn(e)){t=n.length;try{for(;t--;)n[t].innerHTML=e}catch(R){Xn(n[t]).empty().append(e)}return n}return n[0]?n[0].innerHTML:""},text:function(e){var t,n=this;if(Cn(e)){for(t=n.length;t--;)"innerText"in n[t]?n[t].innerText=e:n[0].textContent=e;return n}return n[0]?n[0].innerText||n[0].textContent:""},append:function(){return zn(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)})},prepend:function(){return zn(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)},!0)},before:function(){return this[0]&&this[0].parentNode?zn(this,arguments,function(e){this.parentNode.insertBefore(e,this)}):this},after:function(){return this[0]&&this[0].parentNode?zn(this,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):this},appendTo:function(e){return Xn(e).append(this),this},prependTo:function(e){return Xn(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return En(this,e)},wrapAll:function(e){return En(this,e,!0)},wrapInner:function(e){return this.each(function(){Xn(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){Xn(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),Xn(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!=typeof e||(-1!==e.indexOf(" ")?Hn(e.split(" "),function(){n.toggleClass(this,t)}):n.each(function(n,r){var o,i;(i=Nn(r,e))!==t&&(o=r.className,i?r.className=On((" "+o+" ").replace(" "+e+" "," ")):r.className+=o?" "+e:e)})),n},hasClass:function(e){return Nn(this[0],e)},each:function(e){return Hn(this,e)},on:function(e,t){
|
24
|
-
return this.each(function(){yn.bind(this,e,t)})},off:function(e,t){return this.each(function(){yn.unbind(this,e,t)})},trigger:function(e){return this.each(function(){"object"==typeof e?yn.fire(this,e.type,e):yn.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return new Xn(pn.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;t<n;t++)Xn.find(e,this[t],r);return Xn(r)},filter:function(e){return Xn("function"==typeof e?_n(this.toArray(),function(t,n){return e(n,t)}):Xn.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Xn&&(e=e[0]),this.each(function(n,r){for(;r;){if("string"==typeof e&&Xn(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}}),Xn(t)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):((t=this[0])&&(r=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(i=(o=t.getBoundingClientRect()).left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:gn,sort:Array.prototype.sort,splice:Array.prototype.splice},hn.extend(Dn,{extend:hn.extend,makeArray:function(e){return(t=e)&&t===t.window||e.nodeType?[e]:hn.toArray(e);var t},inArray:function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},isArray:hn.isArray,each:Hn,trim:On,grep:_n,find:rn,expr:rn.selectors,unique:rn.uniqueSort,text:rn.getText,contains:rn.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return 1===t.length?Xn.find.matchesSelector(t[0],e)?[t[0]]:[]:Xn.find.matches(e,t)}});var Pn=function(e,t,n){var r=[],o=e[t];for("string"!=typeof n&&n instanceof Xn&&(n=n[0]);o&&9!==o.nodeType;){if(n!==undefined){if(o===n)break;if("string"==typeof n&&Xn(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r},Vn=function(e,t,n,r){var o=[];for(r instanceof Xn&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(r!==undefined){if(e===r)break;if("string"==typeof r&&Xn(e).is(r))break}o.push(e)}return o},In=function(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null};Hn({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Pn(e,"parentNode")},next:function(e){return In(e,"nextSibling",1)},prev:function(e){return In(e,"previousSibling",1)},children:function(e){return Vn(e.firstChild,"nextSibling",1)},contents:function(e){return hn.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,t){Dn.fn[e]=function(n){var r=[];this.each(function(){var e=t.call(r,this,n,r);e&&(Xn.isArray(e)?r.push.apply(r,e):r.push(e))}),1<this.length&&(bn[e]||(r=Xn.unique(r)),0===e.indexOf("parents")&&(r=r.reverse()));var o=Xn(r);return n?o.filter(n):o}}),Hn({parentsUntil:function(e,t){return Pn(e,"parentNode",t)},nextUntil:function(e,t){return Vn(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Vn(e,"previousSibling",1,t).slice(1)}},function(e,t){Dn.fn[e]=function(n,r){var o=[];this.each(function(){var e=t.call(o,this,n,o);e&&(Xn.isArray(e)?o.push.apply(o,e):o.push(e))}),1<this.length&&(o=Xn.unique(o),0!==e.indexOf("parents")&&"prevUntil"!==e||(o=o.reverse()));var i=Xn(o);return r?i.filter(r):i}}),Dn.fn.is=function(e){return!!e&&0<this.filter(e).length},Dn.fn.init.prototype=Dn.fn,Dn.overrideDefaults=function(e){var t,n=function(r,o){return t=t||e(),0===arguments.length&&(r=t.element),o||(o=t.context),new n.fn.init(r,o)};return Xn.extend(n,this),n};var Fn=function(e,t,n){Hn(n,function(n,r){e[n]=e[n]||{},e[n][t]=r})};ut.ie&&ut.ie<8&&(Fn(Mn,"get",{maxlength:function(e){var t=e.maxLength;return 2147483647===t?undefined:t},size:function(e){var t=e.size;return 20===t?undefined:t},"class":function(e){return e.className},style:function(e){var t=e.style.cssText;return 0===t.length?undefined:t}}),Fn(Mn,"set",{"class":function(e,t){e.className=t},style:function(e,t){e.style.cssText=t}})),ut.ie&&ut.ie<9&&(An.float="styleFloat",Fn(Rn,"set",{opacity:function(e,t){var n=e.style;null===t||""===t?n.removeAttribute("filter"):(n.zoom=1,n.filter="alpha(opacity="+100*t+")")}})),Dn.attrHooks=Mn,Dn.cssHooks=Rn;var Un,jn,qn,$n,Wn,Kn,Xn=Dn,Yn=function(e,t){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}return undefined}(e,t);if(!n)return{major:0,minor:0};var r=function(e){return Number(t.replace(n,"$"+e))};return Jn(r(1),r(2))},Gn=function(){return Jn(0,0)},Jn=function(e,t){return{major:e,minor:t}},Qn={nu:Jn,detect:function(e,t){var n=String(t).toLowerCase();return 0===e.length?Gn():Yn(e,n)},unknown:Gn},Zn="Firefox",er=function(e,t){return function(){return t===e}},tr=function(e){var t=e.current;return{current:t,version:e.version,isEdge:er("Edge",t),isChrome:er("Chrome",t),isIE:er("IE",t),isOpera:er("Opera",t),isFirefox:er(Zn,t),isSafari:er("Safari",t)}},nr={unknown:function(){return tr({current:undefined,version:Qn.unknown()})},nu:tr,edge:K("Edge"),chrome:K("Chrome"),ie:K("IE"),opera:K("Opera"),firefox:K(Zn),safari:K("Safari")},rr="Windows",or="Android",ir="Solaris",ar="FreeBSD",ur=function(e,t){return function(){return t===e}},sr=function(e){var t=e.current;return{current:t,version:e.version,isWindows:ur(rr,t),isiOS:ur("iOS",t),isAndroid:ur(or,t),isOSX:ur("OSX",t),isLinux:ur("Linux",t),isSolaris:ur(ir,t),isFreeBSD:ur(ar,t)}},lr={unknown:function(){return sr({current:undefined,version:Qn.unknown()})},nu:sr,windows:K(rr),ios:K("iOS"),android:K(or),linux:K("Linux"),osx:K("OSX"),solaris:K(ir),freebsd:K(ar)},cr=function(e,t){var n=String(t).toLowerCase();return xe(e,function(e){return e.search(n)})},fr=function(e,t){return cr(e,t).map(function(e){var n=Qn.detect(e.versionRegexes,t);return{current:e.name,version:n}})},dr=function(e,t){return cr(e,t).map(function(e){var n=Qn.detect(e.versionRegexes,t);return{current:e.name,version:n}})},hr=function(e,t){return-1!==e.indexOf(t)},mr=function(e,t){return n=e,o=0,""===(r=t)||!(n.length<r.length)&&n.substr(o,o+r.length)===r;var n,r,o},gr=function(e){return e.replace(/^\s+|\s+$/g,"")},pr=function(e){return e.replace(/\s+$/g,"")},vr=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,yr=function(e){return function(t){return hr(t,e)}},br=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return hr(e,"edge/")&&hr(e,"chrome")&&hr(e,"safari")&&hr(e,"applewebkit")}},{name:"Chrome",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,vr],search:function(e){return hr(e,"chrome")&&!hr(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return hr(e,"msie")||hr(e,"trident")}},{name:"Opera",versionRegexes:[vr,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:yr("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:yr("firefox")},{name:"Safari",versionRegexes:[vr,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(hr(e,"safari")||hr(e,"mobile/"))&&hr(e,"applewebkit")}}],Cr=[{name:"Windows",search:yr("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return hr(e,"iphone")||hr(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:yr("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:yr("os x"),versionRegexes:[/.*?os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:yr("linux"),versionRegexes:[]},{name:"Solaris",search:yr("sunos"),versionRegexes:[]},{name:"FreeBSD",search:yr("freebsd"),versionRegexes:[]}],wr={browsers:K(br),oses:K(Cr)},xr=function(e){var t,n,r,o,i,a,u,s,l,c,f,d=wr.browsers(),h=wr.oses(),m=fr(d,e).fold(nr.unknown,nr.nu),g=dr(h,e).fold(lr.unknown,lr.nu);return{browser:m,os:g,deviceType:(n=m,r=e,o=(t=g).isiOS()&&!0===/ipad/i.test(r),i=t.isiOS()&&!o,a=t.isAndroid()&&3===t.version.major,u=t.isAndroid()&&4===t.version.major,s=o||a||u&&!0===/mobile/i.test(r),l=t.isiOS()||t.isAndroid(),c=l&&!s,f=n.isSafari()&&t.isiOS()&&!1===/safari/i.test(r),{isiPad:K(o),isiPhone:K(i),isTablet:K(s),isPhone:K(c),isTouch:K(l),isAndroid:t.isAndroid,isiOS:t.isiOS,isWebView:K(f)})}},zr={detect:(qn=!(Un=function(){var t=e.navigator.userAgent;return xr(t)}),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return qn||(qn=!0,jn=Un.apply(null,e)),jn})},Nr=function(e){if(null===e||e===undefined)throw new Error("Node cannot be null or undefined");return{dom:K(e)}},Er={fromHtml:function(t,n){var r=(n||e.document).createElement("div");if(r.innerHTML=t,!r.hasChildNodes()||1<r.childNodes.length)throw e.console.error("HTML does not have a single root node",t),new Error("HTML must have a single root node");return Nr(r.childNodes[0])},fromTag:function(t,n){var r=(n||e.document).createElement(t);return Nr(r)},fromText:function(t,n){var r=(n||e.document).createTextNode(t);return Nr(r)},fromDom:Nr,fromPoint:function(e,t,n){var r=e.dom();return re.from(r.elementFromPoint(t,n)).map(Nr)}},Sr=(e.Node.ATTRIBUTE_NODE,e.Node.CDATA_SECTION_NODE,e.Node.COMMENT_NODE,e.Node.DOCUMENT_NODE),kr=(e.Node.DOCUMENT_TYPE_NODE,e.Node.DOCUMENT_FRAGMENT_NODE,e.Node.ELEMENT_NODE),Tr=e.Node.TEXT_NODE,Ar=(e.Node.PROCESSING_INSTRUCTION_NODE,e.Node.ENTITY_REFERENCE_NODE,e.Node.ENTITY_NODE,e.Node.NOTATION_NODE,function(e){return e.dom().nodeName.toLowerCase()}),Mr=function(e){return function(t){return t.dom().nodeType===e}},Rr=Mr(kr),Dr=Mr(Tr),Br=Mr(Sr),Or=Object.keys,Hr=Object.hasOwnProperty,_r=function(e,t){for(var n=Or(e),r=0,o=n.length;r<o;r++){var i=n[r];t(e[i],i,e)}},Lr=function(e,t){return Pr(e,function(e,n,r){return{k:n,v:t(e,n,r)}})},Pr=function(e,t){var n={};return _r(e,function(r,o){var i=t(r,o,e);n[i.k]=i.v}),n},Vr=function(e,t){var n={},r={};return _r(e,function(e,o){(t(e,o)?n:r)[o]=e}),{t:n,f:r}},Ir=function(e,t){return Fr(e,t)?re.from(e[t]):re.none()},Fr=function(e,t){return Hr.call(e,t)},Ur=function(e){return e.style!==undefined&&ce(e.style.getPropertyValue)},jr=function(e){var t=Dr(e)?e.dom().parentNode:e.dom();return t!==undefined&&null!==t&&t.ownerDocument.body.contains(t)},qr=function(t,n,r){if(!(ie(r)||le(r)||fe(r)))throw e.console.error("Invalid call to Attr.set. Key ",n,":: Value ",r,":: Element ",t),new Error("Attribute value was not simple");t.setAttribute(n,r+"")},$r=function(e,t,n){qr(e.dom(),t,n)},Wr=function(e,t){var n=e.dom();_r(t,function(e,t){qr(n,t,e)})},Kr=function(e,t){var n=e.dom().getAttribute(t);return null===n?undefined:n},Xr=function(e,t){e.dom().removeAttribute(t)},Yr=function(t,n){var r=t.dom(),o=e.window.getComputedStyle(r).getPropertyValue(n),i=""!==o||jr(t)?o:Gr(r,n);return null===i?undefined:i},Gr=function(e,t){return Ur(e)?e.style.getPropertyValue(t):""},Jr=function(e,t){var n=e.dom(),r=Gr(n,t);return re.from(r).filter(function(e){return 0<e.length})},Qr=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e.length!==t.length)throw new Error('Wrong number of arguments to struct. Expected "['+e.length+']", got '+t.length+" arguments");var r={};return ve(e,function(e,n){r[e]=K(t[n])}),r}},Zr=function(e,t){for(var n=[],r=function(e){return n.push(e),t(e)},o=t(e);(o=o.bind(r)).isSome(););return n},eo=function(){return He.getOrDie("Node")},to=function(e,t,n){return 0!=(e.compareDocumentPosition(t)&n)},no=function(e,t){return to(e,t,eo().DOCUMENT_POSITION_CONTAINED_BY)},ro=kr,oo=Sr,io=function(e,t){var n=e.dom();if(n.nodeType!==ro)return!1;if(n.matches!==undefined)return n.matches(t);if(n.msMatchesSelector!==undefined)return n.msMatchesSelector(t);if(n.webkitMatchesSelector!==undefined)return n.webkitMatchesSelector(t);if(n.mozMatchesSelector!==undefined)return n.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")},ao=function(e){return e.nodeType!==ro&&e.nodeType!==oo||0===e.childElementCount},uo=function(e,t){return e.dom()===t.dom()},so=zr.detect().browser.isIE()?function(e,t){return no(e.dom(),t.dom())}:function(e,t){var n=e.dom(),r=t.dom();return n!==r&&n.contains(r)},lo=function(e){return Er.fromDom(e.dom().ownerDocument)},co=function(e){var t=e.dom().ownerDocument.defaultView;return Er.fromDom(t)},fo=function(e){var t=e.dom();return re.from(t.parentNode).map(Er.fromDom)},ho=function(e){var t=e.dom();return re.from(t.previousSibling).map(Er.fromDom)},mo=function(e){var t=e.dom();return re.from(t.nextSibling).map(Er.fromDom)},go=function(e){return t=Zr(e,ho),(n=de.call(t,0)).reverse(),n;var t,n},po=function(e){return Zr(e,mo)},vo=function(e){var t=e.dom();return pe(t.childNodes,Er.fromDom)},yo=function(e,t){var n=e.dom().childNodes;return re.from(n[t]).map(Er.fromDom)},bo=function(e){return yo(e,0)},Co=function(e){return yo(e,e.dom().childNodes.length-1)},wo=(Qr("element","offset"),zr.detect().browser),xo=function(e){return xe(e,Rr)},zo=function(e,t){return e.children&&me(e.children,t)},No={getPos:function(e,t,n){var r,o,i,a=0,u=0,s=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===Yr(Er.fromDom(e),"position"))return{x:a=(o=t.getBoundingClientRect()).left+(s.documentElement.scrollLeft||e.scrollLeft)-s.documentElement.clientLeft,y:u=o.top+(s.documentElement.scrollTop||e.scrollTop)-s.documentElement.clientTop};for(r=t;r&&r!==n&&r.nodeType&&!zo(r,n);)a+=r.offsetLeft||0,u+=r.offsetTop||0,r=r.offsetParent;for(r=t.parentNode;r&&r!==n&&r.nodeType&&!zo(r,n);)a-=r.scrollLeft||0,u-=r.scrollTop||0,r=r.parentNode;u+=(i=Er.fromDom(t),wo.isFirefox()&&"table"===Ar(i)?xo(vo(i)).filter(function(e){return"caption"===Ar(e)}).bind(function(e){return xo(po(e)).map(function(t){var n=t.dom().offsetTop,r=e.dom().offsetTop,o=e.dom().offsetHeight;return n<=r?-o:0})}).getOr(0):0)}return{x:a,y:u}}},Eo=function(t){var n=re.none(),r=[],o=function(e){i()?u(e):r.push(e)},i=function(){return n.isSome()},a=function(e){ve(e,u)},u=function(t){n.each(function(n){e.setTimeout(function(){t(n)},0)})};return t(function(e){n=re.some(e),a(r),r=[]}),{get:o,map:function(e){return Eo(function(t){o(function(n){t(e(n))})})},isReady:i}},So={nu:Eo,pure:function(e){return Eo(function(t){t(e)})}},ko=function(t){var n=function(n){var r;t((r=n,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var o=this;e.setTimeout(function(){r.apply(o,t)},0)}))},r=function(){return So.nu(n)};return{map:function(e){return ko(function(t){n(function(n){var r=e(n);t(r)})})},bind:function(e){return ko(function(t){n(function(n){e(n).get(t)})})},anonBind:function(e){return ko(function(t){n(function(){e.get(t)})})},toLazy:r,toCached:function(){var e=null;return ko(function(t){null===e&&(e=r()),e.get(t)})},get:n}},To={nu:ko,pure:function(e){return ko(function(t){t(e)})}},Ao=function(e,t){return t(function(t){var n=[],r=0;0===e.length?t([]):ve(e,function(o,i){var a;o.get((a=i,function(o){n[a]=o,++r>=e.length&&t(n)}))})})},Mo=function(e){return Ao(e,To.nu)},Ro=function(e){return{is:function(t){return e===t},isValue:J,isError:G,getOr:K(e),getOrThunk:K(e),getOrDie:K(e),or:function(){return Ro(e)},orThunk:function(){return Ro(e)},fold:function(t,n){return n(e)},map:function(t){return Ro(t(e))},mapError:function(){return Ro(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOption:function(){return re.some(e)}}},Do=function(e){return{is:G,isValue:G,isError:J,getOr:X,getOrThunk:function(e){return e()},getOrDie:function(){return t=String(e),function(){throw new Error(t)}();var t},or:function(e){return e},orThunk:function(e){return e()},fold:function(t){return t(e)},map:function(){return Do(e)},mapError:function(t){return Do(t(e))},each:$,bind:function(){return Do(e)},exists:G,forall:J,toOption:re.none}},Bo={value:Ro,error:Do,fromOption:function(e,t){return e.fold(function(){return Do(t)},Ro)}},Oo=function(e){return function(t){return!!t&&t.nodeType===e}},Ho=Oo(1),_o=function(e){var t=e.map(function(e){return e.toLowerCase()});return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return me(t,n)}return!1}},Lo=function(e){return function(t){if(Ho(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}},Po=_o(["textarea","input"]),Vo=Oo(3),Io=Oo(8),Fo=Oo(9),Uo=Oo(11),jo=_o(["br"]),qo=Lo("true"),$o=Lo("false"),Wo={isText:Vo,isElement:Ho,isComment:Io,isDocument:Fo,isDocumentFragment:Uo,isBr:jo,isContentEditableTrue:qo,isContentEditableFalse:$o,isRestrictedNode:function(e){return!!e&&!Object.getPrototypeOf(e)},matchNodeNames:_o,hasPropValue:function(e,t){return function(n){return Ho(n)&&n[e]===t}},hasAttribute:function(e){return function(t){return Ho(t)&&t.hasAttribute(e)}},hasAttributeValue:function(e,t){return function(n){return Ho(n)&&n.getAttribute(e)===t}},matchStyleValues:function(e,t){var n=t.toLowerCase().split(" ");return function(t){var r;if(Ho(t))for(r=0;r<n.length;r++){var o=t.ownerDocument.defaultView.getComputedStyle(t,null);if((o?o.getPropertyValue(e):null)===n[r])return!0}return!1}},isBogus:function(e){return Ho(e)&&e.hasAttribute("data-mce-bogus")},isBogusAll:function(e){return Ho(e)&&"all"===e.getAttribute("data-mce-bogus")},isTable:function(e){return Ho(e)&&"TABLE"===e.tagName},isTextareaOrInput:Po},Ko=function(){function e(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},e.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},e.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},e.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n])return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])return o}}},e.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e){if(o=e[n],this.rootNode&&o===this.rootNode)return;if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}if((i=e.parentNode)&&i!==this.rootNode)return i}},e}(),Xo=function(e){var t;return function(n){return(t=t||function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n}(e,K(!0))).hasOwnProperty(Ar(n))}},Yo=Xo(["h1","h2","h3","h4","h5","h6"]),Go=Xo(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),Jo=function(e){return Rr(e)&&!Go(e)},Qo=function(e){return Rr(e)&&"br"===Ar(e)},Zo=Xo(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),ei=Xo(["ul","ol","dl"]),ti=Xo(["li","dd","dt"]),ni=Xo(["area","base","basefont","br","col","frame","hr","img","input","isindex","link","meta","param","embed","source","wbr","track"]),ri=Xo(["thead","tbody","tfoot"]),oi=Xo(["td","th"]),ii=Xo(["pre","script","textarea","style"]),ai=function(e){return e&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},ui=function(e,t){var n,r=t.childNodes;if(!Wo.isElement(t)||!ai(t)){for(n=r.length-1;0<=n;n--)ui(e,r[n]);if(!1===Wo.isDocument(t)){if(Wo.isText(t)&&0<t.nodeValue.length){var o=hn.trim(t.nodeValue).length;if(e.isBlock(t.parentNode)||0<o)return;if(0===o&&(a=(i=t).previousSibling&&"SPAN"===i.previousSibling.nodeName,u=i.nextSibling&&"SPAN"===i.nextSibling.nodeName,a&&u))return}else if(Wo.isElement(t)&&(1===(r=t.childNodes).length&&ai(r[0])&&t.parentNode.insertBefore(r[0],t),r.length||ni(Er.fromDom(t))))return;e.remove(t)}var i,a,u;return t}},si={trimNode:ui},li=hn.makeMap,ci=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,fi=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,di=/[<>&\"\']/g,hi=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,mi={128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"};Wn={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},Kn={"<":"<",">":">","&":"&",""":'"',"'":"'"};var gi=function(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),Wn[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}};$n=gi("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32);var pi,vi=function(e,t){return e.replace(t?ci:fi,function(e){return Wn[e]||e})},yi=function(e,t){return e.replace(t?ci:fi,function(e){return 1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":Wn[e]||"&#"+e.charCodeAt(0)+";"})},bi=function(e,t,n){return n=n||$n,e.replace(t?ci:fi,function(e){return Wn[e]||n[e]||e})},Ci={encodeRaw:vi,encodeAllRaw:function(e){return(""+e).replace(di,function(e){return Wn[e]||e})},encodeNumeric:yi,encodeNamed:bi,getEncodeFunc:function(e,t){var n=gi(t)||$n,r=li(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?ci:fi,function(e){return Wn[e]!==undefined?Wn[e]:n[e]!==undefined?n[e]:1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"})}:r.named?t?function(e,t){return bi(e,t,n)}:bi:r.numeric?yi:vi},decode:function(e){return e.replace(hi,function(e,t){return t?65535<(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):mi[t]||String.fromCharCode(t):Kn[e]||$n[e]||(n=e,(r=Er.fromTag("div").dom()).innerHTML=n,r.textContent||r.innerText||n);var n,r})}},wi={},xi={},zi=hn.makeMap,Ni=hn.each,Ei=hn.extend,Si=hn.explode,ki=hn.inArray,Ti=function(e,t){return(e=hn.trim(e))?e.split(t||" "):[]},Ai=function(e){var t,n,r,o,i,a,u={},s=function(e,n,r){var o,i,a,s=function(e,t){var n,r,o={};for(n=0,r=e.length;n<r;n++)o[e[n]]=t||{};return o};for(n=n||"","string"==typeof(r=r||[])&&(r=Ti(r)),o=(e=Ti(e)).length;o--;)a={attributes:s(i=Ti([t,n].join(" "))),attributesOrder:i,children:s(r,xi)},u[e[o]]=a},l=function(e,t){var n,r,o,i;for(n=(e=Ti(e)).length,t=Ti(t);n--;)for(r=u[e[n]],o=0,i=t.length;o<i;o++)r.attributes[t[o]]={},r.attributesOrder.push(t[o])};return wi[e]?wi[e]:(t="id accesskey class dir lang style tabindex title role",n="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",r="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==e&&(t+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",n+=" article aside details dialog figure main header footer hgroup section nav",r+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==e&&(t+=" xml:lang",r=[r,a="acronym applet basefont big font strike tt"].join(" "),Ni(Ti(a),function(e){s(e,"",r)}),n=[n,i="center dir isindex noframes"].join(" "),o=[n,r].join(" "),Ni(Ti(i),function(e){s(e,"",o)})),o=o||[n,r].join(" "),s("html","manifest","head body"),s("head","","base command link meta noscript script style title"),s("title hr noscript br"),s("base","href target"),s("link","href rel media hreflang type sizes hreflang"),s("meta","name http-equiv content charset"),s("style","media type scoped"),s("script","src async defer type charset"),s("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",o),s("address dt dd div caption","",o),s("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",r),s("blockquote","cite",o),s("ol","reversed start type","li"),s("ul","","li"),s("li","value",o),s("dl","","dt dd"),s("a","href target rel media hreflang type",r),s("q","cite",r),s("ins del","cite datetime",o),s("img","src sizes srcset alt usemap ismap width height"),s("iframe","src name width height",o),s("embed","src type width height"),s("object","data type typemustmatch name usemap form width height",[o,"param"].join(" ")),s("param","name value"),s("map","name",[o,"area"].join(" ")),s("area","alt coords shape href target rel media hreflang type"),s("table","border","caption colgroup thead tfoot tbody tr"+("html4"===e?" col":"")),s("colgroup","span","col"),s("col","span"),s("tbody thead tfoot","","tr"),s("tr","","td th"),s("td","colspan rowspan headers",o),s("th","colspan rowspan headers scope abbr",o),s("form","accept-charset action autocomplete enctype method name novalidate target",o),s("fieldset","disabled form name",[o,"legend"].join(" ")),s("label","form for",r),s("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),s("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===e?o:r),s("select","disabled form multiple name required size","option optgroup"),s("optgroup","disabled label","option"),s("option","disabled label selected value"),s("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),s("menu","type label",[o,"li"].join(" ")),s("noscript","",o),"html4"!==e&&(s("wbr"),s("ruby","",[r,"rt rp"].join(" ")),s("figcaption","",o),s("mark rt rp summary bdi","",r),s("canvas","width height",o),s("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[o,"track source"].join(" ")),s("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[o,"track source"].join(" ")),s("picture","","img source"),s("source","src srcset type media sizes"),s("track","kind src srclang label default"),s("datalist","",[r,"option"].join(" ")),s("article section nav aside main header footer","",o),s("hgroup","","h1 h2 h3 h4 h5 h6"),s("figure","",[o,"figcaption"].join(" ")),s("time","datetime",r),s("dialog","open",o),s("command","type label icon disabled checked radiogroup command"),s("output","for form name",r),s("progress","value max",r),s("meter","value min max low high optimum",r),s("details","open",[o,"summary"].join(" ")),s("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==e&&(l("script","language xml:space"),l("style","xml:space"),l("object","declare classid code codebase codetype archive standby align border hspace vspace"),l("embed","align name hspace vspace"),l("param","valuetype type"),l("a","charset name rev shape coords"),l("br","clear"),l("applet","codebase archive code object alt name width height align hspace vspace"),l("img","name longdesc align border hspace vspace"),l("iframe","longdesc frameborder marginwidth marginheight scrolling align"),l("font basefont","size color face"),l("input","usemap align"),l("select","onchange"),l("textarea"),l("h1 h2 h3 h4 h5 h6 div p legend caption","align"),l("ul","type compact"),l("li","type"),l("ol dl menu dir","compact"),l("pre","width xml:space"),l("hr","align noshade size width"),l("isindex","prompt"),l("table","summary width frame rules cellspacing cellpadding align bgcolor"),l("col","width align char charoff valign"),l("colgroup","width align char charoff valign"),l("thead","align char charoff valign"),l("tr","align char charoff valign bgcolor"),l("th","axis align char charoff valign nowrap bgcolor width height"),l("form","accept"),l("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),l("tfoot","align char charoff valign"),l("tbody","align char charoff valign"),l("area","nohref"),l("body","background bgcolor text link vlink alink")),"html4"!==e&&(l("input button select textarea","autofocus"),l("input textarea","placeholder"),l("a","download"),l("link script img","crossorigin"),l("iframe","sandbox seamless allowfullscreen")),Ni(Ti("a form meter progress dfn"),function(e){u[e]&&delete u[e].children[e]}),delete u.caption.children.table,delete u.script,wi[e]=u)},Mi=function(e,t){var n;return e&&(n={},"string"==typeof e&&(e={"*":e}),Ni(e,function(e,r){n[r]=n[r.toUpperCase()]="map"===t?zi(e,/[, ]/):Si(e,/[, ]/)})),n},Ri=function(e,t,n,r){var o=function(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e};return"#"+o(t)+o(n)+o(r)},Di=function(e,t){var n,r,o,i,a=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,u=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,s=/\s*([^:]+):\s*([^;]+);?/g,l=/\s+$/,c={},f="\ufeff";for(e=e||{},t&&(o=t.getValidStyles(),i=t.getInvalidStyles()),r=("\\\" \\' \\; \\: ; : "+f).split(" "),n=0;n<r.length;n++)c[r[n]]=f+n,c[f+n]=r[n];return{toHex:function(e){return e.replace(a,Ri)},parse:function(t){var r,o,i,d,h,m,g,p,v={},y=e.url_converter,b=e.url_converter_scope||this,C=function(e,t,r){var o,i,a,u;if((o=v[e+"-top"+t])&&(i=v[e+"-right"+t])&&(a=v[e+"-bottom"+t])&&(u=v[e+"-left"+t])){var s=[o,i,a,u];for(n=s.length-1;n--&&s[n]===s[n+1];);-1<n&&r||(v[e+t]=-1===n?s[0]:s.join(" "),delete v[e+"-top"+t],delete v[e+"-right"+t],delete v[e+"-bottom"+t],delete v[e+"-left"+t])}},w=function(e){var t,n=v[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return!1;return v[e]=n[0],!0}},x=function(e){return d=!0,c[e]},z=function(e,t){return d&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return c[e]})),t||(e=e.replace(/\\([\'\";:])/g,"$1")),e},N=function(e){return String.fromCharCode(parseInt(e.slice(1),16))},E=function(e){return e.replace(/\\[0-9a-f]+/gi,N)},S=function(t,n,r,o,i,a){if(i=i||a)return"'"+(i=z(i)).replace(/\'/g,"\\'")+"'";if(n=z(n||r||o),!e.allow_script_urls){var u=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(u))return""
|
25
|
-
;if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(u))return""}return y&&(n=y.call(b,n,"style")),"url('"+n.replace(/\'/g,"\\'")+"')"};if(t){for(t=(t=t.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,x).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,x)});r=s.exec(t);)if(s.lastIndex=r.index+r[0].length,o=r[1].replace(l,"").toLowerCase(),i=r[2].replace(l,""),o&&i){if(o=E(o),i=E(i),-1!==o.indexOf(f)||-1!==o.indexOf('"'))continue;if(!e.allow_script_urls&&("behavior"===o||/expression\s*\(|\/\*|\*\//.test(i)))continue;"font-weight"===o&&"700"===i?i="bold":"color"!==o&&"background-color"!==o||(i=i.toLowerCase()),i=(i=i.replace(a,Ri)).replace(u,S),v[o]=d?z(i,!0):i}C("border","",!0),C("border","-width"),C("border","-color"),C("border","-style"),C("padding",""),C("margin",""),h="border",g="border-style",p="border-color",w(m="border-width")&&w(g)&&w(p)&&(v[h]=v[m]+" "+v[g]+" "+v[p],delete v[m],delete v[g],delete v[p]),"medium none"===v.border&&delete v.border,"none"===v["border-image"]&&delete v["border-image"]}return v},serialize:function(e,t){var n,r,a,u,s,l="",c=function(t){var n,r,i,a;if(n=o[t])for(r=0,i=n.length;r<i;r++)t=n[r],(a=e[t])&&(l+=(0<l.length?" ":"")+t+": "+a+";")};if(t&&o)c("*"),c(t);else for(n in e)!(r=e[n])||i&&(a=n,u=t,s=void 0,(s=i["*"])&&s[a]||(s=i[u])&&s[a])||(l+=(0<l.length?" ":"")+n+": "+r+";");return l}}},Bi=hn.each,Oi=hn.grep,Hi=ut.ie,_i=/^([a-z0-9],?)+$/i,Li=/^[ \t\r\n]*$/,Pi=function(e,t,n){var r=t.keep_values,o={set:function(e,r,o){t.url_converter&&(r=t.url_converter.call(t.url_converter_scope||n(),r,o,e[0])),e.attr("data-mce-"+o,r).attr(o,r)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},i={style:{set:function(e,t){null===t||"object"!=typeof t?(r&&e.attr("data-mce-style",t),e.attr("style",t)):e.css(t)},get:function(t){var n=t.attr("data-mce-style")||t.attr("style");return e.serialize(e.parse(n),t[0].nodeName)}}};return r&&(i.href=i.src=o),i},Vi=function(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName);r||(r=null),t.attr("data-mce-style",r)},Ii=function(e,t){var n,r,o=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(o++,n=r);return o};(pi=v||(v={})).DOM=pi(e.document),pi.nodeIndex=Ii;var Fi,Ui=v,ji=Ui.DOM,qi=hn.each,$i=hn.grep,Wi=function(){function t(){this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0}return t.prototype.loadScript=function(t,n,r){var o,i,a=ji;i=a.uniqueId(),(o=e.document.createElement("script")).id=i,o.type="text/javascript",o.src=hn._addCacheSuffix(t),o.onload=function(){a.remove(i),o&&(o.onreadystatechange=o.onload=o=null),n()},o.onerror=function(){ce(r)?r():"undefined"!=typeof e.console&&e.console.log&&e.console.log("Failed to load script: "+t)},(e.document.getElementsByTagName("head")[0]||e.document.body).appendChild(o)},t.prototype.isDone=function(e){return 2===this.states[e]},t.prototype.markDone=function(e){this.states[e]=2},t.prototype.add=function(e,t,n,r){this.states[e]===undefined&&(this.queue.push(e),this.states[e]=0),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},t.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},t.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},t.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},t.prototype.loadScripts=function(e,t,n,r){var o,i=this,a=[],u=function(e,t){qi(i.scriptLoadedCallbacks[t],function(t){ce(t[e])&&t[e].call(t.scope)}),i.scriptLoadedCallbacks[t]=undefined};i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this}),(o=function(){var t=$i(e);if(e.length=0,qi(t,function(e){2!==i.states[e]?3!==i.states[e]?1!==i.states[e]&&(i.states[e]=1,i.loading++,i.loadScript(e,function(){i.states[e]=2,i.loading--,u("success",e),o()},function(){i.states[e]=3,i.loading--,a.push(e),u("failure",e),o()})):u("failure",e):u("success",e)}),!i.loading){var n=i.queueLoadedCallbacks.slice(0);i.queueLoadedCallbacks.length=0,qi(n,function(e){0===a.length?ce(e.success)&&e.success.call(e.scope):ce(e.failure)&&e.failure.call(e.scope,a)})}})()},t.ScriptLoader=new t,t}(),Ki=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return Ki(n())}}},Xi={},Yi=Ki("en"),Gi={getData:function(){return Lr(Xi,function(e){return De({},e)})},setCode:function(e){e&&Yi.set(e)},getCode:function(){return Yi.get()},add:function(e,t){var n=Xi[e];for(var r in n||(Xi[e]=n={}),t)n[r.toLowerCase()]=t[r]},translate:function(e){var t,n,r=Xi[Yi.get()]||{},o=function(e){return ce(e)?Object.prototype.toString.call(e):i(e)?"":""+e},i=function(e){return""===e||null===e||e===undefined},a=function(e){var t=o(e),n=t.toLowerCase();return Fr(r,n)?o(r[n]):t},u=function(e){return e.replace(/{context:\w+}$/,"")},s=function(e){return e};if(i(e))return s("");if(ae(t=e)&&Fr(t,"raw"))return s(o(e.raw));if(ue(n=e)&&1<n.length){var l=e.slice(1);return s(u(a(e[0]).replace(/\{([0-9]+)\}/g,function(e,t){return Fr(l,t)?o(l[t]):e})))}return s(u(a(e)))},isRtl:function(){return Ir(Xi,Yi.get()).bind(function(e){return Ir(e,"_dir")}).exists(function(e){return"rtl"===e})},hasCode:function(e){return Fr(Xi,e)}},Ji=hn.each;(Fi=y||(y={})).PluginManager=Fi(),Fi.ThemeManager=Fi();var Qi,Zi=y,ea=function(e,t){fo(e).each(function(n){n.dom().insertBefore(t.dom(),e.dom())})},ta=function(e,t){mo(e).fold(function(){fo(e).each(function(e){ra(e,t)})},function(e){ea(e,t)})},na=function(e,t){bo(e).fold(function(){ra(e,t)},function(n){e.dom().insertBefore(t.dom(),n.dom())})},ra=function(e,t){e.dom().appendChild(t.dom())},oa=function(e,t){ve(t,function(t){ra(e,t)})},ia=function(e){e.dom().textContent="",ve(vo(e),function(e){aa(e)})},aa=function(e){var t=e.dom();null!==t.parentNode&&t.parentNode.removeChild(t)},ua=function(e){var t,n=vo(e);0<n.length&&(t=e,ve(n,function(e){ea(t,e)})),aa(e)},sa=function(t,n){var r=null;return{cancel:function(){null!==r&&(e.clearTimeout(r),r=null)},throttle:function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];null===r&&(r=e.setTimeout(function(){t.apply(null,o),r=null},n))}}},la=function(e,t){var n=Kr(e,t);return n===undefined||""===n?[]:n.split(" ")},ca=function(e){return e.dom().classList!==undefined},fa=function(e,t){return o=t,i=la(n=e,r="class").concat([o]),$r(n,r,i.join(" ")),!0;var n,r,o,i},da=function(e,t){return o=t,0<(i=be(la(n=e,r="class"),function(e){return e!==o})).length?$r(n,r,i.join(" ")):Xr(n,r),!1;var n,r,o,i},ha=function(e,t){ca(e)?e.dom().classList.add(t):fa(e,t)},ma=function(e){0===(ca(e)?e.dom().classList:la(e,"class")).length&&Xr(e,"class")},ga=function(e,t){return ca(e)&&e.dom().classList.contains(t)},pa=function(e,t){var n=[];return ve(vo(e),function(e){t(e)&&(n=n.concat([e])),n=n.concat(pa(e,t))}),n},va=function(t,n){return r=n,i=(o=t)===undefined?e.document:o.dom(),ao(i)?[]:pe(i.querySelectorAll(r),Er.fromDom);var r,o,i},ya=function(e,t,n){for(var r=e.dom(),o=ce(n)?n:K(!1);r.parentNode;){r=r.parentNode;var i=Er.fromDom(r);if(t(i))return re.some(i);if(o(i))break}return re.none()},ba=function(e,t,n){return b(function(e){return t(e)},ya,e,t,n)},Ca=function(e,t,n){return ya(e,function(e){return io(e,t)},n)},wa=function(t,n){return r=n,i=(o=t)===undefined?e.document:o.dom(),ao(i)?re.none():re.from(i.querySelector(r)).map(Er.fromDom);var r,o,i},xa=function(e,t,n){return b(io,Ca,e,t,n)},za=K("mce-annotation"),Na=K("data-mce-annotation"),Ea=K("data-mce-annotation-uid"),Sa=function(e,t){var n=e.selection.getRng(),r=Er.fromDom(n.startContainer),o=Er.fromDom(e.getBody()),i=t.fold(function(){return"."+za()},function(e){return"["+Na()+'="'+e+'"]'}),a=yo(r,n.startOffset).getOr(r),u=xa(a,i,function(e){return uo(e,o)}),s=function(e,t){return n=t,(r=e.dom())&&r.hasAttribute&&r.hasAttribute(n)?re.some(Kr(e,t)):re.none();var n,r};return u.bind(function(t){return s(t,""+Ea()).bind(function(n){return s(t,""+Na()).map(function(t){var r=ka(e,n);return{uid:n,name:t,elements:r}})})})},ka=function(e,t){var n=Er.fromDom(e.getBody());return va(n,"["+Ea()+'="'+t+'"]')},Ta=function(t){var n,r,o,i=Ki({}),a=function(e,t){u(e,function(e){return t(e),e})},u=function(e,t){var n=i.get(),r=t(n.hasOwnProperty(e)?n[e]:{listeners:[],previous:Ki(re.none())});n[e]=r,i.set(n)},s=(n=function(){var e,n,r,o=i.get(),s=(e=Or(o),(r=de.call(e,0)).sort(n),r);ve(s,function(e){u(e,function(n){var r=n.previous.get();return Sa(t,re.some(e)).fold(function(){var t;r.isSome()&&(a(t=e,function(e){ve(e.listeners,function(e){return e(!1,t)})}),n.previous.set(re.none()))},function(e){var t,o,i,u=e.uid,s=e.name,l=e.elements;r.is(u)||(o=u,i=l,a(t=s,function(e){ve(e.listeners,function(e){return e(!0,t,{uid:o,nodes:pe(i,function(e){return e.dom()})})})}),n.previous.set(re.some(u)))}),{previous:n.previous,listeners:n.listeners}})})},r=30,o=null,{cancel:function(){null!==o&&(e.clearTimeout(o),o=null)},throttle:function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];null!==o&&e.clearTimeout(o),o=e.setTimeout(function(){n.apply(null,t),o=null},r)}});return t.on("remove",function(){s.cancel()}),t.on("NodeChange",function(){s.throttle()}),{addListener:function(e,t){u(e,function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}})}}},Aa=function(e,t){e.on("init",function(){e.serializer.addNodeFilter("span",function(e){ve(e,function(e){var n;(n=e,re.from(n.attr(Na())).bind(t.lookup)).each(function(t){!1===t.persistent&&e.unwrap()})})})})},Ma=0,Ra=function(e,t){return Er.fromDom(e.dom().cloneNode(t))},Da=function(e){return Ra(e,!1)},Ba=function(e){return Ra(e,!0)},Oa=function(t,n){var r,o,i=lo(t).dom(),a=Er.fromDom(i.createDocumentFragment()),u=(r=n,(o=(i||e.document).createElement("div")).innerHTML=r,vo(Er.fromDom(o)));oa(a,u),ia(t),ra(t,a)},Ha="\ufeff",_a=function(e){return e===Ha},La=Ha,Pa=function(e){return e.replace(new RegExp(Ha,"g"),"")},Va=Wo.isElement,Ia=Wo.isText,Fa=function(e){return Ia(e)&&(e=e.parentNode),Va(e)&&e.hasAttribute("data-mce-caret")},Ua=function(e){return Ia(e)&&_a(e.data)},ja=function(e){return Fa(e)||Ua(e)},qa=function(e){return e.firstChild!==e.lastChild||!Wo.isBr(e.firstChild)},$a=function(e){var t=e.container();return!(!e||!Wo.isText(t))&&(t.data.charAt(e.offset())===La||e.isAtStart()&&Ua(t.previousSibling))},Wa=function(e){var t=e.container();return!(!e||!Wo.isText(t))&&(t.data.charAt(e.offset()-1)===La||e.isAtEnd()&&Ua(t.nextSibling))},Ka=function(t,n,r){var o,i,a;return(o=n.ownerDocument.createElement(t)).setAttribute("data-mce-caret",r?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(((a=e.document.createElement("br")).setAttribute("data-mce-bogus","1"),a)),i=n.parentNode,r?i.insertBefore(o,n):n.nextSibling?i.insertBefore(o,n.nextSibling):i.appendChild(o),o},Xa=function(e){return Ia(e)&&e.data[0]===La},Ya=function(e){return Ia(e)&&e.data[e.data.length-1]===La},Ga=function(e){return e&&e.hasAttribute("data-mce-caret")?(n=(t=e.getElementsByTagName("br"))[t.length-1],Wo.isBogus(n)&&n.parentNode.removeChild(n),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null;var t,n},Ja=Wo.isContentEditableTrue,Qa=Wo.isContentEditableFalse,Za=Wo.isBr,eu=Wo.isText,tu=Wo.matchNodeNames(["script","style","textarea"]),nu=Wo.matchNodeNames(["img","input","textarea","hr","iframe","video","audio","object"]),ru=Wo.matchNodeNames(["table"]),ou=ja,iu=function(e){return!ou(e)&&(eu(e)?!tu(e.parentNode):nu(e)||Za(e)||ru(e)||au(e))},au=function(e){return!1===(t=e,Wo.isElement(t)&&"true"===t.getAttribute("unselectable"))&&Qa(e);var t},uu=function(e,t){return iu(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(au(e))return!1;if(Ja(e))return!0}return!0}(e,t)},su=Math.round,lu=function(e){return e?{left:su(e.left),top:su(e.top),bottom:su(e.bottom),right:su(e.right),width:su(e.width),height:su(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},cu=function(e,t){return e=lu(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},fu=function(e,t,n){return 0<=e&&e<=Math.min(t.height,n.height)/2},du=function(e,t){return e.bottom-e.height/2<t.top||!(e.top>t.bottom)&&fu(t.top-e.bottom,e,t)},hu=function(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&fu(t.bottom-e.top,e,t)},mu=function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom},gu=function(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null},pu=function(e,t){return 1===e.nodeType&&e.hasChildNodes()&&(t>=e.childNodes.length&&(t=e.childNodes.length-1),e=e.childNodes[t]),e},vu=new RegExp("[\u0300-\u036f\u0483-\u0487\u0488-\u0489\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7-\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962-\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2-\u09e3\u0a01-\u0a02\u0a3c\u0a41-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a70-\u0a71\u0a75\u0a81-\u0a82\u0abc\u0ac1-\u0ac5\u0ac7-\u0ac8\u0acd\u0ae2-\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62-\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c62-\u0c63\u0c81\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc-\u0ccd\u0cd5-\u0cd6\u0ce2-\u0ce3\u0d01\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62-\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0f18-\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039-\u103a\u103d-\u103e\u1058-\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17b4-\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193b\u1a17-\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1abe\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80-\u1b81\u1ba2-\u1ba5\u1ba8-\u1ba9\u1bab-\u1bad\u1be6\u1be8-\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8-\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u200c-\u200d\u20d0-\u20dc\u20dd-\u20e0\u20e1\u20e2-\u20e4\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u302e-\u302f\u3099-\u309a\ua66f\ua670-\ua672\ua674-\ua67d\ua69e-\ua69f\ua6f0-\ua6f1\ua802\ua806\ua80b\ua825-\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31-\uaa32\uaa35-\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7-\uaab8\uaabe-\uaabf\uaac1\uaaec-\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\uff9e-\uff9f]"),yu=function(e){return"string"==typeof e&&768<=e.charCodeAt(0)&&vu.test(e)},bu=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r];if(!o.isSome())return re.none();n.push(o.getOrDie())}return re.some(t.apply(null,n))},Cu=[].slice,wu=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Cu.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(!n[t](e))return!1;return!0}},xu=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Cu.call(arguments);return function(e){for(var t=0;t<n.length;t++)if(n[t](e))return!0;return!1}},zu=Wo.isElement,Nu=iu,Eu=Wo.matchStyleValues("display","block table"),Su=Wo.matchStyleValues("float","left right"),ku=wu(zu,Nu,Y(Su)),Tu=Y(Wo.matchStyleValues("white-space","pre pre-line pre-wrap")),Au=Wo.isText,Mu=Wo.isBr,Ru=Ui.nodeIndex,Du=pu,Bu=function(e){return"createRange"in e?e.createRange():Ui.DOM.createRng()},Ou=function(e){return e&&/[\r\n\t ]/.test(e)},Hu=function(e){return!!e.setStart&&!!e.setEnd},_u=function(e){var t,n=e.startContainer,r=e.startOffset;return!!(Ou(e.toString())&&Tu(n.parentNode)&&Wo.isText(n)&&(t=n.data,Ou(t[r-1])||Ou(t[r+1])))},Lu=function(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom},Pu=function(e){var t,n,r,o,i,a,u,s;return t=0<(n=e.getClientRects()).length?lu(n[0]):lu(e.getBoundingClientRect()),!Hu(e)&&Mu(e)&&Lu(t)?(i=(r=e).ownerDocument,a=Bu(i),u=i.createTextNode("\xa0"),(s=r.parentNode).insertBefore(u,r),a.setStart(u,0),a.setEnd(u,1),o=lu(a.getBoundingClientRect()),s.removeChild(u),o):Lu(t)&&Hu(e)?function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&Wo.isText(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),Pu(i)}return null}(e):t},Vu=function(e,t){var n=cu(e,t);return n.width=1,n.right=n.left+1,n},Iu=function(e){var t,n,r=[],o=function(e){var t,n;0!==e.height&&(0<r.length&&(t=e,n=r[r.length-1],t.left===n.left&&t.top===n.top&&t.bottom===n.bottom&&t.right===n.right)||r.push(e))},i=function(e,t){var n=Bu(e.ownerDocument);if(t<e.data.length){if(yu(e.data[t]))return r;if(yu(e.data[t-1])&&(n.setStart(e,t),n.setEnd(e,t+1),!_u(n)))return o(Vu(Pu(n),!1)),r}0<t&&(n.setStart(e,t-1),n.setEnd(e,t),_u(n)||o(Vu(Pu(n),!1))),t<e.data.length&&(n.setStart(e,t),n.setEnd(e,t+1),_u(n)||o(Vu(Pu(n),!0)))};if(Au(e.container()))return i(e.container(),e.offset()),r;if(zu(e.container()))if(e.isAtEnd())n=Du(e.container(),e.offset()),Au(n)&&i(n,n.data.length),ku(n)&&!Mu(n)&&o(Vu(Pu(n),!1));else{if(n=Du(e.container(),e.offset()),Au(n)&&i(n,0),ku(n)&&e.isAtEnd())return o(Vu(Pu(n),!1)),r;t=Du(e.container(),e.offset()-1),ku(t)&&!Mu(t)&&(Eu(t)||Eu(n)||!ku(n))&&o(Vu(Pu(t),!1)),ku(n)&&o(Vu(Pu(n),!0))}return r};(Qi=C||(C={})).fromRangeStart=function(e){return Qi(e.startContainer,e.startOffset)},Qi.fromRangeEnd=function(e){return Qi(e.endContainer,e.endOffset)},Qi.after=function(e){return Qi(e.parentNode,Ru(e)+1)},Qi.before=function(e){return Qi(e.parentNode,Ru(e))},Qi.isAbove=function(e,t){return bu([Ae(t.getClientRects()),Me(e.getClientRects())],du).getOr(!1)},Qi.isBelow=function(e,t){return bu([Me(t.getClientRects()),Ae(e.getClientRects())],hu).getOr(!1)},Qi.isAtStart=function(e){return!!e&&e.isAtStart()},Qi.isAtEnd=function(e){return!!e&&e.isAtEnd()},Qi.isTextPosition=function(e){return!!e&&Wo.isText(e.container())},Qi.isElementPosition=function(e){return!1===Qi.isTextPosition(e)};var Fu,Uu,ju=C,qu=Wo.isText,$u=Wo.isBogus,Wu=Ui.nodeIndex,Ku=function(e){var t=e.parentNode;return $u(t)?Ku(t):t},Xu=function(e){return e?sn.reduce(e.childNodes,function(e,t){return $u(t)&&"BR"!==t.nodeName?e=e.concat(Xu(t)):e.push(t),e},[]):[]},Yu=function(e){return function(t){return e===t}},Gu=function(e){var t,n,r,o;return(qu(e)?"text()":e.nodeName.toLowerCase())+"["+(n=Xu(Ku(t=e)),r=sn.findIndex(n,Yu(t),t),n=n.slice(0,r+1),o=sn.reduce(n,function(e,t,r){return qu(t)&&qu(n[r-1])&&e++,e},0),n=sn.filter(n,Wo.matchNodeNames([t.nodeName])),(r=sn.findIndex(n,Yu(t),t))-o)+"]"},Ju=function(e,t){var n,r,o,i,a,u=[];return n=t.container(),r=t.offset(),qu(n)?o=function(e,t){for(;(e=e.previousSibling)&&qu(e);)t+=e.data.length;return t}(n,r):(r>=(i=n.childNodes).length?(o="after",r=i.length-1):o="before",n=i[r]),u.push(Gu(n)),a=function(e,t,n){var r=[];for(t=t.parentNode;!(t===e||n&&n(t));t=t.parentNode)r.push(t);return r}(e,n),a=sn.filter(a,Y(Wo.isBogus)),(u=u.concat(sn.map(a,function(e){return Gu(e)}))).reverse().join("/")+","+o},Qu=function(e,t){var n,r,o;return t?(t=(n=t.split(","))[0].split("/"),o=1<n.length?n[1]:"before",(r=sn.reduce(t,function(e,t){return(t=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t))?("text()"===t[1]&&(t[1]="#text"),n=e,r=t[1],o=parseInt(t[2],10),i=Xu(n),i=sn.filter(i,function(e,t){return!qu(e)||!qu(i[t-1])}),(i=sn.filter(i,Wo.matchNodeNames([r])))[o]):null;var n,r,o,i},e))?qu(r)?function(e,t){for(var n,r=e,o=0;qu(r);){if(n=r.data.length,o<=t&&t<=o+n){e=r,t-=o;break}if(!qu(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return qu(e)&&t>e.data.length&&(t=e.data.length),ju(e,t)}(r,parseInt(o,10)):(o="after"===o?Wu(r)+1:Wu(r),ju(r.parentNode,o)):null):null},Zu=function(e,t){Wo.isText(t)&&0===t.data.length&&e.remove(t)},es=function(e,t,n){var r,o,i,a,u,s,l;Wo.isDocumentFragment(n)?(i=e,a=t,u=n,s=re.from(u.firstChild),l=re.from(u.lastChild),a.insertNode(u),s.each(function(e){return Zu(i,e.previousSibling)}),l.each(function(e){return Zu(i,e.nextSibling)})):(r=e,o=n,t.insertNode(o),Zu(r,o.previousSibling),Zu(r,o.nextSibling))},ts=Wo.isContentEditableFalse,ns=function(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],s=[],l=0,c=e.getRoot();for(Wo.isText(a)?s.push(n?function(e,t,n){var r,o;for(o=e(t.data.slice(0,n)).length,r=t.previousSibling;r&&Wo.isText(r);r=r.previousSibling)o+=e(r.data).length;return o}(t,a,u):u):(u>=(i=a.childNodes).length&&i.length&&(l=1,u=Math.max(0,i.length-1)),s.push(e.nodeIndex(i[u],n)+l));a&&a!==c;a=a.parentNode)s.push(e.nodeIndex(a,n));return s},rs=function(e,t,n){var r=0;return hn.each(e.select(t),function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++}),r},os=function(e,t){var n,r,o,i=t?"start":"end";n=e[i+"Container"],r=e[i+"Offset"],Wo.isElement(n)&&"TR"===n.nodeName&&(n=(o=n.childNodes)[Math.min(t?r:r-1,o.length-1)])&&(r=t?0:n.childNodes.length,e["set"+(t?"Start":"End")](n,r))},is=function(e){return os(e,!0),os(e,!1),e},as=function(e,t){var n;if(Wo.isElement(e)&&(e=pu(e,t),ts(e)))return e;if(ja(e)){if(Wo.isText(e)&&Fa(e)&&(e=e.parentNode),n=e.previousSibling,ts(n))return n;if(n=e.nextSibling,ts(n))return n}},us=function(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(ts(r)||"IMG"===o)return{name:o,index:rs(n.dom,o,r)};var a,u,s,l,c,f,d,h=as((a=i).startContainer,a.startOffset)||as(a.endContainer,a.endOffset);return h?{name:o=h.tagName,index:rs(n.dom,o,h)}:(u=e,l=t,c=i,f=(s=n).dom,(d={}).start=ns(f,u,l,c,!0),s.isCollapsed()||(d.end=ns(f,u,l,c,!1)),d)},ss=function(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,""):e.create("span",r)},ls=function(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:rs(n,u,a)};var s=is(r.cloneRange());if(!i){s.collapse(!1);var l=ss(n,o+"_end",t);es(n,s,l)}(r=is(r)).collapse(!0);var c=ss(n,o+"_start",t);return es(n,r,c),e.moveToBookmark({id:o,keep:1}),{id:o}},cs={getBookmark:function(e,t,n){return 2===t?us(Pa,n,e):3===t?(o=(r=e).getRng(),{start:Ju(r.dom.getRoot(),ju.fromRangeStart(o)),end:Ju(r.dom.getRoot(),ju.fromRangeEnd(o))}):t?{rng:e.getRng()}:ls(e,!1);var r,o},getUndoBookmark:t(us,X,!0),getPersistentBookmark:ls},fs="_mce_caret",ds=function(e){return Wo.isElement(e)&&e.id===fs},hs=function(e,t){for(;t&&t!==e;){if(t.id===fs)return t;t=t.parentNode}return null},ms=Wo.isElement,gs=Wo.isText,ps=function(e){var t=e.parentNode;t&&t.removeChild(e)},vs=function(e,t){0===t.length?ps(e):e.nodeValue=t},ys=function(e){var t=Pa(e);return{count:e.length-t.length,text:t}},bs=function(e,t){return xs(e),t},Cs=function(e,t){var n,r,o,i=t.container(),a=(n=Re(i.childNodes),r=e,o=he(n,r),-1===o?re.none():re.some(o)).map(function(e){return e<t.offset()?ju(i,t.offset()-1):t}).getOr(t);return xs(e),a},ws=function(e,t){return gs(e)&&t.container()===e?(r=t,o=ys((n=e).data.substr(0,r.offset())),i=ys(n.data.substr(r.offset())),0<(a=o.text+i.text).length?(vs(n,a),ju(n,r.offset()-o.count)):r):bs(e,t);var n,r,o,i,a},xs=function(e){if(ms(e)&&ja(e)&&(qa(e)?e.removeAttribute("data-mce-caret"):ps(e)),gs(e)){var t=Pa(function(e){try{return e.nodeValue}catch(t){return""}}(e));vs(e,t)}},zs={removeAndReposition:function(e,t){return ju.isTextPosition(t)?ws(e,t):(n=e,(r=t).container()===n.parentNode?Cs(n,r):bs(n,r));var n,r},remove:xs},Ns=zr.detect().browser,Es=Wo.isContentEditableFalse,Ss=function(e,t,n){var r,o,i,a,u,s=cu(t.getBoundingClientRect(),n);return i="BODY"===e.tagName?(r=e.ownerDocument.documentElement,o=e.scrollLeft||r.scrollLeft,e.scrollTop||r.scrollTop):(u=e.getBoundingClientRect(),o=e.scrollLeft-u.left,e.scrollTop-u.top),s.left+=o,s.right+=o,s.top+=i,s.bottom+=i,s.width=1,0<(a=t.offsetWidth-t.clientWidth)&&(n&&(a*=-1),s.left+=a,s.right+=a),s},ks=function(e,t,n){var r,o,i=Ki(re.none()),a=function(){!function(){var t,n,r,o,i;for(t=Xn("*[contentEditable=false]",e),o=0;o<t.length;o++)r=(n=t[o]).previousSibling,Ya(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(i.length-1,1)),r=n.nextSibling,Xa(r)&&(1===(i=r.data).length?r.parentNode.removeChild(r):r.deleteData(0,1))}(),o&&(zs.remove(o),o=null),i.get().each(function(e){Xn(e.caret).remove(),i.set(re.none())}),dt.clearInterval(r)},u=function(){r=dt.setInterval(function(){n()?Xn("div.mce-visual-caret",e).toggleClass("mce-visual-caret-hidden"):Xn("div.mce-visual-caret",e).addClass("mce-visual-caret-hidden")},500)};return{show:function(n,r){var s,l,c;if(a(),c=r,Wo.isElement(c)&&/^(TD|TH)$/i.test(c.tagName))return null;if(!t(r))return o=function(e,t){var n,r,o;if(r=e.ownerDocument.createTextNode(La),o=e.parentNode,t){if(n=e.previousSibling,Ia(n)){if(ja(n))return n;if(Ya(n))return n.splitText(n.data.length-1)}o.insertBefore(r,e)}else{if(n=e.nextSibling,Ia(n)){if(ja(n))return n;if(Xa(n))return n.splitText(1),n}e.nextSibling?o.insertBefore(r,e.nextSibling):o.appendChild(r)}return r}(r,n),l=r.ownerDocument.createRange(),Es(o.nextSibling)?(l.setStart(o,0),l.setEnd(o,0)):(l.setStart(o,1),l.setEnd(o,1)),l;o=Ka("p",r,n),s=Ss(e,r,n),Xn(o).css("top",s.top);var f=Xn('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(s).appendTo(e)[0];return i.set(re.some({caret:f,element:r,before:n})),i.get().each(function(e){n&&Xn(e.caret).addClass("mce-visual-caret-before")}),u(),(l=r.ownerDocument.createRange()).setStart(o,0),l.setEnd(o,0),l},hide:a,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){i.get().each(function(t){var n=Ss(e,t.element,t.before);Xn(t.caret).css(De({},n))})},destroy:function(){return dt.clearInterval(r)}}},Ts=function(){return Ns.isIE()||Ns.isEdge()||Ns.isFirefox()},As=function(e){return Es(e)||Wo.isTable(e)&&Ts()},Ms=Wo.isContentEditableFalse,Rs=Wo.matchStyleValues("display","block table table-cell table-caption list-item"),Ds=ja,Bs=Fa,Os=Wo.isElement,Hs=iu,_s=function(e){return 0<e},Ls=function(e){return e<0},Ps=function(e,t){for(var n;n=e(t);)if(!Bs(n))return n;return null},Vs=function(e,t,n,r,o){var i=new Ko(e,r);if(Ls(t)){if((Ms(e)||Bs(e))&&n(e=Ps(i.prev,!0)))return e;for(;e=Ps(i.prev,o);)if(n(e))return e}if(_s(t)){if((Ms(e)||Bs(e))&&n(e=Ps(i.next,!0)))return e;for(;e=Ps(i.next,o);)if(n(e))return e}return null},Is=function(e,t){for(;e&&e!==t;){if(Rs(e))return e;e=e.parentNode}return null},Fs=function(e,t,n){return Is(e.container(),n)===Is(t.container(),n)},Us=function(e,t){var n,r;return t?(n=t.container(),r=t.offset(),Os(n)?n.childNodes[r+e]:null):null},js=function(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n},qs=function(e,t,n){var r,o,i,a;for(o=e?"previousSibling":"nextSibling";n&&n!==t;){if(r=n[o],Ds(r)&&(r=r[o]),Ms(r)){if(a=n,Is(r,i=t)===Is(a,i))return r;break}if(Hs(r))break;n=n.parentNode}return null},$s=t(js,!0),Ws=t(js,!1),Ks=function(e,n,r){var o,i,a,u,s=t(qs,!0,n),l=t(qs,!1,n);if(i=r.startContainer,a=r.startOffset,Fa(i)){if(Os(i)||(i=i.parentNode),"before"===(u=i.getAttribute("data-mce-caret"))&&(o=i.nextSibling,As(o)))return $s(o);if("after"===u&&(o=i.previousSibling,As(o)))return Ws(o)}if(!r.collapsed)return r;if(Wo.isText(i)){if(Ds(i)){if(1===e){if(o=l(i))return $s(o);if(o=s(i))return Ws(o)}if(-1===e){if(o=s(i))return Ws(o);if(o=l(i))return $s(o)}return r}if(Ya(i)&&a>=i.data.length-1)return 1===e&&(o=l(i))?$s(o):r;if(Xa(i)&&a<=1)return-1===e&&(o=s(i))?Ws(o):r;if(a===i.data.length)return(o=l(i))?$s(o):r;if(0===a)return(o=s(i))?Ws(o):r}return r},Xs=function(e,t){return re.from(Us(e?0:-1,t)).filter(Ms)},Ys=function(e,t,n){var r=Ks(e,t,n);return-1===e?C.fromRangeStart(r):C.fromRangeEnd(r)},Gs=function(e){return re.from(e.getNode()).map(Er.fromDom)},Js=function(e,t){for(;t=e(t);)if(t.isVisible())return t;return t},Qs=function(e,t){var n=Fs(e,t);return!(n||!Wo.isBr(e.getNode()))||n};(Uu=Fu||(Fu={}))[Uu.Backwards=-1]="Backwards",Uu[Uu.Forwards=1]="Forwards";var Zs=Wo.isContentEditableFalse,el=Wo.isText,tl=Wo.isElement,nl=Wo.isBr,rl=iu,ol=function(e){return nu(e)||!!au(t=e)&&!0!==we(Re(t.getElementsByTagName("*")),function(e,t){return e||Ja(t)},!1);var t},il=uu,al=function(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null},ul=function(e,t){if(_s(e)){if(rl(t.previousSibling)&&!el(t.previousSibling))return ju.before(t);if(el(t))return ju(t,0)}if(Ls(e)){if(rl(t.nextSibling)&&!el(t.nextSibling))return ju.after(t);if(el(t))return ju(t,t.data.length)}return Ls(e)?nl(t)?ju.before(t):ju.after(t):ju.before(t)},sl=function(e,t,n){var r,o,i,a,u;if(!tl(n)||!t)return null;if(t.isEqual(ju.after(n))&&n.lastChild){if(u=ju.after(n.lastChild),Ls(e)&&rl(n.lastChild)&&tl(n.lastChild))return nl(n.lastChild)?ju.before(n.lastChild):u}else u=t;var s,l,c,f=u.container(),d=u.offset();if(el(f)){if(Ls(e)&&0<d)return ju(f,--d);if(_s(e)&&d<f.length)return ju(f,++d);r=f}else{if(Ls(e)&&0<d&&(o=al(f,d-1),rl(o)))return!ol(o)&&(i=Vs(o,e,il,o))?el(i)?ju(i,i.data.length):ju.after(i):el(o)?ju(o,o.data.length):ju.before(o);if(_s(e)&&d<f.childNodes.length&&(o=al(f,d),rl(o)))return nl(o)?(s=n,(c=(l=o).nextSibling)&&rl(c)?el(c)?ju(c,0):ju.before(c):sl(Fu.Forwards,ju.after(l),s)):!ol(o)&&(i=Vs(o,e,il,o))?el(i)?ju(i,0):ju.before(i):el(o)?ju(o,0):ju.after(o);r=o||u.getNode()}return(_s(e)&&u.isAtEnd()||Ls(e)&&u.isAtStart())&&(r=Vs(r,e,K(!0),n,!0),il(r,n))?ul(e,r):(o=Vs(r,e,il,n),!(a=sn.last(be(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(f,n),Zs)))||o&&a.contains(o)?o?ul(e,o):null:u=_s(e)?ju.after(a):ju.before(a))},ll=function(e){return{next:function(t){return sl(Fu.Forwards,t,e)},prev:function(t){return sl(Fu.Backwards,t,e)}}},cl=function(e){return ju.isTextPosition(e)?0===e.offset():iu(e.getNode())},fl=function(e){if(ju.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return iu(e.getNode(!0))},dl=function(e,t){return!ju.isTextPosition(e)&&!ju.isTextPosition(t)&&e.getNode()===t.getNode(!0)},hl=function(e,t,n){return e?!dl(t,n)&&(r=t,!(!ju.isTextPosition(r)&&Wo.isBr(r.getNode())))&&fl(t)&&cl(n):!dl(n,t)&&cl(t)&&fl(n);var r},ml=function(e,t,n){var r=ll(t);return re.from(e?r.next(n):r.prev(n))},gl=function(e,t,n){return ml(e,t,n).bind(function(r){return Fs(n,r,t)&&hl(e,n,r)?ml(e,t,r):re.some(r)})},pl=function(e,t,n,r){return gl(e,t,n).bind(function(n){return r(n)?pl(e,t,n,r):re.some(n)})},vl=function(e,t){var n,r,o,i,a,u=e?t.firstChild:t.lastChild;return Wo.isText(u)?re.some(ju(u,e?0:u.data.length)):u?iu(u)?re.some(e?ju.before(u):(a=u,Wo.isBr(a)?ju.before(a):ju.after(a))):(r=t,o=u,i=(n=e)?ju.before(o):ju.after(o),ml(n,r,i)):re.none()},yl=t(ml,!0),bl=t(ml,!1),Cl={fromPosition:ml,nextPosition:yl,prevPosition:bl,navigate:gl,navigateIgnore:pl,positionIn:vl,firstPositionIn:t(vl,!0),lastPositionIn:t(vl,!1)},wl=function(e,t){return!e.isBlock(t)||t.innerHTML||ut.ie||(t.innerHTML='<br data-mce-bogus="1" />'),t},xl=function(e,t){return Cl.lastPositionIn(e).fold(function(){return!1},function(e){return t.setStart(e.container(),e.offset()),t.setEnd(e.container(),e.offset()),!0})},zl=function(e,t,n){return!(!1!==t.hasChildNodes()||!hs(e,t)||(o=n,i=(r=t).ownerDocument.createTextNode(La),r.appendChild(i),o.setStart(i,0),o.setEnd(i,0),0));var r,o,i},Nl=function(e,t,n,r){var o,i,a,u,s=n[t?"start":"end"],l=e.getRoot();if(s){for(a=s[0],i=l,o=s.length-1;1<=o;o--){if(u=i.childNodes,zl(l,i,r))return!0;if(s[o]>u.length-1)return!!zl(l,i,r)||xl(i,r);i=u[s[o]]}3===i.nodeType&&(a=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return!0},El=function(e){return Wo.isText(e)&&0<e.data.length},Sl=function(e,t,n){var r,o,i,a,u,s,l=e.get(n.id+"_"+t),c=n.keep;if(l){if(r=l.parentNode,o="start"===t?c?l.hasChildNodes()?(r=l.firstChild,1):El(l.nextSibling)?(r=l.nextSibling,0):El(l.previousSibling)?(r=l.previousSibling,l.previousSibling.data.length):(r=l.parentNode,e.nodeIndex(l)+1):e.nodeIndex(l):c?l.hasChildNodes()?(r=l.firstChild,1):El(l.previousSibling)?(r=l.previousSibling,l.previousSibling.data.length):(r=l.parentNode,e.nodeIndex(l)):e.nodeIndex(l),u=r,s=o,!c){for(a=l.previousSibling,i=l.nextSibling,hn.each(hn.grep(l.childNodes),function(e){Wo.isText(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});l=e.get(n.id+"_"+t);)e.remove(l,!0)
|
26
|
-
;a&&i&&a.nodeType===i.nodeType&&Wo.isText(a)&&!ut.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),u=a,s=o)}return re.some(ju(u,s))}return re.none()},kl=function(e,t){var n,r,o,i,a,u,s,l,c,f,d,h,m,g,p,v,y=e.dom;if(t){if(v=t,hn.isArray(v.start))return g=t,p=(m=y).createRng(),Nl(m,!0,g,p)&&Nl(m,!1,g,p)?re.some(p):re.none();if("string"==typeof t.start)return re.some((f=t,d=(c=y).createRng(),h=Qu(c.getRoot(),f.start),d.setStart(h.container(),h.offset()),h=Qu(c.getRoot(),f.end),d.setEnd(h.container(),h.offset()),d));if(t.hasOwnProperty("id"))return s=Sl(o=y,"start",i=t),l=Sl(o,"end",i),bu([s,(a=l,u=s,a.isSome()?a:u)],function(e,t){var n=o.createRng();return n.setStart(wl(o,e.container()),e.offset()),n.setEnd(wl(o,t.container()),t.offset()),n});if(t.hasOwnProperty("name"))return n=y,r=t,re.from(n.select(r.name)[r.index]).map(function(e){var t=n.createRng();return t.selectNode(e),t});if(t.hasOwnProperty("rng"))return re.some(t.rng)}return re.none()},Tl=function(e,t,n){return cs.getBookmark(e,t,n)},Al=function(e,t){kl(e,t).each(function(t){e.setRng(t)})},Ml=function(e){return Wo.isElement(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")},Rl=function(e){return e&&/^(IMG)$/.test(e.nodeName)},Dl=function(e){return e&&3===e.nodeType&&/^([\t \r\n]+|)$/.test(e.nodeValue)},Bl=function(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),"fontFamily"===n&&(t=t.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+t},Ol={isInlineBlock:Rl,moveStart:function(e,t,n){var r,o,i,a=n.startOffset,u=n.startContainer;if((n.startContainer!==n.endContainer||!Rl(n.startContainer.childNodes[n.startOffset]))&&1===u.nodeType)for(a<(i=u.childNodes).length?(u=i[a],r=new Ko(u,e.getParent(u,e.isBlock))):(u=i[i.length-1],(r=new Ko(u,e.getParent(u,e.isBlock))).next(!0)),o=r.current();o;o=r.next())if(3===o.nodeType&&!Dl(o))return n.setStart(o,0),void t.setRng(n)},getNonWhiteSpaceSibling:function(e,t,n){if(e)for(t=t?"nextSibling":"previousSibling",e=n?e:e[t];e;e=e[t])if(1===e.nodeType||!Dl(e))return e},isTextBlock:function(e,t){return t.nodeType&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]},isValid:function(e,t,n){return e.schema.isValidChild(t,n)},isWhiteSpaceNode:Dl,replaceVars:function(e,t){return"string"!=typeof e?e=e(t):t&&(e=e.replace(/%(\w+)/g,function(e,n){return t[n]||e})),e},isEq:function(e,t){return t=t||"",e=""+((e=e||"").nodeName||e),t=""+(t.nodeName||t),e.toLowerCase()===t.toLowerCase()},normalizeStyleValue:Bl,getStyle:function(e,t,n){return Bl(e,e.getStyle(t,n),n)},getTextDecoration:function(e,t){var n;return e.getParent(t,function(t){return(n=e.getStyle(t,"text-decoration"))&&"none"!==n}),n},getParents:function(e,t,n){return e.getParents(t,n,e.getRoot())}},Hl=Ml,_l=Ol.getParents,Ll=Ol.isWhiteSpaceNode,Pl=Ol.isTextBlock,Vl=function(e,t){for(void 0===t&&(t=3===e.nodeType?e.length:e.childNodes.length);e&&e.hasChildNodes();)(e=e.childNodes[t])&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}},Il=function(e,t){for(var n=t;n;){if(1===n.nodeType&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t},Fl=function(e,t,n,r){var o,i,a=n.nodeValue;return void 0===r&&(r=e?a.length:0),e?(o=a.lastIndexOf(" ",r),-1!==(o=(i=a.lastIndexOf("\xa0",r))<o?o:i)&&!t&&(o<r||!e)&&o<=a.length&&o++):(o=a.indexOf(" ",r),i=a.indexOf("\xa0",r),o=-1!==o&&(-1===i||o<i)?o:i),o},Ul=function(e,t,n,r,o,i){var a,u,s;if(3===n.nodeType){if(-1!==(u=Fl(o,i,n,r)))return{container:n,offset:u};s=n}for(var l=new Ko(n,e.getParent(n,e.isBlock)||t);a=l[o?"prev":"next"]();)if(3!==a.nodeType||Hl(a.parentNode)){if(e.isBlock(a)||Ol.isEq(a,"BR"))break}else if(-1!==(u=Fl(o,i,s=a)))return{container:a,offset:u};if(s)return{container:s,offset:r=o?0:s.length}},jl=function(e,t,n,r,o){var i,a,u,s;for(3===r.nodeType&&0===r.nodeValue.length&&r[o]&&(r=r[o]),i=_l(e,r),a=0;a<i.length;a++)for(u=0;u<t.length;u++)if(!("collapsed"in(s=t[u])&&s.collapsed!==n.collapsed)&&e.is(i[a],s.selector))return i[a];return r},ql=function(e,t,n,r){var o,i=e.dom,a=i.getRoot();if(t[0].wrapper||(o=i.getParent(n,t[0].block,a)),!o){var u=i.getParent(n,"LI,TD,TH");o=i.getParent(3===n.nodeType?n.parentNode:n,function(t){return t!==a&&Pl(e,t)},u)}if(o&&t[0].wrapper&&(o=_l(i,o,"ul,ol").reverse()[0]||o),!o)for(o=n;o[r]&&!i.isBlock(o[r])&&(o=o[r],!Ol.isEq(o,"br")););return o||n},$l=function(e,t,n,r,o,i,a){var u,s,l,c,f,d;if(u=s=a?n:o,c=a?"previousSibling":"nextSibling",f=e.getRoot(),3===u.nodeType&&!Ll(u)&&(a?0<r:i<u.nodeValue.length))return u;for(;;){if(!t[0].block_expand&&e.isBlock(s))return s;for(l=s[c];l;l=l[c])if(!Hl(l)&&!Ll(l)&&("BR"!==(d=l).nodeName||!d.getAttribute("data-mce-bogus")||d.nextSibling))return s;if(s===f||s.parentNode===f){u=s;break}s=s.parentNode}return u},Wl=function(e,t,n,r){var o,i=t.startContainer,a=t.startOffset,u=t.endContainer,s=t.endOffset,l=e.dom;return 1===i.nodeType&&i.hasChildNodes()&&3===(i=pu(i,a)).nodeType&&(a=0),1===u.nodeType&&u.hasChildNodes()&&3===(u=pu(u,t.collapsed?s:s-1)).nodeType&&(s=u.nodeValue.length),i=Il(l,i),u=Il(l,u),(Hl(i.parentNode)||Hl(i))&&(i=Hl(i)?i:i.parentNode,3===(i=t.collapsed?i.previousSibling||i:i.nextSibling||i).nodeType&&(a=t.collapsed?i.length:0)),(Hl(u.parentNode)||Hl(u))&&(u=Hl(u)?u:u.parentNode,3===(u=t.collapsed?u.nextSibling||u:u.previousSibling||u).nodeType&&(s=t.collapsed?0:u.length)),t.collapsed&&((o=Ul(l,e.getBody(),i,a,!0,r))&&(i=o.container,a=o.offset),(o=Ul(l,e.getBody(),u,s,!1,r))&&(u=o.container,s=o.offset)),n[0].inline&&(u=r?u:function(e){var t=Vl(e,s);if(t.node){for(;t.node&&0===t.offset&&t.node.previousSibling;)t=Vl(t.node.previousSibling);t.node&&0<t.offset&&3===t.node.nodeType&&" "===t.node.nodeValue.charAt(t.offset-1)&&1<t.offset&&(e=t.node).splitText(t.offset-1)}return e}(u)),(n[0].inline||n[0].block_expand)&&(n[0].inline&&3===i.nodeType&&0!==a||(i=$l(l,n,i,a,u,s,!0)),n[0].inline&&3===u.nodeType&&s!==u.nodeValue.length||(u=$l(l,n,i,a,u,s,!1))),n[0].selector&&!1!==n[0].expand&&!n[0].inline&&(i=jl(l,n,t,i,"previousSibling"),u=jl(l,n,t,u,"nextSibling")),(n[0].block||n[0].selector)&&(i=ql(e,n,i,"previousSibling"),u=ql(e,n,u,"nextSibling"),n[0].block&&(l.isBlock(i)||(i=$l(l,n,i,a,u,s,!0)),l.isBlock(u)||(u=$l(l,n,i,a,u,s,!1)))),1===i.nodeType&&(a=l.nodeIndex(i),i=i.parentNode),1===u.nodeType&&(s=l.nodeIndex(u)+1,u=u.parentNode),{startContainer:i,startOffset:a,endContainer:u,endOffset:s}},Kl=hn.each,Xl=function(e,t,n){var r,o,i,a,u,s,l,c=t.startContainer,f=t.startOffset,d=t.endContainer,h=t.endOffset;if(0<(l=e.select("td[data-mce-selected],th[data-mce-selected]")).length)Kl(l,function(e){n([e])});else{var m,g,p,v=function(e){var t;return 3===(t=e[0]).nodeType&&t===c&&f>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===h&&0<e.length&&t===d&&3===t.nodeType&&e.splice(e.length-1,1),e},y=function(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r},b=function(e,t){do{if(e.parentNode===t)return e;e=e.parentNode}while(e)},C=function(e,t,r){var o=r?"nextSibling":"previousSibling";for(u=(a=e).parentNode;a&&a!==t;a=u)u=a.parentNode,(s=y(a===e?a:a[o],o)).length&&(r||s.reverse(),n(v(s)))};if(1===c.nodeType&&c.hasChildNodes()&&(c=c.childNodes[f]),1===d.nodeType&&d.hasChildNodes()&&(g=h,--g>(p=(m=d).childNodes).length-1?g=p.length-1:g<0&&(g=0),d=p[g]||m),c===d)return n(v([c]));for(r=e.findCommonAncestor(c,d),a=c;a;a=a.parentNode){if(a===d)return C(c,r,!0);if(a===r)break}for(a=d;a;a=a.parentNode){if(a===c)return C(d,r);if(a===r)break}o=b(c,r)||c,i=b(d,r)||d,C(c,o,!0),(s=y(o===c?o:o.nextSibling,"nextSibling",i===d?i.nextSibling:i)).length&&n(v(s)),C(d,i)}},Yl=function(e,t){var n=function(t){return e(t)?re.from(t.dom().nodeValue):re.none()},r=zr.detect().browser,o=r.isIE()&&10===r.version.major?function(e){try{return n(e)}catch(eE){return re.none()}}:n;return{get:function(n){if(!e(n))throw new Error("Can only get "+t+" value of a "+t+" node");return o(n).getOr("")},getOption:o,set:function(n,r){if(!e(n))throw new Error("Can only set raw "+t+" value of a "+t+" node");n.dom().nodeValue=r}}}(Dr,"text"),Gl=function(e){return Yl.get(e)},Jl=function(e,t,n,r){return fo(t).fold(function(){return"skipping"},function(o){return"br"===r||Dr(a=t)&&"\ufeff"===Gl(a)?"valid":Rr(i=t)&&ga(i,za())?"existing":ds(t)?"caret":Ol.isValid(e,n,r)&&Ol.isValid(e,Ar(o),n)?"valid":"invalid-child";var i,a})},Ql=function(e,t,n,r){var o,i,a=t.uid,u=void 0===a?(o="mce-annotation",i=(new Date).getTime(),o+"_"+Math.floor(1e9*Math.random())+ ++Ma+String(i)):a,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["uid"]),l=Er.fromTag("span",e);ha(l,za()),$r(l,""+Ea(),u),$r(l,""+Na(),n);var c,f=r(u,s),d=f.attributes,h=void 0===d?{}:d,m=f.classes,g=void 0===m?[]:m;return Wr(l,h),c=l,ve(g,function(e){ha(c,e)}),l},Zl=function(e,t,n,r,o){var i=[],a=Ql(e.getDoc(),o,n,r),u=Ki(re.none()),s=function(){u.set(re.none())},l=function(e){ve(e,c)},c=function(t){var n,r;switch(Jl(e,t,"span",Ar(t))){case"invalid-child":s();var o=vo(t);l(o),s();break;case"valid":var c=u.get().getOrThunk(function(){var e=Da(a);return i.push(e),u.set(re.some(e)),e});ea(n=t,r=c),ra(r,n)}};return Xl(e.dom,t,function(e){var t;s(),t=pe(e,Er.fromDom),l(t)}),i},ec=function(e,t,n,r){e.undoManager.transact(function(){var o,i,a,u,s=e.selection.getRng();if(s.collapsed&&(u=Wl(o=e,i=s,[{inline:!0}],3===(a=i).startContainer.nodeType&&a.startContainer.nodeValue.length>=a.startOffset&&"\xa0"===a.startContainer.nodeValue[a.startOffset]),i.setStart(u.startContainer,u.startOffset),i.setEnd(u.endContainer,u.endOffset),o.selection.setRng(i)),e.selection.getRng().collapsed){var l=Ql(e.getDoc(),r,t,n.decorate);Oa(l,"\xa0"),e.selection.getRng().insertNode(l.dom()),e.selection.select(l.dom())}else{var c=cs.getPersistentBookmark(e.selection,!1),f=e.selection.getRng();Zl(e,f,t,n.decorate,r),e.selection.moveToBookmark(c)}})},tc=function(e){var t,n=(t={},{register:function(e,n){t[e]={name:e,settings:n}},lookup:function(e){return t.hasOwnProperty(e)?re.from(t[e]).map(function(e){return e.settings}):re.none()}});Aa(e,n);var r=Ta(e);return{register:function(e,t){n.register(e,t)},annotate:function(t,r){n.lookup(t).each(function(n){ec(e,t,n,r)})},annotationChanged:function(e,t){r.addListener(e,t)},remove:function(t){Sa(e,re.some(t)).each(function(e){var t=e.elements;ve(t,ua)})},getAll:function(t){var n,r,o,i,a,u=(n=e,r=t,o=Er.fromDom(n.getBody()),i=va(o,"["+Na()+'="'+r+'"]'),a={},ve(i,function(e){var t=Kr(e,Ea()),n=a.hasOwnProperty(t)?a[t]:[];a[t]=n.concat([e])}),a);return Lr(u,function(e){return pe(e,function(e){return e.dom()})})}}},nc=/^[ \t\r\n]*$/,rc={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},oc=function(e,t,n){var r,o,i=n?"lastChild":"firstChild",a=n?"prev":"next";if(e[i])return e[i];if(e!==t){if(r=e[a])return r;for(o=e.parent;o&&o!==t;o=o.parent)if(r=o[a])return r}},ic=function(){function e(e,t){this.name=e,1===(this.type=t)&&(this.attributes=[],this.attributes.map={})}return e.create=function(t,n){var r,o;if(r=new e(t,rc[t]||1),n)for(o in n)r.attr(o,n[o]);return r},e.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},e.prototype.attr=function(e,t){var n,r;if("string"!=typeof e){for(r in e)this.attr(r,e[r]);return this}if(n=this.attributes){if(t===undefined)return n.map[e];if(null===t){if(e in n.map)for(delete n.map[e],r=n.length;r--;)if(n[r].name===e)return n=n.splice(r,1),this;return this}if(e in n.map){for(r=n.length;r--;)if(n[r].name===e){n[r].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,this}},e.prototype.clone=function(){var t,n,r,o,i,a=new e(this.name,this.type);if(r=this.attributes){for((i=[]).map={},t=0,n=r.length;t<n;t++)"id"!==(o=r[t]).name&&(i[i.length]={name:o.name,value:o.value},i.map[o.name]=o.value);a.attributes=i}return a.value=this.value,a.shortEnded=this.shortEnded,a},e.prototype.wrap=function(e){return this.parent.insert(e,this),e.append(this),this},e.prototype.unwrap=function(){var e,t;for(e=this.firstChild;e;)t=e.next,this.insert(e,this,!0),e=t;this.remove()},e.prototype.remove=function(){var e=this.parent,t=this.next,n=this.prev;return e&&(e.firstChild===this?(e.firstChild=t)&&(t.prev=null):n.next=t,e.lastChild===this?(e.lastChild=n)&&(n.next=null):t.prev=n,this.parent=this.next=this.prev=null),this},e.prototype.append=function(e){var t;return e.parent&&e.remove(),(t=this.lastChild)?((t.next=e).prev=t,this.lastChild=e):this.lastChild=this.firstChild=e,e.parent=this,e},e.prototype.insert=function(e,t,n){var r;return e.parent&&e.remove(),r=t.parent||this,n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,(e.next=t).prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,(e.prev=t).next=e),e.parent=r,e},e.prototype.getAll=function(e){var t,n=[];for(t=this.firstChild;t;t=oc(t,this))t.name===e&&n.push(t);return n},e.prototype.empty=function(){var e,t,n;if(this.firstChild){for(e=[],n=this.firstChild;n;n=oc(n,this))e.push(n);for(t=e.length;t--;)(n=e[t]).parent=n.firstChild=n.lastChild=n.next=n.prev=null}return this.firstChild=this.lastChild=null,this},e.prototype.isEmpty=function(e,t,n){var r,o,i=this.firstChild;if(t=t||{},i)do{if(1===i.type){if(i.attr("data-mce-bogus"))continue;if(e[i.name])return!1;for(r=i.attributes.length;r--;)if("name"===(o=i.attributes[r].name)||0===o.indexOf("data-mce-bookmark"))return!1}if(8===i.type)return!1;if(3===i.type&&!nc.test(i.value))return!1;if(3===i.type&&i.parent&&t[i.parent.name]&&nc.test(i.value))return!1;if(n&&n(i))return!1}while(i=oc(i,this));return!0},e.prototype.walk=function(e){return oc(this,null,e)},e}(),ac=function(e,t,n){var r,o,i,a,u=1;for(a=e.getShortEndedElements(),(i=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])u--;else if(!o[1]){if(o[2]in a)continue;u++}if(0===u)break}return r},uc=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null};(w||(w={})).findEndTag=ac;var sc,lc,cc,fc,dc=w,hc=function(e,t){var n,r,o,i,a,u,s,l,c=t,f=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,d=e.schema;for(u=e.getTempAttrs(),s=c,l=new RegExp(["\\s?("+u.join("|")+')="[^"]+"'].join("|"),"gi"),c=s.replace(l,""),a=d.getShortEndedElements();i=f.exec(c);)r=f.lastIndex,o=i[0].length,n=a[i[1]]?r:dc.findEndTag(d,c,r),c=c.substring(0,r-o)+c.substring(n),f.lastIndex=r-o;return Pa(c)},mc={trimExternal:hc,trimInternal:hc},gc=function(e,t,n){var r=e.getParam(t,n);if(-1===r.indexOf("="))return r;var o=e.getParam(t,"","hash");return o.hasOwnProperty(e.id)?o[e.id]:n},pc=function(e){return e.getParam("iframe_attrs",{})},vc=function(e){return e.getParam("doctype","<!DOCTYPE html>")},yc=function(e){return e.getParam("document_base_url","")},bc=function(e){return gc(e,"body_id","tinymce")},Cc=function(e){return gc(e,"body_class","")},wc=function(e){return e.getParam("content_security_policy","")},xc=function(e){return e.getParam("br_in_pre",!0)},zc=function(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t},Nc=function(e){return e.getParam("forced_root_block_attrs",{})},Ec=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},Sc=function(e){return e.getParam("no_newline_selector","")},kc=function(e){return e.getParam("keep_styles",!0)},Tc=function(e){return e.getParam("end_container_on_empty_block",!1)},Ac=function(e){return hn.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},Mc=function(e){return hn.explode(e.getParam("font_size_classes",""))},Rc=function(e){return e.getParam("icons","","string")},Dc=function(e){return e.getParam("icons_url","","string")},Bc=function(e){return e.getParam("images_dataimg_filter",K(!0),"function")},Oc=function(e){return e.getParam("automatic_uploads",!0,"boolean")},Hc=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},_c=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},Lc=function(e){return e.getParam("images_upload_url","","string")},Pc=function(e){return e.getParam("images_upload_base_path","","string")},Vc=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},Ic=function(e){return e.getParam("images_upload_handler",null,"function")},Fc=function(e){return e.getParam("content_css_cors",!1,"boolean")},Uc=function(e){return e.getParam("language","en","string")},jc=function(e){return e.getParam("language_url","","string")},qc=function(e){return e.getParam("indent_use_margin",!1)},$c=function(e){return e.getParam("indentation","40px","string")},Wc=function(e){var t=e.settings.content_css;return ie(t)?pe(t.split(","),gr):ue(t)?t:!1===t||e.inline?[]:["default"]},Kc=function(e){return e.getParam("directionality",Gi.isRtl()?"rtl":undefined)},Xc=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Yc=function(e,t,n){var r,o,i,a,u;if(t.format=t.format?t.format:"html",t.get=!0,t.getInner=!0,t.no_events||e.fire("BeforeGetContent",t),"raw"===t.format)r=hn.trim(mc.trimExternal(e.serializer,n.innerHTML));else if("text"===t.format)r=Pa(n.innerText||n.textContent);else{if("tree"===t.format)return e.serializer.serialize(n,t);i=(o=e).serializer.serialize(n,t),a=zc(o),u=new RegExp("^(<"+a+"[^>]*>( | |\\s|\xa0|<br \\/>|)<\\/"+a+">[\r\n]*|<br \\/>[\r\n]*)$"),r=i.replace(u,"")}return"text"===t.format||ii(Er.fromDom(n))?t.content=r:t.content=hn.trim(r),t.no_events||e.fire("GetContent",t),t.content},Gc=hn.makeMap,Jc=function(e){var t,n,r,o,i,a=[];return t=(e=e||{}).indent,n=Gc(e.indent_before||""),r=Gc(e.indent_after||""),o=Ci.getEncodeFunc(e.entity_encoding||"raw",e.entities),i="html"===e.element_format,{start:function(e,u,s){var l,c,f,d;if(t&&n[e]&&0<a.length&&0<(d=a[a.length-1]).length&&"\n"!==d&&a.push("\n"),a.push("<",e),u)for(l=0,c=u.length;l<c;l++)f=u[l],a.push(" ",f.name,'="',o(f.value,!0),'"');a[a.length]=!s||i?">":" />",s&&t&&r[e]&&0<a.length&&0<(d=a[a.length-1]).length&&"\n"!==d&&a.push("\n")},end:function(e){var n;a.push("</",e,">"),t&&r[e]&&0<a.length&&0<(n=a[a.length-1]).length&&"\n"!==n&&a.push("\n")},text:function(e,t){0<e.length&&(a[a.length]=t?e:o(e))},cdata:function(e){a.push("<![CDATA[",e,"]]>")},comment:function(e){a.push("<!--",e,"-->")},pi:function(e,n){n?a.push("<?",e," ",o(n),"?>"):a.push("<?",e,"?>"),t&&a.push("\n")},doctype:function(e){a.push("<!DOCTYPE",e,">",t?"\n":"")},reset:function(){a.length=0},getContent:function(){return a.join("").replace(/\n$/,"")}}},Qc=function(e,t){void 0===t&&(t=p());var n=Jc(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(r){var o,i;i=e.validate,o={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;a(e),e=e.next;);}},n.reset();var a=function(e){var r,u,s,l,c,f,d,h,m,g=o[e.type];if(g)g(e);else{if(r=e.name,u=e.shortEnded,s=e.attributes,i&&s&&1<s.length&&((f=[]).map={},m=t.getElementRule(e.name))){for(d=0,h=m.attributesOrder.length;d<h;d++)(l=m.attributesOrder[d])in s.map&&(c=s.map[l],f.map[l]=c,f.push({name:l,value:c}));for(d=0,h=s.length;d<h;d++)(l=s[d].name)in f.map||(c=s.map[l],f.map[l]=c,f.push({name:l,value:c}));s=f}if(n.start(e.name,s,u),!u){if(e=e.firstChild)for(;a(e),e=e.next;);n.end(r)}}};return 1!==r.type||e.inner?o[11](r):a(r),n.getContent()}}},Zc=function(e,t){t(e),e.firstChild&&Zc(e.firstChild,t),e.next&&Zc(e.next,t)},ef=function(e,t,n){var r=function(e,t,n){var r={},o={},i=[];for(var a in n.firstChild&&Zc(n.firstChild,function(n){ve(e,function(e){e.name===n.name&&(r[e.name]?r[e.name].nodes.push(n):r[e.name]={filter:e,nodes:[n]})}),ve(t,function(e){"string"==typeof n.attr(e.name)&&(o[e.name]?o[e.name].nodes.push(n):o[e.name]={filter:e,nodes:[n]})})}),r)r.hasOwnProperty(a)&&i.push(r[a]);for(var a in o)o.hasOwnProperty(a)&&i.push(o[a]);return i}(e,t,n);ve(r,function(e){ve(e.filter.callbacks,function(t){t(e.nodes,e.filter.name,{})})})},tf=function(e){var t=lo(e).dom();return e.dom()===t.activeElement},nf=function(t){var n=t!==undefined?t.dom():e.document;return re.from(n.activeElement).map(Er.fromDom)},rf=function(t){if(!ue(t))throw new Error("cases must be an array");if(0===t.length)throw new Error("there must be at least one case");var n=[],r={};return ve(t,function(o,i){var a=Or(o);if(1!==a.length)throw new Error("one and only one name per case");var u=a[0],s=o[u];if(r[u]!==undefined)throw new Error("duplicate key detected:"+u);if("cata"===u)throw new Error("cannot have a case named cata (sorry)");if(!ue(s))throw new Error("case arguments must be an array");n.push(u),r[u]=function(){var r=arguments.length;if(r!==s.length)throw new Error("Wrong number of arguments to case "+u+". Expected "+s.length+" ("+s+"), got "+r);for(var o=new Array(r),a=0;a<o.length;a++)o[a]=arguments[a];return{fold:function(){if(arguments.length!==t.length)throw new Error("Wrong number of arguments to fold. Expected "+t.length+", got "+arguments.length);return arguments[i].apply(null,o)},match:function(e){var t=Or(e);if(n.length!==t.length)throw new Error("Wrong number of arguments to match. Expected: "+n.join(",")+"\nActual: "+t.join(","));if(!ke(n,function(e){return me(t,e)}))throw new Error("Not all branches were specified when using match. Specified: "+t.join(", ")+"\nRequired: "+n.join(", "));return e[u].apply(null,o)},log:function(t){e.console.log(t,{constructors:n,constructor:u,params:o})}}}}),r},of={create:Qr("start","soffset","finish","foffset")},af=rf([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),uf=(af.before,af.on,af.after,function(e){return e.fold(X,X,X)}),sf=rf([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),lf={domRange:sf.domRange,relative:sf.relative,exact:sf.exact,exactFromRange:function(e){return sf.exact(e.start(),e.soffset(),e.finish(),e.foffset())},getWin:function(e){var t=e.match({domRange:function(e){return Er.fromDom(e.startContainer)},relative:function(e){return uf(e)},exact:function(e){return e}});return co(t)},range:of.create},cf=zr.detect().browser,ff=function(e,t){var n=Dr(t)?Gl(t).length:vo(t).length+1;return n<e?n:e<0?0:e},df=function(e){return lf.range(e.start(),ff(e.soffset(),e.start()),e.finish(),ff(e.foffset(),e.finish()))},hf=function(e,t){return!Wo.isRestrictedNode(t.dom())&&(so(e,t)||uo(e,t))},mf=function(e){return function(t){return hf(e,t.start())&&hf(e,t.finish())}},gf=function(e){return!0===e.inline||cf.isIE()},pf=function(e){return lf.range(Er.fromDom(e.startContainer),e.startOffset,Er.fromDom(e.endContainer),e.endOffset)},vf=function(e){var t=e.getSelection();return(t&&0!==t.rangeCount?re.from(t.getRangeAt(0)):re.none()).map(pf)},yf=function(e){var t=co(e);return vf(t.dom()).filter(mf(e))},bf=function(e,t){return re.from(t).filter(mf(e)).map(df)},Cf=function(t){var n=e.document.createRange();try{return n.setStart(t.start().dom(),t.soffset()),n.setEnd(t.finish().dom(),t.foffset()),re.some(n)}catch(M){return re.none()}},wf=function(e){return(e.bookmark?e.bookmark:re.none()).bind(t(bf,Er.fromDom(e.getBody()))).bind(Cf)},xf=function(e){var t=gf(e)?yf(Er.fromDom(e.getBody())):re.none();e.bookmark=t.isSome()?t:e.bookmark},zf=function(e){wf(e).each(function(t){e.selection.setRng(t)})},Nf=wf,Ef={isEditorUIElement:function(e){return-1!==e.className.toString().indexOf("tox-")||-1!==e.className.toString().indexOf("mce-")}},Sf=function(e,t){var n,r;zr.detect().browser.isIE()?(r=e).on("focusout",function(){xf(r)}):(n=t,e.on("mouseup touchend",function(){n.throttle()})),e.on("keyup NodeChange",function(t){var n;"nodechange"===(n=t).type&&n.selectionChange||xf(e)})},kf=function(t){var n,r,o,i=sa(function(){xf(t)},0);t.inline&&(n=t,r=i,o=function(){r.throttle()},Ui.DOM.bind(e.document,"mouseup",o),n.on("remove",function(){Ui.DOM.unbind(e.document,"mouseup",o)})),t.on("init",function(){Sf(t,i)}),t.on("remove",function(){i.cancel()})},Tf=Ui.DOM,Af=function(e){return Ef.isEditorUIElement(e)},Mf=function(e,t){var n=e?e.settings.custom_ui_selector:"";return null!==Tf.getParent(t,function(t){return Af(t)||!!n&&e.dom.is(t,n)})},Rf=function(t,n){var r=n.editor;kf(r),r.on("focusin",function(){var e=t.focusedEditor;e!==this&&(e&&e.fire("blur",{focusedEditor:this}),t.setActive(this),(t.focusedEditor=this).fire("focus",{blurredEditor:e}),this.focus(!0))}),r.on("focusout",function(){var n=this;dt.setEditorTimeout(n,function(){var r=t.focusedEditor;Mf(n,function(){try{return e.document.activeElement}catch(r){return e.document.body}}())||r!==n||(n.fire("blur",{focusedEditor:null}),t.focusedEditor=null)})}),sc||(sc=function(n){var r,o=t.activeEditor;r=n.target,o&&r.ownerDocument===e.document&&(r===e.document.body||Mf(o,r)||t.focusedEditor!==o||(o.fire("blur",{focusedEditor:null}),t.focusedEditor=null))},Tf.bind(e.document,"focusin",sc))},Df=function(t,n){t.focusedEditor===n.editor&&(t.focusedEditor=null),t.activeEditor||(Tf.unbind(e.document,"focusin",sc),sc=null)},Bf=function(e){e.on("AddEditor",t(Rf,e)),e.on("RemoveEditor",t(Df,e))},Of=Mf,Hf=function(e,t){return(n=t,n.collapsed?re.from(pu(n.startContainer,n.startOffset)).map(Er.fromDom):re.none()).bind(function(t){return ri(t)?re.some(t):!1===so(e,t)?re.some(e):re.none()});var n},_f=function(e,t){Hf(Er.fromDom(e.getBody()),t).bind(function(e){return Cl.firstPositionIn(e.dom())}).fold(function(){e.selection.normalize()},function(t){return e.selection.setRng(t.toRange())})},Lf=function(e){if(e.setActive)try{e.setActive()}catch(A){e.focus()}else e.focus()},Pf=function(e){return tf(e)||(t=e,nf(lo(t)).filter(function(e){return t.dom().contains(e.dom())})).isSome();var t},Vf=function(e){return e.inline?(n=e.getBody())&&Pf(Er.fromDom(n)):(t=e).iframeElement&&tf(Er.fromDom(t.iframeElement));var t,n},If=function(e){return e.editorManager.setActive(e)},Ff=function(e,t){e.removed||(t?If(e):function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable();var o,i,a=(o=e,i=t.getNode(),o.dom.getParent(i,function(e){return"true"===o.dom.getContentEditable(e)}));if(e.$.contains(n,a))return Lf(a),_f(e,r),If(e);e.bookmark!==undefined&&!1===Vf(e)&&Nf(e).each(function(t){e.selection.setRng(t),r=t}),e.inline||(ut.opera||Lf(n),e.getWin().focus()),(ut.gecko||e.inline)&&(Lf(n),_f(e,r)),If(e)}(e))},Uf=Vf,jf=function(e){return Vf(e)||(t=e,Pf(Er.fromDom(t.getContainer()))||nf().filter(function(e){return Of(t,e.dom())}).isSome());var t},qf=function(e){return e instanceof ic},$f=function(e,t){var n;e.dom.setHTML(e.getBody(),t),Uf(n=e)&&Cl.firstPositionIn(n.getBody()).each(function(e){var t=e.getNode(),r=Wo.isTable(t)?Cl.firstPositionIn(t).getOr(e):e;n.selection.setRng(r.toRange())})},Wf=function(e,t,n){return void 0===n&&(n={}),n.format=n.format?n.format:"html",n.set=!0,n.content=qf(t)?"":t,qf(t)||n.no_events||(e.fire("BeforeSetContent",n),t=n.content),re.from(e.getBody()).fold(K(t),function(r){return qf(t)?function(e,t,n,r){ef(e.parser.getNodeFilters(),e.parser.getAttributeFilters(),n);var o=Qc({validate:e.validate},e.schema).serialize(n);return r.content=ii(Er.fromDom(t))?o:hn.trim(o),$f(e,r.content),r.no_events||e.fire("SetContent",r),n}(e,r,t,n):(o=e,i=r,u=n,0===(a=t).length||/^\s+$/.test(a)?(l='<br data-mce-bogus="1">',"TABLE"===i.nodeName?a="<tr><td>"+l+"</td></tr>":/^(UL|OL)$/.test(i.nodeName)&&(a="<li>"+l+"</li>"),(s=zc(o))&&o.schema.isValidChild(i.nodeName.toLowerCase(),s.toLowerCase())?(a=l,a=o.dom.createHTML(s,o.settings.forced_root_block_attrs,a)):a||(a='<br data-mce-bogus="1">'),$f(o,a),o.fire("SetContent",u)):("raw"!==u.format&&(a=Qc({validate:o.validate},o.schema).serialize(o.parser.parse(a,{isRootContent:!0,insert:!0}))),u.content=ii(Er.fromDom(i))?a:hn.trim(a),$f(o,u.content),u.no_events||o.fire("SetContent",u)),u.content);var o,i,a,u,s,l})},Kf=function(e,t){return e.fire("PreProcess",t)},Xf=function(e,t){return e.fire("PostProcess",t)},Yf=function(e){return e.fire("remove")},Gf=function(e){return e.fire("detach")},Jf=function(e,t){return e.fire("SwitchMode",{mode:t})},Qf=function(e,t,n,r){e.fire("ObjectResizeStart",{target:t,width:n,height:r})},Zf=function(e,t,n,r){e.fire("ObjectResized",{target:t,width:n,height:r})},ed=Ui.DOM,td=function(e){return re.from(e).each(function(e){return e.destroy()})},nd=function(e){if(!e.removed){var t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement();r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&ed.remove(o.nextSibling),Yf(e),e.editorManager.remove(e),!e.inline&&r&&(i=e,ed.setStyle(i.id,"display",i.orgDisplay)),Gf(e),ed.remove(e.getContainer()),td(t),td(n),e.destroy()}var i},rd=function(e,t){var n,r,o,i=e.selection,a=e.dom;e.destroyed||(t||e.removed?(t||(e.editorManager.off("beforeunload",e._beforeUnload),e.theme&&e.theme.destroy&&e.theme.destroy(),td(i),td(a)),(r=(n=e).formElement)&&(r._mceOldSubmit&&(r.submit=r._mceOldSubmit,r._mceOldSubmit=null),ed.unbind(r,"submit reset",n.formEventDelegate)),(o=e).contentAreaContainer=o.formElement=o.container=o.editorContainer=null,o.bodyElement=o.contentDocument=o.contentWindow=null,o.iframeElement=o.targetElm=null,o.selection&&(o.selection=o.selection.win=o.selection.dom=o.selection.dom.doc=null),e.destroyed=!0):e.remove())},od=Qr("sections","settings"),id=zr.detect(),ad=id.deviceType.isTouch(),ud=id.deviceType.isPhone(),sd=["lists","autolink","autosave"],ld=ud?{theme:"mobile"}:{},cd=function(e){var t=ue(e)?e.join(" "):e,n=pe(ie(t)?t.split(" "):[],gr);return be(n,function(e){return 0<e.length})},fd=function(e,n,r,o){var i,a,u=cd(r.forced_plugins),s=cd(o.plugins),l=(a=e&&(i="mobile",n.sections().hasOwnProperty(i))?be(s,t(me,sd)):s,[].concat(cd(u)).concat(cd(a)));return hn.extend(o,{plugins:l.join(" ")})},dd=function(e,t,n,r){var o,i,a,u,s,l,c,f,d,h,m,g=(o=["mobile"],i=Vr(r,function(e,t){return me(o,t)}),od(i.t,i.f)),p=hn.extend(t,n,g.settings(),(h=e,m=g.settings().inline,h&&!m?(l="mobile",c=ld,d=(f=g.sections()).hasOwnProperty(l)?f[l]:{},hn.extend({},c,d)):{}),{validate:!0,external_plugins:(a=n,u=g.settings(),s=u.external_plugins?u.external_plugins:{},a&&a.external_plugins?hn.extend({},a.external_plugins,s):s)});return fd(e,g,n,p)},hd=function(e,t,n){return re.from(t.settings[n]).filter(e)},md=function(e,t,n,r){var o,i,a,u=t in e.settings?e.settings[t]:n;return"hash"===r?(a={},"string"==typeof(i=u)?ve(0<i.indexOf("=")?i.split(/[;,](?![^=;,]*(?:[;,]|$))/):i.split(","),function(e){var t=e.split("=");1<t.length?a[hn.trim(t[0])]=hn.trim(t[1]):a[hn.trim(t[0])]=hn.trim(t[0])}):a=i,a):"string"===r?hd(ie,e,t).getOr(n):"number"===r?hd(fe,e,t).getOr(n):"boolean"===r?hd(le,e,t).getOr(n):"object"===r?hd(ae,e,t).getOr(n):"array"===r?hd(ue,e,t).getOr(n):"string[]"===r?hd((o=ie,function(e){return ue(e)&&ke(e,o)}),e,t).getOr(n):"function"===r?hd(ce,e,t).getOr(n):u},gd=function(e,t){return t.dom()[e]},pd=function(e,t){return parseInt(Yr(t,e),10)},vd=t(gd,"clientWidth"),yd=t(gd,"clientHeight"),bd=t(pd,"margin-top"),Cd=t(pd,"margin-left"),wd=function(e,t,n){var r,o,i,a,u,s,l,c,f,d,h,m=Er.fromDom(e.getBody()),g=e.inline?m:(r=m,Er.fromDom(r.dom().ownerDocument.documentElement)),p=(o=e.inline,a=t,u=n,s=(i=g).dom().getBoundingClientRect(),{x:a-(o?s.left+i.dom().clientLeft+Cd(i):0),y:u-(o?s.top+i.dom().clientTop+bd(i):0)});return c=p.x,f=p.y,d=vd(l=g),h=yd(l),0<=c&&0<=f&&c<=d&&f<=h},xd=function(e){var t;return(t=e.inline?e.getBody():e.getContentAreaContainer(),re.from(t).map(Er.fromDom)).map(function(e){return so(lo(e),e)}).getOr(!1)},zd=function(e){var t=[],n=function(){var t=e.theme;return t&&t.getWindowManagerImpl?t.getWindowManagerImpl():function(){var e=function(){throw new Error("Theme did not provide a WindowManager implementation.")};return{open:e,openUrl:e,alert:e,confirm:e,close:e,getParams:e,setParams:e}}()},r=function(e,t){return function(){return t?t.apply(e,arguments):undefined}},o=function(n){var r;t.push(n),r=n,e.fire("OpenWindow",{dialog:r})},i=function(n){var r;r=n,e.fire("CloseWindow",{dialog:r}),0===(t=be(t,function(e){return e!==n})).length&&e.focus()},a=function(t){e.editorManager.setActive(e),xf(e);var n=t();return o(n),n};return e.on("remove",function(){ve(t,function(e){n().close(e)})}),{open:function(e,t){return a(function(){return n().open(e,t,i)})},openUrl:function(e){return a(function(){return n().openUrl(e,i)})},alert:function(e,t,o){n().alert(e,r(o||this,t))},confirm:function(e,t,o){n().confirm(e,r(o||this,t))},
|
27
|
-
close:function(){re.from(t[t.length-1]).each(function(e){n().close(e),i(e)})}}},Nd=function(e,t){e.notificationManager.open({type:"error",text:t})},Ed=function(e,t){e._skinLoaded?Nd(e,t):e.on("SkinLoaded",function(){Nd(e,t)})},Sd=function(t){e.console.error(t)},kd=function(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t},Td=function(){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=e.window.console;r&&(r.error?r.error.apply(r,arguments):r.log.apply(r,arguments))},Ad={pluginLoadError:function(e,t){Sd(kd("plugin",e,t))},iconsLoadError:function(e,t){Sd(kd("icons",e,t))},languageLoadError:function(e,t){Sd(kd("language",e,t))},pluginInitError:function(e,t,n){var r=Gi.translate(["Failed to initialize plugin: {0}",t]);Td(r,n),Ed(e,r)},uploadError:function(e,t){Ed(e,Gi.translate(["Failed to upload image: {0}",t]))},displayError:Ed,initError:Td},Md=(lc={},{add:function(e,t){lc[e]=t},get:function(e){return lc[e]?lc[e]:{icons:{}}},has:function(e){return Fr(lc,e)}}),Rd=Zi.PluginManager,Dd=Zi.ThemeManager,Bd=function(e){return He.getOrDie("atob")(e)},Od=function(e){var t,n,r=decodeURIComponent(e).split(",");return(n=/data:([^;]+)/.exec(r[0]))&&(t=n[1]),{type:t,data:r[1]}},Hd=function(t){return new st(function(n){var r,o,i,a=Od(t);try{r=Bd(a.data)}catch(eE){return void n(new e.Blob([]))}for(o=function(e){return new(He.getOrDie("Uint8Array"))(e)}(r.length),i=0;i<o.length;i++)o[i]=r.charCodeAt(i);n(new e.Blob([o],{type:a.type}))})},_d=function(e){return 0===e.indexOf("blob:")?(t=e,new st(function(e,n){var r=function(){n("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")};try{var o=z();o.open("GET",t,!0),o.responseType="blob",o.onload=function(){200===this.status?e(this.response):r()},o.onerror=r,o.send()}catch(D){r()}})):0===e.indexOf("data:")?Hd(e):null;var t},Ld=function(e){return new st(function(t){var n=new(He.getOrDie("FileReader"));n.onloadend=function(){t(n.result)},n.readAsDataURL(e)})},Pd=Od,Vd=0,Id=function(e){return(e||"blobid")+Vd++},Fd=0,Ud=function(e){return e+Fd+++(t=function(){return Math.round(4294967295*Math.random()).toString(36)},"s"+(new Date).getTime().toString(36)+t()+t()+t());var t},jd=function(e){var t,n,r,o,i,a,u=(t=[],n=function(e){var t,n,r;if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");return t=e.id||Ud("blobid"),n=e.name||t,{id:K(t),name:K(n),filename:K(n+"."+(r=e.blob.type,{"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png"}[r.toLowerCase()]||"dat")),blob:K(e.blob),base64:K(e.base64),blobUri:K(e.blobUri||Le(e.blob)),uri:K(e.uri)}},{create:function(e,t,r,o){if(ie(e))return n({id:e,name:o,blob:t,base64:r});if(ae(e))return n(e);throw new Error("Unknown input type")},add:function(e){r(e.id())||t.push(e)},get:r=function(e){return o(function(t){return t.id()===e})},getByUri:function(e){return o(function(t){return t.blobUri()===e})},findFirst:o=function(e){return be(t,e)[0]},removeByUri:function(e){t=be(t,function(t){return t.blobUri()!==e||(Pe(t.blobUri()),!1)})},destroy:function(){ve(t,function(e){Pe(e.blobUri())}),t=[]}}),s=function(){var e={},t=function(e,t){return{status:e,resultUri:t}},n=function(t){return t in e};return{hasBlobUri:n,getResultUri:function(t){var n=e[t];return n?n.resultUri:null},isPending:function(t){return!!n(t)&&1===e[t].status},isUploaded:function(t){return!!n(t)&&2===e[t].status},markPending:function(n){e[n]=t(1,null)},markUploaded:function(n,r){e[n]=t(2,r)},removeFailed:function(t){delete e[t]},destroy:function(){e={}}}}(),l=[],c=function(t){return function(n){return e.selection?t(n):[]}},f=function(e,t,n){for(var r=0;-1!==(r=e.indexOf(t,r))&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1),-1!==r;);return e},d=function(e,t,n){return e=f(e,'src="'+t+'"','src="'+n+'"'),f(e,'data-mce-src="'+t+'"','data-mce-src="'+n+'"')},h=function(t,n){ve(e.undoManager.data,function(e){"fragmented"===e.type?e.fragments=pe(e.fragments,function(e){return d(e,t,n)}):e.content=d(e.content,t,n)})},m=function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})},g=function(t,n){u.removeByUri(t.src),h(t.src,n),e.$(t).attr({src:Hc(e)?n+"?"+(new Date).getTime():n,"data-mce-src":e.convertURL(n,"src")})},p=function(t){return i||(i=N(s,{url:Lc(e),basePath:Pc(e),credentials:Vc(e),handler:Ic(e)})),b().then(c(function(n){var r;return r=pe(n,function(e){return e.blobInfo}),i.upload(r,m).then(c(function(r){var o=pe(r,function(t,r){var o=n[r].image;return t.status&&_c(e)?g(o,t.url):t.error&&Ad.uploadError(e,t.error),{element:o,status:t.status}});return t&&t(o),o}))}))},v=function(t){if(Oc(e))return p(t)},y=function(t){return!1!==ke(l,function(e){return e(t)})&&(0!==t.getAttribute("src").indexOf("data:")||Bc(e)(t))},b=function(){return a||(a=E(s,u)),a.findAll(e.getBody(),y).then(c(function(t){return t=be(t,function(t){return"string"!=typeof t||(Ad.displayError(e,t),!1)}),ve(t,function(e){h(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")}),t}))},C=function(t){return t.replace(/src="(blob:[^"]+)"/g,function(t,n){var r=s.getResultUri(n);if(r)return'src="'+r+'"';var o=u.getByUri(n);return o||(o=we(e.editorManager.get(),function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)},null)),o?'src="data:'+o.blob().type+";base64,"+o.base64()+'"':t})};return e.on("SetContent",function(){Oc(e)?v():b()}),e.on("RawSaveContent",function(e){e.content=C(e.content)}),e.on("GetContent",function(e){e.source_view||"raw"===e.format||(e.content=C(e.content))}),e.on("PostRender",function(){e.parser.addNodeFilter("img",function(e){ve(e,function(e){var t=e.attr("src");if(!u.getByUri(t)){var n=s.getResultUri(t);n&&e.attr("src",n)}})})}),{blobCache:u,addFilter:function(e){l.push(e)},uploadImages:p,uploadImagesAuto:v,scanForImages:b,destroy:function(){u.destroy(),s.destroy(),a=i=null}}},qd=function(e,t,n){return so(t,e)?function(e,t){for(var n=ce(t)?t:K(!1),r=e.dom(),o=[];null!==r.parentNode&&r.parentNode!==undefined;){var i=r.parentNode,a=Er.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o}(e,function(e){return n(e)||uo(e,t)}).slice(0,-1):[]},$d=function(e,t){return qd(e,t,K(!1))},Wd=$d,Kd=function(e,t){return[e].concat($d(e,t))},Xd=function(e,t){return e.hasOwnProperty(t.nodeName)},Yd=function(e,t){if(Wo.isText(t)){if(0===t.nodeValue.length)return!0;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||Xd(e,t.nextSibling)))return!0}return!1},Gd=function(e){var t,n,r,o,i,a,u,s,l,c,f=e.dom,d=e.selection,h=e.schema,m=h.getBlockElements(),g=d.getStart(),p=e.getBody(),v=zc(e);if(g&&Wo.isElement(g)&&v&&(c=p.nodeName.toLowerCase(),h.isValidChild(c,v.toLowerCase())&&(y=m,b=p,C=g,!ge(Wd(Er.fromDom(C),Er.fromDom(b)),function(e){return Xd(y,e.dom())})))){var y,b,C,w,x;for(n=(t=d.getRng()).startContainer,r=t.startOffset,o=t.endContainer,i=t.endOffset,l=Uf(e),g=p.firstChild;g;)if(w=m,x=g,Wo.isText(x)||Wo.isElement(x)&&!Xd(w,x)&&!Ml(x)){if(Yd(m,g)){g=(u=g).nextSibling,f.remove(u);continue}a||(a=f.create(v,Nc(e)),g.parentNode.insertBefore(a,g),s=!0),g=(u=g).nextSibling,a.appendChild(u)}else a=null,g=g.nextSibling;s&&l&&(t.setStart(n,r),t.setEnd(o,i),d.setRng(t),e.nodeChanged())}},Jd=function(e){zc(e)&&e.on("NodeChange",t(Gd,e))},Qd=function(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset},Zd=function(e){return bo(e).fold(K([e]),function(t){return[e].concat(Zd(t))})},eh=function(e){return Co(e).fold(K([e]),function(t){return"br"===Ar(t)?ho(t).map(function(t){return[e].concat(eh(t))}).getOr([]):[e].concat(eh(t))})},th=function(e,n){return bu([(a=n,u=a.startContainer,s=a.startOffset,Wo.isText(u)?0===s?re.some(Er.fromDom(u)):re.none():re.from(u.childNodes[s]).map(Er.fromDom)),(r=n,o=r.endContainer,i=r.endOffset,Wo.isText(o)?i===o.data.length?re.some(Er.fromDom(o)):re.none():re.from(o.childNodes[i-1]).map(Er.fromDom))],function(n,r){var o=xe(Zd(e),t(uo,n)),i=xe(eh(e),t(uo,r));return o.isSome()&&i.isSome()}).getOr(!1);var r,o,i,a,u,s},nh=function(e,t,n,r){var o=n,i=new Ko(n,o),a=e.schema.getNonEmptyElements();do{if(3===n.nodeType&&0!==hn.trim(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(a[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n));if(ut.ie&&ut.ie<11&&e.isBlock(n)&&e.isEmpty(n))return void(r?t.setStart(n,0):t.setEnd(n,0))}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))},rh=function(e){var t=e.selection.getSel();return t&&0<t.rangeCount},oh=function(){function e(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",function(n){var r,o;o={startContainer:(r=e.selection.getRng()).startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset},"nodechange"!==n.type&&Qd(o,t)||e.fire("SelectionChange"),t=o}),e.on("contextmenu",function(){e.fire("SelectionChange")}),e.on("SelectionChange",function(){var t=e.selection.getStart(!0);!t||!ut.range&&e.selection.isCollapsed()||rh(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})}),e.on("mouseup",function(t){!t.isDefaultPrevented()&&rh(e)&&("IMG"===e.selection.getNode().nodeName?dt.setEditorTimeout(e,function(){e.nodeChanged()}):e.nodeChanged())})}return e.prototype.nodeChanged=function(e){var t,n,r,o=this.editor.selection;this.editor.initialized&&o&&!this.editor.settings.disable_nodechange&&!this.editor.readonly&&(r=this.editor.getBody(),(t=o.getStart(!0)||r).ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,function(e){if(e===r)return!0;n.push(e)}),(e=e||{}).element=t,e.parents=n,this.editor.fire("NodeChange",e))},e.prototype.isSameElementPath=function(e){var t,n;if((n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e)).length===this.lastPath.length){for(t=n.length;0<=t&&n[t]===this.lastPath[t];t--);if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},e}(),ih=function(e){var t,n,r,o;return o=e.getBoundingClientRect(),n=(t=e.ownerDocument).documentElement,r=t.defaultView,{top:o.top+r.pageYOffset-n.clientTop,left:o.left+r.pageXOffset-n.clientLeft}},ah=function(e,t){return n=(u=e).inline?ih(u.getBody()):{left:0,top:0},a=(i=e).getBody(),r=i.inline?{left:a.scrollLeft,top:a.scrollTop}:{left:0,top:0},{pageX:(o=function(e,t){if(t.target.ownerDocument===e.getDoc())return{left:t.pageX,top:t.pageY};var n,r,o,i,a,u=ih(e.getContentAreaContainer()),s=(r=(n=e).getBody(),o=n.getDoc().documentElement,i={left:r.scrollLeft,top:r.scrollTop},a={left:r.scrollLeft||o.scrollLeft,top:r.scrollTop||o.scrollTop},n.inline?i:a);return{left:t.pageX-u.left+s.left,top:t.pageY-u.top+s.top}}(e,t)).left-n.left+r.left,pageY:o.top-n.top+r.top};var n,r,o,i,a,u},uh=Wo.isContentEditableFalse,sh=Wo.isContentEditableTrue,lh=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},ch=function(e,t){return function(n){if(0===n.button){var r=xe(t.dom.getParents(n.target),xu(uh,sh)).getOr(null);if(u=t.getBody(),uh(s=r)&&s!==u){var o=t.dom.getPos(r),i=t.getBody(),a=t.getDoc().documentElement;e.element=r,e.screenX=n.screenX,e.screenY=n.screenY,e.maxX=(t.inline?i.scrollWidth:a.offsetWidth)-2,e.maxY=(t.inline?i.scrollHeight:a.offsetHeight)-2,e.relX=n.pageX-o.x,e.relY=n.pageY-o.y,e.width=r.offsetWidth,e.height=r.offsetHeight,e.ghost=function(e,t,n,r){var o=t.cloneNode(!0);e.dom.setStyles(o,{width:n,height:r}),e.dom.setAttrib(o,"data-mce-selected",null);var i=e.dom.create("div",{"class":"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return e.dom.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:n,height:r}),e.dom.setStyles(o,{margin:0,boxSizing:"border-box"}),i.appendChild(o),i}(t,r,e.width,e.height)}}var u,s}},fh=function(e,t){return function(n){if(e.dragging&&((u=3===(l=(a=t).selection.getSel().getRangeAt(0).startContainer).nodeType?l.parentNode:l)!==(s=e.element)&&!a.dom.isChildOf(u,s)&&!uh(u))){var r=((i=e.element.cloneNode(!0)).removeAttribute("data-mce-selected"),i),o=t.fire("drop",{targetClone:r,clientX:n.clientX,clientY:n.clientY});o.isDefaultPrevented()||(r=o.targetClone,t.undoManager.transact(function(){lh(e.element),t.insertContent(t.dom.getOuterHTML(r)),t._selectionOverrides.hideFakeCaret()}))}var i,a,u,s,l;dh(e)}},dh=function(e){e.dragging=!1,e.element=null,lh(e.ghost)},hh=function(t){var n,r,o,i,a,u,s,l,c,f,d,h={};n=Ui.DOM,u=e.document,r=ch(h,t),s=h,l=t,c=dt.throttle(function(e,t){l._selectionOverrides.hideFakeCaret(),l.selection.placeCaretAt(e,t)},0),o=function(e){var t,n,r,o,i,a,u,f,d,h,m,g,p=Math.max(Math.abs(e.screenX-s.screenX),Math.abs(e.screenY-s.screenY));if(s.element&&!s.dragging&&10<p){if(l.fire("dragstart",{target:s.element}).isDefaultPrevented())return;s.dragging=!0,l.focus()}if(s.dragging){var v=(m=s,{pageX:(g=ah(l,e)).pageX-m.relX,pageY:g.pageY+5});d=s.ghost,h=l.getBody(),d.parentNode!==h&&h.appendChild(d),t=s.ghost,n=v,r=s.width,o=s.height,i=s.maxX,a=s.maxY,f=u=0,t.style.left=n.pageX+"px",t.style.top=n.pageY+"px",n.pageX+r>i&&(u=n.pageX+r-i),n.pageY+o>a&&(f=n.pageY+o-a),t.style.width=r-u+"px",t.style.height=o-f+"px",c(e.clientX,e.clientY)}},i=fh(h,t),f=h,a=function(){f.dragging&&d.fire("dragend"),dh(f)},(d=t).on("mousedown",r),t.on("mousemove",o),t.on("mouseup",i),n.bind(u,"mousemove",o),n.bind(u,"mouseup",a),t.on("remove",function(){n.unbind(u,"mousemove",o),n.unbind(u,"mouseup",a)})},mh=function(e){var t;hh(e),(t=e).on("drop",function(e){var n="undefined"!=typeof e.clientX?t.getDoc().elementFromPoint(e.clientX,e.clientY):null;(uh(n)||uh(t.dom.getContentEditableParent(n)))&&e.preventDefault()})},gh=function(e){return we(e,function(e,t){return e.concat(function(e){var t=function(t){return pe(t,function(t){return(t=lu(t)).node=e,t})};if(Wo.isElement(e))return t(e.getClientRects());if(Wo.isText(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}}(t))},[])};(fc=cc||(cc={}))[fc.Up=-1]="Up",fc[fc.Down=1]="Down";var ph,vh,yh,bh=function(e,t,n,r,o,i){var a,u,s=0,l=[],c=function(r){var i,a,c;for(c=gh([r]),-1===e&&(c=c.reverse()),i=0;i<c.length;i++)if(a=c[i],!n(a,u)){if(0<l.length&&t(a,sn.last(l))&&s++,a.line=s,o(a))return!0;l.push(a)}};return(u=sn.last(i.getClientRects()))&&(c(a=i.getNode()),function(e,t,n,r){for(;r=Vs(r,e,uu,t);)if(n(r))return}(e,r,c,a)),l},Ch=t(bh,cc.Up,du,hu),wh=t(bh,cc.Down,hu,du),xh=function(e){return function(t){return n=e,t.line>n;var n}},zh=function(e){return function(t){return n=e,t.line===n;var n}},Nh=Wo.isContentEditableFalse,Eh=Vs,Sh=function(e,t){return Math.abs(e.left-t)},kh=function(e,t){return Math.abs(e.right-t)},Th=function(e,t){return e>=t.left&&e<=t.right},Ah=function(e,t){return sn.reduce(e,function(e,n){var r,o;return r=Math.min(Sh(e,t),kh(e,t)),o=Math.min(Sh(n,t),kh(n,t)),Th(t,n)?n:Th(t,e)?e:o===r&&Nh(n.node)?n:o<r?n:e})},Mh=function(e,t,n,r){for(;r=Eh(r,e,uu,t);)if(n(r))return},Rh=function(e,n,r){var o,i,a,u,s,l,c,f=gh(be(Re(e.getElementsByTagName("*")),As)),d=be(f,function(e){return r>=e.top&&r<=e.bottom});return(o=Ah(d,n))&&(o=Ah((u=e,c=function(e,t){var n;return n=be(gh([t]),function(t){return!e(t,s)}),l=l.concat(n),0===n.length},(l=[]).push(s=o),Mh(cc.Up,u,t(c,du),s.node),Mh(cc.Down,u,t(c,hu),s.node),l),n))&&As(o.node)?(a=n,{node:(i=o).node,before:Sh(i,a)<kh(i,a)}):null},Dh=function(e,t,n){if(n.collapsed)return!1;if(ut.ie&&ut.ie<=11&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Wo.isElement(r))return ge(r.getClientRects(),function(n){return mu(n,e,t)})}return ge(n.getClientRects(),function(n){return mu(n,e,t)})},Bh=Wo.isContentEditableTrue,Oh=Wo.isContentEditableFalse,Hh=function(e,t,n,r,o){return t._selectionOverrides.showCaret(e,n,r,o)},_h=function(e,t){var n,r;return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?null:((r=(n=t).ownerDocument.createRange()).selectNode(n),r)},Lh=function(e,t,n){var r=Ks(1,e.getBody(),t),o=ju.fromRangeStart(r),i=o.getNode();if(Oh(i))return Hh(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(Oh(a))return Hh(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),function(e){return Oh(e)||Bh(e)});return Oh(u)?Hh(1,e,u,!1,n):null},Ph=function(e,t,n){return t&&t.collapsed&&Lh(e,t,n)||t},Vh=function(t){var n=sa(function(){if(!t.removed&&t.getBody().contains(e.document.activeElement)&&t.selection.getRng().collapsed){var n=Ph(t,t.selection.getRng(),!1);t.selection.setRng(n)}},0);t.on("focus",function(){n.throttle()}),t.on("blur",function(){n.cancel()})},Ih={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return ut.mac?e.metaKey:e.ctrlKey&&!e.altKey}},Fh=(ph="\xa0",function(e){return ph===e}),Uh=function(e){return/^[\r\n\t ]$/.test(e)},jh=function(e){return!Uh(e)&&!Fh(e)},qh=function(e,t,n){return re.from(n.container()).filter(Wo.isText).exists(function(r){var o=e?0:-1;return t(r.data.charAt(n.offset()+o))})},$h=t(qh,!0,Uh),Wh=t(qh,!1,Uh),Kh=function(e){var t=e.container();return Wo.isText(t)&&0===t.data.length},Xh=function(e,t){return function(n){return re.from(Us(e?0:-1,n)).filter(t).isSome()}},Yh=function(e){return"IMG"===e.nodeName&&"block"===Yr(Er.fromDom(e),"display")},Gh=function(e){return Wo.isContentEditableFalse(e)&&!Wo.isBogusAll(e)},Jh=Xh(!0,Yh),Qh=Xh(!1,Yh),Zh=Xh(!0,Wo.isTable),em=Xh(!1,Wo.isTable),tm=Xh(!0,Gh),nm=Xh(!1,Gh),rm=Wo.isContentEditableTrue,om=Wo.isContentEditableFalse,im=function(e,t){for(var n=e.getBody();t&&t!==n;){if(rm(t)||om(t))return t;t=t.parentNode}return null},am=function(e){var t,n=e.getBody(),r=ks(e.getBody(),function(t){return e.dom.isBlock(t)},function(){return Uf(e)}),o="sel-"+e.dom.uniqueId(),i=function(t){t&&e.selection.setRng(t)},a=function(){return e.selection.getRng()},u=function(t,n,o,i){return void 0===i&&(i=!0),e.fire("ShowCaret",{target:n,direction:t,before:o}).isDefaultPrevented()?null:(i&&e.selection.scrollIntoView(n,-1===t),r.show(o,n))},s=function(e,t){return t=Ks(e,n,t),-1===e?ju.fromRangeStart(t):ju.fromRangeEnd(t)},l=function(e){return ja(e)||Xa(e)||Ya(e)},c=function(e){return l(e.startContainer)||l(e.endContainer)},f=function(n,r){var i,a,l,f,d,m,g,p,v,y,b=e.$,C=e.dom;if(!n)return null;if(n.collapsed){if(!c(n))if(!1===r){if(p=s(-1,n),As(p.getNode(!0)))return u(-1,p.getNode(!0),!1,!1);if(As(p.getNode()))return u(-1,p.getNode(),!p.isAtEnd(),!1)}else{if(p=s(1,n),As(p.getNode()))return u(1,p.getNode(),!p.isAtEnd(),!1);if(As(p.getNode(!0)))return u(1,p.getNode(!0),!1,!1)}return null}return f=n.startContainer,d=n.startOffset,m=n.endOffset,3===f.nodeType&&0===d&&om(f.parentNode)&&(f=f.parentNode,d=C.nodeIndex(f),f=f.parentNode),1!==f.nodeType?null:(m===d+1&&f===n.endContainer&&(i=f.childNodes[d]),om(i)?(v=y=i.cloneNode(!0),(g=e.fire("ObjectSelected",{target:i,targetClone:v})).isDefaultPrevented()?null:(a=wa(Er.fromDom(e.getBody()),"#"+o).fold(function(){return b([])},function(e){return b([e.dom()])}),v=g.targetClone,0===a.length&&(a=b('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",o)).appendTo(e.getBody()),n=e.dom.createRng(),v===y&&ut.ie?(a.empty().append('<p style="font-size: 0" data-mce-bogus="all">\xa0</p>').append(v),n.setStartAfter(a[0].firstChild.firstChild),n.setEndAfter(v)):(a.empty().append("\xa0").append(v).append("\xa0"),n.setStart(a[0].firstChild,1),n.setEnd(a[0].lastChild,0)),a.css({top:C.getPos(i,e.getBody()).y}),a[0].focus(),(l=e.selection.getSel()).removeAllRanges(),l.addRange(n),ve(va(Er.fromDom(e.getBody()),"*[data-mce-selected]"),function(e){Xr(e,"data-mce-selected")}),i.setAttribute("data-mce-selected","1"),t=i,h(),n)):null)},d=function(){t&&(t.removeAttribute("data-mce-selected"),wa(Er.fromDom(e.getBody()),"#"+o).each(aa),t=null),wa(Er.fromDom(e.getBody()),"#"+o).each(aa),t=null},h=function(){r.hide()};return ut.ceFalse&&function(){e.on("mouseup",function(t){var n=a();n.collapsed&&wd(e,t.clientX,t.clientY)&&i(Lh(e,n,!1))}),e.on("click",function(t){var n;(n=im(e,t.target))&&(om(n)&&(t.preventDefault(),e.focus()),rm(n)&&e.dom.isChildOf(n,e.selection.getNode())&&d())}),e.on("blur NewBlock",function(){d()}),e.on("ResizeWindow FullscreenStateChanged",function(){return r.reposition()});var s,l,m=function(t,n){var r,o,i=e.dom.getParent(t,e.dom.isBlock),a=e.dom.getParent(n,e.dom.isBlock);return!(!i||!e.dom.isChildOf(i,a)||!1!==om(im(e,i)))||i&&(r=i,o=a,!(e.dom.getParent(r,e.dom.isBlock)===e.dom.getParent(o,e.dom.isBlock)))&&function(e){var t=ll(e);if(!e.firstChild)return!1;var n=ju.before(e.firstChild),r=t.next(n);return r&&!tm(r)&&!nm(r)}(i)};l=!1,(s=e).on("touchstart",function(){l=!1}),s.on("touchmove",function(){l=!0}),s.on("touchend",function(e){var t=im(s,e.target);om(t)&&(l||(e.preventDefault(),f(_h(s,t))))}),e.on("mousedown",function(t){var r,o=t.target;if((o===n||"HTML"===o.nodeName||e.dom.isChildOf(o,n))&&!1!==wd(e,t.clientX,t.clientY))if(r=im(e,o))om(r)?(t.preventDefault(),f(_h(e,r))):(d(),rm(r)&&t.shiftKey||Dh(t.clientX,t.clientY,e.selection.getRng())||(h(),e.selection.placeCaretAt(t.clientX,t.clientY)));else if(!1===As(o)){d(),h();var a=Rh(n,t.clientX,t.clientY);if(a&&!m(t.target,a.node)){t.preventDefault();var s=u(1,a.node,a.before,!1);e.getBody().focus(),i(s)}}}),e.on("keypress",function(t){Ih.modifierPressed(t)||(t.keyCode,om(e.selection.getNode())&&t.preventDefault())}),e.on("GetSelectionRange",function(e){var n=e.range;if(t){if(!t.parentNode)return void(t=null);(n=n.cloneRange()).selectNode(t),e.range=n}}),e.on("SetSelectionRange",function(e){var t;(t=f(e.range,e.forward))&&(e.range=t)}),e.on("AfterSetSelectionRange",function(t){var n,r=t.range;c(r)||"mcepastebin"===r.startContainer.parentNode.id||h(),n=r.startContainer.parentNode,e.dom.hasClass(n,"mce-offscreen-selection")||d()}),e.on("copy",function(t){var n,r=t.clipboardData;if(!t.isDefaultPrevented()&&t.clipboardData&&!ut.ie){var i=(n=e.dom.get(o))?n.getElementsByTagName("*")[0]:n;i&&(t.preventDefault(),r.clearData(),r.setData("text/html",i.outerHTML),r.setData("text/plain",i.outerText))}}),mh(e),Vh(e)}(),{showCaret:u,showBlockCaretContainer:function(t){t.hasAttribute("data-mce-caret")&&(Ga(t),i(a()),e.selection.scrollIntoView(t[0]))},hideFakeCaret:h,destroy:function(){r.destroy(),t=null}}},um=0,sm=2,lm=1,cm=function(e,t){var n=e.length+t.length+2,r=new Array(n),o=new Array(n),i=function(n,r,o,a,s){var l=u(n,r,o,a);if(null===l||l.start===r&&l.diag===r-a||l.end===n&&l.diag===n-o)for(var c=n,f=o;c<r||f<a;)c<r&&f<a&&e[c]===t[f]?(s.push([0,e[c]]),++c,++f):a-o<r-n?(s.push([2,e[c]]),++c):(s.push([1,t[f]]),++f);else{i(n,l.start,o,l.start-l.diag,s);for(var d=l.start;d<l.end;++d)s.push([0,e[d]]);i(l.end,r,l.end-l.diag,a,s)}},a=function(n,r,o,i){for(var a=n;a-r<i&&a<o&&e[a]===t[a-r];)++a;return{start:n,end:a,diag:r}},u=function(n,i,u,s){var l=i-n,c=s-u;if(0===l||0===c)return null;var f,d,h,m,g,p=l-c,v=c+l,y=(v%2==0?v:v+1)/2;for(r[1+y]=n,o[1+y]=i+1,f=0;f<=y;++f){for(d=-f;d<=f;d+=2){for(h=d+y,d===-f||d!==f&&r[h-1]<r[h+1]?r[h]=r[h+1]:r[h]=r[h-1]+1,g=(m=r[h])-n+u-d;m<i&&g<s&&e[m]===t[g];)r[h]=++m,++g;if(p%2!=0&&p-f<=d&&d<=p+f&&o[h-p]<=r[h])return a(o[h-p],d+n-u,i,s)}for(d=p-f;d<=p+f;d+=2){for(h=d+y-p,d===p-f||d!==p+f&&o[h+1]<=o[h-1]?o[h]=o[h+1]-1:o[h]=o[h-1],g=(m=o[h]-1)-n+u-d;n<=m&&u<=g&&e[m]===t[g];)o[h]=m--,g--;if(p%2==0&&-f<=d&&d<=f&&o[h]<=r[h+p])return a(o[h],d+n-u,i,s)}}},s=[];return i(0,e.length,0,t.length,s),s},fm=function(e){return Wo.isElement(e)?e.outerHTML:Wo.isText(e)?Ci.encodeRaw(e.data,!1):Wo.isComment(e)?"<!--"+e.data+"-->":""},dm=function(t,n,r){var o=function(t){var n,r,o;for(o=e.document.createElement("div"),n=e.document.createDocumentFragment(),t&&(o.innerHTML=t);r=o.firstChild;)n.appendChild(r);return n}(n);if(t.hasChildNodes()&&r<t.childNodes.length){var i=t.childNodes[r];i.parentNode.insertBefore(o,i)}else t.appendChild(o)},hm=function(e){return be(pe(Re(e.childNodes),fm),function(e){return 0<e.length})},mm=function(e,t){var n,r,o,i=pe(Re(t.childNodes),fm);return n=cm(i,e),r=t,o=0,ve(n,function(e){e[0]===um?o++:e[0]===lm?(dm(r,e[1],o),o++):e[0]===sm&&function(e,t){if(e.hasChildNodes()&&t<e.childNodes.length){var n=e.childNodes[t];n.parentNode.removeChild(n)}}(r,o)}),t},gm=Ki(re.none()),pm=function(e){return{type:"fragmented",fragments:e,content:"",bookmark:null,beforeBookmark:null}},vm=function(e){return{type:"complete",fragments:null,content:e,bookmark:null,beforeBookmark:null}},ym=function(e){return"fragmented"===e.type?e.fragments.join(""):e.content},bm=function(t){var n=Er.fromTag("body",gm.get().getOrThunk(function(){var t=e.document.implementation.createHTMLDocument("undo");return gm.set(re.some(t)),t}));return Oa(n,ym(t)),ve(va(n,"*[data-mce-bogus]"),ua),n.dom().innerHTML},Cm=function(e){var t,n,r;return t=hm(e.getBody()),-1!==(n=(r=Se(t,function(t){var n=mc.trimInternal(e.serializer,t);return 0<n.length?[n]:[]})).join("")).indexOf("</iframe>")?pm(r):vm(n)},wm=function(e,t,n){"fragmented"===t.type?mm(t.fragments,e.getBody()):e.setContent(t.content,{format:"raw"}),e.selection.moveToBookmark(n?t.beforeBookmark:t.bookmark)},xm=function(e,t){return!(!e||!t)&&(r=t,ym(e)===ym(r)||(n=t,bm(e)===bm(n)));var n,r},zm=function(e){var t,n,r=this,o=0,i=[],a=0,u=function(){return 0===a},s=function(e){u()&&(r.typing=e)},l=function(t){e.setDirty(t)},c=function(e){s(!1),r.add({},e)},f=function(){r.typing&&(s(!1),r.add())};return e.on("init",function(){r.add()}),e.on("BeforeExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&(f(),r.beforeChange())}),e.on("ExecCommand",function(e){var t=e.command;"Undo"!==t&&"Redo"!==t&&"mceRepaint"!==t&&c(e)}),e.on("ObjectResizeStart cut",function(){r.beforeChange()}),e.on("SaveContent ObjectResized blur",c),e.on("dragend",c),e.on("keyup",function(t){var o=t.keyCode;t.isDefaultPrevented()||((33<=o&&o<=36||37<=o&&o<=40||45===o||t.ctrlKey)&&(c(),e.nodeChanged()),46!==o&&8!==o||e.nodeChanged(),n&&r.typing&&!1===xm(Cm(e),i[0])&&(!1===e.isDirty()&&(l(!0),e.fire("change",{level:i[0],lastLevel:null})),e.fire("TypingUndo"),n=!1,e.nodeChanged()))}),e.on("keydown",function(e){var t=e.keyCode;if(!e.isDefaultPrevented())if(33<=t&&t<=36||37<=t&&t<=40||45===t)r.typing&&c(e);else{var o=e.ctrlKey&&!e.altKey||e.metaKey;!(t<16||20<t)||224===t||91===t||r.typing||o||(r.beforeChange(),s(!0),r.add({},e),n=!0)}}),e.on("mousedown",function(e){r.typing&&c(e)}),e.on("input",function(e){var t;e.inputType&&("insertReplacementText"===e.inputType||"insertText"===(t=e).inputType&&null===t.data)&&c(e)}),e.addShortcut("meta+z","","Undo"),e.addShortcut("meta+y,meta+shift+z","","Redo"),e.on("AddUndo Undo Redo ClearUndos",function(t){t.isDefaultPrevented()||e.nodeChanged()}),r={data:i,typing:!1,beforeChange:function(){u()&&(t=cs.getUndoBookmark(e.selection))},add:function(n,r){var a,s,c,f=e.settings;if(c=Cm(e),n=n||{},n=hn.extend(n,c),!1===u()||e.removed)return null;if(s=i[o],e.fire("BeforeAddUndo",{level:n,lastLevel:s,originalEvent:r}).isDefaultPrevented())return null;if(s&&xm(s,n))return null;if(i[o]&&(i[o].beforeBookmark=t),f.custom_undo_redo_levels&&i.length>f.custom_undo_redo_levels){for(a=0;a<i.length-1;a++)i[a]=i[a+1];i.length--,o=i.length}n.bookmark=cs.getUndoBookmark(e.selection),o<i.length-1&&(i.length=o+1),i.push(n),o=i.length-1;var d={level:n,lastLevel:s,originalEvent:r};return e.fire("AddUndo",d),0<o&&(l(!0),e.fire("change",d)),n},undo:function(){var t;return r.typing&&(r.add(),r.typing=!1,s(!1)),0<o&&(t=i[--o],wm(e,t,!0),l(!0),e.fire("Undo",{level:t})),t},redo:function(){var t;return o<i.length-1&&(t=i[++o],wm(e,t,!1),l(!0),e.fire("Redo",{level:t})),t},clear:function(){i=[],o=0,r.typing=!1,r.data=i,e.fire("ClearUndos")},reset:function(){r.clear(),r.add()},hasUndo:function(){return 0<o||r.typing&&i[0]&&!xm(Cm(e),i[0])},hasRedo:function(){return o<i.length-1&&!r.typing},transact:function(e){return f(),r.beforeChange(),r.ignore(e),r.add()},ignore:function(e){try{a++,e()}finally{a--}},extra:function(t,n){var a,u;r.transact(t)&&(u=i[o].bookmark,a=i[o-1],wm(e,a,!0),r.transact(n)&&(i[o-1].beforeBookmark=u))}}},Nm=function(e){var t=va(e,"br"),n=be(function(e){for(var t=[],n=e.dom();n;)t.push(Er.fromDom(n)),n=n.lastChild;return t}(e).slice(-1),Qo);t.length===n.length&&ve(n,aa)},Em=function(e){ia(e),ra(e,Er.fromHtml('<br data-mce-bogus="1">'))},Sm=function(e){Co(e).each(function(t){ho(t).each(function(n){Go(e)&&Qo(t)&&Go(n)&&aa(t)})})},km=Ol.isEq,Tm=function(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++)if(!1===r[o].inherit&&e.dom.is(t,r[o].selector))return!0;return!1},Am=function(e,t,n,r){var o=e.dom.getRoot();return t!==o&&(t=e.dom.getParent(t,function(t){return!!Tm(e,t,n)||t.parentNode===o||!!Dm(e,t,n,r,!0)}),Dm(e,t,n,r))},Mm=function(e,t,n){return!!km(t,n.inline)||!!km(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0)},Rm=function(e,t,n,r,o,i){var a,u,s,l=n[r];if(n.onmatch)return n.onmatch(t,n,r);if(l)if("undefined"==typeof l.length){for(a in l)if(l.hasOwnProperty(a)){if(u="attributes"===r?e.getAttrib(t,a):Ol.getStyle(e,t,a),o&&!u&&!n.exact)return;if((!o||n.exact)&&!km(u,Ol.normalizeStyleValue(e,Ol.replaceVars(l[a],i),a)))return}}else for(s=0;s<l.length;s++)if("attributes"===r?e.getAttrib(t,l[s]):Ol.getStyle(e,t,l[s]))return n;return n},Dm=function(e,t,n,r,o){var i,a,u,s,l=e.formatter.get(n),c=e.dom;if(l&&t)for(a=0;a<l.length;a++)if(i=l[a],Mm(e.dom,t,i)&&Rm(c,t,i,"attributes",o,r)&&Rm(c,t,i,"styles",o,r)){if(s=i.classes)for(u=0;u<s.length;u++)if(!e.dom.hasClass(t,s[u]))return;return i}},Bm={matchNode:Dm,matchName:Mm,match:function(e,t,n,r){var o;return r?Am(e,r,t,n):(r=e.selection.getNode(),!!Am(e,r,t,n)||!((o=e.selection.getStart())===r||!Am(e,o,t,n)))},matchAll:function(e,t,n){var r,o=[],i={};return r=e.selection.getStart(),e.dom.getParent(r,function(r){var a,u;for(a=0;a<t.length;a++)u=t[a],!i[u]&&Dm(e,r,u,n)&&(i[u]=!0,o.push(u))},e.dom.getRoot()),o},canApply:function(e,t){var n,r,o,i,a,u=e.formatter.get(t),s=e.dom;if(u)for(n=e.selection.getStart(),r=Ol.getParents(s,n),i=u.length-1;0<=i;i--){if(!(a=u[i].selector)||u[i].defaultBlock)return!0;for(o=r.length-1;0<=o;o--)if(s.is(r[o],a))return!0}return!1},matchesUnInheritedFormatSelector:Tm},Om=function(e,t){return e.splitText(t)},Hm=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&Wo.isText(t)?0<n&&n<t.nodeValue.length&&(t=(r=Om(t,n)).previousSibling,n<o?(t=r=Om(r,o-=n).previousSibling,o=r.nodeValue.length,n=0):o=0):(Wo.isText(t)&&0<n&&n<t.nodeValue.length&&(t=Om(t,n),n=0),Wo.isText(r)&&0<o&&o<r.nodeValue.length&&(o=(r=Om(r,o).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}},_m=function(e,t,n){if(0!==n){var r,o,i,a=e.data.slice(t,t+n),u=t+n>=e.data.length,s=0===t;e.replaceData(t,n,(o=s,i=u,we(r=a,function(e,t){return-1!==" \f\n\r\t\x0B".indexOf(t)||"\xa0"===t?e.previousCharIsSpace||""===e.str&&o||e.str.length===r.length-1&&i?{previousCharIsSpace:!1,str:e.str+"\xa0"}:{previousCharIsSpace:!0,str:e.str+" "}:{previousCharIsSpace:!1,str:e.str+t}},{previousCharIsSpace:!1,str:""}).str))}},Lm=function(e,t){var n,r=e.data.slice(t),o=r.length-(n=r,n.replace(/^\s+/g,"")).length;return _m(e,t,o)},Pm=function(e,n){var r,o,i,a=Er.fromDom(e);return r=Er.fromDom(n),o="pre,code",i=t(uo,a),Ca(r,o,i).isSome()},Vm=function(e,t){return iu(t)&&!1===(r=e,o=t,Wo.isText(o)&&/^[ \t\r\n]*$/.test(o.data)&&!1===Pm(r,o))||(n=t,Wo.isElement(n)&&"A"===n.nodeName&&n.hasAttribute("name"))||Im(t);var n,r,o},Im=Wo.hasAttribute("data-mce-bookmark"),Fm=Wo.hasAttribute("data-mce-bogus"),Um=Wo.hasAttributeValue("data-mce-bogus","all"),jm=function(e){return function(e){var t,n=0;if(Vm(e,e))return!1;if(!(t=e.firstChild))return!0;var r=new Ko(t,e);do{if(Um(t))t=r.next(!0);else if(Fm(t))t=r.next();else if(Wo.isBr(t))n++,t=r.next();else{if(Vm(e,t))return!1;t=r.next()}}while(t);return n<=1}(e.dom())},qm=function(e,t){return r=e,o=(n=t).container(),i=n.offset(),!1===ju.isTextPosition(n)&&o===r.parentNode&&i>ju.before(r).offset()?ju(t.container(),t.offset()-1):t;var n,r,o,i},$m=function(e){return iu(e.previousSibling)?re.some((t=e.previousSibling,Wo.isText(t)?ju(t,t.data.length):ju.after(t))):e.previousSibling?Cl.lastPositionIn(e.previousSibling):re.none();var t},Wm=function(e){return iu(e.nextSibling)?re.some((t=e.nextSibling,Wo.isText(t)?ju(t,0):ju.before(t))):e.nextSibling?Cl.firstPositionIn(e.nextSibling):re.none();var t},Km=function(e,t){
|
28
|
-
return $m(t).orThunk(function(){return Wm(t)}).orThunk(function(){return n=e,r=t,o=ju.before(r.previousSibling?r.previousSibling:r.parentNode),Cl.prevPosition(n,o).fold(function(){return Cl.nextPosition(n,ju.after(r))},re.some);var n,r,o})},Xm=function(e,t){return Wm(t).orThunk(function(){return $m(t)}).orThunk(function(){return n=e,r=t,Cl.nextPosition(n,ju.after(r)).fold(function(){return Cl.prevPosition(n,ju.before(r))},re.some);var n,r})},Ym=function(e,n,r){return(o=e,i=n,a=r,o?Xm(i,a):Km(i,a)).map(t(qm,r));var o,i,a},Gm=function(e,t,n){n.fold(function(){e.focus()},function(n){e.selection.setRng(n.toRange(),t)})},Jm=function(e,t){return t&&e.schema.getBlockElements().hasOwnProperty(Ar(t))},Qm=function(e){if(jm(e)){var t=Er.fromHtml('<br data-mce-bogus="1">');return ia(e),ra(e,t),re.some(ju.before(t.dom()))}return re.none()},Zm=function(e,t,n){var r=ho(e).filter(function(e){return Wo.isText(e.dom())}),o=mo(e).filter(function(e){return Wo.isText(e.dom())});return aa(e),bu([r,o,t],function(e,t,r){var o,i,a,u,s=e.dom(),l=t.dom(),c=s.data.length;return i=l,a=n,u=pr((o=s).data).length,o.appendData(i.data),aa(Er.fromDom(i)),a&&Lm(o,u),r.container()===l?ju(s,c):r}).orThunk(function(){return n&&(r.each(function(e){return t=e.dom(),n=e.dom().length,o=(r=t.data.slice(0,n)).length-pr(r).length,_m(t,n-o,o);var t,n,r,o}),o.each(function(e){return Lm(e.dom(),0)})),t})},eg=function(e,n,r,o){void 0===o&&(o=!0);var i,a,u=Ym(n,e.getBody(),r.dom()),s=ya(r,t(Jm,e),(i=e.getBody(),function(e){return e.dom()===i})),l=Zm(r,u,(a=r,Fr(e.schema.getTextInlineElements(),Ar(a))));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):s.bind(Qm).fold(function(){o&&Gm(e,n,l)},function(t){o&&Gm(e,n,re.some(t))})},tg=La,ng="_mce_caret",rg=function(e){return 0<function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==tg||1<e.childNodes.length)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length},og=function(e){if(e){var t=new Ko(e,e);for(e=t.current();e;e=t.next())if(3===e.nodeType)return e}return null},ig=function(e){var t=Er.fromTag("span");return Wr(t,{id:ng,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&ra(t,Er.fromText(tg)),t},ag=function(e,t,n){void 0===n&&(n=!0);var r,o=e.dom,i=e.selection;if(rg(t))eg(e,!1,Er.fromDom(t),n);else{var a=i.getRng(),u=o.getParent(t,o.isBlock),s=((r=og(t))&&r.nodeValue.charAt(0)===tg&&r.deleteData(0,1),r);a.startContainer===s&&0<a.startOffset&&a.setStart(s,a.startOffset-1),a.endContainer===s&&0<a.endOffset&&a.setEnd(s,a.endOffset-1),o.remove(t,!0),u&&o.isEmpty(u)&&Em(Er.fromDom(u)),i.setRng(a)}},ug=function(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)ag(e,t,n);else if(!(t=hs(e.getBody(),o.getStart())))for(;t=r.get(ng);)ag(e,t,!1)},sg=function(e,n,r){var o=e.dom,i=o.getParent(r,t(Ol.isTextBlock,e));i&&o.isEmpty(i)?r.parentNode.replaceChild(n,r):(Nm(Er.fromDom(r)),o.isEmpty(r)?r.parentNode.replaceChild(n,r):o.insertAfter(n,r))},lg=function(e,t){return e.appendChild(t),t},cg=function(e,t){var n=Ce(e,function(e,t){return lg(e,t.cloneNode(!1))},t);return lg(n,n.ownerDocument.createTextNode(tg))},fg=function(e){e.on("mouseup keydown",function(t){var n,r,o,i;n=e,r=t.keyCode,o=n.selection,i=n.getBody(),ug(n,null,!1),8!==r&&46!==r||!o.isCollapsed()||o.getStart().innerHTML!==tg||ug(n,hs(i,o.getStart())),37!==r&&39!==r||ug(n,hs(i,o.getStart()))})},dg=function(e,t){return e.schema.getTextInlineElements().hasOwnProperty(Ar(t))&&!ds(t.dom())&&!Wo.isBogus(t.dom())},hg={},mg=sn.filter,gg=sn.each;yh=function(e){var t,n,r=e.selection.getRng();t=Wo.matchNodeNames(["pre"]),r.collapsed||(n=e.selection.getSelectedBlocks(),gg(mg(mg(n,t),function(e){return t(e.previousSibling)&&-1!==sn.indexOf(n,e.previousSibling)}),function(e){var t,n;t=e.previousSibling,Xn(n=e).remove(),Xn(t).append("<br><br>").append(n.childNodes)}))},hg[vh="pre"]||(hg[vh]=[]),hg[vh].push(yh);var pg,vg=function(e,t){gg(hg[e],function(e){e(t)})},yg=hn.each,bg=function(e){this.compare=function(t,n){if(t.nodeName!==n.nodeName)return!1;var r=function(t){var n={};return yg(e.getAttribs(t),function(r){var o=r.nodeName.toLowerCase();0!==o.indexOf("_")&&"style"!==o&&0!==o.indexOf("data-")&&(n[o]=e.getAttrib(t,o))}),n},o=function(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(void 0===(n=t[r]))return!1;if(e[r]!==n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0};return!(!o(r(t),r(n))||!o(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))||Ml(t)||Ml(n))}},Cg=/^(src|href|style)$/,wg=hn.each,xg=Ol.isEq,zg=function(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)},Ng=function(e,t,n){var r,o,i;return r=t[n?"startContainer":"endContainer"],o=t[n?"startOffset":"endOffset"],Wo.isElement(r)&&(i=r.childNodes.length-1,!n&&o&&o--,r=r.childNodes[i<o?i:o]),Wo.isText(r)&&n&&o>=r.nodeValue.length&&(r=new Ko(r,e.getBody()).next()||r),Wo.isText(r)&&!n&&0===o&&(r=new Ko(r,e.getBody()).prev()||r),r},Eg=function(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o},Sg=function(e,t,n,r,o){var i=Er.fromDom(t),a=Er.fromDom(e.create(r,o)),u=n?po(i):go(i);return oa(a,u),n?(ea(i,a),na(a,i)):(ta(i,a),ra(a,i)),a.dom()},kg=function(e,t,n,r){return!(t=Ol.getNonWhiteSpaceSibling(t,n,r))||"BR"===t.nodeName||e.isBlock(t)},Tg=function(e,t,n,r,o){var i,a,u,s,l,c,f,d,h,m,g,p,v,y,b=e.dom;if(l=b,!(xg(c=r,(f=t).inline)||xg(c,f.block)||(f.selector?Wo.isElement(c)&&l.is(c,f.selector):void 0)||(s=r,t.links&&"A"===s.tagName)))return!1;if("all"!==t.remove)for(wg(t.styles,function(e,i){e=Ol.normalizeStyleValue(b,Ol.replaceVars(e,n),i),"number"==typeof i&&(i=e,o=0),(t.remove_similar||!o||xg(Ol.getStyle(b,o,i),e))&&b.setStyle(r,i,""),u=1}),u&&""===b.getAttrib(r,"style")&&(r.removeAttribute("style"),r.removeAttribute("data-mce-style")),wg(t.attributes,function(e,i){var a;if(e=Ol.replaceVars(e,n),"number"==typeof i&&(i=e,o=0),t.remove_similar||!o||xg(b.getAttrib(o,i),e)){if("class"===i&&(e=b.getAttrib(r,i))&&(a="",wg(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(a+=(a?" ":"")+e)}),a))return void b.setAttrib(r,i,a);"class"===i&&r.removeAttribute("className"),Cg.test(i)&&r.removeAttribute("data-mce-"+i),r.removeAttribute(i)}}),wg(t.classes,function(e){e=Ol.replaceVars(e,n),o&&!b.hasClass(o,e)||b.removeClass(r,e)}),a=b.getAttribs(r),i=0;i<a.length;i++){var C=a[i].nodeName;if(0!==C.indexOf("_")&&0!==C.indexOf("data-"))return!1}return"none"!==t.remove?(d=e,m=t,p=(h=r).parentNode,v=d.dom,y=zc(d),m.block&&(y?p===v.getRoot()&&(m.list_block&&xg(h,m.list_block)||wg(hn.grep(h.childNodes),function(e){Ol.isValid(d,y,e.nodeName.toLowerCase())?g?g.appendChild(e):(g=Eg(v,e,y),v.setAttribs(g,d.settings.forced_root_block_attrs)):g=0})):v.isBlock(h)&&!v.isBlock(p)&&(kg(v,h,!1)||kg(v,h.firstChild,!0,1)||h.insertBefore(v.create("br"),h.firstChild),kg(v,h,!0)||kg(v,h.lastChild,!1,1)||h.appendChild(v.create("br")))),m.selector&&m.inline&&!xg(m.inline,h)||v.remove(h,1),!0):void 0},Ag=Tg,Mg=function(e,t,n,r,o){var i,a,u=e.formatter.get(t),s=u[0],l=!0,c=e.dom,f=e.selection,d=function(r){var i,a,l,c,f,d,h=(i=e,a=r,l=t,c=n,f=o,wg(Ol.getParents(i.dom,a.parentNode).reverse(),function(e){var t;d||"_start"===e.id||"_end"===e.id||(t=Bm.matchNode(i,e,l,c,f))&&!1!==t.split&&(d=e)}),d);return function(e,t,n,r,o,i,a,u){var s,l,c,f,d,h,m=e.dom;if(n){for(h=n.parentNode,s=r.parentNode;s&&s!==h;s=s.parentNode){for(l=m.clone(s,!1),d=0;d<t.length;d++)if(Tg(e,t[d],u,l,l)){l=0;break}l&&(c&&l.appendChild(c),f||(f=l),c=l)}!i||a.mixed&&m.isBlock(n)||(r=m.split(n,r)),c&&(o.parentNode.insertBefore(c,o),f.appendChild(o))}return r}(e,u,h,r,r,!0,s,n)},h=function(t){var r,o,i,a,f;if(Wo.isElement(t)&&c.getContentEditable(t)&&(a=l,l="true"===c.getContentEditable(t),f=!0),r=hn.grep(t.childNodes),l&&!f)for(o=0,i=u.length;o<i&&!Tg(e,u[o],n,t,t);o++);if(s.deep&&r.length){for(o=0,i=r.length;o<i;o++)h(r[o]);f&&(l=a)}},m=function(e){var t,n=c.get(e?"_start":"_end"),r=n[e?"firstChild":"lastChild"];return Ml(t=r)&&Wo.isElement(t)&&("_start"===t.id||"_end"===t.id)&&(r=r[e?"firstChild":"lastChild"]),Wo.isText(r)&&0===r.data.length&&(r=e?n.previousSibling||n.nextSibling:n.nextSibling||n.previousSibling),c.remove(n,!0),r},g=function(t){var n,r,o=t.commonAncestorContainer;if(t=Wl(e,t,u,!0),s.split){if(t=Hm(t),(n=Ng(e,t,!0))!==(r=Ng(e,t))){if(/^(TR|TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n="TR"===n.nodeName?n.firstChild.firstChild||n:n.firstChild||n),o&&/^T(HEAD|BODY|FOOT|R)$/.test(o.nodeName)&&/^(TH|TD)$/.test(r.nodeName)&&r.firstChild&&(r=r.firstChild||r),zg(c,n,r)){var i=re.from(n.firstChild).getOr(n);return d(Sg(c,i,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void m(!0)}if(zg(c,r,n))return i=re.from(r.lastChild).getOr(r),d(Sg(c,i,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void m(!1);n=Eg(c,n,"span",{id:"_start","data-mce-type":"bookmark"}),r=Eg(c,r,"span",{id:"_end","data-mce-type":"bookmark"}),d(n),d(r),n=m(!0),r=m()}else n=r=d(n);t.startContainer=n.parentNode?n.parentNode:n,t.startOffset=c.nodeIndex(n),t.endContainer=r.parentNode?r.parentNode:r,t.endOffset=c.nodeIndex(r)+1}Xl(c,t,function(t){wg(t,function(t){h(t),Wo.isElement(t)&&"underline"===e.dom.getStyle(t,"text-decoration")&&t.parentNode&&"underline"===Ol.getTextDecoration(c,t.parentNode)&&Tg(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:"underline"}},null,t)})})};if(r)r.nodeType?((a=c.createRng()).setStartBefore(r),a.setEndAfter(r),g(a)):g(r);else if("false"!==c.getContentEditable(f.getNode()))f.isCollapsed()&&s.inline&&!c.select("td[data-mce-selected],th[data-mce-selected]").length?function(e,t,n,r){var o,i,a,u,s,l,c,f=e.dom,d=e.selection,h=[],m=d.getRng();for(o=m.startContainer,i=m.startOffset,3===(s=o).nodeType&&(i!==o.nodeValue.length&&(u=!0),s=s.parentNode);s;){if(Bm.matchNode(e,s,t,n,r)){l=s;break}s.nextSibling&&(u=!0),h.push(s),s=s.parentNode}if(l)if(u){a=d.getBookmark(),m.collapse(!0);var g=Wl(e,m,e.formatter.get(t),!0);g=Hm(g),e.formatter.remove(t,n,g),d.moveToBookmark(a)}else{c=hs(e.getBody(),l);var p=ig(!1).dom(),v=cg(h,p);sg(e,p,c||l),ag(e,c,!1),d.setCursorLocation(v,1),f.isEmpty(l)&&f.remove(l)}}(e,t,n,o):(i=cs.getPersistentBookmark(e.selection,!0),g(f.getRng()),f.moveToBookmark(i),s.inline&&Bm.match(e,t,n,f.getStart())&&Ol.moveStart(c,f,f.getRng()),e.nodeChanged());else{r=f.getNode();for(var p=0,v=u.length;p<v&&(!u[p].ceFalseOverride||!Tg(e,u[p],n,r,r));p++);}},Rg=hn.each,Dg=function(e){return e&&1===e.nodeType&&!Ml(e)&&!ds(e)&&!Wo.isBogus(e)},Bg=function(e,t){var n;for(n=e;n;n=n[t]){if(3===n.nodeType&&0!==n.nodeValue.length)return e;if(1===n.nodeType&&!Ml(n))return n}return e},Og=function(e,t,n){var r,o,i=new bg(e);if(t&&n&&(t=Bg(t,"previousSibling"),n=Bg(n,"nextSibling"),i.compare(t,n))){for(r=t.nextSibling;r&&r!==n;)r=(o=r).nextSibling,t.appendChild(o);return e.remove(n),hn.each(hn.grep(n.childNodes),function(e){t.appendChild(e)}),t}return n},Hg=function(e,t,n){Rg(e.childNodes,function(e){Dg(e)&&(t(e)&&n(e),e.hasChildNodes()&&Hg(e,t,n))})},_g=function(e,n){return t(function(t,n){return!(!n||!Ol.getStyle(e,n,t))},n)},Lg=function(e,n,r){return t(function(t,n,r){e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),Pg(e,r)},n,r)},Pg=function(e,t){"SPAN"===t.nodeName&&0===e.getAttribs(t).length&&e.remove(t,!0)},Vg=function(e,t){var n;1===t.nodeType&&t.parentNode&&1===t.parentNode.nodeType&&(n=Ol.getTextDecoration(e,t.parentNode),e.getStyle(t,"color")&&n?e.setStyle(t,"text-decoration",n):e.getStyle(t,"text-decoration")===n&&e.setStyle(t,"text-decoration",null))},Ig=function(e,t,n,r){Rg(t,function(t){Rg(e.dom.select(t.inline,r),function(r){Dg(r)&&Ag(e,t,n,r,t.exact?r:null)}),function(e,t,n){if(t.clear_child_styles){var r=t.links?"*:not(a)":"*";Rg(e.select(r,n),function(n){Dg(n)&&Rg(t.styles,function(t,r){e.setStyle(n,r,"")})})}}(e.dom,t,r)})},Fg=function(e,n,r,o){(n.styles.color||n.styles.textDecoration)&&(hn.walk(o,t(Vg,e),"childNodes"),Vg(e,o))},Ug=function(e,t,n,r){t.styles&&t.styles.backgroundColor&&Hg(r,_g(e,"fontSize"),Lg(e,"backgroundColor",Ol.replaceVars(t.styles.backgroundColor,n)))},jg=function(e,t,n,r){"sub"!==t.inline&&"sup"!==t.inline||(Hg(r,_g(e,"fontSize"),Lg(e,"fontSize","")),e.remove(e.select("sup"===t.inline?"sub":"sup",r),!0))},qg=function(e,t,n,r){r&&!1!==t.merge_siblings&&(r=Og(e,Ol.getNonWhiteSpaceSibling(r),r),r=Og(e,r,Ol.getNonWhiteSpaceSibling(r,!0)))},$g=function(e,t,n,r,o){Bm.matchNode(e,o.parentNode,n,r)&&Ag(e,t,r,o)||t.merge_with_parents&&e.dom.getParent(o.parentNode,function(i){if(Bm.matchNode(e,i,n,r))return Ag(e,t,r,o),!0})},Wg=function(t){var n=ju.fromRangeStart(t),r=ju.fromRangeEnd(t),o=t.commonAncestorContainer;return Cl.fromPosition(!1,o,r).map(function(i){return!Fs(n,r,o)&&Fs(n,i,o)?(a=n.container(),u=n.offset(),s=i.container(),l=i.offset(),(c=e.document.createRange()).setStart(a,u),c.setEnd(s,l),c):t;var a,u,s,l,c}).getOr(t)},Kg=function(e){return e.collapsed?e:Wg(e)},Xg=hn.each,Yg=function(e,t,n,r){var o,i,a=e.formatter.get(t),u=a[0],s=!r&&e.selection.isCollapsed(),l=e.dom,c=e.selection,f=function(e,t){if(t=t||u,e){if(t.onformat&&t.onformat(e,t,n,r),Xg(t.styles,function(t,r){l.setStyle(e,r,Ol.replaceVars(t,n))}),t.styles){var o=l.getAttrib(e,"style");o&&e.setAttribute("data-mce-style",o)}Xg(t.attributes,function(t,r){l.setAttrib(e,r,Ol.replaceVars(t,n))}),Xg(t.classes,function(t){t=Ol.replaceVars(t,n),l.hasClass(e,t)||l.addClass(e,t)})}},d=function(e,t){var n=!1;return!!u.selector&&(Xg(e,function(e){if(!("collapsed"in e&&e.collapsed!==s))return l.is(t,e.selector)&&!ds(t)?(f(t,e),!(n=!0)):void 0}),n)},h=function(r,o,i,s){var l,c,h=[],m=!0;l=u.inline||u.block,c=r.create(l),f(c),Xl(r,o,function(o){var i,g=function(o){var p,v,y,b;if(b=m,p=o.nodeName.toLowerCase(),v=o.parentNode.nodeName.toLowerCase(),1===o.nodeType&&r.getContentEditable(o)&&(b=m,m="true"===r.getContentEditable(o),y=!0),Ol.isEq(p,"br"))return i=0,void(u.block&&r.remove(o));if(u.wrapper&&Bm.matchNode(e,o,t,n))i=0;else{if(m&&!y&&u.block&&!u.wrapper&&Ol.isTextBlock(e,p)&&Ol.isValid(e,v,l))return o=r.rename(o,l),f(o),h.push(o),void(i=0);if(u.selector){var C=d(a,o);if(!u.inline||C)return void(i=0)}!m||y||!Ol.isValid(e,l,p)||!Ol.isValid(e,v,l)||!s&&3===o.nodeType&&1===o.nodeValue.length&&65279===o.nodeValue.charCodeAt(0)||ds(o)||u.inline&&r.isBlock(o)?(i=0,Xg(hn.grep(o.childNodes),g),y&&(m=b),i=0):(i||(i=r.clone(c,!1),o.parentNode.insertBefore(i,o),h.push(i)),i.appendChild(o))}};Xg(o,g)}),!0===u.links&&Xg(h,function(e){var t=function(e){"A"===e.nodeName&&f(e,u),Xg(hn.grep(e.childNodes),t)};t(e)}),Xg(h,function(o){var i,s,l,c,d,m=function(e){var t=!1;return Xg(e.childNodes,function(e){if((n=e)&&1===n.nodeType&&!Ml(n)&&!ds(n)&&!Wo.isBogus(n))return t=e,!1;var n}),t};s=0,Xg(o.childNodes,function(e){Ol.isWhiteSpaceNode(e)||Ml(e)||s++}),i=s,!(1<h.length)&&r.isBlock(o)||0!==i?(u.inline||u.wrapper)&&(u.exact||1!==i||((c=m(l=o))&&!Ml(c)&&Bm.matchName(r,c,u)&&(d=r.clone(c,!1),f(d),r.replace(d,l,!0),r.remove(c,1)),o=d||l),Ig(e,a,n,o),$g(e,u,t,n,o),Ug(r,u,n,o),jg(r,u,n,o),qg(r,u,n,o)):r.remove(o,1)})};if("false"!==l.getContentEditable(c.getNode())){if(u){if(r)r.nodeType?d(a,r)||((i=l.createRng()).setStartBefore(r),i.setEndAfter(r),h(l,Wl(e,i,a),0,!0)):h(l,r,0,!0);else if(s&&u.inline&&!l.select("td[data-mce-selected],th[data-mce-selected]").length)!function(e,t,n){var r,o,i,a,u,s,l=e.selection;a=(r=l.getRng()).startOffset,s=r.startContainer.nodeValue,(o=hs(e.getBody(),l.getStart()))&&(i=og(o));var c,f,d=/[^\s\u00a0\u00ad\u200b\ufeff]/;s&&0<a&&a<s.length&&d.test(s.charAt(a))&&d.test(s.charAt(a-1))?(u=l.getBookmark(),r.collapse(!0),r=Wl(e,r,e.formatter.get(t)),r=Hm(r),e.formatter.apply(t,n,r),l.moveToBookmark(u)):(o&&i.nodeValue===tg||(c=e.getDoc(),f=ig(!0).dom(),i=(o=c.importNode(f,!0)).firstChild,r.insertNode(o),a=1),e.formatter.apply(t,n,o),l.setCursorLocation(i,a))}(e,t,n);else{var m=e.selection.getNode();e.settings.forced_root_block||!a[0].defaultBlock||l.getParent(m,l.isBlock)||Yg(e,a[0].defaultBlock),e.selection.setRng(Kg(e.selection.getRng())),o=cs.getPersistentBookmark(e.selection,!0),h(l,Wl(e,c.getRng(),a)),u.styles&&Fg(l,u,n,m),c.moveToBookmark(o),Ol.moveStart(l,c,c.getRng()),e.nodeChanged()}vg(t,e)}}else{r=c.getNode();for(var g=0,p=a.length;g<p;g++)if(a[g].ceFalseOverride&&l.is(r,a[g].selector))return void f(r,a[g])}},Gg={applyFormat:Yg},Jg=function(e,t,n,r){var o=Or(n.get()),i={},a={},u=be(Ol.getParents(e.dom,t),function(e){return 1===e.nodeType&&!e.getAttribute("data-mce-bogus")});_r(r,function(t,n){hn.each(u,function(r){return e.formatter.matchNode(r,n,{},t.similar)?(-1===o.indexOf(n)&&(ve(t.callbacks,function(e){e(!0,{node:r,format:n,parents:u})}),i[n]=t.callbacks),a[n]=t.callbacks,!1):!Bm.matchesUnInheritedFormatSelector(e,r,n)&&void 0})});var s=Qg(n.get(),a,t,u);n.set(De({},i,s))},Qg=function(e,t,n,r){return Vr(e,function(e,o){return!!Fr(t,o)||(ve(e,function(e){e(!1,{node:n,format:o,parents:r})}),!1)}).t},Zg=function(e,t,n,r,o){var i,a,u,s,l,c,f,d;return null===t.get()&&(i=t,a=e,u=Ki({}),i.set({}),a.on("NodeChange",function(e){Jg(a,e.element,u,i.get())})),l=n,c=r,f=o,d=(s=t).get(),ve(l.split(","),function(e){d[e]||(d[e]={similar:f,callbacks:[]}),d[e].callbacks.push(c)}),s.set(d),{unbind:function(){return o=n,i=r,a=(e=t).get(),ve(o.split(","),function(e){a[e].callbacks=be(a[e].callbacks,function(e){return e!==i}),0===a[e].callbacks.length&&delete a[e]}),void e.set(a);var e,o,i,a}}},ep=function(e){var t={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all"}],italic:[{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all"}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all"}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all"}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(t,n,r){hn.each(r,function(n,r){e.setAttrib(t,r,n)})}},removeformat:[{selector:"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]};return hn.each("p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp".split(/\s/),function(e){t[e]={block:e,remove:"all"}}),t},tp=hn.each,np=Ui.DOM,rp=function(e,t){var n,r,o,i=t&&t.schema||p({}),a=function(e){var t,n,o;return r="string"==typeof e?{name:e,classes:[],attrs:{}}:e,n=t=np.create(r.name),(o=r).classes.length&&np.addClass(n,o.classes.join(" ")),np.setAttribs(n,o.attrs),t},u=function(e,t,n){var r,o,s,l,c,f,d,h,m=0<t.length&&t[0],g=m&&m.name;if(c=g,f="string"!=typeof(l=e)?l.nodeName.toLowerCase():l,s=!(!(h=(d=i.getElementRule(f))&&d.parentsRequired)||!h.length)&&(c&&-1!==hn.inArray(h,c)?c:h[0]))g===s?(o=t[0],t=t.slice(1)):o=s;else if(m)o=t[0],t=t.slice(1);else if(!n)return e;return o&&(r=a(o)).appendChild(e),n&&(r||(r=np.create("div")).appendChild(e),hn.each(n,function(t){var n=a(t);r.insertBefore(n,e)})),u(r,t,o&&o.siblings)};return e&&e.length?(r=e[0],n=a(r),(o=np.create("div")).appendChild(u(n,e.slice(1),r.siblings)),o):""},op=function(e){var t,n={classes:[],attrs:{}};return"*"!==(e=n.selector=hn.trim(e))&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(e,t,r,o,i){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==hn.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r)}if("["===o){var a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/);a&&(n.attrs[a[1]]=a[2])}return""})),n.name=t||"div",n},ip=function(e){return e&&"string"==typeof e?(e=(e=e.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),hn.map(e.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=hn.map(e.split(/(?:~\+|~|\+)/),op),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[]},ap=function(e,t){var n,r,o,i,a,u,s="";if(!1===(u=e.settings.preview_styles))return"";"string"!=typeof u&&(u="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow");var l=function(e){return e.replace(/%(\w+)/g,"")};if("string"==typeof t){if(!(t=e.formatter.get(t)))return;t=t[0]}return"preview"in t&&!1===(u=t.preview)?"":(n=t.block||t.inline||"span",r=(i=ip(t.selector)).length?(i[0].name||(i[0].name=n),n=t.selector,rp(i,e)):rp([n],e),o=np.select(n,r)[0]||r.firstChild,tp(t.styles,function(e,t){(e=l(e))&&np.setStyle(o,t,e)}),tp(t.attributes,function(e,t){(e=l(e))&&np.setAttrib(o,t,e)}),tp(t.classes,function(e){e=l(e),np.hasClass(o,e)||np.addClass(o,e)}),e.fire("PreviewFormats"),np.setStyles(r,{position:"absolute",left:-65535}),e.getBody().appendChild(r),a=np.getStyle(e.getBody(),"fontSize",!0),a=/px$/.test(a)?parseInt(a,10):0,tp(u.split(" "),function(t){var n=np.getStyle(o,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=np.getStyle(e.getBody(),t,!0),"#ffffff"===np.toHex(n).toLowerCase())||"color"===t&&"#000000"===np.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===a)return;n=parseFloat(n)/(/%$/.test(n)?100:1)*a+"px"}"border"===t&&n&&(s+="padding:0 2px;"),s+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),np.remove(r),s)},up=function(e,t,n,r,o){var i=t.get(n);!Bm.match(e,n,r,o)||"toggle"in i[0]&&!i[0].toggle?Gg.applyFormat(e,n,r,o):Mg(e,n,r,o)},sp=function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])},lp=function(e){var n=function(e){var t={},n=function(e,r){e&&("string"!=typeof e?hn.each(e,function(e,t){n(t,e)}):(ue(r)||(r=[r]),hn.each(r,function(e){"undefined"==typeof e.deep&&(e.deep=!e.selector),"undefined"==typeof e.split&&(e.split=!e.selector||e.inline),"undefined"==typeof e.remove&&e.selector&&!e.inline&&(e.remove="none"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),"string"==typeof e.classes&&(e.classes=e.classes.split(/\s+/))}),t[e]=r))};return n(ep(e.dom)),n(e.settings.formats),{get:function(e){return e?t[e]:t},has:function(e){return Fr(t,e)},register:n,unregister:function(e){return e&&t[e]&&delete t[e],t}}}(e),r=Ki(null);return sp(e),fg(e),{get:n.get,has:n.has,register:n.register,unregister:n.unregister,apply:t(Gg.applyFormat,e),remove:t(Mg,e),toggle:t(up,e,n),match:t(Bm.match,e),matchAll:t(Bm.matchAll,e),matchNode:t(Bm.matchNode,e),canApply:t(Bm.canApply,e),formatChanged:t(Zg,e,r),getCssText:t(ap,e)}},cp=Object.prototype.hasOwnProperty,fp=(pg=function(e,t){return t},function(){for(var e=new Array(arguments.length),t=0;t<e.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var n={},r=0;r<e.length;r++){var o=e[r];for(var i in o)cp.call(o,i)&&(n[i]=pg(n[i],o[i]))}return n}),dp=function(e,t,n){e.addAttributeFilter("data-mce-tabindex",function(e,t){for(var n,r=e.length;r--;)(n=e[r]).attr("tabindex",n.attr("data-mce-tabindex")),n.attr(t,null)}),e.addAttributeFilter("src,href,style",function(e,r){for(var o,i,a=e.length,u="data-mce-"+r,s=t.url_converter,l=t.url_converter_scope;a--;)(i=(o=e[a]).attr(u))!==undefined?(o.attr(r,0<i.length?i:null),o.attr(u,null)):(i=o.attr(r),"style"===r?i=n.serializeStyle(n.parseStyle(i),o.name):s&&(i=s.call(l,i,r,o.name)),o.attr(r,0<i.length?i:null))}),e.addAttributeFilter("class",function(e){for(var t,n,r=e.length;r--;)(n=(t=e[r]).attr("class"))&&(n=t.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),t.attr("class",0<n.length?n:null))}),e.addAttributeFilter("data-mce-type",function(e,t,n){for(var r,o=e.length;o--;)"bookmark"!==(r=e[o]).attr("data-mce-type")||n.cleanup||(re.from(r.firstChild).exists(function(e){return!_a(e.value)})?r.unwrap():r.remove())}),e.addNodeFilter("noscript",function(e){for(var t,n=e.length;n--;)(t=e[n].firstChild)&&(t.value=Ci.decode(t.value))}),e.addNodeFilter("script,style",function(e,n){for(var r,o,i,a=e.length,u=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")};a--;)o=(r=e[a]).firstChild?r.firstChild.value:"","script"===n?((i=r.attr("type"))&&r.attr("type","mce-no/type"===i?null:i.replace(/^mce\-/,"")),"xhtml"===t.element_format&&0<o.length&&(r.firstChild.value="// <![CDATA[\n"+u(o)+"\n// ]]>")):"xhtml"===t.element_format&&0<o.length&&(r.firstChild.value="<!--\n"+u(o)+"\n-->")}),e.addNodeFilter("#comment",function(e){for(var t,n=e.length;n--;)0===(t=e[n]).value.indexOf("[CDATA[")?(t.name="#cdata",t.type=4,t.value=t.value.replace(/^\[CDATA\[|\]\]$/g,"")):0===t.value.indexOf("mce:protected ")&&(t.name="#text",t.type=3,t.raw=!0,t.value=unescape(t.value).substr(14))}),e.addNodeFilter("xml:namespace,input",function(e,t){for(var n,r=e.length;r--;)7===(n=e[r]).type?n.remove():1===n.type&&("input"!==t||n.attr("type")||n.attr("type","text"))}),e.addAttributeFilter("data-mce-type",function(t){ve(t,function(t){"format-caret"===t.attr("data-mce-type")&&(t.isEmpty(e.schema.getNonEmptyElements())?t.remove():t.unwrap())})}),e.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize",function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)})},hp=function(e){var t,n,r=function(e){return e&&"br"===e.name};r(t=e.lastChild)&&r(n=t.prev)&&(t.remove(),n.remove())},mp=function(t,n,r){return d=r,(f=t)&&f.hasEventListeners("PreProcess")&&!d.no_events?(i=n,a=r,c=(o=t).dom,i=i.cloneNode(!0),(u=e.document.implementation).createHTMLDocument&&(s=u.createHTMLDocument(""),hn.each("BODY"===i.nodeName?i.childNodes:[i],function(e){s.body.appendChild(s.importNode(e,!0))}),i="BODY"!==i.nodeName?s.body.firstChild:s.body,l=c.doc,c.doc=s),Kf(o,fp(a,{node:i})),l&&(c.doc=l),i):n;var o,i,a,u,s,l,c,f,d},gp=function(e,t,n){e.addNodeFilter("font",function(e){ve(e,function(e){var r,o=t.parse(e.attr("style")),i=e.attr("color"),a=e.attr("face"),u=e.attr("size");i&&(o.color=i),a&&(o["font-family"]=a),u&&(o["font-size"]=n[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",t.serialize(o)),r=e,ve(["color","face","size"],function(e){r.attr(e,null)})})})},pp=function(e,t){var n,r=Di();t.convert_fonts_to_spans&&gp(e,r,hn.explode(t.font_size_legacy_values)),n=r,e.addNodeFilter("strike",function(e){ve(e,function(e){var t=n.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",n.serialize(t))})})},vp=function(e,t){t.inline_styles&&pp(e,t)},yp=function(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new ic("br",1)).shortEnded=!0:r.empty().append(new ic("#text",3)).value="\xa0"},bp=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},Cp=function(e,t,n,r){return r.isEmpty(t,n,function(t){return n=t,(r=e.getElementRule(n.name))&&r.paddEmpty;var n,r})},wp=hn.makeMap,xp=hn.each,zp=hn.explode,Np=hn.extend,Ep=function(e,t){void 0===t&&(t=p());var n={},r=[],o={},i={};(e=e||{}).validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var a,u,s,l=function(e){var t,a,u;(a=e.name)in n&&((u=o[a])?u.push(e):o[a]=[e]),t=r.length;for(;t--;)(a=r[t].name)in e.attributes.map&&((u=i[a])?u.push(e):i[a]=[e]);return e},c={schema:t,addAttributeFilter:function(e,t){xp(zp(e),function(e){var n;for(n=0;n<r.length;n++)if(r[n].name===e)return void r[n].callbacks.push(t);r.push({name:e,callbacks:[t]})})},getAttributeFilters:function(){return[].concat(r)},addNodeFilter:function(e,t){xp(zp(e),function(e){var r=n[e];r||(n[e]=r=[]),r.push(t)})},getNodeFilters:function(){var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push({name:t,callbacks:n[t]});return e},filterNode:l,parse:function(a,u){var s,c,f,d,h,m,g,p,v,y,b,C=[];u=u||{},o={},i={},v=Np(wp("script,style,head,html,body,title,meta,param"),t.getBlockElements());var w,x=t.getNonEmptyElements(),z=t.children,N=e.validate,E=!1===(w="forced_root_block"in u?u.forced_root_block:e.forced_root_block)?"":!0===w?"p":w,S=t.getWhiteSpaceElements(),k=/^[ \t\r\n]+/,T=/[ \t\r\n]+$/,A=/[ \t\r\n]+/g,M=/^[ \t\r\n]+$/;y=S.hasOwnProperty(u.context)||S.hasOwnProperty(e.root_name);var R=function(e,t){var r,i=new ic(e,t);return e in n&&((r=o[e])?r.push(i):o[e]=[i]),i},D=function(e){var n,r,o,i,a=t.getBlockElements();for(n=e.prev;n&&3===n.type;){if(0<(o=n.value.replace(T,"")).length)return void(n.value=o);if(r=n.next){if(3===r.type&&r.value.length){n=n.prev;continue}if(!a[r.name]&&"script"!==r.name&&"style"!==r.name){n=n.prev;continue}}i=n.prev,n.remove(),n=i}};s=dc({validate:N,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,self_closing_elements:function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n}(t.getSelfClosingElements()),cdata:function(e){b.append(R("#cdata",4)).value=e},text:function(e,t){var n,r;y||(e=e.replace(A," "),(r=b.lastChild)&&(v[r.name]||"br"===r.name)&&(e=e.replace(k,""))),0!==e.length&&((n=R("#text",3)).raw=!!t,b.append(n).value=e)},comment:function(e){b.append(R("#comment",8)).value=e},pi:function(e,t){b.append(R(e,7)).value=t,D(b)},doctype:function(e){b.append(R("#doctype",10)).value=e,D(b)},start:function(e,n,o){var a,u,s,l,c;if(s=N?t.getElementRule(e):{}){for((a=R(s.outputName||e,1)).attributes=n,a.shortEnded=o,b.append(a),(c=z[b.name])&&z[a.name]&&!c[a.name]&&C.push(a),u=r.length;u--;)(l=r[u].name)in n.map&&((g=i[l])?g.push(a):i[l]=[a]);v[e]&&D(a),o||(b=a),!y&&S[e]&&(y=!0)}},end:function(n){var r,o,i,a,s,l;if(o=N?t.getElementRule(n):{}){if(v[n]&&!y){if((r=b.firstChild)&&3===r.type)if(0<(i=r.value.replace(k,"")).length)r.value=i,r=r.next;else for(a=r.next,r.remove(),r=a;r&&3===r.type;)i=r.value,a=r.next,(0===i.length||M.test(i))&&(r.remove(),r=a),r=a;if((r=b.lastChild)&&3===r.type)if(0<(i=r.value.replace(T,"")).length)r.value=i,r=r.prev;else for(a=r.prev,r.remove(),r=a;r&&3===r.type;)i=r.value,a=r.prev,(0===i.length||M.test(i))&&(r.remove(),r=a),r=a}if(y&&S[n]&&(y=!1),o.removeEmpty&&Cp(t,x,S,b)&&!b.attr("name")&&!b.attr("id"))return s=b.parent,v[b.name]?b.empty().remove():b.unwrap(),void(b=s);o.paddEmpty&&(bp(l=b,"#text")&&"\xa0"===l.firstChild.value||Cp(t,x,S,b))&&yp(e,u,v,b),b=b.parent}}},t);var B=b=new ic(u.context||e.root_name,11);if(s.parse(a),
|
29
|
-
N&&C.length&&(u.context?u.invalid=!0:function(e){var n,r,o,i,a,u,s,c,f,d,h,m,g,p,v,y;for(m=wp("tr,td,th,tbody,thead,tfoot,table"),d=t.getNonEmptyElements(),h=t.getWhiteSpaceElements(),g=t.getTextBlockElements(),p=t.getSpecialElements(),n=0;n<e.length;n++)if((r=e[n]).parent&&!r.fixed)if(g[r.name]&&"li"===r.parent.name){for(v=r.next;v&&g[v.name];)v.name="li",v.fixed=!0,r.parent.insert(v,r.parent),v=v.next;r.unwrap(r)}else{for(i=[r],o=r.parent;o&&!t.isValidChild(o.name,r.name)&&!m[o.name];o=o.parent)i.push(o);if(o&&1<i.length){for(i.reverse(),a=u=l(i[0].clone()),f=0;f<i.length-1;f++){for(t.isValidChild(u.name,i[f].name)?(s=l(i[f].clone()),u.append(s)):s=u,c=i[f].firstChild;c&&c!==i[f+1];)y=c.next,s.append(c),c=y;u=s}Cp(t,d,h,a)?o.insert(r,i[0],!0):(o.insert(a,i[0],!0),o.insert(r,a)),o=i[0],(Cp(t,d,h,o)||bp(o,"br"))&&o.empty().remove()}else if(r.parent){if("li"===r.name){if((v=r.prev)&&("ul"===v.name||"ul"===v.name)){v.append(r);continue}if((v=r.next)&&("ul"===v.name||"ul"===v.name)){v.insert(r,v.firstChild,!0);continue}r.wrap(l(new ic("ul",1)));continue}t.isValidChild(r.parent.name,"div")&&t.isValidChild("div",r.name)?r.wrap(l(new ic("div",1))):p[r.name]?r.empty().remove():r.unwrap()}}}(C)),E&&("body"===B.name||u.isRootContent)&&function(){var n,r,o=B.firstChild,i=function(e){e&&((o=e.firstChild)&&3===o.type&&(o.value=o.value.replace(k,"")),(o=e.lastChild)&&3===o.type&&(o.value=o.value.replace(T,"")))};if(t.isValidChild(B.name,E.toLowerCase())){for(;o;)n=o.next,3===o.type||1===o.type&&"p"!==o.name&&!v[o.name]&&!o.attr("data-mce-type")?(r||((r=R(E,1)).attr(e.forced_root_block_attrs),B.insert(r,o)),r.append(o)):(i(r),r=null),o=n;i(r)}}(),!u.invalid){for(p in o)if(o.hasOwnProperty(p)){for(g=n[p],h=(c=o[p]).length;h--;)c[h].parent||c.splice(h,1);for(f=0,d=g.length;f<d;f++)g[f](c,p,u)}for(f=0,d=r.length;f<d;f++)if((g=r[f]).name in i){for(h=(c=i[g.name]).length;h--;)c[h].parent||c.splice(h,1);for(h=0,m=g.callbacks.length;h<m;h++)g.callbacks[h](c,g.name,u)}}return B}};return s=(a=c).schema,(u=e).remove_trailing_brs&&a.addNodeFilter("br",function(e,t,n){var r,o,i,a,l,c,f,d,h=e.length,m=hn.extend({},s.getBlockElements()),g=s.getNonEmptyElements(),p=s.getNonEmptyElements();for(m.body=1,r=0;r<h;r++)if(i=(o=e[r]).parent,m[o.parent.name]&&o===i.lastChild){for(l=o.prev;l;){if("span"!==(c=l.name)||"bookmark"!==l.attr("data-mce-type")){if("br"!==c)break;if("br"===c){o=null;break}}l=l.prev}o&&(o.remove(),Cp(s,g,p,i)&&(f=s.getElementRule(i.name))&&(f.removeEmpty?i.remove():f.paddEmpty&&yp(u,n,m,i)))}else{for(a=o;i&&i.firstChild===a&&i.lastChild===a&&!m[(a=i).name];)i=i.parent;a===i&&!0!==u.padd_empty_with_br&&((d=new ic("#text",3)).value="\xa0",o.replace(d))}}),a.addAttributeFilter("href",function(e){var t,n,r,o=e.length;if(!u.allow_unsafe_link_target)for(;o--;)"a"===(t=e[o]).name&&"_blank"===t.attr("target")&&t.attr("rel",(r=(n=t.attr("rel"))?hn.trim(n):"",/\b(noopener)\b/g.test(r)?r:r.split(" ").filter(function(e){return 0<e.length}).concat(["noopener"]).sort().join(" ")))}),u.allow_html_in_named_anchor||a.addAttributeFilter("id,name",function(e){for(var t,n,r,o,i=e.length;i--;)if("a"===(o=e[i]).name&&o.firstChild&&!o.attr("href"))for(r=o.parent,t=o.lastChild;n=t.prev,r.insert(t,o),t=n;);}),u.fix_list_elements&&a.addNodeFilter("ul,ol",function(e){for(var t,n,r=e.length;r--;)if("ul"===(n=(t=e[r]).parent).name||"ol"===n.name)if(t.prev&&"li"===t.prev.name)t.prev.append(t);else{var o=new ic("li",1);o.attr("style","list-style-type: none"),t.wrap(o)}}),u.validate&&s.getValidClasses()&&a.addAttributeFilter("class",function(e){for(var t,n,r,o,i,a,u,l=e.length,c=s.getValidClasses();l--;){for(n=(t=e[l]).attr("class").split(" "),i="",r=0;r<n.length;r++)o=n[r],u=!1,(a=c["*"])&&a[o]&&(u=!0),a=c[t.name],!u&&a&&a[o]&&(u=!0),u&&(i&&(i+=" "),i+=o);i.length||(i=null),t.attr("class",i)}}),vp(c,e),c},Sp=function(e,t,n){-1===hn.inArray(t,n)&&(e.addAttributeFilter(n,function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),t.push(n))},kp=function(e,t,n,r,o){var i,a,u,s;return a=e,s=(i=r,Qc(t,n).serialize(i)),(u=o).no_events||!a?s:Xf(a,fp(u,{content:s})).content},Tp=function(e,n){var r,o,i,a=["data-mce-selected"];return r=n&&n.dom?n.dom:Ui.DOM,o=n&&n.schema?n.schema:p(e),e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs,i=Ep(e,o),dp(i,e,r),{schema:o,addNodeFilter:i.addNodeFilter,addAttributeFilter:i.addAttributeFilter,serialize:function(t,a){var u,s,l,c,f,d,h,m,g,p=fp({format:"html"},a||{}),v=mp(n,t,p),y=(u=r,s=v,c=Pa((l=p).getInner?s.innerHTML:u.getOuterHTML(s)),l.selection||ii(Er.fromDom(s))?c:hn.trim(c)),b=(f=i,d=y,m=(h=p).selection?fp({forced_root_block:!1},h):h,g=f.parse(d,m),hp(g),g);return"tree"===p.format?b:kp(n,e,o,b,p)},addRules:function(e){o.addValidElements(e)},setRules:function(e){o.setValidElements(e)},addTempAttr:t(Sp,i,a),getTempAttrs:function(){return a}}},Ap=function(e,t){var n=Tp(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs}};(S||(S={})).isBookmarkNode=Ml;var Mp,Rp,Dp=S,Bp=Wo.isContentEditableFalse,Op=Wo.isContentEditableTrue,Hp=function(t,n){var r,o,i,a,u,s,l,c,f,d,h,m,g,p,v,y,b,C=n.dom,w=hn.each,x=n.getDoc(),z=e.document,N=Math.abs,E=Math.round,S=n.getBody();a={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var k=function(e){return e&&("IMG"===e.nodeName||n.dom.is(e,"figure.image"))},T=function(e){var t,r,o=e.target;t=e,r=n.selection.getRng(),!k(t.target)||Dh(t.clientX,t.clientY,r)||e.isDefaultPrevented()||n.selection.select(o)},A=function(e){return n.dom.is(e,"figure.image")?e.querySelector("img"):e},M=function(e){var t=n.settings.object_resizing;return!1!==t&&!ut.iOS&&("string"!=typeof t&&(t="table,img,figure.image,div"),"false"!==e.getAttribute("data-mce-resize")&&e!==n.getBody()&&io(Er.fromDom(e),t))},R=function(e){var t,a,w,x;t=e.screenX-s,a=e.screenY-l,p=t*u[2]+d,v=a*u[3]+h,p=p<5?5:p,v=v<5?5:v,(k(r)&&!1!==n.settings.resize_img_proportional?!Ih.modifierPressed(e):Ih.modifierPressed(e)||k(r)&&u[2]*u[3]!=0)&&(N(t)>N(a)?(v=E(p*m),p=E(v/m)):(p=E(v/m),v=E(p*m))),C.setStyles(A(o),{width:p,height:v}),w=0<(w=u.startPos.x+t)?w:0,x=0<(x=u.startPos.y+a)?x:0,C.setStyles(i,{left:w,top:x,display:"block"}),i.innerHTML=p+" × "+v,u[2]<0&&o.clientWidth<=p&&C.setStyle(o,"left",c+(d-p)),u[3]<0&&o.clientHeight<=v&&C.setStyle(o,"top",f+(h-v)),(t=S.scrollWidth-y)+(a=S.scrollHeight-b)!=0&&C.setStyles(i,{left:w-t,top:x-a}),g||(Qf(n,r,d,h),g=!0)},D=function(){g=!1;var e=function(e,t){t&&(r.style[e]||!n.schema.isValid(r.nodeName.toLowerCase(),e)?C.setStyle(A(r),e,t):C.setAttrib(A(r),e,t))};e("width",p),e("height",v),C.unbind(x,"mousemove",R),C.unbind(x,"mouseup",D),z!==x&&(C.unbind(z,"mousemove",R),C.unbind(z,"mouseup",D)),C.remove(o),C.remove(i),B(r),Zf(n,r,p,v),C.setAttrib(r,"style",C.getAttrib(r,"style")),n.nodeChanged()},B=function(e){var t,g,N,E,k;O(),L(),t=C.getPos(e,S),c=t.x,f=t.y,k=e.getBoundingClientRect(),g=k.width||k.right-k.left,N=k.height||k.bottom-k.top,r!==e&&(r=e,p=v=0),E=n.fire("ObjectSelected",{target:e}),M(e)&&!E.isDefaultPrevented()?w(a,function(e,t){var n;(n=C.get("mceResizeHandle"+t))&&C.remove(n),n=C.add(S,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===ut.ie&&(n.contentEditable=!1),C.bind(n,"mousedown",function(t){var n;t.stopImmediatePropagation(),t.preventDefault(),s=(n=t).screenX,l=n.screenY,d=A(r).clientWidth,h=A(r).clientHeight,m=h/d,(u=e).startPos={x:g*e[0]+c,y:N*e[1]+f},y=S.scrollWidth,b=S.scrollHeight,o=r.cloneNode(!0),C.addClass(o,"mce-clonedresizable"),C.setAttrib(o,"data-mce-bogus","all"),o.contentEditable=!1,o.unSelectabe=!0,C.setStyles(o,{left:c,top:f,margin:0}),o.removeAttribute("data-mce-selected"),S.appendChild(o),C.bind(x,"mousemove",R),C.bind(x,"mouseup",D),z!==x&&(C.bind(z,"mousemove",R),C.bind(z,"mouseup",D)),i=C.add(S,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},d+" × "+h)}),e.elm=n,C.setStyles(n,{left:g*e[0]+c-n.offsetWidth/2,top:N*e[1]+f-n.offsetHeight/2})}):O(),r.setAttribute("data-mce-selected","1")},O=function(){var e,t;for(e in L(),r&&r.removeAttribute("data-mce-selected"),a)(t=C.get("mceResizeHandle"+e))&&(C.unbind(t),C.remove(t))},H=function(e){var r,o=function(e,t){if(e)do{if(e===t)return!0}while(e=e.parentNode)};g||n.removed||(w(C.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute("data-mce-selected")}),r="mousedown"===e.type?e.target:t.getNode(),o(r=C.$(r).closest("table,img,figure.image,hr")[0],S)&&(P(),o(t.getStart(!0),r)&&o(t.getEnd(!0),r))?B(r):O())},_=function(e){return Bp(function(e,t){for(;t&&t!==e;){if(Op(t)||Bp(t))return t;t=t.parentNode}return null}(n.getBody(),e))},L=function(){for(var e in a){var t=a[e];t.elm&&(C.unbind(t.elm),delete t.elm)}},P=function(){try{n.getDoc().execCommand("enableObjectResizing",!1,!1)}catch(T){}};return n.on("init",function(){P(),ut.ie&&11<=ut.ie&&(n.on("mousedown click",function(e){var t=e.target,r=t.nodeName;g||!/^(TABLE|IMG|HR)$/.test(r)||_(t)||(2!==e.button&&n.selection.select(t,"TABLE"===r),"mousedown"===e.type&&n.nodeChanged())}),n.dom.bind(S,"mscontrolselect",function(e){var t=function(e){dt.setEditorTimeout(n,function(){n.selection.select(e)})};if(_(e.target))return e.preventDefault(),void t(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&t(e.target))}));var e=dt.throttle(function(e){n.composing||H(e)});n.on("nodechange ResizeEditor ResizeWindow drop FullscreenStateChanged",e),n.on("keyup compositionend",function(t){r&&"TABLE"===r.nodeName&&e(t)}),n.on("hide blur",O),n.on("contextmenu",T,!0)}),n.on("remove",L),{isResizable:M,showResizeRect:B,hideResizeRect:O,updateResizeRect:H,destroy:function(){r=o=null}}},_p=function(e,t){var n=function(n){var r=t(n);if(r<=0||null===r){var o=Yr(n,e);return parseFloat(o)||0}return r},r=function(e,t){return we(t,function(t,n){var r=Yr(e,n),o=r===undefined?0:parseInt(r,10);return isNaN(o)?t:t+o},0)};return{set:function(t,n){if(!fe(n)&&!n.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+n);var r=t.dom();Ur(r)&&(r.style[e]=n+"px")},get:n,getOuter:n,aggregate:r,max:function(e,t,n){var o=r(e,n);return o<t?t-o:0}}}("height",function(e){var t=e.dom();return jr(e)?t.getBoundingClientRect().height:t.offsetHeight}),Lp=function(e,t){return{left:K(e),top:K(t),translate:function(n,r){return Lp(e+n,t+r)}}},Pp=Lp,Vp=function(e,t){return e!==undefined?e:t!==undefined?t:0},Ip=function(t){var n,r,o=t.dom().ownerDocument,i=o.body,a=(r=(n=Er.fromDom(o)).dom())===r.window&&n instanceof e.Window?n:Br(n)?r.defaultView||r.parentWindow:null,u=o.documentElement,s=Vp(a.pageYOffset,u.scrollTop),l=Vp(a.pageXOffset,u.scrollLeft),c=Vp(u.clientTop,i.clientTop),f=Vp(u.clientLeft,i.clientLeft);return Fp(t).translate(l-f,s-c)},Fp=function(n){var r,o,i,a=n.dom(),u=a.ownerDocument,s=u.body,l=Er.fromDom(u.documentElement);return s===a?Pp(s.offsetLeft,s.offsetTop):(r=n,o=l||Er.fromDom(e.document.documentElement),ya(r,t(uo,o)).isSome()?(i=a.getBoundingClientRect(),Pp(i.left,i.top)):Pp(0,0))},Up=zr.detect().browser.isSafari(),jp=function(t){var n=t!==undefined?t.dom():e.document,r=n.body.scrollLeft||n.documentElement.scrollLeft,o=n.body.scrollTop||n.documentElement.scrollTop;return Pp(r,o)},qp=function(t,n,r){(r!==undefined?r.dom():e.document).defaultView.scrollTo(t,n)},$p=function(e,t){Up&&ce(e.dom().scrollIntoViewIfNeeded)?e.dom().scrollIntoViewIfNeeded(!1):e.dom().scrollIntoView(t)},Wp=function(e,t){return e.view(t).fold(K([]),function(t){var n=e.owner(t),r=Wp(e,n);return[t].concat(r)})},Kp=Object.freeze({view:function(t){return(t.dom()===e.document?re.none():re.from(t.dom().defaultView.frameElement)).map(Er.fromDom)},owner:function(e){return lo(e)}}),Xp=function(t){var n,r,o,i=Er.fromDom(e.document),a=jp(i),u=(n=t,o=(r=Kp).owner(n),Wp(r,o)),s=Fp(t),l=Ce(u,function(e,t){var n=Fp(t);return{left:e.left+n.left(),top:e.top+n.top()}},{left:0,top:0});return Pp(l.left+s.left()+a.left(),l.top+s.top()+a.top())},Yp=function(e){return"textarea"===Ar(e)},Gp=function(e,t){var n,r=Ip(e),o=(n=e,_p.get(n));return{element:e,bottom:r.top()+o,pos:r,cleanup:t}},Jp=function(e,t){var n=function(e,t){var n=vo(e);if(0===n.length||Yp(e))return{element:e,offset:t};if(t<n.length&&!Yp(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Yp(r)?{element:e,offset:t}:"img"===Ar(r)?{element:r,offset:1}:Dr(r)?{element:r,offset:Gl(r).length}:{element:r,offset:vo(r).length}}(e,t),r=Er.fromHtml('<span data-mce-bogus="all">'+La+"</span>");return ea(n.element,r),Gp(r,function(){return aa(r)})},Qp=function(e){return Gp(Er.fromDom(e),$)},Zp=function(e,t,n,r){nv(e,function(){return ev(e,t,n,r)},n)},ev=function(e,t,n,r){var o=Er.fromDom(e.getBody()),i=Er.fromDom(e.getDoc());o.dom().offsetWidth;var a=jp(i).top(),u=Jp(Er.fromDom(n.startContainer),n.startOffset);t(i,a,u,r),u.cleanup()},tv=function(e,t,n,r){var o=Er.fromDom(e.getDoc());n(o,jp(o).top(),t,r)},nv=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;t(Er.fromDom(r),Er.fromDom(i));var u=e.dom.createRng();u.setStart(r,o),u.setEnd(i,a),e.selection.setRng(n)},rv=function(e,t,n,r){var o=e.pos;if(n)qp(o.left(),o.top(),r);else{var i=o.top()-t+(e.bottom-o.top());qp(o.left(),i,r)}},ov=function(e,t,n,r,o){r.pos.top()<t?rv(r,n,!1!==o,e):r.bottom>n+t&&rv(r,n,!0===o,e)},iv=function(e,t,n,r){var o=e.dom().defaultView.innerHeight;ov(e,t,o,n,r)},av=function(t,n,r,o,i){var a=n.dom().defaultView.innerHeight;ov(n,r,a,o,i);var u=Xp(o.element),s=jp().top(),l=e.window.innerHeight+s;u.top()<s?$p(o.element,!1!==i):u.top()>l&&$p(o.element,!0===i)},uv=function(e,n,r){return Zp(e,t(iv),n,r)},sv=function(e,n,r){return tv(e,Qp(n),t(iv),r)},lv=function(e,n,r){return Zp(e,t(av,e),n,r)},cv=function(e,n,r){return tv(e,Qp(n),t(av,e),r)},fv=function(e,t,n){var r,o;r=t,o=n,e.fire("ScrollIntoView",{elm:r,alignToTop:o}).isDefaultPrevented()||(e.inline?sv:cv)(e,t,n)},dv=function(e,t,n){(e.inline?uv:lv)(e,t,n)},hv=function(e){return Wo.isContentEditableTrue(e)||Wo.isContentEditableFalse(e)},mv=function(e,t,n){var r,o,i,a,u,s=n;if(s.caretPositionFromPoint)(o=s.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(o.offsetNode,o.offset),r.collapse(!0));else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(s.body.createTextRange){r=s.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(G){r=function(e,t,n){var r,o,i;if(r=n.elementFromPoint(e,t),o=n.body.createTextRange(),r&&"HTML"!==r.tagName||(r=n.body),o.moveToElementText(r),0<(i=(i=hn.toArray(o.getClientRects())).sort(function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-Math.abs(Math.max(n.top-t,n.bottom-t))})).length){t=(i[0].bottom+i[0].top)/2;try{return o.moveToPoint(e,t),o.collapse(!0),o}catch(a){}}return null}(e,t,n)}return i=r,a=n.body,u=i&&i.parentElement?i.parentElement():null,Wo.isContentEditableFalse(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(u,a,hv))?null:i}return r},gv=function(e,t){return pe(t,function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t})},pv=function(t,n){var r=(n||e.document).createDocumentFragment();return ve(t,function(e){r.appendChild(e.dom())}),Er.fromDom(r)},vv=Qr("element","width","rows"),yv=Qr("element","cells"),bv=Qr("x","y"),Cv=function(e,t){var n=parseInt(Kr(e,t),10);return isNaN(n)?1:n},wv=function(e){return we(e,function(e,t){return t.cells().length>e?t.cells().length:e},0)},xv=function(e,t){for(var n=e.rows(),r=0;r<n.length;r++)for(var o=n[r].cells(),i=0;i<o.length;i++)if(uo(o[i],t))return re.some(bv(i,r));return re.none()},zv=function(e,t,n,r,o){for(var i=[],a=e.rows(),u=n;u<=o;u++){var s=a[u].cells(),l=t<r?s.slice(t,r+1):s.slice(r,t+1);i.push(yv(a[u].element(),l))}return i},Nv=function(e){var t=vv(Da(e),0,[]);return ve(va(e,"tr"),function(e,n){ve(va(e,"td,th"),function(r,o){!function(e,t,n,r,o){for(var i=Cv(o,"rowspan"),a=Cv(o,"colspan"),u=e.rows(),s=n;s<n+i;s++){u[s]||(u[s]=yv(Ba(r),[]));for(var l=t;l<t+a;l++)u[s].cells()[l]=s===n&&l===t?o:Da(o)}}(t,function(e,t,n){for(;r=t,o=n,i=void 0,((i=e.rows())[o]?i[o].cells():[])[r];)t++;var r,o,i;return t}(t,o,n),n,e,r)})}),vv(t.element(),wv(t.rows()),t.rows())},Ev=function(e){return n=pe((t=e).rows(),function(e){var t=pe(e.cells(),function(e){var t=Ba(e);return Xr(t,"colspan"),Xr(t,"rowspan"),t}),n=Da(e.element());return oa(n,t),n}),r=Da(t.element()),o=Er.fromTag("tbody"),oa(o,n),ra(r,o),r;var t,n,r,o},Sv=function(e,t,n){return xv(e,t).bind(function(t){return xv(e,n).map(function(n){return r=e,i=n,a=(o=t).x(),u=o.y(),s=i.x(),c=u<(l=i.y())?zv(r,a,u,s,l):zv(r,a,l,s,u),vv(r.element(),wv(c),c);var r,o,i,a,u,s,l,c})})},kv=function(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t},Tv=kv,Av=function(e){return Se(e,function(e){var t=gu(e);return t?[Er.fromDom(t)]:[]})},Mv=function(e){return 1<kv(e).length},Rv=function(e){return be(Av(e),oi)},Dv=function(e){return va(e,"td[data-mce-selected],th[data-mce-selected]")},Bv=function(e,t){var n=Dv(t),r=Rv(e);return 0<n.length?n:r},Ov=Bv,Hv=function(e){return Bv(Tv(e.selection.getSel()),Er.fromDom(e.getBody()))},_v=function(e,t){return xe(e,function(e){return"li"===Ar(e)&&th(e,t)}).fold(K([]),function(){return(t=e,xe(t,function(e){return"ul"===Ar(e)||"ol"===Ar(e)})).map(function(e){return[Er.fromTag("li"),Er.fromTag(Ar(e))]}).getOr([]);var t})},Lv=function(e,t){var n,r=Er.fromDom(t.commonAncestorContainer),o=Kd(r,e),i=be(o,function(e){return Jo(e)||Yo(e)}),a=_v(o,t),u=i.concat(a.length?a:ti(n=r)?fo(n).filter(ei).fold(K([]),function(e){return[n,e]}):ei(n)?[n]:[]);return pe(u,Da)},Pv=function(){return pv([])},Vv=function(e,t){return n=Er.fromDom(t.cloneContents()),r=Lv(e,t),o=we(r,function(e,t){return ra(t,e),t},n),0<r.length?pv([o]):o;var n,r,o},Iv=function(e,n){return(r=e,o=n[0],Ca(o,"table",t(uo,r))).bind(function(e){var t=n[0],r=n[n.length-1],o=Nv(e);return Sv(o,t,r).map(function(e){return pv([Ev(e)])})}).getOrThunk(Pv);var r,o},Fv=function(e,t){var n,r,o=Ov(t,e);return 0<o.length?Iv(e,o):(n=e,0<(r=t).length&&r[0].collapsed?Pv():Vv(n,r[0]))},Uv=function(e,t){if(void 0===t&&(t={}),t.get=!0,t.format=t.format||"html",t.selection=!0,(t=e.fire("BeforeGetContent",t)).isDefaultPrevented())return e.fire("GetContent",t),t.content;if("text"===t.format)return l=e,re.from(l.selection.getRng()).map(function(e){var t=l.dom.add(l.getBody(),"div",{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),n=Pa(t.innerText);return l.dom.remove(t),n}).getOr("");t.getInner=!0;var n,r,o,i,a,u,s,l,c=(r=t,i=(n=e).selection.getRng(),a=n.dom.create("body"),u=n.selection.getSel(),s=gv(n,Tv(u)),(o=r.contextual?Fv(Er.fromDom(n.getBody()),s).dom():i.cloneContents())&&a.appendChild(o),n.selection.serializer.serialize(a,r));return"tree"===t.format?c:(t.content=e.selection.isCollapsed()?"":c,e.fire("GetContent",t),t.content)},jv=function(e,t,n){return null!==function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(e,t,n)},qv=function(e,t,n){return jv(e,t,function(e){return e.nodeName===n})},$v=function(e){return e&&"TABLE"===e.nodeName},Wv=function(e,t,n){for(var r=new Ko(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(Wo.isBr(t))return!0},Kv=function(e,t,n,r,o){var i,a,u=e.getRoot(),s=e.schema.getNonEmptyElements(),l=e.getParent(o.parentNode,e.isBlock)||u;if(r&&Wo.isBr(o)&&t&&e.isEmpty(l))return re.some(C(o.parentNode,e.nodeIndex(o)));for(var c,f,d=new Ko(o,l);a=d[r?"prev":"next"]();){if("false"===e.getContentEditableParent(a)||(f=u,ja(c=a)&&!1===jv(c,f,ds)))return re.none();if(Wo.isText(a)&&0<a.nodeValue.length)return!1===qv(a,u,"A")?re.some(C(a,r?a.nodeValue.length:0)):re.none();if(e.isBlock(a)||s[a.nodeName.toLowerCase()])return re.none();i=a}return n&&i?re.some(C(i,0)):re.none()},Xv=function(e,t,n,r){var o,i,a,u,s,l,c,f,d,h=e.getRoot(),m=!1;if(o=r[(n?"start":"end")+"Container"],i=r[(n?"start":"end")+"Offset"],l=Wo.isElement(o)&&i===o.childNodes.length,u=e.schema.getNonEmptyElements(),s=n,ja(o))return re.none();if(Wo.isElement(o)&&i>o.childNodes.length-1&&(s=!1),Wo.isDocument(o)&&(o=h,i=0),o===h){if(s&&(a=o.childNodes[0<i?i-1:0])){if(ja(a))return re.none();if(u[a.nodeName]||$v(a))return re.none()}if(o.hasChildNodes()){if(i=Math.min(!s&&0<i?i-1:i,o.childNodes.length-1),o=o.childNodes[i],i=Wo.isText(o)&&l?o.data.length:0,!t&&o===h.lastChild&&$v(o))return re.none();if(function(e,t){for(;t&&t!==e;){if(Wo.isContentEditableFalse(t))return!0;t=t.parentNode}return!1}(h,o)||ja(o))return re.none();if(o.hasChildNodes()&&!1===$v(o)){var g=new Ko(a=o,h);do{if(Wo.isContentEditableFalse(a)||ja(a)){m=!1;break}if(Wo.isText(a)&&0<a.nodeValue.length){i=s?0:a.nodeValue.length,o=a,m=!0;break}if(u[a.nodeName.toLowerCase()]&&(!(c=a)||!/^(TD|TH|CAPTION)$/.test(c.nodeName))){i=e.nodeIndex(a),o=a.parentNode,s||i++,m=!0;break}}while(a=s?g.next():g.prev())}}}return t&&(Wo.isText(o)&&0===i&&Kv(e,l,t,!0,o).each(function(e){o=e.container(),i=e.offset(),m=!0}),Wo.isElement(o)&&((a=o.childNodes[i])||(a=o.childNodes[i-1]),!a||!Wo.isBr(a)||(d="A",(f=a).previousSibling&&f.previousSibling.nodeName===d)||Wv(e,a,!1)||Wv(e,a,!0)||Kv(e,l,t,!0,a).each(function(e){o=e.container(),i=e.offset(),m=!0}))),s&&!t&&Wo.isText(o)&&i===o.nodeValue.length&&Kv(e,l,t,!1,o).each(function(e){o=e.container(),i=e.offset(),m=!0}),m?re.some(C(o,i)):re.none()},Yv=function(e,t){var n=t.collapsed,r=t.cloneRange(),o=C.fromRangeStart(t);return Xv(e,n,!0,r).each(function(e){n&&C.isAbove(o,e)||r.setStart(e.container(),e.offset())}),n||Xv(e,n,!1,r).each(function(e){r.setEnd(e.container(),e.offset())}),n&&r.collapse(!0),Qd(t,r)?re.none():re.some(r)},Gv=function(e){return 0===e.dom().length?(aa(e),re.none()):re.some(e)},Jv=function(e,t,n){var r,o;if(o=t,(r=(r=n)||{format:"html"}).set=!0,r.selection=!0,r.content=o,(n=r).no_events||!(n=e.fire("BeforeSetContent",n)).isDefaultPrevented()){var i=e.selection.getRng();!function(e,t){var n=re.from(t.firstChild).map(Er.fromDom),r=re.from(t.lastChild).map(Er.fromDom);e.deleteContents(),e.insertNode(t);var o=n.bind(ho).filter(Dr).bind(Gv),i=r.bind(mo).filter(Dr).bind(Gv);bu([o,n.filter(Dr)],function(e,t){var n,r;n=t.dom(),r=e.dom().data,n.insertData(0,r),aa(e)}),bu([i,r.filter(Dr)],function(t,n){var r=n.dom().length;n.dom().appendData(t.dom().data),e.setEnd(n.dom(),r),aa(t)}),e.collapse(!1)}(i,i.createContextualFragment(n.content)),e.selection.setRng(i),dv(e,i),n.no_events||e.fire("SetContent",n)}else e.fire("SetContent",n)},Qv=function(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return re.from(i).map(Er.fromDom).map(function(e){return r&&t.collapsed?e:yo(e,o(e,a)).getOr(e)}).bind(function(e){return Rr(e)?re.some(e):fo(e)}).map(function(e){return e.dom()}).getOr(e)},Zv=function(e,t,n){return Qv(e,t,!0,n,function(e,t){return Math.min(e.dom().childNodes.length,t)})},ey=function(e,t,n){return Qv(e,t,!1,n,function(e,t){return 0<t?t-1:t})},ty=function(e,t){for(var n=e;e&&Wo.isText(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n},ny=function(e,t,n){if(e&&e.hasOwnProperty(t)){var r=be(e[t],function(e){return e!==n});0===r.length?delete e[t]:e[t]=r}},ry=function(e){return!!e.select},oy=function(e){return!(!e||!e.ownerDocument)&&so(Er.fromDom(e.ownerDocument),Er.fromDom(e))},iy=function(e,t,n,r){var o,i,a,u,s=function(e,t){var n,r;return{selectorChangedWithUnbind:function(o,i){return n||(n={},r={},t.on("NodeChange",function(t){var o=t.element,i=e.getParents(o,null,e.getRoot()),a={};hn.each(n,function(t,n){hn.each(i,function(o){if(e.is(o,n))return r[n]||(hn.each(t,function(e){e(!0,{node:o,selector:n,parents:i})}),r[n]=t),a[n]=t,!1})}),hn.each(r,function(e,t){a[t]||(delete r[t],hn.each(e,function(e){e(!1,{node:o,selector:t,parents:i})}))})})),n[o]||(n[o]=[]),n[o].push(i),{unbind:function(){ny(n,o,i),ny(r,o,i)}}}}}(e,r).selectorChangedWithUnbind,l=function(e,t){return Jv(r,e,t)},c=function(e){var t=d();t.collapse(!!e),h(t)},f=function(){return t.getSelection?t.getSelection():t.document.selection},d=function(){var n,o,i,s,l=function(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(s){return-1}};if(!t)return null;if(null==(s=t.document))return null;if(r.bookmark!==undefined&&!1===Uf(r)){var c=Nf(r);if(c.isSome())return c.map(function(e){return gv(r,[e])[0]}).getOr(s.createRange())}try{(n=f())&&!Wo.isRestrictedNode(n.anchorNode)&&(o=0<n.rangeCount?n.getRangeAt(0):n.createRange?n.createRange():s.createRange())}catch(h){}return(o=gv(r,[o])[0])||(o=s.createRange?s.createRange():s.body.createTextRange()),o.setStart&&9===o.startContainer.nodeType&&o.collapsed&&(i=e.getRoot(),o.setStart(i,0),o.setEnd(i,0)),a&&u&&(0===l(o.START_TO_START,o,a)&&0===l(o.END_TO_END,o,a)?o=u:u=a=null),o},h=function(e,t){var n,o;if((i=e)&&(ry(i)||oy(i.startContainer)&&oy(i.endContainer))){var i,s=ry(e)?e:null;if(s){u=null;try{s.select()}catch(h){}}else{if(n=f(),e=r.fire("SetSelectionRange",{range:e,forward:t}).range,n){u=e;try{n.removeAllRanges(),n.addRange(e)}catch(h){}!1===t&&n.extend&&(n.collapse(e.endContainer,e.endOffset),n.extend(e.startContainer,e.startOffset)),a=0<n.rangeCount?n.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!n.setBaseAndExtent||ut.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(o=e.startContainer.childNodes[e.startOffset])&&"IMG"===o.tagName&&(n.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),n.anchorNode===e.startContainer&&n.focusNode===e.endContainer||n.setBaseAndExtent(o,0,o,1)),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},m=function(){var t,n,r=f();return!(r&&r.anchorNode&&r.focusNode)||((t=e.createRng()).setStart(r.anchorNode,r.anchorOffset),t.collapse(!0),(n=e.createRng()).setStart(r.focusNode,r.focusOffset),n.collapse(!0),t.compareBoundaryPoints(t.START_TO_START,n)<=0)},g={bookmarkManager:null,controlSelection:null,dom:e,win:t,serializer:n,editor:r,collapse:c,setCursorLocation:function(t,n){var o=e.createRng();t?(o.setStart(t,n),o.setEnd(t,n),h(o),c(!1)):(nh(e,o,r.getBody(),!0),h(o))},getContent:function(e){return Uv(r,e)},setContent:l,getBookmark:function(e,t){return o.getBookmark(e,t)},moveToBookmark:function(e){return o.moveToBookmark(e)},select:function(t,n){var r,o,i;return(r=e,o=t,i=n,re.from(o).map(function(e){var t=r.nodeIndex(e),n=r.createRng();return n.setStart(e.parentNode,t),n.setEnd(e.parentNode,t+1),i&&(nh(r,n,e,!0),nh(r,n,e,!1)),n})).each(h),t},isCollapsed:function(){var e=d(),t=f();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isForward:m,setNode:function(t){return l(e.getOuterHTML(t)),t},getNode:function(){return e=r.getBody(),(t=d())?(o=t.startContainer,i=t.endContainer,a=t.startOffset,u=t.endOffset,n=t.commonAncestorContainer,!t.collapsed&&(o===i&&u-a<2&&o.hasChildNodes()&&(n=o.childNodes[a]),3===o.nodeType&&3===i.nodeType&&(o=o.length===a?ty(o.nextSibling,!0):o.parentNode,i=0===u?ty(i.previousSibling,!1):i.parentNode,o&&o===i))?o:n&&3===n.nodeType?n.parentNode:n):e;var e,t,n,o,i,a,u},getSel:f,setRng:h,getRng:d,getStart:function(e){return Zv(r.getBody(),d(),e)},getEnd:function(e){return ey(r.getBody(),d(),e)},getSelectedBlocks:function(t,n){return function(e,t,n,r){var o,i,a=[];if(i=e.getRoot(),n=e.getParent(n||Zv(i,t,t.collapsed),e.isBlock),r=e.getParent(r||ey(i,t,t.collapsed),e.isBlock),n&&n!==i&&a.push(n),n&&r&&n!==r)for(var u=new Ko(o=n,i);(o=u.next())&&o!==r;)e.isBlock(o)&&a.push(o);return r&&n!==r&&r!==i&&a.push(r),a}(e,d(),t,n)},normalize:function(){var t=d(),n=f();if(Mv(n)||!rh(r))return t;var o=Yv(e,t);return o.each(function(e){h(e,m())}),o.getOr(t)},selectorChanged:function(e,t){return s(e,t),g},selectorChangedWithUnbind:s,getScrollContainer:function(){for(var t,n=e.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){return fv(r,e,t)},placeCaretAt:function(e,t){return h(mv(e,t,r.getDoc()))},getBoundingClientRect:function(){var e=d();return e.collapsed?ju.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=a=u=null,i.destroy()}};return o=Dp(g),i=Hp(g,r),g.bookmarkManager=o,g.controlSelection=i,g},ay=Wo.isText,uy=function(e){return ay(e)&&e.data[0]===La},sy=function(e){return ay(e)&&e.data[e.data.length-1]===La},ly=function(e){return e.ownerDocument.createTextNode(La)},cy=function(e,t){return e?function(e){if(ay(e.previousSibling))return sy(e.previousSibling)||e.previousSibling.appendData(La),e.previousSibling;if(ay(e))return uy(e)||e.insertData(0,La),e;var t=ly(e);return e.parentNode.insertBefore(t,e),t}(t):function(e){if(ay(e.nextSibling))return uy(e.nextSibling)||e.nextSibling.insertData(0,La),e.nextSibling;if(ay(e))return sy(e)||e.appendData(La),e;var t=ly(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t}(t)},fy=t(cy,!0),dy=t(cy,!1),hy=function(e,t){return Wo.isText(e.container())?cy(t,e.container()):cy(t,e.getNode())},my=function(e,t){var n=t.get();return n&&e.container()===n&&Ua(n)},gy=function(e,t){return t.fold(function(t){zs.remove(e.get());var n=fy(t);return e.set(n),re.some(ju(n,n.length-1))},function(t){return Cl.firstPositionIn(t).map(function(t){if(my(t,e))return ju(e.get(),1);zs.remove(e.get());var n=hy(t,!0);return e.set(n),ju(n,1)})},function(t){return Cl.lastPositionIn(t).map(function(t){if(my(t,e))return ju(e.get(),e.get().length-1);zs.remove(e.get());var n=hy(t,!1);return e.set(n),ju(n,n.length-1)})},function(t){zs.remove(e.get());var n=dy(t);return e.set(n),re.some(ju(n,1))})},py=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,vy=function(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?Ua(n)?Wo.isText(n.nextSibling)?ju(n.nextSibling,0):ju.after(n):$a(t)?ju(n,r+1):t:Ua(n)?Wo.isText(n.previousSibling)?ju(n.previousSibling,n.previousSibling.data.length):ju.before(n):Wa(t)?ju(n,r-1):t},yy={isInlineTarget:function(e,t){return io(Er.fromDom(t),Xc(e))},findRootInline:function(e,t,n){var r,o,i,a=(r=e,o=t,i=n,be(Ui.DOM.getParents(i.container(),"*",o),r));return re.from(a[a.length-1])},isRtl:function(e){return"rtl"===Ui.DOM.getStyle(e,"direction",!0)||(t=e.textContent,py.test(t));var t},isAtZwsp:function(e){return $a(e)||Wa(e)},normalizePosition:vy,normalizeForwards:t(vy,!0),normalizeBackwards:t(vy,!1),hasSameParentBlock:function(e,t,n){var r=Is(t,e),o=Is(n,e);return r&&r===o}},by=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return re.none()},Cy=rf([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),wy=function(e,t){return Is(t,e)||e},xy=function(e,n,r){var o=yy.normalizeForwards(r),i=wy(n,o.container());return yy.findRootInline(e,i,o).fold(function(){return Cl.nextPosition(i,o).bind(t(yy.findRootInline,e,i)).map(function(e){return Cy.before(e)})},re.none)},zy=function(e,t){return null===hs(e,t)},Ny=function(e,n,r){return yy.findRootInline(e,n,r).filter(t(zy,n))},Ey=function(e,t,n){var r=yy.normalizeBackwards(n);return Ny(e,t,r).bind(function(e){return Cl.prevPosition(e,r).isNone()?re.some(Cy.start(e)):re.none()})},Sy=function(e,t,n){var r=yy.normalizeForwards(n);return Ny(e,t,r).bind(function(e){return Cl.nextPosition(e,r).isNone()?re.some(Cy.end(e)):re.none()})},ky=function(e,n,r){var o=yy.normalizeBackwards(r),i=wy(n,o.container());return yy.findRootInline(e,i,o).fold(function(){return Cl.prevPosition(i,o).bind(t(yy.findRootInline,e,i)).map(function(e){return Cy.after(e)})},re.none)},Ty=function(e){return!1===yy.isRtl(My(e))},Ay=function(e,t,n){return by([xy,Ey,Sy,ky],[e,t,n]).filter(Ty)},My=function(e){return e.fold(X,X,X,X)},Ry=function(e){return e.fold(K("before"),K("start"),K("end"),K("after"))},Dy=function(e){return e.fold(Cy.before,Cy.before,Cy.after,Cy.after)},By=function(e,t,n,r,o,i){return bu([yy.findRootInline(t,n,r),yy.findRootInline(t,n,o)],function(t,r){return t!==r&&yy.hasSameParentBlock(n,t,r)?Cy.after(e?t:r):i}).getOr(i)},Oy=function(e,t){return e.fold(K(!0),function(e){return r=t,!(Ry(n=e)===Ry(r)&&My(n)===My(r));var n,r})},Hy=function(e,t){return e?t.fold(W(re.some,Cy.start),re.none,W(re.some,Cy.after),re.none):t.fold(re.none,W(re.some,Cy.before),re.none,W(re.some,Cy.end))},_y=function(e,n,r,o){var i=yy.normalizePosition(e,o),a=Ay(n,r,i);return Ay(n,r,i).bind(t(Hy,e)).orThunk(function(){return i=e,u=n,s=r,l=a,c=o,f=yy.normalizePosition(i,c),Cl.fromPosition(i,s,f).map(t(yy.normalizePosition,i)).fold(function(){return l.map(Dy)},function(e){return Ay(u,s,e).map(t(By,i,u,s,f,e)).filter(t(Oy,l))}).filter(Ty);var i,u,s,l,c,f})},Ly=Ay,Py=_y,Vy=(t(_y,!1),t(_y,!0),
|
30
|
-
Dy),Iy=function(e){return e.fold(Cy.start,Cy.start,Cy.end,Cy.end)},Fy=function(e){return ce(e.selection.getSel().modify)},Uy=function(e,t,n){var r=e?1:-1;return t.setRng(ju(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0},jy=function(e,t){var n=t.selection.getRng(),r=e?ju.fromRangeEnd(n):ju.fromRangeStart(n);return!!Fy(t)&&(e&&$a(r)?Uy(!0,t.selection,r):!(e||!Wa(r))&&Uy(!1,t.selection,r))},qy=function(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)},$y=function(e){return!1!==e.settings.inline_boundaries},Wy=function(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")},Ky=function(e,t,n){return gy(t,n).map(function(t){return qy(e,t),n})},Xy=function(e,t){return function(){return!!$y(t)&&jy(e,t)}},Yy={move:function(e,n,r){return function(){return!!$y(e)&&(o=e,i=n,a=r,u=o.getBody(),s=ju.fromRangeStart(o.selection.getRng()),l=t(yy.isInlineTarget,o),Py(a,l,u,s).bind(function(e){return Ky(o,i,e)})).isSome();var o,i,a,u,s,l}},moveNextWord:t(Xy,!0),movePrevWord:t(Xy,!1),setupSelectedState:function(e){var n=Ki(null),r=t(yy.isInlineTarget,e);return e.on("NodeChange",function(o){var i,a,u,s,l;$y(e)&&(i=r,a=e.dom,u=o.parents,s=be(a.select('*[data-mce-selected="inline-boundary"]'),i),l=be(u,i),ve(Te(s,l),t(Wy,!1)),ve(Te(l,s),t(Wy,!0)),function(e,t){if(e.selection.isCollapsed()&&!0!==e.composing&&t.get()){var n=ju.fromRangeStart(e.selection.getRng());ju.isTextPosition(n)&&!1===yy.isAtZwsp(n)&&(qy(e,zs.removeAndReposition(t.get(),n)),t.set(null))}}(e,n),function(e,t,n,r){if(t.selection.isCollapsed()){var o=be(r,e);ve(o,function(){var r=ju.fromRangeStart(t.selection.getRng());Ly(e,t.getBody(),r).bind(function(e){return Ky(t,n,e)})})}}(r,e,n,o.parents))}),n},setCaretPosition:qy};(Rp=Mp||(Mp={}))[Rp.Br=0]="Br",Rp[Rp.Block=1]="Block",Rp[Rp.Wrap=2]="Wrap",Rp[Rp.Eol=3]="Eol";var Gy,Jy,Qy,Zy=function(e,t){return e===Fu.Backwards?t.reverse():t},eb=function(e,t,n,r){for(var o,i,a,u,s,l,c=ll(n),f=r,d=[];f&&(s=c,l=f,o=t===Fu.Forwards?s.next(l):s.prev(l));){if(Wo.isBr(o.getNode(!1)))return t===Fu.Forwards?{positions:Zy(t,d).concat([o]),breakType:Mp.Br,breakAt:re.some(o)}:{positions:Zy(t,d),breakType:Mp.Br,breakAt:re.some(o)};if(o.isVisible()){if(e(f,o)){var h=(i=t,a=f,u=o,Wo.isBr(u.getNode(i===Fu.Forwards))?Mp.Br:!1===Fs(a,u)?Mp.Block:Mp.Wrap);return{positions:Zy(t,d),breakType:h,breakAt:re.some(o)}}d.push(o),f=o}else f=o}return{positions:Zy(t,d),breakType:Mp.Eol,breakAt:re.none()}},tb=function(e,t,n,r){return t(n,r).breakAt.map(function(r){var o=t(n,r).positions;return e===Fu.Backwards?o.concat(r):[r].concat(o)}).getOr([])},nb=function(e,t){return we(e,function(e,n){return e.fold(function(){return re.some(n)},function(r){return bu([Ae(r.getClientRects()),Ae(n.getClientRects())],function(e,o){var i=Math.abs(t-e.left);return Math.abs(t-o.left)<=i?n:r}).or(e)})},re.none())},rb=function(e,t){return Ae(t.getClientRects()).bind(function(t){return nb(e,t.left)})},ob=t(eb,C.isAbove,-1),ib=t(eb,C.isBelow,1),ab=t(tb,-1,ob),ub=t(tb,1,ib),sb=Wo.isContentEditableFalse,lb=gu,cb=function(e,t,n,r){var o=e===Fu.Forwards,i=o?tm:nm;if(!r.collapsed){var a=lb(r);if(sb(a))return Hh(e,t,a,e===Fu.Backwards,!0)}var u=Fa(r.startContainer),s=Ys(e,t.getBody(),r);if(i(s))return _h(t,s.getNode(!o));var l=yy.normalizePosition(o,n(s));if(!l)return u?r:null;if(i(l))return Hh(e,t,l.getNode(!o),o,!0);var c=n(l);return c&&i(c)&&Qs(l,c)?Hh(e,t,c.getNode(!o),o,!0):u?Ph(t,l.toRange(),!0):null},fb=function(e,t,n,r){var o,i,a,u,s,l,c,f,d;if(d=lb(r),o=Ys(e,t.getBody(),r),i=n(t.getBody(),xh(1),o),a=be(i,zh(1)),s=sn.last(o.getClientRects()),(tm(o)||Zh(o))&&(d=o.getNode()),(nm(o)||em(o))&&(d=o.getNode(!0)),!s)return null;if(l=s.left,(u=Ah(a,l))&&sb(u.node))return c=Math.abs(l-u.left),f=Math.abs(l-u.right),Hh(e,t,u.node,c<f,!0);if(d){var h=function(e,t,n,r){var o,i,a,u,s,l,c=ll(t),f=[],d=0,h=function(e){return sn.last(e.getClientRects())};l=h(u=1===e?(o=c.next,i=hu,a=du,ju.after(r)):(o=c.prev,i=du,a=hu,ju.before(r)));do{if(u.isVisible()&&!a(s=h(u),l)){if(0<f.length&&i(s,sn.last(f))&&d++,(s=lu(s)).position=u,s.line=d,n(s))return f;f.push(s)}}while(u=o(u));return f}(e,t.getBody(),xh(1),d);if(u=Ah(be(h,zh(1)),l))return Ph(t,u.position.toRange(),!0);if(u=sn.last(be(h,zh(0))))return Ph(t,u.position.toRange(),!0)}},db=function(e,n,r){var o,i,a,u,s=ll(e.getBody()),l=t(Js,s.next),c=t(Js,s.prev);if(r.collapsed&&e.settings.forced_root_block){if(!(o=e.dom.getParent(r.startContainer,"PRE")))return;(1===n?l(ju.fromRangeStart(r)):c(ju.fromRangeStart(r)))||(u=(a=e).dom.create(zc(a)),(!ut.ie||11<=ut.ie)&&(u.innerHTML='<br data-mce-bogus="1">'),i=u,1===n?e.$(o).after(i):e.$(o).before(i),e.selection.select(i,!0),e.selection.collapse())}},hb=function(e,n){return function(){var r,o,i,a,u,s,l,c,f,d=(o=n,a=ll((r=e).getBody()),u=t(Js,a.next),s=t(Js,a.prev),l=o?Fu.Forwards:Fu.Backwards,c=o?u:s,f=r.selection.getRng(),(i=cb(l,r,c,f))?i:(i=db(r,l,f))||null);return!!d&&(e.selection.setRng(d),!0)}},mb=function(e,t){return function(){var n,r,o,i,a,u,s=(i=(r=t)?1:-1,a=r?wh:Ch,u=(n=e).selection.getRng(),(o=fb(i,n,a,u))?o:(o=db(n,i,u))||null);return!!s&&(e.selection.setRng(s),!0)}},gb=function(e,t){return function(){var n,r=t?ju.fromRangeEnd(e.selection.getRng()):ju.fromRangeStart(e.selection.getRng()),o=t?ib(e.getBody(),r):ob(e.getBody(),r);return(t?Me(o.positions):Ae(o.positions)).filter((n=t,function(e){return n?nm(e):tm(e)})).fold(K(!1),function(t){return e.selection.setRng(t.toRange()),!0})}},pb=function(e,t,n,r,o){var i,a,u,s,l=va(Er.fromDom(n),"td,th,caption").map(function(e){return e.dom()});return(a=be((i=e,Se(l,function(e){var t,n,r=(n=-1,{left:(t=lu(e.getBoundingClientRect())).left-n,top:t.top-n,right:t.right+2*n,bottom:t.bottom+2*n,width:t.width+n,height:t.height+n});return[{x:r.left,y:i(r),cell:e},{x:r.right,y:i(r),cell:e}]})),function(e){return t(e,o)}),u=r,s=o,we(a,function(e,t){return e.fold(function(){return re.some(t)},function(e){var n=Math.sqrt(Math.abs(e.x-u)+Math.abs(e.y-s)),r=Math.sqrt(Math.abs(t.x-u)+Math.abs(t.y-s));return re.some(r<n?t:e)})},re.none())).map(function(e){return e.cell})},vb=t(pb,function(e){return e.bottom},function(e,t){return e.y<t}),yb=t(pb,function(e){return e.top},function(e,t){return e.y>t}),bb=function(e,t){return Ae(t.getClientRects()).bind(function(t){return vb(e,t.left,t.top)}).bind(function(e){return rb((n=e,Cl.lastPositionIn(n).map(function(e){return ob(n,e).positions.concat(e)}).getOr([])),t);var n})},Cb=function(e,t){return Me(t.getClientRects()).bind(function(t){return yb(e,t.left,t.top)}).bind(function(e){return rb((n=e,Cl.firstPositionIn(n).map(function(e){return[e].concat(ib(n,e).positions)}).getOr([])),t);var n})},wb=function(e,t){e.selection.setRng(t),dv(e,t)},xb=function(e,t,n){var r,o,i,a,u=e(t,n);return(a=u).breakType===Mp.Wrap&&0===a.positions.length||!Wo.isBr(n.getNode())&&(i=u).breakType===Mp.Br&&1===i.positions.length?(r=e,o=t,!u.breakAt.map(function(e){return r(o,e).breakAt.isSome()}).getOr(!1)):u.breakAt.isNone()},zb=t(xb,ob),Nb=t(xb,ib),Eb=function(e,t,n){var r,o,i,a,u=e.selection.getRng(),s=t?1:-1;if(Ts()&&(r=t,o=u,i=n,a=ju.fromRangeStart(o),Cl.positionIn(!r,i).map(function(e){return e.isEqual(a)}).getOr(!1))){var l=Hh(s,e,n,!t,!0);return wb(e,l),!0}return!1},Sb=function(e,t){var n=t.getNode(e);return Wo.isElement(n)&&"TABLE"===n.nodeName?re.some(n):re.none()},kb=function(e,t,n){var r=Sb(!!t,n),o=!1===t;r.fold(function(){return wb(e,n.toRange())},function(r){return Cl.positionIn(o,e.getBody()).filter(function(e){return e.isEqual(n)}).fold(function(){return wb(e,n.toRange())},function(){return o=t,a=r,u=n,void((s=zc(i=e))?i.undoManager.transact(function(){var e=Er.fromTag(s);Wr(e,Nc(i)),ra(e,Er.fromTag("br")),o?ta(Er.fromDom(a),e):ea(Er.fromDom(a),e);var t=i.dom.createRng();t.setStart(e.dom(),0),t.setEnd(e.dom(),0),wb(i,t)}):wb(i,u.toRange()));var o,i,a,u,s})})},Tb=function(e,t,n,r){var o,i,a,u,s,l,c=e.selection.getRng(),f=ju.fromRangeStart(c),d=e.getBody();if(!t&&zb(r,f)){var h=(u=d,bb(s=n,l=f).orThunk(function(){return Ae(l.getClientRects()).bind(function(e){return nb(ab(u,ju.before(s)),e.left)})}).getOr(ju.before(s)));return kb(e,t,h),!0}return!(!t||!Nb(r,f))&&(o=d,h=Cb(i=n,a=f).orThunk(function(){return Ae(a.getClientRects()).bind(function(e){return nb(ub(o,ju.after(i)),e.left)})}).getOr(ju.after(i)),kb(e,t,h),!0)},Ab=function(e,t){return function(){return re.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(function(n){return re.from(e.dom.getParent(n,"table")).map(function(n){return Eb(e,t,n)})}).getOr(!1)}},Mb=function(e,t){return function(){return re.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(function(n){return re.from(e.dom.getParent(n,"table")).map(function(r){return Tb(e,t,r,n)})}).getOr(!1)}},Rb=function(e){return me(["figcaption"],Ar(e))},Db=function(t){var n=e.document.createRange();return n.setStartBefore(t.dom()),n.setEndBefore(t.dom()),n},Bb=function(e,t,n){n?ra(e,t):na(e,t)},Ob=function(e,t,n,r){return""===t?(c=e,f=r,d=Er.fromTag("br"),Bb(c,d,f),Db(d)):(o=e,i=r,a=t,u=n,s=Er.fromTag(a),l=Er.fromTag("br"),Wr(s,u),ra(s,l),Bb(o,s,i),Db(l));var o,i,a,u,s,l,c,f,d},Hb=function(e,t,n){return t?(o=e.dom(),ib(o,n).breakAt.isNone()):(r=e.dom(),ob(r,n).breakAt.isNone());var r,o},_b=function(e,n){var r,o,i,a=Er.fromDom(e.getBody()),u=ju.fromRangeStart(e.selection.getRng()),s=zc(e),l=Nc(e);return(r=u,o=a,i=t(uo,o),ba(Er.fromDom(r.container()),Go,i).filter(Rb)).exists(function(){if(Hb(a,n,u)){var t=Ob(a,s,l,n);return e.selection.setRng(t),!0}return!1})},Lb=function(e,t){return function(){return!!e.selection.isCollapsed()&&_b(e,t)}},Pb=function(e,t){return Se(pe(e,function(e){return fp({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:$},e)}),function(e){return n=e,(r=t).keyCode===n.keyCode&&r.shiftKey===n.shiftKey&&r.altKey===n.altKey&&r.ctrlKey===n.ctrlKey&&r.metaKey===n.metaKey?[e]:[];var n,r})},Vb=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}},Ib=function(e,t){return xe(Pb(e,t),function(e){return e.action()})},Fb=function(e,t){e.on("keydown",function(n){var r,o,i,a;!1===n.isDefaultPrevented()&&(r=e,o=t,i=n,a=zr.detect().os,Ib([{keyCode:Ih.RIGHT,action:hb(r,!0)},{keyCode:Ih.LEFT,action:hb(r,!1)},{keyCode:Ih.UP,action:mb(r,!1)},{keyCode:Ih.DOWN,action:mb(r,!0)},{keyCode:Ih.RIGHT,action:Ab(r,!0)},{keyCode:Ih.LEFT,action:Ab(r,!1)},{keyCode:Ih.UP,action:Mb(r,!1)},{keyCode:Ih.DOWN,action:Mb(r,!0)},{keyCode:Ih.RIGHT,action:Yy.move(r,o,!0)},{keyCode:Ih.LEFT,action:Yy.move(r,o,!1)},{keyCode:Ih.RIGHT,ctrlKey:!a.isOSX(),altKey:a.isOSX(),action:Yy.moveNextWord(r,o)},{keyCode:Ih.LEFT,ctrlKey:!a.isOSX(),altKey:a.isOSX(),action:Yy.movePrevWord(r,o)},{keyCode:Ih.UP,action:Lb(r,!1)},{keyCode:Ih.DOWN,action:Lb(r,!0)}],i).each(function(){i.preventDefault()}))})},Ub=function(e,t){return so(e,t)?ba(t,function(e){return Zo(e)||ti(e)},(n=e,function(e){return uo(n,Er.fromDom(e.dom().parentNode))})):re.none();var n},jb=function(e){var t,n,r;e.dom.isEmpty(e.getBody())&&(e.setContent(""),r=(n=(t=e).getBody()).firstChild&&t.dom.isBlock(n.firstChild)?n.firstChild:n,t.selection.setCursorLocation(r,0))},qb=function(e,t,n){return bu([Cl.firstPositionIn(n),Cl.lastPositionIn(n)],function(r,o){var i=yy.normalizePosition(!0,r),a=yy.normalizePosition(!1,o),u=yy.normalizePosition(!1,t);return e?Cl.nextPosition(n,u).map(function(e){return e.isEqual(a)&&t.isEqual(i)}).getOr(!1):Cl.prevPosition(n,u).map(function(e){return e.isEqual(i)&&t.isEqual(a)}).getOr(!1)}).getOr(!0)},$b=Qr("block","position"),Wb=Qr("from","to"),Kb=function(e,t){var n=Er.fromDom(e),r=Er.fromDom(t.container());return Ub(n,r).map(function(e){return $b(e,t)})},Xb=function(e,t,n){var r=Kb(e,ju.fromRangeStart(n)),o=r.bind(function(n){return Cl.fromPosition(t,e,n.position()).bind(function(n){return Kb(e,n).map(function(n){return r=e,o=t,i=n,Wo.isBr(i.position().getNode())&&!1===jm(i.block())?Cl.positionIn(!1,i.block().dom()).bind(function(e){return e.isEqual(i.position())?Cl.fromPosition(o,r,e).bind(function(e){return Kb(r,e)}):re.some(i)}).getOr(i):i;var r,o,i})})});return bu([r,o],Wb).filter(function(e){return!1===uo((r=e).from().block(),r.to().block())&&fo((n=e).from().block()).bind(function(e){return fo(n.to().block()).filter(function(t){return uo(e,t)})}).isSome()&&(t=e,!1===Wo.isContentEditableFalse(t.from().block())&&!1===Wo.isContentEditableFalse(t.to().block()));var t,n,r})},Yb=function(e,t,n){return n.collapsed?Xb(e,t,n):re.none()},Gb=function(e){var t,n=(t=vo(e),ze(t,Go).fold(function(){return t},function(e){return t.slice(0,e)}));return ve(n,aa),n},Jb=function(e,t){var n=Kd(t,e);return xe(n.reverse(),jm).each(aa)},Qb=function(e,t,n,r){if(jm(n))return Em(n),Cl.firstPositionIn(n.dom());0===be(go(r),function(e){return!jm(e)}).length&&jm(t)&&ea(r,Er.fromTag("br"));var o=Cl.prevPosition(n.dom(),ju.before(r.dom()));return ve(Gb(t),function(e){ea(r,e)}),Jb(e,t),o},Zb=function(e,t,n){if(jm(n))return aa(n),jm(t)&&Em(t),Cl.firstPositionIn(t.dom());var r=Cl.lastPositionIn(n.dom());return ve(Gb(t),function(e){ra(n,e)}),Jb(e,t),r},eC=function(e,t){return so(t,e)?(n=Kd(e,t),re.from(n[n.length-1])):re.none();var n},tC=function(e,t){Cl.positionIn(e,t.dom()).map(function(e){return e.getNode()}).map(Er.fromDom).filter(Qo).each(aa)},nC=function(e,n,r){return tC(!0,n),tC(!1,r),eC(n,r).fold(t(Zb,e,n,r),t(Qb,e,n,r))},rC=function(e,t,n,r){return t?nC(e,r,n):nC(e,n,r)},oC=function(e,t){var n,r=Er.fromDom(e.getBody());return(n=Yb(r.dom(),t,e.selection.getRng()).bind(function(e){return rC(r,t,e.from().block(),e.to().block())})).each(function(t){e.selection.setRng(t.toRange())}),n.isSome()},iC=function(e,n){var r=Er.fromDom(n),o=t(uo,e);return ya(r,oi,o).isSome()},aC=function(e,t){var n,r,o=Cl.prevPosition(e.dom(),ju.fromRangeStart(t)).isNone(),i=Cl.nextPosition(e.dom(),ju.fromRangeEnd(t)).isNone();return!(iC(n=e,(r=t).startContainer)||iC(n,r.endContainer))&&o&&i},uC=function(e){var t,n,r,o,i=Er.fromDom(e.getBody()),a=e.selection.getRng();return aC(i,a)?((o=e).setContent(""),o.selection.setCursorLocation(),!0):(t=i,n=e.selection,r=n.getRng(),bu([Ub(t,Er.fromDom(r.startContainer)),Ub(t,Er.fromDom(r.endContainer))],function(e,o){return!1===uo(e,o)&&(r.deleteContents(),rC(t,!0,e,o).each(function(e){n.setRng(e.toRange())}),!0)}).getOr(!1))},sC=function(e){return!e.selection.isCollapsed()&&uC(e)},lC=function(e){return Gs(e).exists(Qo)},cC=function(e,t,n){var r=be(Kd(Er.fromDom(n.container()),t),Go),o=Ae(r).getOr(t);return Cl.fromPosition(e,o.dom(),n).filter(lC)},fC=function(e,t){return Gs(t).exists(Qo)||cC(!0,e,t).isSome()},dC=function(e,t){return(n=t,re.from(n.getNode(!0)).map(Er.fromDom)).exists(Qo)||cC(!1,e,t).isSome();var n},hC=t(cC,!1),mC=t(cC,!0),gC=rf([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),pC=function(e,t,n,r){var o=r.getNode(!1===t);return Ub(Er.fromDom(e),Er.fromDom(n.getNode())).map(function(e){return jm(e)?gC.remove(e.dom()):gC.moveToElement(o)}).orThunk(function(){return re.some(gC.moveToElement(o))})},vC=function(e,t,n){return Cl.fromPosition(t,e,n).bind(function(r){return l=r.getNode(),oi(Er.fromDom(l))||ti(Er.fromDom(l))?re.none():(o=e,u=r,s=function(e){return Jo(Er.fromDom(e))&&!Fs(a,u,o)},Xs(!(i=t),a=n).fold(function(){return Xs(i,u).fold(K(!1),s)},s)?re.none():t&&Wo.isContentEditableFalse(r.getNode())?pC(e,t,n,r):!1===t&&Wo.isContentEditableFalse(r.getNode(!0))?pC(e,t,n,r):t&&nm(n)?re.some(gC.moveToPosition(r)):!1===t&&tm(n)?re.some(gC.moveToPosition(r)):re.none());var o,i,a,u,s,l})},yC=function(e,t,n){return i=t,a=n.getNode(!1===i),u=i?"after":"before",Wo.isElement(a)&&a.getAttribute("data-mce-caret")===u?(r=t,o=n.getNode(!1===t),r&&Wo.isContentEditableFalse(o.nextSibling)?re.some(gC.moveToElement(o.nextSibling)):!1===r&&Wo.isContentEditableFalse(o.previousSibling)?re.some(gC.moveToElement(o.previousSibling)):re.none()).fold(function(){return vC(e,t,n)},re.some):vC(e,t,n).bind(function(t){return r=e,o=n,t.fold(function(e){return re.some(gC.remove(e))},function(e){return re.some(gC.moveToElement(e))},function(e){return Fs(o,e,r)?re.none():re.some(gC.moveToPosition(e))});var r,o});var r,o,i,a,u},bC=function(e,t){var n,r,o,i,a,u;return(n=e.getBody(),r=t,o=e.selection.getRng(),i=Ks(r?1:-1,n,o),a=ju.fromRangeStart(i),u=Er.fromDom(n),!1===r&&nm(a)?re.some(gC.remove(a.getNode(!0))):r&&tm(a)?re.some(gC.remove(a.getNode())):!1===r&&tm(a)&&dC(u,a)?hC(u,a).map(function(e){return gC.remove(e.getNode())}):r&&nm(a)&&fC(u,a)?mC(u,a).map(function(e){return gC.remove(e.getNode())}):yC(n,r,a)).map(function(n){return n.fold((a=e,u=t,function(e){return a._selectionOverrides.hideFakeCaret(),eg(a,u,Er.fromDom(e)),!0}),(o=e,i=t,function(e){var t=i?ju.before(e):ju.after(e);return o.selection.setRng(t.toRange()),!0}),(r=e,function(e){return r.selection.setRng(e.toRange()),!0}));var r,o,i,a,u}).getOr(!1)},CC=function(e,t){var n,r=e.selection.getNode();return!!Wo.isContentEditableFalse(r)&&(n=Er.fromDom(e.getBody()),ve(va(n,".mce-offscreen-selection"),aa),eg(e,t,Er.fromDom(e.selection.getNode())),jb(e),!0)},wC=function(e,t){return e.selection.isCollapsed()?bC(e,t):CC(e,t)},xC=function(e){var t,n=function(e,t){for(;t&&t!==e;){if(Wo.isContentEditableTrue(t)||Wo.isContentEditableFalse(t))return t;t=t.parentNode}return null}(e.getBody(),e.selection.getNode());return Wo.isContentEditableTrue(n)&&e.dom.isBlock(n)&&e.dom.isEmpty(n)&&(t=e.dom.create("br",{"data-mce-bogus":"1"}),e.dom.setHTML(n,""),n.appendChild(t),e.selection.setRng(ju.before(t).toRange())),!0},zC=function(e,t,n,r,o,i){var a,u,s=Hh(r,e,i.getNode(!o),o,!0);if(t.collapsed){var l=t.cloneRange();o?l.setEnd(s.startContainer,s.startOffset):l.setStart(s.endContainer,s.endOffset),l.deleteContents()}else t.deleteContents();return e.selection.setRng(s),a=e.dom,u=n,Wo.isText(u)&&0===u.data.length&&a.remove(u),!0},NC=function(e,n){return function(e,n){var r=e.selection.getRng();if(!Wo.isText(r.commonAncestorContainer))return!1;var o=n?Fu.Forwards:Fu.Backwards,i=ll(e.getBody()),a=t(Js,i.next),u=t(Js,i.prev),s=n?a:u,l=n?tm:nm,c=Ys(o,e.getBody(),r),f=yy.normalizePosition(n,s(c));if(!f)return!1;if(l(f))return zC(e,r,c.getNode(),o,n,f);var d=s(f);return!!(d&&l(d)&&Qs(f,d))&&zC(e,r,c.getNode(),o,n,d)}(e,n)},EC=function(e,t){return function(n){return gy(t,n).map(function(t){return Yy.setCaretPosition(e,t),!0}).getOr(!1)}},SC=function(n,r,o,i){var a=n.getBody(),u=t(yy.isInlineTarget,n);n.undoManager.ignore(function(){var t,s,l;n.selection.setRng((t=o,s=i,(l=e.document.createRange()).setStart(t.container(),t.offset()),l.setEnd(s.container(),s.offset()),l)),n.execCommand("Delete"),Ly(u,a,ju.fromRangeStart(n.selection.getRng())).map(Iy).map(EC(n,r))}),n.nodeChanged()},kC=function(e,n,r,o){var i,a,u=(i=e.getBody(),a=o.container(),Is(a,i)||i),s=t(yy.isInlineTarget,e),l=Ly(s,u,o);return l.bind(function(e){return r?e.fold(K(re.some(Iy(e))),re.none,K(re.some(Vy(e))),re.none):e.fold(re.none,K(re.some(Vy(e))),re.none,K(re.some(Iy(e))))}).map(EC(e,n)).getOrThunk(function(){var t=Cl.navigate(r,u,o),i=t.bind(function(e){return Ly(s,u,e)});return l.isSome()&&i.isSome()?yy.findRootInline(s,u,o).map(function(t){return n=t,!!bu([Cl.firstPositionIn(n),Cl.lastPositionIn(n)],function(e,t){var r=yy.normalizePosition(!0,e),o=yy.normalizePosition(!1,t);return Cl.nextPosition(n,r).map(function(e){return e.isEqual(o)}).getOr(!0)}).getOr(!0)&&(eg(e,r,Er.fromDom(t)),!0);var n}).getOr(!1):i.bind(function(){return t.map(function(t){return r?SC(e,n,o,t):SC(e,n,t,o),!0})}).getOr(!1)})},TC=function(e,t,n){if(e.selection.isCollapsed()&&!1!==e.settings.inline_boundaries){var r=ju.fromRangeStart(e.selection.getRng());return kC(e,t,n,r)}return!1},AC=function(e){return 1===vo(e).length},MC=function(e,n,r,o){var i,a,u,s,l=t(dg,n),c=pe(be(o,l),function(e){return e.dom()});if(0===c.length)eg(n,e,r);else{var f=(i=r.dom(),a=c,u=ig(!1),s=cg(a,u.dom()),ea(Er.fromDom(i),u),aa(Er.fromDom(i)),ju(s,0));n.selection.setRng(f.toRange())}},RC=function(e,t){var n,r=Er.fromDom(e.getBody()),o=Er.fromDom(e.selection.getStart()),i=be((n=Kd(o,r),ze(n,Go).fold(K(n),function(e){return n.slice(0,e)})),AC);return Me(i).map(function(n){var r,o=ju.fromRangeStart(e.selection.getRng());return!(!qb(t,o,n.dom())||ds((r=n).dom())&&rg(r.dom())||(MC(t,e,n,i),0))}).getOr(!1)},DC=function(e,t){return!!e.selection.isCollapsed()&&RC(e,t)},BC=Qr("start","end"),OC=Qr("rng","table","cells"),HC=rf([{removeTable:["element"]},{emptyCells:["cells"]}]),_C=function(e,t){return xa(Er.fromDom(e),"td,th",t)},LC=function(e,t){return Ca(e,"table",t)},PC=function(e){return!1===uo(e.start(),e.end())},VC=function(e,t){return LC(e.start(),t).bind(function(n){return LC(e.end(),t).bind(function(e){return uo(n,e)?re.some(n):re.none()})})},IC=function(e){return va(e,"td,th")},FC=function(e,t){var n=_C(t.startContainer,e),r=_C(t.endContainer,e);return t.collapsed?re.none():bu([n,r],BC).fold(function(){return n.fold(function(){return r.bind(function(t){return LC(t,e).bind(function(e){return Ae(IC(e)).map(function(e){return BC(e,t)})})})},function(t){return LC(t,e).bind(function(e){return Me(IC(e)).map(function(e){return BC(t,e)})})})},function(t){return UC(e,t)?re.none():(r=e,LC((n=t).start(),r).bind(function(e){return Me(IC(e)).map(function(e){return BC(n.start(),e)})}));var n,r})},UC=function(e,t){return VC(t,e).isSome()},jC=function(e,n){var r,o,i,a,u=t(uo,e);return(r=n,o=u,i=_C(r.startContainer,o),a=_C(r.endContainer,o),bu([i,a],BC).filter(PC).filter(function(e){return UC(o,e)}).orThunk(function(){return FC(o,r)})).bind(function(e){return VC(t=e,u).map(function(e){return OC(t,e,IC(e))});var t})},qC=function(e,t){return ze(e,function(e){return uo(e,t)})},$C=function(e){return(t=e,bu([qC(t.cells(),t.rng().start()),qC(t.cells(),t.rng().end())],function(e,n){return t.cells().slice(e,n+1)})).map(function(t){var n=e.cells();return t.length===n.length?HC.removeTable(e.table()):HC.emptyCells(t)});var t},WC=function(e,t){return jC(e,t).bind($C)},KC=function(e,t){return ve(t,Em),e.selection.setCursorLocation(t[0].dom(),0),!0},XC=function(e,t){return eg(e,!1,t),!0},YC=function(e,n,r,o){return JC(n,o).fold(function(){return o=e,WC(n,r).map(function(e){return e.fold(t(XC,o),t(KC,o))});var o},function(t){return QC(e,t)}).getOr(!1)},GC=function(e,t){return xe(Kd(t,e),oi)},JC=function(e,t){return xe(Kd(t,e),function(e){return"caption"===Ar(e)})},QC=function(e,t){return Em(t),e.selection.setCursorLocation(t.dom(),0),re.some(!0)},ZC=function(e,t,n,r,o){return Cl.navigate(n,e.getBody(),o).bind(function(i){return s=r,l=n,c=o,f=i,Cl.firstPositionIn(s.dom()).bind(function(e){return Cl.lastPositionIn(s.dom()).map(function(t){return l?c.isEqual(e)&&f.isEqual(t):c.isEqual(t)&&f.isEqual(e)})}).getOr(!0)?QC(e,r):(a=r,u=i,JC(t,Er.fromDom(u.getNode())).map(function(e){return!1===uo(e,a)}));var a,u,s,l,c,f}).or(re.some(!0))},ew=function(e,t,n,r){var o=ju.fromRangeStart(e.selection.getRng());return GC(n,r).bind(function(r){return jm(r)?QC(e,r):(i=e,a=n,u=t,s=r,l=o,Cl.navigate(u,i.getBody(),l).bind(function(e){return GC(a,Er.fromDom(e.getNode())).map(function(e){return!1===uo(e,s)})}));var i,a,u,s,l}).getOr(!1)},tw=function(e,t){return e?Zh(t):em(t)},nw=function(e,t,n){var r=Er.fromDom(e.getBody());return JC(r,n).fold(function(){return ew(e,t,r,n)||(o=e,i=t,a=ju.fromRangeStart(o.selection.getRng()),tw(i,a)||Cl.fromPosition(i,o.getBody(),a).map(function(e){return tw(i,e)}).getOr(!1));var o,i,a},function(n){return(o=e,i=t,a=r,u=n,s=ju.fromRangeStart(o.selection.getRng()),jm(u)?QC(o,u):ZC(o,a,i,u,s)).getOr(!1);var o,i,a,u,s})},rw=function(e,t){var n,r,o,i,a,u=Er.fromDom(e.selection.getStart(!0)),s=Hv(e);return e.selection.isCollapsed()&&0===s.length?nw(e,t,u):(n=e,r=u,o=Er.fromDom(n.getBody()),i=n.selection.getRng(),0!==(a=Hv(n)).length?KC(n,a):YC(n,o,i,r))},ow=function(e,t){return!!e.selection.isCollapsed()&&(n=e,r=t,o=ju.fromRangeStart(n.selection.getRng()),Cl.fromPosition(r,n.getBody(),o).filter(function(e){return r?Jh(e):Qh(e)}).bind(function(e){return re.from(Us(r?0:-1,e))}).map(function(e){return n.selection.select(e),!0}).getOr(!1));var n,r,o},iw=function(e){var t=parseInt(e,10);return isNaN(t)?0:t},aw=function(e,t){return(e||"table"===Ar(t)?"margin":"padding")+("rtl"===Yr(t,"direction")?"-right":"-left")},uw=function(e){var t,n=lw(e);return!0!==e.readonly&&(1<n.length||(t=e,ke(n,function(e){var n=aw(qc(t),e),r=Jr(e,n).map(iw).getOr(0);return"false"!==t.dom.getContentEditable(e.dom())&&0<r})))},sw=function(e){return ei(e)||ti(e)},lw=function(e){return be(pe(e.selection.getSelectedBlocks(),Er.fromDom),function(e){return!sw(e)&&!fo(e).map(sw).getOr(!1)&&ba(e,function(e){return Wo.isContentEditableTrue(e.dom())||Wo.isContentEditableFalse(e.dom())}).exists(function(e){return Wo.isContentEditableTrue(e.dom())})})},cw=function(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=$c(e),a=/[a-z%]+$/i.exec(i)[0],u=parseInt(i,10),s=qc(e),l=zc(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==l||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),ve(lw(e),function(e){!function(e,t,n,r,o,i){var a=aw(n,Er.fromDom(i));if("outdent"===t){var u=Math.max(0,iw(i.style[a])-r);e.setStyle(i,a,u?u+o:"")}else u=iw(i.style[a])+r+o,e.setStyle(i,a,u)}(n,t,s,u,a,e.dom())})},fw=function(e,t,n){return Cl.navigateIgnore(e,t,n,Kh)},dw=function(e,t){return xe(Kd(Er.fromDom(t.container()),e),Go)},hw=function(e,t,n){return fw(e,t.dom(),n).forall(function(e){return dw(t,n).fold(function(){return!1===Fs(e,n,t.dom())},function(r){return!1===Fs(e,n,t.dom())&&so(r,Er.fromDom(e.container()))})})},mw=function(e,t,n){return dw(t,n).fold(function(){return fw(e,t.dom(),n).forall(function(e){return!1===Fs(e,n,t.dom())})},function(t){return fw(e,t.dom(),n).isNone()})},gw=t(mw,!1),pw=t(mw,!0),vw=t(hw,!1),yw=t(hw,!0),bw=function(e){if(e.selection.isCollapsed()&&uw(e)){var t=e.dom,n=e.selection.getRng(),r=ju.fromRangeStart(n),o=Er.fromDom(t.getParent(n.startContainer,t.isBlock));if(gw(o,r))return cw(e,"outdent"),!0}return!1},Cw=function(e,t){e.on("keydown",function(n){var r,o,i;!1===n.isDefaultPrevented()&&(r=e,o=t,i=n,Ib([{keyCode:Ih.BACKSPACE,action:Vb(bw,r,!1)},{keyCode:Ih.BACKSPACE,action:Vb(wC,r,!1)},{keyCode:Ih.DELETE,action:Vb(wC,r,!0)},{keyCode:Ih.BACKSPACE,action:Vb(NC,r,!1)},{keyCode:Ih.DELETE,action:Vb(NC,r,!0)},{keyCode:Ih.BACKSPACE,action:Vb(TC,r,o,!1)},{keyCode:Ih.DELETE,action:Vb(TC,r,o,!0)},{keyCode:Ih.BACKSPACE,action:Vb(rw,r,!1)},{keyCode:Ih.DELETE,action:Vb(rw,r,!0)},{keyCode:Ih.BACKSPACE,action:Vb(ow,r,!1)},{keyCode:Ih.DELETE,action:Vb(ow,r,!0)},{keyCode:Ih.BACKSPACE,action:Vb(sC,r,!1)},{keyCode:Ih.DELETE,action:Vb(sC,r,!0)},{keyCode:Ih.BACKSPACE,action:Vb(oC,r,!1)},{keyCode:Ih.DELETE,action:Vb(oC,r,!0)},{keyCode:Ih.BACKSPACE,action:Vb(DC,r,!1)},{keyCode:Ih.DELETE,action:Vb(DC,r,!0)}],i).each(function(){i.preventDefault()}))}),e.on("keyup",function(t){var n,r;!1===t.isDefaultPrevented()&&(n=e,r=t,Ib([{keyCode:Ih.BACKSPACE,action:Vb(xC,n)},{keyCode:Ih.DELETE,action:Vb(xC,n)}],r))})},ww=function(e){return re.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))},xw=function(e,t){var n,r,o=t,i=e.dom,a=e.schema.getMoveCaretBeforeOnEnterElements();if(t){if(/^(LI|DT|DD)$/.test(t.nodeName)){var u=function(e){for(;e;){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}}(t.firstChild);u&&/^(UL|OL|DL)$/.test(u.nodeName)&&t.insertBefore(i.doc.createTextNode("\xa0"),t.firstChild)}if(r=i.createRng(),t.normalize(),t.hasChildNodes()){for(var s=new Ko(t,t);n=s.current();){if(Wo.isText(n)){r.setStart(n,0),r.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){r.setStartBefore(n),r.setEndBefore(n);break}o=n,n=s.next()}n||(r.setStart(o,0),r.setEnd(o,0))}else Wo.isBr(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)):(r.setStart(t,0),r.setEnd(t,0));e.selection.setRng(r),e.selection.scrollIntoView(t)}},zw=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},Nw=ww,Ew=function(e){return ww(e).fold(K(""),function(e){return e.nodeName.toUpperCase()})},Sw=function(e){return ww(e).filter(function(e){return ti(Er.fromDom(e))}).isSome()},kw=function(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t},Tw=function(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)},Aw=function(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e},Mw=function(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!Wo.isElement(r);)r=r[n?"nextSibling":"previousSibling"];return r===t},Rw=function(e,t,n,r,o){var i=e.dom,a=e.selection.getRng();if(n!==e.getBody()){var u;Tw(u=n)&&Tw(u.parentNode)&&(o="LI");var s,l,c=o?t(o):i.create("BR");if(Mw(n,r,!0)&&Mw(n,r,!1))kw(n,"LI")?i.insertAfter(c,Aw(n)):i.replace(c,n);else if(Mw(n,r,!0))kw(n,"LI")?(i.insertAfter(c,Aw(n)),c.appendChild(i.doc.createTextNode(" ")),c.appendChild(n)):n.parentNode.insertBefore(c,n);else if(Mw(n,r,!1))i.insertAfter(c,Aw(n));else{n=Aw(n);var f=a.cloneRange();f.setStartAfter(r),f.setEndAfter(n);var d=f.extractContents();"LI"===o&&(l="LI",(s=d).firstChild&&s.firstChild.nodeName===l)?(c=d.firstChild,i.insertAfter(d,n)):(i.insertAfter(d,n),i.insertAfter(c,n))}i.remove(r),xw(e,c)}},Dw=function(e){e.innerHTML='<br data-mce-bogus="1">'},Bw=function(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t},Ow=function(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)},Hw=function(e,t,n){return!1===Wo.isText(t)?n:e?1===n&&t.data.charAt(n-1)===La?0:n:n===t.data.length-1&&t.data.charAt(n)===La?t.data.length:n},_w=function(e,t){var n,r,o=e.getRoot();for(n=t;n!==o&&"false"!==e.getContentEditable(n);)"true"===e.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==o?r:o},Lw=function(e,t){var n=zc(e);n&&n.toLowerCase()===t.tagName.toLowerCase()&&e.dom.setAttribs(t,Nc(e))},Pw=function(e,t){var n,r,o,i,a,u,s,l,c,f,d,h,m,g=e.dom,p=e.schema,v=p.getNonEmptyElements(),y=e.selection.getRng(),b=function(t){var n,i,u,s=o,l=p.getTextInlineElements();if(t||"TABLE"===f||"HR"===f?(n=g.create(t||h),Lw(e,n)):n=a.cloneNode(!1),u=n,!1===kc(e))g.setAttrib(n,"style",null),g.setAttrib(n,"class",null);else do{if(l[s.nodeName]){if(ds(s)||Ml(s))continue;i=s.cloneNode(!1),g.setAttrib(i,"id",""),n.hasChildNodes()?i.appendChild(n.firstChild):u=i,n.appendChild(i)}}while((s=s.parentNode)&&s!==r);return Dw(u),n},C=function(e){var t,n,r=Hw(e,o,i);if(Wo.isText(o)&&(e?0<r:r<o.nodeValue.length))return!1;if(o.parentNode===a&&m&&!e)return!0;if(e&&Wo.isElement(o)&&o===a.firstChild)return!0;if(Bw(o,"TABLE")||Bw(o,"HR"))return m&&!e||!m&&e;var u=new Ko(o,a);for(Wo.isText(o)&&(e&&0===r?u.prev():e||r!==o.nodeValue.length||u.next());t=u.current();){if(Wo.isElement(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),v[n]&&"br"!==n))return!1}else if(Wo.isText(t)&&!/^[ \t\r\n]*$/.test(t.nodeValue))return!1;e?u.prev():u.next()}return!0},w=function(){s=/^(H[1-6]|PRE|FIGURE)$/.test(f)&&"HGROUP"!==d?b(h):b(),Tc(e)&&Ow(g,c)&&g.isEmpty(a)?s=g.split(c,a):g.insertAfter(s,a),xw(e,s)};Yv(g,y).each(function(e){y.setStart(e.startContainer,e.startOffset),y.setEnd(e.endContainer,e.endOffset)}),o=y.startContainer,i=y.startOffset,h=zc(e),u=!(!t||!t.shiftKey);var x,z,N,E,S,k,T=!(!t||!t.ctrlKey);Wo.isElement(o)&&o.hasChildNodes()&&(m=i>o.childNodes.length-1,o=o.childNodes[Math.min(i,o.childNodes.length-1)]||o,i=m&&Wo.isText(o)?o.nodeValue.length:0),(r=_w(g,o))&&((h&&!u||!h&&u)&&(o=function(e,t,n,r,o){var i,a,u,s,l,c,f,d=t||"P",h=e.dom,m=_w(h,r);if(!(a=h.getParent(r,h.isBlock))||!Ow(h,a)){if(c=(a=a||m)===e.getBody()||(f=a)&&/^(TD|TH|CAPTION)$/.test(f.nodeName)?a.nodeName.toLowerCase():a.parentNode.nodeName.toLowerCase(),!a.hasChildNodes())return i=h.create(d),Lw(e,i),a.appendChild(i),n.setStart(i,0),n.setEnd(i,0),i;for(s=r;s.parentNode!==a;)s=s.parentNode;for(;s&&!h.isBlock(s);)s=(u=s).previousSibling;if(u&&e.schema.isValidChild(c,d.toLowerCase())){for(i=h.create(d),Lw(e,i),u.parentNode.insertBefore(i,u),s=u;s&&!h.isBlock(s);)l=s.nextSibling,i.appendChild(s),s=l;n.setStart(r,o),n.setEnd(r,o)}}return r}(e,h,y,o,i)),a=g.getParent(o,g.isBlock),c=a?g.getParent(a.parentNode,g.isBlock):null,f=a?a.nodeName.toUpperCase():"","LI"!==(d=c?c.nodeName.toUpperCase():"")||T||(c=(a=c).parentNode,f=d),/^(LI|DT|DD)$/.test(f)&&g.isEmpty(a)?Rw(e,b,c,a,h):h&&a===e.getBody()||(h=h||"P",Fa(a)?(s=Ga(a),g.isEmpty(a)&&Dw(a),xw(e,s)):C()?w():C(!0)?(s=a.parentNode.insertBefore(b(),a),xw(e,Bw(a,"HR")?s:a)):((n=(S=y,k=S.cloneRange(),k.setStart(S.startContainer,Hw(!0,S.startContainer,S.startOffset)),
|
31
|
-
k.setEnd(S.endContainer,Hw(!1,S.endContainer,S.endOffset)),k).cloneRange()).setEndAfter(a),E=l=n.extractContents(),ve(pa(Er.fromDom(E),Dr),function(e){var t=e.dom();t.nodeValue=Pa(t.nodeValue)}),function(e){for(;Wo.isText(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(l),s=l.firstChild,g.insertAfter(l,a),function(e,t,n){var r,o=n,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;Wo.isElement(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(r=i.length;r--;)!(o=i[r]).hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):(a=e,(u=o)&&"A"===u.nodeName&&a.isEmpty(u)&&e.remove(o));var a,u}}(g,v,s),x=g,(z=a).normalize(),(N=z.lastChild)&&!/^(left|right)$/gi.test(x.getStyle(N,"float",!0))||x.add(z,"br"),g.isEmpty(a)&&Dw(a),s.normalize(),g.isEmpty(s)?(g.remove(s),w()):xw(e,s)),g.setAttrib(s,"id",""),e.fire("NewBlock",{newBlock:s})))},Vw=function(e,t,n){var r=e.create("span",{}," ");n.parentNode.insertBefore(r,n),t.scrollIntoView(r),e.remove(r)},Iw=function(e,t,n,r){var o=e.createRng();r?(o.setStartBefore(n),o.setEndBefore(n)):(o.setStartAfter(n),o.setEndAfter(n)),t.setRng(o)},Fw=function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();Yv(i,a).each(function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)});var u=a.startOffset,s=a.startContainer;if(1===s.nodeType&&s.hasChildNodes()){var l=u>s.childNodes.length-1;s=s.childNodes[Math.min(u,s.childNodes.length-1)]||s,u=l&&3===s.nodeType?s.nodeValue.length:0}var c=i.getParent(s,i.isBlock),f=c?i.getParent(c.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",h=!(!t||!t.ctrlKey);"LI"!==d||h||(c=f),s&&3===s.nodeType&&u>=s.nodeValue.length&&(function(e){for(var t,n=new Ko(s,c),r=e.getNonEmptyElements();t=n.next();)if(r[t.nodeName.toLowerCase()]||0<t.length)return!0}(e.schema)||(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0)),n=i.create("br"),es(i,a,n),Vw(i,o,n),Iw(i,o,n,r),e.undoManager.add()},Uw=function(e,t){var n=Er.fromTag("br");ea(Er.fromDom(t),n),e.undoManager.add()},jw=function(e,t){qw(e.getBody(),t)||ta(Er.fromDom(t),Er.fromTag("br"));var n=Er.fromTag("br");ta(Er.fromDom(t),n),Vw(e.dom,e.selection,n.dom()),Iw(e.dom,e.selection,n.dom(),!1),e.undoManager.add()},qw=function(e,t){return n=ju.after(t),!!Wo.isBr(n.getNode())||Cl.nextPosition(e,ju.after(t)).map(function(e){return Wo.isBr(e.getNode())}).getOr(!1);var n},$w=function(e){return e&&"A"===e.nodeName&&"href"in e},Ww=function(e){return e.fold(K(!1),$w,$w,K(!1))},Kw=function(e,n){n.fold($,t(Uw,e),t(jw,e),$)},Xw=function(e,n){var r,o,i,a=(r=e,o=t(yy.isInlineTarget,r),i=ju.fromRangeStart(r.selection.getRng()),Ly(o,r.getBody(),i).filter(Ww));a.isSome()?a.each(t(Kw,e)):Fw(e,n)},Yw=function(e,t){return Nw(e).filter(function(e){return 0<t.length&&io(Er.fromDom(e),t)}).isSome()},Gw=function(e){return Yw(e,Ec(e))},Jw=function(e){return Yw(e,Sc(e))},Qw=rf([{br:[]},{block:[]},{none:[]}]),Zw=function(e){return Jw(e)},ex=function(e){return function(t){return""===zc(t)===e}},tx=function(e){return function(t){return Sw(t)===e}},nx=function(e,t){return function(n){return Ew(n)===e.toUpperCase()===t}},rx=function(e){return nx("pre",e)},ox=function(e){return function(t){return xc(t)===e}},ix=function(e){return Gw(e)},ax=function(e,t){return t},ux=function(e){var t=zc(e),n=zw(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")},sx=function(e,t){return function(n,r){return we(e,function(e,t){return e&&t(n,r)},!0)?re.some(t):re.none()}},lx=function(e,t){return by([sx([Zw],Qw.none()),sx([nx("summary",!0)],Qw.br()),sx([rx(!0),ox(!1),ax],Qw.br()),sx([rx(!0),ox(!1)],Qw.block()),sx([rx(!0),ox(!0),ax],Qw.block()),sx([rx(!0),ox(!0)],Qw.br()),sx([tx(!0),ax],Qw.br()),sx([tx(!0)],Qw.block()),sx([ex(!0),ax,ux],Qw.block()),sx([ex(!0)],Qw.br()),sx([ix],Qw.br()),sx([ex(!1),ax],Qw.br()),sx([ux],Qw.block())],[e,!(!t||!t.shiftKey)]).getOr(Qw.none())},cx=function(e,t){lx(e,t).fold(function(){Xw(e,t)},function(){Pw(e,t)},$)},fx=function(e){e.on("keydown",function(t){var n,r,o;t.keyCode===Ih.ENTER&&(n=e,(r=t).isDefaultPrevented()||(r.preventDefault(),(o=n.undoManager).typing&&(o.typing=!1,o.add()),n.undoManager.transact(function(){!1===n.selection.isCollapsed()&&n.execCommand("Delete"),cx(n,r)})))})},dx=function(e,t){var n=t.container(),r=t.offset();return Wo.isText(n)?(n.insertData(r,e),re.some(C(n,r+e.length))):Gs(t).map(function(n){var r=Er.fromText(e);return t.isAtEnd()?ta(n,r):ea(n,r),C(r.dom(),e.length)})},hx=t(dx,"\xa0"),mx=t(dx," "),gx=function(e){return C.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()},px=function(e,t){var n=be(Kd(Er.fromDom(t.container()),e),Go);return Ae(n).getOr(e)},vx=function(e,t){return gx(t)?Wh(t):Wh(t)||Cl.prevPosition(px(e,t).dom(),t).exists(Wh)},yx=function(e,t){return gx(t)?$h(t):$h(t)||Cl.nextPosition(px(e,t).dom(),t).exists($h)},bx=function(e){return Gs(e).bind(function(e){return ba(e,Rr)}).exists(function(e){return t=Yr(e,"white-space"),me(["pre","pre-wrap"],t);var t})},Cx=function(e,t){return o=e,i=t,Cl.prevPosition(o.dom(),i).isNone()||(n=e,r=t,Cl.nextPosition(n.dom(),r).isNone())||gw(e,t)||pw(e,t)||dC(e,t)||fC(e,t);var n,r,o,i},wx=function(e,t){var n,r,o,i=(r=(n=t).container(),o=n.offset(),Wo.isText(r)&&o<r.data.length?C(r,o+1):n);return!bx(i)&&(pw(e,i)||yw(e,i)||fC(e,i)||yx(e,i))},xx=function(e,t){return n=e,!bx(r=t)&&(gw(n,r)||vw(n,r)||dC(n,r)||vx(n,r))||wx(e,t);var n,r},zx=function(e,t){return Fh(e.charAt(t))},Nx=function(e){var t=e.container();return Wo.isText(t)&&hr(t.data,"\xa0")},Ex=function(e){var t=e.data,n=pe(t.split(""),function(e,t,n){return Fh(e)&&0<t&&t<n.length-1&&jh(n[t-1])&&jh(n[t+1])?" ":e}).join("");return n!==t&&(e.data=n,!0)},Sx=function(e,t){return re.some(t).filter(Nx).bind(function(t){var n,r,o,i,a,u,s,l,c=t.container();return a=e,s=(u=c).data,l=C(u,0),zx(s,0)&&!xx(a,l)&&(u.data=" "+s.slice(1),1)||Ex(c)||(n=e,o=(r=c).data,i=C(r,o.length-1),zx(o,o.length-1)&&!xx(n,i)&&(r.data=o.slice(0,-1)+" ",1))?re.some(t):re.none()})},kx=function(e){var t=Er.fromDom(e.getBody());e.selection.isCollapsed()&&Sx(t,C.fromRangeStart(e.selection.getRng())).each(function(t){e.selection.setRng(t.toRange())})},Tx=function(e,t){return function(n){return r=e,!bx(o=n)&&(Cx(r,o)||vx(r,o)||yx(r,o))?hx(t):mx(t);var r,o}},Ax=function(e){var n,r,o=ju.fromRangeStart(e.selection.getRng()),i=Er.fromDom(e.getBody());if(e.selection.isCollapsed()){var a=t(yy.isInlineTarget,e),u=ju.fromRangeStart(e.selection.getRng());return Ly(a,e.getBody(),u).bind((r=i,function(e){return e.fold(function(e){return Cl.prevPosition(r.dom(),ju.before(e))},function(e){return Cl.firstPositionIn(e)},function(e){return Cl.lastPositionIn(e)},function(e){return Cl.nextPosition(r.dom(),ju.after(e))})})).bind(Tx(i,o)).exists((n=e,function(e){return n.selection.setRng(e.toRange()),n.nodeChanged(),!0}))}return!1},Mx=function(e){e.on("keydown",function(t){var n,r;!1===t.isDefaultPrevented()&&(n=e,r=t,Ib([{keyCode:Ih.SPACEBAR,action:Vb(Ax,n)}],r).each(function(){r.preventDefault()}))})},Rx=function(e,t){var n;t.hasAttribute("data-mce-caret")&&(Ga(t),(n=e).selection.setRng(n.selection.getRng()),e.selection.scrollIntoView(t))},Dx=function(e,t){var n,r=(n=e,wa(Er.fromDom(n.getBody()),"*[data-mce-caret]").fold(K(null),function(e){return e.dom()}));if(r)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void Rx(e,r)):void(qa(r)&&(Rx(e,r),e.undoManager.add()))},Bx=function(e){e.on("keyup compositionstart",t(Dx,e))},Ox=zr.detect().browser,Hx=function(e){var t,n;t=e,n=sa(function(){t.composing||kx(t)},0),Ox.isIE()&&(t.on("keypress",function(){n.throttle()}),t.on("remove",function(){n.cancel()})),e.on("input",function(t){!1===t.isComposing&&kx(e)})},_x=function(e){e.on("keydown",function(t){var n,r;!1===t.isDefaultPrevented()&&(n=e,r=t,Ib([{keyCode:Ih.END,action:gb(n,!0)},{keyCode:Ih.HOME,action:gb(n,!1)}],r).each(function(){r.preventDefault()}))})},Lx=function(e){var t=Yy.setupSelectedState(e);Bx(e),Fb(e,t),Cw(e,t),fx(e),Mx(e),Hx(e),_x(e)},Px=function(t){var n,r,o,i=hn.each,a=Ih.BACKSPACE,u=Ih.DELETE,s=t.dom,l=t.selection,c=t.settings,f=t.parser,d=ut.gecko,h=ut.ie,m=ut.webkit,g="data:text/mce-internal,",p=h?"Text":"URL",v=function(e,n){try{t.getDoc().execCommand(e,!1,n)}catch(r){}},y=function(e){return e.isDefaultPrevented()},b=function(){t.shortcuts.add("meta+a",null,"SelectAll")},C=function(){t.on("keydown",function(e){if(!y(e)&&e.keyCode===a&&l.isCollapsed()&&0===l.getRng().startOffset){var t=l.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})},w=function(){t.inline||(t.contentStyles.push("body {min-height: 150px}"),t.on("click",function(e){var n;if("HTML"===e.target.nodeName){if(11<ut.ie)return void t.getBody().focus();n=t.selection.getRng(),t.getBody().focus(),t.selection.setRng(n),t.selection.normalize(),t.nodeChanged()}}))};return t.on("keydown",function(e){var n,r,o,i,a;if(!y(e)&&e.keyCode===Ih.BACKSPACE&&(r=(n=l.getRng()).startContainer,o=n.startOffset,i=s.getRoot(),a=r,n.collapsed&&0===o)){for(;a&&a.parentNode&&a.parentNode.firstChild===a&&a.parentNode!==i;)a=a.parentNode;"BLOCKQUOTE"===a.tagName&&(t.formatter.toggle("blockquote",null,a),(n=s.createRng()).setStart(r,0),n.setEnd(r,0),l.setRng(n))}}),n=function(e){var t=s.create("body"),n=e.cloneContents();return t.appendChild(n),l.serializer.serialize(t,{format:"html"})},t.on("keydown",function(e){var r,o,i,l,c,f=e.keyCode;if(!y(e)&&(f===u||f===a)){if(r=t.selection.isCollapsed(),o=t.getBody(),r&&!s.isEmpty(o))return;if(!r&&(i=t.selection.getRng(),l=n(i),(c=s.createRng()).selectNode(t.getBody()),l!==n(c)))return;e.preventDefault(),t.setContent(""),o.firstChild&&s.isBlock(o.firstChild)?t.selection.setCursorLocation(o.firstChild,0):t.selection.setCursorLocation(o,0),t.nodeChanged()}}),ut.windowsPhone||t.on("keyup focusin mouseup",function(e){Ih.modifierPressed(e)||l.normalize()},!0),m&&(t.inline||s.bind(t.getDoc(),"mousedown mouseup",function(e){var n;if(e.target===t.getDoc().documentElement)if(n=l.getRng(),t.getBody().focus(),"mousedown"===e.type){if(ja(n.startContainer))return;l.placeCaretAt(e.clientX,e.clientY)}else l.setRng(n)}),t.on("click",function(e){var n=e.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==s.getContentEditableParent(n)&&(e.preventDefault(),t.selection.select(n),t.nodeChanged()),"A"===n.nodeName&&s.hasClass(n,"mce-item-anchor")&&(e.preventDefault(),l.select(n))}),c.forced_root_block&&t.on("init",function(){v("DefaultParagraphSeparator",zc(t))}),t.on("init",function(){t.dom.bind(t.getBody(),"submit",function(e){e.preventDefault()})}),C(),f.addNodeFilter("br",function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}),ut.iOS?(t.inline||t.on("keydown",function(){e.document.activeElement===e.document.body&&t.getWin().focus()}),w(),t.on("click",function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)}),t.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")):b()),11<=ut.ie&&(w(),C()),ut.ie&&(b(),v("AutoUrlDetect",!1),t.on("dragstart",function(e){var n,r,o;(n=e).dataTransfer&&(t.selection.isCollapsed()&&"IMG"===n.target.tagName&&l.select(n.target),0<(r=t.selection.getContent()).length&&(o=g+escape(t.id)+","+escape(r),n.dataTransfer.setData(p,o)))}),t.on("drop",function(e){if(!y(e)){var n=(a=e).dataTransfer&&(u=a.dataTransfer.getData(p))&&0<=u.indexOf(g)?(u=u.substr(g.length).split(","),{id:unescape(u[0]),html:unescape(u[1])}):null;if(n&&n.id!==t.id){e.preventDefault();var r=mv(e.x,e.y,t.getDoc());l.setRng(r),o=n.html,i=!0,t.queryCommandSupported("mceInsertClipboardContent")?t.execCommand("mceInsertClipboardContent",!1,{content:o,internal:i}):t.execCommand("mceInsertContent",!1,o)}}var o,i,a,u})),d&&(t.on("keydown",function(e){if(!y(e)&&e.keyCode===a){if(!t.getBody().getElementsByTagName("hr").length)return;if(l.isCollapsed()&&0===l.getRng().startOffset){var n=l.getNode(),r=n.previousSibling;if("HR"===n.nodeName)return s.remove(n),void e.preventDefault();r&&r.nodeName&&"hr"===r.nodeName.toLowerCase()&&(s.remove(r),e.preventDefault())}}}),e.Range.prototype.getClientRects||t.on("mousedown",function(e){if(!y(e)&&"HTML"===e.target.nodeName){var n=t.getBody();n.blur(),dt.setEditorTimeout(t,function(){n.focus()})}}),r=function(){var e=s.getAttribs(l.getStart().cloneNode(!1));return function(){var n=l.getStart();n!==t.getBody()&&(s.setAttrib(n,"style",null),i(e,function(e){n.setAttributeNode(e.cloneNode(!0))}))}},o=function(){return!l.isCollapsed()&&s.getParent(l.getStart(),s.isBlock)!==s.getParent(l.getEnd(),s.isBlock)},t.on("keypress",function(e){var n;if(!y(e)&&(8===e.keyCode||46===e.keyCode)&&o())return n=r(),t.getDoc().execCommand("delete",!1,null),n(),e.preventDefault(),!1}),s.bind(t.getDoc(),"cut",function(e){var n;!y(e)&&o()&&(n=r(),dt.setEditorTimeout(t,function(){n()}))}),c.readonly||t.on("BeforeExecCommand mousedown",function(){v("StyleWithCSS",!1),v("enableInlineTableEditing",!1),c.object_resizing||v("enableObjectResizing",!1)}),t.on("SetContent ExecCommand",function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||i(s.select("a"),function(e){var t=e.parentNode,n=s.getRoot();if(t.lastChild===e){for(;t&&!s.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}s.add(t,"br",{"data-mce-bogus":1})}})}),t.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}"),ut.mac&&t.on("keydown",function(e){!Ih.metaKeyPressed(e)||e.shiftKey||37!==e.keyCode&&39!==e.keyCode||(e.preventDefault(),t.selection.getSel().modify("move",37===e.keyCode?"backward":"forward","lineboundary"))}),C()),{refreshContentEditable:function(){},isHidden:function(){var e;return!(!d||t.removed||(e=t.selection.getSel())&&e.rangeCount&&0!==e.rangeCount)}}},Vx=function(e){return Wo.isElement(e)&&Zo(Er.fromDom(e))},Ix=function(e){e.on("click",function(t){3<=t.detail&&function(e){var t=e.selection.getRng(),n=C.fromRangeStart(t),r=C.fromRangeEnd(t);if(C.isElementPosition(n)){var o=n.container();Vx(o)&&Cl.firstPositionIn(o).each(function(e){return t.setStart(e.container(),e.offset())})}C.isElementPosition(r)&&(o=n.container(),Vx(o)&&Cl.lastPositionIn(o).each(function(e){return t.setEnd(e.container(),e.offset())})),e.selection.setRng(Kg(t))}(e)})},Fx=function(e){var t,n;(t=e).on("click",function(e){t.dom.getParent(e.target,"details")&&e.preventDefault()}),(n=e).parser.addNodeFilter("details",function(e){ve(e,function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")})}),n.serializer.addNodeFilter("details",function(e){ve(e,function(e){var t=e.attr("data-mce-open");e.attr("open",ie(t)?t:null),e.attr("data-mce-open",null)})})},Ux=Ui.DOM,jx=function(e){var t;e.bindPendingEventDelegates(),e.initialized=!0,e.fire("init"),e.focus(!0),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),(t=e).settings.auto_focus&&dt.setEditorTimeout(t,function(){var e;(e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus)).destroyed||e.focus()},100)},qx=function(t,n){var r,o,i,a,u=t.settings,s=t.getElement(),l=t.getDoc();u.inline||(t.getElement().style.visibility=t.orgVisibility),n||t.inline||(l.open(),l.write(t.iframeHTML),l.close()),t.inline&&(t.on("remove",function(){var e=this.getBody();Ux.removeClass(e,"mce-content-body"),Ux.removeClass(e,"mce-edit-focus"),Ux.setAttrib(e,"contentEditable",null)}),Ux.addClass(s,"mce-content-body"),t.contentDocument=l=e.document,t.contentWindow=e.window,t.bodyElement=s,t.contentAreaContainer=s,u.root_name=s.nodeName.toLowerCase()),(r=t.getBody()).disabled=!0,t.readonly=u.readonly,t.readonly||(t.inline&&"static"===Ux.getStyle(r,"position",!0)&&(r.style.position="relative"),r.contentEditable=t.getParam("content_editable_state",!0)),r.disabled=!1,t.editorUpload=jd(t),t.schema=p(u),t.dom=Ui(l,{keep_values:!0,url_converter:t.convertURL,url_converter_scope:t,hex_colors:u.force_hex_style_colors,update_styles:!0,root_element:t.inline?t.getBody():null,collect:function(){return t.inline},schema:t.schema,contentCssCors:Fc(t),onSetAttrib:function(e){t.fire("SetAttrib",e)}}),t.parser=((a=Ep((i=t).settings,i.schema)).addAttributeFilter("src,href,style,tabindex",function(e,t){for(var n,r,o,a=e.length,u=i.dom;a--;)if(r=(n=e[a]).attr(t),o="data-mce-"+t,!n.attr(o)){if(0===r.indexOf("data:")||0===r.indexOf("blob:"))continue;"style"===t?((r=u.serializeStyle(u.parseStyle(r),n.name)).length||(r=null),n.attr(o,r),n.attr(t,r)):"tabindex"===t?(n.attr(o,r),n.attr(t,null)):n.attr(o,i.convertURL(r,t,n.name))}}),a.addNodeFilter("script",function(e){for(var t,n,r=e.length;r--;)0!==(n=(t=e[r]).attr("type")||"no/type").indexOf("mce-")&&t.attr("type","mce-"+n)}),a.addNodeFilter("#cdata",function(e){for(var t,n=e.length;n--;)(t=e[n]).type=8,t.name="#comment",t.value="[CDATA["+t.value+"]]"}),a.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(e){for(var t,n=e.length,r=i.schema.getNonEmptyElements();n--;)(t=e[n]).isEmpty(r)&&0===t.getAll("br").length&&(t.append(new ic("br",1)).shortEnded=!0)}),a),t.serializer=Ap(u,t),t.selection=iy(t.dom,t.getWin(),t.serializer,t),t.annotator=tc(t),t.formatter=lp(t),t.undoManager=zm(t),t._nodeChangeDispatcher=new oh(t),t._selectionOverrides=am(t),Fx(t),Ix(t),Lx(t),Jd(t),t.fire("PreInit"),u.browser_spellcheck||u.gecko_spellcheck||(l.body.spellcheck=!1,Ux.setAttrib(r,"spellcheck","false")),t.quirks=Px(t),t.fire("PostRender");var c,f,d,h,m,g=Kc(t);g!==undefined&&(r.dir=g),u.protect&&t.on("BeforeSetContent",function(e){hn.each(u.protect,function(t){e.content=e.content.replace(t,function(e){return"<!--mce:protected "+escape(e)+"-->"})})}),t.on("SetContent",function(){t.addVisual(t.getBody())}),t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),t.on("compositionstart compositionend",function(e){t.composing="compositionstart"===e.type}),0<t.contentStyles.length&&(o="",hn.each(t.contentStyles,function(e){o+=e+"\r\n"}),t.dom.addStyle(o)),(c=t,c.inline?Ux.styleSheetLoader:c.dom.styleSheetLoader).loadAll(t.contentCSS,function(){jx(t)},function(){jx(t)}),u.content_style&&(f=t,d=u.content_style,h=Er.fromDom(f.getDoc().head),m=Er.fromTag("style"),$r(m,"type","text/css"),ra(m,Er.fromText(d)),ra(h,m))},$x=Ui.DOM,Wx=function(t,n){var r,o,i,a,u=t.editorManager.translate("Rich Text Area. Press ALT-0 for help."),s=(r=t.id,o=u,n.height,i=pc(t),a=Er.fromTag("iframe"),Wr(a,i),Wr(a,{id:r+"_ifr",frameBorder:"0",allowTransparency:"true",title:o}),ha(a,"tox-edit-area__iframe"),a).dom();s.onload=function(){s.onload=null,t.fire("load")};var l,c,f,d,h=function(t,n){if(e.document.domain!==e.window.location.hostname&&ut.ie&&ut.ie<12){var r=Ud("mce");t[r]=function(){qx(t)};var o='javascript:(function(){document.open();document.domain="'+e.document.domain+'";var ed = window.parent.tinymce.get("'+t.id+'");document.write(ed.iframeHTML);document.close();ed.'+r+"(true);})()";return $x.setAttrib(n,"src",o),!0}return!1}(t,s);return t.contentAreaContainer=n.iframeContainer,t.iframeElement=s,t.iframeHTML=(d=vc(l=t)+"<html><head>",yc(l)!==l.documentBaseUrl&&(d+='<base href="'+l.documentBaseURI.getURI()+'" />'),d+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />',c=bc(l),f=Cc(l),wc(l)&&(d+='<meta http-equiv="Content-Security-Policy" content="'+wc(l)+'" />'),d+='</head><body id="'+c+'" class="mce-content-body '+f+'" data-id="'+l.id+'"><br></body></html>'),$x.add(n.iframeContainer,s),h},Kx=function(e,t){var n=Wx(e,t);t.editorContainer&&($x.get(t.editorContainer).style.display=e.orgDisplay,e.hidden=$x.isHidden(t.editorContainer)),e.getElement().style.display="none",$x.setAttrib(e.id,"aria-hidden","true"),n||qx(e)},Xx=function(e){var t,n,r,o,i;e.contentCSS=e.contentCSS.concat((n=Wc(t=e),r=t.editorManager.baseURL+"/skins/content",o="content"+t.editorManager.suffix+".css",i=!0===t.inline,pe(n,function(e){return/^[a-z0-9\-]+$/i.test(e)&&!i?r+"/"+e+"/"+o:t.documentBaseURI.toAbsolute(e)})))},Yx=Ui.DOM,Gx=function(e,t,n){var r=Rd.get(n),o=Rd.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=hn.trim(n),r&&-1===hn.inArray(t,n)){if(hn.each(Rd.dependencies(n),function(n){Gx(e,t,n)}),e.plugins[n])return;try{var i=new r(e,o,e.$);(e.plugins[n]=i).init&&(i.init(e,o),t.push(n))}catch(eE){Ad.pluginInitError(e,n,eE)}}},Jx=function(e){return e.replace(/^\-/,"")},Qx=function(e){return{editorContainer:e,iframeContainer:e}},Zx=function(e){var t,n,r=e.getElement();return e.inline?Qx(null):(t=r,n=Yx.create("div"),Yx.insertAfter(n,t),Qx(n))},ez=function(e){var t,n,r,o,i,a;e.fire("ScriptsLoaded"),t=e,n=hn.trim(t.settings.icons),r=t.ui.registry.getAll().icons,o=De({},{"accessibility-check":'<svg width="24" height="24"><path d="M12 2a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2c0-1.1.9-2 2-2zm8 7h-5v12c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5c0-.6-.4-1-1-1a1 1 0 0 0-1 1v5c0 .6-.4 1-1 1a1 1 0 0 1-1-1V9H4a1 1 0 1 1 0-2h16c.6 0 1 .4 1 1s-.4 1-1 1z" fill-rule="nonzero"/></svg>',"action-next":'<svg width="24" height="24"><path fill-rule="nonzero" d="M5.7 7.3a1 1 0 0 0-1.4 1.4l7.7 7.7 7.7-7.7a1 1 0 1 0-1.4-1.4L12 13.6 5.7 7.3z"/></svg>',"action-prev":'<svg width="24" height="24"><path fill-rule="nonzero" d="M18.3 15.7a1 1 0 0 0 1.4-1.4L12 6.6l-7.7 7.7a1 1 0 0 0 1.4 1.4L12 9.4l6.3 6.3z"/></svg>',"align-center":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm3 4h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm-3-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-justify":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0 4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-left":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 4h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"align-none":'<svg width="24" height="24"><path d="M14.2 5L13 7H5a1 1 0 1 1 0-2h9.2zm4 0h.8a1 1 0 0 1 0 2h-2l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h6.8zm4 0H19a1 1 0 0 1 0 2h-4.4l1.2-2zm-6.4 4l-1.2 2H5a1 1 0 0 1 0-2h4.4zm4 0H19a1 1 0 0 1 0 2h-6.8l1.2-2zM7 17l-1.2 2H5a1 1 0 0 1 0-2h2zm4 0h8a1 1 0 0 1 0 2H9.8l1.2-2zm5.2-13.5l1.3.7-9.7 16.3-1.3-.7 9.7-16.3z" fill-rule="evenodd"/></svg>',"align-right":'<svg width="24" height="24"><path d="M5 5h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm6 4h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 8h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-6-4h14c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',"arrow-left":'<svg width="24" height="24"><path d="M5.6 13l12 6a1 1 0 0 0 1.4-1V6a1 1 0 0 0-1.4-.9l-12 6a1 1 0 0 0 0 1.8z" fill-rule="evenodd"/></svg>',"arrow-right":'<svg width="24" height="24"><path d="M18.5 13l-12 6A1 1 0 0 1 5 18V6a1 1 0 0 1 1.4-.9l12 6a1 1 0 0 1 0 1.8z" fill-rule="evenodd"/></svg>',bold:'<svg width="24" height="24"><path d="M7.8 19c-.3 0-.5 0-.6-.2l-.2-.5V5.7c0-.2 0-.4.2-.5l.6-.2h5c1.5 0 2.7.3 3.5 1 .7.6 1.1 1.4 1.1 2.5a3 3 0 0 1-.6 1.9c-.4.6-1 1-1.6 1.2.4.1.9.3 1.3.6s.8.7 1 1.2c.4.4.5 1 .5 1.6 0 1.3-.4 2.3-1.3 3-.8.7-2.1 1-3.8 1H7.8zm5-8.3c.6 0 1.2-.1 1.6-.5.4-.3.6-.7.6-1.3 0-1.1-.8-1.7-2.3-1.7H9.3v3.5h3.4zm.5 6c.7 0 1.3-.1 1.7-.4.4-.4.6-.9.6-1.5s-.2-1-.7-1.4c-.4-.3-1-.4-2-.4H9.4v3.8h4z" fill-rule="evenodd"/></svg>',bookmark:'<svg width="24" height="24"><path d="M6 4v17l6-4 6 4V4c0-.6-.4-1-1-1H7a1 1 0 0 0-1 1z" fill-rule="nonzero"/></svg>',"border-width":'<svg width="24" height="24"><path d="M5 14.8h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm-.5 3.7h15c.3 0 .5.2.5.5s-.2.5-.5.5h-15a.5.5 0 1 1 0-1zm.5-8.3h14c.6 0 1 .4 1 1v1c0 .5-.4 1-1 1H5a1 1 0 0 1-1-1v-1c0-.6.4-1 1-1zm0-5.7h14c.6 0 1 .4 1 1v2c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-2c0-.6.4-1 1-1z" fill-rule="evenodd"/></svg>',brightness:'<svg width="24" height="24"><path d="M12 17c.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7v-1c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3zm0-10a1 1 0 0 1-.7-.3A1 1 0 0 1 11 6V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v1c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3zm7 4c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-1a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1zM7 12c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H5a1 1 0 0 1-.7-.3A1 1 0 0 1 4 12c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h1c.3 0 .5.1.7.3.2.2.3.4.3.7zm10 3.5l.7.8c.2.1.3.4.3.6 0 .3-.1.6-.3.8a1 1 0 0 1-.8.3 1 1 0 0 1-.6-.3l-.8-.7a1 1 0 0 1-.3-.8c0-.2.1-.5.3-.7a1 1 0 0 1 1.4 0zm-10-7l-.7-.8a1 1 0 0 1-.3-.6c0-.3.1-.6.3-.8.2-.2.5-.3.8-.3.2 0 .5.1.7.3l.7.7c.2.2.3.5.3.8 0 .2-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.8-.3zm10 0a1 1 0 0 1-.8.3 1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.6.3-.8l.8-.7c.1-.2.4-.3.6-.3.3 0 .6.1.8.3.2.2.3.5.3.8 0 .2-.1.5-.3.7l-.7.7zm-10 7c.2-.2.5-.3.8-.3.2 0 .5.1.7.3a1 1 0 0 1 0 1.4l-.8.8a1 1 0 0 1-.6.3 1 1 0 0 1-.8-.3 1 1 0 0 1-.3-.8c0-.2.1-.5.3-.6l.7-.8zM12 8a4 4 0 0 1 3.7 2.4 4 4 0 0 1 0 3.2A4 4 0 0 1 12 16a4 4 0 0 1-3.7-2.4 4 4 0 0 1 0-3.2A4 4 0 0 1 12 8zm0 6.5c.7 0 1.3-.2 1.8-.7.5-.5.7-1.1.7-1.8s-.2-1.3-.7-1.8c-.5-.5-1.1-.7-1.8-.7s-1.3.2-1.8.7c-.5.5-.7 1.1-.7 1.8s.2 1.3.7 1.8c.5.5 1.1.7 1.8.7z" fill-rule="evenodd"/></svg>',browse:'<svg width="24" height="24"><path d="M19 4a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-4v-2h4V8H5v10h4v2H5a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h14zm-8 9.4l-2.3 2.3a1 1 0 1 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1-1.4 1.4L13 13.4V20a1 1 0 0 1-2 0v-6.6z" fill-rule="nonzero"/></svg>',cancel:'<svg width="24" height="24"><path d="M12 4.6a7.4 7.4 0 1 1 0 14.8 7.4 7.4 0 0 1 0-14.8zM12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zm0 8L14.8 8l1 1.1-2.7 2.8 2.7 2.7-1.1 1.1-2.7-2.7-2.7 2.7-1-1.1 2.6-2.7-2.7-2.7 1-1.1 2.8 2.7z" fill-rule="nonzero"/></svg>',"change-case":'<svg width="24" height="24"><path d="M18.4 18.2v-.6c-.5.8-1.3 1.2-2.4 1.2-2.2 0-3.3-1.6-3.3-4.8 0-3.1 1-4.7 3.3-4.7 1.1 0 1.8.3 2.4 1.1v-.6c0-.5.4-.8.8-.8s.8.3.8.8v8.4c0 .5-.4.8-.8.8a.8.8 0 0 1-.8-.8zm-2-7.4c-1.3 0-1.8.9-1.8 3.2 0 2.4.5 3.3 1.7 3.3 1.3 0 1.8-.9 1.8-3.2 0-2.4-.5-3.3-1.7-3.3zM10 15.7H5.5l-.8 2.6a1 1 0 0 1-1 .7h-.2a.7.7 0 0 1-.7-1l4-12a1 1 0 1 1 2 0l4 12a.7.7 0 0 1-.8 1h-.2a1 1 0 0 1-1-.7l-.8-2.6zm-.3-1.5l-2-6.5-1.9 6.5h3.9z" fill-rule="evenodd"/></svg>',"character-count":'<svg width="24" height="24"><path d="M4 11.5h16v1H4v-1zm4.8-6.8V10H7.7V5.8h-1v-1h2zM11 8.3V9h2v1h-3V7.7l2-1v-.9h-2v-1h3v2.4l-2 1zm6.3-3.4V10h-3.1V9h2.1V8h-2.1V6.8h2.1v-1h-2.1v-1h3.1zM5.8 16.4c0-.5.2-.8.5-1 .2-.2.6-.3 1.2-.3l.8.1c.2 0 .4.2.5.3l.4.4v2.8l.2.3H8.2v-.1-.2l-.6.3H7c-.4 0-.7 0-1-.2a1 1 0 0 1-.3-.9c0-.3 0-.6.3-.8.3-.2.7-.4 1.2-.4l.6-.2h.3v-.2l-.1-.2a.8.8 0 0 0-.5-.1 1 1 0 0 0-.4 0l-.3.4h-1zm2.3.8h-.2l-.2.1-.4.1a1 1 0 0 0-.4.2l-.2.2.1.3.5.1h.4l.4-.4v-.6zm2-3.4h1.2v1.7l.5-.3h.5c.5 0 .9.1 1.2.5.3.4.5.8.5 1.4 0 .6-.2 1.1-.5 1.5-.3.4-.7.6-1.3.6l-.6-.1-.4-.4v.4h-1.1v-5.4zm1.1 3.3c0 .3 0 .6.2.8a.7.7 0 0 0 1.2 0l.2-.8c0-.4 0-.6-.2-.8a.7.7 0 0 0-.6-.3l-.6.3-.2.8zm6.1-.5c0-.2 0-.3-.2-.4a.8.8 0 0 0-.5-.2c-.3 0-.5.1-.6.3l-.2.9c0 .3 0 .6.2.8.1.2.3.3.6.3.2 0 .4 0 .5-.2l.2-.4h1.1c0 .5-.3.8-.6 1.1a2 2 0 0 1-1.3.4c-.5 0-1-.2-1.3-.6a2 2 0 0 1-.5-1.4c0-.6.1-1.1.5-1.5.3-.4.8-.5 1.4-.5.5 0 1 0 1.2.3.4.3.5.7.5 1.2h-1v-.1z" fill-rule="evenodd"/></svg>',"checklist-rtl":'<svg width="24" height="24"><path d="M5 17h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1H5a1 1 0 1 1 0-2zm14.2 11c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L18 8c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checklist:'<svg width="24" height="24"><path d="M11 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2h-8a1 1 0 0 1 0-2zM7.2 16c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 20c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 14c-.2.3-.7.4-1 0l-1.3-1.3a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8zm0-6c.2-.4.6-.5.9-.3.3.2.4.6.2 1L6 8c-.2.3-.7.4-1 0L3.8 6.9a.7.7 0 0 1 0-1c.3-.2.7-.2 1 0l.7.9 1.7-2.8z" fill-rule="evenodd"/></svg>',checkmark:'<svg width="24" height="24"><path d="M18.2 5.4a1 1 0 0 1 1.6 1.2l-8 12a1 1 0 0 1-1.5.1l-5-5a1 1 0 1 1 1.4-1.4l4.1 4.1 7.4-11z" fill-rule="nonzero"/></svg>',"chevron-down":'<svg width="10" height="10"><path d="M8.7 2.2c.3-.3.8-.3 1 0 .4.4.4.9 0 1.2L5.7 7.8c-.3.3-.9.3-1.2 0L.2 3.4a.8.8 0 0 1 0-1.2c.3-.3.8-.3 1.1 0L5 6l3.7-3.8z" fill-rule="nonzero"/></svg>',"chevron-left":'<svg width="10" height="10"><path d="M7.8 1.3L4 5l3.8 3.7c.3.3.3.8 0 1-.4.4-.9.4-1.2 0L2.2 5.7a.8.8 0 0 1 0-1.2L6.6.2C7 0 7.4 0 7.8.2c.3.3.3.8 0 1.1z" fill-rule="nonzero"/></svg>',"chevron-right":'<svg width="10" height="10"><path d="M2.2 1.3a.8.8 0 0 1 0-1c.4-.4.9-.4 1.2 0l4.4 4.1c.3.4.3.9 0 1.2L3.4 9.8c-.3.3-.8.3-1.2 0a.8.8 0 0 1 0-1.1L6 5 2.2 1.3z" fill-rule="nonzero"/></svg>',"chevron-up":'<svg width="10" height="10"><path d="M8.7 7.8L5 4 1.3 7.8c-.3.3-.8.3-1 0a.8.8 0 0 1 0-1.2l4.1-4.4c.3-.3.9-.3 1.2 0l4.2 4.4c.3.3.3.9 0 1.2-.3.3-.8.3-1.1 0z" fill-rule="nonzero"/></svg>',close:'<svg width="24" height="24"><path d="M17.3 8.2L13.4 12l3.9 3.8a1 1 0 0 1-1.5 1.5L12 13.4l-3.8 3.9a1 1 0 0 1-1.5-1.5l3.9-3.8-3.9-3.8a1 1 0 0 1 1.5-1.5l3.8 3.9 3.8-3.9a1 1 0 0 1 1.5 1.5z" fill-rule="evenodd"/></svg>',"code-sample":'<svg width="24" height="26"><path d="M7.1 11a2.8 2.8 0 0 1-.8 2 2.8 2.8 0 0 1 .8 2v1.7c0 .3.1.6.4.8.2.3.5.4.8.4.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.7 0-1.4-.3-2-.8-.5-.6-.8-1.3-.8-2V15c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4v-.8c0-.2.2-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V9.3c0-.7.3-1.4.8-2 .6-.5 1.3-.8 2-.8.3 0 .4.2.4.4v.8c0 .2-.1.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8V11zm9.8 0V9.3c0-.3-.1-.6-.4-.8-.2-.3-.5-.4-.8-.4a.4.4 0 0 1-.4-.4V7c0-.2.1-.4.4-.4.7 0 1.4.3 2 .8.5.6.8 1.3.8 2V11c0 .3.1.6.4.8.2.3.5.4.8.4.2 0 .4.2.4.4v.8c0 .2-.2.4-.4.4-.3 0-.6.1-.8.4-.3.2-.4.5-.4.8v1.7c0 .7-.3 1.4-.8 2-.6.5-1.3.8-2 .8a.4.4 0 0 1-.4-.4v-.8c0-.2.1-.4.4-.4.3 0 .6-.1.8-.4.3-.2.4-.5.4-.8V15a2.8 2.8 0 0 1 .8-2 2.8 2.8 0 0 1-.8-2zm-3.3-.4c0 .4-.1.8-.5 1.1-.3.3-.7.5-1.1.5-.4 0-.8-.2-1.1-.5-.4-.3-.5-.7-.5-1.1 0-.5.1-.9.5-1.2.3-.3.7-.4 1.1-.4.4 0 .8.1 1.1.4.4.3.5.7.5 1.2zM12 13c.4 0 .8.1 1.1.5.4.3.5.7.5 1.1 0 1-.1 1.6-.5 2a3 3 0 0 1-1.1 1c-.4.3-.8.4-1.1.4a.5.5 0 0 1-.5-.5V17a3 3 0 0 0 1-.2l.6-.6c-.6 0-1-.2-1.3-.5-.2-.3-.3-.7-.3-1 0-.5.1-1 .5-1.2.3-.4.7-.5 1.1-.5z" fill-rule="evenodd"/></svg>',"color-levels":'<svg width="24" height="24"><path d="M17.5 11.4A9 9 0 0 1 18 14c0 .5 0 1-.2 1.4 0 .4-.3.9-.5 1.3a6.2 6.2 0 0 1-3.7 3 5.7 5.7 0 0 1-3.2 0A5.9 5.9 0 0 1 7.6 18a6.2 6.2 0 0 1-1.4-2.6 6.7 6.7 0 0 1 0-2.8c0-.4.1-.9.3-1.3a13.6 13.6 0 0 1 2.3-4A20 20 0 0 1 12 4a26.4 26.4 0 0 1 3.2 3.4 18.2 18.2 0 0 1 2.3 4zm-2 4.5c.4-.7.5-1.4.5-2a7.3 7.3 0 0 0-1-3.2c.2.6.2 1.2.2 1.9a4.5 4.5 0 0 1-1.3 3 5.3 5.3 0 0 1-2.3 1.5 4.9 4.9 0 0 1-2 .1 4.3 4.3 0 0 0 2.4.8 4 4 0 0 0 2-.6 4 4 0 0 0 1.5-1.5z" fill-rule="evenodd"/></svg>',"color-picker":'<svg width="24" height="24"><path d="M12 3a9 9 0 0 0 0 18 1.5 1.5 0 0 0 1.1-2.5c-.2-.3-.4-.6-.4-1 0-.8.7-1.5 1.5-1.5H16a5 5 0 0 0 5-5c0-4.4-4-8-9-8zm-5.5 9a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3-4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3 4a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z" fill-rule="nonzero"/></svg>',"color-swatch-remove-color":'<svg width="24" height="24"><path stroke="#000" stroke-width="2" d="M21 3L3 21" fill-rule="evenodd"/></svg>',"color-swatch":'<svg width="24" height="24"><rect x="3" y="3" width="18" height="18" rx="1" fill-rule="evenodd"/></svg>',"comment-add":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23z"/><path d="M13 10h2a1 1 0 0 1 0 2h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V8a1 1 0 0 1 2 0v2z"/></g></svg>',comment:'<svg width="24" height="24"><path fill-rule="nonzero" d="M9 19l3-2h7c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H5a1 1 0 0 0-1 1v10c0 .6.4 1 1 1h4v2zm-2 4v-4H5a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v10a3 3 0 0 1-3 3h-6.4L7 23z"/></svg>',contrast:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4zm-6 8a6 6 0 0 0 6 6V6a6 6 0 0 0-6 6z" fill-rule="evenodd"/></svg>',copy:'<svg width="24" height="24"><path d="M16 3H6a2 2 0 0 0-2 2v11h2V5h10V3zm1 4a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7zm0 12V9h-7v10h7z" fill-rule="nonzero"/></svg>',
|
32
|
-
crop:'<svg width="24" height="24"><path d="M17 8v7h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v2c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-2H7V9H5a1 1 0 1 1 0-2h2V5c0-.6.4-1 1-1s1 .4 1 1v2h7l3-3 1 1-3 3zM9 9v5l5-5H9zm1 6h5v-5l-5 5z" fill-rule="evenodd"/></svg>',cut:'<svg width="24" height="24"><path d="M18 15c.6.7 1 1.4 1 2.3 0 .8-.2 1.5-.7 2l-.8.5-1 .2c-.4 0-.8 0-1.2-.3a3.9 3.9 0 0 1-2.1-2.2c-.2-.5-.3-1-.2-1.5l-1-1-1 1c0 .5 0 1-.2 1.5-.1.5-.4 1-.9 1.4-.3.4-.7.6-1.2.8l-1.2.3c-.4 0-.7 0-1-.2-.3 0-.6-.3-.8-.5-.5-.5-.8-1.2-.7-2 0-.9.4-1.6 1-2.2A3.7 3.7 0 0 1 8.6 14H9l1-1-4-4-.5-1a3.3 3.3 0 0 1 0-2c0-.4.3-.7.5-1l6 6 6-6 .5 1a3.3 3.3 0 0 1 0 2c0 .4-.3.7-.5 1l-4 4 1 1h.5c.4 0 .8 0 1.2.3.5.2.9.4 1.2.8zm-8.5 2.2l.1-.4v-.3-.4a1 1 0 0 0-.2-.5 1 1 0 0 0-.4-.2 1.6 1.6 0 0 0-.8 0 2.6 2.6 0 0 0-.8.3 2.5 2.5 0 0 0-.9 1.1l-.1.4v.7l.2.5.5.2h.7a2.5 2.5 0 0 0 .8-.3 2.8 2.8 0 0 0 1-1zm2.5-2.8c.4 0 .7-.1 1-.4.3-.3.4-.6.4-1s-.1-.7-.4-1c-.3-.3-.6-.4-1-.4s-.7.1-1 .4c-.3.3-.4.6-.4 1s.1.7.4 1c.3.3.6.4 1 .4zm5.4 4l.2-.5v-.4-.3a2.6 2.6 0 0 0-.3-.8 2.4 2.4 0 0 0-.7-.7 2.5 2.5 0 0 0-.8-.3 1.5 1.5 0 0 0-.8 0 1 1 0 0 0-.4.2 1 1 0 0 0-.2.5 1.5 1.5 0 0 0 0 .7v.4l.3.4.3.4a2.8 2.8 0 0 0 .8.5l.4.1h.7l.5-.2z" fill-rule="evenodd"/></svg>',"document-properties":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',drag:'<svg width="24" height="24"><path d="M13 5h2v2h-2V5zm0 4h2v2h-2V9zM9 9h2v2H9V9zm4 4h2v2h-2v-2zm-4 0h2v2H9v-2zm0 4h2v2H9v-2zm4 0h2v2h-2v-2zM9 5h2v2H9V5z" fill-rule="evenodd"/></svg>',duplicate:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M16 3v2H6v11H4V5c0-1.1.9-2 2-2h10zm3 8h-2V9h-7v10h9a2 2 0 0 1-2 2h-7a2 2 0 0 1-2-2V9c0-1.2.9-2 2-2h7a2 2 0 0 1 2 2v2z"/><path d="M17 14h1a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1z"/></g></svg>',"edit-block":'<svg width="24" height="24"><path fill-rule="nonzero" d="M19.8 8.8l-9.4 9.4c-.2.2-.5.4-.9.4l-5.4 1.2 1.2-5.4.5-.8 9.4-9.4c.7-.7 1.8-.7 2.5 0l2.1 2.1c.7.7.7 1.8 0 2.5zm-2-.2l1-.9v-.3l-2.2-2.2a.3.3 0 0 0-.3 0l-1 1L18 8.5zm-1 1l-2.5-2.4-6 6 2.5 2.5 6-6zm-7 7.1l-2.6-2.4-.3.3-.1.2-.7 3 3.1-.6h.1l.4-.5z"/></svg>',"edit-image":'<svg width="24" height="24"><path d="M18 16h2V7a2 2 0 0 0-2-2H7v2h11v9zM6 17h15a1 1 0 0 1 0 2h-1v1a1 1 0 0 1-2 0v-1H6a2 2 0 0 1-2-2V7H3a1 1 0 1 1 0-2h1V4a1 1 0 1 1 2 0v13zm3-5.3l1.3 2 3-4.7 3.7 6H7l2-3.3z" fill-rule="nonzero"/></svg>',"embed-page":'<svg width="24" height="24"><path d="M19 6V5H5v14h2A13 13 0 0 1 19 6zm0 1.4c-.8.8-1.6 2.4-2.2 4.6H19V7.4zm0 5.6h-2.4c-.4 1.8-.6 3.8-.6 6h3v-6zm-4 6c0-2.2.2-4.2.6-6H13c-.7 1.8-1.1 3.8-1.1 6h3zm-4 0c0-2.2.4-4.2 1-6H9.6A12 12 0 0 0 8 19h3zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm11.8 9c.4-1.9 1-3.4 1.8-4.5a9.2 9.2 0 0 0-4 4.5h2.2zm-3.4 0a12 12 0 0 1 2.8-4 12 12 0 0 0-5 4h2.2z" fill-rule="nonzero"/></svg>',embed:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm4.8 2.6l5.6 4a.5.5 0 0 1 0 .8l-5.6 4A.5.5 0 0 1 9 16V8a.5.5 0 0 1 .8-.4z" fill-rule="nonzero"/></svg>',emoji:'<svg width="24" height="24"><path d="M9 11c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1zm6 0c.6 0 1-.4 1-1s-.4-1-1-1a1 1 0 0 0-1 1c0 .6.4 1 1 1zm-3 5.5c2.1 0 4-1.5 4.4-3.5H7.6c.5 2 2.3 3.5 4.4 3.5zM12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 14.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13z" fill-rule="nonzero"/></svg>',fill:'<svg width="24" height="26"><path d="M16.6 12l-9-9-1.4 1.4 2.4 2.4-5.2 5.1c-.5.6-.5 1.6 0 2.2L9 19.6a1.5 1.5 0 0 0 2.2 0l5.5-5.5c.5-.6.5-1.6 0-2.2zM5.2 13L10 8.2l4.8 4.8H5.2zM19 14.5s-2 2.2-2 3.5c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.3-2-3.5-2-3.5z" fill-rule="nonzero"/></svg>',"flip-horizontally":'<svg width="24" height="24"><path d="M14 19h2v-2h-2v2zm4-8h2V9h-2v2zM4 7v10c0 1.1.9 2 2 2h3v-2H6V7h3V5H6a2 2 0 0 0-2 2zm14-2v2h2a2 2 0 0 0-2-2zm-7 16h2V3h-2v18zm7-6h2v-2h-2v2zm-4-8h2V5h-2v2zm4 12a2 2 0 0 0 2-2h-2v2z" fill-rule="nonzero"/></svg>',"flip-vertically":'<svg width="24" height="24"><path d="M5 14v2h2v-2H5zm8 4v2h2v-2h-2zm4-14H7a2 2 0 0 0-2 2v3h2V6h10v3h2V6a2 2 0 0 0-2-2zm2 14h-2v2a2 2 0 0 0 2-2zM3 11v2h18v-2H3zm6 7v2h2v-2H9zm8-4v2h2v-2h-2zM5 18c0 1.1.9 2 2 2v-2H5z" fill-rule="nonzero"/></svg>',"format-painter":'<svg width="24" height="24"><path d="M18 5V4c0-.5-.4-1-1-1H5a1 1 0 0 0-1 1v4c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V7h1v4H9v9c0 .6.4 1 1 1h2c.6 0 1-.4 1-1v-7h8V5h-3z" fill-rule="nonzero"/></svg>',fullscreen:'<svg width="24" height="24"><path d="M15.3 10l-1.2-1.3 2.9-3h-2.3a.9.9 0 1 1 0-1.7H19c.5 0 .9.4.9.9v4.4a.9.9 0 1 1-1.8 0V7l-2.9 3zm0 4l3 3v-2.3a.9.9 0 1 1 1.7 0V19c0 .5-.4.9-.9.9h-4.4a.9.9 0 1 1 0-1.8H17l-3-2.9 1.3-1.2zM10 15.4l-2.9 3h2.3a.9.9 0 1 1 0 1.7H5a.9.9 0 0 1-.9-.9v-4.4a.9.9 0 1 1 1.8 0V17l2.9-3 1.2 1.3zM8.7 10L5.7 7v2.3a.9.9 0 0 1-1.7 0V5c0-.5.4-.9.9-.9h4.4a.9.9 0 0 1 0 1.8H7l3 2.9-1.3 1.2z" fill-rule="nonzero"/></svg>',gallery:'<svg width="24" height="24"><path fill-rule="nonzero" d="M5 15.7l2.3-2.2c.3-.3.7-.3 1 0L11 16l5.1-5c.3-.4.8-.4 1 0l2 1.9V8H5v7.7zM5 18V19h3l1.8-1.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 6h16c.6 0 1 .4 1 1v13c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V7c0-.6.4-1 1-1zm6 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM4.5 4h15a.5.5 0 1 1 0 1h-15a.5.5 0 0 1 0-1zm2-2h11a.5.5 0 1 1 0 1h-11a.5.5 0 0 1 0-1z"/></svg>',gamma:'<svg width="24" height="24"><path d="M4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm1 2v14h14V5H5zm6.5 11.8V14L9.2 8.7a5.1 5.1 0 0 0-.4-.8l-.1-.2H8 8v-1l.3-.1.3-.1h.7a1 1 0 0 1 .6.5l.1.3a8.5 8.5 0 0 1 .3.6l1.9 4.6 2-5.2a1 1 0 0 1 1-.6.5.5 0 0 1 .5.6L13 14v2.8a.7.7 0 0 1-1.4 0z" fill-rule="nonzero"/></svg>',help:'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M12 5.5a6.5 6.5 0 0 0-6 9 6.3 6.3 0 0 0 1.4 2l1 1a6.3 6.3 0 0 0 3.6 1 6.5 6.5 0 0 0 6-9 6.3 6.3 0 0 0-1.4-2l-1-1a6.3 6.3 0 0 0-3.6-1zM12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4z"/><path d="M9.6 9.7a.7.7 0 0 1-.7-.8c0-1.1 1.5-1.8 3.2-1.8 1.8 0 3.2.8 3.2 2.4 0 1.4-.4 2.1-1.5 2.8-.2 0-.3.1-.3.2a2 2 0 0 0-.8.8.8.8 0 0 1-1.4-.6c.3-.7.8-1 1.3-1.5l.4-.2c.7-.4.8-.6.8-1.5 0-.5-.6-.9-1.7-.9-.5 0-1 .1-1.4.3-.2 0-.3.1-.3.2v-.2c0 .4-.4.8-.8.8z" fill-rule="nonzero"/><circle cx="12" cy="16" r="1"/></g></svg>',"highlight-bg-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-highlight-bg-color__color" d="M3 18h18v3H3z"/><path fill-rule="nonzero" d="M7.7 16.7H3l3.3-3.3-.7-.8L10.2 8l4 4.1-4 4.2c-.2.2-.6.2-.8 0l-.6-.7-1.1 1.1zm5-7.5L11 7.4l3-2.9a2 2 0 0 1 2.6 0L18 6c.7.7.7 2 0 2.7l-2.9 2.9-1.8-1.8-.5-.6"/></g></svg>',home:'<svg width="24" height="24"><path fill-rule="nonzero" d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/></svg>',"horizontal-rule":'<svg width="24" height="24"><path d="M4 11h16v2H4z" fill-rule="evenodd"/></svg>',"image-options":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2z" fill-rule="nonzero"/></svg>',image:'<svg width="24" height="24"><path d="M5 15.7l3.3-3.2c.3-.3.7-.3 1 0L12 15l4.1-4c.3-.4.8-.4 1 0l2 1.9V5H5v10.7zM5 18V19h3l2.8-2.9-2-2L5 17.9zm14-3l-2.5-2.4-6.4 6.5H19v-4zM4 3h16c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H4a1 1 0 0 1-1-1V4c0-.6.4-1 1-1zm6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4z" fill-rule="nonzero"/></svg>',indent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm-2.6-3.8L6.2 12l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',info:'<svg width="24" height="24"><path d="M12 4a7.8 7.8 0 0 1 5.7 2.3A8 8 0 1 1 12 4zm-1 3v2h2V7h-2zm3 10v-1h-1v-5h-3v1h1v4h-1v1h4z" fill-rule="evenodd"/></svg>',"insert-character":'<svg width="24" height="24"><path d="M15 18h4l1-2v4h-6v-3.3l1.4-1a6 6 0 0 0 1.8-2.9 6.3 6.3 0 0 0-.1-4.1 5.8 5.8 0 0 0-3-3.2c-.6-.3-1.3-.5-2.1-.5a5.1 5.1 0 0 0-3.9 1.8 6.3 6.3 0 0 0-1.3 6 6.2 6.2 0 0 0 1.8 3l1.4.9V20H4v-4l1 2h4v-.5l-2-1L5.4 15A6.5 6.5 0 0 1 4 11c0-1 .2-1.9.6-2.7A7 7 0 0 1 6.3 6C7.1 5.4 8 5 9 4.5c1-.3 2-.5 3.1-.5a8.8 8.8 0 0 1 5.7 2 7 7 0 0 1 1.7 2.3 6 6 0 0 1 .2 4.8c-.2.7-.6 1.3-1 1.9a7.6 7.6 0 0 1-3.6 2.5v.5z" fill-rule="evenodd"/></svg>',"insert-time":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14zm0 2a9 9 0 1 1 0-18 9 9 0 0 1 0 18z"/><path d="M16 12h-3V7c0-.6-.4-1-1-1a1 1 0 0 0-1 1v7h5c.6 0 1-.4 1-1s-.4-1-1-1z"/></g></svg>',invert:'<svg width="24" height="24"><path d="M18 19.3L16.5 18a5.8 5.8 0 0 1-3.1 1.9 6.1 6.1 0 0 1-5.5-1.6A5.8 5.8 0 0 1 6 14v-.3l.1-1.2A13.9 13.9 0 0 1 7.7 9l-3-3 .7-.8 2.8 2.9 9 8.9 1.5 1.6-.7.6zm0-5.5v.3l-.1 1.1-.4 1-1.2-1.2a4.3 4.3 0 0 0 .2-1v-.2c0-.4 0-.8-.2-1.3l-.5-1.4a14.8 14.8 0 0 0-3-4.2L12 6a26.1 26.1 0 0 0-2.2 2.5l-1-1a20.9 20.9 0 0 1 2.9-3.3L12 4l1 .8a22.2 22.2 0 0 1 4 5.4c.6 1.2 1 2.4 1 3.6z" fill-rule="evenodd"/></svg>',italic:'<svg width="24" height="24"><path d="M16.7 4.7l-.1.9h-.3c-.6 0-1 0-1.4.3-.3.3-.4.6-.5 1.1l-2.1 9.8v.6c0 .5.4.8 1.4.8h.2l-.2.8H8l.2-.8h.2c1.1 0 1.8-.5 2-1.5l2-9.8.1-.5c0-.6-.4-.8-1.4-.8h-.3l.2-.9h5.8z" fill-rule="evenodd"/></svg>',line:'<svg width="24" height="24"><path d="M15 9l-8 8H4v-3l8-8 3 3zm1-1l-3-3 1-1h1c-.2 0 0 0 0 0l2 2s0 .2 0 0v1l-1 1zM4 18h16v2H4v-2z" fill-rule="evenodd"/></svg>',link:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2.1 2a2 2 0 1 0 2.7 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2-2a2 2 0 1 0-2.6-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2z" fill-rule="nonzero"/></svg>',"list-bull-circle":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M11 16a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 26a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM11 36a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm0 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6z" fill-rule="nonzero"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-default":'<svg width="48" height="48"><g fill-rule="evenodd"><circle cx="11" cy="14" r="3"/><circle cx="11" cy="24" r="3"/><circle cx="11" cy="34" r="3"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-bull-square":'<svg width="48" height="48"><g fill-rule="evenodd"><path d="M8 11h6v6H8zM8 21h6v6H8zM8 31h6v6H8z"/><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/></g></svg>',"list-num-default-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 17v-4.8l-1.6 1v-1.1l1.6-1h1.2V17zM33.3 17.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm1.7 5.7c0-1.2 1-2 2.2-2 1.3 0 2.1.8 2.1 1.8 0 .7-.3 1.2-1.3 2.2l-1.2 1v.2h2.6v1h-4.3v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H35zm-1.7 4.3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm3.2 7.3v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H35c0-1.1 1-1.8 2.2-1.8 1.2 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.7.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .6 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm-3.3 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-default":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10 17v-4.8l-1.5 1v-1.1l1.6-1h1.2V17h-1.2zm3.6.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-5 5.7c0-1.2.8-2 2.1-2s2.1.8 2.1 1.8c0 .7-.3 1.2-1.4 2.2l-1.1 1v.2h2.6v1H8.6v-.9l2-1.9c.8-.8 1-1.1 1-1.5 0-.5-.4-.8-1-.8-.5 0-.9.3-.9.9H8.5zm6.3 4.3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM10 34.4v-1h.7c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7s-1 .3-1 .8H8.6c0-1.1 1-1.8 2.2-1.8 1.3 0 2.1.6 2.1 1.6 0 .7-.4 1.2-1 1.3v.1c.8.1 1.3.7 1.3 1.4 0 1-1 1.9-2.4 1.9-1.3 0-2.2-.8-2.3-2h1.2c0 .6.5 1 1.1 1 .7 0 1-.4 1-1 0-.5-.3-.8-1-.8h-.7zm4.7 2.7c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7z"/></g></svg>',"list-num-lower-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M36.5 16c-.9 0-1.5-.5-1.5-1.3s.6-1.3 1.8-1.4h1v-.4c0-.4-.2-.6-.7-.6-.4 0-.7.1-.8.4h-1.1c0-.8.8-1.4 2-1.4S39 12 39 13V16h-1.2v-.6c-.3.4-.8.7-1.4.7zm.4-.8c.6 0 1-.4 1-.9V14h-1c-.5.1-.7.3-.7.6 0 .4.3.6.7.6zM33.1 16.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zM37.7 26c-.7 0-1.2-.2-1.5-.7v.7H35v-6.3h1.2v2.5c.3-.5.8-.9 1.5-.9 1.1 0 1.8 1 1.8 2.4 0 1.5-.7 2.4-1.8 2.4zm-.5-3.6c-.6 0-1 .5-1 1.3s.4 1.4 1 1.4c.7 0 1-.6 1-1.4 0-.8-.3-1.3-1-1.3zM33.2 26.1c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm6 7h-1c-.1-.5-.4-.8-1-.8s-1 .5-1 1.4c0 1 .4 1.4 1 1.4.5 0 .9-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm-6.1 3c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.3 15.2c.5 0 1-.4 1-.9V14h-1c-.5.1-.8.3-.8.6 0 .4.3.6.8.6zm-.4.9c-1 0-1.5-.6-1.5-1.4 0-.8.6-1.3 1.7-1.4h1.1v-.4c0-.4-.2-.6-.7-.6-.5 0-.8.1-.9.4h-1c0-.8.8-1.4 2-1.4 1.1 0 1.8.6 1.8 1.6V16h-1.1v-.6h-.1c-.2.4-.7.7-1.3.7zm4.6 0c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-3.2 10c-.6 0-1.2-.3-1.4-.8v.7H8.5v-6.3H10v2.5c.3-.5.8-.9 1.4-.9 1.2 0 1.9 1 1.9 2.4 0 1.5-.7 2.4-1.9 2.4zm-.4-3.7c-.7 0-1 .5-1 1.3s.3 1.4 1 1.4c.6 0 1-.6 1-1.4 0-.8-.4-1.3-1-1.3zm4 3.7c-.5 0-.7-.3-.7-.7 0-.4.2-.7.7-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-2.2 7h-1.2c0-.5-.4-.8-.9-.8-.6 0-1 .5-1 1.4 0 1 .4 1.4 1 1.4.5 0 .8-.2 1-.7h1c0 1-.8 1.7-2 1.7-1.4 0-2.2-.9-2.2-2.4s.8-2.4 2.2-2.4c1.2 0 2 .7 2 1.7zm1.8 3c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M37.4 16c-1.2 0-2-.8-2-2.3 0-1.5.8-2.4 2-2.4.6 0 1 .4 1.3 1v-.9H40v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1-.7h-.2c-.2.4-.7.8-1.3.8zm.3-1c.6 0 1-.5 1-1.3s-.4-1.3-1-1.3-1 .5-1 1.3.4 1.4 1 1.4zM33.3 16.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM36 21.9c0-1.5.8-2.3 2.1-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.9 1.3.9.3 1.3.8 1.3 1.7 0 1.2-.7 1.9-1.8 1.9-.6 0-1.1-.3-1.4-.8v2.2H36V22zm1.8 1.2v-1h.3c.5 0 .9-.2.9-.7 0-.5-.3-.8-.9-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1 1.3s1-.4 1-1-.4-1-1.2-1h-.3zM33.3 26.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zM37.1 34.6L34.8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.2.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zM33.3 36.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-greek":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M10.5 15c.7 0 1-.5 1-1.3s-.3-1.3-1-1.3c-.5 0-.9.5-.9 1.3s.4 1.4 1 1.4zm-.3 1c-1.1 0-1.8-.8-1.8-2.3 0-1.5.7-2.4 1.8-2.4.7 0 1.1.4 1.3 1h.1v-.9h1.2v3.2c0 .4.1.5.4.5h.2v.9h-.6c-.6 0-1-.2-1.1-.7h-.1c-.2.4-.7.8-1.4.8zm5 .1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.7-.7.5 0 .8.3.8.7 0 .4-.3.7-.8.7zm-4.9 7v-1h.3c.6 0 1-.2 1-.7 0-.5-.4-.8-1-.8-.5 0-.8.3-.8 1v2.2c0 .8.4 1.3 1.1 1.3.6 0 1-.4 1-1s-.5-1-1.3-1h-.3zM8.6 22c0-1.5.7-2.3 2-2.3 1.2 0 2 .6 2 1.6 0 .6-.3 1-.8 1.3.8.3 1.3.8 1.3 1.7 0 1.2-.8 1.9-1.9 1.9-.6 0-1.1-.3-1.3-.8v2.2H8.5V22zm6.2 4.2c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm-4.5 8.5L8 30h1.4l1.7 3.5 1.7-3.5h1.1l-2.2 4.6v.1c.5.8.7 1.4.7 1.8 0 .4-.1.8-.4 1-.2.2-.6.3-1 .3-.9 0-1.3-.4-1.3-1.2 0-.5.2-1 .5-1.7l.1-.2zm.7 1a2 2 0 0 0-.4.9c0 .3.1.4.4.4.3 0 .4-.1.4-.4 0-.2-.1-.6-.4-1zm4.5.5c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-lower-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M32.9 16v-1.2h-1.3V16H33zm0 10v-1.2h-1.3V26H33zm0 10v-1.2h-1.3V36H33z"/><path fill-rule="nonzero" d="M36 21h-1.5v5H36zM36 31h-1.5v5H36zM39 21h-1.5v5H39zM39 31h-1.5v5H39zM42 31h-1.5v5H42zM36 11h-1.5v5H36zM36 19h-1.5v1H36zM36 29h-1.5v1H36zM39 19h-1.5v1H39zM39 29h-1.5v1H39zM42 29h-1.5v1H42zM36 9h-1.5v1H36z"/></g></svg>',"list-num-lower-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 16v-1.2h1.3V16H15zm0 10v-1.2h1.3V26H15zm0 10v-1.2h1.3V36H15z"/><path fill-rule="nonzero" d="M12 21h1.5v5H12zM12 31h1.5v5H12zM9 21h1.5v5H9zM9 31h1.5v5H9zM6 31h1.5v5H6zM12 11h1.5v5H12zM12 19h1.5v1H12zM12 29h1.5v1H12zM9 19h1.5v1H9zM9 29h1.5v1H9zM6 29h1.5v1H6zM12 9h1.5v1H12z"/></g></svg>',"list-num-upper-alpha-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M39.3 17l-.5-1.4h-2l-.5 1.4H35l2-6h1.6l2 6h-1.3zm-1.6-4.7l-.7 2.3h1.6l-.8-2.3zM33.4 17c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zm4.7 9.9h-2.7v-6H38c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zm-1.4-5v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4h1.1c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9h-1.1V26zM33 27.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm4.9 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm-4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-alpha":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M12.6 17l-.5-1.4h-2L9.5 17H8.3l2-6H12l2 6h-1.3zM11 12.3l-.7 2.3h1.6l-.8-2.3zm4.7 4.8c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7.5 0 .7.3.7.7 0 .4-.2.7-.7.7zM11.4 27H8.7v-6h2.6c1.2 0 1.9.6 1.9 1.5 0 .6-.5 1.2-1 1.3.7.1 1.3.7 1.3 1.5 0 1-.8 1.7-2 1.7zM10 22v1.5h1c.6 0 1-.3 1-.8 0-.4-.4-.7-1-.7h-1zm0 4H11c.7 0 1.1-.3 1.1-.8 0-.6-.4-.9-1.1-.9H10V26zm5.4 1.1c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7zm-4.1 10c-1.8 0-2.8-1.1-2.8-3.1s1-3.1 2.8-3.1c1.4 0 2.5.9 2.6 2.2h-1.3c0-.7-.6-1.1-1.3-1.1-1 0-1.6.7-1.6 2s.6 2 1.6 2c.7 0 1.2-.4 1.4-1h1.2c-.1 1.3-1.2 2.2-2.6 2.2zm4.5 0c-.5 0-.8-.3-.8-.7 0-.4.3-.7.8-.7.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></g></svg>',"list-num-upper-roman-rtl":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M8 12h22v4H8zM8 22h22v4H8zM8 32h22v4H8z"/><path d="M31.6 17v-1.2H33V17h-1.3zm0 10v-1.2H33V27h-1.3zm0 10v-1.2H33V37h-1.3z"/><path fill-rule="nonzero" d="M34.5 20H36v7h-1.5zM34.5 30H36v7h-1.5zM37.5 20H39v7h-1.5zM37.5 30H39v7h-1.5zM40.5 30H42v7h-1.5zM34.5 10H36v7h-1.5z"/></g></svg>',"list-num-upper-roman":'<svg width="48" height="48"><g fill-rule="evenodd"><path opacity=".2" d="M18 12h22v4H18zM18 22h22v4H18zM18 32h22v4H18z"/><path d="M15.1 17v-1.2h1.3V17H15zm0 10v-1.2h1.3V27H15zm0 10v-1.2h1.3V37H15z"/><path fill-rule="nonzero" d="M12 20h1.5v7H12zM12 30h1.5v7H12zM9 20h1.5v7H9zM9 30h1.5v7H9zM6 30h1.5v7H6zM12 10h1.5v7H12z"/></g></svg>',lock:'<svg width="24" height="24"><path d="M16.3 11c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H8V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h.3zM10 8v3h4V8a1 1 0 0 0-.3-.7A1 1 0 0 0 13 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7z" fill-rule="evenodd"/></svg>',ltr:'<svg width="24" height="24"><path d="M11 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 7.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L11 5zM4.4 16.2L6.2 15l-1.8-1.2a1 1 0 0 1 1.2-1.6l3 2a1 1 0 0 1 0 1.6l-3 2a1 1 0 1 1-1.2-1.6z" fill-rule="evenodd"/></svg>',"more-drawer":'<svg width="24" height="24"><path d="M6 10a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm12 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2zm-6 0a2 2 0 0 0-2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2 2 2 0 0 0-2-2z" fill-rule="nonzero"/></svg>',"new-document":'<svg width="24" height="24"><path d="M14.4 3H7a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h10a2 2 0 0 0 2-2V7.6L14.4 3zM17 19H7V5h6v4h4v10z" fill-rule="nonzero"/></svg>',"new-tab":'<svg width="24" height="24"><path d="M15 13l2-2v8H5V7h8l-2 2H7v8h8v-4zm4-8v5.5l-2-2-5.6 5.5H10v-1.4L15.5 7l-2-2H19z" fill-rule="evenodd"/></svg>',"non-breaking":'<svg width="24" height="24"><path d="M11 11H8a1 1 0 1 1 0-2h3V6c0-.6.4-1 1-1s1 .4 1 1v3h3c.6 0 1 .4 1 1s-.4 1-1 1h-3v3c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-3zm10 4v5H3v-5c0-.6.4-1 1-1s1 .4 1 1v3h14v-3c0-.6.4-1 1-1s1 .4 1 1z" fill-rule="evenodd"/></svg>',notice:'<svg width="24" height="24"><path d="M17.8 9.8L15.4 4 20 8.5v7L15.5 20h-7L4 15.5v-7L8.5 4h7l2.3 5.8zm0 0l2.2 5.7-2.3-5.8zM13 17v-2h-2v2h2zm0-4V7h-2v6h2z" fill-rule="evenodd"/></svg>',"ordered-list-rtl":'<svg width="24" height="24"><path d="M6 17h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm0-6h8a1 1 0 0 1 0 2H6a1 1 0 1 1 0-2zm13-1v3.5a.5.5 0 1 1-1 0V5h-.5a.5.5 0 1 1 0-1H19zm-1 8.8l.2.2h1.3a.5.5 0 1 1 0 1h-1.6a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2h-1.3a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zm2 4.2v2c0 .6-.4 1-1 1h-1.5a.5.5 0 0 1 0-1h1.2a.3.3 0 1 0 0-.6h-1.3a.4.4 0 1 1 0-.8h1.3a.3.3 0 0 0 0-.6h-1.2a.5.5 0 1 1 0-1H19c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',"ordered-list":'<svg width="24" height="24"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 1 1 0-2zM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.5V5h-.5a.5.5 0 0 1 0-1H6zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0-.2-.2H4.5a.5.5 0 0 1-.5-.5c0-.3.2-.5.5-.5h1.6c.5 0 .9.4.9 1v.1c0 .4-.3.8-.6 1l-1.2.4-.2.3zM7 17v2c0 .6-.4 1-1 1H4.5a.5.5 0 0 1 0-1h1.2c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.4a.4.4 0 1 1 0-.8h1.3c.2 0 .3-.1.3-.3 0-.2-.1-.3-.3-.3H4.5a.5.5 0 1 1 0-1H6c.6 0 1 .4 1 1z" fill-rule="evenodd"/></svg>',orientation:'<svg width="24" height="24"><path d="M7.3 6.4L1 13l6.4 6.5 6.5-6.5-6.5-6.5zM3.7 13l3.6-3.7L11 13l-3.7 3.7-3.6-3.7zM12 6l2.8 2.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0L9.2 5.7a.8.8 0 0 1 0-1.2L13.6.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L12 4h1a9 9 0 1 1-4.3 16.9l1.5-1.5A7 7 0 1 0 13 6h-1z" fill-rule="nonzero"/></svg>',outdent:'<svg width="24" height="24"><path d="M7 5h12c.6 0 1 .4 1 1s-.4 1-1 1H7a1 1 0 1 1 0-2zm5 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm0 4h7c.6 0 1 .4 1 1s-.4 1-1 1h-7a1 1 0 0 1 0-2zm-5 4h12a1 1 0 0 1 0 2H7a1 1 0 0 1 0-2zm1.6-3.8a1 1 0 0 1-1.2 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 0 1 1.2 1.6L6.8 12l1.8 1.2z" fill-rule="evenodd"/></svg>',"page-break":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M5 11c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h1c.6 0 1 .4 1 1s-.4 1-1 1h-1a1 1 0 0 1 0-2zm4 0c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zM7 3v5h10V3c0-.6.4-1 1-1s1 .4 1 1v7H5V3c0-.6.4-1 1-1s1 .4 1 1zM6 22a1 1 0 0 1-1-1v-7h14v7c0 .6-.4 1-1 1a1 1 0 0 1-1-1v-5H7v5c0 .6-.4 1-1 1z"/></g></svg>',paragraph:'<svg width="24" height="24"><path d="M10 5h7a1 1 0 0 1 0 2h-1v11a1 1 0 0 1-2 0V7h-2v11a1 1 0 0 1-2 0v-6c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 6.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L10 5z" fill-rule="evenodd"/></svg>',"paste-text":'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1zm0 9h6v2h-.5l-.5-1h-1v4h.8v1h-3.6v-1h.8v-4h-1l-.5 1H12v-2z" fill-rule="nonzero"/></svg>',paste:'<svg width="24" height="24"><path d="M18 9V5h-2v1c0 .6-.4 1-1 1H9a1 1 0 0 1-1-1V5H6v13h3V9h9zM9 20H6a2 2 0 0 1-2-2V5c0-1.1.9-2 2-2h3.2A3 3 0 0 1 12 1a3 3 0 0 1 2.8 2H18a2 2 0 0 1 2 2v4h1v12H9v-1zm1.5-9.5v9h9v-9h-9zM12 3a1 1 0 0 0-1 1c0 .5.4 1 1 1s1-.5 1-1-.4-1-1-1z" fill-rule="nonzero"/></svg>',"permanent-pen":'<svg width="24" height="24"><path d="M10.5 17.5L8 20H3v-3l3.5-3.5a2 2 0 0 1 0-3L14 3l1 1-7.3 7.3a1 1 0 0 0 0 1.4l3.6 3.6c.4.4 1 .4 1.4 0L20 9l1 1-7.6 7.6a2 2 0 0 1-2.8 0l-.1-.1z" fill-rule="nonzero"/></svg>',plus:'<svg width="24" height="24"><g fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" stroke="#000" stroke-width="2"><path d="M12 5v14M5 12h14"/></g></svg>',preferences:'<svg width="24" height="24"><path d="M20.1 13.5l-1.9.2a5.8 5.8 0 0 1-.6 1.5l1.2 1.5c.4.4.3 1 0 1.4l-.7.7a1 1 0 0 1-1.4 0l-1.5-1.2a6.2 6.2 0 0 1-1.5.6l-.2 1.9c0 .5-.5.9-1 .9h-1a1 1 0 0 1-1-.9l-.2-1.9a5.8 5.8 0 0 1-1.5-.6l-1.5 1.2a1 1 0 0 1-1.4 0l-.7-.7a1 1 0 0 1 0-1.4l1.2-1.5a6.2 6.2 0 0 1-.6-1.5l-1.9-.2a1 1 0 0 1-.9-1v-1c0-.5.4-1 .9-1l1.9-.2a5.8 5.8 0 0 1 .6-1.5L5.2 7.3a1 1 0 0 1 0-1.4l.7-.7a1 1 0 0 1 1.4 0l1.5 1.2a6.2 6.2 0 0 1 1.5-.6l.2-1.9c0-.5.5-.9 1-.9h1c.5 0 1 .4 1 .9l.2 1.9a5.8 5.8 0 0 1 1.5.6l1.5-1.2a1 1 0 0 1 1.4 0l.7.7c.3.4.4 1 0 1.4l-1.2 1.5a6.2 6.2 0 0 1 .6 1.5l1.9.2c.5 0 .9.5.9 1v1c0 .5-.4 1-.9 1zM12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" fill-rule="evenodd"/></svg>',preview:'<svg width="24" height="24"><path d="M3.5 12.5c.5.8 1.1 1.6 1.8 2.3 2 2 4.2 3.2 6.7 3.2s4.7-1.2 6.7-3.2a16.2 16.2 0 0 0 2.1-2.8 15.7 15.7 0 0 0-2.1-2.8c-2-2-4.2-3.2-6.7-3.2a9.3 9.3 0 0 0-6.7 3.2A16.2 16.2 0 0 0 3.2 12c0 .2.2.3.3.5zm-2.4-1l.7-1.2L4 7.8C6.2 5.4 8.9 4 12 4c3 0 5.8 1.4 8.1 3.8a18.2 18.2 0 0 1 2.8 3.7v1l-.7 1.2-2.1 2.5c-2.3 2.4-5 3.8-8.1 3.8-3 0-5.8-1.4-8.1-3.8a18.2 18.2 0 0 1-2.8-3.7 1 1 0 0 1 0-1zm12-3.3a2 2 0 1 0 2.7 2.6 4 4 0 1 1-2.6-2.6z" fill-rule="nonzero"/></svg>',print:'<svg width="24" height="24"><path d="M18 8H6a3 3 0 0 0-3 3v6h2v3h14v-3h2v-6a3 3 0 0 0-3-3zm-1 10H7v-4h10v4zm.5-5c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zm.5-8H6v2h12V5z" fill-rule="nonzero"/></svg>',quote:'<svg width="24" height="24"><path d="M7.5 17h.9c.4 0 .7-.2.9-.6L11 13V8c0-.6-.4-1-1-1H6a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3zm8 0h.9c.4 0 .7-.2.9-.6L19 13V8c0-.6-.4-1-1-1h-4a1 1 0 0 0-1 1v4c0 .6.4 1 1 1h2l-1.3 2.7a1 1 0 0 0 .8 1.3z" fill-rule="nonzero"/></svg>',redo:'<svg width="24" height="24"><path d="M17.6 10H12c-2.8 0-4.4 1.4-4.9 3.5-.4 2 .3 4 1.4 4.6a1 1 0 1 1-1 1.8c-2-1.2-2.9-4.1-2.3-6.8.6-3 3-5.1 6.8-5.1h5.6l-3.3-3.3a1 1 0 1 1 1.4-1.4l5 5a1 1 0 0 1 0 1.4l-5 5a1 1 0 0 1-1.4-1.4l3.3-3.3z" fill-rule="nonzero"/></svg>',reload:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5 22.1l-1.2-4.7v-.2a1 1 0 0 1 1-1l5 .4a1 1 0 1 1-.2 2l-2.2-.2a7.8 7.8 0 0 0 8.4.2 7.5 7.5 0 0 0 3.5-6.4 1 1 0 1 1 2 0 9.5 9.5 0 0 1-4.5 8 9.9 9.9 0 0 1-10.2 0l.4 1.4a1 1 0 1 1-2 .5zM13.6 7.4c0-.5.5-1 1-.9l2.8.2a8 8 0 0 0-9.5-1 7.5 7.5 0 0 0-3.6 7 1 1 0 0 1-2 0 9.5 9.5 0 0 1 4.5-8.6 10 10 0 0 1 10.9.3l-.3-1a1 1 0 0 1 2-.5l1.1 4.8a1 1 0 0 1-1 1.2l-5-.4a1 1 0 0 1-.9-1z"/></g></svg>',"remove-formatting":'<svg width="24" height="24"><path d="M13.2 6a1 1 0 0 1 0 .2l-2.6 10a1 1 0 0 1-1 .8h-.2a.8.8 0 0 1-.8-1l2.6-10H8a1 1 0 1 1 0-2h9a1 1 0 0 1 0 2h-3.8zM5 18h7a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2zm13 1.5L16.5 18 15 19.5a.7.7 0 0 1-1-1l1.5-1.5-1.5-1.5a.7.7 0 0 1 1-1l1.5 1.5 1.5-1.5a.7.7 0 0 1 1 1L17.5 17l1.5 1.5a.7.7 0 0 1-1 1z" fill-rule="evenodd"/></svg>',remove:'<svg width="24" height="24"><path d="M16 7h3a1 1 0 0 1 0 2h-1v9a3 3 0 0 1-3 3H9a3 3 0 0 1-3-3V9H5a1 1 0 1 1 0-2h3V6a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v1zm-2 0V6c0-.6-.4-1-1-1h-2a1 1 0 0 0-1 1v1h4zm2 2H8v9c0 .6.4 1 1 1h6c.6 0 1-.4 1-1V9zm-7 3a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4zm4 0a1 1 0 0 1 2 0v4a1 1 0 0 1-2 0v-4z" fill-rule="nonzero"/></svg>',"resize-handle":'<svg width="10" height="10"><g fill-rule="nonzero"><path d="M8.1 1.1A.5.5 0 1 1 9 2l-7 7A.5.5 0 1 1 1 8l7-7zM8.1 5.1A.5.5 0 1 1 9 6l-3 3A.5.5 0 1 1 5 8l3-3z"/></g></svg>',resize:'<svg width="24" height="24"><path d="M4 5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h6c.3 0 .5.1.7.3.2.2.3.4.3.7 0 .3-.1.5-.3.7a1 1 0 0 1-.7.3H7.4L18 16.6V13c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3.3 0 .5.1.7.3.2.2.3.4.3.7v6c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-6a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3.6L6 7.4V11c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3 1 1 0 0 1-.7-.3A1 1 0 0 1 4 11V5z" fill-rule="evenodd"/></svg>',"restore-draft":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M17 13c0 .6-.4 1-1 1h-4V8c0-.6.4-1 1-1s1 .4 1 1v4h2c.6 0 1 .4 1 1z"/><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></g></svg>',"rotate-left":'<svg width="24" height="24"><path d="M4.7 10H9a1 1 0 0 1 0 2H3a1 1 0 0 1-1-1V5a1 1 0 1 1 2 0v3l2.5-2.4a9.2 9.2 0 0 1 10.8-1.5A9 9 0 0 1 13.4 21c-2.4.1-4.7-.7-6.5-2.2a1 1 0 1 1 1.3-1.5 7.2 7.2 0 0 0 11.6-3.7 7 7 0 0 0-3.5-7.7A7.2 7.2 0 0 0 8 7L4.7 10z" fill-rule="nonzero"/></svg>',"rotate-right":'<svg width="24" height="24"><path d="M20 8V5a1 1 0 0 1 2 0v6c0 .6-.4 1-1 1h-6a1 1 0 0 1 0-2h4.3L16 7A7.2 7.2 0 0 0 7.7 6a7 7 0 0 0 3 13.1c1.9.1 3.7-.5 5-1.7a1 1 0 0 1 1.4 1.5A9.2 9.2 0 0 1 2.2 14c-.9-3.9 1-8 4.5-9.9 3.5-1.9 8-1.3 10.8 1.5L20 8z" fill-rule="nonzero"/></svg>',rtl:'<svg width="24" height="24"><path d="M8 5h8v2h-2v12h-2V7h-2v12H8v-7c-.5 0-1 0-1.4-.3A3.4 3.4 0 0 1 4.8 10a3.3 3.3 0 0 1 0-2.8 3.4 3.4 0 0 1 1.8-1.8L8 5zm12 11.2a1 1 0 1 1-1 1.6l-3-2a1 1 0 0 1 0-1.6l3-2a1 1 0 1 1 1 1.6L18.4 15l1.8 1.2z" fill-rule="evenodd"/></svg>',save:'<svg width="24" height="24"><path d="M5 16h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2c0-1.1.9-2 2-2zm0 2v2h14v-2H5zm10 0h2v2h-2v-2zm-4-6.4L8.7 9.3a1 1 0 1 0-1.4 1.4l4 4c.4.4 1 .4 1.4 0l4-4a1 1 0 1 0-1.4-1.4L13 11.6V4a1 1 0 0 0-2 0v7.6z" fill-rule="nonzero"/></svg>',search:'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12z" fill-rule="nonzero"/></svg>',"select-all":'<svg width="24" height="24"><path d="M3 5h2V3a2 2 0 0 0-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2a2 2 0 0 0-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8a2 2 0 0 0 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2zM7 17h10V7H7v10zm2-8h6v6H9V9z" fill-rule="nonzero"/></svg>',selected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm3.6 10.9L7 12.3a.7.7 0 0 0-1 1L9.6 17 18 8.6a.7.7 0 0 0 0-1 .7.7 0 0 0-1 0l-7.4 7.3z"/></svg>',settings:'<svg width="24" height="24"><path d="M11 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V8H5a1 1 0 1 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.5V6zM8 8h2V6H8v2zm9 2.8v.2h2c.6 0 1 .4 1 1s-.4 1-1 1h-2v.3c0 .2 0 .3-.2.5l-.6.2h-2.4c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V13H5a1 1 0 0 1 0-2h8v-.3c0-.2 0-.3.2-.5l.6-.2h2.4c.3 0 .4 0 .6.2l.2.6zM14 13h2v-2h-2v2zm-3 2.8v.2h8c.6 0 1 .4 1 1s-.4 1-1 1h-8v.3c0 .2 0 .3-.2.5l-.6.2H7.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6V18H5a1 1 0 0 1 0-2h2v-.3c0-.2 0-.3.2-.5l.5-.2h2.5c.3 0 .4 0 .6.2l.2.6zM8 18h2v-2H8v2z" fill-rule="evenodd"/></svg>',sharpen:'<svg width="24" height="24"><path d="M16 6l4 4-8 9-8-9 4-4h8zm-4 10.2l5.5-6.2-.1-.1H12v-.3h5.1l-.2-.2H12V9h4.6l-.2-.2H12v-.3h4.1l-.2-.2H12V8h3.6l-.2-.2H8.7L6.5 10l.1.1H12v.3H6.9l.2.2H12v.3H7.3l.2.2H12v.3H7.7l.3.2h4v.3H8.2l.2.2H12v.3H8.6l.3.2H12v.3H9l.3.2H12v.3H9.5l.2.2H12v.3h-2l.2.2H12v.3h-1.6l.2.2H12v.3h-1.1l.2.2h.9v.3h-.7l.2.2h.5v.3h-.3l.3.2z" fill-rule="evenodd"/></svg>',sourcecode:'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M9.8 15.7c.3.3.3.8 0 1-.3.4-.9.4-1.2 0l-4.4-4.1a.8.8 0 0 1 0-1.2l4.4-4.2c.3-.3.9-.3 1.2 0 .3.3.3.8 0 1.1L6 12l3.8 3.7zM14.2 15.7c-.3.3-.3.8 0 1 .4.4.9.4 1.2 0l4.4-4.1c.3-.3.3-.9 0-1.2l-4.4-4.2a.8.8 0 0 0-1.2 0c-.3.3-.3.8 0 1.1L18 12l-3.8 3.7z"/></g></svg>',"spell-check":'<svg width="24" height="24"><path d="M6 8v3H5V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h2c.3 0 .5.1.7.3.2.2.3.4.3.7v6H8V8H6zm0-3v2h2V5H6zm13 0h-3v5h3v1h-3a1 1 0 0 1-.7-.3 1 1 0 0 1-.3-.7V5c0-.3.1-.5.3-.7.2-.2.4-.3.7-.3h3v1zm-5 1.5l-.1.7c-.1.2-.3.3-.6.3.3 0 .5.1.6.3l.1.7V10c0 .3-.1.5-.3.7a1 1 0 0 1-.7.3h-3V4h3c.3 0 .5.1.7.3.2.2.3.4.3.7v1.5zM13 10V8h-2v2h2zm0-3V5h-2v2h2zm3 5l1 1-6.5 7L7 15.5l1.3-1 2.2 2.2L16 12z" fill-rule="evenodd"/></svg>',
|
33
|
-
"strike-through":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M15.6 8.5c-.5-.7-1-1.1-1.3-1.3-.6-.4-1.3-.6-2-.6-2.7 0-2.8 1.7-2.8 2.1 0 1.6 1.8 2 3.2 2.3 4.4.9 4.6 2.8 4.6 3.9 0 1.4-.7 4.1-5 4.1A6.2 6.2 0 0 1 7 16.4l1.5-1.1c.4.6 1.6 2 3.7 2 1.6 0 2.5-.4 3-1.2.4-.8.3-2-.8-2.6-.7-.4-1.6-.7-2.9-1-1-.2-3.9-.8-3.9-3.6C7.6 6 10.3 5 12.4 5c2.9 0 4.2 1.6 4.7 2.4l-1.5 1.1z"/><path d="M5 11h14a1 1 0 0 1 0 2H5a1 1 0 0 1 0-2z" fill-rule="nonzero"/></g></svg>',subscript:'<svg width="24" height="24"><path d="M10.4 10l4.6 4.6-1.4 1.4L9 11.4 4.4 16 3 14.6 7.6 10 3 5.4 4.4 4 9 8.6 13.6 4 15 5.4 10.4 10zM21 19h-5v-1l1-.8 1.7-1.6c.3-.4.5-.8.5-1.2 0-.3 0-.6-.2-.7-.2-.2-.5-.3-.9-.3a2 2 0 0 0-.8.2l-.7.3-.4-1.1 1-.6 1.2-.2c.8 0 1.4.3 1.8.7.4.4.6.9.6 1.5s-.2 1.1-.5 1.6a8 8 0 0 1-1.3 1.3l-.6.6h2.6V19z" fill-rule="nonzero"/></svg>',superscript:'<svg width="24" height="24"><path d="M15 9.4L10.4 14l4.6 4.6-1.4 1.4L9 15.4 4.4 20 3 18.6 7.6 14 3 9.4 4.4 8 9 12.6 13.6 8 15 9.4zm5.9 1.6h-5v-1l1-.8 1.7-1.6c.3-.5.5-.9.5-1.3 0-.3 0-.5-.2-.7-.2-.2-.5-.3-.9-.3l-.8.2-.7.4-.4-1.2c.2-.2.5-.4 1-.5.3-.2.8-.2 1.2-.2.8 0 1.4.2 1.8.6.4.4.6 1 .6 1.6 0 .5-.2 1-.5 1.5l-1.3 1.4-.6.5h2.6V11z" fill-rule="nonzero"/></svg>',"table-cell-properties":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm10 10h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10 0v3h4v-3h-4zm0-1h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',"table-cell-select-all":'<svg width="24" height="24"><path d="M12.5 5.5v6h6v-6h-6zm-1 0h-6v6h6v-6zm1 13h6v-6h-6v6zm-1 0v-6h-6v6h6zm-7-14h15v15h-15v-15z" fill-rule="nonzero"/></svg>',"table-cell-select-inner":'<svg width="24" height="24"><g fill-rule="nonzero"><path d="M5.5 5.5v13h13v-13h-13zm-1-1h15v15h-15v-15z" opacity=".2"/><path d="M11.5 11.5v-7h1v7h7v1h-7v7h-1v-7h-7v-1h7z"/></g></svg>',"table-delete-column":'<svg width="24" height="24"><path d="M9 11.2l1 1v.2l-1 1v-2.2zm5 1l1-1v2.2l-1-1v-.2zM20 5v14H4V5h16zm-1 2h-4v.8l-.2-.2-.8.8V7h-4v1.4l-.8-.8-.2.2V7H5v11h4v-1.8l.5.5.5-.4V18h4v-1.8l.8.8.2-.3V18h4V7zm-3.9 3.4l-1.8 1.9 1.8 1.9c.4.3.4.9 0 1.2-.3.3-.8.3-1.2 0L12 13.5l-1.8 1.9a.8.8 0 0 1-1.2 0 .9.9 0 0 1 0-1.2l1.8-1.9-1.9-2a.9.9 0 0 1 1.2-1.2l2 2 1.8-1.8c.3-.4.9-.4 1.2 0a.8.8 0 0 1 0 1.1z" fill-rule="evenodd"/></svg>',"table-delete-row":'<svg width="24" height="24"><path d="M16.7 8.8l1.1 1.2-2.4 2.5L18 15l-1.2 1.2-2.5-2.5-2.4 2.5-1.3-1.2 2.5-2.5-2.5-2.5 1.2-1.3 2.6 2.6 2.4-2.5zM4 5h16v14H4V5zm15 5V7H5v3h4.8l1 1H5v3h5.8l-1 1H5v3h14v-3h-.4l-1-1H19v-3h-1.3l1-1h.3z" fill-rule="evenodd"/></svg>',"table-delete-table":'<svg width="24" height="26"><path d="M4 6h16v14H4V6zm1 2v11h14V8H5zm11.7 8.7l-1.5 1.5L12 15l-3.3 3.2-1.4-1.5 3.2-3.2-3.3-3.2 1.5-1.5L12 12l3.2-3.2 1.5 1.5-3.2 3.2 3.2 3.2z" fill-rule="evenodd"/></svg>',"table-insert-column-after":'<svg width="24" height="24"><path d="M14.3 9c.4 0 .7.3.7.6v2.2h2.1c.4 0 .7.3.7.7 0 .4-.3.7-.7.7H15v2.2c0 .3-.3.6-.7.6a.7.7 0 0 1-.6-.6v-2.2h-2.2a.7.7 0 0 1 0-1.4h2.2V9.6c0-.3.3-.6.6-.6zM4 5h16v14H4V5zm5 13v-3H5v3h4zm0-4v-3H5v3h4zm0-4V7H5v3h4zm10 8V7h-9v11h9z" fill-rule="evenodd"/></svg>',"table-insert-column-before":'<svg width="24" height="24"><path d="M9.7 16a.7.7 0 0 1-.7-.6v-2.2H6.9a.7.7 0 0 1 0-1.4H9V9.6c0-.3.3-.6.7-.6.3 0 .6.3.6.6v2.2h2.2c.4 0 .8.3.8.7 0 .4-.4.7-.8.7h-2.2v2.2c0 .3-.3.6-.6.6zM4 5h16v14H4V5zm10 13V7H5v11h9zm5 0v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V7h-4v3h4z" fill-rule="evenodd"/></svg>',"table-insert-row-above":'<svg width="24" height="24"><path d="M14.8 10.5c0 .3-.2.5-.5.5h-1.8v1.8c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.6V11H9.7a.5.5 0 0 1 0-1h1.8V8.3c0-.3.2-.6.5-.6s.5.3.5.6V10h1.8c.3 0 .5.2.5.5zM4 5h16v14H4V5zm5 13v-3H5v3h4zm5 0v-3h-4v3h4zm5 0v-3h-4v3h4zm0-4V7H5v7h14z" fill-rule="evenodd"/></svg>',"table-insert-row-after":'<svg width="24" height="24"><path d="M9.2 14.5c0-.3.2-.5.5-.5h1.8v-1.8c0-.3.2-.5.5-.5s.5.2.5.6V14h1.8c.3 0 .5.2.5.5s-.2.5-.5.5h-1.8v1.7c0 .3-.2.6-.5.6a.5.5 0 0 1-.5-.6V15H9.7a.5.5 0 0 1-.5-.5zM4 5h16v14H4V5zm6 2v3h4V7h-4zM5 7v3h4V7H5zm14 11v-7H5v7h14zm0-8V7h-4v3h4z" fill-rule="evenodd"/></svg>',"table-left-header":'<svg width="24" height="24"><path d="M4 5h16v13H4V5zm10 12v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V6h-4v3h4zm5 8v-3h-4v3h4zm0-4v-3h-4v3h4zm0-4V6h-4v3h4z" fill-rule="evenodd"/></svg>',"table-merge-cells":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 13h9v-7h-9v7zm4-11h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10-1h4V7h-4v3zM5 15v3h4v-3H5z" fill-rule="evenodd"/></svg>',"table-row-properties":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm10 10h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm6 3h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',"table-split-cells":'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 2v3h4V7h-4zM9 18v-3H5v3h4zm0-4v-3H5v3h4zm0-4V7H5v3h4zm10 8v-7h-9v7h9zm0-8V7h-4v3h4zm-3.5 4.5l1.5 1.6c.3.2.3.7 0 1-.2.2-.7.2-1 0l-1.5-1.6-1.6 1.5c-.2.3-.7.3-1 0a.7.7 0 0 1 0-1l1.6-1.5-1.5-1.6a.7.7 0 0 1 1-1l1.5 1.6 1.6-1.5c.2-.3.7-.3 1 0 .2.2.2.7 0 1l-1.6 1.5z" fill-rule="evenodd"/></svg>',"table-top-header":'<svg width="24" height="24"><path d="M4 5h16v13H4V5zm5 12v-3H5v3h4zm0-4v-3H5v3h4zm5 4v-3h-4v3h4zm0-4v-3h-4v3h4zm5 4v-3h-4v3h4zm0-4v-3h-4v3h4z" fill-rule="evenodd"/></svg>',table:'<svg width="24" height="24"><path d="M4 5h16v14H4V5zm6 9h4v-3h-4v3zm4 1h-4v3h4v-3zm0-8h-4v3h4V7zM9 7H5v3h4V7zm-4 4v3h4v-3H5zm10 0v3h4v-3h-4zm0-1h4V7h-4v3zM5 15v3h4v-3H5zm10 3h4v-3h-4v3z" fill-rule="evenodd"/></svg>',template:'<svg width="24" height="24"><path d="M19 19v-1H5v1h14zM9 16v-4a5 5 0 1 1 6 0v4h4a2 2 0 0 1 2 2v3H3v-3c0-1.1.9-2 2-2h4zm4 0v-5l.8-.6a3 3 0 1 0-3.6 0l.8.6v5h2z" fill-rule="nonzero"/></svg>',"temporary-placeholder":'<svg width="24" height="24"><g fill-rule="evenodd"><path d="M9 7.6V6h2.5V4.5a.5.5 0 1 1 1 0V6H15v1.6a8 8 0 1 1-6 0zm-2.6 5.3a.5.5 0 0 0 .3.6c.3 0 .6 0 .6-.3l.1-.2a5 5 0 0 1 3.3-2.8c.3-.1.4-.4.4-.6-.1-.3-.4-.5-.6-.4a6 6 0 0 0-4.1 3.7z"/><circle cx="14" cy="4" r="1"/><circle cx="12" cy="2" r="1"/><circle cx="10" cy="4" r="1"/></g></svg>',"text-color":'<svg width="24" height="24"><g fill-rule="evenodd"><path id="tox-icon-text-color__color" d="M3 18h18v3H3z"/><path d="M8.7 16h-.8a.5.5 0 0 1-.5-.6l2.7-9c.1-.3.3-.4.5-.4h2.8c.2 0 .4.1.5.4l2.7 9a.5.5 0 0 1-.5.6h-.8a.5.5 0 0 1-.4-.4l-.7-2.2c0-.3-.3-.4-.5-.4h-3.4c-.2 0-.4.1-.5.4l-.7 2.2c0 .3-.2.4-.4.4zm2.6-7.6l-.6 2a.5.5 0 0 0 .5.6h1.6a.5.5 0 0 0 .5-.6l-.6-2c0-.3-.3-.4-.5-.4h-.4c-.2 0-.4.1-.5.4z"/></g></svg>',toc:'<svg width="24" height="24"><path d="M5 5c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 1 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h11c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2zm0-4c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 1 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm-3 8c.6 0 1 .4 1 1s-.4 1-1 1a1 1 0 0 1 0-2zm3 0h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',translate:'<svg width="24" height="24"><path d="M12.7 14.3l-.3.7-.4.7-2.2-2.2-3.1 3c-.3.4-.8.4-1 0a.7.7 0 0 1 0-1l3.1-3A12.4 12.4 0 0 1 6.7 9H8a10.1 10.1 0 0 0 1.7 2.4c.5-.5 1-1.1 1.4-1.8l.9-2H4.7a.7.7 0 1 1 0-1.5h4.4v-.7c0-.4.3-.8.7-.8.4 0 .7.4.7.8v.7H15c.4 0 .8.3.8.7 0 .4-.4.8-.8.8h-1.4a12.3 12.3 0 0 1-1 2.4 13.5 13.5 0 0 1-1.7 2.3l1.9 1.8zm4.3-3l2.7 7.3a.5.5 0 0 1-.4.7 1 1 0 0 1-1-.7l-.6-1.5h-3.4l-.6 1.5a1 1 0 0 1-1 .7.5.5 0 0 1-.4-.7l2.7-7.4a1 1 0 1 1 2 0zm-2.2 4.4h2.4L16 12.5l-1.2 3.2z" fill-rule="evenodd"/></svg>',underline:'<svg width="24" height="24"><path d="M16 5c.6 0 1 .4 1 1v5.5a4 4 0 0 1-.4 1.8l-1 1.4a5.3 5.3 0 0 1-5.5 1 5 5 0 0 1-1.6-1c-.5-.4-.8-.9-1.1-1.4a4 4 0 0 1-.4-1.8V6c0-.6.4-1 1-1s1 .4 1 1v5.5c0 .3 0 .6.2 1l.6.7a3.3 3.3 0 0 0 2.2.8 3.4 3.4 0 0 0 2.2-.8c.3-.2.4-.5.6-.8l.2-.9V6c0-.6.4-1 1-1zM8 17h8c.6 0 1 .4 1 1s-.4 1-1 1H8a1 1 0 0 1 0-2z" fill-rule="evenodd"/></svg>',undo:'<svg width="24" height="24"><path d="M6.4 8H12c3.7 0 6.2 2 6.8 5.1.6 2.7-.4 5.6-2.3 6.8a1 1 0 0 1-1-1.8c1.1-.6 1.8-2.7 1.4-4.6-.5-2.1-2.1-3.5-4.9-3.5H6.4l3.3 3.3a1 1 0 1 1-1.4 1.4l-5-5a1 1 0 0 1 0-1.4l5-5a1 1 0 0 1 1.4 1.4L6.4 8z" fill-rule="nonzero"/></svg>',unlink:'<svg width="24" height="24"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2zm11.6-.6a1 1 0 0 1-1.4-1.4l2.1-2a2 2 0 1 0-2.7-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2zM7.6 6.3a.8.8 0 0 1-1 1.1L3.3 4.2a.7.7 0 1 1 1-1l3.2 3.1zM5.1 8.6a.8.8 0 0 1 0 1.5H3a.8.8 0 0 1 0-1.5H5zm5-3.5a.8.8 0 0 1-1.5 0V3a.8.8 0 0 1 1.5 0V5zm6 11.8a.8.8 0 0 1 1-1l3.2 3.2a.8.8 0 0 1-1 1L16 17zm-2.2 2a.8.8 0 0 1 1.5 0V21a.8.8 0 0 1-1.5 0V19zm5-3.5a.7.7 0 1 1 0-1.5H21a.8.8 0 0 1 0 1.5H19z" fill-rule="nonzero"/></svg>',unlock:'<svg width="24" height="24"><path d="M16 5c.8 0 1.5.3 2.1.9.6.6.9 1.3.9 2.1v3h-2V8a1 1 0 0 0-.3-.7A1 1 0 0 0 16 7h-2a1 1 0 0 0-.7.3 1 1 0 0 0-.3.7v3h.3c.2 0 .3 0 .5.2l.2.6v7.4c0 .3 0 .4-.2.6l-.6.2H4.8c-.3 0-.4 0-.6-.2a.7.7 0 0 1-.2-.6v-7.4c0-.3 0-.4.2-.6l.5-.2H11V8c0-.8.3-1.5.9-2.1.6-.6 1.3-.9 2.1-.9h2z" fill-rule="evenodd"/></svg>',"unordered-list":'<svg width="24" height="24"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2zM4.5 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1zm0 6c0-.4.1-.8.4-1 .3-.4.7-.5 1.1-.5.4 0 .8.1 1 .4.4.3.5.7.5 1.1 0 .4-.1.8-.4 1-.3.4-.7.5-1.1.5-.4 0-.8-.1-1-.4-.4-.3-.5-.7-.5-1.1z" fill-rule="evenodd"/></svg>',unselected:'<svg width="24" height="24"><path fill-rule="nonzero" d="M6 4h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2zm0 1a1 1 0 0 0-1 1v12c0 .6.4 1 1 1h12c.6 0 1-.4 1-1V6c0-.6-.4-1-1-1H6z"/></svg>',upload:'<svg width="24" height="24"><path d="M18 19v-2a1 1 0 0 1 2 0v3c0 .6-.4 1-1 1H5a1 1 0 0 1-1-1v-3a1 1 0 0 1 2 0v2h12zM11 6.4L8.7 8.7a1 1 0 0 1-1.4-1.4l4-4a1 1 0 0 1 1.4 0l4 4a1 1 0 1 1-1.4 1.4L13 6.4V16a1 1 0 0 1-2 0V6.4z" fill-rule="nonzero"/></svg>',user:'<svg width="24" height="24"><path d="M12 24a12 12 0 1 1 0-24 12 12 0 0 1 0 24zm-8.7-5.3a11 11 0 0 0 17.4 0C19.4 16.3 14.6 15 12 15c-2.6 0-7.4 1.3-8.7 3.7zM12 13c2.2 0 4-2 4-4.5S14.2 4 12 4 8 6 8 8.5 9.8 13 12 13z" fill-rule="nonzero"/></svg>',warning:'<svg width="24" height="24"><path d="M19.8 18.3c.2.5.3.9 0 1.2-.1.3-.5.5-1 .5H5.2c-.5 0-.9-.2-1-.5-.3-.3-.2-.7 0-1.2L11 4.7l.5-.5.5-.2c.2 0 .3 0 .5.2.2 0 .3.3.5.5l6.8 13.6zM12 18c.3 0 .5-.1.7-.3.2-.2.3-.4.3-.7a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7c0 .3.1.5.3.7.2.2.4.3.7.3zm.7-3l.3-4a1 1 0 0 0-.3-.7 1 1 0 0 0-.7-.3 1 1 0 0 0-.7.3 1 1 0 0 0-.3.7l.3 4h1.4z" fill-rule="evenodd"/></svg>',"zoom-in":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-1-9a1 1 0 0 1 2 0v6a1 1 0 0 1-2 0V8zm-2 4a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>',"zoom-out":'<svg width="24" height="24"><path d="M16 17.3a8 8 0 1 1 1.4-1.4l4.3 4.4a1 1 0 0 1-1.4 1.4l-4.4-4.3zm-5-.3a6 6 0 1 0 0-12 6 6 0 0 0 0 12zm-3-5a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2H8z" fill-rule="nonzero"/></svg>'},Md.get(n).icons),_r(o,function(e,n){Fr(r,n)||t.ui.registry.addIcon(n,e)}),function(e){var t=e.settings.theme;if(ie(t)){e.settings.theme=Jx(t);var n=Dd.get(t);e.theme=new n(e,Dd.urls[t]),e.theme.init&&e.theme.init(e,Dd.urls[t]||e.documentBaseUrl.replace(/\/$/,""),e.$)}else e.theme={}}(e),i=e,a=[],hn.each(i.settings.plugins.split(/[ ,]/),function(e){Gx(i,a,Jx(e))});var u,s,l,c,f,d=(f=(u=e).getElement(),u.orgDisplay=f.style.display,ie(u.settings.theme)?u.theme.renderUI():ce(u.settings.theme)?(l=(s=u).getElement(),(c=(0,s.settings.theme)(s,l)).editorContainer.nodeType&&(c.editorContainer.id=c.editorContainer.id||s.id+"_parent"),c.iframeContainer&&c.iframeContainer.nodeType&&(c.iframeContainer.id=c.iframeContainer.id||s.id+"_iframecontainer"),c.height=c.iframeHeight?c.iframeHeight:l.offsetHeight,c):Zx(u));return e.editorContainer=d.editorContainer?d.editorContainer:null,Xx(e),e.inline?qx(e):Kx(e,d)},tz=Ui.DOM,nz=function(e){return"-"===e.charAt(0)},rz=function(e,t){var n;(n=t,re.from(Dc(n)).filter(function(e){return 0<e.length}).map(function(e){return{url:e,name:re.none()}})).orThunk(function(){return e=t,re.from(Rc(e)).filter(function(e){return 0<e.length&&!Md.has(e)}).map(function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons.js",name:re.some(t)}});var e}).each(function(t){e.add(t.url,$,undefined,function(){Ad.iconsLoadError(t.url,t.name.getOrUndefined())})})},oz=function(e,t){var n=Wi.ScriptLoader;!function(e,t,n,r){var o=t.settings,i=o.theme;if(ie(i)){if(!nz(i)&&!Dd.urls.hasOwnProperty(i)){var a=o.theme_url;a?Dd.load(i,t.documentBaseURI.toAbsolute(a)):Dd.load(i,"themes/"+i+"/theme"+n+".js")}e.loadQueue(function(){Dd.waitFor(i,r)})}else r()}(n,e,t,function(){var r,o;!function(e,t){var n=Uc(t),r=jc(t);if(!1===Gi.hasCode(n)&&"en"!==n){var o=""!==r?r:t.editorManager.baseURL+"/langs/"+n+".js";e.add(o,$,undefined,function(){Ad.languageLoadError(o,n)})}}(n,e),rz(n,e),r=e.settings,o=t,ue(r.plugins)&&(r.plugins=r.plugins.join(" ")),hn.each(r.external_plugins,function(e,t){Rd.load(t,e,$,undefined,function(){Ad.pluginLoadError(t,e)}),r.plugins+=" "+t}),hn.each(r.plugins.split(/[ ,]/),function(e){if((e=hn.trim(e))&&!Rd.urls[e])if(nz(e)){e=e.substr(1,e.length);var t=Rd.dependencies(e);hn.each(t,function(e){var t={prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"};e=Rd.createUrl(t,e),Rd.load(e.resource,e,$,undefined,function(){Ad.pluginLoadError(e.prefix+e.resource+e.suffix,e.resource)})})}else{var n={prefix:"plugins/",resource:e,suffix:"/plugin"+o+".js"};Rd.load(e,n,$,undefined,function(){Ad.pluginLoadError(n.prefix+n.resource+n.suffix,e)})}}),n.loadQueue(function(){e.removed||ez(e)},e,function(){e.removed||ez(e)})})},iz=function(t){var n=t.settings,r=t.id;Gi.setCode(Uc(t));var o=function(){tz.unbind(e.window,"ready",o),t.render()};if(wt.Event.domLoaded){if(t.getElement()&&ut.contentEditable){n.inline?t.inline=!0:(t.orgVisibility=t.getElement().style.visibility,t.getElement().style.visibility="hidden");var i=t.getElement().form||tz.getParent(r,"form");i&&(t.formElement=i,n.hidden_input&&!Wo.isTextareaOrInput(t.getElement())&&(tz.insertAfter(tz.create("input",{type:"hidden",name:r}),r),t.hasHiddenInput=!0),t.formEventDelegate=function(e){t.fire(e.type,e)},tz.bind(i,"submit reset",t.formEventDelegate),t.on("reset",function(){t.resetContent()}),!n.submit_patch||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return t.editorManager.triggerSave(),t.setDirty(!1),i._mceOldSubmit(i)})),t.windowManager=zd(t),t.notificationManager=x(t),"xml"===n.encoding&&t.on("GetContent",function(e){e.save&&(e.content=tz.encode(e.content))}),n.add_form_submit_trigger&&t.on("submit",function(){t.initialized&&t.save()}),n.add_unload_trigger&&(t._beforeUnload=function(){!t.initialized||t.destroyed||t.isHidden()||t.save({format:"raw",no_events:!0,set_dirty:!1})},t.editorManager.on("BeforeUnload",t._beforeUnload)),t.editorManager.add(t),oz(t,t.suffix)}}else tz.bind(e.window,"ready",o)},az="data-mce-contenteditable",uz=function(e,t,n){ga(e,t)&&!1===n?function(e,t){ca(e)?e.dom().classList.remove(t):da(e,t),ma(e)}(e,t):n&&ha(e,t)},sz=function(e,t,n){try{e.getDoc().execCommand(t,!1,n)}catch(R){}},lz=function(e,t){e.dom().contentEditable=t?"true":"false"},cz=function(e,t){var n,r,o=Er.fromDom(e.getBody());uz(o,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),r=e,re.from(r.selection.getNode()).each(function(e){e.removeAttribute("data-mce-selected")}),e.readonly=!0,lz(o,!1),ve(va(o,'*[contenteditable="true"]'),function(e){$r(e,az,"true"),lz(e,!1)})):(e.readonly=!1,lz(o,!0),ve(va(o,"*["+az+'="true"]'),function(e){Xr(e,az),lz(e,!0)}),sz(e,"StyleWithCSS",!1),sz(e,"enableInlineTableEditing",!1),sz(e,"enableObjectResizing",!1),jf(e)&&e.focus(),(n=e).selection.setRng(n.selection.getRng()),e.nodeChanged())},fz=function(e){return!0===e.readonly},dz=function(e){e.parser.addAttributeFilter("contenteditable",function(t){fz(e)&&ve(t,function(e){e.attr(az,e.attr("contenteditable")),e.attr("contenteditable","false")})}),e.serializer.addAttributeFilter(az,function(t){fz(e)&&ve(t,function(e){e.attr("contenteditable",e.attr(az))})}),e.serializer.addTempAttr(az)},hz=["design","readonly"],mz=function(t,n,r,o){var i=r[n.get()],a=r[o];try{a.activate()}catch(eE){return void e.console.error("problem while activating editor mode "+o+":",eE)}i.deactivate(),i.editorReadOnly!==a.editorReadOnly&&cz(t,a.editorReadOnly),n.set(o),Jf(t,o)},gz=function(t){var n,r,o=Ki("design"),i=Ki({design:{activate:$,deactivate:$,editorReadOnly:!1},readonly:{activate:$,deactivate:$,editorReadOnly:!0}});return(n=t).serializer?dz(n):n.on("PreInit",function(){dz(n)}),(r=t).on("ShowCaret",function(e){fz(r)&&e.preventDefault()}),r.on("ObjectSelected",function(e){fz(r)&&e.preventDefault()}),{isReadOnly:function(){return fz(t)},set:function(e){return function(e,t,n,r){if(r!==n.get()){if(!Fr(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?mz(e,n,t,r):e.on("init",function(){return mz(e,n,t,r)})}}(t,i.get(),o,e)},get:function(){return o.get()},register:function(t,n){i.set(function(t,n,r){var o;if(me(hz,n))throw new Error("Cannot override default mode "+n);return De({},t,((o={})[n]=De({},r,{deactivate:function(){try{r.deactivate()}catch(eE){e.console.error("problem while deactivating editor mode "+n+":"),e.console.error(eE)}}}),o))}(i.get(),t,n))}}},pz=function(e){return hn.grep(e.childNodes,function(e){return"LI"===e.nodeName})},vz=function(e){return e&&e.firstChild&&e.firstChild===e.lastChild&&("\xa0"===(t=e.firstChild).data||Wo.isBr(t));var t},yz=function(e){return 0<e.length&&(!(t=e[e.length-1]).firstChild||vz(t))?e.slice(0,-1):e;var t},bz=function(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null},Cz=function(e,t){var n=ju.after(e),r=ll(t).prev(n);return r?r.toRange():null},wz=function(e,t,n){var r,o,i,a,u=e.parentNode;return hn.each(t,function(t){u.insertBefore(t,e)}),r=e,o=n,i=ju.before(r),(a=ll(o).next(i))?a.toRange():null},xz=function(e,t){var n,r,o,i,a,u,s=t.firstChild,l=t.lastChild;return s&&"meta"===s.name&&(s=s.next),l&&"mce_marker"===l.attr("id")&&(l=l.prev),r=l,u=(n=e).getNonEmptyElements(),r&&(r.isEmpty(u)||(o=r,n.getBlockElements()[o.name]&&(a=o).firstChild&&a.firstChild===a.lastChild&&("br"===(i=o.firstChild).name||"\xa0"===i.value)))&&(l=l.prev),!(!s||s!==l||"ul"!==s.name&&"ol"!==s.name)},zz=function(e,t,n,r){var o,i,a,u,s,l,c,f,d,h,m,g,p,v,y,b,C,w,x=(o=t,i=r,l=e.serialize(i),u=(a=o.createFragment(l)).firstChild,s=a.lastChild,u&&"META"===u.nodeName&&u.parentNode.removeChild(u),s&&"mce_marker"===s.id&&s.parentNode.removeChild(s),a),z=bz(t,n.startContainer),N=yz(pz(x.firstChild)),E=t.getRoot(),S=function(e){var r=ju.fromRangeStart(n),o=ll(t.getRoot()),i=1===e?o.prev(r):o.next(r);return!i||bz(t,i.getNode())!==z};return S(1)?wz(z,N,E):S(2)?(c=z,f=N,d=E,t.insertAfter(f.reverse(),c),Cz(f[0],d)):(m=N,g=E,p=h=z,y=(v=n).cloneRange(),b=v.cloneRange(),y.setStartBefore(p),b.setEndAfter(p),C=[y.cloneContents(),b.cloneContents()],(w=h.parentNode).insertBefore(C[0],h),hn.each(m,function(e){w.insertBefore(e,h)}),w.insertBefore(C[1],h),w.removeChild(h),Cz(m[m.length-1],g))},Nz=function(e,t){return!!bz(e,t)},Ez=Wo.matchNodeNames(["td","th"]),Sz=function(e,t){var n,r,o=e.selection.getRng(),i=o.startContainer,a=o.startOffset;o.collapsed&&(n=i,r=a,Wo.isText(n)&&"\xa0"===n.nodeValue[r-1])&&Wo.isText(i)&&(i.insertData(a-1," "),i.deleteData(a,1),o.setStart(i,a),o.setEnd(i,a),e.selection.setRng(o)),e.selection.setContent(t)},kz=function(e,t,n){var r,o,i,a,u,s,l,c,f,d,h,m=e.selection,g=e.dom;if(/^ | $/.test(t)&&(t=function(e,t){var n,r;n=e.startContainer,r=e.startOffset;var o=function(e){return n[e]&&3===n[e].nodeType};return 3===n.nodeType&&(0<r?t=t.replace(/^ /," "):o("previousSibling")||(t=t.replace(/^ /," ")),r<n.length?t=t.replace(/ (<br>|)$/," "):o("nextSibling")||(t=t.replace(/( | )(<br>|)$/," "))),t}(m.getRng(),t)),r=e.parser,h=n.merge,o=Qc({validate:e.settings.validate},e.schema),d='<span id="mce_marker" data-mce-type="bookmark">​</span>',s={content:t,format:"html",selection:!0,paste:n.paste},(s=e.fire("BeforeSetContent",s)).isDefaultPrevented())e.fire("SetContent",{content:s.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=s.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,d);var p,v,y,b,C,w,x=(c=m.getRng()).startContainer||(c.parentElement?c.parentElement():null),z=e.getBody();x===z&&m.isCollapsed()&&g.isBlock(z.firstChild)&&(p=e,(v=z.firstChild)&&!p.schema.getShortEndedElements()[v.nodeName])&&g.isEmpty(z.firstChild)&&((c=g.createRng()).setStart(z.firstChild,0),c.setEnd(z.firstChild,0),m.setRng(c)),m.isCollapsed()||(e.selection.setRng(Kg(e.selection.getRng())),e.getDoc().execCommand("Delete",!1,null),b=t,C=(y=e.selection.getRng()).startContainer,w=y.startOffset,3===C.nodeType&&y.collapsed&&("\xa0"===C.data[w]?(C.deleteData(w,1),/[\u00a0| ]$/.test(b)||(b+=" ")):"\xa0"===C.data[w-1]&&(C.deleteData(w-1,1),/[\u00a0| ]$/.test(b)||(b=" "+b))),t=b);var N,E,S,k={context:(i=m.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0};if(u=r.parse(t,k),!0===n.paste&&xz(e.schema,u)&&Nz(g,i))return c=zz(o,g,e.selection.getRng(),u),e.selection.setRng(c),void e.fire("SetContent",s);if(function(){for(var e=u;e=e.walk();)1===e.type&&e.attr("data-mce-fragment","1")}(),"mce_marker"===(f=u.lastChild).attr("id"))for(f=(l=f).prev;f;f=f.walk(!0))if(3===f.type||!g.isBlock(f.name)){e.schema.isValidChild(f.parent.name,"span")&&f.parent.insert(l,f,"br"===f.name);break}if(e._selectionOverrides.showBlockCaretContainer(i),k.invalid){for(Sz(e,d),i=m.getNode(),a=e.getBody(),9===i.nodeType?i=f=a:f=i;f!==a;)f=(i=f).parentNode;t=i===a?a.innerHTML:g.getOuterHTML(i),t=o.serialize(r.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return o.serialize(u)}))),i===a?g.setHTML(a,t):g.setOuterHTML(i,t)}else!function(e,t,n){if("all"===n.getAttribute("data-mce-bogus"))n.parentNode.insertBefore(e.dom.createFragment(t),n);else{var r=n.firstChild,o=n.lastChild;!r||r===o&&"BR"===r.nodeName?e.dom.setHTML(n,t):Sz(e,t)}}(e,t=o.serialize(u),i);!function(e,t){var n=e.schema.getTextInlineElements(),r=e.dom;if(t){var o=e.getBody(),i=new bg(r);hn.each(r.select("*[data-mce-fragment]"),function(e){for(var t=e.parentNode;t&&t!==o;t=t.parentNode)n[e.nodeName.toLowerCase()]&&i.compare(t,e)&&r.remove(e,!0)})}}(e,h),function(e,t){var n,r,o,i,a,u=e.dom,s=e.selection;if(t){if(e.selection.scrollIntoView(t),n=function(t){for(var n=e.getBody();t&&t!==n;t=t.parentNode)if("false"===e.dom.getContentEditable(t))return t;return null}(t))return u.remove(t),s.select(n);var l=u.createRng();(i=t.previousSibling)&&3===i.nodeType?(l.setStart(i,i.nodeValue.length),ut.ie||(a=t.nextSibling)&&3===a.nodeType&&(i.appendData(a.data),a.parentNode.removeChild(a))):(l.setStartBefore(t),l.setEndBefore(t)),r=u.getParent(t,u.isBlock),u.remove(t),r&&u.isEmpty(r)&&(e.$(r).empty(),l.setStart(r,0),l.setEnd(r,0),Ez(r)||r.getAttribute("data-mce-fragment")||!(o=function(t){var n=ju.fromRangeStart(t);if(n=ll(e.getBody()).next(n))return n.toRange()}(l))?u.add(r,u.create("br",{"data-mce-bogus":"1"})):(l=o,u.remove(r))),s.setRng(l)}}(e,g.get("mce_marker")),N=e.getBody(),hn.each(N.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")}),E=e.dom,S=e.selection.getStart(),re.from(E.getParent(S,"td,th")).map(Er.fromDom).each(Sm),e.fire("SetContent",s),e.addVisual()}},Tz=function(e,t){var n,r,o="string"!=typeof(n=t)?(r=hn.extend({paste:n.paste,data:{paste:n.paste}},n),{content:n.content,details:r}):{content:n,details:{}};kz(e,o.content,o.details)},Az=function(e,t){e.getDoc().execCommand(t,!1,null)},Mz=function(e){bw(e,!1)||wC(e,!1)||NC(e,!1)||TC(e,!1)||oC(e,!1)||rw(e)||sC(e,!1)||DC(e,!1)||(Az(e,"Delete"),jb(e))},Rz=function(e){wC(e,!0)||NC(e,!0)||TC(e,!0)||oC(e,!0)||rw(e)||sC(e,!0)||DC(e,!0)||Az(e,"ForwardDelete")},Dz=function(e){return function(t,n){return re.from(n).map(Er.fromDom).filter(Rr).bind(function(n){return(i=e,a=t,u=n.dom(),s=function(e){return Jr(e,i)},ba(Er.fromDom(u),function(e){return s(e).isSome()},function(e){return uo(Er.fromDom(a),e)}).bind(s)).or((r=e,o=n.dom(),re.from(Ui.DOM.getStyle(o,r,!0))));var r,o,i,a,u,s}).getOr("")}},Bz={getFontSize:Dz("font-size"),getFontFamily:W(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},Dz("font-family")),toPt:function(e,t){return/[0-9.]+px$/.test(e)?(n=72*parseInt(e,10)/96,r=t||0,o=Math.pow(10,r),Math.round(n*o)/o+"pt"):e;var n,r,o}},Oz=function(e){return Cl.firstPositionIn(e.getBody()).map(function(e){var t=e.container();return Wo.isText(t)?t.parentNode:t})},Hz=function(e){return re.from(e.selection.getRng()).bind(function(t){var n,r;return r=e.getBody(),(n=t).startContainer===r&&0===n.startOffset?re.none():re.from(e.selection.getStart(!0))})},_z=function(e,t){if(/^[0-9\.]+$/.test(t)){var n=parseInt(t,10);if(1<=n&&n<=7){var r=Ac(e),o=Mc(e);return o?o[n-1]||t:r[n-1]||t}return t}return t},Lz=function(e,t){var n,r,o=_z(e,t);e.formatter.toggle("fontname",{value:(n=o,r=n.split(/\s*,\s*/),pe(r,function(e){return-1===e.indexOf(" ")||mr(e,'"')||mr(e,"'")?e:'"'+e+'"'}).join(","))}),e.nodeChanged()},Pz=hn.each,Vz=hn.map,Iz=hn.inArray,Fz=function(){function e(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}return e.prototype.execCommand=function(e,t,n,r){var o,i,a=!1,u=this;if(!u.editor.removed){if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?zf(u.editor):u.editor.focus(),(r=u.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;if(i=e.toLowerCase(),o=u.commands.exec[i])return o(i,t,n),u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(Pz(this.editor.plugins,function(r){if(r.execCommand&&r.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!(a=!0)}),a)return a;if(u.editor.theme&&u.editor.theme.execCommand&&u.editor.theme.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{a=u.editor.getDoc().execCommand(e,t,n)}catch(Y){}return!!a&&(u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},e.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(M){}return!1}},e.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(M){}}},e.prototype.addCommands=function(e,t){var n=this;t=t||"exec",Pz(e,function(e,r){Pz(r.toLowerCase().split(","),function(r){n.commands[t][r]=e})})},e.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,a){return t.call(n||r.editor,o,i,a)}},e.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(A){}return!1},e.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},e.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},e.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},e.prototype.execNativeCommand=function(e,t,n){return t===undefined&&(t=!1),n===undefined&&(n=null),this.editor.getDoc().execCommand(e,t,n)},e.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},e.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t?{value:t}:undefined),this.editor.nodeChanged()},e.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},e.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},e.prototype.setupCommands=function(e){var t=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":function(){},"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},"Cut,Copy,Paste":function(n){var r,o=e.getDoc();try{t.execNativeCommand(n)}catch(D){r=!0}if("paste"!==n||o.queryCommandEnabled(n)||(r=!0),r||!o.queryCommandSupported(n)){var i=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.");ut.mac&&(i=i.replace(/Ctrl\+/g,"\u2318+")),e.notificationManager.open({text:i,type:"error"})}},unlink:function(){if(e.selection.isCollapsed()){var t=e.dom.getParent(e.selection.getStart(),"a");t&&e.dom.remove(t,!0)}else e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(n){var r=n.substring(7);"full"===r&&(r="justify"),Pz("left,center,right,justify".split(","),function(t){r!==t&&e.formatter.remove("align"+t)}),"none"!==r&&t.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(n){var r,o;t.execNativeCommand(n),(r=e.dom.getParent(e.selection.getNode(),"ol,ul"))&&(o=r.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(o.nodeName)&&(t.storeSelection(),e.dom.split(o,r),t.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){t.toggleFormat(e)},"ForeColor,HiliteColor":function(e,n,r){t.toggleFormat(e,r)},FontName:function(t,n,r){Lz(e,r)},FontSize:function(t,n,r){var o,i;i=r,(o=e).formatter.toggle("fontsize",{value:_z(o,i)}),o.nodeChanged()},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){t.toggleFormat("blockquote")},FormatBlock:function(e,n,r){return t.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(n,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(t.storeSelection(),e.dom.remove(i,!0),t.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1},e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){Tz(e,r)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,function(){return r}))},mceInsertNewLine:function(t,n,r){cx(e,r)},mceToggleFormat:function(e,n,r){t.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){cw(e,t)},mceRepaint:function(){},InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){var o;"string"==typeof r&&(r={href:r}),o=e.dom.getParent(e.selection.getNode(),"a"),r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t=e.dom.getParent(e.selection.getStart(),Wo.isContentEditableTrue);if(t){var n=e.dom.createRng();n.selectNodeContents(t),e.selection.setRng(n)}},"delete":function(){Mz(e)},forwardDelete:function(){Rz(e)},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return Xw(e,r),!0}});var n=function(t){return function(){var n=e.selection.isCollapsed()?[e.dom.getParent(e.selection.getNode(),e.dom.isBlock)]:e.selection.getSelectedBlocks(),r=Vz(n,function(n){return!!e.formatter.matchNode(n,t)});return-1!==Iz(r,!0)}};t.addCommands({JustifyLeft:n("alignleft"),JustifyCenter:n("aligncenter"),JustifyRight:n("alignright"),JustifyFull:n("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return t.isFormatMatch(e)},mceBlockQuote:function(){return t.isFormatMatch("blockquote")},Outdent:function(){return uw(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),t.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),t.addQueryValueHandler("FontName",function(){return Hz(t=e).fold(function(){return Oz(t).map(function(e){return Bz.getFontFamily(t.getBody(),e)}).getOr("")},function(e){
|
34
|
-
return Bz.getFontFamily(t.getBody(),e)});var t},this),t.addQueryValueHandler("FontSize",function(){return Hz(t=e).fold(function(){return Oz(t).map(function(e){return Bz.getFontSize(t.getBody(),e)}).getOr("")},function(e){return Bz.getFontSize(t.getBody(),e)});var t},this)},e}(),Uz=hn.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend"," "),jz=function(){function e(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||G}return e.isNative=function(e){return!!Uz[e.toLowerCase()]},e.prototype.fire=function(e,t){var n,r,o,i;if(e=e.toLowerCase(),(t=t||{}).type=e,t.target||(t.target=this.scope),t.preventDefault||(t.preventDefault=function(){t.isDefaultPrevented=J},t.stopPropagation=function(){t.isPropagationStopped=J},t.stopImmediatePropagation=function(){t.isImmediatePropagationStopped=J},t.isDefaultPrevented=G,t.isPropagationStopped=G,t.isImmediatePropagationStopped=G),this.settings.beforeFire&&this.settings.beforeFire(t),n=this.bindings[e])for(r=0,o=n.length;r<o;r++){if((i=n[r]).once&&this.off(e,i.func),t.isImmediatePropagationStopped())return t.stopPropagation(),t;if(!1===i.func.call(this.scope,t))return t.preventDefault(),t}return t},e.prototype.on=function(e,t,n,r){var o,i,a;if(!1===t&&(t=G),t){var u={func:t};for(r&&hn.extend(u,r),a=(i=e.toLowerCase().split(" ")).length;a--;)e=i[a],(o=this.bindings[e])||(o=this.bindings[e]=[],this.toggleEvent(e,!0)),n?o.unshift(u):o.push(u)}return this},e.prototype.off=function(e,t){var n,r,o,i,a;if(e)for(n=(i=e.toLowerCase().split(" ")).length;n--;){if(e=i[n],r=this.bindings[e],!e){for(o in this.bindings)this.toggleEvent(o,!1),delete this.bindings[o];return this}if(r){if(t)for(a=r.length;a--;)r[a].func===t&&(r=r.slice(0,a).concat(r.slice(a+1)),this.bindings[e]=r);else r.length=0;r.length||(this.toggleEvent(e,!1),delete this.bindings[e])}}else{for(e in this.bindings)this.toggleEvent(e,!1);this.bindings={}}return this},e.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},e.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},e}(),qz=function(e){return e._eventDispatcher||(e._eventDispatcher=new jz({scope:e,toggleEvent:function(t,n){jz.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher},$z={fire:function(e,t,n){if(this.removed&&"remove"!==e&&"detach"!==e)return t;var r=qz(this).fire(e,t);if(!1!==n&&this.parent)for(var o=this.parent();o&&!r.isPropagationStopped();)o.fire(e,r,!1),o=o.parent();return r},on:function(e,t,n){return qz(this).on(e,t,n)},off:function(e,t){return qz(this).off(e,t)},once:function(e,t){return qz(this).once(e,t)},hasEventListeners:function(e){return qz(this).has(e)}},Wz=Ui.DOM,Kz=function(e,t){return"selectionchange"===t?e.getDoc():!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=Wz.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()},Xz=function(e,t,n){var r,o,i;(i=e).hidden||fz(i)?fz(e)&&(o=(r=n).target,"click"===r.type&&"A"===o.tagName&&r.preventDefault()):e.fire(t,n)},Yz=function(e,t){var n,r;if(e.delegates||(e.delegates={}),!e.delegates[t]&&!e.removed)if(n=Kz(e,t),e.settings.event_root){if(Gy||(Gy={},e.editorManager.on("removeEditor",function(){var t;if(!e.editorManager.activeEditor&&Gy){for(t in Gy)e.dom.unbind(Kz(e,t));Gy=null}})),Gy[t])return;r=function(n){for(var r=n.target,o=e.editorManager.get(),i=o.length;i--;){var a=o[i].getBody();(a===r||Wz.isChildOf(r,a))&&Xz(o[i],t,n)}},Gy[t]=r,Wz.bind(n,t,r)}else r=function(n){Xz(e,t,n)},Wz.bind(n,t,r),e.delegates[t]=r},Gz=De({},$z,{bindPendingEventDelegates:function(){var e=this;hn.each(e._pendingNativeEvents,function(t){Yz(e,t)})},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(t?n.initialized?Yz(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(Kz(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e,t=this,n=t.getBody(),r=t.dom;if(t.delegates){for(e in t.delegates)t.dom.unbind(Kz(t,e),e,t.delegates[e]);delete t.delegates}!t.inline&&n&&r&&(n.onload=null,r.unbind(t.getWin()),r.unbind(t.getDoc())),r&&(r.unbind(n),r.unbind(t.getContainer()))}}),Jz=hn.each,Qz=hn.explode,Zz={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},eN=hn.makeMap("alt,ctrl,shift,meta,access"),tN=function(){function e(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(Jz(t.shortcuts,function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0}),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))})}return e.prototype.add=function(e,t,n,r){var o,i=this;return"string"==typeof(o=n)?n=function(){i.editor.execCommand(o,!1,null)}:hn.isArray(o)&&(n=function(){i.editor.execCommand(o[0],o[1],o[2])}),Jz(Qz(hn.trim(e.toLowerCase())),function(e){var o=i.createShortcut(e,t,n,r);i.shortcuts[o.id]=o}),!0},e.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},e.prototype.parseShortcut=function(e){var t,n,r={};for(n in Jz(Qz(e,"+"),function(e){e in eN?r[e]=!0:/^[0-9]{2,}$/.test(e)?r.keyCode=parseInt(e,10):(r.charCode=e.charCodeAt(0),r.keyCode=Zz[e]||e.toUpperCase().charCodeAt(0))}),t=[r.keyCode],eN)r[n]?t.push(n):r[n]=!1;return r.id=t.join(","),r.access&&(r.alt=!0,ut.mac?r.ctrl=!0:r.shift=!0),r.meta&&(ut.mac?r.meta=!0:(r.ctrl=!0,r.meta=!1)),r},e.prototype.createShortcut=function(e,t,n,r){var o;return(o=hn.map(Qz(e,">"),this.parseShortcut))[o.length-1]=hn.extend(o[o.length-1],{func:n,scope:r||this.editor}),hn.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},e.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},e.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},e.prototype.matchShortcut=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},e.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},e}(),nN=hn.each,rN=hn.trim,oN="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),iN={ftp:21,http:80,https:443,mailto:25},aN=function(){function t(n,r){n=rN(n),this.settings=r||{};var o=this.settings.base_uri,i=this;if(/^([\w\-]+):([^\/]{2})/i.test(n)||/^\s*#/.test(n))i.source=n;else{var a=0===n.indexOf("//");if(0!==n.indexOf("/")||a||(n=(o&&o.protocol||"http")+"://mce_host"+n),!/^[\w\-]*:?\/\//.test(n)){var u=this.settings.base_uri?this.settings.base_uri.path:new t(e.document.location.href).directory;if(this.settings.base_uri&&""==this.settings.base_uri.protocol)n="//mce_host"+i.toAbsPath(u,n);else{var s=/([^#?]*)([#?]?.*)/.exec(n);n=(o&&o.protocol||"http")+"://mce_host"+i.toAbsPath(u,s[1])+s[2]}}n=n.replace(/@@/g,"(mce_at)");var l=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(n);nN(oN,function(e,t){var n=l[t];n&&(n=n.replace(/\(mce_at\)/g,"@@")),i[e]=n}),o&&(i.protocol||(i.protocol=o.protocol),i.userInfo||(i.userInfo=o.userInfo),i.port||"mce_host"!==i.host||(i.port=o.port),i.host&&"mce_host"!==i.host||(i.host=o.host),i.source=""),a&&(i.protocol="")}}return t.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return r&&(t=r[1]),{type:t,data:n[1]}},t.getDocumentBaseUrl=function(e){var t;return t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},t.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},t.prototype.toRelative=function(e){var n;if("./"===e)return e;var r=new t(e,{base_uri:this});if("mce_host"!==r.host&&this.host!==r.host&&r.host||this.port!==r.port||this.protocol!==r.protocol&&""!==r.protocol)return r.getURI();var o=this.getURI(),i=r.getURI();return o===i||"/"===o.charAt(o.length-1)&&o.substr(0,o.length-1)===i?o:(n=this.toRelPath(this.path,r.path),r.query&&(n+="?"+r.query),r.anchor&&(n+="#"+r.anchor),n)},t.prototype.toAbsolute=function(e,n){var r=new t(e,{base_uri:this});return r.getURI(n&&this.isSameOrigin(r))},t.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=iN[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},t.prototype.toRelPath=function(e,t){var n,r,o,i=0,a="",u=e.substring(0,e.lastIndexOf("/")).split("/");if(n=t.split("/"),u.length>=n.length)for(r=0,o=u.length;r<o;r++)if(r>=n.length||u[r]!==n[r]){i=r+1;break}if(u.length<n.length)for(r=0,o=n.length;r<o;r++)if(r>=u.length||u[r]!==n[r]){i=r+1;break}if(1===i)return t;for(r=0,o=u.length-(i-1);r<o;r++)a+="../";for(r=i-1,o=n.length;r<o;r++)a+=r!==i-1?"/"+n[r]:n[r];return a},t.prototype.toAbsPath=function(e,t){var n,r,o,i=0,a=[];r=/\/$/.test(t)?"/":"";var u=e.split("/"),s=t.split("/");for(nN(u,function(e){e&&a.push(e)}),u=a,n=s.length-1,a=[];0<=n;n--)0!==s[n].length&&"."!==s[n]&&(".."!==s[n]?0<i?i--:a.push(s[n]):i++);return 0!==(o=(n=u.length-i)<=0?a.reverse().join("/"):u.slice(0,n).join("/")+"/"+a.reverse().join("/")).indexOf("/")&&(o="/"+o),r&&o.lastIndexOf("/")!==o.length-1&&(o+=r),o},t.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},t}(),uN=function(){var e,t,n,r,o,i,a,u,s=(t={},n={},r={},o={},i={},a={},{addButton:(u=function(e,t){return function(n,r){return e[n.toLowerCase()]=fp({type:t},r)}})(e={},"button"),addToggleButton:u(e,"togglebutton"),addMenuButton:u(e,"menubutton"),addSplitButton:u(e,"splitbutton"),addMenuItem:u(t,"menuitem"),addNestedMenuItem:u(t,"nestedmenuitem"),addToggleMenuItem:u(t,"togglemenuitem"),addAutocompleter:u(n,"autocompleter"),addContextMenu:u(o,"contextmenu"),addContextToolbar:u(i,"contexttoolbar"),addContextForm:u(i,"contextform"),addSidebar:u(a,"sidebar"),addIcon:function(e,t){return r[e.toLowerCase()]=t},getAll:function(){return{buttons:e,menuItems:t,icons:r,popups:n,contextMenus:o,contextToolbars:i,sidebars:a}}});return{addAutocompleter:s.addAutocompleter,addButton:s.addButton,addContextForm:s.addContextForm,addContextMenu:s.addContextMenu,addContextToolbar:s.addContextToolbar,addIcon:s.addIcon,addMenuButton:s.addMenuButton,addMenuItem:s.addMenuItem,addNestedMenuItem:s.addNestedMenuItem,addSidebar:s.addSidebar,addSplitButton:s.addSplitButton,addToggleButton:s.addToggleButton,addToggleMenuItem:s.addToggleMenuItem,getAll:s.getAll}},sN=Ui.DOM,lN=hn.extend,cN=hn.each,fN=hn.resolve,dN=ut.ie,hN=function(){function e(e,t,n){var r,o,i,a,u,s,l,c=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,lN(this,Gz),this.settings=(o=e,i=(r=this).documentBaseUrl,a=n.defaultSettings,u=t,l={id:o,theme:"silver",plugins:"",document_base_url:i,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:(s=r).convertURL,url_converter_scope:s},dd(ad,l,a,u)),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,Zi.languageLoad=this.settings.language_load,Zi.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new aN(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=this.settings.inline,this.shortcuts=new tN(this),this.editorCommands=new Fz(this),this.settings.cache_suffix&&(ut.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:uN()};var f=gz(this);this.mode=f,this.setMode=f.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Xn.overrideDefaults(function(){return{context:c.inline?c.getBody():c.getDoc(),element:c.getBody()}})}return e.prototype.render=function(){iz(this)},e.prototype.focus=function(e){Ff(this,e)},e.prototype.hasFocus=function(){return Uf(this)},e.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=this.settings[e];if(o)return this.callbackLookup&&(r=this.callbackLookup[e])&&(o=r.func,r=r.scope),"string"==typeof o&&(r=(r=o.replace(/\.\w+$/,""))?fN(r):0,o=fN(o),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[e]={func:o,scope:r}),o.apply(r||this,Array.prototype.slice.call(arguments,1))},e.prototype.translate=function(e){return Gi.translate(e)},e.prototype.getParam=function(e,t,n){return md(this,e,t,n)},e.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},e.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},e.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},e.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},e.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},e.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},e.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},e.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},e.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},e.prototype.show=function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable="true":(sN.show(this.getContainer()),sN.hide(this.id)),this.load(),this.fire("show"))},e.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(dN&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(sN.hide(e.getContainer()),sN.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},e.prototype.isHidden=function(){return!!this.hidden},e.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},e.prototype.load=function(e){var t,n=this.getElement();if(this.removed)return"";if(n){(e=e||{}).load=!0;var r=Wo.isTextareaOrInput(n)?n.value:n.innerHTML;return t=this.setContent(r,e),e.element=n,e.no_events||this.fire("LoadContent",e),e.element=n=null,t}},e.prototype.save=function(e){var t,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return(e=e||{}).save=!0,e.element=o,e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Wo.isTextareaOrInput(o)?o.value=t:(!e.is_removing&&r.inline||(o.innerHTML=t),(n=sN.getParent(r.id,"form"))&&cN(n.elements,function(e){if(e.name===r.id)return e.value=t,!1})),e.element=o=null,!1!==e.set_dirty&&r.setDirty(!1),t},e.prototype.setContent=function(e,t){return Wf(this,e,t)},e.prototype.getContent=function(e){return t=this,void 0===(n=e)&&(n={}),re.from(t.getBody()).fold(K("tree"===n.format?new ic("body",11):""),function(e){return Yc(t,n,e)});var t,n},e.prototype.insertContent=function(e,t){t&&(e=lN({content:e},t)),this.execCommand("mceInsertContent",!1,e)},e.prototype.resetContent=function(e){e===undefined?Wf(this,this.startContent,{format:"raw"}):Wf(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},e.prototype.isDirty=function(){return!this.isNotDirty},e.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},e.prototype.getContainer=function(){return this.container||(this.container=sN.get(this.editorContainer||this.id+"_parent")),this.container},e.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},e.prototype.getElement=function(){return this.targetElm||(this.targetElm=sN.get(this.id)),this.targetElm},e.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},e.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},e.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},e.prototype.convertURL=function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):e=this.documentBaseURI.toAbsolute(e,r.remove_script_host)},e.prototype.addVisual=function(e){var t,n=this,r=n.settings,o=n.dom;e=e||n.getBody(),n.hasVisual===undefined&&(n.hasVisual=r.visual),cN(o.select("table,a",e),function(e){var i;switch(e.nodeName){case"TABLE":return t=r.visual_table_class||"mce-item-table",void((i=o.getAttrib(e,"border"))&&"0"!==i||!n.hasVisual?o.removeClass(e,t):o.addClass(e,t));case"A":return void(o.getAttrib(e,"href")||(i=o.getAttrib(e,"name")||e.id,t=r.visual_anchor_class||"mce-item-anchor",i&&n.hasVisual?o.addClass(e,t):o.removeClass(e,t)))}}),n.fire("VisualAid",{element:e,hasVisual:n.hasVisual})},e.prototype.remove=function(){nd(this)},e.prototype.destroy=function(e){rd(this,e)},e.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},e.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},e.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},e.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},e.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},e.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},e}(),mN=Ui.DOM,gN=hn.explode,pN=hn.each,vN=hn.extend,yN=0,bN=!1,CN=[],wN=[],xN=function(e){var t=e.type;pN(SN.get(),function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}})},zN=function(e){e!==bN&&(e?Xn(window).on("resize scroll",xN):Xn(window).off("resize scroll",xN),bN=e)},NN=function(e){var t=wN;delete CN[e.id];for(var n=0;n<CN.length;n++)if(CN[n]===e){CN.splice(n,1);break}return wN=be(wN,function(t){return e!==t}),SN.activeEditor===e&&(SN.activeEditor=0<wN.length?wN[0]:null),SN.focusedEditor===e&&(SN.focusedEditor=null),t.length!==wN.length},EN="CSS1Compat"!==e.document.compatMode,SN=De({},$z,{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Xn,majorVersion:"5",minorVersion:"0.11",releaseDate:"2019-07-04",editors:CN,i18n:Gi,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var t,n,r,o,i="";if(n=aN.getDocumentBaseUrl(e.document.location),/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/")),r=window.tinymce||window.tinyMCEPreInit)t=r.base||r.baseURL,i=r.suffix;else{for(var a=e.document.getElementsByTagName("script"),u=0;u<a.length;u++){var s=(o=a[u].src).substring(o.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(o)){-1!==s.indexOf(".min")&&(i=".min"),t=o.substring(0,o.lastIndexOf("/"));break}}!t&&e.document.currentScript&&(-1!==(o=e.document.currentScript.src).indexOf(".min")&&(i=".min"),t=o.substring(0,o.lastIndexOf("/")))}this.baseURL=new aN(n).toAbsolute(t),this.documentBaseURL=n,this.baseURI=new aN(this.baseURL),this.suffix=i,Bf(this)},overrideDefaults:function(e){var t,n;(t=e.base_url)&&this._setBaseUrl(t),n=e.suffix,e.suffix&&(this.suffix=n);var r=(this.defaultSettings=e).plugin_base_urls;for(var o in r)Zi.PluginManager.urls[o]=r[o]},init:function(t){var n,r,o=this;r=hn.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," ");var i=function(e){var t=e.id;return t||(t=(t=e.name)&&!mN.get(t)?e.name:mN.uniqueId(),e.setAttribute("id",t)),t},a=function(e,t){return t.constructor===RegExp?t.test(e.className):mN.hasClass(e,t)},u=function(e){n=e},s=function(){var n,l=0,c=[],f=function(e,t,r){var i=new hN(e,t,o);c.push(i),i.on("init",function(){++l===n.length&&u(c)}),i.targetElm=i.targetElm||r,i.render()};mN.unbind(window,"ready",s),function(e){var n=t[e];n&&n.apply(o,Array.prototype.slice.call(arguments,2))}("onpageload"),n=Xn.unique(function(t){var n,r=[];if(ut.ie&&ut.ie<11)return Ad.initError("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(EN)return Ad.initError("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(t.types)return pN(t.types,function(e){r=r.concat(mN.select(e.selector))}),r;if(t.selector)return mN.select(t.selector);if(t.target)return[t.target];switch(t.mode){case"exact":0<(n=t.elements||"").length&&pN(gN(n),function(t){var n;(n=mN.get(t))?r.push(n):pN(e.document.forms,function(e){pN(e.elements,function(e){e.name===t&&(t="mce_editor_"+yN++,mN.setAttrib(e,"id",t),r.push(e))})})});break;case"textareas":case"specific_textareas":pN(mN.select("textarea"),function(e){t.editor_deselector&&a(e,t.editor_deselector)||t.editor_selector&&!a(e,t.editor_selector)||r.push(e)})}return r}(t)),t.types?pN(t.types,function(e){hn.each(n,function(n){return!mN.is(n,e.selector)||(f(i(n),vN({},t,e),n),!1)})}):(hn.each(n,function(e){var t;(t=o.get(e.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(NN(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0,t=null)}),0===(n=hn.grep(n,function(e){return!o.get(e.id)})).length?u([]):pN(n,function(e){var n;n=e,t.inline&&n.tagName.toLowerCase()in r?Ad.initError("Could not initialize inline editor on invalid inline target element",e):f(i(e),t,e)}))};return o.settings=t,mN.bind(window,"ready",s),new st(function(e){n?e(n):u=function(t){e(t)}})},get:function(e){return 0===arguments.length?wN.slice(0):ie(e)?xe(wN,function(t){return t.id===e}).getOr(null):fe(e)&&wN[e]?wN[e]:null},add:function(e){var t=this;return CN[e.id]===e||(null===t.get(e.id)&&("length"!==e.id&&(CN[e.id]=e),CN.push(e),wN.push(e)),zN(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),Jy||(Jy=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",Jy))),e},createEditor:function(e,t){return this.add(new hN(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!ie(e))return n=e,se(r.get(n.id))?null:(NN(n)&&r.fire("RemoveEditor",{editor:n}),0===wN.length&&window.removeEventListener("beforeunload",Jy),n.remove(),zN(0<wN.length),n);pN(mN.select(e),function(e){(n=r.get(e.id))&&r.remove(n)})}else for(t=wN.length-1;0<=t;t--)r.remove(wN[t])},execCommand:function(e,t,n){var r=this.get(n);switch(e){case"mceAddEditor":return this.get(n)||new hN(n,this.settings,this).render(),!0;case"mceRemoveEditor":return r&&r.remove(),!0;case"mceToggleEditor":return r?r.isHidden()?r.show():r.hide():this.execCommand("mceAddEditor",0,n),!0}return!!this.activeEditor&&this.activeEditor.execCommand(e,t,n)},triggerSave:function(){pN(wN,function(e){e.save()})},addI18n:function(e,t){Gi.add(e,t)},translate:function(e){return Gi.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new aN(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new aN(this.baseURL)}});SN.setup(),(Qy=k||(k={})).compareRanges=Qd,Qy.getCaretRangeFromPoint=mv,Qy.getSelectedNode=gu,Qy.getNode=pu;var kN,TN,AN=k,MN=Math.min,RN=Math.max,DN=Math.round,BN=function(e,t,n){var r,o,i,a,u,s;return r=t.x,o=t.y,i=e.w,a=e.h,u=t.w,s=t.h,"b"===(n=(n||"").split(""))[0]&&(o+=s),"r"===n[1]&&(r+=u),"c"===n[0]&&(o+=DN(s/2)),"c"===n[1]&&(r+=DN(u/2)),"b"===n[3]&&(o-=a),"r"===n[4]&&(r-=i),"c"===n[3]&&(o-=DN(a/2)),"c"===n[4]&&(r-=DN(i/2)),ON(r,o,i,a)},ON=function(e,t,n,r){return{x:e,y:t,w:n,h:r}},HN={inflate:function(e,t,n){return ON(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},relativePosition:BN,findBestRelativePosition:function(e,t,n,r){var o,i;for(i=0;i<r.length;i++)if((o=BN(e,t,r[i])).x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},intersect:function(e,t){var n,r,o,i;return n=RN(e.x,t.x),r=RN(e.y,t.y),o=MN(e.x+e.w,t.x+t.w),i=MN(e.y+e.h,t.y+t.h),o-n<0||i-r<0?null:ON(n,r,o-n,i-r)},clamp:function(e,t,n){var r,o,i,a,u,s,l,c,f,d;return u=e.x,s=e.y,l=e.x+e.w,c=e.y+e.h,f=t.x+t.w,d=t.y+t.h,r=RN(0,t.x-u),o=RN(0,t.y-s),i=RN(0,l-f),a=RN(0,c-d),u+=r,s+=o,n&&(l+=r,c+=o,u-=i,s-=a),ON(u,s,(l-=i)-u,(c-=a)-s)},create:ON,fromClientRect:function(e){return ON(e.left,e.top,e.width,e.height)}},_N=hn.each,LN=hn.extend,PN=function(){};PN.extend=kN=function(e){var t,n,r,o=this.prototype,i=function(){var e,t,n;if(!TN&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)},a=function(){return this},u=function(e,t){return function(){var n,r=this._super;return this._super=o[e],n=t.apply(this,arguments),this._super=r,n}};for(n in TN=!0,t=new this,TN=!1,e.Mixins&&(_N(e.Mixins,function(t){for(var n in t)"init"!==n&&(e[n]=t[n])}),o.Mixins&&(e.Mixins=o.Mixins.concat(e.Mixins))),e.Methods&&_N(e.Methods.split(","),function(t){e[t]=a}),e.Properties&&_N(e.Properties.split(","),function(t){var n="_"+t;e[t]=function(e){return e!==undefined?(this[n]=e,this):this[n]}}),e.Statics&&_N(e.Statics,function(e,t){i[t]=e}),e.Defaults&&o.Defaults&&(e.Defaults=LN({},o.Defaults,e.Defaults)),e)"function"==typeof(r=e[n])&&o[n]?t[n]=u(n,r):t[n]=r;return i.prototype=t,(i.constructor=i).extend=kN,i};var VN,IN,FN,UN,jN=Math.min,qN=Math.max,$N=Math.round,WN={serialize:function(e){var t=JSON.stringify(e);return ie(t)?t.replace(/[\u0080-\uFFFF]/g,function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t}):t},parse:function(e){try{return JSON.parse(e)}catch(A){}}},KN={callbacks:{},count:0,send:function(e){var t=this,n=Ui.DOM,r=e.count!==undefined?e.count:t.count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},XN=De({},$z,{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||1e4<n++?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,1e4<n?"TIMED_OUT":"GENERAL",t,e),t=null):dt.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",XN.fire("beforeInitialize",{settings:e}),t=z()){if(t.overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&hn.each(e.requestheaders,function(e){t.setRequestHeader(e.key,e.value)}),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),(t=XN.fire("beforeSend",{xhr:t,settings:e}).xhr).send(e.data),!e.async)return r();dt.setTimeout(r,10)}}}),YN=hn.extend,GN=function(){function e(e){this.settings=YN({},e),this.count=0}return e.sendRPC=function(t){return(new e).send(t)},e.prototype.send=function(e){var t=e.error,n=e.success,r=YN(this.settings,e);r.success=function(e,o){void 0===(e=WN.parse(e))&&(e={error:"JSON Parse error."}),e.error?t.call(r.error_scope||r.scope,e.error,o):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=WN.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",XN.send(r)},e}();try{VN=e.window.localStorage}catch(eE){IN={},FN=[],UN={getItem:function(e){return IN[e]||null},setItem:function(e,t){FN.push(e),IN[e]=String(t)},key:function(e){return FN[e]},removeItem:function(e){FN=FN.filter(function(t){return t===e}),delete IN[e]},clear:function(){FN=[],IN={}},length:0},Object.defineProperty(UN,"length",{get:function(){return FN.length},configurable:!1,enumerable:!1}),VN=UN}var JN,QN={geom:{Rect:HN},util:{Promise:st,Delay:dt,Tools:hn,VK:Ih,URI:aN,Class:PN,EventDispatcher:jz,Observable:$z,I18n:Gi,XHR:XN,JSON:WN,JSONRequest:GN,JSONP:KN,LocalStorage:VN,Color:function(e){var t={},n=0,r=0,o=0,i=function(e){var i;return"object"==typeof e?"r"in e?(n=e.r,r=e.g,o=e.b):"v"in e&&function(e,t,i){var a,u,s,l;if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,i=parseInt(i,10)/100,t=qN(0,jN(t,1)),i=qN(0,jN(i,1)),0!==t){switch(a=e/60,s=(u=i*t)*(1-Math.abs(a%2-1)),l=i-u,Math.floor(a)){case 0:n=u,r=s,o=0;break;case 1:n=s,r=u,o=0;break;case 2:n=0,r=u,o=s;break;case 3:n=0,r=s,o=u;break;case 4:n=s,r=0,o=u;break;case 5:n=u,r=0,o=s;break;default:n=r=o=0}n=$N(255*(n+l)),r=$N(255*(r+l)),o=$N(255*(o+l))}else n=r=o=$N(255*i)}(e.h,e.s,e.v):(i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(n=parseInt(i[1],10),r=parseInt(i[2],10),o=parseInt(i[3],10)):(i=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(n=parseInt(i[1],16),r=parseInt(i[2],16),o=parseInt(i[3],16)):(i=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(n=parseInt(i[1]+i[1],16),r=parseInt(i[2]+i[2],16),o=parseInt(i[3]+i[3],16)),n=n<0?0:255<n?255:n,r=r<0?0:255<r?255:r,o=o<0?0:255<o?255:o,t};return e&&i(e),t.toRgb=function(){return{r:n,g:r,b:o}},t.toHsv=function(){return e=n,t=r,i=o,u=0,(s=jN(e/=255,jN(t/=255,i/=255)))===(l=qN(e,qN(t,i)))?{h:0,s:0,v:100*(u=s)}:(a=(l-s)/l,{h:$N(60*((e===s?3:i===s?1:5)-(e===s?t-i:i===s?e-t:i-e)/((u=l)-s))),s:$N(100*a),v:$N(100*u)});var e,t,i,a,u,s,l},t.toHex=function(){var e=function(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e};return"#"+e(n)+e(r)+e(o)},t.parse=i,t}},dom:{EventUtils:wt,Sizzle:rn,DomQuery:Xn,TreeWalker:Ko,DOMUtils:Ui,ScriptLoader:Wi,RangeUtils:AN,Serializer:Ap,ControlSelection:Hp,BookmarkManager:Dp,Selection:iy,Event:wt.Event},html:{Styles:Di,Entities:Ci,Node:ic,Schema:p,SaxParser:dc,DomParser:Ep,Writer:Jc,Serializer:Qc},Env:ut,AddOnManager:Zi,Annotator:tc,Formatter:lp,UndoManager:zm,EditorCommands:Fz,WindowManager:zd,NotificationManager:x,EditorObservable:Gz,Shortcuts:tN,Editor:hN,FocusManager:Ef,EditorManager:SN,DOM:Ui.DOM,ScriptLoader:Wi.ScriptLoader,PluginManager:Zi.PluginManager,ThemeManager:Zi.ThemeManager,IconManager:Md,trim:hn.trim,isArray:hn.isArray,is:hn.is,toArray:hn.toArray,makeMap:hn.makeMap,each:hn.each,map:hn.map,grep:hn.grep,inArray:hn.inArray,extend:hn.extend,create:hn.create,walk:hn.walk,createNS:hn.createNS,resolve:hn.resolve,
|
35
|
-
explode:hn.explode,_addCacheSuffix:hn._addCacheSuffix,isOpera:ut.opera,isWebKit:ut.webkit,isIE:ut.ie,isGecko:ut.gecko,isMac:ut.mac},ZN=hn.extend(SN,QN);JN=ZN,window.tinymce=JN,window.tinyMCE=JN,function(e){if("object"==typeof module)try{module.exports=e}catch(A){}}(ZN)}(window);
|
22
|
+
!function(){"use strict";function e(e){if(null===e)return"null";if(void 0===e)return"undefined";var t=typeof e;return"object"==t&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":t}function t(e){return Og(function(t,n){if(t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e.eq(t[o],n[o]))return!1;return!0})}function n(e){return Og(function(n,r){var o,i,a,u=Object.keys(n),s=Object.keys(r);if(i=t(Bg),a=function(e){return t=o,Array.prototype.slice.call(e).sort(t);var t},!Og(function(e,t){return i.eq(a(e),a(t))}).eq(u,s))return!1;for(var c=u.length,l=0;l<c;l++){var f=u[l];if(!e.eq(n[f],r[f]))return!1}return!0})}function r(e){return function(t){return r=typeof(n=t),(null===n?"null":"object"==r&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==r&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":r)===e;var n,r}}function o(e){return function(t){return typeof t===e}}function i(e){return function(t){return e===t}}function a(e){return null==e}function u(e){return!a(e)}function s(){}function c(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e(t.apply(null,n))}}function l(e,t){return function(n){return e(t(n))}}function f(e){return function(){return e}}function d(e){return e}function m(e,t){return e===t}function g(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=t.concat(n);return e.apply(null,o)}}function p(e){return function(t){return!e(t)}}function h(e){return e()}function v(e){e()}function b(){return $g}function y(e){return e()}function C(e,t){return Yg.call(e,t)}function x(e,t){return-1<C(e,t)}function w(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return!0;return!1}function S(e,t){for(var n=e.length,r=new Array(n),o=0;o<n;o++){var i=e[o];r[o]=t(i,o)}return r}function E(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)}function k(e,t){for(var n=e.length-1;0<=n;n--)t(e[n],n)}function N(e,t){for(var n=[],r=[],o=0,i=e.length;o<i;o++){var a=e[o];(t(a,o)?n:r).push(a)}return{pass:n,fail:r}}function _(e,t){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];t(i,r)&&n.push(i)}return n}function A(e,t,n){return k(e,function(e,r){n=t(n,e,r)}),n}function R(e,t,n){return E(e,function(e,r){n=t(n,e,r)}),n}function D(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];if(t(i,r))return Kg.some(i);if(n(i,r))break}return Kg.none()}function T(e,t){return D(e,t,Vg)}function O(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n],n))return Kg.some(n);return Kg.none()}function B(e,t){return function(e){for(var t=[],n=0,r=e.length;n<r;++n){if(!Mg(e[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+e);Gg.apply(t,e[n])}return t}(S(e,t))}function P(e,t){for(var n=0,r=e.length;n<r;++n)if(!0!==t(e[n],n))return!1;return!0}function L(e){var t=Xg.call(e,0);return t.reverse(),t}function I(e,t){return _(e,function(e){return!x(t,e)})}function M(e,t){var n=Xg.call(e,0);return n.sort(t),n}function F(e,t){return 0<=t&&t<e.length?Kg.some(e[t]):Kg.none()}function U(e){return F(e,0)}function z(e){return F(e,e.length-1)}function H(e,t){for(var n=0;n<e.length;n++){var r=t(e[n],n);if(r.isSome())return r}return Kg.none()}function j(e,t){for(var n=Qg(e),r=0,o=n.length;r<o;r++){var i=n[r];t(e[i],i)}}function V(e,t){return ep(e,function(e,n){return{k:n,v:t(e,n)}})}function q(e){return function(t,n){e[n]=t}}function $(e,t,n,r){return j(e,function(e,o){(t(e,o)?n:r)(e,o)}),1}function W(e,t){var n={};return $(e,t,q(n),s),n}function K(e,t){return tp(e,t)?Kg.from(e[t]):Kg.none()}function X(e,t){return tp(e,t)&&void 0!==e[t]&&null!==e[t]}function Y(e,t,n){var r,o;if(!e)return!1;if(n=n||e,void 0!==e.length){for(r=0,o=e.length;r<o;r++)if(!1===t.call(n,e[r],r,e))return!1}else for(r in e)if(tp(e,r)&&!1===t.call(n,e[r],r,e))return!1;return!0}function G(e,t){var n=[];return Y(e,function(r,o){n.push(t(r,o,e))}),n}function J(e,t){var n=[];return Y(e,function(r,o){t&&!t(r,o,e)||n.push(r)}),n}function Q(e,t){if(e)for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function Z(e,t,n,r){for(var o=zg(n)?e[0]:n,i=0;i<e.length;i++)o=t.call(r,o,e[i],i);return o}function ee(e,t,n){for(var r=0,o=e.length;r<o;r++)if(t.call(n,e[r],r,e))return r;return-1}function te(e){return e[e.length-1]}function ne(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||((r=r||Array.prototype.slice.call(t,0,o))[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}function re(e){var t,n=!1;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];return n||(n=!0,t=e.apply(null,r)),t}}function oe(e,t){var n=String(t).toLowerCase();return T(e,function(e){return e.search(n)})}function ie(e,t){return-1!==e.indexOf(t)}function ae(e){return function(t){return t.replace(e,"")}}function ue(e){return 0<e.length}function se(e){return!ue(e)}function ce(e){return function(t){return ie(t,e)}}function le(e){return window.matchMedia(e).matches}function fe(e){return null==e?"":(""+e).replace(Op,"")}function de(e,t){return t?!("array"!==t||!np(e))||typeof e===t:void 0!==e}function me(e,t){for(var n=[],r=function(e){return n.push(e),t(e)},o=t(e);(o=o.bind(r)).isSome(););return n}function ge(e,t){var n=e.dom;if(1!==n.nodeType)return!1;var r=n;if(void 0!==r.matches)return r.matches(t);if(void 0!==r.msMatchesSelector)return r.msMatchesSelector(t);if(void 0!==r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(void 0!==r.mozMatchesSelector)return r.mozMatchesSelector(t);throw new Error("Browser lacks native selectors")}function pe(e){return 1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType||0===e.childElementCount}function he(e,t){return e.dom===t.dom}function ve(e,t){return wp().browser.isIE()?(n=e.dom,r=t.dom,o=Node.DOCUMENT_POSITION_CONTAINED_BY,0!=(n.compareDocumentPosition(r)&o)):(i=e.dom)!==(a=t.dom)&&i.contains(a);var n,r,o,i,a}function be(){return op(0,0)}function ye(e){function t(e){return function(){return n===e}}var n=e.current,r=e.version;return{current:n,version:r,isEdge:t("Edge"),isChrome:t("Chrome"),isIE:t("IE"),isOpera:t("Opera"),isFirefox:t(dp),isSafari:t("Safari")}}function Ce(e){function t(e){return function(){return n===e}}var n=e.current,r=e.version;return{current:n,version:r,isWindows:t(pp),isiOS:t("iOS"),isAndroid:t(hp),isOSX:t("OSX"),isLinux:t("Linux"),isSolaris:t(vp),isFreeBSD:t(bp),isChromeOS:t(yp)}}function xe(e){if(null==e)throw new Error("Node cannot be null or undefined");return{dom:e}}function we(e){return e.dom.nodeName.toLowerCase()}function Se(e){return e.dom.nodeType}function Ee(e){return function(t){return Se(t)===e}}function ke(e){return Lp.fromDom(e.dom.ownerDocument)}function Ne(e){return Fp(e)?e:ke(e)}function _e(e){return Lp.fromDom(Ne(e).dom.defaultView)}function Ae(e){return Kg.from(e.dom.parentNode).map(Lp.fromDom)}function Re(e){return Kg.from(e.dom.previousSibling).map(Lp.fromDom)}function De(e){return Kg.from(e.dom.nextSibling).map(Lp.fromDom)}function Te(e){return L(me(e,Re))}function Oe(e){return me(e,De)}function Be(e,t){var n=e.dom.childNodes;return Kg.from(n[t]).map(Lp.fromDom)}function Pe(e){return Be(e,0)}function Le(e){return Be(e,e.dom.childNodes.length-1)}function Ie(e){return e.dom.childNodes.length}function Me(e){return Up(e)&&u(e.dom.host)}function Fe(e){return Me(e)?e:function(){var t=Ne(e).dom.head;if(null==t)throw new Error("Head is not available yet");return Lp.fromDom(t)}()}function Ue(e){return Lp.fromDom(e.dom.host)}function ze(e,t){Ae(e).each(function(n){n.dom.insertBefore(t.dom,e.dom)})}function He(e,t){De(e).fold(function(){Ae(e).each(function(e){qp(e,t)})},function(e){ze(e,t)})}function je(e,t){Pe(e).fold(function(){qp(e,t)},function(n){e.dom.insertBefore(t.dom,n.dom)})}function Ve(e,t){E(t,function(t){qp(e,t)})}function qe(e){e.dom.textContent="",E(zp(e),function(e){$p(e)})}function $e(e){var t,n=zp(e);0<n.length&&(t=e,E(n,function(e){ze(t,e)})),$p(e)}function We(e,t){return void 0!==e?e:void 0!==t?t:0}function Ke(e){var t=void 0!==e?e.dom:document,n=t.body.scrollLeft||t.documentElement.scrollLeft,r=t.body.scrollTop||t.documentElement.scrollTop;return Xp(n,r)}function Xe(e,t,n){var r=(void 0!==n?n.dom:document).defaultView;r&&r.scrollTo(e,t)}function Ye(e,t){wp().browser.isSafari()&&Hg(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(t)}function Ge(e,t,n,r){return{x:e,y:t,width:n,height:r,right:e+n,bottom:t+r}}function Je(e){var t=void 0===e?window:e,n=t.document,r=Ke(Lp.fromDom(n)),o=void 0===t?window:t;return(wp().browser.isFirefox()?Kg.none():Kg.from(o.visualViewport)).fold(function(){var e=t.document.documentElement,n=e.clientWidth,o=e.clientHeight;return Ge(r.left,r.top,n,o)},function(e){return Ge(Math.max(e.pageLeft,r.left),Math.max(e.pageTop,r.top),e.width,e.height)})}function Qe(e){return function(t){return!!t&&t.nodeType===e}}function Ze(e){return e&&!Object.getPrototypeOf(e)}function et(e){var t=e.map(function(e){return e.toLowerCase()});return function(e){if(e&&e.nodeName){var n=e.nodeName.toLowerCase();return x(t,n)}return!1}}function tt(e,t){var n=t.toLowerCase().split(" ");return function(t){if(Gp(t))for(var r=0;r<n.length;r++){var o=t.ownerDocument.defaultView.getComputedStyle(t,null);if((o?o.getPropertyValue(e):null)===n[r])return!0}return!1}}function nt(e){return function(t){return Gp(t)&&t.hasAttribute(e)}}function rt(e){return Gp(e)&&e.hasAttribute("data-mce-bogus")}function ot(e){return Gp(e)&&"TABLE"===e.tagName}function it(e){return function(t){if(Gp(t)){if(t.contentEditable===e)return!0;if(t.getAttribute("data-mce-contenteditable")===e)return!0}return!1}}function at(e,t,n){return void 0===n&&(n=m),e.exists(function(e){return n(e,t)})}function ut(e,t,n){return e.isSome()&&t.isSome()?Kg.some(n(e.getOrDie(),t.getOrDie())):Kg.none()}function st(e){return void 0!==e.style&&Hg(e.style.getPropertyValue)}function ct(e,t,n){if(!(Lg(n)||Ug(n)||jg(n)))throw console.error("Invalid call to Attribute.set. Key ",t,":: Value ",n,":: Element ",e),new Error("Attribute value was not simple");e.setAttribute(t,n+"")}function lt(e,t,n){ct(e.dom,t,n)}function ft(e,t){var n=e.dom;j(t,function(e,t){ct(n,t,e)})}function dt(e,t){var n=e.dom.getAttribute(t);return null===n?void 0:n}function mt(e,t){return Kg.from(dt(e,t))}function gt(e,t){e.dom.removeAttribute(t)}function pt(e,t){var n=e.dom;j(t,function(e,t){!function(e,t,n){if(!Lg(n))throw console.error("Invalid call to CSS.set. Property ",t,":: Value ",n,":: Element ",e),new Error("CSS value must be a string: "+n);st(e)&&e.style.setProperty(t,n)}(n,t,e)})}function ht(e,t){var n=e.dom,r=window.getComputedStyle(n).getPropertyValue(t);return""!==r||Wp(e)?r:sh(n,t)}function vt(e,t){var n=e.dom,r=sh(n,t);return Kg.from(r).filter(function(e){return 0<e.length})}function bt(e){var t={},n=e.dom;if(st(n))for(var r=0;r<n.style.length;r++){var o=n.style.item(r);t[o]=n.style[o]}return t}function yt(e){return T(e,Ip)}function Ct(e,t){return e.children&&x(e.children,t)}function xt(e){setTimeout(function(){throw e},0)}function wt(e){return ph(function(){return new dh(e)})}function St(e){if(!Mg(e))throw new Error("cases must be an array");if(0===e.length)throw new Error("there must be at least one case");var t=[],n={};return E(e,function(r,o){var i=Qg(r);if(1!==i.length)throw new Error("one and only one name per case");var a=i[0],u=r[a];if(void 0!==n[a])throw new Error("duplicate key detected:"+a);if("cata"===a)throw new Error("cannot have a case named cata (sorry)");if(!Mg(u))throw new Error("case arguments must be an array");t.push(a),n[a]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.length;if(i!==u.length)throw new Error("Wrong number of arguments to case "+a+". Expected "+u.length+" ("+u+"), got "+i);return{fold:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+t.length);return t[o].apply(null,n)},match:function(e){var r=Qg(e);if(t.length!==r.length)throw new Error("Wrong number of arguments to match. Expected: "+t.join(",")+"\nActual: "+r.join(","));if(!P(t,function(e){return x(r,e)}))throw new Error("Not all branches were specified when using match. Specified: "+r.join(", ")+"\nRequired: "+t.join(", "));return e[a].apply(null,n)},log:function(e){console.log(e,{constructors:t,constructor:a,params:n})}}}}),n}function Et(e){return e.fold(d,d)}function kt(e,t,n,r,o){return e(n,r)?Kg.some(n):Hg(o)&&o(n)?Kg.none():t(n,r,o)}function Nt(e,t,n){for(var r=e.dom,o=Hg(n)?n:Vg;r.parentNode;){r=r.parentNode;var i=Lp.fromDom(r);if(t(i))return Kg.some(i);if(o(i))break}return Kg.none()}function _t(e,t,n){return kt(function(e,t){return t(e)},Nt,e,t,n)}function At(e,t,n){return Nt(e,function(e){return ge(e,t)},n)}function Rt(e,t){return n=t,pe(r=void 0===e?document:e.dom)?Kg.none():Kg.from(r.querySelector(n)).map(Lp.fromDom);var n,r}function Dt(e,t,n){return kt(ge,At,e,t,n)}function Tt(e,t){return"number"!=typeof t&&(t=0),setTimeout(e,t)}function Ot(e,t){return"number"!=typeof t&&(t=1),setInterval(e,t)}function Bt(e,t){function n(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];clearTimeout(r),r=Tt(function(){e.apply(this,n)},t)}var r;return n.stop=function(){clearTimeout(r)},n}function Pt(e,t){function n(n,r,o){function c(e,t){for(var n=e.length;n--;)e[n]();p.status=t,p.passed=[],p.failed=[],m&&(m.onload=null,m.onerror=null,m=null)}function f(){return c(p.passed,2),0}function d(){return c(p.failed,3)}var m,g=Pp._addCacheSuffix(n),p=K(a,g).getOrThunk(function(){return{id:"mce-u"+i++,passed:[],failed:[],count:0}});(a[g]=p).count++;var h,v,b,y=function(){var t=y;!function(){for(var t=e.styleSheets,n=t.length;n--;){var r=t[n].ownerNode;if(r&&r.id===m.id)return f(),1}}()&&(Date.now()-v<l?zh.setTimeout(t):d())};r&&p.passed.push(r),o&&p.failed.push(o),1!==p.status&&(2!==p.status?3!==p.status?(p.status=1,ft(h=Lp.fromTag("link",s.dom),{rel:"stylesheet",type:"text/css",id:p.id}),v=Date.now(),t.contentCssCors&<(h,"crossOrigin","anonymous"),t.referrerPolicy&<(h,"referrerpolicy",t.referrerPolicy),(m=h.dom).onload=y,m.onerror=d,b=h,qp(Fe(u),b),lt(h,"href",g)):d():f())}function r(e){return wt(function(t){n(e,c(t,f(bh.value(e))),c(t,f(bh.error(e))))})}function o(e){var t=Pp._addCacheSuffix(e);K(a,t).each(function(e){var n;0==--e.count&&(delete a[t],n=e.id,Rt(Fe(u),"#"+n).each($p))})}void 0===t&&(t={});var i=0,a={},u=Lp.fromDom(e),s=Ne(u),l=t.maxLoadTime||5e3;return{load:n,loadAll:function(e,t,n){var o,i=S(e,r);o=i,wt(function(e){var t=[],n=0;0===o.length?e([]):E(o,function(r,i){var a;r.get((a=i,function(r){t[a]=r,++n>=o.length&&e(t)}))})}).get(function(e){var r=N(e,function(e){return e.isValue()});0<r.fail.length?n(r.fail.map(Et)):t(r.pass.map(Et))})},unload:o,unloadAll:function(e){E(e,function(e){o(e)})},_setReferrerPolicy:function(e){t.referrerPolicy=e}}}function Lt(e,t){this.node=e,this.rootNode=t,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}function It(e){var t;return function(n){return t=t||function(e,t){for(var n={},r=0,o=e.length;r<o;r++){var i=e[r];n[String(i)]=t(i,r)}return n}(e,qg),tp(t,we(n))}}function Mt(e){return Ip(e)&&!qh(e)}function Ft(e){return Ip(e)&&"br"===we(e)}function Ut(e){return rv(e)&&(e=e.parentNode),nv(e)&&e.hasAttribute("data-mce-caret")}function zt(e){return rv(e)&&ev(e.data)}function Ht(e){return Ut(e)||zt(e)}function jt(e){return e.firstChild!==e.lastChild||!nh(e.firstChild)}function Vt(e){var t=e.container();return!!Qp(t)&&(t.data.charAt(e.offset())===Zh||e.isAtStart()&&zt(t.previousSibling))}function qt(e){var t=e.container();return!!Qp(t)&&(t.data.charAt(e.offset()-1)===Zh||e.isAtEnd()&&zt(t.nextSibling))}function $t(e){return e&&e.hasAttribute("data-mce-caret")?(rt(n=(t=e.getElementsByTagName("br"))[t.length-1])&&n.parentNode.removeChild(n),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null;var t,n}function Wt(e){return Ut(e.startContainer)}function Kt(e){return!mv(e)&&(cv(e)?!lv(e.parentNode):fv(e)||sv(e)||dv(e)||gv(e))}function Xt(e,t){return Kt(e)&&function(e,t){for(e=e.parentNode;e&&e!==t;e=e.parentNode){if(gv(e))return!1;if(av(e))return!0}return!0}(e,t)}function Yt(e){return pv.test(e)}function Gt(e,t){return Kt(e)&&!1===(a=t,Qp(i=e)&&Yt(i.data)&&!1===(n=i,r=Lp.fromDom(a),At(Lp.fromDom(n),"pre,code",g(he,r)).isSome()))||Gp(o=e)&&"A"===o.nodeName&&!o.hasAttribute("href")&&(o.hasAttribute("name")||o.hasAttribute("id"))||hv(e);var n,r,o,i,a}function Jt(e,t){return function(e,t){var n=0;if(Gt(e,e))return!1;var r=e.firstChild;if(!r)return!0;var o=new jh(r,e);do{if(t){if(bv(r)){r=o.next(!0);continue}if(vv(r)){r=o.next();continue}}if(nh(r))n++,r=o.next();else{if(Gt(r,e))return!1;r=o.next()}}while(r);return n<=1}(e.dom,t=void 0===t||t)}function Qt(e,t){return u(e)&&(Gt(e,t)||Mt(Lp.fromDom(e)))}function Zt(e){return"span"===e.nodeName.toLowerCase()&&"bookmark"===e.getAttribute("data-mce-type")}function en(e,t){var n,r,o,i={};if(e){for(e=e.split(","),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),Nv[r]||(o="&"+e[n+1]+";",i[r]=o,i[o]=r);return i}}function tn(e,t){return e.replace(t?xv:wv,function(e){return Nv[e]||e})}function nn(e,t){return e.replace(t?xv:wv,function(e){return 1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":Nv[e]||"&#"+e.charCodeAt(0)+";"})}function rn(e,t,n){return n=n||Av,e.replace(t?xv:wv,function(e){return Nv[e]||n[e]||e})}function on(e,t){return(e=Pp.trim(e))?e.split(t||" "):[]}function an(e,t){var n=Ov(e," ",Ov(e.toUpperCase()," "));return Pv(n,t)}function un(e){return an("td th li dt dd figcaption caption details summary",e.getTextBlockElements())}function sn(e,t){var n;return e&&(n={},Bv(e="string"==typeof e?{"*":e}:e,function(e,r){n[r]=n[r.toUpperCase()]=("map"===t?Ov:Lv)(e,/[, ]/)})),n}function cn(e){function t(t,n,r){var o=e[t];return o?o=Ov(o,/[, ]/,Ov(o.toUpperCase(),/[, ]/)):(o=Dv[t])||(o=an(n,r),Dv[t]=o),o}function n(e,t,n){function r(e,t){for(var n={},r=0,o=e.length;r<o;r++)n[e[r]]=t||{};return n}var o,i;t=t||"","string"==typeof(n=n||[])&&(n=on(n));for(var a=on(e),u=a.length;u--;)i={attributes:r(o=on([d,t].join(" "))),attributesOrder:o,children:r(n,Tv)},b[a[u]]=i}function r(e,t){for(var n,r,o,i=on(e),a=i.length,u=on(t);a--;)for(n=b[i[a]],r=0,o=u.length;r<o;r++)n.attributes[u[r]]={},n.attributesOrder.push(u[r])}function o(e){return new RegExp("^"+e.replace(/([?+*])/g,".$1")+"$")}function i(e){var t,n,r,i,a,u,s,c,l,f,d,m,g,p,h,v,b,C,w=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,S=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,E=/[*?+]/;if(e){var k=on(e,",");for(y["@"]&&(v=y["@"].attributes,b=y["@"].attributesOrder),t=0,n=k.length;t<n;t++)if(a=w.exec(k[t])){if(p=a[1],l=a[2],h=a[3],c=a[5],u={attributes:m={},attributesOrder:g=[]},"#"===p&&(u.paddEmpty=!0),"-"===p&&(u.removeEmpty=!0),"!"===a[4]&&(u.removeEmptyAttrs=!0),v&&(j(v,function(e,t){m[t]=e}),g.push.apply(g,b)),c)for(r=0,i=(c=on(c,"|")).length;r<i;r++)(a=S.exec(c[r]))&&(s={},d=a[1],f=a[2].replace(/[\\:]:/g,":"),p=a[3],C=a[4],"!"===d&&(u.attributesRequired=u.attributesRequired||[],u.attributesRequired.push(f),s.required=!0),"-"!==d?(p&&("="===p&&(u.attributesDefault=u.attributesDefault||[],u.attributesDefault.push({name:f,value:C}),s.defaultValue=C),":"===p&&(u.attributesForced=u.attributesForced||[],u.attributesForced.push({name:f,value:C}),s.forcedValue=C),"<"===p&&(s.validValues=Ov(C,"?"))),E.test(f)?(u.attributePatterns=u.attributePatterns||[],s.pattern=o(f),u.attributePatterns.push(s)):(m[f]||g.push(f),m[f]=s)):(delete m[f],g.splice(Iv(g,f),1)));v||"@"!==l||(v=m,b=g),h&&(u.outputName=l,y[h]=u),E.test(l)?(u.pattern=o(l),x.push(u)):y[l]=u}}}function a(e){y={},x=[],i(e),Bv(E,function(e,t){C[t]=e.children})}function u(e){var t=/^(~)?(.+)$/;e&&(Dv.text_block_elements=Dv.block_elements=null,Bv(on(e,","),function(e){var n,r=t.exec(e),o="~"===r[1],i=o?"span":"div",a=r[2];C[a]=C[i],w[a]=i,o||(I[a.toUpperCase()]={},I[a]={}),y[a]||(n=y[i],delete(n=Pv({},n)).removeEmptyAttrs,delete n.removeEmpty,y[a]=n),Bv(C,function(e,t){e[i]&&(C[t]=e=Pv({},C[t]),e[a]=e[i])})}))}function s(t){var n=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;Dv[e.schema]=null,t&&Bv(on(t,","),function(e){var t,r,o=n.exec(e);o&&(r=o[1],t=r?C[o[2]]:C[o[2]]={"#comment":{}},t=C[o[2]],Bv(on(o[3],"|"),function(e){"-"===r?delete t[e]:t[e]={}}))})}function c(e){var t,n=y[e];if(n)return n;for(t=x.length;t--;)if((n=x[t]).pattern.test(e))return n}var l,d,m,g,p,h,v,b,y={},C={},x=[],w={},S={},E=(l=(e=e||{}).schema,b={},Dv[l]||(d="id accesskey class dir lang style tabindex title role",m="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",g="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment","html4"!==l&&(d+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",m+=" article aside details dialog figure main header footer hgroup section nav",g+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),"html5-strict"!==l&&(d+=" xml:lang",g=[g,v="acronym applet basefont big font strike tt"].join(" "),Bv(on(v),function(e){n(e,"",g)}),m=[m,h="center dir isindex noframes"].join(" "),p=[m,g].join(" "),Bv(on(h),function(e){n(e,"",p)})),p=p||[m,g].join(" "),n("html","manifest","head body"),n("head","","base command link meta noscript script style title"),n("title hr noscript br"),n("base","href target"),n("link","href rel media hreflang type sizes hreflang"),n("meta","name http-equiv content charset"),n("style","media type scoped"),n("script","src async defer type charset"),n("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",p),n("address dt dd div caption","",p),n("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",g),n("blockquote","cite",p),n("ol","reversed start type","li"),n("ul","","li"),n("li","value",p),n("dl","","dt dd"),n("a","href target rel media hreflang type",g),n("q","cite",g),n("ins del","cite datetime",p),n("img","src sizes srcset alt usemap ismap width height"),n("iframe","src name width height",p),n("embed","src type width height"),n("object","data type typemustmatch name usemap form width height",[p,"param"].join(" ")),n("param","name value"),n("map","name",[p,"area"].join(" ")),n("area","alt coords shape href target rel media hreflang type"),n("table","border","caption colgroup thead tfoot tbody tr"+("html4"===l?" col":"")),n("colgroup","span","col"),n("col","span"),n("tbody thead tfoot","","tr"),n("tr","","td th"),n("td","colspan rowspan headers",p),n("th","colspan rowspan headers scope abbr",p),n("form","accept-charset action autocomplete enctype method name novalidate target",p),n("fieldset","disabled form name",[p,"legend"].join(" ")),n("label","form for",g),n("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),n("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value","html4"===l?p:g),n("select","disabled form multiple name required size","option optgroup"),n("optgroup","disabled label","option"),n("option","disabled label selected value"),n("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),n("menu","type label",[p,"li"].join(" ")),n("noscript","",p),"html4"!==l&&(n("wbr"),n("ruby","",[g,"rt rp"].join(" ")),n("figcaption","",p),n("mark rt rp summary bdi","",g),n("canvas","width height",p),n("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[p,"track source"].join(" ")),n("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[p,"track source"].join(" ")),n("picture","","img source"),n("source","src srcset type media sizes"),n("track","kind src srclang label default"),n("datalist","",[g,"option"].join(" ")),n("article section nav aside main header footer","",p),n("hgroup","","h1 h2 h3 h4 h5 h6"),n("figure","",[p,"figcaption"].join(" ")),n("time","datetime",g),n("dialog","open",p),n("command","type label icon disabled checked radiogroup command"),n("output","for form name",g),n("progress","value max",g),n("meter","value min max low high optimum",g),n("details","open",[p,"summary"].join(" ")),n("keygen","autofocus challenge disabled form keytype name")),"html5-strict"!==l&&(r("script","language xml:space"),r("style","xml:space"),r("object","declare classid code codebase codetype archive standby align border hspace vspace"),r("embed","align name hspace vspace"),r("param","valuetype type"),r("a","charset name rev shape coords"),r("br","clear"),r("applet","codebase archive code object alt name width height align hspace vspace"),r("img","name longdesc align border hspace vspace"),r("iframe","longdesc frameborder marginwidth marginheight scrolling align"),r("font basefont","size color face"),r("input","usemap align"),r("select"),r("textarea"),r("h1 h2 h3 h4 h5 h6 div p legend caption","align"),r("ul","type compact"),r("li","type"),r("ol dl menu dir","compact"),r("pre","width xml:space"),r("hr","align noshade size width"),r("isindex","prompt"),r("table","summary width frame rules cellspacing cellpadding align bgcolor"),r("col","width align char charoff valign"),r("colgroup","width align char charoff valign"),r("thead","align char charoff valign"),r("tr","align char charoff valign bgcolor"),r("th","axis align char charoff valign nowrap bgcolor width height"),r("form","accept"),r("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),r("tfoot","align char charoff valign"),r("tbody","align char charoff valign"),r("area","nohref"),r("body","background bgcolor text link vlink alink")),"html4"!==l&&(r("input button select textarea","autofocus"),r("input textarea","placeholder"),r("a","download"),r("link script img","crossorigin"),r("img","loading"),r("iframe","sandbox seamless allowfullscreen loading")),Bv(on("a form meter progress dfn"),function(e){b[e]&&delete b[e].children[e]}),delete b.caption.children.table,delete b.script,Dv[l]=b));!1===e.verify_html&&(e.valid_elements="*[*]");var k=sn(e.valid_styles),N=sn(e.invalid_styles,"map"),_=sn(e.valid_classes,"map"),A=t("whitespace_elements","pre script noscript style textarea video audio iframe object code"),R=t("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),D=t("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),T=t("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),O="td th iframe video audio object script code",B=t("non_empty_elements",O+" pre",D),P=t("move_caret_before_on_enter_elements",O+" table",D),L=t("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),I=t("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",L),M=t("text_inline_elements","span strong b em i font s strike u var cite dfn code mark q sup sub samp");Bv((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),function(e){S[e]=new RegExp("</"+e+"[^>]*>","gi")}),e.valid_elements?a(e.valid_elements):(Bv(E,function(e,t){y[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},C[t]=e.children}),"html5"!==e.schema&&Bv(on("strong/b em/i"),function(e){var t=on(e,"/");y[t[1]].outputName=t[0]}),Bv(M,function(t,n){y[n]&&(e.padd_empty_block_inline_children&&(y[n].paddInEmptyBlock=!0),y[n].removeEmpty=!0)}),Bv(on("ol ul blockquote a table tbody"),function(e){y[e]&&(y[e].removeEmpty=!0)}),Bv(on("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(e){y[e].paddEmpty=!0}),Bv(on("span"),function(e){y[e].removeEmptyAttrs=!0})),u(e.custom_elements),s(e.valid_children),i(e.extended_valid_elements),s("+ol[ul|ol],+ul[ul|ol]"),Bv({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(e,t){y[t]&&(y[t].parentsRequired=on(e))}),e.invalid_elements&&Bv(Lv(e.invalid_elements),function(e){y[e]&&delete y[e]}),c("span")||i("span[!data-mce-type|*]");var F=f(k),U=f(N),z=f(_),H=f(T),V=f(I),q=f(L),$=f(M),W=f(D),K=f(R),X=f(B),Y=f(P),G=f(A),J=f(S),Q=f(w);return{children:C,elements:y,getValidStyles:F,getValidClasses:z,getBlockElements:V,getInvalidStyles:U,getShortEndedElements:W,getTextBlockElements:q,getTextInlineElements:$,getBoolAttrs:H,getElementRule:c,getSelfClosingElements:K,getNonEmptyElements:X,getMoveCaretBeforeOnEnterElements:Y,getWhiteSpaceElements:G,getSpecialElements:J,isValidChild:function(e,t){var n=C[e.toLowerCase()];return!(!n||!n[t.toLowerCase()])},isValid:function(e,t){var n,r,o=c(e);if(o){if(!t)return!0;if(o.attributes[t])return!0;if(n=o.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},getCustomElements:Q,addValidElements:i,setValidElements:a,addCustomElements:u,addValidChildren:s}}function ln(e,t,n,r){function o(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e}return"#"+o(t)+o(n)+o(r)}function fn(e,t){var n,r,o=this,i=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,a=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,u=/\s*([^:]+):\s*([^;]+);?/g,s=/\s+$/,c={},l=Jh;e=e||{},t&&(n=t.getValidStyles(),r=t.getInvalidStyles());for(var f=("\\\" \\' \\; \\: ; : "+l).split(" "),d=0;d<f.length;d++)c[f[d]]=l+d,c[l+d]=f[d];return{toHex:function(e){return e.replace(i,ln)},parse:function(t){function n(e,t,n){var r=E[e+"-top"+t];if(r){var o=E[e+"-right"+t];if(o){var i=E[e+"-bottom"+t];if(i){var a=E[e+"-left"+t];if(a){var u=[r,o,i,a];for(d=u.length-1;d--&&u[d]===u[d+1];);-1<d&&n||(E[e+t]=-1===d?u[0]:u.join(" "),delete E[e+"-top"+t],delete E[e+"-right"+t],delete E[e+"-bottom"+t],delete E[e+"-left"+t])}}}}}function r(e){var t,n=E[e];if(n){for(t=(n=n.split(" ")).length;t--;)if(n[t]!==n[0])return;return E[e]=n[0],1}}function f(e){return C=!0,c[e]}function m(e,t){return C&&(e=e.replace(/\uFEFF[0-9]/g,function(e){return c[e]})),t?e:e.replace(/\\([\'\";:])/g,"$1")}function g(e){return String.fromCharCode(parseInt(e.slice(1),16))}function p(e){return e.replace(/\\[0-9a-f]+/gi,g)}function h(t,n,r,o,i,a){if(i=i||a)return"'"+(i=m(i)).replace(/\'/g,"\\'")+"'";if(n=m(n||r||o),!e.allow_script_urls){var u=n.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(u))return"";if(!e.allow_svg_data_urls&&/^data:image\/svg/i.test(u))return""}return"url('"+(n=k?k.call(N,n,"style"):n).replace(/\'/g,"\\'")+"')"}var v,b,y,C,x,w,S,E={},k=e.url_converter,N=e.url_converter_scope||o;if(t){for(t=(t=t.replace(/[\u0000-\u001F]/g,"")).replace(/\\[\"\';:\uFEFF]/g,f).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(e){return e.replace(/[;:]/g,f)});v=u.exec(t);)u.lastIndex=v.index+v[0].length,b=v[1].replace(s,"").toLowerCase(),y=v[2].replace(s,""),b&&y&&(b=p(b),y=p(y),-1===b.indexOf(l)&&-1===b.indexOf('"')&&(e.allow_script_urls||"behavior"!==b&&!/expression\s*\(|\/\*|\*\//.test(y))&&("font-weight"===b&&"700"===y?y="bold":"color"!==b&&"background-color"!==b||(y=y.toLowerCase()),y=(y=y.replace(i,ln)).replace(a,h),E[b]=C?m(y,!0):y));n("border","",!0),n("border","-width"),n("border","-color"),n("border","-style"),n("padding",""),n("margin",""),w="border-style",S="border-color",r(x="border-width")&&r(w)&&r(S)&&(E.border=E[x]+" "+E[w]+" "+E[S],delete E[x],delete E[w],delete E[S]),"medium none"===E.border&&delete E.border,"none"===E["border-image"]&&delete E["border-image"]}return E},serialize:function(e,t){function o(t){var r,o=n[t];if(o)for(var a=0,u=o.length;a<u;a++)t=o[a],(r=e[t])&&(i+=(0<i.length?" ":"")+t+": "+r+";")}var i="";return t&&n?(o("*"),o(t)):j(e,function(e,n){
|
23
|
+
var o;!e||r&&((o=r["*"])&&o[n]||(o=r[t])&&o[n])||(i+=(0<i.length?" ":"")+n+": "+e+";")}),i}}}function dn(e){return e instanceof Event||Hg(e.initEvent)}function mn(e,t,n,r){var o,i,s=function(e){var t,n=null!=r?r:{};for(t in e)tp(Mv,t)||(n[t]=e[t]);return u(n.composedPath)&&(n.composedPath=function(){return e.composedPath()}),n}(t);return s.type=e,a(s.target)&&(s.target=null!==(o=s.srcElement)&&void 0!==o?o:n),(a((i=t).preventDefault)||dn(i))&&(s.preventDefault=function(){s.defaultPrevented=!0,s.isDefaultPrevented=qg,Hg(t.preventDefault)?t.preventDefault():dn(t)&&(t.returnValue=!1)},s.stopPropagation=function(){s.cancelBubble=!0,s.isPropagationStopped=qg,Hg(t.stopPropagation)?t.stopPropagation():dn(t)&&(t.cancelBubble=!0)},s.stopImmediatePropagation=function(){s.isImmediatePropagationStopped=qg,s.stopPropagation()},s.isDefaultPrevented!==qg&&s.isDefaultPrevented!==Vg&&(s.isDefaultPrevented=!0===s.defaultPrevented?qg:Vg,s.isPropagationStopped=!0===s.cancelBubble?qg:Vg,s.isImmediatePropagationStopped=Vg)),s}function gn(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent("on"+t,n)}function pn(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent("on"+t,n)}function hn(e,t){var n,r,o,i,a=mn(e.type,e,document,t);return u(i=e)&&Fv.test(i.type)&&zg(e.pageX)&&!zg(e.clientX)&&(r=(n=a.target.ownerDocument||document).documentElement,o=n.body,a.pageX=e.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),a.pageY=e.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),zg(a.metaKey)&&(a.metaKey=!1),a}function vn(){this.domLoaded=!1,this.events={},this.count=1,this.expando="mce-data-"+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}function bn(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function yn(){function e(n,r){return t.push(n+" ")>wh.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function Cn(e){return e[zv]=!0,e}function xn(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function wn(e){return Cn(function(t){return t=+t,Cn(function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))})})}function Sn(e){return e&&typeof e.getElementsByTagName!=Xv&&e}function En(){}function kn(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function Nn(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=Vv++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var u,s,c=[jv,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if((u=(s=t[zv]||(t[zv]={}))[r])&&u[0]===jv&&u[1]===i)return c[2]=u[2];if((s[r]=c)[2]=e(t,n,a))return!0}}}function _n(e){return 1<e.length?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function An(e,t,n,r,o){for(var i,a=[],u=0,s=e.length,c=null!=t;u<s;u++)(i=e[u])&&(n&&!n(i,r,o)||(a.push(i),c&&t.push(u)));return a}function Rn(e){return void 0!==e}function Dn(e){return"string"==typeof e}function Tn(e,t){var n,r=(t=t||xb).createElement("div"),o=t.createDocumentFragment();for(r.innerHTML=e;n=r.firstChild;)o.appendChild(n);return o}function On(e,t){return e&&t&&-1!==(" "+e.className+" ").indexOf(" "+t+" ")}function Bn(e,t,n){var r,o;return t=Ib(t)[0],e.each(function(){n&&r===this.parentNode||(r=this.parentNode,o=t.cloneNode(!1),this.parentNode.insertBefore(o,this)),o.appendChild(this)}),e}function Pn(e,t){return new Ib.fn.init(e,t)}function Ln(e){return null==e?"":(""+e).replace(Pb,"")}function In(e,t){var n,r,o,i;if(e)if(void 0===(n=e.length)){for(r in e)if(e.hasOwnProperty(r)&&(i=e[r],!1===t.call(i,r,i)))break}else for(o=0;o<n&&(i=e[o],!1!==t.call(i,o,i));o++);return e}function Mn(e,t){var n=[];return In(e,function(e,r){t(r,e)&&n.push(r)}),n}function Fn(e,t,n){var r=[],o=e[t];for("string"!=typeof n&&n instanceof Ib&&(n=n[0]);o&&9!==o.nodeType;){if(void 0!==n){if(o===n)break;if("string"==typeof n&&Ib(o).is(n))break}1===o.nodeType&&r.push(o),o=o[t]}return r}function Un(e,t,n,r){var o=[];for(r instanceof Ib&&(r=r[0]);e;e=e[t])if(!n||e.nodeType===n){if(void 0!==r){if(e===r)break;if("string"==typeof r&&Ib(e).is(r))break}o.push(e)}return o}function zn(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType===n)return e;return null}function Hn(e,t){var n=t.attr("style"),r=e.serialize(e.parse(n),t[0].nodeName)||null;t.attr("data-mce-style",r)}function jn(e,t){var n,r,o=0;if(e)for(n=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)r=e.nodeType,(!t||3!==r||r!==n&&e.nodeValue.length)&&(o++,n=r);return o}function Vn(e){void 0===e&&(e={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=e}function qn(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}function $n(){return K(Wb,Kb.get())}function Wn(){function e(){return n.get().each(t)}var t,n,r=(t=s,n=qn(Kg.none()),{clear:function(){e(),n.set(Kg.none())},isSet:function(){return n.get().isSome()},get:function(){return n.get()},set:function(t){e(),n.set(Kg.some(t))}});return rp(rp({},r),{on:function(e){return r.get().each(e)}})}function Kn(e,t){var n=null;return{cancel:function(){Fg(n)||(clearTimeout(n),n=null)},throttle:function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];Fg(n)&&(n=setTimeout(function(){n=null,e.apply(null,r)},t))}}}function Xn(e,t){function n(){Fg(r)||(clearTimeout(r),r=null)}var r=null;return{cancel:n,throttle:function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n(),r=setTimeout(function(){r=null,e.apply(null,o)},t)}}}function Yn(e,t){var n=dt(e,t);return void 0===n||""===n?[]:n.split(" ")}function Gn(e){return void 0!==e.dom.classList}function Jn(e,t){var n,r,o;Gn(e)?e.dom.classList.add(t):(r=t,o=Yn(n=e,"class").concat([r]),lt(n,"class",o.join(" ")))}function Qn(e,t){return Gn(e)&&e.dom.classList.contains(t)}function Zn(e,t){return pe(n=void 0===e?document:e.dom)?[]:S(n.querySelectorAll(t),Lp.fromDom);var n}function er(e,t){function n(e,t){return(n=e.dom)&&n.hasAttribute&&n.hasAttribute(t)?Kg.some(dt(e,t)):Kg.none();var n}var r=e.selection.getRng(),o=Lp.fromDom(r.startContainer),i=Lp.fromDom(e.getBody()),a=t.fold(function(){return"."+Jb()},function(e){return"["+Qb()+'="'+e+'"]'});return Dt(Be(o,r.startOffset).getOr(o),a,function(e){return he(e,i)}).bind(function(t){return n(t,""+Zb()).bind(function(r){return n(t,""+Qb()).map(function(t){var n=ey(e,r);return{uid:r,name:t,elements:n}})})})}function tr(e){function t(){return{listeners:[],previous:Wn()}}function n(e,t){r(e,function(e){return t(e),e})}function r(e,n){var r=o.get(),i=n(K(r,e).getOrThunk(t));r[e]=i,o.set(r)}var o=qn({}),i=Xn(function(){var t=o.get();E(M(Qg(t)),function(t){r(t,function(r){var o=r.previous.get();return er(e,Kg.some(t)).fold(function(){var e;o.isSome()&&(n(e=t,function(t){E(t.listeners,function(t){return t(!1,e)})}),r.previous.clear())},function(e){var t,i,a,u=e.uid,s=e.name,c=e.elements;at(o,u)||(i=u,a=c,n(t=s,function(e){E(e.listeners,function(e){return e(!0,t,{uid:i,nodes:S(a,function(e){return e.dom})})})}),r.previous.set(u))}),{previous:r.previous,listeners:r.listeners}})})},30);return e.on("remove",function(){i.cancel()}),e.on("NodeChange",function(){i.throttle()}),{addListener:function(e,t){r(e,function(e){return{previous:e.previous,listeners:e.listeners.concat([t])}})}}}function nr(e){var t=(new Date).getTime();return e+"_"+Math.floor(1e9*Math.random())+ ++ty+String(t)}function rr(e,t){var n,r,o=ke(e).dom,i=Lp.fromDom(o.createDocumentFragment());Ve(i,(n=t,(r=(o||document).createElement("div")).innerHTML=n,zp(Lp.fromDom(r)))),qe(e),qp(e,i)}function or(e,t){return Lp.fromDom(e.dom.cloneNode(t))}function ir(e){return or(e,!1)}function ar(e){return or(e,!0)}function ur(e,t,n){function r(e){for(var t;(t=o[e]())&&!Qp(t)&&!n(t););return Kg.from(t).filter(Qp)}void 0===n&&(n=Vg);var o=new jh(e,t);return{current:function(){return Kg.from(o.current()).filter(Qp)},next:function(){return r("next")},prev:function(){return r("prev")},prev2:function(){return r("prev2")}}}function sr(e,t){var n=t||function(t){return e.isBlock(t)||nh(t)||ih(t)},r=function(e,t,n,o){if(Qp(e)){var i=o(e,t,e.data);if(-1!==i)return Kg.some({container:e,offset:i})}return n().bind(function(e){return r(e.container,e.offset,n,o)})};return{backwards:function(e,t,o,i){var a=ur(e,i,n);return r(e,t,function(){return a.prev().map(function(e){return{container:e,offset:e.length}})},o).getOrNull()},forwards:function(e,t,o,i){var a=ur(e,i,n);return r(e,t,function(){return a.next().map(function(e){return{container:e,offset:0}})},o).getOrNull()}}}function cr(e){return e?{left:ny(e.left),top:ny(e.top),bottom:ny(e.bottom),right:ny(e.right),width:ny(e.width),height:ny(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}}function lr(e,t){return e=cr(e),t||(e.left=e.left+e.width),e.right=e.left,e.width=0,e}function fr(e,t,n){return 0<=e&&e<=Math.min(t.height,n.height)/2}function dr(e,t){var n=Math.min(t.height/2,e.height/2);return e.bottom-n<t.top||!(e.top>t.bottom)&&fr(t.top-e.bottom,e,t)}function mr(e,t){return e.top>t.bottom||!(e.bottom<t.top)&&fr(t.bottom-e.top,e,t)}function gr(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}function pr(e){var t=e.startContainer,n=e.startOffset;return t.hasChildNodes()&&e.endOffset===n+1?t.childNodes[n]:null}function hr(e,t){if(Gp(e)&&e.hasChildNodes()){var n=e.childNodes;return n[(r=n.length-1,Math.min(Math.max(t,0),r))]}return e;var r}function vr(e){return"string"==typeof e&&768<=e.charCodeAt(0)&&ry.test(e)}function br(e){return"createRange"in e?e.createRange():Hb.DOM.createRng()}function yr(e){return e&&/[\r\n\t ]/.test(e)}function Cr(e){return e.setStart&&e.setEnd}function xr(e){var t=e.startContainer,n=e.startOffset;if(yr(e.toString())&&cy(t.parentNode)&&Qp(t)){var r=t.data;return yr(r[n-1])||yr(r[n+1])?1:void 0}}function wr(e){return 0===e.left&&0===e.right&&0===e.top&&0===e.bottom}function Sr(e,t){var n=lr(e,t);return n.width=1,n.right=n.left+1,n}function Er(e,t){Qp(t)&&0===t.data.length&&e.remove(t)}function kr(e,t,n){var r,o,i,a,u,s,c;th(n)?(i=e,a=t,s=Kg.from((u=n).firstChild),c=Kg.from(u.lastChild),a.insertNode(u),s.each(function(e){return Er(i,e.previousSibling)}),c.each(function(e){return Er(i,e.nextSibling)})):(r=e,t.insertNode(o=n),Er(r,o.previousSibling),Er(r,o.nextSibling))}function Nr(e){return function(t){return e===t}}function _r(e){var t,n,r,o;return(by(e)?"text()":e.nodeName.toLowerCase())+"["+(r=ee(n=wy(xy(t=e)),Nr(t),t),o=Z(n=n.slice(0,r+1),function(e,t,r){return by(t)&&by(n[r-1])&&e++,e},0),ee(n=J(n,et([t.nodeName])),Nr(t),t)-o)+"]"}function Ar(e,t){var n,r,o,i=[],a=t.container(),u=t.offset();return by(a)?n=function(e,t){for(;(e=e.previousSibling)&&by(e);)t+=e.data.length;return t}(a,u):(u>=(r=a.childNodes).length?(n="after",u=r.length-1):n="before",a=r[u]),i.push(_r(a)),o=J(function(e,t){var n=[];for(t=t.parentNode;t!==e;t=t.parentNode)n.push(t);return n}(e,a),p(rt)),(i=i.concat(G(o,_r))).reverse().join("/")+","+n}function Rr(e,t){if(!t)return null;var n=t.split(","),r=n[0].split("/"),o=1<n.length?n[1]:"before",i=Z(r,function(e,t){var n,r,o,i,a=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(t);return a?("text()"===a[1]&&(a[1]="#text"),n=e,r=a[1],o=parseInt(a[2],10),(i=J(i=J(i=wy(n),function(e,t){return!by(e)||!by(i[t-1])}),et([r])))[o]):null},e);return i?by(i)?function(e,t){for(var n,r=e,o=0;by(r);){if(n=r.data.length,o<=t&&t<=o+n){e=r,t-=o;break}if(!by(r.nextSibling)){e=r,t=n;break}o+=n,r=r.nextSibling}return by(e)&&t>e.data.length&&(t=e.data.length),py(e,t)}(i,parseInt(o,10)):(o="after"===o?Cy(i)+1:Cy(i),py(i.parentNode,o)):null}function Dr(e,t,n,r,o){var i,a=r[o?"startContainer":"endContainer"],u=r[o?"startOffset":"endOffset"],s=[],c=0,l=e.getRoot();for(Qp(a)?s.push(n?function(e,t,n){for(var r=e(t.data.slice(0,n)).length,o=t.previousSibling;o&&Qp(o);o=o.previousSibling)r+=e(o.data).length;return r}(t,a,u):u):(u>=(i=a.childNodes).length&&i.length&&(c=1,u=Math.max(0,i.length-1)),s.push(e.nodeIndex(i[u],n)+c));a&&a!==l;a=a.parentNode)s.push(e.nodeIndex(a,n));return s}function Tr(e,t,n){var r=0;return Pp.each(e.select(t),function(e){if("all"!==e.getAttribute("data-mce-bogus"))return e!==n&&void r++}),r}function Or(e,t){var n,r=t?"start":"end",o=e[r+"Container"],i=e[r+"Offset"];Gp(o)&&"TR"===o.nodeName&&(o=(n=o.childNodes)[Math.min(t?i:i-1,n.length-1)])&&(i=t?0:o.childNodes.length,e["set"+(t?"Start":"End")](o,i))}function Br(e){return Or(e,!0),Or(e,!1),e}function Pr(e,t){var n;return Gp(e)&&(e=hr(e,t),Sy(e))?e:Ht(e)?(n=(e=Qp(e)&&Ut(e)?e.parentNode:e).previousSibling,Sy(n)?n:(n=e.nextSibling,Sy(n)?n:void 0)):void 0}function Lr(e,t,n){var r=n.getNode(),o=r?r.nodeName:null,i=n.getRng();if(Sy(r)||"IMG"===o)return{name:o,index:Tr(n.dom,o,r)};var a,u,s,c,l,f,d,m=Pr((a=i).startContainer,a.startOffset)||Pr(a.endContainer,a.endOffset);return m?{name:o=m.tagName,index:Tr(n.dom,o,m)}:(f=(s=n).dom,(d={}).start=Dr(f,u=e,c=t,l=i,!0),s.isCollapsed()||(d.end=Dr(f,u,c,l,!1)),Wt(l)&&(d.isFakeCaret=!0),d)}function Ir(e,t,n){var r={"data-mce-type":"bookmark",id:t,style:"overflow:hidden;line-height:0px"};return n?e.create("span",r,""):e.create("span",r)}function Mr(e,t){var n=e.dom,r=e.getRng(),o=n.uniqueId(),i=e.isCollapsed(),a=e.getNode(),u=a.nodeName;if("IMG"===u)return{name:u,index:Tr(n,u,a)};var s=Br(r.cloneRange());return i||(s.collapse(!1),kr(n,s,Ir(n,o+"_end",t))),(r=Br(r)).collapse(!0),kr(n,r,Ir(n,o+"_start",t)),e.moveToBookmark({id:o,keep:!0}),{id:o}}function Fr(e,t,n){var r=e.getParam(t,n);return-1===r.indexOf("=")?r:K(e.getParam(t,"","hash"),e.id).getOr(n)}function Ur(e){return e.getParam("content_security_policy","")}function zr(e){if(e.getParam("force_p_newlines",!1))return"p";var t=e.getParam("forced_root_block","p");return!1===t?"":!0===t?"p":t}function Hr(e){return e.getParam("forced_root_block_attrs",{})}function jr(e){return e.getParam("automatic_uploads",!0,"boolean")}function Vr(e){return e.getParam("icons","","string")}function qr(e){return e.getParam("referrer_policy","","string")}function $r(e){return e.getParam("language","en","string")}function Wr(e){return e.getParam("indent_use_margin",!1)}function Kr(e){var t=e.getParam("font_css",[]);return Mg(t)?t:S(t.split(","),up)}function Xr(e){var t=e.getParam("object_resizing");return!1!==t&&!Tp.iOS&&(Lg(t)?t:"table,img,figure.image,div,video,iframe")}function Yr(e){return e.getParam("event_root")}function Gr(e){return e.getParam("theme")}function Jr(e){return!1!==e.getParam("inline_boundaries")}function Qr(e){return e.getParam("plugins","","string")}function Zr(e){var t=e.parentNode;t&&t.removeChild(e)}function eo(e){var t=tv(e);return{count:e.length-t.length,text:t}}function to(e){for(var t;-1!==(t=e.data.lastIndexOf(Zh));)e.deleteData(t,1)}function no(e,t){return Ay(e),t}function ro(e,t){var n,r=t.container(),o=(-1===(n=C(Jg(r.childNodes),e))?Kg.none():Kg.some(n)).map(function(e){return e<t.offset()?py(r,t.offset()-1):t}).getOr(t);return Ay(e),o}function oo(e,t){return py.isTextPosition(t)?(r=t,_y(n=e)&&r.container()===n?(a=eo((o=n).data.substr(0,(i=r).offset())),u=eo(o.data.substr(i.offset())),0<(a.text+u.text).length?(to(o),py(o,i.offset()-a.count)):i):no(n,r)):(s=e,((c=t).container()===s.parentNode?ro:no)(s,c));var n,r,o,i,a,u,s,c}function io(e,t,n){var r,o,i,a=lr(t.getBoundingClientRect(),n),u="BODY"===e.tagName?(r=e.ownerDocument.documentElement,o=e.scrollLeft||r.scrollLeft,e.scrollTop||r.scrollTop):(i=e.getBoundingClientRect(),o=e.scrollLeft-i.left,e.scrollTop-i.top);a.left+=o,a.right+=o,a.top+=u,a.bottom+=u,a.width=1;var s=t.offsetWidth-t.clientWidth;return 0<s&&(n&&(s*=-1),a.left+=s,a.right+=s),a}function ao(e,t,n,r){function o(){!function(){for(var e=Zn(Lp.fromDom(t),"*[contentEditable=false],video,audio,embed,object"),n=0;n<e.length;n++){var r,o=e[n].dom,i=o.previousSibling;iv(i)&&(1===(r=i.data).length?i.parentNode.removeChild(i):i.deleteData(r.length-1,1)),i=o.nextSibling,ov(i)&&(1===(r=i.data).length?i.parentNode.removeChild(i):i.deleteData(0,1))}}(),a&&(Ay(a),a=null),u.on(function(e){Ib(e.caret).remove(),u.clear()}),i&&(zh.clearInterval(i),i=void 0)}var i,a,u=Wn(),s=zr(e),c=0<s.length?s:"p";return{show:function(e,s){var l;if(o(),Oy(s))return null;if(!n(s))return a=function(e,t){var n=e.ownerDocument.createTextNode(Zh),r=e.parentNode;if(t){if(o=e.previousSibling,rv(o)){if(Ht(o))return o;if(iv(o))return o.splitText(o.data.length-1)}r.insertBefore(n,e)}else{var o=e.nextSibling;if(rv(o)){if(Ht(o))return o;if(ov(o))return o.splitText(1),o}e.nextSibling?r.insertBefore(n,e.nextSibling):r.appendChild(n)}return n}(s,e),l=s.ownerDocument.createRange(),By(a.nextSibling)?(l.setStart(a,0),l.setEnd(a,0)):(l.setStart(a,1),l.setEnd(a,1)),l;a=function(e,t,n){var r,o=t.ownerDocument.createElement(e);o.setAttribute("data-mce-caret",n?"before":"after"),o.setAttribute("data-mce-bogus","all"),o.appendChild(((r=document.createElement("br")).setAttribute("data-mce-bogus","1"),r));var i=t.parentNode;return n?i.insertBefore(o,t):t.nextSibling?i.insertBefore(o,t.nextSibling):i.appendChild(o),o}(c,s,e);var f=io(t,s,e);Ib(a).css("top",f.top);var d=Ib('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(rp({},f)).appendTo(t)[0];return u.set({caret:d,element:s,before:e}),e&&Ib(d).addClass("mce-visual-caret-before"),i=zh.setInterval(function(){r()?Ib("div.mce-visual-caret",t).toggleClass("mce-visual-caret-hidden"):Ib("div.mce-visual-caret",t).addClass("mce-visual-caret-hidden")},500),(l=s.ownerDocument.createRange()).setStart(a,0),l.setEnd(a,0),l},hide:o,getCss:function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"},reposition:function(){u.on(function(e){var n=io(t,e.element,e.before);Ib(e.caret).css(rp({},n))})},destroy:function(){return zh.clearInterval(i)}}}function uo(){return Ry.isIE()||Ry.isEdge()||Ry.isFirefox()}function so(e){return By(e)||ot(e)&&uo()}function co(e,t){for(var n;n=e(t);)if(!Fy(n))return n;return null}function lo(e,t,n,r,o){var i=new jh(e,r),a=Py(e)||Fy(e);if(t<0){if(a&&n(e=co(i.prev.bind(i),!0)))return e;for(;e=co(i.prev.bind(i),o);)if(n(e))return e}if(0<t){if(a&&n(e=co(i.next.bind(i),!0)))return e;for(;e=co(i.next.bind(i),o);)if(n(e))return e}return null}function fo(e,t){for(;e&&e!==t;){if(Iy(e))return e;e=e.parentNode}return null}function mo(e,t,n){return fo(e.container(),n)===fo(t.container(),n)}function go(e,t){if(!t)return null;var n=t.container(),r=t.offset();return Uy(n)?n.childNodes[r+e]:null}function po(e,t){var n=t.ownerDocument.createRange();return e?(n.setStartBefore(t),n.setEndBefore(t)):(n.setStartAfter(t),n.setEndAfter(t)),n}function ho(e,t,n){for(var r,o,i=e?"previousSibling":"nextSibling";n&&n!==t;){var a=n[i];if(My(a)&&(a=a[i]),Py(a)||Ly(a)){if(o=n,fo(a,r=t)===fo(o,r))return a;break}if(zy(a))break;n=n.parentNode}return null}function vo(e,t,n){var r,o=g(ho,!0,t),i=g(ho,!1,t),a=n.startContainer,u=n.startOffset;if(Ut(a)){var s=(a=Uy(a)?a:a.parentNode).getAttribute("data-mce-caret");if("before"===s&&so(r=a.nextSibling))return Hy(r);if("after"===s&&so(r=a.previousSibling))return jy(r)}if(!n.collapsed)return n;if(Qp(a)){if(My(a)){if(1===e){if(r=i(a))return Hy(r);if(r=o(a))return jy(r)}if(-1===e){if(r=o(a))return jy(r);if(r=i(a))return Hy(r)}return n}if(iv(a)&&u>=a.data.length-1)return 1===e&&(r=i(a))?Hy(r):n;if(ov(a)&&u<=1)return-1===e&&(r=o(a))?jy(r):n;if(u===a.data.length)return(r=i(a))?Hy(r):n;if(0===u)return(r=o(a))?jy(r):n}return n}function bo(e,t){return Kg.from(go(e?0:-1,t)).filter(Py)}function yo(e,t,n){var r=vo(e,t,n);return-1===e?py.fromRangeStart(r):py.fromRangeEnd(r)}function Co(e){return Kg.from(e.getNode()).map(Lp.fromDom)}function xo(e,t){for(;t=e(t);)if(t.isVisible())return t;return t}function wo(e,t){var n=mo(e,t);return!(n||!nh(e.getNode()))||n}function So(e,t){return e.hasChildNodes()&&t<e.childNodes.length?e.childNodes[t]:null}function Eo(e,t){if(0<e){if(Gy(t.previousSibling)&&!Ky(t.previousSibling))return py.before(t);if(Ky(t))return py(t,0)}if(e<0){if(Gy(t.nextSibling)&&!Ky(t.nextSibling))return py.after(t);if(Ky(t))return py(t,t.data.length)}return e<0&&!Yy(t)?py.after(t):py.before(t)}function ko(e){return{next:function(t){return Qy(hy.Forwards,t,e)},prev:function(t){return Qy(hy.Backwards,t,e)}}}function No(e){return py.isTextPosition(e)?0===e.offset():Kt(e.getNode())}function _o(e){if(py.isTextPosition(e)){var t=e.container();return e.offset()===t.data.length}return Kt(e.getNode(!0))}function Ao(e,t){return!py.isTextPosition(e)&&!py.isTextPosition(t)&&e.getNode()===t.getNode(!0)}function Ro(e,t,n){return Zy(e,t,n).bind(function(r){return mo(n,r,t)&&(o=n,i=r,e?!Ao(o,i)&&(py.isTextPosition(a=o)||!nh(a.getNode()))&&_o(o)&&No(i):!Ao(i,o)&&No(o)&&_o(i))?Zy(e,t,r):Kg.some(r);var o,i,a})}function Do(e,t){var n,r,o,i,a,u=e?t.firstChild:t.lastChild;return Qp(u)?Kg.some(py(u,e?0:u.data.length)):u?Kt(u)?Kg.some(e?py.before(u):nh(a=u)?py.before(a):py.after(a)):(r=t,o=u,i=(n=e)?py.before(o):py.after(o),Zy(n,r,i)):Kg.none()}function To(e){return Gp(e)&&e.id===iC}function Oo(e,t){for(;t&&t!==e;){if(t.id===iC)return t;t=t.parentNode}return null}function Bo(e){return Pp.isArray(e.start)}function Po(e,t){return Gp(t)&&e.isBlock(t)&&!t.innerHTML&&!Tp.ie&&(t.innerHTML='<br data-mce-bogus="1" />'),t}function Lo(e,t,n){return!1===t.hasChildNodes()&&Oo(e,t)&&(o=n,i=(r=t).ownerDocument.createTextNode(Zh),r.appendChild(i),o.setStart(i,0),o.setEnd(i,0),1);var r,o,i}function Io(e,t,n,r){var o,i,a,u,s=n[t?"start":"end"],c=e.getRoot();if(s){for(a=s[0],i=c,o=s.length-1;1<=o;o--){if(u=i.childNodes,Lo(c,i,r))return 1;if(s[o]>u.length-1)return Lo(c,i,r)||function(e){return oC(i).fold(Vg,function(t){return e.setStart(t.container(),t.offset()),e.setEnd(t.container(),t.offset()),!0})}(r);i=u[s[o]]}3===i.nodeType&&(a=Math.min(s[0],i.nodeValue.length)),1===i.nodeType&&(a=Math.min(s[0],i.childNodes.length)),t?r.setStart(i,a):r.setEnd(i,a)}return 1}function Mo(e){return Qp(e)&&0<e.data.length}function Fo(e,t,n){var r,o,i,a,u,s,c=e.get(n.id+"_"+t),l=n.keep;if(c){if(r=c.parentNode,o="start"===t?l?c.hasChildNodes()?(r=c.firstChild,1):Mo(c.nextSibling)?(r=c.nextSibling,0):Mo(c.previousSibling)?(r=c.previousSibling,c.previousSibling.data.length):(r=c.parentNode,e.nodeIndex(c)+1):e.nodeIndex(c):l?c.hasChildNodes()?(r=c.firstChild,1):Mo(c.previousSibling)?(r=c.previousSibling,c.previousSibling.data.length):(r=c.parentNode,e.nodeIndex(c)):e.nodeIndex(c),u=r,s=o,!l){for(a=c.previousSibling,i=c.nextSibling,Pp.each(Pp.grep(c.childNodes),function(e){Qp(e)&&(e.nodeValue=e.nodeValue.replace(/\uFEFF/g,""))});c=e.get(n.id+"_"+t);)e.remove(c,!0);a&&i&&a.nodeType===i.nodeType&&Qp(a)&&!Tp.opera&&(o=a.nodeValue.length,a.appendData(i.nodeValue),e.remove(i),u=a,s=o)}return Kg.some(py(u,s))}return Kg.none()}function Uo(e,t){(function(e,t){var n,r,o,i,a,u,s,c,l,f,d,m,g=e.dom;if(t){if(Bo(t))return d=t,m=(f=g).createRng(),Io(f,!0,d,m)&&Io(f,!1,d,m)?Kg.some(m):Kg.none();if(Lg(t.start))return Kg.some((s=t,c=(u=g).createRng(),l=Rr(u.getRoot(),s.start),c.setStart(l.container(),l.offset()),l=Rr(u.getRoot(),s.end),c.setEnd(l.container(),l.offset()),c));if(tp(t,"id"))return ut(a=Fo(o=g,"start",i=t),Fo(o,"end",i).or(a),function(e,t){var n=o.createRng();return n.setStart(Po(o,e.container()),e.offset()),n.setEnd(Po(o,t.container()),t.offset()),n});if(tp(t,"name"))return n=g,Kg.from(n.select((r=t).name)[r.index]).map(function(e){var t=n.createRng();return t.selectNode(e),t});if(tp(t,"rng"))return Kg.some(t.rng)}return Kg.none()})(e,t).each(function(t){e.setRng(t)})}function zo(e){return Gp(e)&&"SPAN"===e.tagName&&"bookmark"===e.getAttribute("data-mce-type")}function Ho(e){return""!==e&&-1!==" \f\n\r\t\x0B".indexOf(e)}function jo(e){return!Ho(e)&&!uC(e)}function Vo(e){return e.nodeType}function qo(e,t,n){var r,o=n.startOffset,i=n.startContainer;if((i!==n.endContainer||!(r=i.childNodes[o])||!/^(IMG)$/.test(r.nodeName))&&Gp(i)){var a=i.childNodes,u=void 0;o<a.length?(i=a[o],u=new jh(i,e.getParent(i,e.isBlock))):(i=a[a.length-1],(u=new jh(i,e.getParent(i,e.isBlock))).next(!0));for(var s=u.current();s;s=u.next())if(Qp(s)&&!sC(s))return n.setStart(s,0),t.setRng(n),0}}function $o(e,t,n){if(e){var r=t?"nextSibling":"previousSibling";for(e=n?e:e[r];e;e=e[r])if(Gp(e)||!sC(e))return e}}function Wo(e,t){return Vo(t)&&(t=t.nodeName),!!e.schema.getTextBlockElements()[t.toLowerCase()]}function Ko(e,t,n){return e.schema.isValidChild(t,n)}function Xo(e,t){return Hg(e)?e=e(t):u(t)&&(e=e.replace(/%(\w+)/g,function(e,n){return t[n]||e})),e}function Yo(e,t){return e=""+((e=e||"").nodeName||e),t=""+((t=t||"").nodeName||t),e.toLowerCase()===t.toLowerCase()}function Go(e,t,n){return"color"!==n&&"backgroundColor"!==n||(t=e.toHex(t)),"fontWeight"===n&&700===t&&(t="bold"),""+("fontFamily"===n?t.replace(/[\'\"]/g,"").replace(/,\s+/g,","):t)}function Jo(e,t,n){return Go(e,e.getStyle(t,n),n)}function Qo(e,t){var n;return e.getParent(t,function(t){return(n=e.getStyle(t,"text-decoration"))&&"none"!==n}),n}function Zo(e,t,n){return e.getParents(t,n,e.getRoot())}function ei(e,t){return w(e.formatter.get(t),function(e){function t(e){return 1<e.length&&"%"===e.charAt(0)}return w(["styles","attributes"],function(n){return K(e,n).exists(function(e){var n,r;return w(Mg(e)?e:(n=d,r=[],j(e,function(e,t){r.push(n(e,t))}),r),t)})})})}function ti(e){return X(e,"block")}function ni(e){return X(e,"selector")}function ri(e){return X(e,"inline")}function oi(e){return ni(e)&&!1!==e.expand&&!ri(e)}function ii(e,t){for(var n=t;n;){if(Gp(n)&&e.getContentEditable(n))return"false"===e.getContentEditable(n)?n:t;n=n.parentNode}return t}function ai(e,t,n,r){for(var o=t.data,i=n;e?0<=i:i<o.length;e?i--:i++)if(r(o.charAt(i)))return e?i+1:i;return-1}function ui(e,t,n){return ai(e,t,n,function(e){return uC(e)||Ho(e)})}function si(e,t,n){return ai(e,t,n,jo)}function ci(e,t,n,r,o,i){function a(t,n,r){var i=sr(e),a=o?i.backwards:i.forwards;return Kg.from(a(t,n,function(e,t){return cC(e.parentNode)?-1:r(o,u=e,t)},s))}var u,s=e.getParent(n,e.isBlock)||t;return a(n,r,ui).bind(function(e){return i?a(e.container,e.offset+(o?-1:0),si):Kg.some(e)}).orThunk(function(){return u?Kg.some({container:u,offset:o?0:u.length}):Kg.none()})}function li(e,t,n,r,o){Qp(r)&&se(r.data)&&r[o]&&(r=r[o]);for(var i=lC(e,r),a=0;a<i.length;a++)for(var s=0;s<t.length;s++){var c=t[s];if((!u(c.collapsed)||c.collapsed===n.collapsed)&&ni(c)&&e.is(i[a],c.selector))return i[a]}return r}function fi(e,t,n,r){var o,i=n,a=e.dom,u=a.getRoot(),s=t[0];if((i=ti(s)?s.wrapper?null:a.getParent(n,s.block,u):i)||(o=a.getParent(n,"LI,TD,TH"),i=a.getParent(Qp(n)?n.parentNode:n,function(t){return t!==u&&dC(e,t)},o)),!(i=i&&ti(s)&&s.wrapper&&lC(a,i,"ul,ol").reverse()[0]||i))for(i=n;i[r]&&!a.isBlock(i[r])&&!Yo(i=i[r],"br"););return i||n}function di(e,t,n,r,o){var i,a=n,u=o?"previousSibling":"nextSibling",s=e.getRoot();if(Qp(n)&&!fC(n)&&(o?0<r:r<n.data.length))return n;for(;;){if(!t[0].block_expand&&e.isBlock(a))return a;for(var c=a[u];c;c=c[u]){var l=Qp(c)&&!mC(e,s,c,u);if(!cC(c)&&(!nh(i=c)||!i.getAttribute("data-mce-bogus")||i.nextSibling)&&!fC(c,l))return a}if(a===s||a.parentNode===s){n=a;break}a=a.parentNode}return n}function mi(e){return cC(e.parentNode)||cC(e)}function gi(e,t,n,r){void 0===r&&(r=!1);var o=t.startContainer,i=t.startOffset,a=t.endContainer,u=t.endOffset,s=e.dom,c=n[0];return Gp(o)&&o.hasChildNodes()&&(o=hr(o,i),Qp(o)&&(i=0)),Gp(a)&&a.hasChildNodes()&&(a=hr(a,t.collapsed?u:u-1),Qp(a)&&(u=a.nodeValue.length)),o=ii(s,o),a=ii(s,a),mi(o)&&(o=cC(o)?o:o.parentNode,o=t.collapsed?o.previousSibling||o:o.nextSibling||o,Qp(o)&&(i=t.collapsed?o.length:0)),mi(a)&&(a=cC(a)?a:a.parentNode,a=t.collapsed?a.nextSibling||a:a.previousSibling||a,Qp(a)&&(u=t.collapsed?0:a.length)),t.collapsed&&(ci(s,e.getBody(),o,i,!0,r).each(function(e){var t=e.container,n=e.offset;o=t,i=n}),ci(s,e.getBody(),a,u,!1,r).each(function(e){var t=e.container,n=e.offset;a=t,u=n})),(ri(c)||c.block_expand)&&(ri(c)&&Qp(o)&&0!==i||(o=di(s,n,o,i,!0)),ri(c)&&Qp(a)&&u!==a.nodeValue.length||(a=di(s,n,a,u,!1))),oi(c)&&(o=li(s,n,t,o,"previousSibling"),a=li(s,n,t,a,"nextSibling")),(ti(c)||ni(c))&&(o=fi(e,n,o,"previousSibling"),a=fi(e,n,a,"nextSibling"),ti(c)&&(s.isBlock(o)||(o=di(s,n,o,i,!0)),s.isBlock(a)||(a=di(s,n,a,u,!1)))),Gp(o)&&(i=s.nodeIndex(o),o=o.parentNode),Gp(a)&&(u=s.nodeIndex(a)+1,a=a.parentNode),{startContainer:o,startOffset:i,endContainer:a,endOffset:u}}function pi(e,t,n){function r(e){var t=e[0];Qp(t)&&t===s&&u>=t.data.length&&e.splice(0,1);var n=e[e.length-1];return 0===c&&0<e.length&&n===l&&Qp(n)&&e.splice(e.length-1,1),e}function o(e,t,n){for(var r=[];e&&e!==n;e=e[t])r.push(e);return r}function i(t,n){return e.getParent(t,function(e){return e.parentNode===n},n)}function a(e,t,i){var a=i?"nextSibling":"previousSibling",u=e;for(u.parentNode;u&&u!==t;u=s){var s=u.parentNode,c=o(u===e?u:u[a],a);c.length&&(i||c.reverse(),n(r(c)))}}var u=t.startOffset,s=hr(t.startContainer,u),c=t.endOffset,l=hr(t.endContainer,c-1);if(s===l)return n(r([s]));var f=e.findCommonAncestor(s,l);if(e.isChildOf(s,l))return a(s,f,!0);if(e.isChildOf(l,s))return a(l,f);var d=i(s,f)||s,m=i(l,f)||l;a(s,d,!0);var g=o(d===s?d:d.nextSibling,"nextSibling",m===l?m.nextSibling:m);g.length&&n(r(g)),a(l,m)}function hi(e){var t=[];if(e)for(var n=0;n<e.rangeCount;n++)t.push(e.getRangeAt(n));return t}function vi(e,t){var n=Zn(t,"td[data-mce-selected],th[data-mce-selected]");return 0<n.length?n:_(B(e,function(e){var t=pr(e);return t?[Lp.fromDom(t)]:[]}),Yh)}function bi(e){return vi(hi(e.selection.getSel()),Lp.fromDom(e.getBody()))}function yi(e,t){return At(e,"table",t)}function Ci(e,t){return ut((o=t.startContainer,i=t.startOffset,Qp(o)?0===i?Kg.some(Lp.fromDom(o)):Kg.none():Kg.from(o.childNodes[i]).map(Lp.fromDom)),(n=t.endContainer,r=t.endOffset,Qp(n)?r===n.data.length?Kg.some(Lp.fromDom(n)):Kg.none():Kg.from(n.childNodes[r-1]).map(Lp.fromDom)),function(t,n){var r=T(gC(e),g(he,t)),o=T(pC(e),g(he,n));return r.isSome()&&o.isSome()}).getOr(!1);var n,r,o,i}function xi(e,t,n,r){var o=n,i=new jh(n,o),a=W(e.schema.getMoveCaretBeforeOnEnterElements(),function(e,t){return!x(["td","th","table"],t.toLowerCase())});do{if(Qp(n)&&0!==Pp.trim(n.nodeValue).length)return r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length),0;if(a[n.nodeName])return r?t.setStartBefore(n):"BR"===n.nodeName?t.setEndBefore(n):t.setEndAfter(n),0}while(n=r?i.next():i.prev());"BODY"===o.nodeName&&(r?t.setStart(o,0):t.setEnd(o,o.childNodes.length))}function wi(e){var t=e.selection.getSel();return t&&0<t.rangeCount}function Si(e,t){var n=bi(e);0<n.length?E(n,function(n){var r=n.dom,o=e.dom.createRng();o.setStartBefore(r),o.setEndAfter(r),t(o,!0)}):t(e.selection.getRng(),!1)}function Ei(e,t,n){var r=Mr(e,t);n(r),e.moveToBookmark(r)}function ki(e){return hC.get(e)}function Ni(e,t,n,r){var o=t.uid,i=void 0===o?nr("mce-annotation"):o,a=function(e,t){var n={};for(o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n}(t,["uid"]),u=Lp.fromTag("span",e);Jn(u,Jb()),lt(u,""+Zb(),i),lt(u,""+Qb(),n);var s,c=r(i,a),l=c.attributes,f=c.classes,d=void 0===f?[]:f;return ft(u,void 0===l?{}:l),s=u,E(d,function(e){Jn(s,e)}),u}function _i(e,t,n,r,o){function i(){c.clear()}function a(e){E(e,l)}var u=[],s=Ni(e.getDoc(),o,n,r),c=Wn(),l=function(t){var n,r,o,l,f,d;switch(o=e,f="span",d=we(l=t),Ae(l).fold(function(){return"skipping"},function(e){return"br"===d||Mp(n=l)&&ki(n)===Zh?"valid":Ip(t=l)&&Qn(t,Jb())?"existing":To(l.dom)?"caret":Ko(o,f,d)&&Ko(o,we(e),f)?"valid":"invalid-child";var t,n})){case"invalid-child":i(),a(zp(t)),i();break;case"valid":ze(n=t,r=c.get().getOrThunk(function(){var e=ir(s);return u.push(e),c.set(e),e})),qp(r,n)}};return pi(e.dom,t,function(e){i(),a(S(e,Lp.fromDom))}),u}function Ai(e){var t,n,r,o=(t={},{register:function(e,n){t[e]={name:e,settings:n}},lookup:function(e){return K(t,e).map(function(e){return e.settings})}});r=o,(n=e).on("init",function(){n.serializer.addNodeFilter("span",function(e){E(e,function(e){Kg.from(e.attr(Qb())).bind(r.lookup).each(function(t){!1===t.persistent&&e.unwrap()})})})});var i=tr(e);return{register:function(e,t){o.register(e,t)},annotate:function(t,n){o.lookup(t).each(function(r){var o,i,a,u;i=t,a=r,u=n,
|
24
|
+
(o=e).undoManager.transact(function(){var e,t,n,r,s=o.selection,c=s.getRng(),l=0<bi(o).length;c.collapsed&&!l&&(n=gi(e=o,t=c,[{inline:"span"}]),t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),e.selection.setRng(t)),s.getRng().collapsed&&!l?(rr(r=Ni(o.getDoc(),u,i,a.decorate),Qh),s.getRng().insertNode(r.dom),s.select(r.dom)):Ei(s,!1,function(){Si(o,function(e){_i(o,e,i,a.decorate,u)})})})})},annotationChanged:function(e,t){i.addListener(e,t)},remove:function(t){er(e,Kg.some(t)).each(function(e){E(e.elements,$e)})},getAll:function(t){var n,r,o;return V((n=t,r=Zn(Lp.fromDom(e.getBody()),"["+Qb()+'="'+n+'"]'),o={},E(r,function(e){var t=dt(e,Zb()),n=K(o,t).getOr([]);o[t]=n.concat([e])}),o),function(e){return S(e,function(e){return e.dom})})}}}function Ri(e){return{getBookmark:g(aC,e),moveToBookmark:g(Uo,e)}}function Di(e){return fv(e)||!!gv(t=e)&&!0!==R(Jg(t.getElementsByTagName("*")),function(e,t){return e||av(t)},!1);var t}function Ti(e,t){for(;t&&t!==e;){if(oh(t)||ih(t))return t;t=t.parentNode}return null}function Oi(e,t,n){if(!n.collapsed){if(Tp.browser.isIE()&&n.startOffset===n.endOffset-1&&n.startContainer===n.endContainer){var r=n.startContainer.childNodes[n.startOffset];if(Gp(r))return w(r.getClientRects(),function(n){return gr(n,e,t)})}return w(n.getClientRects(),function(n){return gr(n,e,t)})}}function Bi(e,t,n){return e.fire(t,n)}function Pi(e,t,n,r){return e.fire("FormatApply",{format:t,node:n,vars:r})}function Li(e,t,n,r){return e.fire("FormatRemove",{format:t,node:n,vars:r})}function Ii(e,t){function n(e){return e&&("IMG"===e.nodeName||t.dom.is(e,"figure.image"))}function o(e){return uh(e)||O.hasClass(e,"mce-preview-object")}function i(e){var r=e.target;!function(e,t){if("longpress"!==e.type&&0!==e.type.indexOf("touch"))return n(e.target)&&!Oi(e.clientX,e.clientY,t);var r=e.touches[0];return n(e.target)&&!Oi(r.clientX,r.clientY,t)}(e,t.selection.getRng())||e.isDefaultPrevented()||t.selection.select(r)}function a(e){return O.is(e,"figure.image")?[e.querySelector("img")]:O.hasClass(e,"mce-preview-object")&&u(e.firstElementChild)?[e,e.firstElementChild]:[e]}function s(e){var n=Xr(t);return!!n&&"false"!==e.getAttribute("data-mce-resize")&&e!==t.getBody()&&(O.hasClass(e,"mce-preview-object")?ge(Lp.fromDom(e.firstElementChild),n):ge(Lp.fromDom(e),n))}function c(e,n,r){u(r)&&E(a(e),function(e){e.style[n]||!t.schema.isValid(e.nodeName.toLowerCase(),n)?O.setStyle(e,n,r):O.setAttrib(e,n,""+r)})}function l(e,t,n){c(e,"width",t),c(e,"height",n)}function f(e){var r,i,a,u,s,c,f=e.screenX-C,d=e.screenY-x;_=f*b[2]+w,A=d*b[3]+S,_=_<5?5:_,A=A<5?5:A,((n(p)||o(p))&&!1!==t.getParam("resize_img_proportional",!0,"boolean")?!vC.modifierPressed(e):vC.modifierPressed(e))&&(I(f)>I(d)?(A=M(_*k),_=M(A/k)):(_=M(A/k),A=M(_*k))),l(h,_,A),r=b.startPos.x+f,i=b.startPos.y+d,O.setStyles(v,{left:r=0<r?r:0,top:i=0<i?i:0,display:"block"}),v.innerHTML=_+" × "+A,b[2]<0&&h.clientWidth<=_&&O.setStyle(h,"left",void 0+(w-_)),b[3]<0&&h.clientHeight<=A&&O.setStyle(h,"top",void 0+(S-A)),(f=F.scrollWidth-R)+(d=F.scrollHeight-D)!=0&&O.setStyles(v,{left:r-f,top:i-d}),N||(a=p,u=w,s=S,c="corner-"+b.name,t.fire("ObjectResizeStart",{target:a,width:u,height:s,origin:c}),N=!0)}function d(n){function r(e,t){if(e)do{if(e===t)return 1}while(e=e.parentNode)}var o;N||t.removed||(B(O.select("img[data-mce-selected],hr[data-mce-selected]"),function(e){e.removeAttribute(T)}),o="mousedown"===n.type?n.target:e.getNode(),r(o=O.$(o).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],F)&&(g(),r(e.getStart(!0),o)&&r(e.getEnd(!0),o))?H(o):V())}function m(e){return bC(Ti(t.getBody(),e))}function g(){try{t.getDoc().execCommand("enableObjectResizing",!1,"false")}catch(r){}}var p,h,v,b,y,C,x,w,S,k,N,_,A,R,D,T="data-mce-selected",O=t.dom,B=Pp.each,P=t.getDoc(),L=document,I=Math.abs,M=Math.round,F=t.getBody(),U={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},z=function(){var e,n,r,o,i=N;N=!1,i&&(c(p,"width",_),c(p,"height",A)),O.unbind(P,"mousemove",f),O.unbind(P,"mouseup",z),L!==P&&(O.unbind(L,"mousemove",f),O.unbind(L,"mouseup",z)),O.remove(h),O.remove(v),O.remove(y),H(p),i&&(e=p,n=_,r=A,o="corner-"+b.name,t.fire("ObjectResized",{target:e,width:n,height:r,origin:o}),O.setAttrib(p,"style",O.getAttrib(p,"style"))),t.nodeChanged()},H=function(e){q();var n=O.getPos(e,F),r=n.x,i=n.y,u=e.getBoundingClientRect(),c=u.width||u.right-u.left,d=u.height||u.bottom-u.top;p!==e&&(V(),p=e,_=A=0);var m=t.fire("ObjectSelected",{target:e}),g=O.getAttrib(p,T,"1");s(e)&&!m.isDefaultPrevented()?B(U,function(e,t){var n=O.get("mceResizeHandle"+t);n&&O.remove(n),n=O.add(F,"div",{id:"mceResizeHandle"+t,"data-mce-bogus":"all","class":"mce-resizehandle",unselectable:!0,style:"cursor:"+t+"-resize; margin:0; padding:0"}),11===Tp.ie&&(n.contentEditable=!1),O.bind(n,"mousedown",function(n){var u,s,m;n.stopImmediatePropagation(),n.preventDefault(),u=n,m=a(p)[0],C=u.screenX,x=u.screenY,w=m.clientWidth,S=m.clientHeight,k=S/w,(b=e).name=t,b.startPos={x:c*e[0]+r,y:d*e[1]+i},R=F.scrollWidth,D=F.scrollHeight,y=O.add(F,"div",{"class":"mce-resize-backdrop","data-mce-bogus":"all"}),O.setStyles(y,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),h=o(s=p)?O.create("img",{src:Tp.transparentSrc}):s.cloneNode(!0),O.addClass(h,"mce-clonedresizable"),O.setAttrib(h,"data-mce-bogus","all"),h.contentEditable="false",O.setStyles(h,{left:r,top:i,margin:0}),l(h,c,d),h.removeAttribute(T),F.appendChild(h),O.bind(P,"mousemove",f),O.bind(P,"mouseup",z),L!==P&&(O.bind(L,"mousemove",f),O.bind(L,"mouseup",z)),v=O.add(F,"div",{"class":"mce-resize-helper","data-mce-bogus":"all"},w+" × "+S)}),e.elm=n,O.setStyles(n,{left:c*e[0]+r-n.offsetWidth/2,top:d*e[1]+i-n.offsetHeight/2})}):V(),O.getAttrib(p,T)||p.setAttribute(T,g)},V=function(){q(),p&&p.removeAttribute(T),j(U,function(e,t){var n=O.get("mceResizeHandle"+t);n&&(O.unbind(n),O.remove(n))})},q=function(){j(U,function(e){e.elm&&(O.unbind(e.elm),delete e.elm)})};return t.on("init",function(){var e;g(),(Tp.browser.isIE()||Tp.browser.isEdge())&&(t.on("mousedown click",function(e){var n=e.target,r=n.nodeName;N||!/^(TABLE|IMG|HR)$/.test(r)||m(n)||(2!==e.button&&t.selection.select(n,"TABLE"===r),"mousedown"===e.type&&t.nodeChanged())}),O.bind(F,"mscontrolselect",e=function(e){function n(e){zh.setEditorTimeout(t,function(){return t.selection.select(e)})}if(m(e.target)||uh(e.target))return e.preventDefault(),void n(e.target);/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),"IMG"===e.target.tagName&&n(e.target))}),t.on("remove",function(){return O.unbind(F,"mscontrolselect",e)}));var n=zh.throttle(function(e){t.composing||d(e)});t.on("NodeChange ResizeEditor ResizeWindow ResizeContent drop",n),t.on("keyup compositionend",function(e){p&&"TABLE"===p.nodeName&&n(e)}),t.on("hide blur",V),t.on("contextmenu longpress",i,!0)}),t.on("remove",q),{isResizable:s,showResizeRect:H,hideResizeRect:V,updateResizeRect:d,destroy:function(){p=h=y=null}}}function Mi(e){return oh(e)||ih(e)}function Fi(e,t,n){var r,o,i,a,u,s=n;if(s.caretPositionFromPoint)(o=s.caretPositionFromPoint(e,t))&&((r=n.createRange()).setStart(o.offsetNode,o.offset),r.collapse(!0));else if(s.caretRangeFromPoint)r=s.caretRangeFromPoint(e,t);else if(s.body.createTextRange){r=s.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(o){r=function(e,t,n){var r,o=n.elementFromPoint(e,t),i=n.body.createTextRange();if(o&&"HTML"!==o.tagName||(o=n.body),i.moveToElementText(o),0<(r=(r=Pp.toArray(i.getClientRects())).sort(function(e,n){return(e=Math.abs(Math.max(e.top-t,e.bottom-t)))-Math.abs(Math.max(n.top-t,n.bottom-t))})).length){t=(r[0].bottom+r[0].top)/2;try{return i.moveToPoint(e,t),i.collapse(!0),i}catch(e){}}return null}(e,t,n)}return i=r,a=n.body,u=i&&i.parentElement?i.parentElement():null,ih(function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(u,a,Mi))?null:i}return r}function Ui(e,t){return e&&t&&e.startContainer===t.startContainer&&e.startOffset===t.startOffset&&e.endContainer===t.endContainer&&e.endOffset===t.endOffset}function zi(e,t,n){return null!==function(e,t,n){for(;e&&e!==t;){if(n(e))return e;e=e.parentNode}return null}(e,t,n)}function Hi(e){return e&&"TABLE"===e.nodeName}function ji(e,t,n){for(var r=new jh(t,e.getParent(t.parentNode,e.isBlock)||e.getRoot());t=r[n?"prev":"next"]();)if(nh(t))return 1}function Vi(e,t,n,r,o){var i,a,u=e.getRoot(),s=e.schema.getNonEmptyElements(),c=e.getParent(o.parentNode,e.isBlock)||u;if(r&&nh(o)&&t&&e.isEmpty(c))return Kg.some(py(o.parentNode,e.nodeIndex(o)));for(var l,f,d=new jh(o,c);a=d[r?"prev":"next"]();){if("false"===e.getContentEditableParent(a)||(f=u,Ht(l=a)&&!1===zi(l,f,To)))return Kg.none();if(Qp(a)&&0<a.nodeValue.length)return!1===zi(a,u,function(e){return"A"===e.nodeName})?Kg.some(py(a,r?a.nodeValue.length:0)):Kg.none();if(e.isBlock(a)||s[a.nodeName.toLowerCase()])return Kg.none();i=a}return n&&i?Kg.some(py(i,0)):Kg.none()}function qi(e,t,n,r){var o,i=e.getRoot(),a=!1,u=r[(n?"start":"end")+"Container"],s=r[(n?"start":"end")+"Offset"],c=Gp(u)&&s===u.childNodes.length,l=e.schema.getNonEmptyElements(),f=n;if(Ht(u))return Kg.none();if(Gp(u)&&s>u.childNodes.length-1&&(f=!1),eh(u)&&(u=i,s=0),u===i){if(f&&(d=u.childNodes[0<s?s-1:0])){if(Ht(d))return Kg.none();if(l[d.nodeName]||Hi(d))return Kg.none()}if(u.hasChildNodes()){if(s=Math.min(!f&&0<s?s-1:s,u.childNodes.length-1),u=u.childNodes[s],s=Qp(u)&&c?u.data.length:0,!t&&u===i.lastChild&&Hi(u))return Kg.none();if(function(e,t){for(;t&&t!==e;){if(ih(t))return 1;t=t.parentNode}}(i,u)||Ht(u))return Kg.none();if(u.hasChildNodes()&&!1===Hi(u)){var d=u,m=new jh(u,i);do{if(ih(d)||Ht(d)){a=!1;break}if(Qp(d)&&0<d.nodeValue.length){s=f?0:d.nodeValue.length,u=d,a=!0;break}if(l[d.nodeName.toLowerCase()]&&(!(o=d)||!/^(TD|TH|CAPTION)$/.test(o.nodeName))){s=e.nodeIndex(d),u=d.parentNode,f||s++,a=!0;break}}while(d=f?m.next():m.prev())}}}return t&&(Qp(u)&&0===s&&Vi(e,c,t,!0,u).each(function(e){u=e.container(),s=e.offset(),a=!0}),Gp(u)&&(!(d=(d=u.childNodes[s])||u.childNodes[s-1])||!nh(d)||d.previousSibling&&"A"===d.previousSibling.nodeName||ji(e,d,!1)||ji(e,d,!0)||Vi(e,c,t,!0,d).each(function(e){u=e.container(),s=e.offset(),a=!0}))),f&&!t&&Qp(u)&&s===u.nodeValue.length&&Vi(e,c,t,!1,u).each(function(e){u=e.container(),s=e.offset(),a=!0}),a?Kg.some(py(u,s)):Kg.none()}function $i(e,t){var n=t.collapsed,r=t.cloneRange(),o=py.fromRangeStart(t);return qi(e,n,!0,r).each(function(e){n&&py.isAbove(o,e)||r.setStart(e.container(),e.offset())}),n||qi(e,n,!1,r).each(function(e){r.setEnd(e.container(),e.offset())}),n&&r.collapse(!0),Ui(t,r)?Kg.none():Kg.some(r)}function Wi(e,t){return e.splitText(t)}function Ki(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,o=e.endOffset;return t===r&&Qp(t)?0<n&&n<t.nodeValue.length&&(t=(r=Wi(t,n)).previousSibling,n<o?(t=r=Wi(r,o-=n).previousSibling,o=r.nodeValue.length,n=0):o=0):(Qp(t)&&0<n&&n<t.nodeValue.length&&(t=Wi(t,n),n=0),Qp(r)&&0<o&&o<r.nodeValue.length&&(o=(r=Wi(r,o).previousSibling).nodeValue.length)),{startContainer:t,startOffset:n,endContainer:r,endOffset:o}}function Xi(e){return{walk:function(t,n){return pi(e,t,n)},split:Ki,normalize:function(t){return $i(e,t).fold(Vg,function(e){return t.setStart(e.startContainer,e.startOffset),t.setEnd(e.endContainer,e.endOffset),!0})}}}function Yi(e){var t=CC(e);if(t<=0||null===t){var n=ht(e,yC);return parseFloat(n)||0}return t}function Gi(e,t){return R(t,function(t,n){var r=ht(e,n),o=void 0===r?0:parseInt(r,10);return isNaN(o)?t:t+o},0)}function Ji(e){return"textarea"===we(e)}function Qi(e,t){var n=function(e){var t=e.dom.ownerDocument,n=t.body,r=t.defaultView,o=t.documentElement;if(n===e.dom)return Xp(n.offsetLeft,n.offsetTop);var i=We(null==r?void 0:r.pageYOffset,o.scrollTop),a=We(null==r?void 0:r.pageXOffset,o.scrollLeft),u=We(o.clientTop,n.clientTop),s=We(o.clientLeft,n.clientLeft);return Yp(e).translate(a-s,i-u)}(e),r=wC.get(e);return{element:e,bottom:n.top+r,height:r,pos:n,cleanup:t}}function Zi(e,t,n,r){NC(e,function(){return kC(e,t,n,r)},n)}function ea(e,t,n,r,o){var i={elm:r.element.dom,alignToTop:o};e.fire("ScrollIntoView",i).isDefaultPrevented()||(n(t,Ke(t).top,r,o),e.fire("AfterScrollIntoView",i))}function ta(e,t,n,r){ea(e,Lp.fromDom(e.getDoc()),n,Qi(Lp.fromDom(t),s),r)}function na(e,t,n,r){var o,i=e.pos;n?Xe(i.left,i.top,r):(o=i.top-t+e.height,Xe(i.left,o,r))}function ra(e,t,n,r,o){var i=n+t,a=r.pos.top,u=r.bottom,s=n<=u-a;a<t?na(r,n,!1!==o,e):i<a?na(r,n,s?!1!==o:!0===o,e):i<u&&!s&&na(r,n,!0===o,e)}function oa(e,t,n,r){ra(e,t,e.dom.defaultView.innerHeight,n,r)}function ia(e,t,n,r){ra(e,t,e.dom.defaultView.innerHeight,n,r);var o,i,a,u,s,c,l,f=(o=n.element,u=Ke(Lp.fromDom(document)),a=(i=EC).owner(o),s=SC(i,a),c=Yp(o),l=A(s,function(e,t){var n=Yp(t);return{left:e.left+n.left,top:e.top+n.top}},{left:0,top:0}),Xp(l.left+c.left+u.left,l.top+c.top+u.top)),d=Je(window);f.top<d.y?Ye(n.element,!1!==r):f.top>d.bottom&&Ye(n.element,!0===r)}function aa(e,t,n){return Zi(e,oa,t,n)}function ua(e,t,n){return ta(e,t,oa,n)}function sa(e,t,n){return Zi(e,ia,t,n)}function ca(e,t,n){return ta(e,t,ia,n)}function la(e,t,n){(e.inline?aa:sa)(e,t,n)}function fa(e){var t=Vp(e).dom;return e.dom===t.activeElement}function da(e){return void 0===e&&(e=Lp.fromDom(document)),Kg.from(e.dom.activeElement).map(Lp.fromDom)}function ma(e,t){var n=Mp(t)?ki(t).length:zp(t).length+1;return n<e?n:e<0?0:e}function ga(e){return DC.range(e.start,ma(e.soffset,e.start),e.finish,ma(e.foffset,e.finish))}function pa(e,t){return!Ze(t.dom)&&(ve(e,t)||he(e,t))}function ha(e){return function(t){return pa(e,t.start)&&pa(e,t.finish)}}function va(e){return!0===e.inline||TC.isIE()}function ba(e){return DC.range(Lp.fromDom(e.startContainer),e.startOffset,Lp.fromDom(e.endContainer),e.endOffset)}function ya(e){var t=document.createRange();try{return t.setStart(e.start.dom,e.soffset),t.setEnd(e.finish.dom,e.foffset),Kg.some(t)}catch(e){return Kg.none()}}function Ca(e){var t,n,r=va(e)?((n=_e(t=Lp.fromDom(e.getBody())).dom.getSelection())&&0!==n.rangeCount?Kg.from(n.getRangeAt(0)):Kg.none()).map(ba).filter(ha(t)):Kg.none();e.bookmark=r.isSome()?r:e.bookmark}function xa(e){return(e.bookmark||Kg.none()).bind(function(t){return n=Lp.fromDom(e.getBody()),Kg.from(t).filter(ha(n)).map(ga);var n}).bind(ya)}function wa(e){var t=Kn(function(){Ca(e)},0);e.on("init",function(){function n(){o.throttle()}var r,o,i,a,u,s;e.inline&&(r=e,o=t,Hb.DOM.bind(document,"mouseup",n),r.on("remove",function(){Hb.DOM.unbind(document,"mouseup",n)})),i=e,a=t,wp().browser.isIE()?(s=i).on("focusout",function(){Ca(s)}):(u=a,i.on("mouseup touchend",function(){u.throttle()})),i.on("keyup NodeChange",function(e){"nodechange"===e.type&&e.selectionChange||Ca(i)})}),e.on("remove",function(){t.cancel()})}function Sa(e,t){var n=e.getParam("custom_ui_selector","","string");return null!==BC.getParent(t,function(t){return OC.isEditorUIElement(t)||!!n&&e.dom.is(t,n)})}function Ea(e,t){var n=t.editor;wa(n),n.on("focusin",function(){var t=e.focusedEditor;t!==n&&(t&&t.fire("blur",{focusedEditor:n}),e.setActive(n),(e.focusedEditor=n).fire("focus",{blurredEditor:t}),n.focus(!0))}),n.on("focusout",function(){zh.setEditorTimeout(n,function(){var t=e.focusedEditor;Sa(n,function(e){try{return da(Vp(Lp.fromDom(e.getElement()))).fold(function(){return document.body},function(e){return e.dom})}catch(e){return document.body}}(n))||t!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})}),xC||(xC=function(t){var n=e.activeEditor;n&&function(e){if(jp()&&u(e.target)){var t=Lp.fromDom(e.target);if(Ip(t)&&u(t.dom.shadowRoot)&&e.composed&&e.composedPath){var n=e.composedPath();if(n)return U(n)}}return Kg.from(e.target)}(t).each(function(t){t.ownerDocument===document&&(t===document.body||Sa(n,t)||e.focusedEditor!==n||(n.fire("blur",{focusedEditor:null}),e.focusedEditor=null))})},BC.bind(document,"focusin",xC))}function ka(e,t){e.focusedEditor===t.editor&&(e.focusedEditor=null),e.activeEditor||(BC.unbind(document,"focusin",xC),xC=null)}function Na(e,t){var n,r;n=Lp.fromDom(e.getBody()),((r=t).collapsed?Kg.from(hr(r.startContainer,r.startOffset)).map(Lp.fromDom):Kg.none()).bind(function(e){return Xh(e)?Kg.some(e):!1===ve(n,e)?Kg.some(n):Kg.none()}).bind(function(e){return rC(e.dom)}).fold(function(){e.selection.normalize()},function(t){return e.selection.setRng(t.toRange())})}function _a(e){if(e.setActive)try{e.setActive()}catch(r){e.focus()}else e.focus()}function Aa(e){return e.inline?(r=e.getBody())&&(fa(t=Lp.fromDom(r))||da(Vp(n=t)).filter(function(e){return n.dom.contains(e.dom)}).isSome()):e.iframeElement&&fa(Lp.fromDom(e.iframeElement));var t,n,r}function Ra(e,t,n,r,o){var i=n?t.startContainer:t.endContainer,a=n?t.startOffset:t.endOffset;return Kg.from(i).map(Lp.fromDom).map(function(e){return r&&t.collapsed?e:Be(e,o(e,a)).getOr(e)}).bind(function(e){return Ip(e)?Kg.some(e):Ae(e).filter(Ip)}).map(function(e){return e.dom}).getOr(e)}function Da(e,t,n){return Ra(e,t,!0,n,function(e,t){return Math.min(Ie(e),t)})}function Ta(e,t,n){return Ra(e,t,!1,n,function(e,t){return 0<t?t-1:t})}function Oa(e,t){for(var n=e;e&&Qp(e)&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n}function Ba(e,t){return S(t,function(t){var n=e.fire("GetSelectionRange",{range:t});return n.range!==t?n.range:t})}function Pa(e,t,n){var r=n?"lastChild":"firstChild",o=n?"prev":"next";if(e[r])return e[r];if(e!==t){var i=e[o];if(i)return i;for(var a=e.parent;a&&a!==t;a=a.parent)if(i=a[o])return i}}function La(e){var t="a"===e.name&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||t}function Ia(e,t){this.name=e,1===(this.type=t)&&(this.attributes=[],this.attributes.map={})}function Ma(e,t){return e.replace(t.re,function(e){return K(t.uris,e).getOr(e)})}function Fa(e,t){e=FC(e),this.settings=t||{};var n,r,o,i,a=this.settings.base_uri,u=this;/^([\w\-]+):([^\/]{2})/i.test(e)||/^\s*#/.test(e)?u.source=e:(n=0===e.indexOf("//"),0!==e.indexOf("/")||n||(e=(a&&a.protocol||"http")+"://mce_host"+e),/^[\w\-]*:?\/\//.test(e)||(r=this.settings.base_uri?this.settings.base_uri.path:new Fa(document.location.href).directory,e=this.settings.base_uri&&""==this.settings.base_uri.protocol?"//mce_host"+u.toAbsPath(r,e):(o=/([^#?]*)([#?]?.*)/.exec(e),(a&&a.protocol||"http")+"://mce_host"+u.toAbsPath(r,o[1])+o[2])),e=e.replace(/@@/g,"(mce_at)"),i=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(e),MC(UC,function(e,t){var n=(n=i[t])&&n.replace(/\(mce_at\)/g,"@@");u[e]=n}),a&&(u.protocol||(u.protocol=a.protocol),u.userInfo||(u.userInfo=a.userInfo),u.port||"mce_host"!==u.host||(u.port=a.port),u.host&&"mce_host"!==u.host||(u.host=a.host),u.source=""),n&&(u.protocol=""))}function Ua(e,t,n){for(var r=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,o=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,i=e.getShortEndedElements(),a=1,u=n;0!==a;)for(r.lastIndex=u;;){var s=r.exec(t);if(null===s)return u;if("!"===s[1]){u=ap(s[2],"--")?$C(t,!1,s.index+"!--".length):$C(t,!0,s.index+1);break}o.lastIndex=r.lastIndex;var c=o.exec(t);if(!Fg(c)&&c.index===r.lastIndex){"/"===s[1]?--a:tp(i,s[2])||(a+=1),u=r.lastIndex+c[0].length;break}}return u}function za(e,t){function n(n,s){void 0===s&&(s="html");for(var m,g,p,h,v,b,y,C,x,w,S,E,k,N,_,A,R,D,T,O=n.html,B=0,P=[],L=0,I=Rv.decode,M=Pp.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),F="html"===s?0:1,U=function(e){for(var t,n=P.length;n--&&P[n].name!==e;);if(0<=n){for(t=P.length-1;n<=t;t--)(e=P[t]).valid&&l(e.name);P.length=n}},z=function(e,t){return u(Ma(e,n),t)},H=function(t){""!==t&&(">"===t.charAt(0)&&(t=" "+t),e.allow_conditional_comments||"[if"!==t.substr(0,3).toLowerCase()||(t=" "+t),i(Ma(t,n)))},j=function(e,t){var n=e||"",r=!ap(n,"--"),o=$C(O,r,t);return e=O.substr(t,o-t),H(r?n+e:e),o+1},V=new RegExp("<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'\">]+(?:\"[^\"]*\"|'[^']*'))*[^\"'>]*(?:\"[^\">]*|'[^'>]*)?|\\s*|\\/)>))","g"),q=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,$=t.getShortEndedElements(),W=e.self_closing_elements||t.getSelfClosingElements(),K=t.getBoolAttrs(),X=e.validate,Y=e.remove_internals,G=e.fix_self_closing,J=t.getSpecialElements(),Q=O+">";m=V.exec(Q);){var Z=m[0];if(B<m.index&&z(I(O.substr(B,m.index-B))),g=m[7])U(g=":"===(g=g.toLowerCase()).charAt(0)?g.substr(1):g);else if(g=m[8]){if(m.index+Z.length>O.length){z(I(O.substr(m.index))),B=m.index+Z.length;continue}x=(g=":"===(g=g.toLowerCase()).charAt(0)?g.substr(1):g)in $,G&&W[g]&&0<P.length&&P[P.length-1].name===g&&U(g);var ee=function(e,t){var n=e.exec(t);if(n){var r=n[1],o=n[2];return"string"==typeof r&&"data-mce-bogus"===r.toLowerCase()?o:null}return null}(q,m[9]);if(null!==ee){if("all"===ee){B=Ua(t,O,V.lastIndex),V.lastIndex=B;continue}S=!1}if(!X||(w=t.getElementRule(g))){if(S=!0,X&&(N=w.attributes,_=w.attributePatterns),(k=m[9])?((C=-1!==k.indexOf("data-mce-type"))&&Y&&(S=!1),(h=[]).map={},k.replace(q,function(t,i,a,u,s){return function(t,i,a,u,s){var c;if(a=Ma((i=i.toLowerCase())in K?i:I(a||u||s||""),n),X&&!C&&0==(0===(c=i).indexOf("data-")||0===c.indexOf("aria-"))){var l=N[i];if(!l&&_){for(var f=_.length;f--&&!(l=_[f]).pattern.test(i););-1===f&&(l=null)}if(!l)return;if(l.validValues&&!(a in l.validValues))return}("name"===i||"id"===i)&&t in VC&&(a in r||a in o)||M[i]&&!jC.isDomSafe(a,t,e)||C&&(i in M||0===i.indexOf("on"))||(h.map[i]=a,h.push({name:i,value:a}))}(g,i,a,u,s),""})):(h=[]).map={},X&&!C){if(A=w.attributesRequired,R=w.attributesDefault,D=w.attributesForced,w.removeEmptyAttrs&&!h.length&&(S=!1),D)for(v=D.length;v--;)y=(E=D[v]).name,"{$uid}"===(T=E.value)&&(T="mce_"+L++),h.map[y]=T,h.push({name:y,value:T});if(R)for(v=R.length;v--;)(y=(E=R[v]).name)in h.map||("{$uid}"===(T=E.value)&&(T="mce_"+L++),h.map[y]=T,h.push({name:y,value:T}));if(A){for(v=A.length;v--&&!(A[v]in h.map););-1===v&&(S=!1)}if(E=h.map["data-mce-bogus"]){if("all"===E){B=Ua(t,O,V.lastIndex),V.lastIndex=B;continue}S=!1}}S&&c(g,h,x)}else S=!1;if(p=J[g]){p.lastIndex=B=m.index+Z.length,B=(m=p.exec(O))?(S&&(b=O.substr(B,m.index-B)),m.index+m[0].length):(b=O.substr(B),O.length),S&&(0<b.length&&z(b,!0),l(g)),V.lastIndex=B;continue}x||(k&&k.indexOf("/")===k.length-1?S&&l(g):P.push({name:g,valid:S}))}else if(g=m[1])H(g);else if(g=m[2]){if(!(1==F||e.preserve_cdata||0<P.length&&t.isValidChild(P[P.length-1].name,"#cdata"))){B=j("",m.index+2),V.lastIndex=B;continue}a(g)}else if(g=m[3])d(g);else{if((g=m[4])||"<!"===Z){B=j(g,m.index+Z.length),V.lastIndex=B;continue}if(g=m[5]){if(1!=F){B=j("?",m.index+2),V.lastIndex=B;continue}f(g,m[6])}}B=m.index+Z.length}for(B<O.length&&z(I(O.substr(B))),v=P.length-1;0<=v;v--)(g=P[v]).valid&&l(g.name)}void 0===t&&(t=cn()),e=e||{};var r=qC(),o=r.createElement("form");!1!==e.fix_self_closing&&(e.fix_self_closing=!0);var i=e.comment||s,a=e.cdata||s,u=e.text||s,c=e.start||s,l=e.end||s,f=e.pi||s,d=e.doctype||s;return{parse:function(e,t){void 0===t&&(t="html"),n(function(e){for(var t,n=/data:[^;<"'\s]+;base64,([a-z0-9\+\/=\s]+)/gi,r=[],o={},i=nr("img"),a=0,u=0;t=n.exec(e);){var s=t[0],c=i+"_"+u++;o[c]=s,a<t.index&&r.push(e.substr(a,t.index-a)),r.push(c),a=t.index+s.length}var l=new RegExp(i+"_[0-9]+","g");return 0===a?{prefix:i,uris:o,html:e,re:l}:(a<e.length&&r.push(e.substr(a)),{prefix:i,uris:o,html:r.join(""),re:l})}(e),t)}}}function Ha(e,t){for(var n,r,o,i,a=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,u=e.schema,s=(n=e.getTempAttrs(),r=t,o=new RegExp(["\\s?("+n.join("|")+')="[^"]+"'].join("|"),"gi"),r.replace(o,"")),c=u.getShortEndedElements();i=a.exec(s);){var l=a.lastIndex,f=i[0].length,d=c[i[1]]?l:za.findEndTag(u,s,l);s=s.substring(0,l-f)+s.substring(d);a.lastIndex=l-f}return tv(s)}function ja(e){return{compare:function(t,n){function r(t){var n={};return KC(e.getAttribs(t),function(r){var o=r.nodeName.toLowerCase();0!==o.indexOf("_")&&"style"!==o&&0!==o.indexOf("data-")&&(n[o]=e.getAttrib(t,o))}),n}function o(e,t){var n,r;for(r in e)if(tp(e,r)){if(void 0===(n=t[r]))return;if(e[r]!==n)return;delete t[r]}for(r in t)if(tp(t,r))return;return 1}return t.nodeName===n.nodeName&&!(!o(r(t),r(n))||!o(e.parseStyle(e.getAttrib(t,"style")),e.parseStyle(e.getAttrib(n,"style")))||zo(t)||zo(n))}}}function Va(e){var t=[],n=(e=e||{}).indent,r=XC(e.indent_before||""),o=XC(e.indent_after||""),i=Rv.getEncodeFunc(e.entity_encoding||"raw",e.entities),a="html"===e.element_format;return{start:function(e,u,s){var c,l,f,d;if(n&&r[e]&&0<t.length&&0<(d=t[t.length-1]).length&&"\n"!==d&&t.push("\n"),t.push("<",e),u)for(c=0,l=u.length;c<l;c++)f=u[c],t.push(" ",f.name,'="',i(f.value,!0),'"');t[t.length]=!s||a?">":" />",s&&n&&o[e]&&0<t.length&&0<(d=t[t.length-1]).length&&"\n"!==d&&t.push("\n")},end:function(e){var r;t.push("</",e,">"),n&&o[e]&&0<t.length&&0<(r=t[t.length-1]).length&&"\n"!==r&&t.push("\n")},text:function(e,n){0<e.length&&(t[t.length]=n?e:i(e))},cdata:function(e){t.push("<![CDATA[",e,"]]>")},comment:function(e){t.push("<!--",e,"-->")},pi:function(e,r){r?t.push("<?",e," ",i(r),"?>"):t.push("<?",e,"?>"),n&&t.push("\n")},doctype:function(e){t.push("<!DOCTYPE",e,">",n?"\n":"")},reset:function(){t.length=0},getContent:function(){return t.join("").replace(/\n$/,"")}}}function qa(e,t){void 0===t&&(t=cn());var n=Va(e);return(e=e||{}).validate=!("validate"in e)||e.validate,{serialize:function(r){var o=e.validate,i={3:function(e){n.text(e.value,e.raw)},8:function(e){n.comment(e.value)},7:function(e){n.pi(e.name,e.value)},10:function(e){n.doctype(e.value)},4:function(e){n.cdata(e.value)},11:function(e){if(e=e.firstChild)for(;a(e),e=e.next;);}};n.reset();var a=function(e){var r=i[e.type];if(r)r(e);else{var u=e.name,s=e.shortEnded,c=e.attributes;if(o&&c&&1<c.length){var l=[];l.map={};var f=t.getElementRule(e.name);if(f){for(var d=0,m=f.attributesOrder.length;d<m;d++)(g=f.attributesOrder[d])in c.map&&(p=c.map[g],l.map[g]=p,l.push({name:g,value:p}));var g,p;for(d=0,m=c.length;d<m;d++)(g=c[d].name)in l.map||(p=c.map[g],l.map[g]=p,l.push({name:g,value:p}));c=l}}if(n.start(e.name,c,s),!s){if(e=e.firstChild)for(;a(e),e=e.next;);n.end(u)}}};return 1!==r.type||e.inner?i[11](r):a(r),n.getContent()}}}function $a(e,t){return Qg(e.parseStyle(e.getAttrib(t,"style")))}function Wa(e,t,n){return Kg.from(n.container()).filter(Qp).exists(function(r){var o=e?0:-1;return t(r.data.charAt(n.offset()+o))})}function Ka(e){var t=e.container();return Qp(t)&&(0===t.data.length||ev(t.data)&&Ri.isBookmarkNode(t.parentNode))}function Xa(e,t){return function(n){return Kg.from(go(e?0:-1,n)).filter(t).isSome()}}function Ya(e){return rh(e)&&"block"===ht(Lp.fromDom(e),"display")}function Ga(e){return ih(e)&&!(Gp(t=e)&&"all"===t.getAttribute("data-mce-bogus"));var t}function Ja(e){qe(e),qp(e,Lp.fromHtml('<br data-mce-bogus="1">'))}function Qa(e){Le(e).each(function(t){Re(t).each(function(n){qh(e)&&Ft(t)&&qh(n)&&$p(t)})})}function Za(e,t){return o=Vg,ve(r=t,n=e)?function(e,t){for(var n=Hg(t)?t:Vg,r=e.dom,o=[];null!==r.parentNode&&void 0!==r.parentNode;){var i=r.parentNode,a=Lp.fromDom(i);if(o.push(a),!0===n(a))break;r=i}return o}(n,function(e){return o(e)||he(e,r)}).slice(0,-1):[];var n,r,o}function eu(e,t){return[e].concat(Za(e,t))}function tu(e,t,n){return eC(e,t,n,Ka)}function nu(e,t){return T(eu(Lp.fromDom(t.container()),e),qh)}function ru(e,t,n){return tu(e,t.dom,n).forall(function(e){return nu(t,n).fold(function(){return!1===mo(e,n,t.dom)},function(r){return!1===mo(e,n,t.dom)&&ve(r,Lp.fromDom(e.container()))})})}function ou(e,t,n){return nu(t,n).fold(function(){return tu(e,t.dom,n).forall(function(e){return!1===mo(e,n,t.dom)})},function(t){return tu(e,t.dom,n).isNone()})}function iu(e){return Co(e).exists(Ft)}function au(e,t,n){var r=U(_(eu(Lp.fromDom(n.container()),t),qh)).getOr(t);return Zy(e,r.dom,n).filter(iu)}function uu(e,t){return Co(t).exists(Ft)||au(!0,e,t).isSome()}function su(e,t){return Kg.from(t.getNode(!0)).map(Lp.fromDom).exists(Ft)||au(!1,e,t).isSome()}function cu(e){return py.isTextPosition(e)&&!e.isAtStart()&&!e.isAtEnd()}function lu(e,t){return U(_(eu(Lp.fromDom(t.container()),e),qh)).getOr(e)}function fu(e,t){return cu(t)?ZC(t):ZC(t)||nC(lu(e,t).dom,t).exists(ZC)}function du(e,t){return cu(t)?QC(t):QC(t)||tC(lu(e,t).dom,t).exists(QC)}function mu(e){return Co(e).bind(function(e){return _t(e,Ip)}).exists(function(e){return x(["pre","pre-wrap"],ht(e,"white-space"))})}function gu(e,t){return!mu(t)&&(sx(e,t)||lx(e,t)||su(e,t)||fu(e,t))}function pu(e,t){return!mu(t)&&(cx(e,t)||fx(e,t)||uu(e,t)||du(e,t))}function hu(e,t){return gu(e,t)||pu(e,(r=(n=t).container(),o=n.offset(),Qp(r)&&o<r.data.length?py(r,o+1):n));var n,r,o}function vu(e,t){return uC(e.charAt(t))}function bu(e){var t=e.container();return Qp(t)&&ie(t.data,Qh)}function yu(e,t){return Kg.some(t).filter(bu).bind(function(t){var n,r,o,i,a,u,s,c,l,f=t.container(),d=e,m=(a=f).data,g=py(a,0);return(!vu(m,0)||hu(d,g)?(c=(u=f).data,(l=S(s=c.split(""),function(e,t){return uC(e)&&0<t&&t<s.length-1&&jo(s[t-1])&&jo(s[t+1])?" ":e}).join(""))!==c&&(u.data=l,1)):(a.data=" "+m.slice(1),1))||(n=e,o=(r=f).data,i=py(r,o.length-1),vu(o,o.length-1)&&!hu(n,i)&&(r.data=o.slice(0,-1)+" ",1))?Kg.some(t):Kg.none()})}function Cu(e){var t=Lp.fromDom(e.getBody());e.selection.isCollapsed()&&yu(t,py.fromRangeStart(e.selection.getRng())).each(function(t){e.selection.setRng(t.toRange())})}function xu(e,t,n){var r,o,i,a,u,s,c,l;0!==n&&(o=Nt(r=Lp.fromDom(e),qh).getOr(r),i=e.data.slice(t,t+n),a=t+n>=e.data.length&&pu(o,py(e,e.data.length)),u=0===t&&gu(o,py(e,0)),e.replaceData(t,n,(c=u,l=a,R(s=i,function(e,t){return Ho(t)||uC(t)?e.previousCharIsSpace||""===e.str&&c||e.str.length===s.length-1&&l?{previousCharIsSpace:!1,str:e.str+Qh}:{previousCharIsSpace:!0,str:e.str+" "}:{previousCharIsSpace:!1,str:e.str+t}},{previousCharIsSpace:!1,str:""}).str)))}function wu(e,t){var n=e.data.slice(t);xu(e,t,n.length-sp(n).length)}function Su(e,t){var n=e.data.slice(0,t),r=n.length-cp(n).length;xu(e,t-r,r)}function Eu(e,t,n,r){void 0===r&&(r=!0);var o=cp(e.data).length,i=r?e:t,a=r?t:e;return r?i.appendData(a.data):i.insertData(0,a.data),$p(Lp.fromDom(a)),n&&wu(i,o),i}function ku(e,t){return r=e,o=(n=t).container(),i=n.offset(),!1===py.isTextPosition(n)&&o===r.parentNode&&i>py.before(r).offset()?py(t.container(),t.offset()-1):t;var n,r,o,i}function Nu(e){return Kt(e.previousSibling)?Kg.some((t=e.previousSibling,Qp(t)?py(t,t.data.length):py.after(t))):e.previousSibling?oC(e.previousSibling):Kg.none();var t}function _u(e){return Kt(e.nextSibling)?Kg.some((t=e.nextSibling,Qp(t)?py(t,0):py.before(t))):e.nextSibling?rC(e.nextSibling):Kg.none();var t}function Au(e,t){return Nu(t).orThunk(function(){return _u(t)}).orThunk(function(){return n=e,o=py.before((r=t).previousSibling||r.parentNode),nC(n,o).fold(function(){return tC(n,py.after(r))},Kg.some);var n,r,o})}function Ru(e,t){return _u(t).orThunk(function(){return Nu(t)}).orThunk(function(){return tC(n=e,py.after(r=t)).fold(function(){return nC(n,py.before(r))},Kg.some);var n,r})}function Du(e,t,n){n.fold(function(){e.focus()},function(n){e.selection.setRng(n.toRange(),t)})}function Tu(e,t){return t&&tp(e.schema.getBlockElements(),we(t))}function Ou(e){if(Jt(e)){var t=Lp.fromHtml('<br data-mce-bogus="1">');return qe(e),qp(e,t),Kg.some(py.before(t.dom))}return Kg.none()}function Bu(e,t,n,r){void 0===r&&(r=!0);var o,i,a,u,s,c,l,f,d,m,p,h,v=(t?Ru:Au)(e.getBody(),h=n.dom).map(g(ku,h)),b=Nt(n,g(Tu,e),(o=e.getBody(),function(e){return e.dom===o})),y=(u=v,i=a=n,s=tp(e.schema.getTextInlineElements(),we(i)),m=Re(a).filter(Mp),p=De(a).filter(Mp),$p(a),l=p,f=u,d=function(e,t,n){var r=e.dom,o=t.dom,i=r.data.length;return Eu(r,o,s),n.container()===o?py(r,i):n},((c=m).isSome()&&l.isSome()&&f.isSome()?Kg.some(d(c.getOrDie(),l.getOrDie(),f.getOrDie())):Kg.none()).orThunk(function(){return s&&(m.each(function(e){return Su(e.dom,e.dom.length)}),p.each(function(e){return wu(e.dom,0)})),u}));e.dom.isEmpty(e.getBody())?(e.setContent(""),e.selection.setCursorLocation()):b.bind(Ou).fold(function(){r&&Du(e,t,y)},function(n){r&&Du(e,t,Kg.some(n))})}function Pu(e){return Zn(e,"td,th")}function Lu(e,t){return{start:e,end:t}}function Iu(e,t){return Dt(Lp.fromDom(e),"td,th",t)}function Mu(e){return!he(e.start,e.end)}function Fu(e,t){return yi(e.start,t).bind(function(n){return yi(e.end,t).bind(function(e){return he(n,e)?Kg.some(n):Kg.none()})})}function Uu(e){return function(t){return Fu(t,e).map(function(e){return{rng:t,table:e,cells:Pu(e)}})}}
|
25
|
+
function zu(e,t,n,r){if(n.collapsed||!e.forall(Mu))return Kg.none();if(t.isSameTable){var o=e.bind(Uu(r));return Kg.some({start:o,end:o})}var i,a,u=Iu(n.startContainer,r),s=Iu(n.endContainer,r),c=u.bind((a=r,function(e){return yi(e,a).bind(function(t){return z(Pu(t)).map(function(t){return Lu(e,t)})})})).bind(Uu(r)),l=s.bind((i=r,function(e){return yi(e,i).bind(function(t){return U(Pu(t)).map(function(t){return Lu(t,e)})})})).bind(Uu(r));return Kg.some({start:c,end:l})}function Hu(e,t){return O(e,function(e){return he(e,t)})}function ju(e){return ut(Hu(e.cells,e.rng.start),Hu(e.cells,e.rng.end),function(t,n){return e.cells.slice(t,n+1)})}function Vu(e,t){var n=t.startTable,r=t.endTable,o=e.cloneRange();return n.each(function(e){return o.setStartAfter(e.dom)}),r.each(function(e){return o.setEndBefore(e.dom)}),o}function qu(e,t){function n(e){return yi(Lp.fromDom(e),f)}var r,o,i,a,u,s,c,l,f,d,m,g,p,h,v,b,y=(r=e,function(e){return he(r,e)}),C=ut(Iu((o=t).startContainer,i=y),Iu(o.endContainer,i),Lu),x=(f=y,{startTable:d=n((l=t).startContainer),endTable:m=n(l.endContainer),isStartInTable:g=d.isSome(),isEndInTable:p=m.isSome(),isSameTable:h=ut(d,m,he).getOr(!1),isMultiTable:!h&&g&&p});return v=t,b=y,C.exists(function(e){return!Mu(t=e)&&Fu(t,b).exists(function(e){var t=e.dom.rows;return 1===t.length&&1===t[0].cells.length})&&Ci(e.start,v);var t})?C.map(function(e){return gx.singleCellTable(t,e.start)}):x.isMultiTable?zu(C,s=x,c=t,y).bind(function(e){var t=e.start,n=e.end,r=t.bind(ju).getOr([]),o=n.bind(ju).getOr([]);if(0<r.length&&0<o.length){var i=Vu(c,s);return Kg.some(gx.multiTable(r,o,i))}return Kg.none()}):zu(C,a=x,u=t,y).bind(function(e){var t=e.start,n=e.end;return t.or(n)}).bind(function(e){var t=a.isSameTable,n=ju(e).getOr([]);if(t&&e.cells.length===n.length)return Kg.some(gx.fullTable(e.table));if(0<n.length){if(t)return Kg.some(gx.partialTable(n,Kg.none()));var r=Vu(u,a);return Kg.some(gx.partialTable(n,Kg.some(rp(rp({},a),{rng:r}))))}return Kg.none()})}function $u(e){return E(e,function(e){gt(e,"contenteditable"),Ja(e)}),0}function Wu(e,t,n,r){var o=n.cloneRange();r?(o.setStart(n.startContainer,n.startOffset),o.setEndAfter(t.dom.lastChild)):(o.setStartBefore(t.dom.firstChild),o.setEnd(n.endContainer,n.endOffset)),hx(e,o,t,!1)}function Ku(e){var t=bi(e),n=Lp.fromDom(e.selection.getNode());ah(n.dom)&&Jt(n)?e.selection.setCursorLocation(n.dom,0):e.selection.collapse(!0),1<t.length&&w(t,function(e){return he(e,n)})&<(n,"data-mce-selected","1")}function Xu(e,t,n){var r=e.selection.getRng();return $u(n.bind(function(n){var o,i,a,u=n.rng,s=n.isStartInTable,c=(o=s?u.endContainer:u.startContainer,Kg.from(e.dom.getParent(o,e.dom.isBlock)).map(Lp.fromDom));u.deleteContents(),i=e,a=s,c.filter(Jt).each(function(e){a?$p(e):(Ja(e),i.selection.setCursorLocation(e.dom,0))});var l=s?t[0]:t[t.length-1];return Wu(e,l,r,s),Jt(l)?Kg.none():Kg.some(s?t.slice(1):t.slice(0,-1))}).getOr(t)),Ku(e),!0}function Yu(e,t,n,r){var o=e.selection.getRng(),i=t[0],a=n[n.length-1];Wu(e,i,o,!0),Wu(e,a,o,!1);var u=Jt(i)?t:t.slice(1),s=Jt(a)?n:n.slice(0,-1);return $u(u.concat(s)),r.deleteContents(),Ku(e),!0}function Gu(e,t){return Bu(e,!1,t),!0}function Ju(e,t){return T(eu(t,e),Yh)}function Qu(e,t){return(e?ox:ix)(t)}function Zu(e,t,n){var r=Lp.fromDom(e.getBody());return vx(r,n).fold(function(){return o=e,i=t,a=r,u=n,s=py.fromRangeStart(o.selection.getRng()),Ju(a,u).bind(function(e){return Jt(e)?bx(o,e):(t=a,n=e,r=s,Ro(i,o.getBody(),r).bind(function(e){return Ju(t,Lp.fromDom(e.getNode())).map(function(e){return!1===he(e,n)})}));var t,n,r}).getOr(!1)||(l=t,f=py.fromRangeStart((c=e).selection.getRng()),Qu(l,f)||Zy(l,c.getBody(),f).exists(function(e){return Qu(l,e)}));var o,i,a,u,s,c,l,f},function(n){return l=t,f=r,d=n,m=py.fromRangeStart((c=e).selection.getRng()),(Jt(d)?bx(c,d):(i=f,u=d,s=m,Ro(a=l,(o=c).getBody(),s).bind(function(e){return r=a,c=s,l=e,rC((n=u).dom).bind(function(e){return oC(n.dom).map(function(t){return r?c.isEqual(e)&&l.isEqual(t):c.isEqual(t)&&l.isEqual(e)})}).getOr(!0)?bx(o,u):(t=u,vx(i,Lp.fromDom(e.getNode())).map(function(e){return!1===he(e,t)}));var t,n,r,c,l}).or(Kg.some(!0)))).getOr(!1);var o,i,a,u,s,c,l,f,d,m})}function es(e,t){var n,r,o,i,a,u,s,c,l=Lp.fromDom(e.selection.getStart(!0)),f=bi(e);return e.selection.isCollapsed()&&0===f.length?Zu(e,t,l):(r=l,o=f,i=Lp.fromDom((n=e).getBody()),a=n.selection.getRng(),0!==o.length?Xu(n,o,Kg.none()):(u=n,c=a,vx(s=i,r).fold(function(){return e=u,qu(s,c).map(function(t){return t.fold(g(hx,e),g(Gu,e),g(Xu,e),g(Yu,e))});var e},function(e){return bx(u,e)}).getOr(!1)))}function ts(e){return e.collapsed?e:(t=e,n=py.fromRangeStart(t),r=py.fromRangeEnd(t),o=t.commonAncestorContainer,Zy(!1,o,r).map(function(e){return!mo(n,r,o)&&mo(n,e,o)?(i=n.container(),a=n.offset(),u=e.container(),s=e.offset(),(c=document.createRange()).setStart(i,a),c.setEnd(u,s),c):t;var i,a,u,s,c}).getOr(t));var t,n,r,o}function ns(e,t){var n,r,o,i,a,u=t.firstChild,s=t.lastChild;return u&&"meta"===u.name&&(u=u.next),r=s=s&&"mce_marker"===s.attr("id")?s.prev:s,o=(n=e).getNonEmptyElements(),r&&(r.isEmpty(o)||(i=r,n.getBlockElements()[i.name]&&i.firstChild&&i.firstChild===i.lastChild&&("br"===(a=i.firstChild).name||a.value===Qh)))&&(s=s.prev),u&&u===s&&("ul"===u.name||"ol"===u.name)}function rs(e){return 0<e.length&&(!(r=e[e.length-1]).firstChild||(t=r)&&t.firstChild&&t.firstChild===t.lastChild&&((n=t.firstChild).data===Qh||nh(n)))?e.slice(0,-1):e;var t,n,r}function os(e,t){var n=e.getParent(t,e.isBlock);return n&&"LI"===n.nodeName?n:null}function is(e,t){var n=py.after(e),r=ko(t).prev(n);return r?r.toRange():null}function as(e,t,n,r){function o(e){var r=py.fromRangeStart(n),o=ko(t.getRoot()),i=1===e?o.prev(r):o.next(r);return!i||os(t,i.getNode())!==D}var i,a,u,s,c,l,f,d,m,g,p,h,v,b,y,C,x,w,S,E,k,N,A,R=(i=t,c=e.serialize(r),u=(a=i.createFragment(c)).firstChild,s=a.lastChild,u&&"META"===u.nodeName&&u.parentNode.removeChild(u),s&&"mce_marker"===s.id&&s.parentNode.removeChild(s),a),D=os(t,n.startContainer),T=rs(_(R.firstChild.childNodes,function(e){return"LI"===e.nodeName})),O=t.getRoot();return o(1)?(S=O,A=(w=D).parentNode,Pp.each(T,function(e){A.insertBefore(e,w)}),E=S,k=py.before(w),(N=ko(E).next(k))?N.toRange():null):o(2)?(l=D,d=O,t.insertAfter((f=T).reverse(),l),is(f[0],d)):(g=T,p=O,h=m=D,b=(v=n).cloneRange(),y=v.cloneRange(),b.setStartBefore(h),y.setEndAfter(h),C=[b.cloneContents(),y.cloneContents()],(x=m.parentNode).insertBefore(C[0],m),Pp.each(g,function(e){x.insertBefore(e,m)}),x.insertBefore(C[1],m),x.removeChild(m),is(g[g.length-1],p))}function us(e,t,n){var r,o,i,a,s=e.selection,c=e.dom;/^ | $/.test(t)&&(r=c,o=s.getRng(),i=t,i=gu(a=Lp.fromDom(r.getRoot()),py.fromRangeStart(o))?i.replace(/^ /," "):i.replace(/^ /," "),t=i=pu(a,py.fromRangeEnd(o))?i.replace(/( | )(<br( \/)>)?$/," "):i.replace(/ (<br( \/)?>)?$/," "));var l=e.parser,f=n.merge,d=qa({validate:e.getParam("validate")},e.schema),m='<span id="mce_marker" data-mce-type="bookmark"></span>',g=e.fire("BeforeSetContent",{content:t,format:"html",selection:!0,paste:n.paste});if(g.isDefaultPrevented())e.fire("SetContent",{content:g.content,format:"html",selection:!0,paste:n.paste});else{-1===(t=g.content).indexOf("{$caret}")&&(t+="{$caret}"),t=t.replace(/\{\$caret\}/,m);var p,h,v=(p=s.getRng()).startContainer||(p.parentElement?p.parentElement():null),b=e.getBody();v===b&&s.isCollapsed()&&c.isBlock(b.firstChild)&&(h=b.firstChild)&&!e.schema.getShortEndedElements()[h.nodeName]&&c.isEmpty(b.firstChild)&&((p=c.createRng()).setStart(b.firstChild,0),p.setEnd(b.firstChild,0),s.setRng(p)),s.isCollapsed()||function(e){var t=e.dom,n=ts(e.selection.getRng());e.selection.setRng(n);var r,o=t.getParent(n.startContainer,yx),i=n;null!==(r=o)&&r===t.getParent(i.endContainer,yx)&&Ci(Lp.fromDom(r),i)?hx(e,n,Lp.fromDom(o)):e.getDoc().execCommand("Delete",!1,null)}(e);var y,C,x,S,E,k,N,A,R,D,T,O,B,L,I={context:(z=s.getNode()).nodeName.toLowerCase(),data:n.data,insert:!0},M=l.parse(t,I);if(!0===n.paste&&ns(e.schema,M)&&os(c,z))return p=as(d,c,s.getRng(),M),s.setRng(p),void e.fire("SetContent",g);if(function(){for(var e=M;e=e.walk();)1===e.type&&e.attr("data-mce-fragment","1")}(),"mce_marker"===(U=M.lastChild).attr("id"))for(var F=U,U=U.prev;U;U=U.walk(!0))if(3===U.type||!c.isBlock(U.name)){e.schema.isValidChild(U.parent.name,"span")&&U.parent.insert(F,U,"br"===U.name);break}if(e._selectionOverrides.showBlockCaretContainer(z),I.invalid){e.selection.setContent(m);var z=s.getNode(),H=e.getBody();for(9===z.nodeType?z=U=H:U=z;U!==H;)U=(z=U).parentNode;t=z===H?H.innerHTML:c.getOuterHTML(z),t=d.serialize(l.parse(t.replace(/<span (id="mce_marker"|id=mce_marker).+?<\/span>/i,function(){return d.serialize(M)}))),z===H?c.setHTML(H,t):c.setOuterHTML(z,t)}else y=e,C=t=d.serialize(M),"all"===(x=z).getAttribute("data-mce-bogus")?x.parentNode.insertBefore(y.dom.createFragment(C),x):(S=x.firstChild,E=x.lastChild,!S||S===E&&"BR"===S.nodeName?y.dom.setHTML(x,C):y.selection.setContent(C));N=f,D=(k=e).schema.getTextInlineElements(),T=k.dom,N&&(A=k.getBody(),R=ja(T),Pp.each(T.select("*[data-mce-fragment]"),function(e){if(u(D[e.nodeName.toLowerCase()])&&P($a(T,e),function(e){return!YC.has(e)}))for(var t=e.parentNode;u(t)&&t!==A&&!function(e,t,n){function r(r){var o=e.getStyle(t,r),i=e.getStyle(n,r);return ue(o)&&ue(i)&&o!==i}var o=$a(e,t),i=$a(e,n);return w(o,function(e){function t(t){return w(t,function(t){return t===e})}return t(i)||!t(JC)?r(e):w(_(i,function(e){return w(JC,function(t){return ap(e,t)})}),r)})}(T,e,t);t=t.parentNode)if(R.compare(t,e)){T.remove(e,!0);break}})),function(e,t){var n,r=e.dom,o=e.selection;if(t){o.scrollIntoView(t);var i=Ti(e.getBody(),t);if("false"===r.getContentEditable(i))return r.remove(t),o.select(i);var a,u=r.createRng(),s=t.previousSibling;Qp(s)?(u.setStart(s,s.nodeValue.length),Tp.ie||(a=t.nextSibling,Qp(a)&&(s.appendData(a.data),a.parentNode.removeChild(a)))):(u.setStartBefore(t),u.setEndBefore(t));var c=r.getParent(t,r.isBlock);r.remove(t),c&&r.isEmpty(c)&&(e.$(c).empty(),u.setStart(c,0),u.setEnd(c,0),yx(c)||c.getAttribute("data-mce-fragment")||!(n=function(t){var n=py.fromRangeStart(t);if(n=ko(e.getBody()).next(n))return n.toRange()}(u))?r.add(c,r.create("br",{"data-mce-bogus":"1"})):(u=n,r.remove(c))),o.setRng(u)}}(e,c.get("mce_marker")),O=e.getBody(),Pp.each(O.getElementsByTagName("*"),function(e){e.removeAttribute("data-mce-fragment")}),B=c,L=s.getStart(),Kg.from(B.getParent(L,"td,th")).map(Lp.fromDom).each(Qa),e.fire("SetContent",g),e.addVisual()}}function ss(e){return e instanceof IC}function cs(e,t,n){var r;e.dom.setHTML(e.getBody(),t),!0!==n&&Aa(r=e)&&rC(r.getBody()).each(function(e){var t=e.getNode(),n=ot(t)?rC(t).getOr(e):e;r.selection.setRng(n.toRange())})}function ls(e,t,n){var r,o=(r=t,rp(rp({format:"html"},n),{set:!0,content:ss(r)?"":r})),i=n.no_events?o:e.fire("BeforeSetContent",o);return ss(t)||(t=i.content),Kg.from(e.getBody()).fold(f(t),function(n){return ss(t)?function(e,t,n,r){var o,i,a;o=e.parser.getNodeFilters(),i=e.parser.getAttributeFilters(),a=n,E(function(e,t){var n,r,o={},i={},u=[];for(n in a.firstChild&&Cx(a.firstChild,function(n){E(e,function(e){e.name===n.name&&(o[e.name]?o[e.name].nodes.push(n):o[e.name]={filter:e,nodes:[n]})}),E(t,function(e){"string"==typeof n.attr(e.name)&&(i[e.name]?i[e.name].nodes.push(n):i[e.name]={filter:e,nodes:[n]})})}),o)tp(o,n)&&u.push(o[n]);for(r in i)tp(i,r)&&u.push(i[r]);return u}(o,i),function(e){E(e.filter.callbacks,function(t){t(e.nodes,e.filter.name,{})})});var u=qa({validate:e.validate},e.schema).serialize(n);return r.content=Gh(Lp.fromDom(t))?u:Pp.trim(u),cs(e,r.content,r.no_selection),r.no_events||e.fire("SetContent",r),n}(e,n,t,i):(r=e,o=n,u=i,0===(a=t).length||/^\s+$/.test(a)?(s='<br data-mce-bogus="1">',"TABLE"===o.nodeName?a="<tr><td>"+s+"</td></tr>":/^(UL|OL)$/.test(o.nodeName)&&(a="<li>"+s+"</li>"),cs(r,a=(c=zr(r))&&r.schema.isValidChild(o.nodeName.toLowerCase(),c.toLowerCase())?(a=s,r.dom.createHTML(c,Hr(r),a)):a||'<br data-mce-bogus="1">',u.no_selection),r.fire("SetContent",u)):("raw"!==u.format&&(a=qa({validate:r.validate},r.schema).serialize(r.parser.parse(a,{isRootContent:!0,insert:!0}))),u.content=Gh(Lp.fromDom(o))?a:Pp.trim(a),cs(r,u.content,u.no_selection),u.no_events||r.fire("SetContent",u)),u.content);var r,o,a,u,s,c})}function fs(e){return Hg(e)?e:Vg}function ds(e,t,n){var r=t(e),o=fs(n);return r.orThunk(function(){return o(e)?Kg.none():function(t){for(var n=e.dom,r=fs(o);n.parentNode;){n=n.parentNode;var i=Lp.fromDom(n),a=t(i);if(a.isSome())return a;if(r(i))break}return Kg.none()}(t)})}function ms(e,t,n){var r=e.formatter.get(n);if(r)for(var o=0;o<r.length;o++){var i=r[o];if(ni(i)&&!1===i.inherit&&e.dom.is(t,i.selector))return 1}}function gs(e,t,n,r,o){var i=e.dom.getRoot();return t!==i&&(t=e.dom.getParent(t,function(t){return!!ms(e,t,n)||t.parentNode===i||!!wx(e,t,n,r,!0)}),!!wx(e,t,n,r,o))}function ps(e,t,n){return!!xx(t,n.inline)||!!xx(t,n.block)||(n.selector?1===t.nodeType&&e.is(t,n.selector):void 0)}function hs(e,t,n,r,o,i){var u=n[r];if(Hg(n.onmatch))return n.onmatch(t,n,r);if(u)if(zg(u.length)){for(var s in u)if(tp(u,s)){var c="attributes"===r?e.getAttrib(t,s):Jo(e,t,s),l=Xo(u[s],i),f=a(c)||se(c);if(!f||!a(l)){if(o&&f&&!n.exact)return;if((!o||n.exact)&&!xx(c,Go(e,l,s)))return}}}else for(var d=0;d<u.length;d++)if("attributes"===r?e.getAttrib(t,u[d]):Jo(e,t,u[d]))return 1;return 1}function vs(e,t,n,r,o){if(r)return gs(e,r,t,n,o);if(gs(e,r=e.selection.getNode(),t,n,o))return!0;var i=e.selection.getStart();return!(i===r||!gs(e,i,t,n,o))}function bs(e){return 0<function(e){for(var t=[];e;){if(3===e.nodeType&&e.nodeValue!==Sx||1<e.childNodes.length)return[];1===e.nodeType&&t.push(e),e=e.firstChild}return t}(e).length}function ys(e){if(e){var t=new jh(e,e);for(e=t.current();e;e=t.next())if(Qp(e))return e}return null}function Cs(e){var t=Lp.fromTag("span");return ft(t,{id:Ex,"data-mce-bogus":"1","data-mce-type":"format-caret"}),e&&qp(t,Lp.fromText(Sx)),t}function xs(e,t,n){void 0===n&&(n=!0);var r,o,i,a,u,s,c,l,f=e.dom,d=e.selection;bs(t)?Bu(e,!1,Lp.fromDom(t),n):(r=d.getRng(),o=f.getParent(t,f.isBlock),i=r.startContainer,a=r.startOffset,u=r.endContainer,s=r.endOffset,(l=ys(t))&&l.nodeValue.charAt(0)===Sx&&l.deleteData(0,1),c=l,f.remove(t,!0),i===c&&0<a&&r.setStart(c,a-1),u===c&&0<s&&r.setEnd(c,s-1),o&&f.isEmpty(o)&&Ja(Lp.fromDom(o)),d.setRng(r))}function ws(e,t,n){void 0===n&&(n=!0);var r=e.dom,o=e.selection;if(t)xs(e,t,n);else if(!(t=Oo(e.getBody(),o.getStart())))for(;t=r.get(Ex);)xs(e,t,!1)}function Ss(e,t){return e.appendChild(t),t}function Es(e,t){var n=A(e,function(e,t){return Ss(e,t.cloneNode(!1))},t);return Ss(n,n.ownerDocument.createTextNode(Sx))}function ks(e,t,r,o,i,a){var u,s,c=e.formatter,l=e.dom,f=_(Qg(c.get()),function(e){return e!==o&&!ie(e,"removeformat")});if(0<_((u=e,s=r,R(f,function(e,t){var n=ei(u,t);return u.formatter.matchNode(s,t,{},n)?e.concat([t]):e},[])),function(t){function r(e){return W(e,function(e,t){return w(u,function(e){return e===t})})}return a=o,u=["inline","block","selector","attributes","styles","classes"],!w((i=e).formatter.get(t),function(e){var t=r(e);return w(i.formatter.get(a),function(e){var o,i=r(e),a=t,u=i;return n(o=void 0===o?Pg:o).eq(a,u)})});var i,a,u}).length){var d=r.cloneNode(!1);return l.add(t,d),c.remove(o,i,d,a),l.remove(d),Kg.some(d)}return Kg.none()}function Ns(e,t,n,r){var o,i,a,u,s,c,l,f,d,m,p,h,v,b,y,C=e.dom,x=e.selection,w=[],S=x.getRng(),k=S.startContainer,N=S.startOffset,A=k;for(3===k.nodeType&&(N!==k.nodeValue.length&&(o=!0),A=A.parentNode);A;){if(wx(e,A,t,n,r)){i=A;break}A.nextSibling&&(o=!0),w.push(A),A=A.parentNode}i&&(o?(a=x.getBookmark(),S.collapse(!0),u=Ki(gi(e,S,e.formatter.get(t),!0)),e.formatter.remove(t,n,u,r),x.moveToBookmark(a)):(s=Oo(e.getBody(),i),d=c=Cs(!1).dom,(h=(p=e.dom).getParent(m=null!==s?s:i,g(Wo,e)))&&p.isEmpty(h)?m.parentNode.replaceChild(d,m):(b=Zn(v=Lp.fromDom(m),"br"),y=_(function(){for(var e=[],t=v.dom;t;)e.push(Lp.fromDom(t)),t=t.lastChild;return e}().slice(-1),Ft),b.length===y.length&&E(y,$p),p.isEmpty(m)?m.parentNode.replaceChild(d,m):p.insertAfter(d,m)),l=ks(e,c,i,t,n,r),f=Es(w.concat(l.toArray()),c),xs(e,s,!1),x.setCursorLocation(f,1),C.isEmpty(i)&&C.remove(i)))}function _s(e,t){var n=e.schema.getTextInlineElements();return tp(n,we(t))&&!To(t.dom)&&!rt(t.dom)}function As(e){return Gp(e)&&!zo(e)&&!To(e)&&!rt(e)}function Rs(e,t){for(var n=e;n;n=n[t]){if(Qp(n)&&ue(n.data))return e;if(Gp(n)&&!zo(n))return n}return e}function Ds(e,t,n){var r=ja(e);if(t&&n&&(t=Rs(t,"previousSibling"),n=Rs(n,"nextSibling"),r.compare(t,n))){for(var o=t.nextSibling;o&&o!==n;){var i=o;o=o.nextSibling;t.appendChild(i)}return e.remove(n),Pp.each(Pp.grep(n.childNodes),function(e){t.appendChild(e)}),t}return n}function Ts(e,t,n,r){var o;r&&!1!==t.merge_siblings&&Ds(e,o=Ds(e,$o(r),r),$o(o,!0))}function Os(e,t){return function(n){return!(!n||!Jo(e,n,t))}}function Bs(e,t,n){return function(r){var o,i;e.setStyle(r,t,n),""===r.getAttribute("style")&&r.removeAttribute("style"),o=e,"SPAN"===(i=r).nodeName&&0===o.getAttribs(i).length&&o.remove(i,!0)}}function Ps(e,t,n){return e.isChildOf(t,n)&&t!==n&&!e.isBlock(n)}function Ls(e,t,n){var r,o=t[n?"startContainer":"endContainer"],i=t[n?"startOffset":"endOffset"];return Gp(o)&&(r=o.childNodes.length-1,!n&&i&&i--,o=o.childNodes[r<i?r:i]),Qp(o)&&n&&i>=o.nodeValue.length&&(o=new jh(o,e.getBody()).next()||o),Qp(o)&&!n&&0===i&&new jh(o,e.getBody()).prev()||o}function Is(e,t){var n=t?"firstChild":"lastChild";if(/^(TR|TH|TD)$/.test(e.nodeName)&&e[n]){var r=e[n];return"TR"===e.nodeName&&r[n]||r}return e}function Ms(e,t,n,r){var o=e.create(n,r);return t.parentNode.insertBefore(o,t),o.appendChild(t),o}function Fs(e,t,n,r,o){var i=Lp.fromDom(t),a=Lp.fromDom(e.create(r,o));return Ve(a,(n?Oe:Te)(i)),n?(ze(i,a),je(a,i)):(He(i,a),qp(a,i)),a.dom}function Us(e,t,n,r){var o=$o(t,n,r);return a(o)||"BR"===o.nodeName||e.isBlock(o)}function zs(e,t,n,r,o){var i,a,u=e.dom,s=u,c=r;if(!(ri(a=t)&&Mx(c,a.inline)||ti(a)&&Mx(c,a.block)||ni(a)&&Gp(c)&&s.is(c,a.selector)||t.links&&"A"===r.nodeName))return Px.keep();var l,f,d,m,g,p,h,v,b=r;if(ri(t)&&"all"===t.remove&&Mg(t.preserve_attributes)){var y=_(u.getAttribs(b),function(e){return x(t.preserve_attributes,e.name.toLowerCase())});if(u.removeAllAttribs(b),E(y,function(e){return u.setAttrib(b,e.name,e.value)}),0<y.length)return Px.rename("span")}if("all"!==t.remove){Ix(t.styles,function(e,r){e=Go(u,Xo(e,n),r+""),jg(r)&&(r=e,o=null),!t.remove_similar&&o&&!Mx(Jo(u,o,r),e)||u.setStyle(b,r,""),i=!0}),i&&""===u.getAttrib(b,"style")&&(b.removeAttribute("style"),b.removeAttribute("data-mce-style")),Ix(t.attributes,function(e,r){var i;if(e=Xo(e,n),jg(r)&&(r=e,o=null),t.remove_similar||!o||Mx(u.getAttrib(o,r),e))if("class"===r&&(e=u.getAttrib(b,r))&&(i="",E(e.split(/\s+/),function(e){/mce\-\w+/.test(e)&&(i+=(i?" ":"")+e)}),i))u.setAttrib(b,r,i);else{if(Lx.test(r)&&b.removeAttribute("data-mce-"+r),"style"===r&&et(["li"])(b)&&"none"===u.getStyle(b,"list-style-type"))return b.removeAttribute(r),void u.setStyle(b,"list-style-type","none");"class"===r&&b.removeAttribute("className"),b.removeAttribute(r)}}),Ix(t.classes,function(e){e=Xo(e,n),o&&!u.hasClass(o,e)||u.removeClass(b,e)});for(var C=u.getAttribs(b),w=0;w<C.length;w++){var S=C[w].nodeName;if(0!==S.indexOf("_")&&0!==S.indexOf("data-"))return Px.keep()}}return"none"!==t.remove?(l=e,d=t,p=(f=b).parentNode,h=l.dom,v=zr(l),ti(d)&&(v?p===h.getRoot()&&(d.list_block&&Mx(f,d.list_block)||E(Jg(f.childNodes),function(e){Ko(l,v,e.nodeName.toLowerCase())?m?m.appendChild(e):(m=Ms(h,e,v),h.setAttribs(m,l.settings.forced_root_block_attrs)):m=null})):h.isBlock(f)&&!h.isBlock(p)&&(Us(h,f,!1)||Us(h,f.firstChild,!0,!0)||f.insertBefore(h.create("br"),f.firstChild),Us(h,f,!0)||Us(h,f.lastChild,!1,!0)||f.appendChild(h.create("br")))),ni(g=d)&&ri(g)&&at(K(g,"mixed"),!0)&&!Mx(d.inline,f)||h.remove(f,!0),Px.removed()):Px.keep()}function Hs(e,t,n,r,o){return zs(e,t,n,r,o).fold(Vg,function(t){return e.dom.rename(r,t),!0},qg)}function js(e,t,n,r,o){function i(r){var i,a,u,s,c,l=(a=t,u=n,s=o,E(Zo((i=e).dom,r.parentNode).reverse(),function(e){var t;c||"_start"===e.id||"_end"===e.id||(t=wx(i,e,a,u,s))&&!1!==t.split&&(c=e)}),c);return function(e,t,n,r,o,i,a,u){var s,c,l=e.dom;if(n){for(var d=n.parentNode,m=r.parentNode;m&&m!==d;m=m.parentNode){for(var g=l.clone(m,!1),p=0;p<t.length&&null!==(g=function(e,t,n){return zs(e,t,u,n,n).fold(f(n),function(t){return e.dom.createFragment().appendChild(n),e.dom.rename(n,t)},f(null))}(e,t[p],g));p++);g&&(s&&g.appendChild(s),c=c||g,s=g)}!i||a.mixed&&l.isBlock(n)||(r=l.split(n,r)),s&&(o.parentNode.insertBefore(s,o),c.appendChild(o),ri(a)&&Ts(l,a,0,s))}return r}(e,d,l,r,r,!0,m,n)}function a(t){return w(d,function(r){return Hs(e,r,n,t,t)})}function s(e){var t,n=p.get(e?"_start":"_end"),r=n[e?"firstChild":"lastChild"];return zo(t=r)&&Gp(t)&&("_start"===t.id||"_end"===t.id)&&(r=r[e?"firstChild":"lastChild"]),Qp(r)&&0===r.data.length&&(r=e?n.previousSibling||n.nextSibling:n.nextSibling||n.previousSibling),p.remove(n,!0),r}function c(t){var n=gi(e,t,d,t.collapsed);if(m.split){if(n=Ki(n),(o=Ls(e,n,!0))!==(a=Ls(e,n))){if(o=Is(o,!0),a=Is(a,!1),Ps(p,o,a)){var r=Kg.from(o.firstChild).getOr(o);return i(Fs(p,r,!0,"span",{id:"_start","data-mce-type":"bookmark"})),void s(!0)}if(Ps(p,a,o))return r=Kg.from(a.lastChild).getOr(a),i(Fs(p,r,!1,"span",{id:"_end","data-mce-type":"bookmark"})),void s(!1);var o=Ms(p,o,"span",{id:"_start","data-mce-type":"bookmark"}),a=Ms(p,a,"span",{id:"_end","data-mce-type":"bookmark"}),u=p.createRng();u.setStartAfter(o),u.setEndBefore(a),pi(p,u,function(e){E(e,function(e){zo(e)||zo(e.parentNode)||i(e)})}),i(o),i(a),o=s(!0),a=s()}else o=a=i(o);n.startContainer=o.parentNode||o,n.startOffset=p.nodeIndex(o),n.endContainer=a.parentNode||a,n.endOffset=p.nodeIndex(a)+1}pi(p,n,function(e){E(e,v)})}var l,d=e.formatter.get(t),m=d[0],g=!0,p=e.dom,h=e.selection,v=function(t){var n=!0,r=!1;Gp(t)&&p.getContentEditable(t)&&(n=g,g="true"===p.getContentEditable(t),r=!0);var o,i,s=Jg(t.childNodes);if(g&&!r&&(o=a(t)||w(d,function(e){return ps(p,t,e)}),i=t.parentNode,!o&&u(i)&&oi(m)&&a(i)),m.deep&&s.length){for(var c=0;c<s.length;c++)v(s[c]);r&&(g=n)}E(["underline","line-through","overline"],function(n){Gp(t)&&e.dom.getStyle(t,"text-decoration")===n&&t.parentNode&&Qo(p,t.parentNode)===n&&Hs(e,{deep:!1,exact:!0,inline:"span",styles:{textDecoration:n}},null,t)})};if(r)return Vo(r)?((l=p.createRng()).setStartBefore(r),l.setEndAfter(r),c(l)):c(r),void Li(e,t,r,n);if("false"!==p.getContentEditable(h.getNode()))h.isCollapsed()&&ri(m)&&!bi(e).length?Ns(e,t,n,o):(Ei(h,!0,function(){Si(e,c)}),ri(m)&&vs(e,t,n,h.getStart())&&qo(p,h,h.getRng()),e.nodeChanged()),Li(e,t,r,n);else{r=h.getNode();for(var b=0;b<d.length&&(!d[b].ceFalseOverride||!Hs(e,d[b],n,r,r));b++);Li(e,t,r,n)}}function Vs(e){return Gp(e)&&!zo(e)&&!To(e)&&!rt(e)}function qs(e){return tp(e,"vars")}function $s(e,t,n,r,o){return D(t,function(t){var i=e.formatter.matchNode(t,n,null!=o?o:{},r);return!zg(i)},function(t){return ms(e,t,n)||!r&&u(e.formatter.matchNode(t,n,o,!0))})}function Ws(e,t){var n=null!=t?t:Hx(e);return _(Zo(e.dom,n),function(e){return Gp(e)&&!rt(e)})}function Ks(e,t,n,r,o,i){var a,u,s,c,l,f,d,m,g;return null===t.get()&&(u=e,(a=t).set({}),u.on("NodeChange",function(e){jx(u,e.element,a.get())}),u.on("FormatApply FormatRemove",function(e){var t=Kg.from(e.node).map(function(e){return Vo(e)?e:e.startContainer}).bind(function(e){return Gp(e)?Kg.some(e):Kg.from(e.parentElement)}).getOrThunk(function(){return Hx(u)});jx(u,t,a.get())})),s=e,l=n,f=r,d=o,m=i,g=(c=t).get(),E(l.split(","),function(e){function t(){var t=Ws(s);return $s(s,t,e,d,m).isSome()}var n,r=K(g,e).getOrThunk(function(){var t={withSimilar:{state:qn(!1),similar:!0,callbacks:[]},withoutSimilar:{state:qn(!1),similar:!1,callbacks:[]},withVars:[]};return g[e]=t});zg(m)?((n=d?r.withSimilar:r.withoutSimilar).callbacks.push(f),1===n.callbacks.length&&n.state.set(t())):r.withVars.push({state:qn(t()),similar:d,vars:m,callback:f})}),c.set(g),{unbind:function(){var e,o=n,i=r,a=(e=t).get();E(o.split(","),function(e){return K(a,e).each(function(t){a[e]={withSimilar:rp(rp({},t.withSimilar),{callbacks:_(t.withSimilar.callbacks,function(e){return e!==i})}),withoutSimilar:rp(rp({},t.withoutSimilar),{callbacks:_(t.withoutSimilar.callbacks,function(e){return e!==i})}),withVars:_(t.withVars,function(e){return e.callback!==i})}})}),e.set(a)}}}function Xs(e,t){var n=(t||document).createDocumentFragment();return E(e,function(e){n.appendChild(e.dom)}),Lp.fromDom(n)}function Ys(e,t,n){return{element:e,width:t,rows:n}}function Gs(e,t){return{element:e,cells:t}}function Js(e,t){var n=parseInt(dt(e,t),10);return isNaN(n)?1:n}function Qs(e){return R(e,function(e,t){return t.cells.length>e?t.cells.length:e},0)}function Zs(e,t){for(var n=e.rows,r=0;r<n.length;r++)for(var o=n[r].cells,i=0;i<o.length;i++)if(he(o[i],t))return Kg.some({x:i,y:r});return Kg.none()}function ec(e,t,n,r,o){for(var i=[],a=e.rows,u=n;u<=o;u++){var s=a[u].cells,c=t<r?s.slice(t,r+1):s.slice(r,t+1);i.push(Gs(a[u].element,c))}return i}function tc(e){var t=Ys(ir(e),0,[]);return E(Zn(e,"tr"),function(e,n){E(Zn(e,"td,th"),function(r,o){!function(e,t,n,r,o){for(var i=Js(o,"rowspan"),a=Js(o,"colspan"),u=e.rows,s=n;s<n+i;s++){u[s]||(u[s]=Gs(ar(r),[]));for(var c=t;c<t+a;c++)u[s].cells[c]=s===n&&c===t?o:ir(o)}}(t,function(e,t,n){for(;r=t,((o=e.rows)[n]?o[n].cells:[])[r];)t++;var r,o;return t}(t,o,n),n,e,r)})}),Ys(t.element,Qs(t.rows),t.rows)}function nc(e,t){var n,r,o,i=Lp.fromDom(t.commonAncestorContainer),a=eu(i,e),u=_(a,function(e){return Mt(e)||Vh(e)}),s=(o=t,T(r=a,function(e){return"li"===we(e)&&Ci(e,o)}).fold(f([]),function(){return T(r,function(e){return"ul"===we(e)||"ol"===we(e)}).map(function(e){var t=Lp.fromTag(we(e));return pt(t,W(bt(e),function(e,t){return ap(t,"list-style")})),[Lp.fromTag("li"),t]}).getOr([])}));return S(u.concat(s.length?s:Kh(n=i)?Ae(n).filter(Wh).fold(f([]),function(e){return[n,e]}):Wh(n)?[n]:[]),ir)}function rc(){return Xs([])}function oc(e,t){return At(t[0],"table",g(he,e)).bind(function(e){var n,r,o=t[0],i=t[t.length-1],a=tc(e);return r=i,Zs(n=a,o).bind(function(e){return Zs(n,r).map(function(t){return r=n,o=e.x,i=e.y,a=t.x,s=i<(u=t.y)?ec(r,o,i,a,u):ec(r,o,u,a,i),Ys(r.element,Qs(s),s);var r,o,i,a,u,s})}).map(function(e){return Xs([(n=S((t=e).rows,function(e){var t=S(e.cells,function(e){var t=ar(e);return gt(t,"colspan"),gt(t,"rowspan"),t}),n=ir(e.element);return Ve(n,t),n}),r=ir(t.element),Ve(o=Lp.fromTag("tbody"),n),qp(r,o),r)]);var t,n,r,o})}).getOrThunk(rc)}function ic(e,t){var n,r,o,i,a,u,s,c=vi(t,e);return 0<c.length?oc(e,c):(n=e,0<(r=t).length&&r[0].collapsed?rc():(o=n,i=r[0],a=Lp.fromDom(i.cloneContents()),s=R(u=nc(o,i),function(e,t){return qp(t,e),t},a),0<u.length?Xs([s]):s))}function ac(e,t){return 0<=t&&t<e.length&&Ho(e.charAt(t))}function uc(e,t){var n=tv(e.innerText);return t?n.replace(/^[ \f\n\r\t\v]+/,""):n}function sc(e){return Gp(e)?e.outerHTML:Qp(e)?Rv.encodeRaw(e.data,!1):Zp(e)?"<!--"+e.data+"-->":""}function cc(e,t){var n=0;E(e,function(e){var r,o,i,a,u,s,c,l;0===e[0]?n++:1===e[0]?(a=t,u=e[1],s=n,l=function(e){var t,n=document.createElement("div"),r=document.createDocumentFragment();for(e&&(n.innerHTML=e);t=n.firstChild;)r.appendChild(t);return r}(u),a.hasChildNodes()&&s<a.childNodes.length?(c=a.childNodes[s]).parentNode.insertBefore(l,c):a.appendChild(l),n++):2===e[0]&&(o=n,(r=t).hasChildNodes()&&o<r.childNodes.length&&(i=r.childNodes[o]).parentNode.removeChild(i))})}function lc(e){var t,n=B((t=e.getBody(),_(S(Jg(t.childNodes),sc),function(e){return 0<e.length})),function(t){var n=Ha(e.serializer,t);return 0<n.length?[n]:[]}),r=n.join("");return-1!==r.indexOf("</iframe>")?{type:"fragmented",fragments:n,content:"",bookmark:null,beforeBookmark:null}:{type:"complete",fragments:null,content:r,bookmark:null,beforeBookmark:null}}function fc(e,t,n){function r(e,t,n,r){for(var o=e;o-t<r&&o<n&&s[o]===c[o-t];)++o;return{start:e,end:o,diag:t}}var o,i,a,s,c,l,f,d,m,g,p,h=n?t.beforeBookmark:t.bookmark;"fragmented"===t.type?(o=t.fragments,i=e.getBody(),a=S(Jg(i.childNodes),sc),cc((c=o,l=(s=a).length+c.length+2,f=new Array(l),d=new Array(l),m=function(e,t,n,r,o){var i=g(e,t,n,r);if(null===i||i.start===t&&i.diag===t-r||i.end===e&&i.diag===e-n)for(var a=e,u=n;a<t||u<r;)a<t&&u<r&&s[a]===c[u]?(o.push([0,s[a]]),++a,++u):r-n<t-e?(o.push([2,s[a]]),++a):(o.push([1,c[u]]),++u);else{m(e,i.start,n,i.start-i.diag,o);for(var l=i.start;l<i.end;++l)o.push([0,s[l]]);m(i.end,t,i.end-i.diag,r,o)}},g=function(e,t,n,o){var i=t-e,a=o-n;if(0==i||0==a)return null;var u,l,m,g,p,h=i-a,v=a+i,b=(v%2==0?v:1+v)/2;for(f[1+b]=e,d[1+b]=t+1,u=0;u<=b;++u){for(l=-u;l<=u;l+=2){for(m=l+b,l===-u||l!==u&&f[m-1]<f[m+1]?f[m]=f[m+1]:f[m]=f[m-1]+1,p=(g=f[m])-e+n-l;g<t&&p<o&&s[g]===c[p];)f[m]=++g,++p;if(h%2!=0&&h-u<=l&&l<=h+u&&d[m-h]<=f[m])return r(d[m-h],l+e-n,t,o)}for(l=h-u;l<=h+u;l+=2){for(m=l+b-h,l===h-u||l!==h+u&&d[m+1]<=d[m-1]?d[m]=d[m+1]-1:d[m]=d[m-1],p=(g=d[m]-1)-e+n-l;e<=g&&n<=p&&s[g]===c[p];)d[m]=g--,p--;if(h%2==0&&-u<=l&&l<=u&&d[m]<=f[m+h])return r(d[m],l+e-n,t,o)}}},p=[],m(0,s.length,0,c.length,p),p),i)):e.setContent(t.content,{format:"raw",no_selection:!u(h)||!Bo(h)||!h.isFakeCaret}),e.selection.moveToBookmark(h)}function dc(e){return"fragmented"===e.type?e.fragments.join(""):e.content}function mc(e){var t=Lp.fromTag("body",Vx());return rr(t,dc(e)),E(Zn(t,"*[data-mce-bogus]"),$e),t.dom.innerHTML}function gc(e,t){return!(!e||!t)&&(r=t,dc(e)===dc(r)||(n=t,mc(e)===mc(n)));var n,r}function pc(e){return 0===e.get()}function hc(e,t,n){pc(n)&&(e.typing=t)}function vc(e,t){e.typing&&(hc(e,!1,t),e.add())}function bc(e){return{undoManager:{beforeChange:function(t,n){var r=e,o=n;pc(t)&&o.set(Ey(r.selection))},add:function(t,n,r,o,i,a){return function(e,t,n,r,o,i,a){var u=lc(e);if(i=Pp.extend(i=i||{},u),!1===pc(r)||e.removed)return null;var s=t.data[n.get()];if(e.fire("BeforeAddUndo",{level:i,lastLevel:s,originalEvent:a}).isDefaultPrevented())return null;if(s&&gc(s,i))return null;t.data[n.get()]&&o.get().each(function(e){t.data[n.get()].beforeBookmark=e});var c=e.getParam("custom_undo_redo_levels",0,"number");if(c&&t.data.length>c){for(var l=0;l<t.data.length-1;l++)t.data[l]=t.data[l+1];t.data.length--,n.set(t.data.length)}i.bookmark=Ey(e.selection),n.get()<t.data.length-1&&(t.data.length=n.get()+1),t.data.push(i),n.set(t.data.length-1);var f={level:i,lastLevel:s,originalEvent:a};return 0<n.get()?(e.setDirty(!0),e.fire("AddUndo",f),e.fire("change",f)):e.fire("AddUndo",f),i}(e,t,n,r,o,i,a)},undo:function(t,n,r){return o=e,a=n,u=r,(i=t).typing&&(i.add(),i.typing=!1,hc(i,!1,a)),0<u.get()&&(u.set(u.get()-1),fc(o,s=i.data[u.get()],!0),o.setDirty(!0),o.fire("Undo",{level:s})),s;var o,i,a,u,s},redo:function(t,n){return r=e,i=n,(o=t).get()<i.length-1&&(o.set(o.get()+1),fc(r,a=i[o.get()],!1),r.setDirty(!0),r.fire("Redo",{level:a})),a;var r,o,i,a},clear:function(t,n){var r,o=e,i=n;(r=t).data=[],i.set(0),r.typing=!1,o.fire("ClearUndos")},reset:function(e){var t;(t=e).clear(),t.add()},hasUndo:function(t,n){return r=e,o=t,0<n.get()||o.typing&&o.data[0]&&!gc(lc(r),o.data[0]);var r,o},hasRedo:function(e,t){return n=e,t.get()<n.data.length-1&&!n.typing;var n},transact:function(e,t,n){return o=n,vc(r=e,t),r.beforeChange(),r.ignore(o),r.add();var r,o},ignore:function(e,t){try{e.set(e.get()+1),t()}finally{e.set(e.get()-1)}},extra:function(t,n,r,o){var i,a,u=e,s=n,c=o;(i=t).transact(r)&&(a=i.data[s.get()].bookmark,fc(u,i.data[s.get()-1],!0),i.transact(c)&&(i.data[s.get()-1].beforeBookmark=a))}},formatter:{match:function(t,n,r,o){return vs(e,t,n,r,o)},matchAll:function(t,n){return o=t,i=n,a=[],u={},s=(r=e).selection.getStart(),r.dom.getParent(s,function(e){for(var t=0;t<o.length;t++){var n=o[t];!u[n]&&wx(r,e,n,i)&&(u[n]=!0,a.push(n))}},r.dom.getRoot()),a;var r,o,i,a,u,s},matchNode:function(t,n,r,o){return wx(e,t,n,r,o)},canApply:function(t){return function(e){var n=e.formatter.get(t),r=e.dom;if(n)for(var o=Zo(r,e.selection.getStart()),i=n.length-1;0<=i;i--){var a=n[i];if(!ni(a)||u(a.defaultBlock))return!0;for(var s=o.length-1;0<=s;s--)if(r.is(o[s],a.selector))return!0}return!1}(e)},closest:function(t){function n(e){return he(e,Lp.fromDom(r.getBody()))}return r=e,o=t,Kg.from(r.selection.getStart(!0)).bind(function(e){return ds(Lp.fromDom(e),function(e){return H(o,function(t){return wx(r,e.dom,n=t)?Kg.some(n):Kg.none();var n})},n)}).getOrNull();var r,o},apply:function(t,n,r){return zx(e,t,n,r)},remove:function(t,n,r,o){return js(e,t,n,r,o)},toggle:function(t,n,r){var o,i=t,a=n,u=r,s=(o=e).formatter.get(i);(!vs(o,i,a,u)||"toggle"in s[0]&&!s[0].toggle?zx:js)(o,i,a,u)},formatChanged:function(t,n,r,o,i){return Ks(e,t,n,r,o,i)}},editor:{getContent:function(t,n){return r=e,o=t,i=n,
|
26
|
+
Kg.from(r.getBody()).fold(f("tree"===o.format?new IC("body",11):""),function(e){return t=r,a=e,u=i,d=rp(rp({},n=o),{format:u,get:!0,getInner:!0}),g="raw"===(m=n.no_events?d:t.fire("BeforeGetContent",d)).format?Pp.trim(WC(t.serializer,a.innerHTML)):"text"===m.format?t.dom.isEmpty(a)?"":tv(a.innerText||a.textContent):"tree"===m.format?t.serializer.serialize(a,m):(c=(s=t).serializer.serialize(a,m),l=zr(s),f=new RegExp("^(<"+l+"[^>]*>( | |\\s|\xa0|<br \\/>|)<\\/"+l+">[\r\n]*|<br \\/>[\r\n]*)$"),c.replace(f,"")),x(["text","tree"],m.format)||Gh(Lp.fromDom(a))?m.content=g:m.content=Pp.trim(g),(m.no_events?m:t.fire("GetContent",m)).content;var t,n,a,u,s,c,l,f,d,m,g});var r,o,i},setContent:function(t,n){return ls(e,t,n)},insertContent:function(t,n){return us(e,t,n)},addVisual:function(t){var n,r=t,o=(n=e).dom,i=u(r)?r:n.getBody();zg(n.hasVisual)&&(n.hasVisual=n.getParam("visual",!0,"boolean")),E(o.select("table,a",i),function(e){switch(e.nodeName){case"TABLE":var t=n.getParam("visual_table_class","mce-item-table","string"),r=o.getAttrib(e,"border");r&&"0"!==r||!n.hasVisual?o.removeClass(e,t):o.addClass(e,t);break;case"A":var i,a;o.getAttrib(e,"href")||(i=o.getAttrib(e,"name")||e.id,a=n.getParam("visual_anchor_class","mce-item-anchor","string"),i&&n.hasVisual?o.addClass(e,a):o.removeClass(e,a))}}),n.fire("VisualAid",{element:r,hasVisual:n.hasVisual})}},selection:{getContent:function(t,n){return function(e,t,n){var r,o=(r=t,rp(rp({},n=void 0===n?{}:n),{format:r,get:!0,selection:!0})),i=e.fire("BeforeGetContent",o);if(i.isDefaultPrevented())return e.fire("GetContent",i),i.content;if("text"===i.format)return d=e,Kg.from(d.selection.getRng()).map(function(e){var t=Kg.from(d.dom.getParent(e.commonAncestorContainer,d.dom.isBlock)),n=d.getBody(),r=t.map(function(e){return e.nodeName}).getOr("div").toLowerCase(),o=Tp.browser.isIE()&&"pre"!==r,i=d.dom.add(n,r,{"data-mce-bogus":"all",style:"overflow: hidden; opacity: 0;"},e.cloneContents()),a=uc(i,o),u=tv(i.textContent);if(d.dom.remove(i),ac(u,0)||ac(u,u.length-1)){var s=uc(t.getOr(n),o),c=s.indexOf(a);return-1===c?a:(ac(s,c-1)?" ":"")+a+(ac(s,c+a.length)?" ":"")}return a}).getOr("");i.getInner=!0;var a,u,s,c,l,f,d,m=(u=i,s=(a=e).selection.getRng(),c=a.dom.create("body"),l=Ba(a,hi(a.selection.getSel())),(f=u.contextual?ic(Lp.fromDom(a.getBody()),l).dom:s.cloneContents())&&c.appendChild(f),a.selection.serializer.serialize(c,u));return"tree"===i.format?m:(i.content=e.selection.isCollapsed()?"":m,e.fire("GetContent",i),i.content)}(e,t,n)}},raw:{getModel:function(){return Kg.none()}}}}function yc(e){return tp(e.plugins,"rtc")}function Cc(e){var t=e;return K(e.plugins,"rtc").bind(function(e){return Kg.from(e.setup)}).fold(function(){return t.rtcInstance=bc(e),Kg.none()},function(e){var n,r;return t.rtcInstance=(n=f(null),r=f(""),{undoManager:{beforeChange:s,add:n,undo:n,redo:n,clear:s,reset:s,hasUndo:Vg,hasRedo:Vg,transact:n,ignore:s,extra:s},formatter:{match:Vg,matchAll:f([]),matchNode:f(void 0),canApply:Vg,closest:r,apply:s,remove:s,toggle:s,formatChanged:f({unbind:s})},editor:{getContent:r,setContent:r,insertContent:s,addVisual:s},selection:{getContent:r},raw:{getModel:f(Kg.none())}}),Kg.some(function(){return e().then(function(e){function n(e){return Ig(e)?e:{}}return t.rtcInstance=(r=e.undoManager,o=e.formatter,i=e.editor,a=e.selection,u=e.raw,{undoManager:{beforeChange:r.beforeChange,add:r.add,undo:r.undo,redo:r.redo,clear:r.clear,reset:r.reset,hasUndo:r.hasUndo,hasRedo:r.hasRedo,transact:function(e,t,n){return r.transact(n)},ignore:function(e,t){return r.ignore(t)},extra:function(e,t,n,o){return r.extra(n,o)}},formatter:{match:function(e,t,r,i){return o.match(e,n(t),i)},matchAll:o.matchAll,matchNode:o.matchNode,canApply:function(e){return o.canApply(e)},closest:function(e){return o.closest(e)},apply:function(e,t){return o.apply(e,n(t))},remove:function(e,t){return o.remove(e,n(t))},toggle:function(e,t){return o.toggle(e,n(t))},formatChanged:function(e,t,n,r,i){return o.formatChanged(t,n,r,i)}},editor:{getContent:function(e){return i.getContent(e)},setContent:function(e,t){return i.setContent(e,t)},insertContent:function(e){return i.insertContent(e)},addVisual:i.addVisual},selection:{getContent:function(e,t){return a.getContent(t)}},raw:{getModel:function(){return Kg.some(u.getRawModel())}}}),e.rtc.isRemote;var r,o,i,a,u})})})}function xc(e){return e.rtcInstance||bc(e)}function wc(e){var t=e.rtcInstance;if(t)return t;throw new Error("Failed to get RTC instance not yet initialized.")}function Sc(e){return 0===e.dom.length?($p(e),Kg.none()):Kg.some(e)}function Ec(e,t,n,r){e.bind(function(e){return(r?Su:wu)(e.dom,r?e.dom.length:0),t.filter(Mp).map(function(t){var o=n,i=r,a=e.dom,u=t.dom,s=(i?a:u).length;i?(Eu(a,u,!1,!i),o.setStart(u,s)):(Eu(u,a,!1,!i),o.setEnd(u,s))})}).orThunk(function(){var e=r;return t.filter(function(e){return Ri.isBookmarkNode(e.dom)}).bind(e?De:Re).or(t).filter(Mp).map(function(e){var t,n=r;Ae(t=e).each(function(e){var r=t.dom;n&&gu(e,py(r,0))?wu(r,0):!n&&pu(e,py(r,r.length))&&Su(r,r.length)})})})}function kc(e,t,n){var r,o=(r=t,rp(rp({format:"html"},n=void 0===n?{}:n),{set:!0,selection:!0,content:r})),i=o;if(!o.no_events){var a=e.fire("BeforeSetContent",o);if(a.isDefaultPrevented())return void e.fire("SetContent",a);i=a}i.content=function(e,t){if("raw"===t.format)return t.content;var n=e.selection.getRng(),r=e.dom.getParent(n.commonAncestorContainer,e.dom.isBlock),o=r?{context:r.nodeName.toLowerCase()}:{},i=e.parser.parse(t.content,rp(rp({isRootContent:!0,forced_root_block:!1},o),t));return qa({validate:e.validate},e.schema).serialize(i)}(e,i);var u=e.selection.getRng();!function(e,t){var n=Kg.from(t.firstChild).map(Lp.fromDom),r=Kg.from(t.lastChild).map(Lp.fromDom);e.deleteContents(),e.insertNode(t);var o=n.bind(Re).filter(Mp).bind(Sc),i=r.bind(De).filter(Mp).bind(Sc);Ec(o,n,e,!0),Ec(i,r,e,!1),e.collapse(!1)}(u,u.createContextualFragment(i.content)),e.selection.setRng(u),la(e,u),i.no_events||e.fire("SetContent",i)}function Nc(e,t,n){var r;e&&tp(e,t)&&(0===(r=_(e[t],function(e){return e!==n})).length?delete e[t]:e[t]=r)}function _c(e){return e.select}function Ac(e){return e&&e.ownerDocument&&ve(Lp.fromDom(e.ownerDocument),Lp.fromDom(e))}function Rc(e,t,n,r){function o(e,t){return kc(r,e,t)}function i(){var t=s(),n=null==t?void 0:t.anchorNode,r=null==t?void 0:t.focusNode;if(!t||!n||!r||Ze(n)||Ze(r))return!0;var o=e.createRng();o.setStart(n,t.anchorOffset),o.collapse(!0);var i=e.createRng();return i.setStart(r,t.focusOffset),i.collapse(!0),o.compareBoundaryPoints(o.START_TO_START,i)<=0}function a(e){var t=b();t.collapse(!!e),y(t)}function s(){return t.getSelection?t.getSelection():t.document.selection}function c(e,t){return T(t,function(t){return m.is(t,e)})}function l(e){return m.getParents(e,null,m.getRoot())}var f,d,m,g,p,h,v=function(e,t){return p||(p={},h={},g.on("NodeChange",function(e){var t=e.element,n=l(t),r={};Pp.each(p,function(e,t){c(t,n).each(function(o){h[t]||(E(e,function(e){e(!0,{node:o,selector:t,parents:n})}),h[t]=e),r[t]=e})}),Pp.each(h,function(e,o){r[o]||(delete h[o],Pp.each(e,function(e){e(!1,{node:t,selector:o,parents:n})}))})})),p[e]||(p[e]=[]),p[e].push(t),c(e,l(g.selection.getStart())).each(function(){h[e]=p[e]}),{unbind:function(){Nc(p,e,t),Nc(h,e,t)}}},b=function(){function n(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(e){return-1}}var o,i,a,u=t.document;if(void 0!==r.bookmark&&!1===Aa(r)){var c=xa(r);if(c.isSome())return c.map(function(e){return Ba(r,[e])[0]}).getOr(u.createRange())}try{(o=s())&&!Ze(o.anchorNode)&&(i=0<o.rangeCount?o.getRangeAt(0):(o.createRange?o:u).createRange(),i=Ba(r,[i])[0])}catch(n){}return(i=i||(u.createRange?u.createRange():u.body.createTextRange())).setStart&&9===i.startContainer.nodeType&&i.collapsed&&(a=e.getRoot(),i.setStart(a,0),i.setEnd(a,0)),f&&d&&(0===n(i.START_TO_START,i,f)&&0===n(i.END_TO_END,i,f)?i=d:d=f=null),i},y=function(e,t){var n;if((o=e)&&(_c(o)||Ac(o.startContainer)&&Ac(o.endContainer))){var o,i=_c(e)?e:null;if(i){d=null;try{i.select()}catch(e){}}else{var a=s();if(e=r.fire("SetSelectionRange",{range:e,forward:t}).range,a){d=e;try{a.removeAllRanges(),a.addRange(e)}catch(e){}!1===t&&a.extend&&(a.collapse(e.endContainer,e.endOffset),a.extend(e.startContainer,e.startOffset)),f=0<a.rangeCount?a.getRangeAt(0):null}e.collapsed||e.startContainer!==e.endContainer||!a.setBaseAndExtent||Tp.ie||e.endOffset-e.startOffset<2&&e.startContainer.hasChildNodes()&&(n=e.startContainer.childNodes[e.startOffset])&&"IMG"===n.tagName&&(a.setBaseAndExtent(e.startContainer,e.startOffset,e.endContainer,e.endOffset),a.anchorNode===e.startContainer&&a.focusNode===e.endContainer||a.setBaseAndExtent(n,0,n,1)),r.fire("AfterSetSelectionRange",{range:e,forward:t})}}},C={bookmarkManager:null,controlSelection:null,dom:m=e,win:t,serializer:n,editor:g=r,collapse:a,setCursorLocation:function(t,n){var o=e.createRng();u(t)&&u(n)?(o.setStart(t,n),o.setEnd(t,n),y(o),a(!1)):(xi(e,o,r.getBody(),!0),y(o))},getContent:function(e){return n=(t=void 0===(t=e)?{}:t).format||"html",o=t,wc(r).selection.getContent(n,o);var t,n,o},setContent:o,getBookmark:function(e,t){return x.getBookmark(e,t)},moveToBookmark:function(e){return x.moveToBookmark(e)},select:function(t,n){var r=e,o=n;return Kg.from(t).map(function(e){var t=r.nodeIndex(e),n=r.createRng();return n.setStart(e.parentNode,t),n.setEnd(e.parentNode,t+1),o&&(xi(r,n,e,!0),xi(r,n,e,!1)),n}).each(y),t},isCollapsed:function(){var e=b(),t=s();return!(!e||e.item)&&(e.compareEndPoints?0===e.compareEndPoints("StartToEnd",e):!t||e.collapsed)},isForward:i,setNode:function(t){return o(e.getOuterHTML(t)),t},getNode:function(){return function(e,t){if(!t)return e;var n=t.startContainer,r=t.endContainer,o=t.startOffset,i=t.endOffset,a=t.commonAncestorContainer;return!t.collapsed&&(n===r&&i-o<2&&n.hasChildNodes()&&(a=n.childNodes[o]),3===n.nodeType&&3===r.nodeType&&(n=n.length===o?Oa(n.nextSibling,!0):n.parentNode,r=0===i?Oa(r.previousSibling,!1):r.parentNode,n&&n===r))?n:a&&3===a.nodeType?a.parentNode:a}(r.getBody(),b())},getSel:s,setRng:y,getRng:b,getStart:function(e){return Da(r.getBody(),b(),e)},getEnd:function(e){return Ta(r.getBody(),b(),e)},getSelectedBlocks:function(t,n){return function(e,t,n,r){var o=[],i=e.getRoot();if(n=e.getParent(n||Da(i,t,t.collapsed),e.isBlock),r=e.getParent(r||Ta(i,t,t.collapsed),e.isBlock),n&&n!==i&&o.push(n),n&&r&&n!==r)for(var a,u=new jh(n,i);(a=u.next())&&a!==r;)e.isBlock(a)&&o.push(a);return r&&n!==r&&r!==i&&o.push(r),o}(e,b(),t,n)},normalize:function(){var t=b();if(1<hi(s()).length||!wi(r))return t;var n=$i(e,t);return n.each(function(e){y(e,i())}),n.getOr(t)},selectorChanged:function(e,t){return v(e,t),C},selectorChangedWithUnbind:v,getScrollContainer:function(){for(var t,n=e.getRoot();n&&"BODY"!==n.nodeName;){if(n.scrollHeight>n.clientHeight){t=n;break}n=n.parentNode}return t},scrollIntoView:function(e,t){u(e)?(r.inline?ua:ca)(r,e,t):la(r,b(),t)},placeCaretAt:function(e,t){return y(Fi(e,t,r.getDoc()))},getBoundingClientRect:function(){var e=b();return e.collapsed?py.fromRangeStart(e).getClientRects()[0]:e.getBoundingClientRect()},destroy:function(){t=f=d=null,w.destroy()}},x=Ri(C),w=Ii(C,r);return C.bookmarkManager=x,C.controlSelection=w,C}function Dc(e,t){var n,r,o,i,a=fn();t.convert_fonts_to_spans&&(r=e,o=a,i=Pp.explode(t.font_size_legacy_values),r.addNodeFilter("font",function(e){E(e,function(e){var t,n=o.parse(e.attr("style")),r=e.attr("color"),a=e.attr("face"),u=e.attr("size");r&&(n.color=r),a&&(n["font-family"]=a),u&&(n["font-size"]=i[parseInt(e.attr("size"),10)-1]),e.name="span",e.attr("style",o.serialize(n)),t=e,E(["color","face","size"],function(e){t.attr(e,null)})})})),n=a,e.addNodeFilter("strike",function(e){E(e,function(e){var t=n.parse(e.attr("style"));t["text-decoration"]="line-through",e.name="span",e.attr("style",n.serialize(t))})})}function Tc(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return{type:t=r?r[1]:t,data:n[1]}}function Oc(e,t){var n;try{n=atob(t)}catch(e){return Kg.none()}for(var r=new Uint8Array(n.length),o=0;o<r.length;o++)r[o]=n.charCodeAt(o);return Kg.some(new Blob([r],{type:e}))}function Bc(e){return 0===e.indexOf("blob:")?(t=e,new Uh(function(e,n){function r(){n("Cannot convert "+t+" to Blob. Resource might not exist or is inaccessible.")}try{var o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="blob",o.onload=function(){200===o.status?e(o.response):r()},o.onerror=r,o.send()}catch(e){r()}})):0===e.indexOf("data:")?(n=e,new Uh(function(e){var t=Tc(n);Oc(t.type,t.data).fold(function(){return e(new Blob([]))},e)})):null;var t,n}function Pc(e){return(e||"blobid")+qx++}function Lc(e,t){var n={};return{findAll:function(r,o){o=o||qg;var i=S(_(r?Jg(r.getElementsByTagName("img")):[],function(t){var n=t.src;return Tp.fileApi&&!t.hasAttribute("data-mce-bogus")&&!t.hasAttribute("data-mce-placeholder")&&n&&n!==Tp.transparentSrc&&(0===n.indexOf("blob:")?!e.isUploaded(n)&&o(t):0===n.indexOf("data:")&&o(t))}),function(e){if(void 0!==n[e.src])return new Uh(function(t){n[e.src].then(function(n){return"string"==typeof n?n:void t({image:e,blobInfo:n.blobInfo})})});var r=new Uh(function(n,r){var o,i,a,u,s,c,l,f,d;o=t,a=n,u=r,0!==(i=e).src.indexOf("blob:")?(c=(s=Tc(i.src)).data,l=s.type,f=c,(d=o.getByData(f,l))?a({image:i,blobInfo:d}):Bc(i.src).then(function(e){d=o.create(Pc(),e,f),o.add(d),a({image:i,blobInfo:d})},function(e){u(e)})):(d=o.getByUri(i.src))?a({image:i,blobInfo:d}):Bc(i.src).then(function(e){var t=e;new Uh(function(e){var n=new FileReader;n.onloadend=function(){e(n.result)},n.readAsDataURL(t)}).then(function(t){f=Tc(t).data,d=o.create(Pc(),e,f),o.add(d),a({image:i,blobInfo:d})})},function(e){u(e)})}).then(function(e){return delete n[e.image.src],e})["catch"](function(t){return delete n[e.src],t});return n[e.src]=r});return Uh.all(i)}}}function Ic(e,t,n,r){(e.padd_empty_with_br||t.insert)&&n[r.name]?r.empty().append(new IC("br",1)).shortEnded=!0:r.empty().append(new IC("#text",3)).value=Qh}function Mc(e,t,n,r){return r.isEmpty(t,n,function(t){return(n=e.getElementRule(t.name))&&n.paddEmpty;var n})}function Fc(e,t){function n(e){var t,n,r=e.attr("src");(t=e).attr("src")===Tp.transparentSrc||u(t.attr("data-mce-placeholder"))||u(e.attr("data-mce-bogus"))||((n=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(r))?Kg.some({type:n[1],data:decodeURIComponent(n[2])}):Kg.none()).filter(function(){return function(e,t){if(t.images_dataimg_filter){var n=new Image;return n.src=e.attr("src"),j(e.attributes.map,function(e,t){n.setAttribute(t,e)}),t.images_dataimg_filter(n)}return!0}(e,o)}).bind(function(e){var t=e.type,n=e.data;return Kg.from(i.getByData(n,t)).orThunk(function(){return Oc(t,n).map(function(e){var t=i.create(Pc(),e,n);return i.add(t),t})})}).each(function(t){e.attr("src",t.blobUri())})}var r,o,i,a=e.schema;t.remove_trailing_brs&&e.addNodeFilter("br",function(e,n,r){var o,i,u,s,c,l,f,d,m=e.length,g=Pp.extend({},a.getBlockElements()),p=a.getNonEmptyElements(),h=a.getWhiteSpaceElements();for(g.body=1,o=0;o<m;o++)if(u=(i=e[o]).parent,g[i.parent.name]&&i===u.lastChild){for(c=i.prev;c;){if("span"!==(l=c.name)||"bookmark"!==c.attr("data-mce-type")){"br"===l&&(i=null);break}c=c.prev}i&&(i.remove(),Mc(a,p,h,u)&&(f=a.getElementRule(u.name))&&(f.removeEmpty?u.remove():f.paddEmpty&&Ic(t,r,g,u)))}else{for(s=i;u&&u.firstChild===s&&u.lastChild===s&&!g[(s=u).name];)u=u.parent;s===u&&!0!==t.padd_empty_with_br&&((d=new IC("#text",3)).value=Qh,i.replace(d))}}),e.addAttributeFilter("href",function(e){var n,r,o=e.length;if(!t.allow_unsafe_link_target)for(;o--;){var i=e[o];"a"===i.name&&"_blank"===i.attr("target")&&i.attr("rel",(r=void 0,r=(n=i.attr("rel"))?Pp.trim(n):"",/\b(noopener)\b/g.test(r)?r:r.split(" ").filter(function(e){return 0<e.length}).concat(["noopener"]).sort().join(" ")))}}),t.allow_html_in_named_anchor||e.addAttributeFilter("id,name",function(e){for(var t,n,r,o,i=e.length;i--;)if("a"===(o=e[i]).name&&o.firstChild&&!o.attr("href"))for(r=o.parent,t=o.lastChild;n=t.prev,r.insert(t,o),t=n;);}),t.fix_list_elements&&e.addNodeFilter("ul,ol",function(e){for(var t,n,r,o=e.length;o--;)"ul"!==(r=(n=e[o]).parent).name&&"ol"!==r.name||(n.prev&&"li"===n.prev.name?n.prev.append(n):((t=new IC("li",1)).attr("style","list-style-type: none"),n.wrap(t)))}),t.validate&&a.getValidClasses()&&e.addAttributeFilter("class",function(e){for(var t=a.getValidClasses(),n=e.length;n--;){for(var r=e[n],o=r.attr("class").split(" "),i="",u=0;u<o.length;u++){var s=o[u],c=!1,l=t["*"];l&&l[s]&&(c=!0),l=t[r.name],(c=!(c||!l||!l[s])||c)&&(i&&(i+=" "),i+=s)}i.length||(i=null),r.attr("class",i)}}),r=e,(i=(o=t).blob_cache)&&r.addAttributeFilter("src",function(e){return E(e,n)})}function Uc(e,t){function n(e){var t=e.name;t in r&&((u=i[t])?u.push(e):i[t]=[e]);for(var n=o.length;n--;){var u,s=o[n].name;s in e.attributes.map&&((u=a[s])?u.push(e):a[s]=[e])}return e}void 0===t&&(t=cn());var r={},o=[],i={},a={};(e=e||{}).validate=!("validate"in e)||e.validate,e.root_name=e.root_name||"body";var s={schema:t,addAttributeFilter:function(e,t){Kx(Xx(e),function(e){for(var n=0;n<o.length;n++)if(o[n].name===e)return void o[n].callbacks.push(t);o.push({name:e,callbacks:[t]})})},getAttributeFilters:function(){return[].concat(o)},addNodeFilter:function(e,t){Kx(Xx(e),function(e){var n=r[e];n||(r[e]=n=[]),n.push(t)})},getNodeFilters:function(){var e,t=[];for(e in r)tp(r,e)&&t.push({name:e,callbacks:r[e]});return t},filterNode:n,parse:function(s,c){function l(e){for(var n=t.getBlockElements(),r=e.prev;r&&3===r.type;){var o=r.value.replace(D,"");if(0<o.length)return r.value=o,0;var i=r.next;if(i){if(3===i.type&&i.value.length){r=r.prev;continue}if(!n[i.name]&&"script"!==i.name&&"style"!==i.name){r=r.prev;continue}}var a=r.prev;r.remove(),r=a}}function f(e,t){var n,o=new IC(e,t);return e in r&&((n=i[e])?n.push(o):i[e]=[o]),o}var d,m,g,p,h,v,b,y,C=[];c=c||{},i={},a={};var x=Yx(Wx("script,style,head,html,body,title,meta,param"),t.getBlockElements()),w=un(t),S=t.getNonEmptyElements(),E=t.children,k=e.validate,N=("forced_root_block"in c?c:e).forced_root_block,_=!1===N?"":!0===N?"p":N,A=t.getWhiteSpaceElements(),R=/^[ \t\r\n]+/,D=/[ \t\r\n]+$/,T=/[ \t\r\n]+/g,O=/^[ \t\r\n]+$/,B=tp(A,c.context)||tp(A,e.root_name),P=za({validate:k,document:e.document,allow_html_data_urls:e.allow_html_data_urls,allow_svg_data_urls:e.allow_svg_data_urls,allow_script_urls:e.allow_script_urls,allow_conditional_comments:e.allow_conditional_comments,preserve_cdata:e.preserve_cdata,self_closing_elements:function(e){var t,n={};for(t in e)"li"!==t&&"p"!==t&&(n[t]=e[t]);return n}(t.getSelfClosingElements()),cdata:function(e){y.append(f("#cdata",4)).value=e},text:function(e,t){var n,r;B||(e=e.replace(T," "),(r=y.lastChild)&&(tp(x,r.name)||"br"===r.name)&&(e=e.replace(R,""))),0!==e.length&&((n=f("#text",3)).raw=!!t,y.append(n).value=e)},comment:function(e){y.append(f("#comment",8)).value=e},pi:function(e,t){y.append(f(e,7)).value=t,l(y)},doctype:function(e){y.append(f("#doctype",10)).value=e,l(y)},start:function(e,n,r){var i=k?t.getElementRule(e):{};if(i){var u=f(i.outputName||e,1);u.attributes=n,u.shortEnded=r,y.append(u);var s=E[y.name];s&&E[u.name]&&!s[u.name]&&C.push(u);for(var c=o.length;c--;){var d=o[c].name;d in n.map&&((v=a[d])?v.push(u):a[d]=[u])}x[e]&&l(u),r||(y=u),!B&&A[e]&&(B=!0)}},end:function(n){var r,o,i,a,s=k?t.getElementRule(n):{};if(s){if(x[n]&&!B){if((r=y.firstChild)&&3===r.type)if(0<(o=r.value.replace(R,"")).length)r.value=o,r=r.next;else for(i=r.next,r.remove(),r=i;r&&3===r.type;)o=r.value,i=r.next,0!==o.length&&!O.test(o)||(r.remove(),r=i),r=i;if((r=y.lastChild)&&3===r.type)if(0<(o=r.value.replace(D,"")).length)r.value=o,r=r.prev;else for(i=r.prev,r.remove(),r=i;r&&3===r.type;)o=r.value,i=r.prev,0!==o.length&&!O.test(o)||(r.remove(),r=i),r=i}B&&A[n]&&(B=!1);var l=Mc(t,S,A,y),f=y.parent;s.paddInEmptyBlock&&l&&function(){for(var e=y;u(e);){if(e.name in w)return Mc(t,S,A,e);e=e.parent}}()?Ic(e,c,x,y):s.removeEmpty&&l?x[y.name]?y.empty().remove():y.unwrap():s.paddEmpty&&($x(a=y,"#text")&&a.firstChild.value===Qh||l)&&Ic(e,c,x,y),y=f}}},t),L=y=new IC(c.context||e.root_name,11);if(P.parse(s,c.format),k&&C.length&&(c.context?c.invalid=!0:function(e){for(var r=Wx("tr,td,th,tbody,thead,tfoot,table"),o=t.getNonEmptyElements(),i=t.getWhiteSpaceElements(),a=t.getTextBlockElements(),u=t.getSpecialElements(),s=function(e,n){if(void 0===n&&(n=e.parent),u[e.name])e.empty().remove();else{for(var r=0,o=e.children();r<o.length;r++){var i=o[r];t.isValidChild(n.name,i.name)||s(i,n)}e.unwrap()}},c=0;c<e.length;c++){var l,f=e[c],d=void 0,m=void 0;if(f.parent&&!f.fixed)if(a[f.name]&&"li"===f.parent.name){for(var g=f.next;g&&a[g.name];)g.name="li",g.fixed=!0,f.parent.insert(g,f.parent),g=g.next;f.unwrap()}else{var p=[f];for(d=f.parent;d&&!t.isValidChild(d.name,f.name)&&!r[d.name];d=d.parent)p.push(d);if(d&&1<p.length)if(t.isValidChild(d.name,f.name)){p.reverse();for(var h=l=n(p[0].clone()),v=0;v<p.length-1;v++){t.isValidChild(h.name,p[v].name)?(m=n(p[v].clone()),h.append(m)):m=h;for(var b=p[v].firstChild;b&&b!==p[v+1];){var y=b.next;m.append(b),b=y}h=m}Mc(t,o,i,l)?d.insert(f,p[0],!0):(d.insert(l,p[0],!0),d.insert(f,l)),d=p[0],(Mc(t,o,i,d)||$x(d,"br"))&&d.empty().remove()}else s(f);else f.parent&&("li"!==f.name?t.isValidChild(f.parent.name,"div")&&t.isValidChild("div",f.name)?f.wrap(n(new IC("div",1))):s(f):!(g=f.prev)||"ul"!==g.name&&"ol"!==g.name?!(g=f.next)||"ul"!==g.name&&"ol"!==g.name?f.wrap(n(new IC("ul",1))):g.insert(f,g.firstChild,!0):g.append(f))}}}(C)),_&&("body"===L.name||c.isRootContent)&&function(){function n(e){e&&((r=e.firstChild)&&3===r.type&&(r.value=r.value.replace(R,"")),(r=e.lastChild)&&3===r.type&&(r.value=r.value.replace(D,"")))}var r=L.firstChild,o=null;if(t.isValidChild(L.name,_.toLowerCase())){for(;r;){var i=r.next;3===r.type||1===r.type&&"p"!==r.name&&!x[r.name]&&!r.attr("data-mce-type")?(o||((o=f(_,1)).attr(e.forced_root_block_attrs),L.insert(o,r)),o.append(r)):(n(o),o=null),r=i}n(o)}}(),!c.invalid){for(b in i)if(tp(i,b)){for(v=r[b],p=(d=i[b]).length;p--;)d[p].parent||d.splice(p,1);for(m=0,g=v.length;m<g;m++)v[m](d,b,c)}for(m=0,g=o.length;m<g;m++)if((v=o[m]).name in a){for(p=(d=a[v.name]).length;p--;)d[p].parent||d.splice(p,1);for(p=0,h=v.callbacks.length;p<h;p++)v.callbacks[p](d,v.name,c)}}return L}};return Fc(s,e),e.inline_styles&&Dc(s,e),s}function zc(e,t,n){-1===Pp.inArray(t,n)&&(e.addAttributeFilter(n,function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),t.push(n))}function Hc(e,t){var n=["data-mce-selected"],r=t&&t.dom?t.dom:Hb.DOM,o=t&&t.schema?t.schema:cn(e);e.entity_encoding=e.entity_encoding||"named",e.remove_trailing_brs=!("remove_trailing_brs"in e)||e.remove_trailing_brs;var i,a=Uc(e,o),u=e,s=r;return(i=a).addAttributeFilter("data-mce-tabindex",function(e,t){for(var n=e.length;n--;){var r=e[n];r.attr("tabindex",r.attr("data-mce-tabindex")),r.attr(t,null)}}),i.addAttributeFilter("src,href,style",function(e,t){for(var n="data-mce-"+t,r=u.url_converter,o=u.url_converter_scope,i=e.length;i--;){var a=e[i],c=a.attr(n);void 0!==c?(a.attr(t,0<c.length?c:null),a.attr(n,null)):(c=a.attr(t),"style"===t?c=s.serializeStyle(s.parseStyle(c),a.name):r&&(c=r.call(o,c,t,a.name)),a.attr(t,0<c.length?c:null))}}),i.addAttributeFilter("class",function(e){for(var t=e.length;t--;){var n,r=e[t];r.attr("class")&&(n=r.attr("class").replace(/(?:^|\s)mce-item-\w+(?!\S)/g,""),r.attr("class",0<n.length?n:null))}}),i.addAttributeFilter("data-mce-type",function(e,t,n){for(var r=e.length;r--;){var o=e[r];"bookmark"!==o.attr("data-mce-type")||n.cleanup||(Kg.from(o.firstChild).exists(function(e){return!ev(e.value)})?o.unwrap():o.remove())}}),i.addNodeFilter("noscript",function(e){for(var t=e.length;t--;){var n=e[t].firstChild;n&&(n.value=Rv.decode(n.value))}}),i.addNodeFilter("script,style",function(e,t){for(var n=function(e){return e.replace(/(<!--\[CDATA\[|\]\]-->)/g,"\n").replace(/^[\r\n]*|[\r\n]*$/g,"").replace(/^\s*((<!--)?(\s*\/\/)?\s*<!\[CDATA\[|(<!--\s*)?\/\*\s*<!\[CDATA\[\s*\*\/|(\/\/)?\s*<!--|\/\*\s*<!--\s*\*\/)\s*[\r\n]*/gi,"").replace(/\s*(\/\*\s*\]\]>\s*\*\/(-->)?|\s*\/\/\s*\]\]>(-->)?|\/\/\s*(-->)?|\]\]>|\/\*\s*-->\s*\*\/|\s*-->\s*)\s*$/g,"")},r=e.length;r--;){var o,i=e[r],a=i.firstChild?i.firstChild.value:"";"script"===t?((o=i.attr("type"))&&i.attr("type","mce-no/type"===o?null:o.replace(/^mce\-/,"")),"xhtml"===u.element_format&&0<a.length&&(i.firstChild.value="// <![CDATA[\n"+n(a)+"\n// ]]>")):"xhtml"===u.element_format&&0<a.length&&(i.firstChild.value="<!--\n"+n(a)+"\n-->")}}),i.addNodeFilter("#comment",function(e){for(var t=e.length;t--;){var n=e[t];u.preserve_cdata&&0===n.value.indexOf("[CDATA[")?(n.name="#cdata",n.type=4,n.value=s.decode(n.value.replace(/^\[CDATA\[|\]\]$/g,""))):0===n.value.indexOf("mce:protected ")&&(n.name="#text",n.type=3,n.raw=!0,n.value=unescape(n.value).substr(14))}}),i.addNodeFilter("xml:namespace,input",function(e,t){for(var n=e.length;n--;){var r=e[n];7===r.type?r.remove():1===r.type&&("input"!==t||r.attr("type")||r.attr("type","text"))}}),i.addAttributeFilter("data-mce-type",function(e){E(e,function(e){"format-caret"===e.attr("data-mce-type")&&(e.isEmpty(i.schema.getNonEmptyElements())?e.remove():e.unwrap())})}),i.addAttributeFilter("data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize,data-mce-placeholder",function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),{schema:o,addNodeFilter:a.addNodeFilter,addAttributeFilter:a.addAttributeFilter,serialize:function(n,i){function u(e){return e&&"br"===e.name}var s,c,l,f,d,m,g,p,h,v,b,y,C,x,w,S,E,k,N,_,A,R,D,T,O,B,P,L,I,M=rp({format:"html"},i=void 0===i?{}:i),F=(y=n,D=C=M,s=(b=t)&&b.hasEventListeners("PreProcess")&&!D.no_events?(w=C,_=(x=b).dom,A=y.cloneNode(!0),(R=document.implementation).createHTMLDocument&&(E=R.createHTMLDocument(""),Pp.each("BODY"===A.nodeName?A.childNodes:[A],function(e){E.body.appendChild(E.importNode(e,!0))}),A="BODY"!==A.nodeName?E.body.firstChild:E.body,S=_.doc,_.doc=E),k=x,N=rp(rp({},w),{node:A}),k.fire("PreProcess",N),S&&(_.doc=S),A):y,l=tv((c=M).getInner?s.innerHTML:r.getOuterHTML(s)),c.selection||Gh(Lp.fromDom(s))?l:Pp.trim(l)),U=(f=a,d=F,g=(m=M).selection?rp({forced_root_block:!1},m):m,!u(v=(p=f.parse(d,g)).lastChild)||u(h=v.prev)&&(v.remove(),h.remove()),p);return"tree"===M.format?U:(T=t,O=M,B=U,I=qa(e,o).serialize(B),O.no_events||!T?I:(P=T,L=rp(rp({},O),{content:I}),P.fire("PostProcess",L).content))},addRules:o.addValidElements,setRules:o.setValidElements,addTempAttr:g(zc,a,n),getTempAttrs:f(n),getNodeFilters:a.getNodeFilters,getAttributeFilters:a.getAttributeFilters}}function jc(e,t){var n=Hc(e,t);return{schema:n.schema,addNodeFilter:n.addNodeFilter,addAttributeFilter:n.addAttributeFilter,serialize:n.serialize,addRules:n.addRules,setRules:n.setRules,addTempAttr:n.addTempAttr,getTempAttrs:n.getTempAttrs,getNodeFilters:n.getNodeFilters,getAttributeFilters:n.getAttributeFilters}}function Vc(e,t,n){return r=n=void 0===n?{}:n,xc(e).editor.setContent(t,r);var r}function qc(e){return Kg.from(e).each(function(e){return e.destroy()})}function $c(e,t){function n(e){return tp(c,e)}var r,o,i,a,u,s,c,l=(r=e,o=_(Qx,function(e){return tp(r,e)}),!1!==(i=r.forced_root_block)&&""!==i||o.push("forced_root_block (false only)"),M(o)),f=(c=Pp.makeMap(t.plugins," "),M(ne(ne([],_(Zx,n),!0),B(ew,function(e){return n(e)?[e+" (moving to premium)"]:[]}),!0))),d=0<f.length,m=0<l.length,g="mobile"===t.theme;(d||m||g)&&(a=g?"\n\nThemes:\n- mobile":"",u=d?"\n\nPlugins:\n- "+f.join("\n- "):"",s=m?"\n\nSettings:\n- "+l.join("\n- "):"",console.warn("The following deprecated features are currently enabled, these will be removed in TinyMCE 6.0. See https://www.tiny.cloud/docs/release-notes/6.0-upcoming-changes/ for more information."+a+u+s))}function Wc(e){var t=Mg(e)?e.join(" "):e;return _(S(Lg(t)?t.split(" "):[],up),function(e){return 0<e.length})}function Kc(e,t){return tp(e.sections(),t)}function Xc(e,t){return K(e,"toolbar_mode").orThunk(function(){return K(e,"toolbar_drawer").map(function(e){return!1===e?"wrap":e})}).getOr(t)}function Yc(e,t,n,r){var o,i,a,u,s,c,l,f,d=Wc(n.forced_plugins),m=Wc(r.plugins),p=Kc(o=t,"mobile")?o.sections().mobile:{},h=(u=t,s=m,c=p.plugins?Wc(p.plugins):m,i=(a=e)&&(f=(l=u).sections(),Kc(l,"mobile")&&"mobile"===f.mobile.theme)?_(c,g(x,iw)):a&&Kc(u,"mobile")?c:s,[].concat(Wc(d)).concat(Wc(i)));if(Tp.browser.isIE()&&x(h,"rtc"))throw new Error("RTC plugin is not supported on IE 11.");return Pp.extend(r,{plugins:h.join(" ")})}function Gc(e,t,n,r,o){var i,a,u,s,c,l,d,m,g=e?{mobile:(i=t,a={resize:!1,toolbar_mode:Xc(o.mobile||{},"scrolling"),toolbar_sticky:!1},rp(rp(rp({},aw),a),i?{menubar:!1}:{}))}:{},p=(c=["mobile"],$(Jx(g,o),function(e,t){return x(c,t)},q(l={}),q(d={})),{sections:f((m={t:l,f:d}).t),settings:f(m.f)}),h=Pp.extend(n,r,p.settings(),e&&Kc(p,"mobile")?function(e){void 0===e&&(e={});var t=K(p.sections(),"mobile").getOr({});return Pp.extend({},e,t)}():{},{validate:!0,external_plugins:(u=r,s=p.settings().external_plugins||{},u&&u.external_plugins?Pp.extend({},u.external_plugins,s):s)});return Yc(e,p,r,h)}function Jc(e,t,n){return Kg.from(t.settings[n]).filter(e)}function Qc(e,t){return t.dom[e]}function Zc(e,t){return parseInt(ht(t,e),10)}function el(e,t,n){var r,o,i,a,u,s,c=Lp.fromDom(e.getBody()),l=e.inline?c:Lp.fromDom(Ne(c).dom.documentElement),f=(r=e.inline,i=t,a=n,u=(o=l).dom.getBoundingClientRect(),{x:i-(r?u.left+o.dom.clientLeft+fw(o):0),y:a-(r?u.top+o.dom.clientTop+lw(o):0)}),d=f.x,m=f.y,g=sw(s=l),p=cw(s);return 0<=d&&0<=m&&d<=g&&m<=p}function tl(e){function t(){function t(){throw new Error("Theme did not provide a NotificationManager implementation.")}var n=e.theme;return n&&n.getNotificationManagerImpl?n.getNotificationManagerImpl():{open:t,close:t,reposition:t,getArgs:t}}function n(){return Kg.from(u[0])}function r(){0<u.length&&t().reposition(u)}function o(e){O(u,function(t){return t===e}).each(function(e){u.splice(e,1)})}function i(i,a){if(void 0===a&&(a=!0),!e.removed&&(c=(s=e).inline?s.getBody():s.getContentAreaContainer(),Kg.from(c).map(Lp.fromDom).map(Wp).getOr(!1)))return a&&e.fire("BeforeOpenNotification",{notification:i}),T(u,function(e){return!((n=t().getArgs(e)).type!==i.type||n.text!==i.text||n.progressBar||n.timeout||i.progressBar||i.timeout);var n}).getOrThunk(function(){e.editorManager.setActive(e);var a=t().open(i,function(){o(a),r(),n().fold(function(){return e.focus()},function(e){return Lp.fromDom(e.getEl()).dom.focus()})});return u.push(a),r(),e.fire("OpenNotification",{notification:rp({},a)}),a});var s,c}var a,u=[],s=f(u);return(a=e).on("SkinLoaded",function(){var e=a.getParam("service_message");e&&i({text:e,type:"warning",timeout:0},!1),r()}),a.on("show ResizeEditor ResizeWindow NodeChange",function(){zh.requestAnimationFrame(r)}),a.on("remove",function(){E(u.slice(),function(e){t().close(e)})}),{open:i,close:function(){n().each(function(e){t().close(e),o(e),r()})},getNotifications:s}}function nl(e){function t(){function t(){throw new Error("Theme did not provide a WindowManager implementation.")}var n=e.theme;return n&&n.getWindowManagerImpl?n.getWindowManagerImpl():{open:t,openUrl:t,alert:t,confirm:t,close:t,getParams:t,setParams:t}}function n(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t?t.apply(e,n):void 0}}function r(t){e.fire("CloseWindow",{dialog:t}),0===(i=_(i,function(e){return e!==t})).length&&e.focus()}function o(t){e.editorManager.setActive(e),Ca(e);var n,r=t();return n=r,i.push(n),e.fire("OpenWindow",{dialog:n}),r}var i=[];return e.on("remove",function(){E(i,function(e){t().close(e)})}),{open:function(e,n){return o(function(){return t().open(e,n,r)})},openUrl:function(e){return o(function(){return t().openUrl(e,r)})},alert:function(e,r,o){var i=t();i.alert(e,n(o||i,r))},confirm:function(e,r,o){var i=t();i.confirm(e,n(o||i,r))},close:function(){Kg.from(i[i.length-1]).each(function(e){t().close(e),r(e)})}}}function rl(e,t){e.notificationManager.open({type:"error",text:t})}function ol(e,t){e._skinLoaded?rl(e,t):e.on("SkinLoaded",function(){rl(e,t)})}function il(e,t,n){Bi(e,t,{message:n}),console.error(n)}function al(e,t,n){return n?"Failed to load "+e+": "+n+" from url "+t:"Failed to load "+e+" url: "+t}function ul(e,t,n){il(e,"PluginLoadError",al("plugin",t,n))}function sl(e){var t,n;e.contentCSS=e.contentCSS.concat(gw(e,(n=(t=e).getParam("content_css"),Lg(n)?S(n.split(","),up):Mg(n)?n:!1===n||t.inline?[]:["default"])),gw(e,Kr(e)))}function cl(){function e(e,t){return{status:e,resultUri:t}}function t(e){return e in n}var n={};return{hasBlobUri:t,getResultUri:function(e){var t=n[e];return t?t.resultUri:null},isPending:function(e){return!!t(e)&&1===n[e].status},isUploaded:function(e){return!!t(e)&&2===n[e].status},markPending:function(t){
|
27
|
+
n[t]=e(1,null)},markUploaded:function(t,r){n[t]=e(2,r)},removeFailed:function(e){delete n[e]},destroy:function(){n={}}}}function ll(e){function t(){return Math.round(4294967295*Math.random()).toString(36)}return e+pw+++"s"+(new Date).getTime().toString(36)+t()+t()+t()}function fl(){function e(e){return T(r,e).getOrUndefined()}function t(e){if(!e.blob||!e.base64)throw new Error("blob and base64 representations of the image are required for BlobInfo to be created");var t=e.id||ll("blobid"),n=e.name||t,r=e.blob;return{id:f(t),name:f(n),filename:f(e.filename||n+"."+({"image/jpeg":"jpg","image/jpg":"jpg","image/gif":"gif","image/png":"png","image/apng":"apng","image/avif":"avif","image/svg+xml":"svg","image/webp":"webp","image/bmp":"bmp","image/tiff":"tiff"}[r.type.toLowerCase()]||"dat")),blob:f(r),base64:f(e.base64),blobUri:f(e.blobUri||URL.createObjectURL(r)),uri:f(e.uri)}}function n(t){return e(function(e){return e.id()===t})}var r=[];return{create:function(e,n,r,o,i){if(Lg(e))return t({id:e,name:o,filename:i,blob:n,base64:r});if(Ig(e))return t(e);throw new Error("Unknown input type")},add:function(e){n(e.id())||r.push(e)},get:n,getByUri:function(t){return e(function(e){return e.blobUri()===t})},getByData:function(t,n){return e(function(e){return e.base64()===t&&e.blob().type===n})},findFirst:e,removeByUri:function(e){r=_(r,function(t){return t.blobUri()!==e||void URL.revokeObjectURL(t.blobUri())})},destroy:function(){E(r,function(e){URL.revokeObjectURL(e.blobUri())}),r=[]}}}function dl(e,t){function n(e,n,r,o){var i=new XMLHttpRequest;i.open("POST",t.url),i.withCredentials=t.credentials,i.upload.onprogress=function(e){o(e.loaded/e.total*100)},i.onerror=function(){r("Image upload failed due to a XHR Transport error. Code: "+i.status)},i.onload=function(){var e,o,a;i.status<200||300<=i.status?r("HTTP Error: "+i.status):(e=JSON.parse(i.responseText))&&"string"==typeof e.location?n((o=t.basePath,a=e.location,o?o.replace(/\/$/,"")+"/"+a.replace(/^\//,""):a)):r("Invalid JSON: "+i.responseText)};var a=new FormData;a.append("file",e.blob(),e.filename()),i.send(a)}function r(e,t){return{url:t,blobInfo:e,status:!0}}function o(e,t,n){return{url:"",blobInfo:e,status:!1,error:{message:t,options:n}}}function i(e,t){Pp.each(a[e],function(e){e(t)}),delete a[e]}var a={};return!1===Hg(t.handler)&&(t.handler=n),{upload:function(u,s){return t.url||t.handler!==n?(c=u,l=s,c=Pp.grep(u,function(t){return!e.isUploaded(t.blobUri())}),Uh.all(Pp.map(c,function(n){return e.isPending(n.blobUri())?(f=n.blobUri(),new Uh(function(e){a[f]=a[f]||[],a[f].push(e)})):(u=n,s=t.handler,c=l,e.markPending(u.blobUri()),new Uh(function(t){var a;try{var l=function(){a&&a.close()};s(u,function(n){l(),e.markUploaded(u.blobUri(),n),i(u.blobUri(),r(u,n)),t(r(u,n))},function(n,r){var a=r||{};l(),e.removeFailed(u.blobUri()),i(u.blobUri(),o(u,n,a)),t(o(u,n,a))},function(e){e<0||100<e||Kg.from(a).orThunk(function(){return Kg.from(c).map(h)}).each(function(t){(a=t).progressBar.value(e)})})}catch(n){t(o(u,n.message,{}))}}));var u,s,c,f}))):new Uh(function(e){e([])});var c,l}}}function ml(e){return function(){return e.notificationManager.open({text:e.translate("Image uploading..."),type:"info",timeout:-1,progressBar:!0})}}function gl(e,t){return dl(t,{url:e.getParam("images_upload_url","","string"),basePath:e.getParam("images_upload_base_path","","string"),credentials:e.getParam("images_upload_credentials",!1,"boolean"),handler:e.getParam("images_upload_handler",null,"function")})}function pl(e){function t(t){return function(n){return e.selection?t(n):[]}}function n(e,t,n){for(var r=0;-1!==(r=e.indexOf(t,r))&&(e=e.substring(0,r)+n+e.substr(r+t.length),r+=n.length-t.length+1),-1!==r;);return e}function r(e,t,r){return n(e=n(e,'src="'+t+'"','src="'+r+'"'+(r===Tp.transparentSrc?' data-mce-placeholder="1"':"")),'data-mce-src="'+t+'"','data-mce-src="'+r+'"')}function o(t,n){E(e.undoManager.data,function(e){"fragmented"===e.type?e.fragments=S(e.fragments,function(e){return r(e,t,n)}):e.content=r(e.content,t,n)})}function i(n){return c=c||gl(e,g),v().then(t(function(r){var i=S(r,function(e){return e.blobInfo});return c.upload(i,ml(e)).then(t(function(t){var i=[],a=S(t,function(t,n){var a,u,s,c,l=r[n].blobInfo,f=r[n].image;return t.status&&e.getParam("images_replace_blob_uris",!0,"boolean")?(m.removeByUri(f.src),yc(e)||(u=f,s=t.url,c=e.convertURL(s,"src"),o(u.src,s),e.$(u).attr({src:e.getParam("images_reuse_filename",!1,"boolean")?s+(-1===s.indexOf("?")?"?":"&")+(new Date).getTime():s,"data-mce-src":c}))):t.error&&(t.error.options.remove&&(o(f.getAttribute("src"),Tp.transparentSrc),i.push(f)),a=t.error.message,ol(e,Xb.translate(["Failed to upload image: {0}",a]))),{element:f,status:t.status,uploadUri:t.url,blobInfo:l}});return 0<a.length&&h.fireIfChanged(),0<i.length&&(yc(e)?console.error("Removing images on failed uploads is currently unsupported for RTC"):e.undoManager.transact(function(){E(i,function(t){e.dom.remove(t),m.removeByUri(t.src)})})),n&&n(a),a}))}))}function a(t){if(jr(e))return i(t)}function u(t){return!1!==P(p,function(e){return e(t)})&&(0!==t.getAttribute("src").indexOf("data:")||e.getParam("images_dataimg_filter",qg,"function")(t))}function s(t){return t.replace(/src="(blob:[^"]+)"/g,function(t,n){var r=g.getResultUri(n);if(r)return'src="'+r+'"';var o=(o=m.getByUri(n))||R(e.editorManager.get(),function(e,t){return e||t.editorUpload&&t.editorUpload.blobCache.getByUri(n)},null);return o?'src="data:'+o.blob().type+";base64,"+o.base64()+'"':t})}var c,l,f,d,m=fl(),g=cl(),p=[],h=(d=qn(null),(f=e).on("change AddUndo",function(e){d.set(rp({},e.level))}),{fireIfChanged:function(){var e=f.undoManager.data;z(e).filter(function(e){return!gc(d.get(),e)}).each(function(t){f.setDirty(!0),f.fire("change",{level:t,lastLevel:F(e,e.length-2).getOrNull()})})}}),v=function(){return(l=l||Lc(g,m)).findAll(e.getBody(),u).then(t(function(t){return t=_(t,function(t){return"string"!=typeof t||void ol(e,t)}),yc(e)||E(t,function(e){o(e.image.src,e.blobInfo.blobUri()),e.image.src=e.blobInfo.blobUri(),e.image.removeAttribute("data-mce-src")}),t}))};return e.on("SetContent",function(){(jr(e)?a:v)()}),e.on("RawSaveContent",function(e){e.content=s(e.content)}),e.on("GetContent",function(e){e.source_view||"raw"===e.format||"tree"===e.format||(e.content=s(e.content))}),e.on("PostRender",function(){e.parser.addNodeFilter("img",function(e){E(e,function(e){var t,n=e.attr("src");m.getByUri(n)||(t=g.getResultUri(n))&&e.attr("src",t)})})}),{blobCache:m,addFilter:function(e){p.push(e)},uploadImages:i,uploadImagesAuto:a,scanForImages:v,destroy:function(){m.destroy(),g.destroy(),l=c=null}}}function hl(e,t){function n(e){o="string"==typeof e?{name:e,classes:[],attrs:{}}:e;var t,n=vw.create(o.name),r=n;return(t=o).classes.length&&vw.addClass(r,t.classes.join(" ")),vw.setAttribs(r,t.attrs),n}var r,o,i,a=t&&t.schema||cn({}),u=function(e,t,r){var o,i,s,c,l,f,d,m=0<t.length&&t[0],g=m&&m.name,p=(c=g,l="string"!=typeof(s=e)?s.nodeName.toLowerCase():s,!(!(d=(f=a.getElementRule(l))&&f.parentsRequired)||!d.length)&&(c&&-1!==Pp.inArray(d,c)?c:d[0]));if(p)g===p?(i=t[0],t=t.slice(1)):i=p;else if(m)i=t[0],t=t.slice(1);else if(!r)return e;return i&&(o=n(i)).appendChild(e),r&&(o||(o=vw.create("div")).appendChild(e),Pp.each(r,function(t){var r=n(t);o.insertBefore(r,e)})),u(o,t,i&&i.siblings)};return e&&e.length?(r=n(o=e[0]),(i=vw.create("div")).appendChild(u(r,e.slice(1),o.siblings)),i):""}function vl(e){var t,n={classes:[],attrs:{}};return"*"!==(e=n.selector=Pp.trim(e))&&(t=e.replace(/(?:([#\.]|::?)([\w\-]+)|(\[)([^\]]+)\]?)/g,function(e,t,r,o,i){switch(t){case"#":n.attrs.id=r;break;case".":n.classes.push(r);break;case":":-1!==Pp.inArray("checked disabled enabled read-only required".split(" "),r)&&(n.attrs[r]=r)}var a;return"["!==o||(a=i.match(/([\w\-]+)(?:\=\"([^\"]+))?/))&&(n.attrs[a[1]]=a[2]),""})),n.name=t||"div",n}function bl(e,t){function n(e){return e.replace(/%(\w+)/g,"")}var r,o,i="",a=(o=e.getParam("preview_styles","font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow"),Lg(o)?o:"");if(""===a)return"";if("string"==typeof t){if(!(t=e.formatter.get(t)))return;t=t[0]}if("preview"in t){var u=K(t,"preview");if(at(u,!1))return"";a=u.getOr(a)}var s,c=t.block||t.inline||"span",l=(s=t.selector)&&"string"==typeof s?(s=(s=s.split(/\s*,\s*/)[0]).replace(/\s*(~\+|~|\+|>)\s*/g,"$1"),Pp.map(s.split(/(?:>|\s+(?![^\[\]]+\]))/),function(e){var t=Pp.map(e.split(/(?:~\+|~|\+)/),vl),n=t.pop();return t.length&&(n.siblings=t),n}).reverse()):[],f=l.length?(l[0].name||(l[0].name=c),c=t.selector,hl(l,e)):hl([c],e),d=vw.select(c,f)[0]||f.firstChild;return hw(t.styles,function(e,t){var r=n(e);r&&vw.setStyle(d,t,r)}),hw(t.attributes,function(e,t){var r=n(e);r&&vw.setAttrib(d,t,r)}),hw(t.classes,function(e){var t=n(e);vw.hasClass(d,t)||vw.addClass(d,t)}),e.fire("PreviewFormats"),vw.setStyles(f,{position:"absolute",left:-65535}),e.getBody().appendChild(f),r=vw.getStyle(e.getBody(),"fontSize",!0),r=/px$/.test(r)?parseInt(r,10):0,hw(a.split(" "),function(t){var n=vw.getStyle(d,t,!0);if(!("background-color"===t&&/transparent|rgba\s*\([^)]+,\s*0\)/.test(n)&&(n=vw.getStyle(e.getBody(),t,!0),"#ffffff"===vw.toHex(n).toLowerCase())||"color"===t&&"#000000"===vw.toHex(n).toLowerCase())){if("font-size"===t&&/em|%$/.test(n)){if(0===r)return;n=parseFloat(n)/(/%$/.test(n)?100:1)*r+"px"}"border"===t&&n&&(i+="padding:0 2px;"),i+=t+":"+n+";"}}),e.fire("AfterPreviewFormats"),vw.remove(f),i}function yl(e){var t,n,r,o,i,a,s=(o={},(i=function(e,t){e&&(Lg(e)?(E(t=Mg(t)?t:[t],function(e){zg(e.deep)&&(e.deep=!ni(e)),zg(e.split)&&(e.split=!ni(e)||ri(e)),zg(e.remove)&&ni(e)&&!ri(e)&&(e.remove="none"),ni(e)&&ri(e)&&(e.mixed=!0,e.block_expand=!0),Lg(e.classes)&&(e.classes=e.classes.split(/\s+/))}),o[e]=t):j(e,function(e,t){i(t,e)}))})((n=(t=e).dom,r={valigntop:[{selector:"td,th",styles:{verticalAlign:"top"}}],valignmiddle:[{selector:"td,th",styles:{verticalAlign:"middle"}}],valignbottom:[{selector:"td,th",styles:{verticalAlign:"bottom"}}],alignleft:[{selector:"figure.image",collapsed:!1,classes:"align-left",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"left"},inherit:!1,preview:!1,defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"left"},preview:"font-family font-size"}],aligncenter:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"center"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"figure.image",collapsed:!1,classes:"align-center",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"img,audio,video",collapsed:!1,styles:{display:"block",marginLeft:"auto",marginRight:"auto"},preview:!1},{selector:"table",collapsed:!1,styles:{marginLeft:"auto",marginRight:"auto"},preview:"font-family font-size"}],alignright:[{selector:"figure.image",collapsed:!1,classes:"align-right",ceFalseOverride:!0,preview:"font-family font-size"},{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"right"},inherit:!1,preview:"font-family font-size",defaultBlock:"div"},{selector:"img,table,audio,video",collapsed:!1,styles:{float:"right"},preview:"font-family font-size"}],alignjustify:[{selector:"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li",styles:{textAlign:"justify"},inherit:!1,defaultBlock:"div",preview:"font-family font-size"}],bold:[{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}},{inline:"b",remove:"all",preserve_attributes:["class","style"]}],italic:[{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}},{inline:"i",remove:"all",preserve_attributes:["class","style"]}],underline:[{inline:"span",styles:{textDecoration:"underline"},exact:!0},{inline:"u",remove:"all",preserve_attributes:["class","style"]}],strikethrough:[{inline:"span",styles:{textDecoration:"line-through"},exact:!0},{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"s",remove:"all",preserve_attributes:["class","style"]}],forecolor:{inline:"span",styles:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"span",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},fontname:{inline:"span",toggle:!1,styles:{fontFamily:"%value"},clear_child_styles:!0},fontsize:{inline:"span",toggle:!1,styles:{fontSize:"%value"},clear_child_styles:!0},lineheight:{selector:"h1,h2,h3,h4,h5,h6,p,li,td,th,div",defaultBlock:"p",styles:{lineHeight:"%value"}},fontsize_class:{inline:"span",attributes:{"class":"%value"}},blockquote:{block:"blockquote",wrapper:!0,remove:"all"},subscript:{inline:"sub"},superscript:{inline:"sup"},code:{inline:"code"},link:{inline:"a",selector:"a",remove:"all",split:!0,deep:!0,onmatch:function(e){return Gp(e)&&e.hasAttribute("href")},onformat:function(e,t,r){Pp.each(r,function(t,r){n.setAttrib(e,r,t)})}},lang:{inline:"span",clear_child_styles:!0,remove_similar:!0,attributes:{lang:"%value","data-mce-lang":function(e){var t;return null!==(t=null==e?void 0:e.customValue)&&void 0!==t?t:null}}},removeformat:[{selector:"b,strong,em,i,font,u,strike,s,sub,sup,dfn,code,samp,kbd,var,cite,mark,q,del,ins,small",remove:"all",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:"span",attributes:["style","class"],remove:"empty",split:!0,expand:!1,deep:!0},{selector:"*",attributes:["style","class"],split:!1,expand:!1,deep:!0}]},Pp.each("p h1 h2 h3 h4 h5 h6 div address pre dt dd samp".split(/\s/),function(e){r[e]={block:e,remove:"all"}}),r)),i(t.getParam("formats")),{get:function(e){return u(e)?o[e]:o},has:function(e){return tp(o,e)},register:i,unregister:function(e){return e&&o[e]&&delete o[e],o}}),c=qn(null);return function(e){e.addShortcut("meta+b","","Bold"),e.addShortcut("meta+i","","Italic"),e.addShortcut("meta+u","","Underline");for(var t=1;t<=6;t++)e.addShortcut("access+"+t,"",["FormatBlock",!1,"h"+t]);e.addShortcut("access+7","",["FormatBlock",!1,"p"]),e.addShortcut("access+8","",["FormatBlock",!1,"div"]),e.addShortcut("access+9","",["FormatBlock",!1,"address"])}(e),(a=e).on("mouseup keydown",function(e){var t=a,n=e.keyCode,r=t.selection,o=t.getBody();ws(t,null,!1),8!==n&&46!==n||!r.isCollapsed()||r.getStart().innerHTML!==Sx||ws(t,Oo(o,r.getStart())),37!==n&&39!==n||ws(t,Oo(o,r.getStart()))}),{get:s.get,has:s.has,register:s.register,unregister:s.unregister,apply:function(t,n,r){var o=t,i=n,a=r;wc(e).formatter.apply(o,i,a)},remove:function(t,n,r,o){var i=t,a=n,u=r,s=o;wc(e).formatter.remove(i,a,u,s)},toggle:function(t,n,r){var o=t,i=n,a=r;wc(e).formatter.toggle(o,i,a)},match:function(t,n,r,o){return i=t,a=n,u=r,s=o,wc(e).formatter.match(i,a,u,s);var i,a,u,s},closest:function(t){return n=t,wc(e).formatter.closest(n);var n},matchAll:function(t,n){return r=t,o=n,wc(e).formatter.matchAll(r,o);var r,o},matchNode:function(t,n,r,o){return i=t,a=n,u=r,s=o,wc(e).formatter.matchNode(i,a,u,s);var i,a,u,s},canApply:function(t){return n=t,wc(e).formatter.canApply(n);var n},formatChanged:function(t,n,r,o){return i=c,a=t,u=n,s=r,l=o,wc(e).formatter.formatChanged(i,a,u,s,l);var i,a,u,s,l},getCssText:g(bl,e)}}function Cl(e){switch(e.toLowerCase()){case"undo":case"redo":case"mcerepaint":case"mcefocus":return 1;default:return}}function xl(e){function t(e){hc(o,!1,i),o.add({},e)}var n,r,o,i,a,u=Wn(),s=qn(0),c=qn(0),l={data:[],typing:!1,beforeChange:function(){var t=s,n=u;wc(e).undoManager.beforeChange(t,n)},add:function(t,n){return r=l,o=c,i=s,a=u,f=t,d=n,wc(e).undoManager.add(r,o,i,a,f,d);var r,o,i,a,f,d},undo:function(){return t=l,n=s,r=c,wc(e).undoManager.undo(t,n,r);var t,n,r},redo:function(){return t=c,n=l.data,wc(e).undoManager.redo(t,n);var t,n},clear:function(){var t=l,n=c;wc(e).undoManager.clear(t,n)},reset:function(){var t=l;wc(e).undoManager.reset(t)},hasUndo:function(){return t=l,n=c,wc(e).undoManager.hasUndo(t,n);var t,n},hasRedo:function(){return t=l,n=c,wc(e).undoManager.hasRedo(t,n);var t,n},transact:function(t){return n=l,r=s,o=t,wc(e).undoManager.transact(n,r,o);var n,r,o},ignore:function(t){var n=s,r=t;wc(e).undoManager.ignore(n,r)},extra:function(t,n){var r=l,o=c,i=t,a=n;wc(e).undoManager.extra(r,o,i,a)}};return yc(e)||(o=l,i=s,a=qn(!1),(r=e).on("init",function(){o.add()}),r.on("BeforeExecCommand",function(e){Cl(e.command)||(vc(o,i),o.beforeChange())}),r.on("ExecCommand",function(e){Cl(e.command)||t(e)}),r.on("ObjectResizeStart cut",function(){o.beforeChange()}),r.on("SaveContent ObjectResized blur",t),r.on("dragend",t),r.on("keyup",function(e){var n=e.keyCode;e.isDefaultPrevented()||((33<=n&&n<=36||37<=n&&n<=40||45===n||e.ctrlKey)&&(t(),r.nodeChanged()),46!==n&&8!==n||r.nodeChanged(),a.get()&&o.typing&&!1===gc(lc(r),o.data[0])&&(!1===r.isDirty()&&(r.setDirty(!0),r.fire("change",{level:o.data[0],lastLevel:null})),r.fire("TypingUndo"),a.set(!1),r.nodeChanged()))}),r.on("keydown",function(e){var n,r=e.keyCode;e.isDefaultPrevented()||(33<=r&&r<=36||37<=r&&r<=40||45===r?o.typing&&t(e):(n=e.ctrlKey&&!e.altKey||e.metaKey,!(r<16||20<r)||224===r||91===r||o.typing||n||(o.beforeChange(),hc(o,!0,i),o.add({},e),a.set(!0))))}),r.on("mousedown",function(e){o.typing&&t(e)}),r.on("input",function(e){e.inputType&&("insertReplacementText"===e.inputType||"insertText"===e.inputType&&null===e.data||"insertFromPaste"===e.inputType||"insertFromDrop"===e.inputType)&&t(e)}),r.on("AddUndo Undo Redo ClearUndos",function(e){e.isDefaultPrevented()||r.nodeChanged()})),(n=e).addShortcut("meta+z","","Undo"),n.addShortcut("meta+y,meta+shift+z","","Redo"),l}function wl(e){return"keydown"===e.type||"keyup"===e.type}function Sl(e){var t=e.keyCode;return t===vC.BACKSPACE||t===vC.DELETE}function El(e,t){return ge(Lp.fromDom(t),e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string"))}function kl(e,t,n){var r,o,i=(r=e,o=t,_(Hb.DOM.getParents(n.container(),"*",o),r));return Kg.from(i[i.length-1])}function Nl(e,t){if(!t)return t;var n=t.container(),r=t.offset();return e?zt(n)?Qp(n.nextSibling)?py(n.nextSibling,0):py.after(n):Vt(t)?py(n,r+1):t:zt(n)?Qp(n.previousSibling)?py(n.previousSibling,n.previousSibling.data.length):py.before(n):qt(t)?py(n,r-1):t}function _l(e){return $h(e)||Kh(e)}function Al(e,t){return ve(e,t)?_t(t,_l,(n=e,function(e){return he(n,Lp.fromDom(e.dom.parentNode))})):Kg.none();var n}function Rl(e){var t,n,r;e.dom.isEmpty(e.getBody())&&(e.setContent(""),r=(n=(t=e).getBody()).firstChild&&t.dom.isBlock(n.firstChild)?n.firstChild:n,t.selection.setCursorLocation(r,0))}function Dl(e,t){return{from:e,to:t}}function Tl(e,t){return Al(Lp.fromDom(e),Lp.fromDom(t.container())).map(function(e){return{block:e,position:t}})}function Ol(e){var t,n=O(t=zp(e),qh).fold(f(t),function(e){return t.slice(0,e)});return E(n,$p),n}function Bl(e,t){return T(eu(t,e).reverse(),function(e){return Jt(e)}).each($p)}function Pl(e,t,n,r){if(Jt(n))return Ja(n),rC(n.dom);0===_(Te(r),function(e){return!Jt(e)}).length&&Jt(t)&&ze(r,Lp.fromTag("br"));var o=nC(n.dom,py.before(r.dom));return E(Ol(t),function(e){ze(r,e)}),Bl(e,t),o}function Ll(e,t,n){if(Jt(n))return $p(n),Jt(t)&&Ja(t),rC(t.dom);var r=oC(n.dom);return E(Ol(t),function(e){qp(n,e)}),Bl(e,t),r}function Il(e,t){Do(e,t.dom).map(function(e){return e.getNode()}).map(Lp.fromDom).filter(Ft).each($p)}function Ml(e,t,n){return Il(!0,t),Il(!1,n),(ve(o=n,r=t)?(i=eu(r,o),Kg.from(i[i.length-1])):Kg.none()).fold(g(Ll,e,t,n),g(Pl,e,t,n));var r,o,i}function Fl(e,t,n,r){return t?Ml(e,r,n):Ml(e,n,r)}function Ul(e,t){var n,r,o,i,a,u,s,c=Lp.fromDom(e.getBody()),l=(n=c.dom,r=t,((o=e.selection.getRng()).collapsed?(a=r,u=Tl(i=n,py.fromRangeStart(o)),s=u.bind(function(e){return Zy(a,i,e.position).bind(function(e){return Tl(i,e).map(function(e){return t=i,n=a,nh((r=e).position.getNode())&&!1===Jt(r.block)?Do(!1,r.block.dom).bind(function(e){return e.isEqual(r.position)?Zy(n,t,e).bind(function(e){return Tl(t,e)}):Kg.some(r)}).getOr(r):r;var t,n,r})})}),ut(u,s,Dl).filter(function(e){return!1===he(e.from.block,e.to.block)&&Ae((n=e).from.block).bind(function(e){return Ae(n.to.block).filter(function(t){return he(e,t)})}).isSome()&&!1===ih((t=e).from.block.dom)&&!1===ih(t.to.block.dom);var t,n})):Kg.none()).bind(function(e){return Fl(c,t,e.from.block,e.to.block)}));return l.each(function(t){e.selection.setRng(t.toRange())}),l.isSome()}function zl(e,t){var n=Lp.fromDom(t),r=g(he,e);return Nt(n,Yh,r).isSome()}function Hl(e){var t,n,r,o,i,a,u,s,c,l,f=Lp.fromDom(e.getBody());return a=e.selection.getRng(),c=nC((i=f).dom,py.fromRangeStart(a)).isNone(),l=tC(i.dom,py.fromRangeEnd(a)).isNone(),!zl(u=i,(s=a).startContainer)&&!zl(u,s.endContainer)&&c&&l?((o=e).setContent(""),o.selection.setCursorLocation(),!0):(t=f,n=e.selection,r=n.getRng(),ut(Al(t,Lp.fromDom(r.startContainer)),Al(t,Lp.fromDom(r.endContainer)),function(e,o){return!1===he(e,o)&&(r.deleteContents(),Fl(t,!0,e,o).each(function(e){n.setRng(e.toRange())}),!0)}).getOr(!1))}function jl(e){return!e.selection.isCollapsed()&&Hl(e)}function Vl(e,t,n,r,o){return Kg.from(t._selectionOverrides.showCaret(e,n,r,o))}function ql(e,t){var n,r;return e.fire("BeforeObjectSelected",{target:t}).isDefaultPrevented()?Kg.none():Kg.some(((r=(n=t).ownerDocument.createRange()).selectNode(n),r))}function $l(e,t,n){var r=vo(1,e.getBody(),t),o=py.fromRangeStart(r),i=o.getNode();if(By(i))return Vl(1,e,i,!o.isAtEnd(),!1);var a=o.getNode(!0);if(By(a))return Vl(1,e,a,!1,!1);var u=e.dom.getParent(o.getNode(),function(e){return Ew(e)||Sw(e)});return By(u)?Vl(1,e,u,!1,n):Kg.none()}function Wl(e,t,n){return t.collapsed?$l(e,t,n).getOr(t):t}function Kl(e){return ax(e)||nx(e)}function Xl(e){return ux(e)||rx(e)}function Yl(e,t,n,r,o,i){var a,u;return Vl(r,e,i.getNode(!o),o,!0).each(function(n){var r;t.collapsed?(r=t.cloneRange(),o?r.setEnd(n.startContainer,n.startOffset):r.setStart(n.endContainer,n.endOffset),r.deleteContents()):t.deleteContents(),e.selection.setRng(n)}),a=e.dom,Qp(u=n)&&0===u.data.length&&a.remove(u),!0}function Gl(e,t){var n=e.selection.getRng();if(!Qp(n.commonAncestorContainer))return!1;var r=t?hy.Forwards:hy.Backwards,o=ko(e.getBody()),i=g(xo,t?o.next:o.prev),a=t?Kl:Xl,u=yo(r,e.getBody(),n),s=Nl(t,i(u));if(!s||!wo(u,s))return!1;if(a(s))return Yl(e,n,u.getNode(),r,t,s);var c=i(s);return!!(c&&a(c)&&wo(s,c))&&Yl(e,n,u.getNode(),r,t,c)}function Jl(e,t,n){return Zy(t,e,n).bind(function(r){function o(e){return Mt(Lp.fromDom(e))&&!mo(l,f,s)}return d=r.getNode(),Yh(Lp.fromDom(d))||Kh(Lp.fromDom(d))||(s=e,f=r,bo(!(c=t),l=n).fold(function(){return bo(c,f).fold(Vg,o)},o))?Kg.none():t&&ih(r.getNode())||!1===t&&ih(r.getNode(!0))?(i=e,a=n,u=r.getNode(!1===t),Al(Lp.fromDom(i),Lp.fromDom(a.getNode())).map(function(e){return Jt(e)?kw.remove(e.dom):kw.moveToElement(u)}).orThunk(function(){return Kg.some(kw.moveToElement(u))})):t&&ux(n)||!1===t&&ax(n)?Kg.some(kw.moveToPosition(r)):Kg.none();var i,a,u,s,c,l,f,d})}function Ql(e,t){return Kg.from(Ti(e.getBody(),t))}function Zl(e,t){var n=e.selection.getNode();return Ql(e,n).filter(ih).fold(function(){return l=e.getBody(),d=vo((f=t)?1:-1,l,e.selection.getRng()),m=py.fromRangeStart(d),g=Lp.fromDom(l),(!1===f&&ux(m)?Kg.some(kw.remove(m.getNode(!0))):f&&ax(m)?Kg.some(kw.remove(m.getNode())):!1===f&&ax(m)&&su(g,m)?dx(g,m).map(function(e){return kw.remove(e.getNode())}):f&&ux(m)&&uu(g,m)?mx(g,m).map(function(e){return kw.remove(e.getNode())}):(n=l,r=f,s=(o=m).getNode(!1===(u=r)),c=u?"after":"before",Gp(s)&&s.getAttribute("data-mce-caret")===c?(a=o.getNode(!1===(i=r)),(i&&ih(a.nextSibling)?Kg.some(kw.moveToElement(a.nextSibling)):!1===i&&ih(a.previousSibling)?Kg.some(kw.moveToElement(a.previousSibling)):Kg.none()).fold(function(){return Jl(n,r,o)},Kg.some)):Jl(n,r,o).bind(function(e){return t=n,r=o,e.fold(function(e){return Kg.some(kw.remove(e))},function(e){return Kg.some(kw.moveToElement(e))},function(e){return mo(r,e,t)?Kg.none():Kg.some(kw.moveToPosition(e))});var t,r}))).exists(function(n){return n.fold(function(e){return a._selectionOverrides.hideFakeCaret(),Bu(a,u,Lp.fromDom(e)),!0},(i=u=t,function(e){var t=i?py.before(e):py.after(e);return o.selection.setRng(t.toRange()),!0}),(r=o=a=e,function(e){return r.selection.setRng(e.toRange()),!0}));var r,o,i,a,u});var n,r,o,i,a,u,s,c,l,f,d,m,g},qg)}function ef(e,t){var n=e.selection.getNode();return!(!ih(n)||ah(n))&&Ql(e,n.parentNode).filter(ih).fold(function(){return E(Zn(Lp.fromDom(e.getBody()),".mce-offscreen-selection"),$p),Bu(e,t,Lp.fromDom(e.selection.getNode())),Rl(e),!0},qg)}function tf(e){var t,n=e.dom,r=e.selection,o=Ti(e.getBody(),r.getNode());return oh(o)&&n.isBlock(o)&&n.isEmpty(o)&&(t=n.create("br",{"data-mce-bogus":"1"}),n.setHTML(o,""),o.appendChild(t),r.setRng(py.before(t).toRange())),!0}function nf(e,t){return(e.selection.isCollapsed()?Zl:ef)(e,t)}function rf(e,t){return!!e.selection.isCollapsed()&&(n=e,r=t,o=py.fromRangeStart(n.selection.getRng()),Zy(r,n.getBody(),o).filter(function(e){return(r?ex:tx)(e)}).bind(function(e){return Kg.from(go(r?0:-1,e))}).exists(function(e){return n.selection.select(e),!0}));var n,r,o}function of(e){return Nw(e)&&e.data[0]===Zh}function af(e){return Nw(e)&&e.data[e.data.length-1]===Zh}function uf(e){return e.ownerDocument.createTextNode(Zh)}function sf(e,t){return(e?function(e){if(Nw(e.previousSibling))return af(e.previousSibling)||e.previousSibling.appendData(Zh),e.previousSibling;if(Nw(e))return of(e)||e.insertData(0,Zh),e;var t=uf(e);return e.parentNode.insertBefore(t,e),t}:function(e){if(Nw(e.nextSibling))return of(e.nextSibling)||e.nextSibling.insertData(0,Zh),e.nextSibling;if(Nw(e))return af(e)||e.appendData(Zh),e;var t=uf(e);return e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t})(t)}function cf(e,t){return Qp(e.container())?sf(t,e.container()):sf(t,e.getNode())}function lf(e,t){var n=t.get();return n&&e.container()===n&&zt(n)}function ff(e,t){return t.fold(function(t){Ay(e.get());var n=_w(t);return e.set(n),Kg.some(py(n,n.length-1))},function(t){return rC(t).map(function(t){if(lf(t,e))return py(e.get(),1);Ay(e.get());var n=cf(t,!0);return e.set(n),py(n,1)})},function(t){return oC(t).map(function(t){if(lf(t,e))return py(e.get(),e.get().length-1);Ay(e.get());var n=cf(t,!1);return e.set(n),py(n,n.length-1)})},function(t){Ay(e.get());var n=Aw(t);return e.set(n),Kg.some(py(n,1))})}function df(e,t){for(var n=0;n<e.length;n++){var r=e[n].apply(null,t);if(r.isSome())return r}return Kg.none()}function mf(e,t){return fo(t,e)||e}function gf(e,t,n){var r=xw(n),o=mf(t,r.container());return kl(e,o,r).fold(function(){return tC(o,r).bind(g(kl,e,o)).map(function(e){return Rw.before(e)})},Kg.none)}function pf(e,t){return null===Oo(e,t)}function hf(e,t,n){return kl(e,t,n).filter(g(pf,t))}function vf(e,t,n){var r=ww(n);return hf(e,t,r).bind(function(e){return nC(e,r).isNone()?Kg.some(Rw.start(e)):Kg.none()})}function bf(e,t,n){var r=xw(n);return hf(e,t,r).bind(function(e){return tC(e,r).isNone()?Kg.some(Rw.end(e)):Kg.none()})}function yf(e,t,n){var r=ww(n),o=mf(t,r.container());return kl(e,o,r).fold(function(){return nC(o,r).bind(g(kl,e,o)).map(function(e){return Rw.after(e)})},Kg.none)}function Cf(e){return!1===(t=Dw(e),"rtl"===Hb.DOM.getStyle(t,"direction",!0)||(n=t.textContent,Cw.test(n)));var t,n}function xf(e,t,n){return df([gf,vf,bf,yf],[e,t,n]).filter(Cf)}function wf(e){return e.fold(f("before"),f("start"),f("end"),f("after"))}function Sf(e){return e.fold(Rw.before,Rw.before,Rw.after,Rw.after)}function Ef(e){return e.fold(Rw.start,Rw.start,Rw.end,Rw.end)}function kf(e,t,n,r,o,i){return ut(kl(t,n,r),kl(t,n,o),function(t,r){return t!==r&&(a=r,u=fo(t,o=n),s=fo(a,o),u&&u===s)?Rw.after(e?t:r):i;var o,a,u,s}).getOr(i)}function Nf(e,t){return e.fold(qg,function(e){return r=t,!(wf(n=e)===wf(r)&&Dw(n)===Dw(r));var n,r})}function _f(e,t){return e?t.fold(c(Kg.some,Rw.start),Kg.none,c(Kg.some,Rw.after),Kg.none):t.fold(Kg.none,c(Kg.some,Rw.before),Kg.none,c(Kg.some,Rw.end))}function Af(e,t,n,r){var o=Nl(e,r),i=xf(t,n,o);return xf(t,n,o).bind(g(_f,e)).orThunk(function(){return a=t,u=n,s=i,c=Nl(o=e,r),Zy(o,u,c).map(g(Nl,o)).fold(function(){return s.map(Sf)},function(e){return xf(a,u,e).map(g(kf,o,a,u,c,e)).filter(g(Nf,s))}).filter(Cf);var o,a,u,s,c})}function Rf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=window.console;r&&(r.error||r.log).apply(r,ne([e],t,!1))}function Df(e,t,n){var r=e?1:-1;return t.setRng(py(n.container(),n.offset()+r).toRange()),t.getSel().modify("move",e?"forward":"backward","word"),!0}function Tf(e,t){return e===hy.Backwards?L(t):t}function Of(e,t,n,r){for(var o,i,a,u,s=ko(n),c=r,l=[];c;){var f=(a=s,u=c,t===hy.Forwards?a.next(u):a.prev(u));if(!f)break;if(nh(f.getNode(!1)))return t===hy.Forwards?{positions:Tf(t,l).concat([f]),breakType:Dx.Br,breakAt:Kg.some(f)}:{positions:Tf(t,l),breakType:Dx.Br,breakAt:Kg.some(f)};if(f.isVisible()){if(e(c,f)){var d=(o=c,nh((i=f).getNode(t===hy.Forwards))?Dx.Br:!1===mo(o,i)?Dx.Block:Dx.Wrap);return{positions:Tf(t,l),breakType:d,breakAt:Kg.some(f)}}l.push(f),c=f}else c=f}return{positions:Tf(t,l),breakType:Dx.Eol,breakAt:Kg.none()}}function Bf(e,t,n,r){return t(n,r).breakAt.map(function(r){var o=t(n,r).positions;return e===hy.Backwards?o.concat(r):[r].concat(o)}).getOr([])}function Pf(e,t){return R(e,function(e,n){return e.fold(function(){return Kg.some(n)},function(r){return ut(U(r.getClientRects()),U(n.getClientRects()),function(e,o){var i=Math.abs(t-e.left);return Math.abs(t-o.left)<=i?n:r}).or(e)})},Kg.none())}function Lf(e,t){return U(t.getClientRects()).bind(function(t){return Pf(e,t.left)})}function If(e){function t(t){return S(t,function(t){var n=cr(t);return n.node=e,n})}if(Gp(e))return t(e.getClientRects());if(Qp(e)){var n=e.ownerDocument.createRange();return n.setStart(e,0),n.setEnd(e,e.data.length),t(n.getClientRects())}}function Mf(e){return B(e,If)}function Ff(e,t,n,r,o,i){function a(r){var i=Mf([r]);-1===e&&(i=i.reverse());for(var a=0;a<i.length;a++){var l=i[a];if(!n(l,c)){if(0<s.length&&t(l,te(s))&&u++,l.line=u,o(l))return!0;s.push(l)}}}var u=0,s=[],c=te(i.getClientRects());if(!c)return s;var l=i.getNode();return a(l),function(e,t,n,r){for(;r=lo(r,e,Xt,t);)if(n(r))return}(e,r,a,l),s}function Uf(e){return function(t){return t.line>e}}function zf(e){return function(t){return t.line===e}}function Hf(e,t){return Math.abs(e.left-t)}function jf(e,t){return Math.abs(e.right-t)}function Vf(e,t){return e>=t.left&&e<=t.right}function qf(e,t){return e>=t.top&&e<=t.bottom}function $f(e,t,n){return void 0===n&&(n=qg),Z(e,function(e,r){if(Vf(t,r))return n(r)?r:e;if(Vf(t,e))return n(e)?e:r;var o=Math.min(Hf(e,t),jf(e,t)),i=Math.min(Hf(r,t),jf(r,t));return i===o&&X(r,"node")&&Hw(r.node)||i<o?r:e})}function Wf(e,t,n,r,o){var i=jw(r,e,Xt,t,!o);do{if(!i||n(i))return}while(i=jw(i,e,Xt,t))}function Kf(e,t,n){function r(e){return!ot(e.node)&&!uh(e.node)}var o,i,a;return(a=$f(_(Mf(_(Jg(e.getElementsByTagName("*")),so)),g(qf,n)),t,r))&&(a=$f(function(e,t,n){function r(e,n){var r=_(Mf([n]),function(n){return!e(n,t)});return o=o.concat(r),0===r.length}void 0===n&&(n=!0);var o=[];return o.push(t),Wf(Tw.Up,e,g(r,dr),t.node,n),Wf(Tw.Down,e,g(r,mr),t.node,n),o}(e,a,r(a)),t,r))&&so(a.node)?{node:(o=a).node,before:Hf(o,i=t)<jf(o,i)}:null}function Xf(e,t){e.selection.setRng(t),la(e,e.selection.getRng())}function Yf(e,t,n){return Kg.some(Wl(e,t,n))}function Gf(e,t,n,r,o,i){var a=t===hy.Forwards,u=ko(e.getBody()),s=g(xo,a?u.next:u.prev),c=a?r:o;if(!n.collapsed){var l=pr(n);if(i(l))return Vl(t,e,l,t===hy.Backwards,!1)}var f=yo(t,e.getBody(),n);if(c(f))return ql(e,f.getNode(!a));var d=Nl(a,s(f)),m=Wt(n);if(!d)return m?Kg.some(n):Kg.none();if(c(d))return Vl(t,e,d.getNode(!a),a,!1);var p=s(d);return p&&c(p)&&wo(d,p)?Vl(t,e,p.getNode(!a),a,!1):m?Yf(e,d.toRange(),!1):Kg.none()}function Jf(e,t,n,r,o,i){var a=yo(t,e.getBody(),n),u=te(a.getClientRects()),s=t===Tw.Down;if(!u)return Kg.none();var c,l=_((s?zw:Uw)(e.getBody(),Uf(1),a),zf(1)),f=u.left,d=$f(l,f);if(d&&i(d.node)){var m=Math.abs(f-d.left),g=Math.abs(f-d.right);return Vl(t,e,d.node,m<g,!1)}if(c=r(a)?a.getNode():o(a)?a.getNode(!0):pr(n)){var p=function(e,t,n,r){function o(e){return te(e.getClientRects())}var i,a,u,s=ko(t),c=[],l=0,f=1===e?(i=s.next,a=mr,u=dr,py.after(r)):(i=s.prev,a=dr,u=mr,py.before(r)),d=o(f);do{if(f.isVisible()){var m=o(f);if(!u(m,d)){0<c.length&&a(m,te(c))&&l++;var g=cr(m);if(g.position=f,g.line=l,n(g))return c;c.push(g)}}}while(f=i(f));return c}(t,e.getBody(),Uf(1),c),h=$f(_(p,zf(1)),f);if(h)return Yf(e,h.position.toRange(),!1);if(h=te(_(p,zf(0))))return Yf(e,h.position.toRange(),!1)}return 0===l.length?Vw(e,s).filter(s?o:r).map(function(t){return Wl(e,t.toRange(),!1)}):Kg.none()}function Qf(e,t,n){return Vw(e,t).filter(n).exists(function(t){
|
28
|
+
return e.selection.setRng(t.toRange()),!0})}function Zf(e,t){var n=e.dom.createRng();n.setStart(t.container(),t.offset()),n.setEnd(t.container(),t.offset()),e.selection.setRng(n)}function ed(e,t){e?t.setAttribute("data-mce-selected","inline-boundary"):t.removeAttribute("data-mce-selected")}function td(e,t,n){return ff(t,n).map(function(t){return Zf(e,t),n})}function nd(e,t,n){return!!Jr(e)&&(o=t,i=n,a=(r=e).getBody(),u=py.fromRangeStart(r.selection.getRng()),Af(i,g(El,r),a,u).bind(function(e){return td(r,o,e)}).isSome());var r,o,i,a,u}function rd(e,t){return!!Jr(t)&&(n=e,o=(r=t).selection.getRng(),i=n?py.fromRangeEnd(o):py.fromRangeStart(o),!!Hg(r.selection.getSel().modify)&&(n&&Vt(i)?Df(!0,r.selection,i):!(n||!qt(i))&&Df(!1,r.selection,i)));var n,r,o,i}function od(e){var t=qn(null),n=g(El,e);return e.on("NodeChange",function(r){var o,i,a,u,s,c,l,f,d,m,p,h,v;!Jr(e)||Tp.browser.isIE()&&r.initial||(s=n,c=e.dom,l=r.parents,E(I(f=_(S(Zn(Lp.fromDom(c.getRoot()),'*[data-mce-selected="inline-boundary"]'),function(e){return e.dom}),s),d=_(l,s)),g(ed,!1)),E(I(d,f),g(ed,!0)),p=t,(m=e).selection.isCollapsed()&&!0!==m.composing&&p.get()&&(h=py.fromRangeStart(m.selection.getRng()),py.isTextPosition(h)&&!1===(Vt(v=h)||qt(v))&&(Zf(m,oo(p.get(),h)),p.set(null))),o=n,i=e,a=t,u=r.parents,i.selection.isCollapsed()&&E(_(u,o),function(){var e=py.fromRangeStart(i.selection.getRng());xf(o,i.getBody(),e).bind(function(e){return td(i,a,e)})}))}),t}function id(e,t,n){if(Jr(e)){var r=Vw(e,t).getOrThunk(function(){var n=e.selection.getRng();return t?py.fromRangeEnd(n):py.fromRangeStart(n)});return xf(g(El,e),e.getBody(),r).exists(function(t){var r=Sf(t);return ff(n,r).exists(function(t){return Zf(e,t),!0})})}return!1}function ad(e,t){return function(n){return ff(t,n).exists(function(t){return Zf(e,t),!0})}}function ud(e,t,n,r){var o=e.getBody(),i=g(El,e);e.undoManager.ignore(function(){var a,u,s;e.selection.setRng((a=n,u=r,(s=document.createRange()).setStart(a.container(),a.offset()),s.setEnd(u.container(),u.offset()),s)),e.execCommand("Delete"),xf(i,o,py.fromRangeStart(e.selection.getRng())).map(Ef).map(ad(e,t))}),e.nodeChanged()}function sd(e,t,n){if(e.selection.isCollapsed()&&Jr(e)){var r=py.fromRangeStart(e.selection.getRng());return i=t,a=n,u=r,s=(o=e).getBody(),c=fo(u.container(),s)||s,l=g(El,o),(d=xf(l,c,u)).bind(function(e){return a?e.fold(f(Kg.some(Ef(e))),Kg.none,f(Kg.some(Sf(e))),Kg.none):e.fold(Kg.none,f(Kg.some(Sf(e))),Kg.none,f(Kg.some(Ef(e))))}).map(ad(o,i)).getOrThunk(function(){var e=Ro(a,c,u),t=e.bind(function(e){return xf(l,c,e)});return ut(d,t,function(){return kl(l,c,u).exists(function(e){return!!ut(rC(t=e),oC(t),function(e,n){var r=Nl(!0,e),o=Nl(!1,n);return tC(t,r).forall(function(e){return e.isEqual(o)})}).getOr(!0)&&(Bu(o,a,Lp.fromDom(e)),!0);var t})}).orThunk(function(){return t.bind(function(){return e.map(function(e){return a?ud(o,i,u,e):ud(o,i,e,u),!0})})}).getOr(!1)})}var o,i,a,u,s,c,l,d;return!1}function cd(e){return 1===Ie(e)}function ld(e,t){var n,r=Lp.fromDom(e.getBody()),o=Lp.fromDom(e.selection.getStart()),i=_(O(n=eu(o,r),qh).fold(f(n),function(e){return n.slice(0,e)}),cd);return z(i).exists(function(n){var r,o,a,u,s,c,l,f,d,m=py.fromRangeStart(e.selection.getRng()),p=t,h=m,v=n.dom;return!(!ut(rC(v),oC(v),function(e,t){var n=Nl(!0,e),r=Nl(!1,t),o=Nl(!1,h);return p?tC(v,o).exists(function(e){return e.isEqual(r)&&h.isEqual(n)}):nC(v,o).exists(function(e){return e.isEqual(n)&&h.isEqual(r)})}).getOr(!0)||To((r=n).dom)&&bs(r.dom)||(o=t,u=n,0===(d=S(_(i,g(_s,a=e)),function(e){return e.dom})).length?Bu(a,o,u):(c=u.dom,f=Es(d,(l=Cs(!1)).dom),ze(Lp.fromDom(c),l),$p(Lp.fromDom(c)),s=py(f,0),a.selection.setRng(s.toRange())),0))})}function fd(e,t){return!!e.selection.isCollapsed()&&ld(e,t)}function dd(e,t,n){return e._selectionOverrides.hideFakeCaret(),Bu(e,t,Lp.fromDom(n)),!0}function md(e,t){return e.selection.isCollapsed()?(i=e,u=(a=t)?nx:rx,s=a?hy.Forwards:hy.Backwards,c=yo(s,i.getBody(),i.selection.getRng()),u(c)?dd(i,a,c.getNode(!a)):Kg.from(Nl(a,c)).filter(function(e){return u(e)&&wo(c,e)}).exists(function(e){return dd(i,a,e.getNode(!a))})):(r=t,o=(n=e).selection.getNode(),!!uh(o)&&dd(n,r,o));var n,r,o,i,a,u,s,c}function gd(e){var t=parseInt(e,10);return isNaN(t)?0:t}function pd(e,t){return(e||"table"===we(t)?"margin":"padding")+("rtl"===ht(t,"direction")?"-right":"-left")}function hd(e){var t,n=Ww(e);return!e.mode.isReadOnly()&&(1<n.length||(t=e,P(n,function(e){var n=vt(e,pd(Wr(t),e)).map(gd).getOr(0);return"false"!==t.dom.getContentEditable(e.dom)&&0<n})))}function vd(e){return Wh(e)||Kh(e)}function bd(e,t){var n=e.dom,r=e.selection,o=e.formatter,i=e.getParam("indentation","40px","string"),a=/[a-z%]+$/i.exec(i)[0],u=parseInt(i,10),s=Wr(e),c=zr(e);e.queryCommandState("InsertUnorderedList")||e.queryCommandState("InsertOrderedList")||""!==c||n.getParent(r.getNode(),n.isBlock)||o.apply("div"),E(Ww(e),function(e){var r,o=n,i=t,c=u,l=a,f=e.dom,d=pd(s,Lp.fromDom(f));"outdent"===i?(r=Math.max(0,gd(f.style[d])-c),o.setStyle(f,d,r?r+l:"")):(r=gd(f.style[d])+c+l,o.setStyle(f,d,r))})}function yd(e){if(e.selection.isCollapsed()&&hd(e)){var t=e.dom,n=e.selection.getRng(),r=py.fromRangeStart(n),o=t.getParent(n.startContainer,t.isBlock);if(null!==o&&sx(Lp.fromDom(o),r))return bd(e,"outdent"),!0}return!1}function Cd(e,t){e.getDoc().execCommand(t,!1,null)}function xd(e){return void 0===e.touches||1!==e.touches.length?Kg.none():Kg.some(e.touches[0])}function wd(e,t){return tp(e,t.nodeName)}function Sd(e){var t,n,r,o=e.dom,i=e.selection,a=e.schema,u=a.getBlockElements(),s=i.getStart(),c=e.getBody(),l=zr(e);if(s&&Gp(s)&&l){var f=c.nodeName.toLowerCase();if(a.isValidChild(f,l.toLowerCase())&&(d=u,m=c,g=s,!w(Za(Lp.fromDom(g),Lp.fromDom(m)),function(e){return wd(d,e.dom)}))){var d,m,g,p,h,v=i.getRng(),b=v.startContainer,y=v.startOffset,C=v.endContainer,x=v.endOffset,S=Aa(e);for(s=c.firstChild;s;)p=u,Qp(h=s)||Gp(h)&&!wd(p,h)&&!zo(h)?function(e,t){if(Qp(t)){if(0===t.nodeValue.length)return 1;if(/^\s+$/.test(t.nodeValue)&&(!t.nextSibling||wd(e,t.nextSibling)))return 1}}(u,s)?(s=(n=s).nextSibling,o.remove(n)):(t||(t=o.create(l,Hr(e)),s.parentNode.insertBefore(t,s),r=!0),s=(n=s).nextSibling,t.appendChild(n)):(t=null,s=s.nextSibling);r&&S&&(v.setStart(b,y),v.setEnd(C,x),i.setRng(v),e.nodeChanged())}}}function Ed(e,t){t.hasAttribute("data-mce-caret")&&($t(t),e.selection.setRng(e.selection.getRng()),e.selection.scrollIntoView(t))}function kd(e,t){var n=Rt(Lp.fromDom(e.getBody()),"*[data-mce-caret]").map(function(e){return e.dom}).getOrNull();if(n)return"compositionstart"===t.type?(t.preventDefault(),t.stopPropagation(),void Ed(e,n)):void(jt(n)&&(Ed(e,n),e.undoManager.add()))}function Nd(e,t,n){var r,o,i,a=ko(e.getBody()),u=g(xo,1===t?a.next:a.prev);!n.collapsed||""===zr(e)||(r=e.dom.getParent(n.startContainer,"PRE"))&&(u(py.fromRangeStart(n))||(i=e.dom.create(zr(e)),(!Tp.ie||11<=Tp.ie)&&(i.innerHTML='<br data-mce-bogus="1">'),o=i,1===t?e.$(r).after(o):e.$(r).before(o),e.selection.select(o,!0),e.selection.collapse()))}function _d(e,t){return n=e,r=t?hy.Forwards:hy.Backwards,o=n.selection.getRng(),Gf(n,r,o,ax,ux,Kw).orThunk(function(){return Nd(n,r,o),Kg.none()}).exists(function(t){return Xf(e,t),!0});var n,r,o}function Ad(e,t){return r=t?1:-1,o=(n=e).selection.getRng(),Jf(n,r,o,function(e){return ax(e)||ox(e)},function(e){return ux(e)||ix(e)},Kw).orThunk(function(){return Nd(n,r,o),Kg.none()}).exists(function(t){return Xf(e,t),!0});var n,r,o}function Rd(e,t){return Qf(e,t,t?ux:ax)}function Dd(e){return x(["figcaption"],we(e))}function Td(e){var t=document.createRange();return t.setStartBefore(e.dom),t.setEndBefore(e.dom),t}function Od(e,t,n){(n?qp:je)(e,t)}function Bd(e,t){var n=Lp.fromDom(e.getBody()),r=py.fromRangeStart(e.selection.getRng()),o=zr(e),i=Hr(e),a=r,u=g(he,n);return _t(Lp.fromDom(a.container()),qh,u).filter(Dd).exists(function(){if(b=n,y=r,t?(x=b.dom,Pw(x,y).breakAt.isNone()):(C=b.dom,Bw(C,y).breakAt.isNone())){var a=(u=n,c=i,l=t,""===(s=o)?(h=l,Od(u,v=Lp.fromTag("br"),h),Td(v)):(f=u,d=l,m=c,g=Lp.fromTag(s),p=Lp.fromTag("br"),ft(g,m),qp(g,p),Od(f,g,d),Td(p)));return e.selection.setRng(a),!0}var u,s,c,l,f,d,m,g,p,h,v,b,y,C,x;return!1})}function Pd(e,t){return!!e.selection.isCollapsed()&&Bd(e,t)}function Ld(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(null,t)}}function Id(e,t){return T((n=t,B(S(e,function(e){return rp({shiftKey:!1,altKey:!1,ctrlKey:!1,metaKey:!1,keyCode:0,action:s},e)}),function(e){return n.keyCode===e.keyCode&&n.shiftKey===e.shiftKey&&n.altKey===e.altKey&&n.ctrlKey===e.ctrlKey&&n.metaKey===e.metaKey?[e]:[]})),function(e){return e.action()});var n}function Md(e,t){var n=t?hy.Forwards:hy.Backwards,r=e.selection.getRng();return Gf(e,n,r,nx,rx,uh).exists(function(t){return Xf(e,t),!0})}function Fd(e,t){var n=t?1:-1,r=e.selection.getRng();return Jf(e,n,r,nx,rx,uh).exists(function(t){return Xf(e,t),!0})}function Ud(e,t){return Qf(e,t,t?rx:nx)}function zd(e,t,n,r,o){var i,a=Zn(Lp.fromDom(n),"td,th,caption").map(function(e){return e.dom}),u=_((i=e,B(a,function(e){var t,n={left:(t=cr(e.getBoundingClientRect())).left- -1,top:t.top- -1,right:t.right+-2,bottom:t.bottom+-2,width:t.width+-1,height:t.height+-1};return[{x:n.left,y:i(n),cell:e},{x:n.right,y:i(n),cell:e}]})),function(e){return t(e,o)}),s=r,c=o;return R(u,function(e,t){return e.fold(function(){return Kg.some(t)},function(e){var n=Math.sqrt(Math.abs(e.x-s)+Math.abs(e.y-c)),r=Math.sqrt(Math.abs(t.x-s)+Math.abs(t.y-c));return Kg.some(r<n?t:e)})},Kg.none()).map(function(e){return e.cell})}function Hd(e,t,n){var r,o,i=e(t,n);return i.breakType===Dx.Wrap&&0===i.positions.length||!nh(n.getNode())&&i.breakType===Dx.Br&&1===i.positions.length?(r=e,o=t,!i.breakAt.exists(function(e){return r(o,e).breakAt.isSome()})):i.breakAt.isNone()}function jd(e,t,n){var r,o,i,a=e.selection.getRng(),u=t?1:-1;return!(!uo()||(r=t,o=n,i=py.fromRangeStart(a),!Do(!r,o).exists(function(e){return e.isEqual(i)}))||(Vl(u,e,n,!t,!1).each(function(t){Xf(e,t)}),0))}function Vd(e,t,n){var r,o,i=(r=!!t,o=n.getNode(r),Gp(o)&&"TABLE"===o.nodeName?Kg.some(o):Kg.none()),a=!1===t;i.fold(function(){return Xf(e,n.toRange())},function(r){return Do(a,e.getBody()).filter(function(e){return e.isEqual(n)}).fold(function(){return Xf(e,n.toRange())},function(){var o,i,a=t,u=r,s=n;(i=zr(o=e))?o.undoManager.transact(function(){var e=Lp.fromTag(i);ft(e,Hr(o)),qp(e,Lp.fromTag("br")),(a?He:ze)(Lp.fromDom(u),e);var t=o.dom.createRng();t.setStart(e.dom,0),t.setEnd(e.dom,0),Xf(o,t)}):Xf(o,s.toRange())})})}function qd(e,t,n,r){var o,i,a,u,s,c,l,f,d,m,g=e.selection.getRng(),p=py.fromRangeStart(g),h=e.getBody();if(t||!Gw(r,p))return!(!t||!Jw(r,p)||(o=h,d=i=n,Vd(e,t,v=z((m=a=p).getClientRects()).bind(function(e){return Yw(d,e.left,e.top)}).bind(function(e){return Lf(rC(t=e).map(function(e){return[e].concat(Pw(t,e).positions)}).getOr([]),m);var t}).orThunk(function(){return U(a.getClientRects()).bind(function(e){return Pf(Iw(o,py.after(i)),e.left)})}).getOr(py.after(i))),0));var v=(u=h,l=s=n,U((f=c=p).getClientRects()).bind(function(e){return Xw(l,e.left,e.top)}).bind(function(e){return Lf(oC(t=e).map(function(e){return Bw(t,e).positions.concat(e)}).getOr([]),f);var t}).orThunk(function(){return U(c.getClientRects()).bind(function(e){return Pf(Lw(u,py.before(s)),e.left)})}).getOr(py.before(s)));return Vd(e,t,v),!0}function $d(e,t,n){return Kg.from(e.dom.getParent(e.selection.getNode(),"td,th")).bind(function(r){return Kg.from(e.dom.getParent(r,"table")).map(function(o){return n(e,t,o,r)})}).getOr(!1)}function Wd(e,t){return $d(e,t,jd)}function Kd(e,t){return $d(e,t,qd)}function Xd(e,t){var n,r,o=t,i=e.dom,a=e.schema.getMoveCaretBeforeOnEnterElements();if(t){!/^(LI|DT|DD)$/.test(t.nodeName)||(r=function(e){for(;e;){if(1===e.nodeType||3===e.nodeType&&e.data&&/[\r\n\s]/.test(e.data))return e;e=e.nextSibling}}(t.firstChild))&&/^(UL|OL|DL)$/.test(r.nodeName)&&t.insertBefore(i.doc.createTextNode(Qh),t.firstChild);var u=i.createRng();if(t.normalize(),t.hasChildNodes()){for(var s=new jh(t,t);n=s.current();){if(Qp(n)){u.setStart(n,0),u.setEnd(n,0);break}if(a[n.nodeName.toLowerCase()]){u.setStartBefore(n),u.setEndBefore(n);break}o=n,n=s.next()}n||(u.setStart(o,0),u.setEnd(o,0))}else nh(t)?t.nextSibling&&i.isBlock(t.nextSibling)?(u.setStartBefore(t),u.setEndBefore(t)):(u.setStartAfter(t),u.setEndAfter(t)):(u.setStart(t,0),u.setEnd(t,0));e.selection.setRng(u),la(e,u)}}function Yd(e){return Kg.from(e.dom.getParent(e.selection.getStart(!0),e.dom.isBlock))}function Gd(e,t){return e&&e.parentNode&&e.parentNode.nodeName===t}function Jd(e){return e&&/^(OL|UL|LI)$/.test(e.nodeName)}function Qd(e){var t=e.parentNode;return/^(LI|DT|DD)$/.test(t.nodeName)?t:e}function Zd(e,t,n){for(var r=e[n?"firstChild":"lastChild"];r&&!Gp(r);)r=r[n?"nextSibling":"previousSibling"];return r===t}function em(e){e.innerHTML='<br data-mce-bogus="1">'}function tm(e,t){return e.nodeName===t||e.previousSibling&&e.previousSibling.nodeName===t}function nm(e,t){return t&&e.isBlock(t)&&!/^(TD|TH|CAPTION|FORM)$/.test(t.nodeName)&&!/^(fixed|absolute)/i.test(t.style.position)&&"true"!==e.getContentEditable(t)}function rm(e,t,n){return!1===Qp(t)?n:e?1===n&&t.data.charAt(n-1)===Zh?0:n:n===t.data.length-1&&t.data.charAt(n)===Zh?t.data.length:n}function om(e,t){for(var n,r=e.getRoot(),o=t;o!==r&&"false"!==e.getContentEditable(o);)"true"===e.getContentEditable(o)&&(n=o),o=o.parentNode;return o!==r?n:r}function im(e,t){var n=zr(e);n&&n.toLowerCase()===t.tagName.toLowerCase()&&function(e,t,n){var r=e.dom;Kg.from(n.style).map(r.parseStyle).each(function(e){var n=bt(Lp.fromDom(t)),o=rp(rp({},n),e);r.setStyles(t,o)}),ut(Kg.from(n["class"]).map(function(e){return e.split(/\s+/)}),Kg.from(t.className).map(function(e){return _(e.split(/\s+/),function(e){return""!==e})}),function(e,n){var o=_(n,function(t){return!x(e,t)}),i=ne(ne([],e,!0),o,!0);r.setAttrib(t,"class",i.join(" "))});var o=["style","class"],i=W(n,function(e,t){return!x(o,t)});r.setAttribs(t,i)}(e,t,Hr(e))}function am(e,t){function n(t){var n,r=m,o=l.getTextInlineElements(),i=t||"TABLE"===C||"HR"===C?c.create(t||p):b.cloneNode(!1),a=i;if(!1===e.getParam("keep_styles",!0))c.setAttrib(i,"style",null),c.setAttrib(i,"class",null);else for(;o[r.nodeName]&&(To(r)||zo(r)||(n=r.cloneNode(!1),c.setAttrib(n,"id",""),i.hasChildNodes()?n.appendChild(i.firstChild):a=n,i.appendChild(n))),(r=r.parentNode)&&r!==U;);return im(e,i),em(a),i}function r(e){var t,n,r=rm(e,m,g);if(!Qp(m)||!(e?0<r:r<m.nodeValue.length)){if(m.parentNode===b&&s&&!e)return 1;if(e&&Gp(m)&&m===b.firstChild)return 1;if(tm(m,"TABLE")||tm(m,"HR"))return s&&!e||!s&&e;var o=new jh(m,b);for(Qp(m)&&(e&&0===r?o.prev():e||r!==m.nodeValue.length||o.next());t=o.current();){if(Gp(t)){if(!t.getAttribute("data-mce-bogus")&&(n=t.nodeName.toLowerCase(),f[n]&&"br"!==n))return}else if(Qp(t)&&!Yt(t.nodeValue))return;e?o.prev():o.next()}return 1}}function o(){a=/^(H[1-6]|PRE|FIGURE)$/.test(C)&&"HGROUP"!==x?n(p):n(),e.getParam("end_container_on_empty_block",!1)&&nm(c,y)&&c.isEmpty(b)?a=c.split(y,b):c.insertAfter(a,b),Xd(e,a)}var i,a,u,s,c=e.dom,l=e.schema,f=l.getNonEmptyElements(),d=e.selection.getRng();$i(c,d).each(function(e){d.setStart(e.startContainer,e.startOffset),d.setEnd(e.endContainer,e.endOffset)});var m=d.startContainer,g=d.startOffset,p=zr(e),h=!(!t||!t.shiftKey),v=!(!t||!t.ctrlKey);Gp(m)&&m.hasChildNodes()&&(s=g>m.childNodes.length-1,m=m.childNodes[Math.min(g,m.childNodes.length-1)]||m,g=s&&Qp(m)?m.nodeValue.length:0);var b,y,C,x,w,S,k,N,_,A,R,D,T,O,B,P,L,I,M,F,U=om(c,m);U&&((p&&!h||!p&&h)&&(m=function(e,t,n,r){var o,i,a,u,s,c,l=p||"P",f=e.dom,d=om(f,n),m=f.getParent(n,f.isBlock);if(!m||!nm(f,m)){if(s=((m=m||d)===e.getBody()||(c=m)&&/^(TD|TH|CAPTION)$/.test(c.nodeName)?m:m.parentNode).nodeName.toLowerCase(),!m.hasChildNodes())return im(e,o=f.create(l)),m.appendChild(o),t.setStart(o,0),t.setEnd(o,0),o;for(a=n;a.parentNode!==m;)a=a.parentNode;for(;a&&!f.isBlock(a);)a=(i=a).previousSibling;if(i&&e.schema.isValidChild(s,l.toLowerCase())){for(im(e,o=f.create(l)),i.parentNode.insertBefore(o,i),a=i;a&&!f.isBlock(a);)u=a.nextSibling,o.appendChild(a),a=u;t.setStart(n,r),t.setEnd(n,r)}}return n}(e,d,m,g)),y=(b=c.getParent(m,c.isBlock))?c.getParent(b.parentNode,c.isBlock):null,C=b?b.nodeName.toUpperCase():"","LI"!==(x=y?y.nodeName.toUpperCase():"")||v||(y=(b=y).parentNode,C=x),/^(LI|DT|DD)$/.test(C)&&c.isEmpty(b)?(N=n,_=y,A=b,R=p,M=(k=e).dom,F=k.selection.getRng(),_!==k.getBody()&&(T=(R=Jd(D=_)&&Jd(D.parentNode)?"LI":R)?N(R):M.create("BR"),Zd(_,A,!0)&&Zd(_,A,!1)?Gd(_,"LI")?(O=Qd(_),M.insertAfter(T,O),(null===(I=(L=_).parentNode)||void 0===I?void 0:I.firstChild)===L?M.remove(O):M.remove(_)):M.replace(T,_):(Zd(_,A,!0)?Gd(_,"LI")?(M.insertAfter(T,Qd(_)),T.appendChild(M.doc.createTextNode(" ")),T.appendChild(_)):_.parentNode.insertBefore(T,_):Zd(_,A,!1)?M.insertAfter(T,Qd(_)):(_=Qd(_),(B=F.cloneRange()).setStartAfter(A),B.setEndAfter(_),P=B.extractContents(),"LI"===R&&P.firstChild&&"LI"===P.firstChild.nodeName?(T=P.firstChild,M.insertAfter(P,_)):(M.insertAfter(P,_),M.insertAfter(T,_))),M.remove(A)),Xd(k,T))):p&&b===e.getBody()||(p=p||"P",Ut(b)?(a=$t(b),c.isEmpty(b)&&em(b),im(e,a),Xd(e,a)):r()?o():r(!0)?(a=b.parentNode.insertBefore(n(),b),Xd(e,tm(b,"HR")?a:b)):((S=(w=d).cloneRange()).setStart(w.startContainer,rm(!0,w.startContainer,w.startOffset)),S.setEnd(w.endContainer,rm(!1,w.endContainer,w.endOffset)),(i=S.cloneRange()).setEndAfter(b),u=i.extractContents(),E(Gb(Lp.fromDom(u),Mp),function(e){var t=e.dom;t.nodeValue=tv(t.nodeValue)}),function(e){for(;Qp(e)&&(e.nodeValue=e.nodeValue.replace(/^[\r\n]+/,"")),e=e.firstChild;);}(u),a=u.firstChild,c.insertAfter(u,b),function(e,t){var n,r,o=a,i=[];if(o){for(;o=o.firstChild;){if(e.isBlock(o))return;Gp(o)&&!t[o.nodeName.toLowerCase()]&&i.push(o)}for(n=i.length;n--;)!(o=i[n]).hasChildNodes()||o.firstChild===o.lastChild&&""===o.firstChild.nodeValue?e.remove(o):(r=o)&&"A"===r.nodeName&&e.isEmpty(r)&&e.remove(o)}}(c,f),function(e,t){t.normalize();var n=t.lastChild;n&&!/^(left|right)$/gi.test(e.getStyle(n,"float",!0))||e.add(t,"br")}(c,b),c.isEmpty(b)&&em(b),a.normalize(),c.isEmpty(a)?(c.remove(a),o()):(im(e,a),Xd(e,a))),c.setAttrib(a,"id",""),e.fire("NewBlock",{newBlock:a})))}function um(e,t,n){var r=e.dom.createRng();n?(r.setStartBefore(t),r.setEndBefore(t)):(r.setStartAfter(t),r.setEndAfter(t)),e.selection.setRng(r),la(e,r)}function sm(e,t){var n=Lp.fromTag("br");ze(Lp.fromDom(t),n),e.undoManager.add()}function cm(e,t){Qw(e.getBody(),t)||He(Lp.fromDom(t),Lp.fromTag("br"));var n=Lp.fromTag("br");He(Lp.fromDom(t),n),um(e,n.dom,!1),e.undoManager.add()}function lm(e){return e&&"A"===e.nodeName&&"href"in e}function fm(e){return e.fold(Vg,lm,lm,Vg)}function dm(e,t){t.fold(s,g(sm,e),g(cm,e),s)}function mm(e,t){var n,r,o,i=(r=g(El,n=e),o=py.fromRangeStart(n.selection.getRng()),xf(r,n.getBody(),o).filter(fm));i.isSome()?i.each(g(dm,e)):function(e,t){var n,r,o=e.selection,i=e.dom,a=o.getRng();$i(i,a).each(function(e){a.setStart(e.startContainer,e.startOffset),a.setEnd(e.endContainer,e.endOffset)});var u,s=a.startOffset,c=a.startContainer;1===c.nodeType&&c.hasChildNodes()&&(u=s>c.childNodes.length-1,c=c.childNodes[Math.min(s,c.childNodes.length-1)]||c,s=u&&3===c.nodeType?c.nodeValue.length:0);var l=i.getParent(c,i.isBlock),f=l?i.getParent(l.parentNode,i.isBlock):null,d=f?f.nodeName.toUpperCase():"",m=!(!t||!t.ctrlKey);"LI"!==d||m||(l=f),c&&3===c.nodeType&&s>=c.nodeValue.length&&!function(e){for(var t,n=new jh(c,l),r=e.getNonEmptyElements();t=n.next();)if(r[t.nodeName.toLowerCase()]||0<t.length)return 1}(e.schema)&&(n=i.create("br"),a.insertNode(n),a.setStartAfter(n),a.setEndAfter(n),r=!0),n=i.create("br"),kr(i,a,n),um(e,n,r),e.undoManager.add()}(e,t)}function gm(e,t){return Yd(e).filter(function(e){return 0<t.length&&ge(Lp.fromDom(e),t)}).isSome()}function pm(e){return gm(e,e.getParam("no_newline_selector",""))}function hm(e){return function(t){return""===zr(t)===e}}function vm(e){return function(t){return Yd(t).filter(function(e){return Kh(Lp.fromDom(e))}).isSome()===e}}function bm(e,t){return function(n){return Yd(n).fold(f(""),function(e){return e.nodeName.toUpperCase()})===e.toUpperCase()===t}}function ym(e){return bm("pre",e)}function Cm(e){return function(t){return t.getParam("br_in_pre",!0)===e}}function xm(e){return gm(e,e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption"))}function wm(e,t){return t}function Sm(e){var t=zr(e),n=function(e,t){for(var n,r=e.getRoot(),o=t;o!==r&&"false"!==e.getContentEditable(o);)"true"===e.getContentEditable(o)&&(n=o),o=o.parentNode;return o!==r?n:r}(e.dom,e.selection.getStart());return n&&e.schema.isValidChild(n.nodeName,t||"P")}function Em(e,t){return function(n,r){return R(e,function(e,t){return e&&t(n,r)},!0)?Kg.some(t):Kg.none()}}function km(e,t){var n,r;n=e,r=t,df([Em([pm],Zw.none()),Em([bm("summary",!0)],Zw.br()),Em([ym(!0),Cm(!1),wm],Zw.br()),Em([ym(!0),Cm(!1)],Zw.block()),Em([ym(!0),Cm(!0),wm],Zw.block()),Em([ym(!0),Cm(!0)],Zw.br()),Em([vm(!0),wm],Zw.br()),Em([vm(!0)],Zw.block()),Em([hm(!0),wm,Sm],Zw.block()),Em([hm(!0)],Zw.br()),Em([xm],Zw.br()),Em([hm(!1),wm],Zw.br()),Em([Sm],Zw.block())],[n,!(!r||!r.shiftKey)]).getOr(Zw.none()).fold(function(){mm(e,t)},function(){am(e,t)},s)}function Nm(e){return e.stopImmediatePropagation()}function _m(e){return e.keyCode===vC.PAGE_UP||e.keyCode===vC.PAGE_DOWN}function Am(e,t,n){n&&!e.get()?t.on("NodeChange",Nm,!0):!n&&e.get()&&t.off("NodeChange",Nm),e.set(n)}function Rm(e,t){var n=t.container(),r=t.offset();return Qp(n)?(n.insertData(r,e),Kg.some(py(n,r+e.length))):Co(t).map(function(n){var r=Lp.fromText(e);return(t.isAtEnd()?He:ze)(n,r),py(r.dom,e.length)})}function Dm(e,t){return function(n){return i=e,(!mu(a=n)&&(o=a,nC((r=i).dom,o).isNone()||tC(r.dom,o).isNone()||sx(r,o)||cx(r,o)||su(r,o)||uu(r,o)||fu(i,a)||du(i,a))?nS:rS)(t);var r,o,i,a}}function Tm(e){var t,n,r=py.fromRangeStart(e.selection.getRng()),o=Lp.fromDom(e.getBody());if(e.selection.isCollapsed()){var i=g(El,e),a=py.fromRangeStart(e.selection.getRng());return xf(i,e.getBody(),a).bind((n=o,function(e){return e.fold(function(e){return nC(n.dom,py.before(e))},function(e){return rC(e)},function(e){return oC(e)},function(e){return tC(n.dom,py.after(e))})})).bind(Dm(o,r)).exists((t=e,function(e){return t.selection.setRng(e.toRange()),t.nodeChanged(),!0}))}return!1}function Om(e){var t,n,r,o,i,a,u,s,c,l,f,d,m,p,h=od(e);return e.on("keyup compositionstart",g(kd,e)),p=h,(m=e).on("keydown",function(e){var t,n,r,o;!1===e.isDefaultPrevented()&&(t=m,n=p,r=e,o=wp().os,Id([{keyCode:vC.RIGHT,action:Ld(_d,t,!0)},{keyCode:vC.LEFT,action:Ld(_d,t,!1)},{keyCode:vC.UP,action:Ld(Ad,t,!1)},{keyCode:vC.DOWN,action:Ld(Ad,t,!0)},{keyCode:vC.RIGHT,action:Ld(Wd,t,!0)},{keyCode:vC.LEFT,action:Ld(Wd,t,!1)},{keyCode:vC.UP,action:Ld(Kd,t,!1)},{keyCode:vC.DOWN,action:Ld(Kd,t,!0)},{keyCode:vC.RIGHT,action:Ld(Md,t,!0)},{keyCode:vC.LEFT,action:Ld(Md,t,!1)},{keyCode:vC.UP,action:Ld(Fd,t,!1)},{keyCode:vC.DOWN,action:Ld(Fd,t,!0)},{keyCode:vC.RIGHT,action:Ld(nd,t,n,!0)},{keyCode:vC.LEFT,action:Ld(nd,t,n,!1)},{keyCode:vC.RIGHT,ctrlKey:!o.isOSX(),altKey:o.isOSX(),action:Ld(qw,t,n)},{keyCode:vC.LEFT,ctrlKey:!o.isOSX(),altKey:o.isOSX(),action:Ld($w,t,n)},{keyCode:vC.UP,action:Ld(Pd,t,!1)},{keyCode:vC.DOWN,action:Ld(Pd,t,!0)}],r).each(function(){r.preventDefault()}))}),d=h,(f=e).on("keydown",function(e){var t,n,r;!1===e.isDefaultPrevented()&&(n=d,r=e,Id([{keyCode:vC.BACKSPACE,action:Ld(yd,t=f,!1)},{keyCode:vC.BACKSPACE,action:Ld(nf,t,!1)},{keyCode:vC.DELETE,action:Ld(nf,t,!0)},{keyCode:vC.BACKSPACE,action:Ld(Gl,t,!1)},{keyCode:vC.DELETE,action:Ld(Gl,t,!0)},{keyCode:vC.BACKSPACE,action:Ld(sd,t,n,!1)},{keyCode:vC.DELETE,action:Ld(sd,t,n,!0)},{keyCode:vC.BACKSPACE,action:Ld(es,t,!1)},{keyCode:vC.DELETE,action:Ld(es,t,!0)},{keyCode:vC.BACKSPACE,action:Ld(rf,t,!1)},{keyCode:vC.DELETE,action:Ld(rf,t,!0)},{keyCode:vC.BACKSPACE,action:Ld(md,t,!1)},{keyCode:vC.DELETE,action:Ld(md,t,!0)},{keyCode:vC.BACKSPACE,action:Ld(jl,t,!1)},{keyCode:vC.DELETE,action:Ld(jl,t,!0)},{keyCode:vC.BACKSPACE,action:Ld(Ul,t,!1)},{keyCode:vC.DELETE,action:Ld(Ul,t,!0)},{keyCode:vC.BACKSPACE,action:Ld(fd,t,!1)},{keyCode:vC.DELETE,action:Ld(fd,t,!0)}],r).each(function(){r.preventDefault()}))}),f.on("keyup",function(e){var t,n;!1===e.isDefaultPrevented()&&(n=e,Id([{keyCode:vC.BACKSPACE,action:Ld(tf,t=f)},{keyCode:vC.DELETE,action:Ld(tf,t)}],n))}),(l=e).on("keydown",function(e){var t,n,r;e.keyCode===vC.ENTER&&(t=l,(n=e).isDefaultPrevented()||(n.preventDefault(),(r=t.undoManager).typing&&(r.typing=!1,r.add()),t.undoManager.transact(function(){!1===t.selection.isCollapsed()&&t.execCommand("Delete"),km(t,n)})))}),(c=e).on("keydown",function(e){var t;!1===e.isDefaultPrevented()&&(t=e,Id([{keyCode:vC.SPACEBAR,action:Ld(Tm,c)}],t).each(function(){t.preventDefault()}))}),u=a=e,s=Kn(function(){u.composing||Cu(u)},0),eS.isIE()&&(u.on("keypress",function(){s.throttle()}),u.on("remove",function(){s.cancel()})),a.on("input",function(e){!1===e.isComposing&&Cu(a)}),i=h,(o=e).on("keydown",function(e){var t,n,r;!1===e.isDefaultPrevented()&&(n=i,r=e,Id([{keyCode:vC.END,action:Ld(Rd,t=o,!0)},{keyCode:vC.HOME,action:Ld(Rd,t,!1)},{keyCode:vC.END,action:Ld(Ud,t,!0)},{keyCode:vC.HOME,action:Ld(Ud,t,!1)},{keyCode:vC.END,action:Ld(id,t,!0,n)},{keyCode:vC.HOME,action:Ld(id,t,!1,n)}],r).each(function(){r.preventDefault()}))}),t=e,n=h,tS.os.isOSX()||(r=qn(!1),t.on("keydown",function(e){_m(e)&&Am(r,t,!0)}),t.on("keyup",function(e){var o,i,a;!1===e.isDefaultPrevented()&&(a=e,Id([{keyCode:vC.PAGE_UP,action:Ld(id,o=t,!1,i=n)},{keyCode:vC.PAGE_DOWN,action:Ld(id,o,!0,i)}],a)),_m(e)&&r.get()&&(Am(r,t,!1),t.nodeChanged())})),h}function Bm(e){var t;this.lastPath=[],this.editor=e;var n=this;"onselectionchange"in e.getDoc()||e.on("NodeChange click mouseup keyup focus",function(n){var r=e.selection.getRng(),o={startContainer:r.startContainer,startOffset:r.startOffset,endContainer:r.endContainer,endOffset:r.endOffset};"nodechange"!==n.type&&Ui(o,t)||e.fire("SelectionChange"),t=o}),e.on("contextmenu",function(){e.fire("SelectionChange")}),e.on("SelectionChange",function(){var t=e.selection.getStart(!0);!t||!Tp.range&&e.selection.isCollapsed()||wi(e)&&!n.isSameElementPath(t)&&e.dom.isChildOf(t,e.getBody())&&e.nodeChanged({selectionChange:!0})}),e.on("mouseup",function(t){!t.isDefaultPrevented()&&wi(e)&&("IMG"===e.selection.getNode().nodeName?zh.setEditorTimeout(e,function(){e.nodeChanged()}):e.nodeChanged())})}function Pm(e){return Gp(e)&&$h(Lp.fromDom(e))}function Lm(e){var t=e.getBoundingClientRect(),n=e.ownerDocument,r=n.documentElement,o=n.defaultView;return{top:t.top+o.pageYOffset-r.clientTop,left:t.left+o.pageXOffset-r.clientLeft}}function Im(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Mm(e,t){var n=zh.throttle(function(e,n){t._selectionOverrides.hideFakeCaret(),t.selection.placeCaretAt(e,n)},0);return t.on("remove",n.stop),function(r){return e.on(function(e){var o,i,a,u,s,c,l,f,d,m,g,p,h,v,b,y,C,x,w,S,E=Math.max(Math.abs(r.screenX-e.screenX),Math.abs(r.screenY-e.screenY));if(!e.dragging&&10<E){if(t.fire("dragstart",{target:e.element}).isDefaultPrevented())return;e.dragging=!0,t.focus()}e.dragging&&(p=e,o={pageX:(b=r,y=(v=t).inline?Lm(v.getBody()):{left:0,top:0},S=(w=v).getBody(),C=w.inline?{left:S.scrollLeft,top:S.scrollTop}:{left:0,top:0},(h={pageX:(x=function(e,t){if(t.target.ownerDocument===e.getDoc())return{left:t.pageX,top:t.pageY};var n,r,o,i,a,u=Lm(e.getContentAreaContainer()),s=(r=(n=e).getBody(),o=n.getDoc().documentElement,i={left:r.scrollLeft,top:r.scrollTop},a={left:r.scrollLeft||o.scrollLeft,top:r.scrollTop||o.scrollTop},n.inline?i:a);return{left:t.pageX-u.left+s.left,top:t.pageY-u.top+s.top}}(v,b)).left-y.left+C.left,pageY:x.top-y.top+C.top}).pageX-p.relX),pageY:h.pageY+5},m=e.ghost,g=t.getBody(),m.parentNode!==g&&g.appendChild(m),i=e.ghost,u=e.width,s=e.height,c=e.maxX,l=e.maxY,d=f=0,i.style.left=(a=o).pageX+"px",i.style.top=a.pageY+"px",l<a.pageY+s&&(d=a.pageY+s-l),i.style.width=u-(f=c<a.pageX+u?a.pageX+u-c:f)+"px",i.style.height=s-d+"px",n(r.clientX,r.clientY))})}}function Fm(e){function t(e){var t,n,r,o,i,a;0===e.button&&(t=T(s.dom.getParents(e.target),function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(e[n](t))return!0;return!1}}(iS,aS)).getOr(null),i=s.getBody(),iS(a=t)&&a!==i&&(n=s.dom.getPos(t),r=s.getBody(),o=s.getDoc().documentElement,u.set({element:t,dragging:!1,screenX:e.screenX,screenY:e.screenY,maxX:(s.inline?r.scrollWidth:o.offsetWidth)-2,maxY:(s.inline?r.scrollHeight:o.offsetHeight)-2,relX:e.pageX-n.x,relY:e.pageY-n.y,width:t.offsetWidth,height:t.offsetHeight,ghost:function(e,t,n){var r=s.dom,o=e.cloneNode(!0);r.setStyles(o,{width:t,height:n}),r.setAttrib(o,"data-mce-selected",null);var i=r.create("div",{"class":"mce-drag-container","data-mce-bogus":"all",unselectable:"on",contenteditable:"false"});return r.setStyles(i,{position:"absolute",opacity:.5,overflow:"hidden",border:0,padding:0,margin:0,width:t,height:n}),r.setStyles(o,{margin:0,boxSizing:"border-box"}),i.appendChild(o),i}(t,t.offsetWidth,t.offsetHeight)})))}function n(e){i.on(function(t){var n,r,o,i,u,s;t.dragging&&((i=3===(s=(o=a).selection.getSel().getRangeAt(0).startContainer).nodeType?s.parentNode:s)===(u=t.element)||o.dom.isChildOf(i,u)||iS(i)||((r=t.element.cloneNode(!0)).removeAttribute("data-mce-selected"),n=r,a.fire("drop",{clientX:e.clientX,clientY:e.clientY}).isDefaultPrevented()||a.undoManager.transact(function(){Im(t.element),a.insertContent(a.dom.getOuterHTML(n)),a._selectionOverrides.hideFakeCaret()})),a.fire("dragend"))}),uS(i)}var r,o,i,a,u,s,c=Wn(),l=Hb.DOM,f=document,d=Mm(u=c,s=e),m=(r=i=c,function(){r.on(function(e){e.dragging&&o.fire("dragend")}),uS(r)});(o=a=e).on("mousedown",t),e.on("mousemove",d),e.on("mouseup",n),l.bind(f,"mousemove",d),l.bind(f,"mouseup",m),e.on("remove",function(){l.unbind(f,"mousemove",d),l.unbind(f,"mouseup",m)}),e.on("keydown",function(e){e.keyCode===vC.ESC&&m()})}function Um(e){function t(e){var t;e.isDefaultPrevented()||(t=e.dataTransfer)&&(x(t.types,"Files")||0<t.files.length)&&(e.preventDefault(),"drop"===e.type&&ol(i,"Dropped file type is not supported"))}function n(e){Sa(i,e.target)&&t(e)}function r(){var e=Hb.DOM,r=i.dom,o=document,a=i.inline?i.getBody():i.getDoc(),u=["drop","dragover"];E(u,function(i){e.bind(o,i,n),r.bind(a,i,t)}),i.on("remove",function(){E(u,function(i){e.unbind(o,i,n),r.unbind(a,i,t)})})}var o,i;Fm(e),(o=e).on("drop",function(e){var t=void 0!==e.clientX?o.getDoc().elementFromPoint(e.clientX,e.clientY):null;!iS(t)&&"false"!==o.dom.getContentEditableParent(t)||e.preventDefault()}),e.getParam("block_unsupported_drop",!0,"boolean")&&(i=e).on("init",function(){zh.setEditorTimeout(i,r,0)})}function zm(e,t){return Ti(e.getBody(),t)}function Hm(e){function t(e){return e!==v&&(cS(e)||uh(e))&&p.isChildOf(e,v)}function n(e){return ax(e)||ux(e)||nx(e)||rx(e)}function r(e){e&&g.setRng(e)}function o(t,n,r,o){return void 0===o&&(o=!0),e.fire("ShowCaret",{target:n,direction:t,before:r}).isDefaultPrevented()?null:(o&&g.scrollIntoView(n,-1===t),b.show(r,n))}function i(e){return Ht(e)||ov(e)||iv(e)}function u(e){return i(e.startContainer)||i(e.endContainer)}function s(n,r){if(!n)return null;if(n.collapsed){if(!u(n)){var i=r?1:-1,a=yo(i,v,n),s=a.getNode(!r);if(so(s))return o(i,s,!!r&&!a.isAtEnd(),!1);var c=a.getNode(r);if(so(c))return o(i,c,!r&&!a.isAtEnd(),!1)}return null}var f=n.startContainer,d=n.startOffset,m=n.endOffset;if(3===f.nodeType&&0===d&&cS(f.parentNode)&&(f=f.parentNode,d=p.nodeIndex(f),f=f.parentNode),1!==f.nodeType)return null;if(m===d+1&&f===n.endContainer){var h=f.childNodes[d];if(t(h))return function(t){var n=t.cloneNode(!0),r=e.fire("ObjectSelected",{target:t,targetClone:n});if(r.isDefaultPrevented())return null;var o=function(t,n,r){var o=e.$,i=Rt(Lp.fromDom(e.getBody()),"#"+y).fold(function(){return o([])},function(e){return o([e.dom])});0===i.length&&(i=o('<div data-mce-bogus="all" class="mce-offscreen-selection"></div>').attr("id",y)).appendTo(e.getBody());var a=p.createRng();n===r&&Tp.ie?(i.empty().append('<p style="font-size: 0" data-mce-bogus="all">\xa0</p>').append(n),a.setStartAfter(i[0].firstChild.firstChild),a.setEndAfter(n)):(i.empty().append(Qh).append(n).append(Qh),a.setStart(i[0].firstChild,1),a.setEnd(i[0].lastChild,0)),i.css({top:p.getPos(t,e.getBody()).y}),i[0].focus();var u=g.getSel();return u.removeAllRanges(),u.addRange(a),a}(t,r.targetClone,n),i=Lp.fromDom(t);return E(Zn(Lp.fromDom(e.getBody()),"*[data-mce-selected]"),function(e){he(i,e)||gt(e,C)}),p.getAttrib(t,C)||t.setAttribute(C,"1"),l=t,w(),o}(h)}return null}function c(){l&&l.removeAttribute(C),Rt(Lp.fromDom(e.getBody()),"#"+y).each($p),l=null}
|
29
|
+
var l,f,d,m,g=e.selection,p=e.dom,h=p.isBlock,v=e.getBody(),b=ao(e,v,h,function(){return Aa(e)}),y="sel-"+p.uniqueId(),C="data-mce-selected",x=g.getRng,w=function(){b.hide()};return Tp.ceFalse&&!yc(e)&&(e.on("mouseup",function(t){var n=x();n.collapsed&&el(e,t.clientX,t.clientY)&&$l(e,n,!1).each(r)}),e.on("click",function(t){var n=zm(e,t.target);n&&(cS(n)&&(t.preventDefault(),e.focus()),sS(n)&&p.isChildOf(n,g.getNode())&&c())}),e.on("blur NewBlock",c),e.on("ResizeWindow FullscreenStateChanged",b.reposition),e.on("tap",function(n){var r=n.target,o=zm(e,r);cS(o)?(n.preventDefault(),ql(e,o).each(s)):t(r)&&ql(e,r).each(s)},!0),e.on("mousedown",function(i){var u,l,f,d,m,b,y,C=i.target;C!==v&&"HTML"!==C.nodeName&&!p.isChildOf(C,v)||!1===el(e,i.clientX,i.clientY)||((u=zm(e,C))?cS(u)?(i.preventDefault(),ql(e,u).each(s)):(c(),sS(u)&&i.shiftKey||Oi(i.clientX,i.clientY,g.getRng())||(w(),g.placeCaretAt(i.clientX,i.clientY))):t(C)?ql(e,C).each(s):!1===so(C)&&(c(),w(),(l=Kf(v,i.clientX,i.clientY))&&(f=C,d=l.node,b=p.getParent(f,h),y=p.getParent(d,h),!a(b)&&(f!==y&&p.isChildOf(b,y)&&!1===cS(zm(e,b))||!p.isChildOf(y,b)&&(m=y,p.getParent(b,h)!==p.getParent(m,h))&&function(e){var t=e.firstChild;if(!a(t)){var r=py.before(t);if(nh(r.getNode())&&1===e.childNodes.length)return!n(r);var o=ko(e).next(r);return o&&!n(o)}}(b))||(i.preventDefault(),r(o(1,l.node,l.before,!1)),e.getBody().focus()))))}),e.on("keypress",function(e){vC.modifierPressed(e)||cS(g.getNode())&&e.preventDefault()}),e.on("GetSelectionRange",function(e){var t=e.range;l&&(l.parentNode?((t=t.cloneRange()).selectNode(l),e.range=t):l=null)}),e.on("SetSelectionRange",function(t){var n,r,o,i,a,u,c;t.range=(n=t.range,r=e.schema.getShortEndedElements(),o=p.createRng(),i=n.startContainer,a=n.startOffset,u=n.endContainer,c=n.endOffset,tp(r,i.nodeName.toLowerCase())?0===a?o.setStartBefore(i):o.setStartAfter(i):o.setStart(i,a),tp(r,u.nodeName.toLowerCase())?0===c?o.setEndBefore(u):o.setEndAfter(u):o.setEnd(u,c),o);var l=s(t.range,t.forward);l&&(t.range=l)}),e.on("AfterSetSelectionRange",function(e){var t=e.range,n=t.startContainer.parentNode;u(t)||"mcepastebin"===n.id||w(),p.hasClass(n,"mce-offscreen-selection")||c()}),e.on("copy",function(e){var t,n,r=e.clipboardData;e.isDefaultPrevented()||!e.clipboardData||Tp.ie||(t=(n=p.get(y))&&n.getElementsByTagName("*")[0])&&(e.preventDefault(),r.clearData(),r.setData("text/html",t.outerHTML),r.setData("text/plain",t.outerText||t.innerText))}),Um(e),d=Kn(function(){var e,t;f.removed||!f.getBody().contains(document.activeElement)||(e=f.selection.getRng()).collapsed&&(t=Wl(f,e,!1),f.selection.setRng(t))},0),(f=e).on("focus",function(){d.throttle()}),f.on("blur",function(){d.cancel()}),(m=e).on("init",function(){m.on("focusin",function(e){var t,n,r=e.target;uh(r)&&(t=Ti(m.getBody(),r),n=ih(t)?t:r,m.selection.getNode()!==n&&ql(m,n).each(function(e){return m.selection.setRng(e)}))})})),{showCaret:o,showBlockCaretContainer:function(e){e.hasAttribute("data-mce-caret")&&($t(e),r(x()),g.scrollIntoView(e))},hideFakeCaret:w,destroy:function(){b.destroy(),l=null}}}function jm(e){function t(t,n){try{e.getDoc().execCommand(t,!1,n)}catch(t){}}function n(e){return e.isDefaultPrevented()}function r(){e.shortcuts.add("meta+a",null,"SelectAll")}function o(){e.inline||w.bind(e.getDoc(),"mousedown mouseup",function(t){var n;t.target===e.getDoc().documentElement&&(n=S.getRng(),e.getBody().focus(),"mousedown"===t.type?Ht(n.startContainer)||S.placeCaretAt(t.clientX,t.clientY):S.setRng(n))})}function i(){Range.prototype.getClientRects||e.on("mousedown",function(t){var r;n(t)||"HTML"!==t.target.nodeName||((r=e.getBody()).blur(),zh.setEditorTimeout(e,function(){r.focus()}))})}function a(){e.on("click",function(t){var n=t.target;/^(IMG|HR)$/.test(n.nodeName)&&"false"!==w.getContentEditableParent(n)&&(t.preventDefault(),e.selection.select(n),e.nodeChanged()),"A"===n.nodeName&&w.hasClass(n,"mce-item-anchor")&&(t.preventDefault(),S.select(n))})}function u(){e.on("keydown",function(e){if(!n(e)&&e.keyCode===C&&S.isCollapsed()&&0===S.getRng().startOffset){var t=S.getNode().previousSibling;if(t&&t.nodeName&&"table"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})}function c(){e.getParam("readonly")||e.on("BeforeExecCommand mousedown",function(){t("StyleWithCSS",!1),t("enableInlineTableEditing",!1),Xr(e)||t("enableObjectResizing",!1)})}function l(){e.contentStyles.push("img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}function f(){e.inline||e.on("keydown",function(){document.activeElement===document.body&&e.getWin().focus()})}function d(){e.inline||(e.contentStyles.push("body {min-height: 150px}"),e.on("click",function(t){var n;"HTML"===t.target.nodeName&&(11<Tp.ie?e.getBody().focus():(n=e.selection.getRng(),e.getBody().focus(),e.selection.setRng(n),e.selection.normalize(),e.nodeChanged()))}))}function m(){Tp.mac&&e.on("keydown",function(t){!vC.metaKeyPressed(t)||t.shiftKey||37!==t.keyCode&&39!==t.keyCode||(t.preventDefault(),e.selection.getSel().modify("move",37===t.keyCode?"backward":"forward","lineboundary"))})}function g(){e.on("click",function(e){var t=e.target;do{if("A"===t.tagName)return void e.preventDefault()}while(t=t.parentNode)}),e.contentStyles.push(".mce-content-body {-webkit-touch-callout: none}")}function p(){e.on("init",function(){e.dom.bind(e.getBody(),"submit",function(e){e.preventDefault()})})}function h(){var t=w.getAttribs(S.getStart().cloneNode(!1));return function(){var n=S.getStart();n!==e.getBody()&&(w.setAttrib(n,"style",null),y(t,function(e){n.setAttributeNode(e.cloneNode(!0))}))}}function v(){return!S.isCollapsed()&&w.getParent(S.getStart(),w.isBlock)!==w.getParent(S.getEnd(),w.isBlock)}function b(e){var t=w.create("body"),n=e.cloneContents();return t.appendChild(n),S.serializer.serialize(t,{format:"html"})}var y=Pp.each,C=vC.BACKSPACE,x=vC.DELETE,w=e.dom,S=e.selection,E=e.parser,k=Tp.gecko,N=Tp.ie,_=Tp.webkit,A="data:text/mce-internal,",R=N?"Text":"URL",D=s;return yc(e)?(_&&(o(),a(),p(),r(),Tp.iOS&&(f(),d(),g())),k&&(i(),c(),l(),m())):(e.on("keydown",function(t){if(!n(t)&&t.keyCode===vC.BACKSPACE){var r,o=(r=S.getRng()).startContainer,i=r.startOffset,a=w.getRoot(),u=o;if(r.collapsed&&0===i){for(;u&&u.parentNode&&u.parentNode.firstChild===u&&u.parentNode!==a;)u=u.parentNode;"BLOCKQUOTE"===u.tagName&&(e.formatter.toggle("blockquote",null,u),(r=w.createRng()).setStart(o,0),r.setEnd(o,0),S.setRng(r))}}}),e.on("keydown",function(t){var r,o,i,a,u=t.keyCode;n(t)||u!==x&&u!==C||(r=e.selection.isCollapsed(),o=e.getBody(),r&&!w.isEmpty(o)||!r&&(i=b(e.selection.getRng()),(a=w.createRng()).selectNode(e.getBody()),i!==b(a))||(t.preventDefault(),e.setContent(""),o.firstChild&&w.isBlock(o.firstChild)?e.selection.setCursorLocation(o.firstChild,0):e.selection.setCursorLocation(o,0),e.nodeChanged()))}),Tp.windowsPhone||e.on("keyup focusin mouseup",function(e){vC.modifierPressed(e)||S.normalize()},!0),_&&(o(),a(),zr(e)&&e.on("init",function(){t("DefaultParagraphSeparator",zr(e))}),p(),u(),E.addNodeFilter("br",function(e){for(var t=e.length;t--;)"Apple-interchange-newline"===e[t].attr("class")&&e[t].remove()}),Tp.iOS?(f(),d(),g()):r()),11<=Tp.ie&&(d(),u()),Tp.ie&&(r(),t("AutoUrlDetect",!1),e.on("dragstart",function(t){var n,r,o;(n=t).dataTransfer&&(e.selection.isCollapsed()&&"IMG"===n.target.tagName&&S.select(n.target),0<(r=e.selection.getContent()).length&&(o=A+escape(e.id)+","+escape(r),n.dataTransfer.setData(R,o)))}),e.on("drop",function(t){var r,o,i,a;n(t)||(r=t.dataTransfer&&(a=t.dataTransfer.getData(R))&&0<=a.indexOf(A)?(a=a.substr(A.length).split(","),{id:unescape(a[0]),html:unescape(a[1])}):null)&&r.id!==e.id&&(t.preventDefault(),o=Fi(t.x,t.y,e.getDoc()),S.setRng(o),i=r.html,e.queryCommandSupported("mceInsertClipboardContent")?e.execCommand("mceInsertClipboardContent",!1,{content:i,internal:!0}):e.execCommand("mceInsertContent",!1,i))})),k&&(e.on("keydown",function(t){if(!n(t)&&t.keyCode===C&&e.getBody().getElementsByTagName("hr").length&&S.isCollapsed()&&0===S.getRng().startOffset){var r=S.getNode(),o=r.previousSibling;if("HR"===r.nodeName)return w.remove(r),void t.preventDefault();o&&o.nodeName&&"hr"===o.nodeName.toLowerCase()&&(w.remove(o),t.preventDefault())}}),i(),e.on("keypress",function(t){var r;if(!n(t)&&(8===t.keyCode||46===t.keyCode)&&v())return r=h(),e.getDoc().execCommand("delete",!1,null),r(),t.preventDefault(),!1}),w.bind(e.getDoc(),"cut",function(t){var r;!n(t)&&v()&&(r=h(),zh.setEditorTimeout(e,function(){r()}))}),c(),e.on("SetContent ExecCommand",function(e){"setcontent"!==e.type&&"mceInsertLink"!==e.command||y(w.select("a"),function(e){var t=e.parentNode,n=w.getRoot();if(t.lastChild===e){for(;t&&!w.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}w.add(t,"br",{"data-mce-bogus":1})}})}),l(),m(),u())),{refreshContentEditable:D,isHidden:function(){if(!k||e.removed)return!1;var t=e.selection.getSel();return!t||!t.rangeCount||0===t.rangeCount}}}function Vm(e){return W(e,function(e){return!1===zg(e)})}function qm(e){var t=e.settings;return Vm({block_elements:t.block_elements,boolean_attributes:t.boolean_attributes,custom_elements:t.custom_elements,extended_valid_elements:t.extended_valid_elements,invalid_elements:t.invalid_elements,invalid_styles:t.invalid_styles,move_caret_before_on_enter_elements:t.move_caret_before_on_enter_elements,non_empty_elements:t.non_empty_elements,schema:t.schema,self_closing_elements:t.self_closing_elements,short_ended_elements:t.short_ended_elements,special:t.special,text_block_elements:t.text_block_elements,text_inline_elements:t.text_inline_elements,valid_children:t.valid_children,valid_classes:t.valid_classes,valid_elements:t.valid_elements,valid_styles:t.valid_styles,verify_html:t.verify_html,whitespace_elements:t.whitespace_elements,padd_empty_block_inline_children:t.format_empty_lines})}function $m(e){var t=e.settings,n=e.editorUpload.blobCache;return Vm({allow_conditional_comments:t.allow_conditional_comments,allow_html_data_urls:t.allow_html_data_urls,allow_svg_data_urls:t.allow_svg_data_urls,allow_html_in_named_anchor:t.allow_html_in_named_anchor,allow_script_urls:t.allow_script_urls,allow_unsafe_link_target:t.allow_unsafe_link_target,convert_fonts_to_spans:t.convert_fonts_to_spans,fix_list_elements:t.fix_list_elements,font_size_legacy_values:t.font_size_legacy_values,forced_root_block:t.forced_root_block,forced_root_block_attrs:t.forced_root_block_attrs,padd_empty_with_br:t.padd_empty_with_br,preserve_cdata:t.preserve_cdata,remove_trailing_brs:t.remove_trailing_brs,inline_styles:t.inline_styles,root_name:e.inline?e.getElement().nodeName.toLowerCase():void 0,validate:!0,blob_cache:n,document:e.getDoc(),images_dataimg_filter:t.images_dataimg_filter})}function Wm(e){var t,n,r;e.bindPendingEventDelegates(),e.initialized=!0,e.fire("Init"),e.focus(!0),r=(n=e).dom.getRoot(),n.inline||wi(n)&&n.selection.getStart(!0)!==r||rC(r).each(function(e){var t,r,o,i,a=e.getNode(),u=ot(a)?rC(a).getOr(e):e;Tp.browser.isIE()?(t=n,r=u.toRange(),o=Lp.fromDom(t.getBody()),i=(va(t)?Kg.from(r):Kg.none()).map(ba).filter(ha(o)),t.bookmark=i.isSome()?i:t.bookmark):n.selection.setRng(u.toRange())}),e.nodeChanged({initial:!0}),e.execCallback("init_instance_callback",e),(t=e).settings.auto_focus&&zh.setEditorTimeout(t,function(){var e=!0===t.settings.auto_focus?t:t.editorManager.get(t.settings.auto_focus);e.destroyed||e.focus()},100)}function Km(e){return(e.inline?e.ui:e.dom).styleSheetLoader}function Xm(e){function t(){o.unloadAll(a),e.inline||e.ui.styleSheetLoader.unloadAll(i)}function n(){e.removed?t():e.on("remove",t)}var r,o=Km(e),i=Kr(e),a=e.contentCSS;0<e.contentStyles.length&&(r="",Pp.each(e.contentStyles,function(e){r+=e+"\r\n"}),e.dom.addStyle(r));var u,s,c,l,f,d,m,g,p,h=Uh.all((u=e,s=a,c=i,l=[new Uh(function(e,t){return Km(u).loadAll(s,e,t)})],u.inline?l:l.concat([new Uh(function(e,t){return u.ui.styleSheetLoader.loadAll(c,e,t)})]))).then(n)["catch"](n);return e.settings.content_style&&(d=(f=e).settings.content_style,m=Lp.fromDom(f.getBody()),g=Fe(Vp(m)),lt(p=Lp.fromTag("style"),"type","text/css"),qp(p,Lp.fromText(d)),qp(g,p),f.on("remove",function(){$p(p)})),h}function Ym(e){var t;!0!==e.removed&&(yc(t=e)||t.load({initial:!0,format:"html"}),t.startContent=t.getContent({format:"raw"}),Wm(e))}function Gm(e,t){var n=e.settings,r=e.getElement(),o=e.getDoc();n.inline||(e.getElement().style.visibility=e.orgVisibility),t||e.inline||(o.open(),o.write(e.iframeHTML),o.close()),e.inline&&(lS.addClass(r,"mce-content-body"),e.contentDocument=o=document,e.contentWindow=window,e.bodyElement=r,e.contentAreaContainer=r);var i,a,u,s,c,l,f,d,m,p,h,v,b=e.getBody();b.disabled=!0,e.readonly=!!n.readonly,e.readonly||(e.inline&&"static"===lS.getStyle(b,"position",!0)&&(b.style.position="relative"),b.contentEditable=e.getParam("content_editable_state",!0)),b.disabled=!1,e.editorUpload=pl(e),e.schema=cn(qm(e)),e.dom=Hb(o,{keep_values:!0,url_converter:e.convertURL,url_converter_scope:e,hex_colors:n.force_hex_style_colors,update_styles:!0,root_element:e.inline?e.getBody():null,collect:function(){return e.inline},schema:e.schema,contentCssCors:e.getParam("content_css_cors",!1,"boolean"),referrerPolicy:qr(e),onSetAttrib:function(t){e.fire("SetAttrib",t)}}),e.parser=((a=Uc($m(i=e),i.schema)).addAttributeFilter("src,href,style,tabindex",function(e,t){for(var n,r,o=e.length,a=i.dom,u="data-mce-"+t;o--;)(r=(n=e[o]).attr(t))&&!n.attr(u)&&0!==r.indexOf("data:")&&0!==r.indexOf("blob:")&&("style"===t?((r=a.serializeStyle(a.parseStyle(r),n.name)).length||(r=null),n.attr(u,r),n.attr(t,r)):"tabindex"===t?(n.attr(u,r),n.attr(t,null)):n.attr(u,i.convertURL(r,t,n.name)))}),a.addNodeFilter("script",function(e){for(var t=e.length;t--;){var n=e[t],r=n.attr("type")||"no/type";0!==r.indexOf("mce-")&&n.attr("type","mce-"+r)}}),i.settings.preserve_cdata&&a.addNodeFilter("#cdata",function(e){for(var t=e.length;t--;){var n=e[t];n.type=8,n.name="#comment",n.value="[CDATA["+i.dom.encode(n.value)+"]]"}}),a.addNodeFilter("p,h1,h2,h3,h4,h5,h6,div",function(e){for(var t=e.length,n=i.schema.getNonEmptyElements();t--;){var r=e[t];r.isEmpty(n)&&0===r.getAll("br").length&&(r.append(new IC("br",1)).shortEnded=!0)}}),a),e.serializer=jc((s=(u=e).settings,rp(rp(rp({},$m(u)),qm(u)),Vm({url_converter:s.url_converter,url_converter_scope:s.url_converter_scope,element_format:s.element_format,entities:s.entities,entity_encoding:s.entity_encoding,indent:s.indent,indent_after:s.indent_after,indent_before:s.indent_before}))),e),e.selection=Rc(e.dom,e.getWin(),e.serializer,e),e.annotator=Ai(e),e.formatter=yl(e),e.undoManager=xl(e),e._nodeChangeDispatcher=new oS(e),e._selectionOverrides=Hm(e),m=e,p=Wn(),h=qn(!1),v=Xn(function(e){m.fire("longpress",rp(rp({},e),{type:"longpress"})),h.set(!0)},400),m.on("touchstart",function(e){xd(e).each(function(t){v.cancel();var n={x:t.clientX,y:t.clientY,target:e.target};v.throttle(e),h.set(!1),p.set(n)})},!0),m.on("touchmove",function(e){v.cancel(),xd(e).each(function(e){p.on(function(t){var n=e,r=t,o=Math.abs(n.clientX-r.x),i=Math.abs(n.clientY-r.y);(5<o||5<i)&&(p.clear(),h.set(!1),m.fire("longpresscancel"))})})},!0),m.on("touchend touchcancel",function(e){v.cancel(),"touchcancel"!==e.type&&p.get().filter(function(t){return t.target.isEqualNode(e.target)}).each(function(){h.get()?e.preventDefault():m.fire("tap",rp(rp({},e),{type:"tap"}))})},!0),(f=l=e).on("click",function(e){f.dom.getParent(e.target,"details")&&e.preventDefault()}),(d=l).parser.addNodeFilter("details",function(e){E(e,function(e){e.attr("data-mce-open",e.attr("open")),e.attr("open","open")})}),d.serializer.addNodeFilter("details",function(e){E(e,function(e){var t=e.attr("data-mce-open");e.attr("open",Lg(t)?t:null),e.attr("data-mce-open",null)})}),yc(e)||(c=e).on("click",function(e){var t,n,r,o,i;3<=e.detail&&(r=(t=c).selection.getRng(),o=py.fromRangeStart(r),i=py.fromRangeEnd(r),!py.isElementPosition(o)||Pm(n=o.container())&&rC(n).each(function(e){return r.setStart(e.container(),e.offset())}),!py.isElementPosition(i)||Pm(n=o.container())&&oC(n).each(function(e){return r.setEnd(e.container(),e.offset())}),t.selection.setRng(ts(r)))});var y,C,w,S,k,N,_,A,R,D=yc(y=e)?qn(null):Om(y);R=D,(A=e).addCommand("delete",function(){var e,t=R;yd(e=A)||nf(e,!1)||Gl(e,!1)||sd(e,t,!1)||Ul(e,!1)||es(e)||rf(e,!1)||md(e,!1)||jl(e)||fd(e,!1)||(Cd(e,"Delete"),Rl(e))}),A.addCommand("forwardDelete",function(){var e,t=R;nf(e=A,!0)||Gl(e,!0)||sd(e,t,!0)||Ul(e,!0)||es(e)||rf(e,!0)||md(e,!0)||jl(e)||fd(e,!0)||Cd(e,"ForwardDelete")}),zr(C=e)&&C.on("NodeChange",g(Sd,C)),S=(w=e).dom,k=zr(w),N=w.getParam("placeholder",ky.getAttrib(w.getElement(),"placeholder"),"string"),_=function(e,t){var n,r,o;!function(e){if(wl(e)){var t=e.keyCode;return!Sl(e)&&(vC.metaKeyPressed(e)||e.altKey||112<=t&&t<=123||x(bw,t))}}(e)&&(n=w.getBody(),r=!(wl(o=e)&&!(Sl(o)||"keyup"===o.type&&229===o.keyCode))&&function(e,t,n){if(Jt(Lp.fromDom(t),!1)){var r=""===n,o=t.firstElementChild;return!o||!e.getStyle(t.firstElementChild,"padding-left")&&!e.getStyle(t.firstElementChild,"padding-right")&&(r?!e.isBlock(o):n===o.nodeName.toLowerCase())}return!1}(S,n,k),""!==S.getAttrib(n,yw)===r&&!t||(S.setAttrib(n,yw,r?N:null),S.setAttrib(n,"aria-placeholder",r?N:null),w.fire("PlaceholderToggle",{state:r}),w.on(r?"keydown":"keyup",_),w.off(r?"keyup":"keydown",_)))},N&&w.on("init",function(e){_(e,!0),w.on("change SetContent ExecCommand",_),w.on("paste",function(e){return zh.setEditorTimeout(w,function(){return _(e)})})});var T=Cc(e);(function(e){var t=e.settings,n=e.getDoc(),r=e.getBody();e.fire("PreInit"),t.browser_spellcheck||t.gecko_spellcheck||(n.body.spellcheck=!1,lS.setAttrib(r,"spellcheck","false")),e.quirks=jm(e),e.fire("PostRender");var o=e.getParam("directionality",Xb.isRtl()?"rtl":void 0);void 0!==o&&(r.dir=o),t.protect&&e.on("BeforeSetContent",function(e){Pp.each(t.protect,function(t){e.content=e.content.replace(t,function(e){return"<!--mce:protected "+escape(e)+"-->"})})}),e.on("SetContent",function(){e.addVisual(e.getBody())}),e.on("compositionstart compositionend",function(t){e.composing="compositionstart"===t.type})})(e),T.fold(function(){Xm(e).then(function(){return Ym(e)})},function(t){e.setProgressState(!0),Xm(e).then(function(){t().then(function(){e.setProgressState(!1),Ym(e)},function(t){e.notificationManager.open({type:"error",text:String(t)}),Ym(e)})})})}function Jm(e,t){var n,r,o,i,a=e.translate("Rich Text Area"),u=(n=e.id,r=a,t.height,o=e.getParam("iframe_attrs",{}),ft(i=Lp.fromTag("iframe"),o),ft(i,{id:n+"_ifr",frameBorder:"0",allowTransparency:"true",title:r}),Jn(i,"tox-edit-area__iframe"),i.dom);u.onload=function(){u.onload=null,e.fire("load")};var s=function(e,t){if(document.domain!==window.location.hostname&&Tp.browser.isIE()){var n=ll("mce");e[n]=function(){Gm(e)};var r='javascript:(function(){document.open();document.domain="'+document.domain+'";var ed = window.parent.tinymce.get("'+e.id+'");document.write(ed.iframeHTML);document.close();ed.'+n+"(true);})()";return fS.setAttrib(t,"src",r),!0}return!1}(e,u);return e.contentAreaContainer=t.iframeContainer,e.iframeElement=u,e.iframeHTML=function(e){var t=e.getParam("doctype","<!DOCTYPE html>")+"<html><head>";e.getParam("document_base_url","")!==e.documentBaseUrl&&(t+='<base href="'+e.documentBaseURI.getURI()+'" />'),t+='<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';var n=Fr(e,"body_id","tinymce"),r=Fr(e,"body_class",""),o=e.translate(e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string"));return Ur(e)&&(t+='<meta http-equiv="Content-Security-Policy" content="'+Ur(e)+'" />'),t+'</head><body id="'+n+'" class="mce-content-body '+r+'" data-id="'+e.id+'" aria-label="'+o+'"><br></body></html>'}(e),fS.add(t.iframeContainer,u),s}function Qm(e){return e.replace(/^\-/,"")}function Zm(e){return{editorContainer:e,iframeContainer:e,api:{}}}function eg(e){var t,n,r,o,i,a,u,s=e.getElement();return e.orgDisplay=s.style.display,Lg(Gr(e))?e.theme.renderUI():Hg(Gr(e))?(n=(t=e).getElement(),(r=Gr(t)(t,n)).editorContainer.nodeType&&(r.editorContainer.id=r.editorContainer.id||t.id+"_parent"),r.iframeContainer&&r.iframeContainer.nodeType&&(r.iframeContainer.id=r.iframeContainer.id||t.id+"_iframecontainer"),r.height=r.iframeHeight||n.offsetHeight,r):(u=(o=e).getElement(),o.inline?Zm(null):(i=u,a=dS.create("div"),dS.insertAfter(a,i),Zm(a)))}function tg(e){var t,n,r,o,i,a,u,c;e.fire("ScriptsLoaded"),t=e,n=Pp.trim(Vr(t)),r=t.ui.registry.getAll().icons,j(rp(rp({},uw.get("default").icons),uw.get(n).icons),function(e,n){tp(r,n)||t.ui.registry.addIcon(n,e)}),a=Gr(o=e),Lg(a)?(o.settings.theme=Qm(a),i=mw.get(a),o.theme=new i(o,mw.urls[a]),o.theme.init&&o.theme.init(o,mw.urls[a]||o.documentBaseUrl.replace(/\/$/,""),o.$)):o.theme={},c=[],Pp.each(Qr(u=e).split(/[ ,]/),function(e){mS(u,c,Qm(e))});var l=eg(e),f=e,d=Kg.from(l.api).getOr({}),m={show:Kg.from(d.show).getOr(s),hide:Kg.from(d.hide).getOr(s),disable:Kg.from(d.disable).getOr(s),isDisabled:Kg.from(d.isDisabled).getOr(Vg),enable:function(){f.mode.isReadOnly()||Kg.from(d.enable).map(v)}};f.ui=rp(rp({},f.ui),m);var g,p,h,b={editorContainer:l.editorContainer,iframeContainer:l.iframeContainer};return e.editorContainer=b.editorContainer||null,sl(e),e.inline?Gm(e):(h=Jm(g=e,p=b),p.editorContainer&&(fS.get(p.editorContainer).style.display=g.orgDisplay,g.hidden=fS.isHidden(p.editorContainer)),g.getElement().style.display="none",fS.setAttrib(g.id,"aria-hidden","true"),void(h||Gm(g)))}function ng(e){return"-"===e.charAt(0)}function rg(e,t,n){return Kg.from(t).filter(function(e){return 0<e.length&&!uw.has(e)}).map(function(t){return{url:e.editorManager.baseURL+"/icons/"+t+"/icons"+n+".js",name:Kg.some(t)}})}function og(e,t){var n,r,o=$b.ScriptLoader,i=o,a=t,u=function(){var n,r,i,a,u,c,l,f,d;u=o,f=$r(c=e),d=c.getParam("language_url","","string"),!1===Xb.hasCode(f)&&"en"!==f&&(l=""!==d?d:c.editorManager.baseURL+"/langs/"+f+".js",u.add(l,s,void 0,function(){il(c,"LanguageLoadError",al("language",l,f))})),i=o,E(function(e){for(var t=[],n=function(e){t.push(e)},r=0;r<e.length;r++)e[r].each(n);return t}([rg(a=e,"default",t),Kg.from(a.getParam("icons_url","","string")).filter(function(e){return 0<e.length}).map(function(e){return{url:e,name:Kg.none()}}).orThunk(function(){return rg(a,Vr(a),"")})]),function(e){i.add(e.url,s,void 0,function(){il(a,"IconsLoadError",al("icons",e.url,e.name.getOrUndefined()))})}),n=e,r=t,Pp.each(n.getParam("external_plugins"),function(e,t){dw.load(t,e,s,void 0,function(){ul(n,e,t)}),n.settings.plugins+=" "+t}),Pp.each(Qr(n).split(/[ ,]/),function(e){var t,o;(e=Pp.trim(e))&&!dw.urls[e]&&(ng(e)?(e=e.substr(1,e.length),t=dw.dependencies(e),Pp.each(t,function(e){var t=dw.createUrl({prefix:"plugins/",resource:e,suffix:"/plugin"+r+".js"},e);dw.load(t.resource,t,s,void 0,function(){ul(n,t.prefix+t.resource+t.suffix,t.resource)})})):(o={prefix:"plugins/",resource:e,suffix:"/plugin"+r+".js"},dw.load(e,o,s,void 0,function(){ul(n,o.prefix+o.resource+o.suffix,e)})))}),o.loadQueue(function(){e.removed||tg(e)},e,function(){e.removed||tg(e)})},c=Gr(n=e);Lg(c)?(ng(c)||tp(mw.urls,c)||((r=n.getParam("theme_url"))?mw.load(c,n.documentBaseURI.toAbsolute(r)):mw.load(c,"themes/"+c+"/theme"+a+".js")),i.loadQueue(function(){mw.waitFor(c,u)})):u()}function ig(e){return function(t,n){return Kg.from(n).map(Lp.fromDom).filter(Ip).bind(function(n){return r=e,o=t,i=n.dom,ds(Lp.fromDom(i),function(e){return vt(t=e,r).orThunk(function(){return"font"===we(t)?K(pS,r).bind(function(e){return mt(t,e)}):Kg.none()});var t},function(e){return he(Lp.fromDom(o),e)}).or((a=n.dom,Kg.from(Hb.DOM.getStyle(a,e,!0))));var r,o,i,a}).getOr("")}}function ag(e){return rC(e.getBody()).map(function(e){var t=e.container();return Qp(t)?t.parentNode:t})}function ug(e,t){return n=e,r=l(Kg.some,t),o=n,Kg.from(o.selection.getRng()).bind(function(e){var t=o.getBody();return e.startContainer===t&&0===e.startOffset?Kg.none():Kg.from(o.selection.getStart(!0))}).orThunk(g(ag,n)).map(Lp.fromDom).filter(Ip).bind(r);var n,r,o}function sg(e,t){if(/^[0-9.]+$/.test(t)){var n=parseInt(t,10);if(1<=n&&n<=7){var r=Pp.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large")),o=Pp.explode(e.getParam("font_size_classes",""));return o?o[n-1]||t:r[n-1]||t}return t}return t}function cg(e){this.commands={state:{},exec:{},value:{}},this.editor=e,this.setupCommands(e)}function lg(e,t,n){var r,o,i,a,u,s;Qn(e,t)&&!1===n?(o=t,Gn(r=e)?r.dom.classList.remove(o):(u=o,0<(s=_(Yn(a=r,"class"),function(e){return e!==u})).length?lt(a,"class",s.join(" ")):gt(a,"class")),0===(Gn(i=r)?i.dom.classList:Yn(i,"class")).length&>(i,"class")):n&&Jn(e,t)}function fg(e,t,n){try{e.getDoc().execCommand(t,!1,String(n))}catch(e){}}function dg(e,t){e.dom.contentEditable=t?"true":"false"}function mg(e,t){var n,r,o=Lp.fromDom(e.getBody());lg(o,"mce-content-readonly",t),t?(e.selection.controlSelection.hideResizeRect(),e._selectionOverrides.hideFakeCaret(),Kg.from(e.selection.getNode()).each(function(e){e.removeAttribute("data-mce-selected")}),dg(o,!(e.readonly=!0)),E(Zn(o,'*[contenteditable="true"]'),function(e){lt(e,wS,"true"),dg(e,!1)})):(dg(o,!(e.readonly=!1)),E(Zn(o,"*["+wS+'="true"]'),function(e){gt(e,wS),dg(e,!0)}),fg(e,"StyleWithCSS",!1),fg(e,"enableInlineTableEditing",!1),fg(e,"enableObjectResizing",!1),(Aa(n=e)||(r=n,da(Vp(Lp.fromDom(r.getElement()))).filter(function(e){return!(void 0!==(t=e.dom.classList)&&(t.contains("tox-edit-area")||t.contains("tox-edit-area__iframe")||t.contains("mce-content-body")))&&Sa(r,e.dom);var t}).isSome()))&&e.focus(),e.selection.setRng(e.selection.getRng()),e.nodeChanged())}function gg(e){return e.readonly}function pg(e){e.parser.addAttributeFilter("contenteditable",function(t){gg(e)&&E(t,function(e){e.attr(wS,e.attr("contenteditable")),e.attr("contenteditable","false")})}),e.serializer.addAttributeFilter(wS,function(t){gg(e)&&E(t,function(e){e.attr("contenteditable",e.attr(wS))})}),e.serializer.addTempAttr(wS)}function hg(e){this.bindings={},this.settings=e||{},this.scope=this.settings.scope||this,this.toggleEvent=this.settings.toggleEvent||Vg}function vg(e){return e._eventDispatcher||(e._eventDispatcher=new ES({scope:e,toggleEvent:function(t,n){ES.isNative(t)&&e.toggleNativeEvent&&e.toggleNativeEvent(t,n)}})),e._eventDispatcher}function bg(e,t){if("selectionchange"===t)return e.getDoc();if(!e.inline&&/^mouse|touch|click|contextmenu|drop|dragover|dragend/.test(t))return e.getDoc().documentElement;var n=Yr(e);return n?(e.eventRoot||(e.eventRoot=NS.select(n)[0]),e.eventRoot):e.getBody()}function yg(e,t,n){var r,o,i,a;e.hidden||gg(e)?gg(e)&&(r=e,"click"!==(o=n).type||vC.metaKeyPressed(o)||(i=Lp.fromDom(o.target),a=r,Dt(i,"a",function(e){return he(e,Lp.fromDom(a.getBody()))}).bind(function(e){return mt(e,"href")}).each(function(e){var t,n;o.preventDefault(),/^#/.test(e)?(t=r.dom.select(e+',[name="'+(ap(n=e,"#")?n.substring("#".length):n)+'"]')).length&&r.selection.scrollIntoView(t[0],!0):window.open(e,"_blank","rel=noopener noreferrer,menubar=yes,toolbar=yes,location=yes,status=yes,resizable=yes,scrollbars=yes")}))):e.fire(t,n)}function Cg(e,t){var n,r;e.delegates||(e.delegates={}),e.delegates[t]||e.removed||(r=bg(e,t),Yr(e)?(Mw||(Mw={},e.editorManager.on("removeEditor",function(){e.editorManager.activeEditor||Mw&&(j(Mw,function(t,n){e.dom.unbind(bg(e,n))}),Mw=null)})),Mw[t]||(Mw[t]=n=function(n){for(var r=n.target,o=e.editorManager.get(),i=o.length;i--;){var a=o[i].getBody();a!==r&&!NS.isChildOf(r,a)||yg(o[i],t,n)}},NS.bind(r,t,n))):(NS.bind(r,t,n=function(n){yg(e,t,n)}),e.delegates[t]=n))}function xg(e,t,n,r){var o=n[t.get()],i=n[r];try{i.activate()}catch(e){return void console.error("problem while activating editor mode "+r+":",e)}o.deactivate(),o.editorReadOnly!==i.editorReadOnly&&mg(e,i.editorReadOnly),t.set(r),e.fire("SwitchMode",{mode:r})}function wg(e){var t,n={};RS(DS(e.toLowerCase(),"+"),function(e){e in OS?n[e]=!0:/^[0-9]{2,}$/.test(e)?n.keyCode=parseInt(e,10):(n.charCode=e.charCodeAt(0),n.keyCode=TS[e]||e.toUpperCase().charCodeAt(0))});var r=[n.keyCode];for(t in OS)n[t]?r.push(t):n[t]=!1;return n.id=r.join(","),n.access&&(n.alt=!0,Tp.mac?n.ctrl=!0:n.shift=!0),n.meta&&(Tp.mac?n.meta=!0:(n.ctrl=!0,n.meta=!1)),n}function Sg(e){this.shortcuts={},this.pendingPatterns=[],this.editor=e;var t=this;e.on("keyup keypress keydown",function(e){!t.hasModifier(e)&&!t.isFunctionKey(e)||e.isDefaultPrevented()||(RS(t.shortcuts,function(n){if(t.matchShortcut(e,n))return t.pendingPatterns=n.subpatterns.slice(0),"keydown"===e.type&&t.executeShortcutAction(n),!0}),t.matchShortcut(e,t.pendingPatterns[0])&&(1===t.pendingPatterns.length&&"keydown"===e.type&&t.executeShortcutAction(t.pendingPatterns[0]),t.pendingPatterns.shift()))})}function Eg(e,t,n){function r(e,t){return function(n,r){return e[n.toLowerCase()]=rp(rp({},r),{type:t})}}var o,i,a,u,c,l,f,d,m,g,p,h,v,b,y,C,w,S,E=this;this.plugins={},this.contentCSS=[],this.contentStyles=[],this.loadedCSS={},this.isNotDirty=!1,this.editorManager=n,this.documentBaseUrl=n.documentBaseURL,LS(this,_S),this.settings=(g=(m=this).documentBaseUrl,p=n.defaultSettings,v=g,b=nw,y=m,C={id:e,theme:"silver",toolbar_mode:Xc(h=t,"floating"),plugins:"",document_base_url:v,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:"<!DOCTYPE html>",visual:!0,font_size_legacy_values:"xx-small,small,medium,large,x-large,xx-large,300%",forced_root_block:"p",hidden_input:!0,inline_styles:!0,convert_fonts_to_spans:!0,indent:!0,indent_before:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",indent_after:"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,th,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,summary,article,hgroup,aside,figure,figcaption,option,optgroup,datalist",entity_encoding:"named",url_converter:y.convertURL,url_converter_scope:y},w=rp(rp({},C),b?aw:{}),!1!==(S=Gc(rw||ow,rw,w,p,h)).deprecation_warnings&&$c(h,S),S),this.settings.suffix&&(n.suffix=this.settings.suffix),this.suffix=n.suffix,this.settings.base_url&&n._setBaseUrl(this.settings.base_url),this.baseUri=n.baseURI,this.settings.referrer_policy&&($b.ScriptLoader._setReferrerPolicy(this.settings.referrer_policy),Hb.DOM.styleSheetLoader._setReferrerPolicy(this.settings.referrer_policy)),Yb.languageLoad=this.settings.language_load,Yb.baseURL=n.baseURL,this.id=e,this.setDirty(!1),this.documentBaseURI=new jC(this.settings.document_base_url,{base_uri:this.baseUri}),this.baseURI=this.baseUri,this.inline=!!this.settings.inline,this.shortcuts=new BS(this),this.editorCommands=new xS(this),this.settings.cache_suffix&&(Tp.cacheSuffix=this.settings.cache_suffix.replace(/^[\?\&]+/,"")),this.ui={registry:{addAutocompleter:(c={},(o={addButton:r(i={},"button"),addGroupToolbarButton:r(i,"grouptoolbarbutton"),addToggleButton:r(i,"togglebutton"),addMenuButton:r(i,"menubutton"),addSplitButton:r(i,"splitbutton"),addMenuItem:r(a={},"menuitem"),addNestedMenuItem:r(a,"nestedmenuitem"),addToggleMenuItem:r(a,"togglemenuitem"),addAutocompleter:r(u={},"autocompleter"),addContextMenu:r(l={},"contextmenu"),addContextToolbar:r(f={},"contexttoolbar"),addContextForm:r(f,"contextform"),addSidebar:r(d={},"sidebar"),addIcon:function(e,t){return c[e.toLowerCase()]=t},getAll:function(){return{buttons:i,menuItems:a,icons:c,popups:u,contextMenus:l,contextToolbars:f,sidebars:d}}}).addAutocompleter),addButton:o.addButton,addContextForm:o.addContextForm,addContextMenu:o.addContextMenu,addContextToolbar:o.addContextToolbar,addIcon:o.addIcon,addMenuButton:o.addMenuButton,addMenuItem:o.addMenuItem,addNestedMenuItem:o.addNestedMenuItem,addSidebar:o.addSidebar,addSplitButton:o.addSplitButton,addToggleButton:o.addToggleButton,addGroupToolbarButton:o.addGroupToolbarButton,addToggleMenuItem:o.addToggleMenuItem,getAll:o.getAll},styleSheetLoader:void 0,show:s,hide:s,enable:s,disable:s,isDisabled:Vg};var k,N,_,A,R,D=(A=qn("design"),R=qn({design:{activate:s,deactivate:s,editorReadOnly:!1},readonly:{activate:s,deactivate:s,editorReadOnly:!0}}),(N=k=this).serializer?pg(N):N.on("PreInit",function(){pg(N)}),(_=k).on("ShowCaret",function(e){gg(_)&&e.preventDefault()}),_.on("ObjectSelected",function(e){gg(_)&&e.preventDefault()}),{isReadOnly:function(){return gg(k)},set:function(e){return function(e,t,n,r){if(r!==n.get()){if(!tp(t,r))throw new Error("Editor mode '"+r+"' is invalid");e.initialized?xg(e,n,t,r):e.on("init",function(){return xg(e,n,t,r)})}}(k,R.get(),A,e)},get:function(){return A.get()},register:function(e,t){R.set(function(e,t,n){var r;if(x(AS,t))throw new Error("Cannot override default mode "+t)
|
30
|
+
;return rp(rp({},e),((r={})[t]=rp(rp({},n),{deactivate:function(){try{n.deactivate()}catch(e){console.error("problem while deactivating editor mode "+t+":",e)}}}),r))}(R.get(),e,t))}});this.mode=D,this.setMode=D.set,n.fire("SetupEditor",{editor:this}),this.execCallback("setup",this),this.$=Ib.overrideDefaults(function(){return{context:E.inline?E.getBody():E.getDoc(),element:E.getBody()}})}function kg(e){var t=e.type;jS(YS.get(),function(n){switch(t){case"scroll":n.fire("ScrollWindow",e);break;case"resize":n.fire("ResizeWindow",e)}})}function Ng(e){e!==$S&&(e?Ib(window).on("resize scroll",kg):Ib(window).off("resize scroll",kg),$S=e)}function _g(e){var t=KS;delete WS[e.id];for(var n=0;n<WS.length;n++)if(WS[n]===e){WS.splice(n,1);break}return KS=_(KS,function(t){return e!==t}),YS.activeEditor===e&&(YS.activeEditor=0<KS.length?KS[0]:null),YS.focusedEditor===e&&(YS.focusedEditor=null),t.length!==KS.length}function Ag(e,t,n){var r=t.x,o=t.y,i=e.w,a=e.h,u=t.w,s=t.h,c=(n||"").split("");return"b"===c[0]&&(o+=s),"r"===c[1]&&(r+=u),"c"===c[0]&&(o+=nE(s/2)),"c"===c[1]&&(r+=nE(u/2)),"b"===c[3]&&(o-=a),"r"===c[4]&&(r-=i),"c"===c[3]&&(o-=nE(a/2)),"c"===c[4]&&(r-=nE(i/2)),Dg(r,o,i,a)}function Rg(){}function Dg(e,t,n,r){return{x:e,y:t,w:n,h:r}}function Tg(e){this.settings=hE({},e),this.count=0}var Og=function(e){return{eq:e}},Bg=Og(function(e,t){return e===t}),Pg=Og(function(r,o){if(r===o)return!0;var i=e(r);return i===e(o)&&(-1!==["undefined","boolean","number","string","function","xml","null"].indexOf(i)?r===o:"array"===i?t(Pg).eq(r,o):"object"===i&&n(Pg).eq(r,o))}),Lg=r("string"),Ig=r("object"),Mg=r("array"),Fg=i(null),Ug=o("boolean"),zg=i(void 0),Hg=o("function"),jg=o("number"),Vg=f(!1),qg=f(!0),$g={fold:function(e){return e()},isSome:Vg,isNone:qg,getOr:d,getOrThunk:y,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:f(null),getOrUndefined:f(void 0),or:d,orThunk:y,map:b,each:s,bind:b,exists:Vg,forall:qg,filter:function(){return $g},toArray:function(){return[]},toString:f("none()")},Wg=function(e){function t(){return o}function n(t){return t(e)}var r=f(e),o={fold:function(t,n){return n(e)},isSome:qg,isNone:Vg,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:t,orThunk:t,map:function(t){return Wg(t(e))},each:function(t){t(e)},bind:n,exists:n,forall:n,filter:function(t){return t(e)?o:$g},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return o},Kg={some:Wg,none:b,from:function(e){return null==e?$g:Wg(e)}},Xg=Array.prototype.slice,Yg=Array.prototype.indexOf,Gg=Array.prototype.push,Jg=Hg(Array.from)?Array.from:function(e){return Xg.call(e)},Qg=Object.keys,Zg=Object.hasOwnProperty,ep=function(e,t){var n={};return j(e,function(e,r){var o=t(e,r);n[o.k]=o.v}),n},tp=function(e,t){return Zg.call(e,t)},np=Array.isArray,rp=function(){return(rp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},op=function(e,t){return{major:e,minor:t}},ip={nu:op,detect:function(e,t){function n(e){return Number(r.replace(o,"$"+e))}var r,o,i=String(t).toLowerCase();return 0===e.length?be():(o=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.test(t))return r}}(e,r=i))?op(n(1),n(2)):{major:0,minor:0}},unknown:be},ap=function(e,t){return""===(n=t)||e.length>=n.length&&e.substr(0,0+n.length)===n;var n},up=ae(/^\s+|\s+$/g),sp=ae(/^\s+/g),cp=ae(/\s+$/g),lp=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,fp={browsers:f([{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return ie(e,"edge/")&&ie(e,"chrome")&&ie(e,"safari")&&ie(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,lp],search:function(e){return ie(e,"chrome")&&!ie(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return ie(e,"msie")||ie(e,"trident")}},{name:"Opera",versionRegexes:[lp,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:ce("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:ce("firefox")},{name:"Safari",versionRegexes:[lp,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(ie(e,"safari")||ie(e,"mobile/"))&&ie(e,"applewebkit")}}]),oses:f([{name:"Windows",search:ce("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return ie(e,"iphone")||ie(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:ce("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:ce("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:ce("linux"),versionRegexes:[]},{name:"Solaris",search:ce("sunos"),versionRegexes:[]},{name:"FreeBSD",search:ce("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:ce("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}])},dp="Firefox",mp=function(){return ye({current:void 0,version:ip.unknown()})},gp=ye,pp=(f("Edge"),f("Chrome"),f("IE"),f("Opera"),f(dp),f("Safari"),"Windows"),hp="Android",vp="Solaris",bp="FreeBSD",yp="ChromeOS",Cp=function(){return Ce({current:void 0,version:ip.unknown()})},xp=Ce,wp=(f(pp),f("iOS"),f(hp),f("Linux"),f("OSX"),f(vp),f(bp),f(yp),re(function(){return e=navigator.userAgent,t=Kg.from(navigator.userAgentData),n=le,h=fp.browsers(),v=fp.oses(),{browser:b=t.bind(function(e){return t=h,H(e.brands,function(e){var n=e.brand.toLowerCase();return T(t,function(e){var t;return n===(null===(t=e.brand)||void 0===t?void 0:t.toLowerCase())}).map(function(t){return{current:t.name,version:ip.nu(parseInt(e.version,10),0)}})});var t}).orThunk(function(){return oe(h,t=e).map(function(e){var n=ip.detect(e.versionRegexes,t);return{current:e.name,version:n}});var t}).fold(mp,gp),os:y=oe(v,r=e).map(function(e){var t=ip.detect(e.versionRegexes,r);return{current:e.name,version:t}}).fold(Cp,xp),deviceType:(i=b,a=e,u=n,s=(o=y).isiOS()&&!0===/ipad/i.test(a),c=o.isiOS()&&!s,d=(l=o.isiOS()||o.isAndroid())||u("(pointer:coarse)"),m=s||!c&&l&&u("(min-device-width:768px)"),g=c||l&&!m,p=i.isSafari()&&o.isiOS()&&!1===/safari/i.test(a),{isiPad:f(s),isiPhone:f(c),isTablet:f(m),isPhone:f(g),isTouch:f(d),isAndroid:o.isAndroid,isiOS:o.isiOS,isWebView:f(p),isDesktop:f(!g&&!m&&!p)})};var e,t,n,r,o,i,a,u,s,c,l,d,m,g,p,h,v,b,y})),Sp=navigator.userAgent,Ep=wp(),kp=Ep.browser,Np=Ep.os,_p=Ep.deviceType,Ap=/WebKit/.test(Sp)&&!kp.isEdge(),Rp="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Dp=-1!==Sp.indexOf("Windows Phone"),Tp={opera:kp.isOpera(),webkit:Ap,ie:!(!kp.isIE()&&!kp.isEdge())&&kp.version.major,gecko:kp.isFirefox(),mac:Np.isOSX()||Np.isiOS(),iOS:_p.isiPad()||_p.isiPhone(),android:Np.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:kp.isIE()?document.documentMode||7:10,fileApi:Rp,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!kp.isIE(),desktop:_p.isDesktop(),windowsPhone:Dp,browser:{current:kp.current,version:kp.version,isChrome:kp.isChrome,isEdge:kp.isEdge,isFirefox:kp.isFirefox,isIE:kp.isIE,isOpera:kp.isOpera,isSafari:kp.isSafari},os:{current:Np.current,version:Np.version,isAndroid:Np.isAndroid,isChromeOS:Np.isChromeOS,isFreeBSD:Np.isFreeBSD,isiOS:Np.isiOS,isLinux:Np.isLinux,isOSX:Np.isOSX,isSolaris:Np.isSolaris,isWindows:Np.isWindows},deviceType:{isDesktop:_p.isDesktop,isiPad:_p.isiPad,isiPhone:_p.isiPhone,isPhone:_p.isPhone,isTablet:_p.isTablet,isTouch:_p.isTouch,isWebView:_p.isWebView}},Op=/^\s*|\s*$/g,Bp=function(e,t,n,r){r=r||this,e&&Y(e=n?e[n]:e,function(e,o){return!1!==t.call(r,e,o,n)&&void Bp(e,t,n,r)})},Pp={trim:fe,isArray:np,is:de,toArray:function(e){if(np(e))return e;for(var t=[],n=0,r=e.length;n<r;n++)t[n]=e[n];return t},makeMap:function(e,t,n){var r;for(t=t||",",n=n||{},r=(e="string"==typeof(e=e||[])?e.split(t):e).length;r--;)n[e[r]]={};return n},each:Y,map:G,grep:J,inArray:Q,hasOwn:tp,extend:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var o,i,a=t[r];for(o in a)!tp(a,o)||void 0!==(i=a[o])&&(e[o]=i)}return e},create:function(e,t,n){var r,o,i,a=this,u=0,s=(e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e))[3].match(/(^|\.)(\w+)$/i)[2],c=a.createNS(e[3].replace(/\.\w+$/,""),n);if(!c[s]){if("static"===e[2])return c[s]=t,void(this.onCreate&&this.onCreate(e[2],e[3],c[s]));t[s]||(t[s]=function(){},u=1),c[s]=t[s],a.extend(c[s].prototype,t),e[5]&&(r=a.resolve(e[5]).prototype,o=e[5].match(/\.(\w+)$/i)[1],i=c[s],c[s]=u?function(){return r[o].apply(this,arguments)}:function(){return this.parent=r[o],i.apply(this,arguments)},c[s].prototype[s]=c[s],a.each(r,function(e,t){c[s].prototype[t]=r[t]}),a.each(t,function(e,t){r[t]?c[s].prototype[t]=function(){return this.parent=r[t],e.apply(this,arguments)}:t!==s&&(c[s].prototype[t]=e)})),a.each(t["static"],function(e,t){c[s][t]=e})}},walk:Bp,createNS:function(e,t){var n,r;for(t=t||window,e=e.split("."),n=0;n<e.length;n++)t[r=e[n]]||(t[r]={}),t=t[r];return t},resolve:function(e,t){var n,r;for(t=t||window,n=0,r=(e=e.split(".")).length;n<r&&(t=t[e[n]]);n++);return t},explode:function(e,t){return!e||de(e,"array")?e:G(e.split(t||","),fe)},_addCacheSuffix:function(e){var t=Tp.cacheSuffix;return t&&(e+=(-1===e.indexOf("?")?"?":"&")+t),e}},Lp={fromHtml:function(e,t){var n=(t||document).createElement("div");if(n.innerHTML=e,!n.hasChildNodes()||1<n.childNodes.length)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return xe(n.childNodes[0])},fromTag:function(e,t){return xe((t||document).createElement(e))},fromText:function(e,t){return xe((t||document).createTextNode(e))},fromDom:xe,fromPoint:function(e,t,n){return Kg.from(e.dom.elementFromPoint(t,n)).map(xe)}};"undefined"!=typeof window||Function("return this;")();var Ip=Ee(1),Mp=Ee(3),Fp=Ee(9),Up=Ee(11),zp=function(e){return S(e.dom.childNodes,Lp.fromDom)},Hp=Hg(Element.prototype.attachShadow)&&Hg(Node.prototype.getRootNode),jp=f(Hp),Vp=Hp?function(e){return Lp.fromDom(e.dom.getRootNode())}:Ne,qp=function(e,t){e.dom.appendChild(t.dom)},$p=function(e){var t=e.dom;null!==t.parentNode&&t.parentNode.removeChild(t)},Wp=function(e){var t=Mp(e)?e.dom.parentNode:e.dom;if(null==t||null===t.ownerDocument)return!1;var n=t.ownerDocument,r=Lp.fromDom(t),o=Vp(r);return(Me(o)?Kg.some(o):Kg.none()).fold(function(){return n.body.contains(t)},l(Wp,Ue))},Kp=function(e,t){return{left:e,top:t,translate:function(n,r){return Kp(e+n,t+r)}}},Xp=Kp,Yp=function(e){var t,n=e.dom,r=n.ownerDocument.body;return r===n?Xp(r.offsetLeft,r.offsetTop):Wp(e)?(t=n.getBoundingClientRect(),Xp(t.left,t.top)):Xp(0,0)},Gp=Qe(1),Jp=et(["textarea","input"]),Qp=Qe(3),Zp=Qe(8),eh=Qe(9),th=Qe(11),nh=et(["br"]),rh=et(["img"]),oh=it("true"),ih=it("false"),ah=et(["td","th"]),uh=et(["video","audio","object","embed"]),sh=function(e,t){return st(e)?e.style.getPropertyValue(t):""},ch=wp().browser,lh={},fh={exports:lh};!function(){var e=this,t=function(){function e(){}function t(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],u(e,this)}function n(e,n){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,t._immediateFn(function(){var t,i=1===e._state?n.onFulfilled:n.onRejected;if(null!==i){try{t=i(e._value)}catch(t){return void o(n.promise,t)}r(n.promise,t)}else(1===e._state?r:o)(n.promise,e._value)})):e._deferreds.push(n)}function r(e,n){try{if(n===e)throw new TypeError("A promise cannot be resolved with itself.");if(n&&("object"==typeof n||"function"==typeof n)){var r=n.then;if(n instanceof t)return e._state=3,e._value=n,void i(e);if("function"==typeof r)return void u((a=r,s=n,function(){a.apply(s,arguments)}),e)}e._state=1,e._value=n,i(e)}catch(n){o(e,n)}var a,s}function o(e,t){e._state=2,e._value=t,i(e)}function i(e){2===e._state&&0===e._deferreds.length&&t._immediateFn(function(){e._handled||t._unhandledRejectionFn(e._value)});for(var r=0,o=e._deferreds.length;r<o;r++)n(e,e._deferreds[r]);e._deferreds=null}function a(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function u(e,t){var n=!1;try{e(function(e){n||(n=!0,r(t,e))},function(e){n||(n=!0,o(t,e))})}catch(e){if(n)return;n=!0,o(t,e)}}var s,c,l,f={exports:{}};s=f,c="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},l=setTimeout,t.prototype["catch"]=function(e){return this.then(null,e)},t.prototype.then=function(t,r){var o=new this.constructor(e);return n(this,new a(t,r,o)),o},t.all=function(e){var n=Array.prototype.slice.call(e);return new t(function(e,t){if(0===n.length)return e([]);for(var r=n.length,o=0;o<n.length;o++)!function i(o,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return u.call(a,function(e){i(o,e)},t),0}n[o]=a,0==--r&&e(n)}catch(a){t(a)}}(o,n[o])})},t.resolve=function(e){return e&&"object"==typeof e&&e.constructor===t?e:new t(function(t){t(e)})},t.reject=function(e){return new t(function(t,n){n(e)})},t.race=function(e){return new t(function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)})},t._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){l(e,0)},t._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},t._setImmediateFn=function(e){t._immediateFn=e},t._setUnhandledRejectionFn=function(e){t._unhandledRejectionFn=e},s.exports?s.exports=t:c.Promise||(c.Promise=t);var d=f.exports;return{boltExport:("undefined"!=typeof window?window:Function("return this;")()).Promise||d}};"object"==typeof lh&&void 0!==fh?fh.exports=t():(e="undefined"!=typeof globalThis?globalThis:e||self).EphoxContactWrapper=t()}();var dh=fh.exports.boltExport,mh=function(e){function t(e){o()?i(e):r.push(e)}var n=Kg.none(),r=[],o=function(){return n.isSome()},i=function(e){n.each(function(t){setTimeout(function(){e(t)},0)})};return e(function(e){o()||(n=Kg.some(e),E(r,i),r=[])}),{get:t,map:function(e){return mh(function(n){t(function(t){n(e(t))})})},isReady:o}},gh={nu:mh,pure:function(e){return mh(function(t){t(e)})}},ph=function(e){function t(t){e().then(t,xt)}return{map:function(t){return ph(function(){return e().then(t)})},bind:function(t){return ph(function(){return e().then(function(e){return t(e).toPromise()})})},anonBind:function(t){return ph(function(){return e().then(function(){return t.toPromise()})})},toLazy:function(){return gh.nu(t)},toCached:function(){var t=null;return ph(function(){return t=null===t?e():t})},toPromise:e,get:t}},hh=function(e){return{isValue:qg,isError:Vg,getOr:f(e),getOrThunk:f(e),getOrDie:f(e),or:function(){return hh(e)},orThunk:function(){return hh(e)},fold:function(t,n){return n(e)},map:function(t){return hh(t(e))},mapError:function(){return hh(e)},each:function(t){t(e)},bind:function(t){return t(e)},exists:function(t){return t(e)},forall:function(t){return t(e)},toOptional:function(){return Kg.some(e)}}},vh=function(e){return{isValue:Vg,isError:qg,getOr:d,getOrThunk:function(e){return e()},getOrDie:function(){return t=String(e),function(){throw new Error(t)}();var t},or:d,orThunk:function(e){return e()},fold:function(t){return t(e)},map:function(){return vh(e)},mapError:function(t){return vh(t(e))},each:s,bind:function(){return vh(e)},exists:Vg,forall:qg,toOptional:Kg.none}},bh={value:hh,error:vh,fromOption:function(e,t){return e.fold(function(){return vh(t)},hh)}};St([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var yh,Ch,xh,wh,Sh,Eh,kh,Nh,_h,Ah,Rh,Dh,Th,Oh,Bh,Ph,Lh,Ih,Mh,Fh=function(e,t){return T(e.dom.childNodes,function(e){return t(Lp.fromDom(e))}).map(Lp.fromDom)},Uh=window.Promise||dh,zh={requestAnimationFrame:function(e,t){yh?yh.then(e):yh=new Uh(function(e){!function(e,t){for(var n=window.requestAnimationFrame,r=["ms","moz","webkit"],o=0;o<r.length&&!n;o++)n=window[r[o]+"RequestAnimationFrame"];(n=n||function(e){window.setTimeout(e,0)})(e,t)}(e,t=t||document.body)}).then(e)},setTimeout:Tt,setInterval:Ot,setEditorTimeout:function(e,t,n){return Tt(function(){e.removed||t()},n)},setEditorInterval:function(e,t,n){var r=Ot(function(){e.removed?clearInterval(r):t()},n);return r},debounce:Bt,throttle:Bt,clearInterval:function(e){return clearInterval(e)},clearTimeout:function(e){return clearTimeout(e)}},Hh=(Ch=new WeakMap,{forElement:function(e,t){var n=Vp(e).dom;return Kg.from(Ch.get(n)).getOrThunk(function(){var e=Pt(n,t);return Ch.set(n,e),e})}}),jh=(Lt.prototype.current=function(){return this.node},Lt.prototype.next=function(e){return this.node=this.findSibling(this.node,"firstChild","nextSibling",e),this.node},Lt.prototype.prev=function(e){return this.node=this.findSibling(this.node,"lastChild","previousSibling",e),this.node},Lt.prototype.prev2=function(e){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",e),this.node},Lt.prototype.findSibling=function(e,t,n,r){var o,i;if(e){if(!r&&e[t])return e[t];if(e!==this.rootNode){if(o=e[n])return o;for(i=e.parentNode;i&&i!==this.rootNode;i=i.parentNode)if(o=i[n])return o}}},Lt.prototype.findPreviousNode=function(e,t,n,r){var o,i,a;if(e&&(o=e[n],!this.rootNode||o!==this.rootNode)){if(o){if(!r)for(a=o[t];a;a=a[t])if(!a[t])return a;return o}return(i=e.parentNode)&&i!==this.rootNode?i:void 0}},Lt),Vh=It(["h1","h2","h3","h4","h5","h6"]),qh=It(["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"]),$h=It(["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"]),Wh=It(["ul","ol","dl"]),Kh=It(["li","dd","dt"]),Xh=It(["thead","tbody","tfoot"]),Yh=It(["td","th"]),Gh=It(["pre","script","textarea","style"]),Jh="\ufeff",Qh="\xa0",Zh=Jh,ev=function(e){return e===Jh},tv=function(e){return e.replace(/\uFEFF/g,"")},nv=Gp,rv=Qp,ov=function(e){return rv(e)&&e.data[0]===Zh},iv=function(e){return rv(e)&&e.data[e.data.length-1]===Zh},av=oh,uv=ih,sv=nh,cv=Qp,lv=et(["script","style","textarea"]),fv=et(["img","input","textarea","hr","iframe","video","audio","object","embed"]),dv=et(["table"]),mv=Ht,gv=function(e){return!1===(Gp(t=e)&&"true"===t.getAttribute("unselectable"))&&uv(e);var t},pv=/^[ \t\r\n]*$/,hv=nt("data-mce-bookmark"),vv=nt("data-mce-bogus"),bv=function(e){return Gp(e)&&"all"===e.getAttribute("data-mce-bogus")},yv=function(e,t,n){var r=n||t;if(Gp(t)&&Zt(t))return t;for(var o,i,a,u,s,c,l,f,d,m,g,p=t.childNodes,h=p.length-1;0<=h;h--)yv(e,p[h],r);return!Gp(t)||1===(o=t.childNodes).length&&Zt(o[0])&&t.parentNode.insertBefore(o[0],t),th(a=t)||eh(a)||Gt(t,r)||Gp(i=t)&&0<i.childNodes.length||(s=r,Qp(u=t)&&0<u.data.length&&(f=new jh(c=u,l=s).prev(!1),d=new jh(c,l).next(!1),m=zg(f)||Qt(f,l),g=zg(d)||Qt(d,l),m&&g))||e.remove(t),t},Cv=Pp.makeMap,xv=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wv=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Sv=/[<>&\"\']/g,Ev=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,kv={128:"\u20ac",130:"\u201a",131:"\u0192",132:"\u201e",133:"\u2026",134:"\u2020",135:"\u2021",136:"\u02c6",137:"\u2030",138:"\u0160",139:"\u2039",140:"\u0152",142:"\u017d",145:"\u2018",146:"\u2019",147:"\u201c",148:"\u201d",149:"\u2022",150:"\u2013",151:"\u2014",152:"\u02dc",153:"\u2122",154:"\u0161",155:"\u203a",156:"\u0153",158:"\u017e",159:"\u0178"},Nv={'"':""","'":"'","<":"<",">":">","&":"&","`":"`"},_v={"<":"<",">":">","&":"&",""":'"',"'":"'"},Av=en("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),Rv={encodeRaw:tn,encodeAllRaw:function(e){return(""+e).replace(Sv,function(e){return Nv[e]||e})},encodeNumeric:nn,encodeNamed:rn,getEncodeFunc:function(e,t){var n=en(t)||Av,r=Cv(e.replace(/\+/g,","));return r.named&&r.numeric?function(e,t){return e.replace(t?xv:wv,function(e){return void 0!==Nv[e]?Nv[e]:void 0!==n[e]?n[e]:1<e.length?"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";":"&#"+e.charCodeAt(0)+";"})}:r.named?t?function(e,t){return rn(e,t,n)}:rn:r.numeric?nn:tn},decode:function(e){return e.replace(Ev,function(e,t){return t?65535<(t="x"===t.charAt(0).toLowerCase()?parseInt(t.substr(1),16):parseInt(t,10))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):kv[t]||String.fromCharCode(t):_v[e]||Av[e]||(n=e,(r=Lp.fromTag("div").dom).innerHTML=n,r.textContent||r.innerText||n);var n,r})}},Dv={},Tv={},Ov=Pp.makeMap,Bv=Pp.each,Pv=Pp.extend,Lv=Pp.explode,Iv=Pp.inArray,Mv={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Fv=/^(?:mouse|contextmenu)|click/,Uv=(vn.prototype.bind=function(e,t,n,r){function o(e){f.executeHandlers(hn(e||d.event),i)}var i,a,u,s,c,l,f=this,d=window;if(e&&3!==e.nodeType&&8!==e.nodeType){e[f.expando]?i=e[f.expando]:(i=f.count++,e[f.expando]=i,f.events[i]={}),r=r||e;for(var m=t.split(" "),g=m.length;g--;)c=o,s=l=!1,"DOMContentLoaded"===(u=m[g])&&(u="ready"),f.domLoaded&&"ready"===u&&"complete"===e.readyState?n.call(r,hn({type:u})):(f.hasMouseEnterLeave||(s=f.mouseEnterLeave[u])&&(c=function(e){var t=e.currentTarget,n=e.relatedTarget;if(n&&t.contains)n=t.contains(n);else for(;n&&n!==t;)n=n.parentNode;n||((e=hn(e||d.event)).type="mouseout"===e.type?"mouseleave":"mouseenter",e.target=t,f.executeHandlers(e,i))}),f.hasFocusIn||"focusin"!==u&&"focusout"!==u||(l=!0,s="focusin"===u?"focus":"blur",c=function(e){(e=hn(e||d.event)).type="focus"===e.type?"focusin":"focusout",f.executeHandlers(e,i)}),(a=f.events[i][u])?"ready"===u&&f.domLoaded?n(hn({type:u})):a.push({func:n,scope:r}):(f.events[i][u]=a=[{func:n,scope:r}],a.fakeName=s,a.capture=l,a.nativeHandler=c,"ready"===u?function(e,t,n){var r,o=e.document,i={type:"ready"};n.domLoaded?t(i):(r=function(){pn(e,"DOMContentLoaded",r),pn(e,"load",r),n.domLoaded||(n.domLoaded=!0,t(i)),e=null},"complete"===o.readyState||"interactive"===o.readyState&&o.body?r():gn(e,"DOMContentLoaded",r),n.domLoaded||gn(e,"load",r))}(e,c,f):gn(e,s||u,c,l)));return e=a=null,n}},vn.prototype.unbind=function(e,t,n){var r,o,i;if(!e||3===e.nodeType||8===e.nodeType)return this;var a=e[this.expando];if(a){if(i=this.events[a],t){for(var u,s,c,l,f=t.split(" "),d=f.length;d--;)if(l=i[o=f[d]]){if(n)for(r=l.length;r--;)l[r].func===n&&(u=l.nativeHandler,s=l.fakeName,c=l.capture,(l=l.slice(0,r).concat(l.slice(r+1))).nativeHandler=u,l.fakeName=s,l.capture=c,i[o]=l);n&&0!==l.length||(delete i[o],pn(e,l.fakeName||o,l.nativeHandler,l.capture))}}else j(i,function(t,n){pn(e,t.fakeName||n,t.nativeHandler,t.capture)}),i={};for(o in i)if(tp(i,o))return this;delete this.events[a];try{delete e[this.expando]}catch(t){e[this.expando]=null}}return this},vn.prototype.fire=function(e,t,n){var r;if(!e||3===e.nodeType||8===e.nodeType)return this;for(var o=hn({type:t,target:e},n);(r=e[this.expando])&&this.executeHandlers(o,r),(e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow)&&!o.isPropagationStopped(););return this},vn.prototype.clean=function(e){var t,n;if(!e||3===e.nodeType||8===e.nodeType)return this;if(e[this.expando]&&this.unbind(e),(e=e.getElementsByTagName?e:e.document)&&e.getElementsByTagName)for(this.unbind(e),t=(n=e.getElementsByTagName("*")).length;t--;)(e=n[t])[this.expando]&&this.unbind(e);return this},vn.prototype.destroy=function(){this.events={}},vn.prototype.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1},vn.prototype.executeHandlers=function(e,t){var n=this.events[t],r=n&&n[e.type];if(r)for(var o=0,i=r.length;o<i;o++){var a=r[o];if(a&&!1===a.func.call(a.scope,e)&&e.preventDefault(),e.isImmediatePropagationStopped())return}},vn.Event=new vn,vn),zv="sizzle"+-new Date,Hv=window.document,jv=0,Vv=0,qv=yn(),$v=yn(),Wv=yn(),Kv=function(e,t){return e===t&&(Dh=!0),0},Xv="undefined",Yv={}.hasOwnProperty,Gv=[],Jv=Gv.pop,Qv=Gv.push,Zv=Gv.push,eb=Gv.slice,tb=Gv.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(this[t]===e)return t;return-1},nb="[\\x20\\t\\r\\n\\f]",rb="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ob="\\["+nb+"*("+rb+")(?:"+nb+"*([*^$|!~]?=)"+nb+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rb+"))|)"+nb+"*\\]",ib=":("+rb+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ob+")*)|.*)\\)|)",ab=new RegExp("^"+nb+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nb+"+$","g"),ub=new RegExp("^"+nb+"*,"+nb+"*"),sb=new RegExp("^"+nb+"*([>+~]|"+nb+")"+nb+"*"),cb=new RegExp("="+nb+"*([^\\]'\"]*?)"+nb+"*\\]","g"),lb=new RegExp(ib),fb=new RegExp("^"+rb+"$"),db={ID:new RegExp("^#("+rb+")"),CLASS:new RegExp("^\\.("+rb+")"),TAG:new RegExp("^("+rb+"|[*])"),ATTR:new RegExp("^"+ob),PSEUDO:new RegExp("^"+ib),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nb+"*(even|odd|(([+-]|)(\\d*)n|)"+nb+"*(?:([+-]|)"+nb+"*(\\d+)|))"+nb+"*\\)|)","i"),bool:new RegExp("^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$","i"),needsContext:new RegExp("^"+nb+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nb+"*((?:-\\d)?\\d*)"+nb+"*\\)|)(?=[^-]|$)","i")},mb=/^(?:input|select|textarea|button)$/i,gb=/^h\d$/i,pb=/^[^{]+\{\s*\[native \w/,hb=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,vb=/[+~]/,bb=/'|\\/g,yb=new RegExp("\\\\([\\da-f]{1,6}"+nb+"?|("+nb+")|.)","ig");try{Zv.apply(Gv=eb.call(Hv.childNodes),Hv.childNodes),Gv[Hv.childNodes.length].nodeType}catch(r){Zv={apply:Gv.length?function(e,t){Qv.apply(e,eb.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}var Cb=function(e,t,n,r){var o,i,a,u,s,c,l,f,d,m;if((t?t.ownerDocument||t:Hv)!==Oh&&Th(t),n=n||[],!e||"string"!=typeof e)return n;if(1!==(u=(t=t||Oh).nodeType)&&9!==u)return[];if(Ph&&!r){if(o=hb.exec(e))if(a=o[1]){if(9===u){if(!(i=t.getElementById(a))||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&Mh(t,i)&&i.id===a)return n.push(i),n}else{if(o[2])return Zv.apply(n,t.getElementsByTagName(e)),n;if((a=o[3])&&xh.getElementsByClassName)return Zv.apply(n,t.getElementsByClassName(a)),n}if(xh.qsa&&(!Lh||!Lh.test(e))){if(f=l=zv,d=t,m=9===u&&e,1===u&&"object"!==t.nodeName.toLowerCase()){for(c=kh(e),(l=t.getAttribute("id"))?f=l.replace(bb,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",s=c.length;s--;)c[s]=f+kn(c[s]);d=vb.test(e)&&Sn(t.parentNode)||t,m=c.join(",")}if(m)try{return Zv.apply(n,d.querySelectorAll(m)),n}catch(e){}finally{l||t.removeAttribute("id")}}}return _h(e.replace(ab,"$1"),t,n,r)};xh=Cb.support={},Eh=Cb.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},Th=Cb.setDocument=function(e){var t,n=e?e.ownerDocument||e:Hv,r=n.defaultView;return n!==Oh&&9===n.nodeType&&n.documentElement?(Bh=(Oh=n).documentElement,Ph=!Eh(n),r&&r!==function(e){try{return e.top}catch(e){}return null}(r)&&(r.addEventListener?r.addEventListener("unload",function(){Th()},!1):r.attachEvent&&r.attachEvent("onunload",function(){Th()})),xh.attributes=!0,xh.getElementsByTagName=!0,xh.getElementsByClassName=pb.test(n.getElementsByClassName),xh.getById=!0,wh.find.ID=function(e,t){if(typeof t.getElementById!=Xv&&Ph){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},wh.filter.ID=function(e){var t=e.replace(yb,bn);return function(e){return e.getAttribute("id")===t}},wh.find.TAG=xh.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!=Xv)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);if("*"!==e)return i;for(;n=i[o++];)1===n.nodeType&&r.push(n);return r},wh.find.CLASS=xh.getElementsByClassName&&function(e,t){if(Ph)return t.getElementsByClassName(e)},Ih=[],Lh=[],xh.disconnectedMatch=!0,Lh=Lh.length&&new RegExp(Lh.join("|")),Ih=Ih.length&&new RegExp(Ih.join("|")),t=pb.test(Bh.compareDocumentPosition),Mh=t||pb.test(Bh.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Kv=t?function(e,t){return e===t?(Dh=!0,0):(r=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!xh.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===Hv&&Mh(Hv,e)?-1:t===n||t.ownerDocument===Hv&&Mh(Hv,t)?1:Rh?tb.call(Rh,e)-tb.call(Rh,t):0:4&r?-1:1);var r}:function(e,t){if(e===t)return Dh=!0,0;var r,o=0,i=e.parentNode,a=t.parentNode,u=[e],s=[t];if(!i||!a)return e===n?-1:t===n?1:i?-1:a?1:Rh?tb.call(Rh,e)-tb.call(Rh,t):0;if(i===a)return xn(e,t);for(r=e;r=r.parentNode;)u.unshift(r);for(r=t;r=r.parentNode;)s.unshift(r);for(;u[o]===s[o];)o++;return o?xn(u[o],s[o]):u[o]===Hv?-1:s[o]===Hv?1:0},n):Oh},Cb.matches=function(e,t){return Cb(e,null,null,t)},Cb.matchesSelector=function(e,t){if((e.ownerDocument||e)!==Oh&&Th(e),t=t.replace(cb,"='$1']"),xh.matchesSelector&&Ph&&(!Ih||!Ih.test(t))&&(!Lh||!Lh.test(t)))try{var n=(void 0).call(e,t);if(n||xh.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<Cb(t,Oh,null,[e]).length},Cb.contains=function(e,t){return(e.ownerDocument||e)!==Oh&&Th(e),Mh(e,t)},Cb.attr=function(e,t){(e.ownerDocument||e)!==Oh&&Th(e);var n=wh.attrHandle[t.toLowerCase()],r=n&&Yv.call(wh.attrHandle,t.toLowerCase())?n(e,t,!Ph):void 0;return void 0!==r?r:xh.attributes||!Ph?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},Cb.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Cb.uniqueSort=function(e){var t,n=[],r=0,o=0;if(Dh=!xh.detectDuplicates,Rh=!xh.sortStable&&e.slice(0),e.sort(Kv),Dh){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)e.splice(n[r],1)}return Rh=null,e
|
31
|
+
},Sh=Cb.getText=function(e){var t,n="",r=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+=Sh(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=Sh(t);return n},(wh=Cb.selectors={cacheLength:50,createPseudo:Cn,match:db,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(yb,bn),e[3]=(e[3]||e[4]||e[5]||"").replace(yb,bn),"~="===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]||Cb.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]&&Cb.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return db.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&lb.test(n)&&(t=kh(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(yb,bn).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=qv[e+" "];return t||(t=new RegExp("(^|"+nb+")"+e+"("+nb+"|$)"))&&qv(e,function(e){return t.test("string"==typeof e.className&&e.className||typeof e.getAttribute!=Xv&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var o=Cb.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&-1<o.indexOf(n):"$="===t?n&&o.slice(-n.length)===n:"~="===t?-1<(" "+o+" ").indexOf(n):"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),u="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,s){var c,l,f,d,m,g,p=i!=a?"nextSibling":"previousSibling",h=t.parentNode,v=u&&t.nodeName.toLowerCase(),b=!s&&!u;if(h){if(i){for(;p;){for(f=t;f=f[p];)if(u?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;g=p="only"===e&&!g&&"nextSibling"}return!0}if(g=[a?h.firstChild:h.lastChild],a&&b){for(m=(c=(l=h[zv]||(h[zv]={}))[e]||[])[0]===jv&&c[1],d=c[0]===jv&&c[2],f=m&&h.childNodes[m];f=++m&&f&&f[p]||(d=m=0)||g.pop();)if(1===f.nodeType&&++d&&f===t){l[e]=[jv,m,d];break}}else if(b&&(c=(t[zv]||(t[zv]={}))[e])&&c[0]===jv)d=c[1];else for(;(f=++m&&f&&f[p]||(d=m=0)||g.pop())&&((u?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++d||(b&&((f[zv]||(f[zv]={}))[e]=[jv,d]),f!==t)););return(d-=o)===r||d%r==0&&0<=d/r}}},PSEUDO:function(e,t){var n,r=wh.pseudos[e]||wh.setFilters[e.toLowerCase()]||Cb.error("unsupported pseudo: "+e);return r[zv]?r(t):1<r.length?(n=[e,e,"",t],wh.setFilters.hasOwnProperty(e.toLowerCase())?Cn(function(e,n){for(var o,i=r(e,t),a=i.length;a--;)e[o=tb.call(e,i[a])]=!(n[o]=i[a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:Cn(function(e){var t=[],n=[],r=Nh(e.replace(ab,"$1"));return r[zv]?Cn(function(e,t,n,o){for(var i,a=r(e,null,o,[]),u=e.length;u--;)(i=a[u])&&(e[u]=!(t[u]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:Cn(function(e){return function(t){return 0<Cb(e,t).length}}),contains:Cn(function(e){return e=e.replace(yb,bn),function(t){return-1<(t.textContent||t.innerText||Sh(t)).indexOf(e)}}),lang:Cn(function(e){return fb.test(e||"")||Cb.error("unsupported lang: "+e),e=e.replace(yb,bn).toLowerCase(),function(t){var n;do{if(n=Ph?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(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Bh},focus:function(e){return e===Oh.activeElement&&(!Oh.hasFocus||Oh.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!wh.pseudos.empty(e)},header:function(e){return gb.test(e.nodeName)},input:function(e){return mb.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:wn(function(){return[0]}),last:wn(function(e,t){return[t-1]}),eq:wn(function(e,t,n){return[n<0?n+t:n]}),even:wn(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:wn(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:wn(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:wn(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=wh.pseudos.eq,E(["radio","checkbox","file","password","image"],function(e){var t;wh.pseudos[e]=(t=e,function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t})}),E(["submit","reset"],function(e){var t;wh.pseudos[e]=(t=e,function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t})}),En.prototype=wh.filters=wh.pseudos,wh.setFilters=new En,kh=Cb.tokenize=function(e,t){var n,r,o,i,a,u,s,c=$v[e+" "];if(c)return t?0:c.slice(0);for(a=e,u=[],s=wh.preFilter;a;){for(i in n&&!(r=ub.exec(a))||(r&&(a=a.slice(r[0].length)||a),u.push(o=[])),n=!1,(r=sb.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(ab," ")}),a=a.slice(n.length)),wh.filter)wh.filter.hasOwnProperty(i)&&(!(r=db[i].exec(a))||s[i]&&!(r=s[i](r))||(n=r.shift(),o.push({value:n,type:i,matches:r}),a=a.slice(n.length)));if(!n)break}return t?a.length:a?Cb.error(e):$v(e,u).slice(0)},Nh=Cb.compile=function(e,t){function n(e,t,n,r,s){var c,l,f,d=0,m="0",g=e&&[],p=[],h=Ah,v=e||u&&wh.find.TAG("*",s),b=jv+=null==h?1:Math.random()||.1,y=v.length;for(s&&(Ah=t!==Oh&&t);m!==y&&null!=(c=v[m]);m++){if(u&&c){for(l=0;f=o[l++];)if(f(c,t,n)){r.push(c);break}s&&(jv=b)}a&&((c=!f&&c)&&d--,e&&g.push(c))}if(d+=m,a&&m!==d){for(l=0;f=i[l++];)f(g,p,t,n);if(e){if(0<d)for(;m--;)g[m]||p[m]||(p[m]=Jv.call(r));p=An(p)}Zv.apply(r,p),s&&!e&&0<p.length&&1<d+i.length&&Cb.uniqueSort(r)}return s&&(jv=b,Ah=h),g}var r,o,i,a,u,s=[],c=[],l=Wv[e+" "];if(!l){for(r=(t=t||kh(e)).length;r--;)((l=function n(e){for(var t,r,o,i=e.length,a=wh.relative[e[0].type],u=a||wh.relative[" "],s=a?1:0,c=Nn(function(e){return e===t},u,!0),l=Nn(function(e){return-1<tb.call(t,e)},u,!0),f=[function(e,n,r){var o=!a&&(r||n!==Ah)||((t=n).nodeType?c:l)(e,n,r);return t=null,o}];s<i;s++)if(r=wh.relative[e[s].type])f=[Nn(_n(f),r)];else{if((r=wh.filter[e[s].type].apply(null,e[s].matches))[zv]){for(o=++s;o<i&&!wh.relative[e[o].type];o++);return function t(e,n,r,o,i,a){return o&&!o[zv]&&(o=t(o)),i&&!i[zv]&&(i=t(i,a)),Cn(function(t,a,u,s){var c,l,f,d=[],m=[],g=a.length,p=t||function(e,t,n){for(var r=0,o=t.length;r<o;r++)Cb(e,t[r],n);return n}(n||"*",u.nodeType?[u]:u,[]),h=!e||!t&&n?p:An(p,d,e,u,s),v=r?i||(t?e:g||o)?[]:a:h;if(r&&r(h,v,u,s),o)for(c=An(v,m),o(c,[],u,s),l=c.length;l--;)(f=c[l])&&(v[m[l]]=!(h[m[l]]=f));if(t){if(i||e){if(i){for(c=[],l=v.length;l--;)(f=v[l])&&c.push(h[l]=f);i(null,v=[],c,s)}for(l=v.length;l--;)(f=v[l])&&-1<(c=i?tb.call(t,f):d[l])&&(t[c]=!(a[c]=f))}}else v=An(v===a?v.splice(g,v.length):v),i?i(null,a,v,s):Zv.apply(a,v)})}(1<s&&_n(f),1<s&&kn(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ab,"$1"),r,s<o&&n(e.slice(s,o)),o<i&&n(e=e.slice(o)),o<i&&kn(e))}f.push(r)}return _n(f)}(t[r]))[zv]?s:c).push(l);(l=Wv(e,(o=c,a=0<(i=s).length,u=0<o.length,a?Cn(n):n))).selector=e}return l},_h=Cb.select=function(e,t,n,r){var o,i,a,u,s,c="function"==typeof e&&e,l=!r&&kh(e=c.selector||e);if(n=n||[],1===l.length){if(2<(i=l[0]=l[0].slice(0)).length&&"ID"===(a=i[0]).type&&xh.getById&&9===t.nodeType&&Ph&&wh.relative[i[1].type]){if(!(t=(wh.find.ID(a.matches[0].replace(yb,bn),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(o=db.needsContext.test(e)?0:i.length;o--&&(a=i[o],!wh.relative[u=a.type]);)if((s=wh.find[u])&&(r=s(a.matches[0].replace(yb,bn),vb.test(i[0].type)&&Sn(t.parentNode)||t))){if(i.splice(o,1),!(e=r.length&&kn(i)))return Zv.apply(n,r),n;break}}return(c||Nh(e,l))(r,t,!Ph,n,vb.test(e)&&Sn(t.parentNode)||t),n},xh.sortStable=zv.split("").sort(Kv).join("")===zv,xh.detectDuplicates=!!Dh,Th(),xh.sortDetached=!0;var xb=document,wb=Array.prototype.push,Sb=Array.prototype.slice,Eb=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,kb=Uv.Event,Nb=Pp.makeMap("children,contents,next,prev"),_b=function(e,t,n,r){var o;if(Dn(t))t=Tn(t,Lb(e[0]));else if(t.length&&!t.nodeType){if(t=Ib.makeArray(t),r)for(o=t.length-1;0<=o;o--)_b(e,t[o],n,r);else for(o=0;o<t.length;o++)_b(e,t[o],n,r);return e}if(t.nodeType)for(o=e.length;o--;)n.call(e[o],t);return e},Ab=Pp.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),Rb=Pp.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),Db={"for":"htmlFor","class":"className",readonly:"readOnly"},Tb={float:"cssFloat"},Ob={},Bb={},Pb=/^\s*|\s*$/g,Lb=function(e){return e?9===e.nodeType?e:e.ownerDocument:xb};Pn.fn=Pn.prototype={constructor:Pn,selector:"",context:null,length:0,init:function(e,t){var n,r,o=this;if(!e)return o;if(e.nodeType)return o.context=o[0]=e,o.length=1,o;if(t&&t.nodeType)o.context=t;else{if(t)return Ib(e).attr(t);o.context=t=document}if(Dn(e)){if(!(n="<"===(o.selector=e).charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Eb.exec(e)))return Ib(t).find(e);if(n[1])for(r=Tn(e,Lb(t)).firstChild;r;)wb.call(o,r),r=r.nextSibling;else{if(!(r=Lb(t).getElementById(n[2])))return o;if(r.id!==n[2])return o.find(e);o.length=1,o[0]=r}}else this.add(e,!1);return o},toArray:function(){return Pp.toArray(this)},add:function(e,t){var n,r;if(Dn(e))return this.add(Ib(e));if(!1!==t)for(n=Ib.unique(this.toArray().concat(Ib.makeArray(e))),this.length=n.length,r=0;r<n.length;r++)this[r]=n[r];else wb.apply(this,Ib.makeArray(e));return this},attr:function(e,t){var n,r=this;if("object"==typeof e)In(e,function(e,t){r.attr(e,t)});else{if(!Rn(t)){if(r[0]&&1===r[0].nodeType){if((n=Ob[e])&&n.get)return n.get(r[0],e);if(Rb[e])return r.prop(e)?e:void 0;null===(t=r[0].getAttribute(e,2))&&(t=void 0)}return t}this.each(function(){var n;1===this.nodeType&&((n=Ob[e])&&n.set?n.set(this,t):null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2))})}return r},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if("object"==typeof(e=Db[e]||e))In(e,function(e,t){n.prop(e,t)});else{if(!Rn(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each(function(){1===this.nodeType&&(this[e]=t)})}return n},css:function(e,t){function n(e){return e.replace(/-(\D)/g,function(e,t){return t.toUpperCase()})}function r(e){return e.replace(/[A-Z]/g,function(e){return"-"+e})}var o,i,a=this;if("object"==typeof e)In(e,function(e,t){a.css(e,t)});else if(Rn(t))e=n(e),"number"!=typeof t||Ab[e]||(t=t.toString()+"px"),a.each(function(){var n=this.style;if((i=Bb[e])&&i.set)i.set(this,t);else{try{this.style[Tb[e]||e]=t}catch(n){}null!==t&&""!==t||(n.removeProperty?n.removeProperty(r(e)):n.removeAttribute(e))}});else{if(o=a[0],(i=Bb[e])&&i.get)return i.get(o);if(!o.ownerDocument.defaultView)return o.currentStyle?o.currentStyle[n(e)]:"";try{return o.ownerDocument.defaultView.getComputedStyle(o,null).getPropertyValue(r(e))}catch(n){return}}return a},remove:function(){for(var e,t=this.length;t--;)e=this[t],kb.clean(e),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var e,t=this.length;t--;)for(e=this[t];e.firstChild;)e.removeChild(e.firstChild);return this},html:function(e){var t;if(Rn(e)){t=this.length;try{for(;t--;)this[t].innerHTML=e}catch(r){Ib(this[t]).empty().append(e)}return this}return this[0]?this[0].innerHTML:""},text:function(e){var t;if(Rn(e)){for(t=this.length;t--;)"innerText"in this[t]?this[t].innerText=e:this[0].textContent=e;return this}return this[0]?this[0].innerText||this[0].textContent:""},append:function(){return _b(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.appendChild(e)})},prepend:function(){return _b(this,arguments,function(e){(1===this.nodeType||this.host&&1===this.host.nodeType)&&this.insertBefore(e,this.firstChild)},!0)},before:function(){return this[0]&&this[0].parentNode?_b(this,arguments,function(e){this.parentNode.insertBefore(e,this)}):this},after:function(){return this[0]&&this[0].parentNode?_b(this,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):this},appendTo:function(e){return Ib(e).append(this),this},prependTo:function(e){return Ib(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return Bn(this,e)},wrapAll:function(e){return Bn(this,e,!0)},wrapInner:function(e){return this.each(function(){Ib(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){Ib(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),Ib(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return"string"!=typeof e||(-1!==e.indexOf(" ")?In(e.split(" "),function(){n.toggleClass(this,t)}):n.each(function(n,r){var o,i=On(r,e);i!==t&&(o=r.className,i?r.className=Ln((" "+o+" ").replace(" "+e+" "," ")):r.className+=o?" "+e:e)})),n},hasClass:function(e){return On(this[0],e)},each:function(e){return In(this,e)},on:function(e,t){return this.each(function(){kb.bind(this,e,t)})},off:function(e,t){return this.each(function(){kb.unbind(this,e,t)})},trigger:function(e){return this.each(function(){"object"==typeof e?kb.fire(this,e.type,e):kb.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return Ib(Sb.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){for(var t=[],n=0,r=this.length;n<r;n++)Ib.find(e,this[n],t);return Ib(t)},filter:function(e){return Ib("function"==typeof e?Mn(this.toArray(),function(t,n){return e(n,t)}):Ib.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof Ib&&(e=e[0]),this.each(function(n,r){for(;r;){if("string"==typeof e&&Ib(r).is(e)){t.push(r);break}if(r===e){t.push(r);break}r=r.parentNode}}),Ib(t)},offset:function(e){var t,n,r,o,i=0,a=0;return e?this.css(e):((t=this[0])&&(r=(n=t.ownerDocument).documentElement,t.getBoundingClientRect&&(i=(o=t.getBoundingClientRect()).left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,a=o.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:a})},push:wb,sort:Array.prototype.sort,splice:Array.prototype.splice},Pp.extend(Pn,{extend:Pp.extend,makeArray:function(e){return e&&e===e.window||e.nodeType?[e]:Pp.toArray(e)},inArray:function(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1},isArray:Pp.isArray,each:In,trim:Ln,grep:Mn,find:Cb,expr:Cb.selectors,unique:Cb.uniqueSort,text:Cb.getText,contains:Cb.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=":not("+e+")");r--;)1!==t[r].nodeType&&t.splice(r,1);return 1===t.length?Ib.find.matchesSelector(t[0],e)?[t[0]]:[]:Ib.find.matches(e,t)}}),In({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Fn(e,"parentNode")},next:function(e){return zn(e,"nextSibling",1)},prev:function(e){return zn(e,"previousSibling",1)},children:function(e){return Un(e.firstChild,"nextSibling",1)},contents:function(e){return Pp.toArray(("iframe"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,t){Pn.fn[e]=function(n){var r=[];this.each(function(){var e=t.call(r,this,n,r);e&&(Ib.isArray(e)?r.push.apply(r,e):r.push(e))}),1<this.length&&(Nb[e]||(r=Ib.unique(r)),0===e.indexOf("parents")&&(r=r.reverse()));var o=Ib(r);return n?o.filter(n):o}}),In({parentsUntil:function(e,t){return Fn(e,"parentNode",t)},nextUntil:function(e,t){return Un(e,"nextSibling",1,t).slice(1)},prevUntil:function(e,t){return Un(e,"previousSibling",1,t).slice(1)}},function(e,t){Pn.fn[e]=function(n,r){var o=[];this.each(function(){var e=t.call(o,this,n,o);e&&(Ib.isArray(e)?o.push.apply(o,e):o.push(e))}),1<this.length&&(o=Ib.unique(o),0!==e.indexOf("parents")&&"prevUntil"!==e||(o=o.reverse()));var i=Ib(o);return r?i.filter(r):i}}),Pn.fn.is=function(e){return!!e&&0<this.filter(e).length},Pn.fn.init.prototype=Pn.fn,Pn.overrideDefaults=function(e){var t,n=function(r,o){return t=t||e(),0===arguments.length&&(r=t.element),o=o||t.context,new n.fn.init(r,o)};return Ib.extend(n,this),n},Pn.attrHooks=Ob,Pn.cssHooks=Bb;var Ib=Pn,Mb=Pp.each,Fb=Pp.grep,Ub=Tp.ie,zb=/^([a-z0-9],?)+$/i,Hb=function(e,t){function n(t){return t&&e&&Lg(t)?e.getElementById(t):t}function r(e){return W("string"==typeof e?n(e):e)}function o(e,t,n){var o,i,a=r(e);return void 0===(i=a.length?(o=Q[t])&&o.get?o.get(a,t):a.attr(t):i)?n||"":i}function i(e){var t=n(e);return t?t.attributes:[]}function u(e,n,o){""===o&&(o=null);var i,a=r(e),u=a.attr(n);a.length&&((i=Q[n])&&i.set?i.set(a,o,n):a.attr(n,o),u!==o&&t.onSetAttrib&&t.onSetAttrib({attrElm:a,attrName:n,attrValue:o}))}function c(){return t.root_element||e.body}function l(t,r){return function(e,t,n){var r,o=0,i=0,a=e.ownerDocument;if(n=n||e,t){if(n===e&&t.getBoundingClientRect&&"static"===ht(Lp.fromDom(e),"position")){var u=t.getBoundingClientRect();return{x:o=u.left+(a.documentElement.scrollLeft||e.scrollLeft)-a.documentElement.clientLeft,y:i=u.top+(a.documentElement.scrollTop||e.scrollTop)-a.documentElement.clientTop}}for(var s=t;s&&s!==n&&s.nodeType&&!Ct(s,n);){var c=s;o+=c.offsetLeft||0,i+=c.offsetTop||0,s=c.offsetParent}for(s=t.parentNode;s&&s!==n&&s.nodeType&&!Ct(s,n);)o-=s.scrollLeft||0,i-=s.scrollTop||0,s=s.parentNode;i+=(r=Lp.fromDom(t),ch.isFirefox()&&"table"===we(r)?yt(zp(r)).filter(function(e){return"caption"===we(e)}).bind(function(e){return yt(Oe(e)).map(function(t){var n=t.dom.offsetTop,r=e.dom.offsetTop,o=e.dom.offsetHeight;return n<=r?-o:0})}).getOr(0):0)}return{x:o,y:i}}(e.body,n(t),r)}function d(e,t,n){var o=r(e);return n?o.css(t):("float"===(t=t.replace(/-(\D)/g,function(e,t){return t.toUpperCase()}))&&(t=Tp.browser.isIE()?"styleFloat":"cssFloat"),o[0]&&o[0].style?o[0].style[t]:void 0)}function m(e){var t=d(e=n(e),"width"),r=d(e,"height");return-1===t.indexOf("px")&&(t=0),-1===r.indexOf("px")&&(r=0),{w:parseInt(t,10)||e.offsetWidth||e.clientWidth,h:parseInt(r,10)||e.offsetHeight||e.clientHeight}}function g(e,t){if(!e)return!1;if(!Array.isArray(e)){if("*"===t)return 1===e.nodeType;if(zb.test(t)){for(var n=t.toLowerCase().split(/,/),r=e.nodeName.toLowerCase(),o=n.length-1;0<=o;o--)if(n[o]===r)return!0;return!1}if(e.nodeType&&1!==e.nodeType)return!1}var i=Array.isArray(e)?e:[e];return 0<Cb(t,i[0].ownerDocument||i[0],null,i).length}function p(e,t,r,o){var i,u=[],s=n(e);for(o=void 0===o,r=r||("BODY"!==c().nodeName?c().parentNode:null),Pp.is(t,"string")&&(t="*"===(i=t)?function(e){return 1===e.nodeType}:function(e){return g(e,i)});s&&!(s===r||a(s.nodeType)||eh(s)||th(s));){if(!t||"function"==typeof t&&t(s)){if(!o)return[s];u.push(s)}s=s.parentNode}return o?u:null}function h(e,t,n){var r=t;if(e)for("string"==typeof t&&(r=function(e){return g(e,t)}),e=e[n];e;e=e[n])if("function"==typeof r&&r(e))return e;return null}function v(e,t,r){var o,i="string"==typeof e?n(e):e;return!!i&&(Pp.isArray(i)&&(i.length||0===i.length)?(o=[],Mb(i,function(e,i){e&&o.push(t.call(r,"string"==typeof e?n(e):e,i))}),o):t.call(r||this,i))}function b(e,t){r(e).each(function(e,n){Mb(t,function(e,t){u(n,t,e)})})}function y(e,t){var n=r(e);Ub?n.each(function(e,n){if(!1!==n.canHaveHTML){for(;n.firstChild;)n.removeChild(n.firstChild);try{n.innerHTML="<br>"+t,n.removeChild(n.firstChild)}catch(e){Ib("<div></div>").html("<br>"+t).contents().slice(1).appendTo(n)}return t}}):n.html(t)}function C(t,n,r,o,i){return v(t,function(t){var a="string"==typeof n?e.createElement(n):n;return b(a,r),o&&("string"!=typeof o&&o.nodeType?a.appendChild(o):"string"==typeof o&&y(a,o)),i?a:t.appendChild(a)})}function x(t,n,r){return C(e.createElement(t),t,n,r,!0)}function w(e,t){var n=r(e);return(t?n.each(function(){for(var e;e=this.firstChild;)3===e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)}):n).remove(),1<n.length?n.toArray():n[0]}function S(e,t,n){r(e).toggleClass(t,n).each(function(){""===this.className&&Ib(this).attr("class",null)})}function k(e,t,n){return v(t,function(t){return Pp.is(t,"array")&&(e=e.cloneNode(!0)),n&&Mb(Fb(t.childNodes),function(t){e.appendChild(t)}),t.parentNode.replaceChild(e,t)})}function N(e){if(Gp(e)){var t="a"===e.nodeName.toLowerCase()&&!o(e,"href")&&o(e,"id");return o(e,"name")||o(e,"data-mce-bookmark")||t?1:void 0}}function _(){return e.createRange()}function A(e){if(e&&Gp(e)){var t=e.getAttribute("data-mce-contenteditable");return t&&"inherit"!==t?t:"inherit"!==e.contentEditable?e.contentEditable:null}return null}void 0===t&&(t={});var R,D,T,O,B,P,L={},I=window,M={},F=0,U=Hh.forElement(Lp.fromDom(e),{contentCssCors:t.contentCssCors,referrerPolicy:t.referrerPolicy}),z=[],H=t.schema||cn({}),V=fn({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),q=t.ownEvents?new Uv:Uv.Event,$=H.getBlockElements(),W=Ib.overrideDefaults(function(){return{context:e,element:J.getRoot()}}),K=Rv.encodeAllRaw,Y=function(n,r,o,i){if(Pp.isArray(n)){for(var a=n.length,u=[];a--;)u[a]=Y(n[a],r,o,i);return u}return!t.collect||n!==e&&n!==I||z.push([n,r,o,i]),q.bind(n,r,o,i||J)},G=function(t,n,r){if(Pp.isArray(t)){for(var o=t.length,i=[];o--;)i[o]=G(t[o],n,r);return i}if(0<z.length&&(t===e||t===I))for(o=z.length;o--;){var a=z[o];t!==a[0]||n&&n!==a[1]||r&&r!==a[2]||q.unbind(a[0],a[1],a[2])}return q.unbind(t,n,r)},J={doc:e,settings:t,win:I,files:M,stdMode:!0,boxModel:!0,styleSheetLoader:U,boundEvents:z,styles:V,schema:H,events:q,isBlock:function(e){if("string"==typeof e)return!!$[e];if(e){var t=e.nodeType;if(t)return!(1!==t||!$[e.nodeName])}return!1},$:W,$$:r,root:null,clone:function(t,n){if(!Ub||1!==t.nodeType||n)return t.cloneNode(n);var r=e.createElement(t.nodeName);return Mb(i(t),function(e){u(r,e.nodeName,o(t,e.nodeName))}),r},getRoot:c,getViewPort:function(e){var t=Je(e);return{x:t.x,y:t.y,w:t.width,h:t.height}},getRect:function(e){var t=l(e=n(e)),r=m(e);return{x:t.x,y:t.y,w:r.w,h:r.h}},getSize:m,getParent:function(e,t,n){var r=p(e,t,n,!1);return r&&0<r.length?r[0]:null},getParents:p,get:n,getNext:function(e,t){return h(e,t,"nextSibling")},getPrev:function(e,t){return h(e,t,"previousSibling")},select:function(r,o){return Cb(r,n(o)||t.root_element||e,[])},is:g,add:C,create:x,createHTML:function(e,t,n){var r,o="";for(r in o+="<"+e,t)X(t,r)&&(o+=" "+r+'="'+K(t[r])+'"');return void 0!==n?o+">"+n+"</"+e+">":o+" />"},createFragment:function(t){var n,r=e.createElement("div"),o=e.createDocumentFragment();for(o.appendChild(r),t&&(r.innerHTML=t);n=r.firstChild;)o.appendChild(n);return o.removeChild(r),o},remove:w,setStyle:function(e,n,o){var i=Lg(n)?r(e).css(n,o):r(e).css(n);t.update_styles&&Hn(V,i)},getStyle:d,setStyles:function(e,n){var o=r(e).css(n);t.update_styles&&Hn(V,o)},removeAllAttribs:function(e){return v(e,function(e){for(var t=e.attributes,n=t.length-1;0<=n;n--)e.removeAttributeNode(t.item(n))})},setAttrib:u,setAttribs:b,getAttrib:o,getPos:l,parseStyle:function(e){return V.parse(e)},serializeStyle:function(e,t){return V.serialize(e,t)},addStyle:function(t){var n,r;if(J!==Hb.DOM&&e===document){if(L[t])return;L[t]=!0}(r=e.getElementById("mceDefaultStyles"))||((r=e.createElement("style")).id="mceDefaultStyles",r.type="text/css",(n=e.getElementsByTagName("head")[0]).firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r)),r.styleSheet?r.styleSheet.cssText+=t:r.appendChild(e.createTextNode(t))},loadCSS:function(e){E((e=e||"").split(","),function(e){M[e]=!0,U.load(e,s)})},addClass:function(e,t){r(e).addClass(t)},removeClass:function(e,t){S(e,t,!1)},hasClass:function(e,t){return r(e).hasClass(t)},toggleClass:S,show:function(e){r(e).show()},hide:function(e){r(e).hide()},isHidden:function(e){return"none"===r(e).css("display")},uniqueId:function(e){return(e||"mce_")+F++},setHTML:y,getOuterHTML:function(e){var t="string"==typeof e?n(e):e;return Gp(t)?t.outerHTML:Ib("<div></div>").append(Ib(t).clone()).html()},setOuterHTML:function(e,t){r(e).each(function(){try{if("outerHTML"in this)return void(this.outerHTML=t)}catch(e){}w(Ib(this).html(t),!0)})},decode:Rv.decode,encode:K,insertAfter:function(e,t){var r=n(t);return v(e,function(e){var t=r.parentNode,n=r.nextSibling;return n?t.insertBefore(e,n):t.appendChild(e),e})},replace:k,rename:function(e,t){var n;return e.nodeName!==t.toUpperCase()&&(n=x(t),Mb(i(e),function(t){u(n,t.nodeName,o(e,t.nodeName))}),k(n,e,!0)),n||e},findCommonAncestor:function(e,t){for(var n,r=e;r;){for(n=t;n&&r!==n;)n=n.parentNode;if(r===n)break;r=r.parentNode}return!r&&e.ownerDocument?e.ownerDocument.documentElement:r},toHex:function(e){return V.toHex(Pp.trim(e))},run:v,getAttribs:i,isEmpty:function(e,t){var n,r,o=0;if(N(e))return!1;if(e=e.firstChild){var i=new jh(e,e.parentNode),a=H?H.getWhiteSpaceElements():{};t=t||(H?H.getNonEmptyElements():null);do{if(n=e.nodeType,Gp(e)){var u=e.getAttribute("data-mce-bogus");if(u){e=i.next("all"===u);continue}if(r=e.nodeName.toLowerCase(),t&&t[r]){if("br"!==r)return!1;o++,e=i.next();continue}if(N(e))return!1}if(8===n)return!1;if(3===n&&!Yt(e.nodeValue))return!1;if(3===n&&e.parentNode&&a[e.parentNode.nodeName]&&Yt(e.nodeValue))return!1;e=i.next()}while(e)}return o<=1},createRng:_,nodeIndex:jn,split:function(e,t,n){var r,o,i,a=_();if(e&&t)return a.setStart(e.parentNode,jn(e)),a.setEnd(t.parentNode,jn(t)),r=a.extractContents(),(a=_()).setStart(t.parentNode,jn(t)+1),a.setEnd(e.parentNode,jn(e)+1),o=a.extractContents(),(i=e.parentNode).insertBefore(yv(J,r),e),n?i.insertBefore(n,e):i.insertBefore(t,e),i.insertBefore(yv(J,o),e),w(e),n||t},bind:Y,unbind:G,fire:function(e,t,n){return q.fire(e,t,n)},getContentEditable:A,getContentEditableParent:function(e){for(var t=c(),n=null;e&&e!==t&&null===(n=A(e));e=e.parentNode);return n},destroy:function(){if(0<z.length)for(var e=z.length;e--;){var t=z[e];q.unbind(t[0],t[1],t[2])}j(M,function(e,t){U.unload(t),delete M[t]}),Cb.setDocument&&Cb.setDocument()},isChildOf:function(e,t){if(Ub){for(;e;){if(t===e)return!0;e=e.parentNode}return!1}return e===t||t.contains(e)},dumpRng:function(e){return"startContainer: "+e.startContainer.nodeName+", startOffset: "+e.startOffset+", endContainer: "+e.endContainer.nodeName+", endOffset: "+e.endOffset}},Q=(R=V,T=f(J),B={set:function(e,t,n){D.url_converter&&null!==t&&(t=D.url_converter.call(D.url_converter_scope||T(),t,n,e[0])),e.attr("data-mce-"+n,t).attr(n,t)},get:function(e,t){return e.attr("data-mce-"+t)||e.attr(t)}},P={style:{set:function(e,t){null===t||"object"!=typeof t?(O&&e.attr("data-mce-style",t),null!==t&&"string"==typeof t?(e.removeAttr("style"),e.css(R.parse(t))):e.attr("style",t)):e.css(t)},get:function(e){var t=e.attr("data-mce-style")||e.attr("style");return R.serialize(R.parse(t),e[0].nodeName)}}},(O=(D=t).keep_values)&&(P.href=P.src=B),P);return J};Hb.DOM=Hb(document),Hb.nodeIndex=jn;var jb=Hb.DOM,Vb=Pp.each,qb=Pp.grep,$b=(Vn.prototype._setReferrerPolicy=function(e){this.settings.referrerPolicy=e},Vn.prototype.loadScript=function(e,t,n){function r(){o.remove(i),a&&(a.onerror=a.onload=a=null)}var o=jb,i=o.uniqueId(),a=document.createElement("script");a.id=i,a.type="text/javascript",a.src=Pp._addCacheSuffix(e),this.settings.referrerPolicy&&o.setAttrib(a,"referrerpolicy",this.settings.referrerPolicy),a.onload=function(){r(),t()},a.onerror=function(){r(),Hg(n)?n():"undefined"!=typeof console&&console.log&&console.log("Failed to load script: "+e)},(document.getElementsByTagName("head")[0]||document.body).appendChild(a)},Vn.prototype.isDone=function(e){return 2===this.states[e]},Vn.prototype.markDone=function(e){this.states[e]=2},Vn.prototype.add=function(e,t,n,r){var o=this.states[e];this.queue.push(e),void 0===o&&(this.states[e]=0),t&&(this.scriptLoadedCallbacks[e]||(this.scriptLoadedCallbacks[e]=[]),this.scriptLoadedCallbacks[e].push({success:t,failure:r,scope:n||this}))},Vn.prototype.load=function(e,t,n,r){return this.add(e,t,n,r)},Vn.prototype.remove=function(e){delete this.states[e],delete this.scriptLoadedCallbacks[e]},Vn.prototype.loadQueue=function(e,t,n){this.loadScripts(this.queue,e,t,n)},Vn.prototype.loadScripts=function(e,t,n,r){function o(e,t){Vb(i.scriptLoadedCallbacks[t],function(t){Hg(t[e])&&t[e].call(t.scope)}),i.scriptLoadedCallbacks[t]=void 0}var i=this,a=[];i.queueLoadedCallbacks.push({success:t,failure:r,scope:n||this});var u=function(){var t,n=qb(e);e.length=0,Vb(n,function(e){2!==i.states[e]?3!==i.states[e]?1!==i.states[e]&&(i.states[e]=1,i.loading++,i.loadScript(e,function(){i.states[e]=2,i.loading--,o("success",e),u()},function(){i.states[e]=3,i.loading--,a.push(e),o("failure",e),u()})):o("failure",e):o("success",e)}),i.loading||(t=i.queueLoadedCallbacks.slice(0),i.queueLoadedCallbacks.length=0,Vb(t,function(e){0===a.length?Hg(e.success)&&e.success.call(e.scope):Hg(e.failure)&&e.failure.call(e.scope,a)}))};u()},Vn.ScriptLoader=new Vn,Vn),Wb={},Kb=qn("en"),Xb={getData:function(){return V(Wb,function(e){return rp({},e)})},setCode:function(e){e&&Kb.set(e)},getCode:function(){return Kb.get()},add:function(e,t){var n=Wb[e];n||(Wb[e]=n={}),j(t,function(e,t){n[t.toLowerCase()]=e})},translate:function(e){function t(e){return Hg(e)?Object.prototype.toString.call(e):u(e)?"":""+e}function n(e){var n=t(e);return K(a,n.toLowerCase()).map(t).getOr(n)}function r(e){return e.replace(/{context:\w+}$/,"")}var o,i,a=$n().getOr({}),u=function(e){return""===e||null==e};if(u(e))return"";if(Ig(o=e)&&tp(o,"raw"))return t(e.raw);if(Mg(i=e)&&1<i.length){var s=e.slice(1);return r(n(e[0]).replace(/\{([0-9]+)\}/g,function(e,n){return tp(s,n)?t(s[n]):e}))}return r(n(e))},isRtl:function(){return $n().bind(function(e){return K(e,"_dir")}).exists(function(e){return"rtl"===e})},hasCode:function(e){return tp(Wb,e)}},Yb=function(){function e(e,t){E(_(u,function(n){return n.name===e&&n.state===t}),function(e){return e.callback()})}function t(e){var t;return(a[e]?a[e].dependencies:t)||[]}function n(e,t){return"object"==typeof t?t:"string"==typeof e?{prefix:"",resource:t,suffix:""}:{prefix:e.prefix,resource:t,suffix:e.suffix}}function r(e,t,n){void 0===n&&(n="added"),tp(a,e)&&"added"===n||tp(i,e)&&"loaded"===n?t():u.push({name:e,state:n,callback:t})}var o=[],i={},a={},u=[],s=function(r,o,u,c,l){var f,d;i[r]||(0!==(f="string"==typeof o?o:o.prefix+o.resource+o.suffix).indexOf("/")&&-1===f.indexOf("://")&&(f=Yb.baseURL+"/"+f),i[r]=f.substring(0,f.lastIndexOf("/")),d=function(){var i,a,l;e(r,"loaded"),i=o,a=u,l=c,E(t(r),function(e){var t=n(i,e);s(t.resource,t,void 0,void 0)}),a&&(l?a.call(l):a.call($b))},a[r]?d():$b.ScriptLoader.add(f,d,c,l))};return{items:o,urls:i,lookup:a,_listeners:u,get:function(e){if(a[e])return a[e].instance},dependencies:t,requireLangPack:function(e,t){!1!==Yb.languageLoad&&r(e,function(){var n=Xb.getCode();!n||t&&-1===(","+(t||"")+",").indexOf(","+n+",")||$b.ScriptLoader.add(i[e]+"/langs/"+n+".js")},"loaded")},add:function(t,n,r){var i=n;return o.push(i),a[t]={instance:i,dependencies:r},e(t,"added"),i},remove:function(e){delete i[e],delete a[e]},createUrl:n,addComponents:function(e,t){var n=i[e];E(t,function(e){$b.ScriptLoader.add(n+"/"+e)})},load:s,waitFor:r}};Yb.languageLoad=!0,Yb.baseURL="",Yb.PluginManager=Yb(),Yb.ThemeManager=Yb();var Gb=function(e,t){var n=[];return E(zp(e),function(e){n=(n=t(e)?n.concat([e]):n).concat(Gb(e,t))}),n},Jb=f("mce-annotation"),Qb=f("data-mce-annotation"),Zb=f("data-mce-annotation-uid"),ey=function(e,t){return Zn(Lp.fromDom(e.getBody()),"["+Zb()+'="'+t+'"]')
|
32
|
+
},ty=0,ny=Math.round,ry=new RegExp("[\u0300-\u036f\u0483-\u0487\u0488-\u0489\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u0610-\u061a\u064b-\u065f\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7-\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u08e3-\u0902\u093a\u093c\u0941-\u0948\u094d\u0951-\u0957\u0962-\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2-\u09e3\u0a01-\u0a02\u0a3c\u0a41-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a70-\u0a71\u0a75\u0a81-\u0a82\u0abc\u0ac1-\u0ac5\u0ac7-\u0ac8\u0acd\u0ae2-\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62-\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c00\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c62-\u0c63\u0c81\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc-\u0ccd\u0cd5-\u0cd6\u0ce2-\u0ce3\u0d01\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62-\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb-\u0ebc\u0ec8-\u0ecd\u0f18-\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039-\u103a\u103d-\u103e\u1058-\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108d\u109d\u135d-\u135f\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17b4-\u17b5\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193b\u1a17-\u1a18\u1a1b\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1ab0-\u1abd\u1abe\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80-\u1b81\u1ba2-\u1ba5\u1ba8-\u1ba9\u1bab-\u1bad\u1be6\u1be8-\u1be9\u1bed\u1bef-\u1bf1\u1c2c-\u1c33\u1c36-\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1cf4\u1cf8-\u1cf9\u1dc0-\u1df5\u1dfc-\u1dff\u200c-\u200d\u20d0-\u20dc\u20dd-\u20e0\u20e1\u20e2-\u20e4\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302d\u302e-\u302f\u3099-\u309a\ua66f\ua670-\ua672\ua674-\ua67d\ua69e-\ua69f\ua6f0-\ua6f1\ua802\ua806\ua80b\ua825-\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\ua9e5\uaa29-\uaa2e\uaa31-\uaa32\uaa35-\uaa36\uaa43\uaa4c\uaa7c\uaab0\uaab2-\uaab4\uaab7-\uaab8\uaabe-\uaabf\uaac1\uaaec-\uaaed\uaaf6\uabe5\uabe8\uabed\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\uff9e-\uff9f]"),oy=Gp,iy=Kt,ay=tt("display","block table"),uy=tt("float","left right"),sy=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}}(oy,iy,p(uy)),cy=p(tt("white-space","pre pre-line pre-wrap")),ly=Qp,fy=nh,dy=Hb.nodeIndex,my=function(e,t){if(!(t<0&&Gp(e)&&e.hasChildNodes()))return hr(e,t)},gy=function(e){var t=e.getClientRects(),n=0<t.length?cr(t[0]):cr(e.getBoundingClientRect());return!Cr(e)&&fy(e)&&wr(n)?function(e){var t=e.ownerDocument,n=br(t),r=t.createTextNode(Qh),o=e.parentNode;o.insertBefore(r,e),n.setStart(r,0),n.setEnd(r,1);var i=cr(n.getBoundingClientRect());return o.removeChild(r),i}(e):wr(n)&&Cr(e)?function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,o=e.endOffset;if(t===n&&Qp(n)&&0===r&&1===o){var i=e.cloneRange();return i.setEndAfter(n),gy(i)}return null}(e):n},py=function(e,t,n){function r(){return n=n||function(e){function t(e){var t;0!==e.height&&(0<r.length&&(t=r[r.length-1],e.left===t.left&&e.top===t.top&&e.bottom===t.bottom&&e.right===t.right)||r.push(e))}function n(e,n){var o=br(e.ownerDocument);if(n<e.data.length){if(vr(e.data[n]))return r;if(vr(e.data[n-1])&&(o.setStart(e,n),o.setEnd(e,n+1),!xr(o)))return t(Sr(gy(o),!1)),r}0<n&&(o.setStart(e,n-1),o.setEnd(e,n),xr(o)||t(Sr(gy(o),!1))),n<e.data.length&&(o.setStart(e,n),o.setEnd(e,n+1),xr(o)||t(Sr(gy(o),!0)))}var r=[],o=e.container(),i=e.offset();if(ly(o))return n(o,i),r;if(oy(o))if(e.isAtEnd()){var a=my(o,i);ly(a)&&n(a,a.data.length),sy(a)&&!fy(a)&&t(Sr(gy(a),!1))}else{if(a=my(o,i),ly(a)&&n(a,0),sy(a)&&e.isAtEnd())return t(Sr(gy(a),!1)),r;var u=my(e.container(),e.offset()-1);sy(u)&&!fy(u)&&(!ay(u)&&!ay(a)&&sy(a)||t(Sr(gy(u),!1))),sy(a)&&t(Sr(gy(a),!0))}return r}(py(e,t))}return{container:f(e),offset:f(t),toRange:function(){var n=br(e.ownerDocument);return n.setStart(e,t),n.setEnd(e,t),n},getClientRects:r,isVisible:function(){return 0<r().length},isAtStart:function(){return ly(e),0===t},isAtEnd:function(){return ly(e)?t>=e.data.length:t>=e.childNodes.length},isEqual:function(n){return n&&e===n.container()&&t===n.offset()},getNode:function(n){return my(e,n?t-1:t)}}};py.fromRangeStart=function(e){return py(e.startContainer,e.startOffset)},py.fromRangeEnd=function(e){return py(e.endContainer,e.endOffset)},py.after=function(e){return py(e.parentNode,dy(e)+1)},py.before=function(e){return py(e.parentNode,dy(e))},py.isAbove=function(e,t){return ut(U(t.getClientRects()),z(e.getClientRects()),dr).getOr(!1)},py.isBelow=function(e,t){return ut(z(t.getClientRects()),U(e.getClientRects()),mr).getOr(!1)},py.isAtStart=function(e){return!!e&&e.isAtStart()},py.isAtEnd=function(e){return!!e&&e.isAtEnd()},py.isTextPosition=function(e){return!!e&&Qp(e.container())},py.isElementPosition=function(e){return!1===py.isTextPosition(e)};var hy,vy,by=Qp,yy=rt,Cy=Hb.nodeIndex,xy=function(e){var t=e.parentNode;return yy(t)?xy(t):t},wy=function(e){return e?Z(e.childNodes,function(e,t){return yy(t)&&"BR"!==t.nodeName?e=e.concat(wy(t)):e.push(t),e},[]):[]},Sy=ih,Ey=g(Lr,d,!0),ky=Hb.DOM,Ny=Gp,_y=Qp,Ay=function(e){Ny(e)&&Ht(e)&&(jt(e)?e.removeAttribute("data-mce-caret"):Zr(e)),_y(e)&&(to(e),0===e.data.length&&Zr(e))},Ry=wp().browser,Dy=ih,Ty=uh,Oy=ah,By=function(e){return Dy(e)||Ty(e)},Py=ih,Ly=uh,Iy=tt("display","block table table-cell table-caption list-item"),My=Ht,Fy=Ut,Uy=Gp,zy=Kt,Hy=g(po,!0),jy=g(po,!1);(vy=hy=hy||{})[vy.Backwards=-1]="Backwards",vy[vy.Forwards=1]="Forwards";var Vy,qy,$y,Wy=ih,Ky=Qp,Xy=Gp,Yy=nh,Gy=Kt,Jy=Xt,Qy=function(e,t,n){var r,o,i;if(!Xy(n)||!t)return null;if(t.isEqual(py.after(n))&&n.lastChild){if(i=py.after(n.lastChild),e<0&&Gy(n.lastChild)&&Xy(n.lastChild))return Yy(n.lastChild)?py.before(n.lastChild):i}else i=t;var a,u,s,c=i.container(),l=i.offset();if(Ky(c)){if(e<0&&0<l)return py(c,--l);if(0<e&&l<c.length)return py(c,++l);r=c}else{if(e<0&&0<l&&(f=So(c,l-1),Gy(f)))return!Di(f)&&(o=lo(f,e,Jy,f))?Ky(o)?py(o,o.data.length):py.after(o):Ky(f)?py(f,f.data.length):py.before(f);if(0<e&&l<c.childNodes.length&&(f=So(c,l),Gy(f)))return Yy(f)?(a=n,(s=(u=f).nextSibling)&&Gy(s)?Ky(s)?py(s,0):py.before(s):Qy(hy.Forwards,py.after(u),a)):!Di(f)&&(o=lo(f,e,Jy,f))?Ky(o)?py(o,0):py.before(o):Ky(f)?py(f,0):py.after(f);r=f||i.getNode()}if((0<e&&i.isAtEnd()||e<0&&i.isAtStart())&&(r=lo(r,e,qg,n,!0),Jy(r,n)))return Eo(e,r);var f=lo(r,e,Jy,n),d=te(_(function(e,t){for(var n=[];e&&e!==t;)n.push(e),e=e.parentNode;return n}(c,n),Wy));return!d||f&&d.contains(f)?f?Eo(e,f):null:0<e?py.after(d):py.before(d)},Zy=function(e,t,n){var r=ko(t);return Kg.from(e?r.next(n):r.prev(n))},eC=function(e,t,n,r){return Ro(e,t,n).bind(function(n){return r(n)?eC(e,t,n,r):Kg.some(n)})},tC=g(Zy,!0),nC=g(Zy,!1),rC=g(Do,!0),oC=g(Do,!1),iC="_mce_caret",aC=function(e,t,n){return 2===t?Lr(tv,n,e):3===t?(o=(r=e).getRng(),{start:Ar(r.dom.getRoot(),py.fromRangeStart(o)),end:Ar(r.dom.getRoot(),py.fromRangeEnd(o))}):t?{rng:e.getRng()}:Mr(e,!1);var r,o},uC=(Vy=Qh,function(e){return Vy===e}),sC=function(e,t){return void 0===t&&(t=!1),!(!u(e)||!Qp(e))&&Yt(t?e.data.replace(/ /g,"\xa0"):e.data)},cC=zo,lC=Zo,fC=sC,dC=Wo,mC=function(e,t,n,r){var o=n.parentNode;return!u(n[r])&&(!(o!==t&&!a(o)&&!e.isBlock(o))||mC(e,t,o,r))},gC=function(e){return Pe(e).fold(f([e]),function(t){return[e].concat(gC(t))})},pC=function(e){return Le(e).fold(f([e]),function(t){return"br"===we(t)?Re(t).map(function(t){return[e].concat(pC(t))}).getOr([]):[e].concat(pC(t))})},hC=(qy=Mp,{get:function(e){if(!qy(e))throw new Error("Can only get text value of a text node");return $y(e).getOr("")},getOption:$y=function(e){return qy(e)?Kg.from(e.dom.nodeValue):Kg.none()},set:function(e,t){if(!qy(e))throw new Error("Can only set raw text value of a text node");e.dom.nodeValue=t}});Ri.isBookmarkNode=zo;var vC={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||vC.metaKeyPressed(e)},metaKeyPressed:function(e){return Tp.mac?e.metaKey:e.ctrlKey&&!e.altKey}},bC=ih;Xi.compareRanges=Ui,Xi.getCaretRangeFromPoint=Fi,Xi.getSelectedNode=pr,Xi.getNode=hr;var yC,CC,xC,wC=(yC="height",CC=function(e){var t=e.dom;return Wp(e)?t.getBoundingClientRect().height:t.offsetHeight},{set:function(e,t){if(!jg(t)&&!t.match(/^[0-9]+$/))throw new Error(yC+".set accepts only positive integer values. Value was "+t);var n=e.dom;st(n)&&(n.style[yC]=t+"px")},get:Yi,getOuter:Yi,aggregate:Gi,max:function(e,t,n){var r=Gi(e,n);return r<t?t-r:0}}),SC=function(e,t){return e.view(t).fold(f([]),function(t){var n=e.owner(t),r=SC(e,n);return[t].concat(r)})},EC=Object.freeze({__proto__:null,view:function(e){var t;return(e.dom===document?Kg.none():Kg.from(null===(t=e.dom.defaultView)||void 0===t?void 0:t.frameElement)).map(Lp.fromDom)},owner:Ne}),kC=function(e,t,n,r){var o=Lp.fromDom(e.getBody()),i=Lp.fromDom(e.getDoc());o.dom.offsetWidth;var a,u,s=(a=function(e,t){var n=zp(e);if(0===n.length||Ji(e))return{element:e,offset:t};if(t<n.length&&!Ji(n[t]))return{element:n[t],offset:0};var r=n[n.length-1];return Ji(r)?{element:e,offset:t}:"img"===we(r)?{element:r,offset:1}:Mp(r)?{element:r,offset:ki(r).length}:{element:r,offset:zp(r).length}}(Lp.fromDom(n.startContainer),n.startOffset),u=Lp.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">\ufeff</span>'),ze(a.element,u),Qi(u,function(){return $p(u)}));ea(e,i,t,s,r),s.cleanup()},NC=function(e,t,n){var r=n.startContainer,o=n.startOffset,i=n.endContainer,a=n.endOffset;t(Lp.fromDom(r),Lp.fromDom(i));var u=e.dom.createRng();u.setStart(r,o),u.setEnd(i,a),e.selection.setRng(n)},_C=St([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),AC=(_C.before,_C.on,_C.after,function(e){return e.fold(d,d,d)}),RC=St([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),DC={domRange:RC.domRange,relative:RC.relative,exact:RC.exact,exactFromRange:function(e){return RC.exact(e.start,e.soffset,e.finish,e.foffset)},getWin:function(e){return _e(e.match({domRange:function(e){return Lp.fromDom(e.startContainer)},relative:function(e){return AC(e)},exact:function(e){return e}}))},range:function(e,t,n,r){return{start:e,soffset:t,finish:n,foffset:r}}},TC=wp().browser,OC={isEditorUIElement:function(e){var t=e.className.toString();return-1!==t.indexOf("tox-")||-1!==t.indexOf("mce-")}},BC=Hb.DOM,PC=function(e){return e.editorManager.setActive(e)},LC={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},IC=(Ia.create=function(e,t){var n=new Ia(e,LC[e]||1);return t&&j(t,function(e,t){n.attr(t,e)}),n},Ia.prototype.replace=function(e){return e.parent&&e.remove(),this.insert(e,this),this.remove(),this},Ia.prototype.attr=function(e,t){var n,r=this;if("string"!=typeof e)return null!=e&&j(e,function(e,t){r.attr(t,e)}),r;if(n=r.attributes){if(void 0===t)return n.map[e];if(null===t){if(e in n.map){delete n.map[e];for(var o=n.length;o--;)if(n[o].name===e)return n.splice(o,1),r}return r}if(e in n.map){for(o=n.length;o--;)if(n[o].name===e){n[o].value=t;break}}else n.push({name:e,value:t});return n.map[e]=t,r}},Ia.prototype.clone=function(){var e,t=new Ia(this.name,this.type);if(e=this.attributes){var n=[];n.map={};for(var r=0,o=e.length;r<o;r++){var i=e[r];"id"!==i.name&&(n[n.length]={name:i.name,value:i.value},n.map[i.name]=i.value)}t.attributes=n}return t.value=this.value,t.shortEnded=this.shortEnded,t},Ia.prototype.wrap=function(e){return this.parent.insert(e,this),e.append(this),this},Ia.prototype.unwrap=function(){for(var e=this.firstChild;e;){var t=e.next;this.insert(e,this,!0),e=t}this.remove()},Ia.prototype.remove=function(){var e=this.parent,t=this.next,n=this.prev;return e&&(e.firstChild===this?(e.firstChild=t)&&(t.prev=null):n.next=t,e.lastChild===this?(e.lastChild=n)&&(n.next=null):t.prev=n,this.parent=this.next=this.prev=null),this},Ia.prototype.append=function(e){e.parent&&e.remove();var t=this.lastChild;return t?((t.next=e).prev=t,this.lastChild=e):this.lastChild=this.firstChild=e,e.parent=this,e},Ia.prototype.insert=function(e,t,n){e.parent&&e.remove();var r=t.parent||this;return n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,(e.next=t).prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,(e.prev=t).next=e),e.parent=r,e},Ia.prototype.getAll=function(e){for(var t=[],n=this.firstChild;n;n=Pa(n,this))n.name===e&&t.push(n);return t},Ia.prototype.children=function(){for(var e=[],t=this.firstChild;t;t=t.next)e.push(t);return e},Ia.prototype.empty=function(){if(this.firstChild){for(var e=[],t=this.firstChild;t;t=Pa(t,this))e.push(t);for(var n=e.length;n--;)(t=e[n]).parent=t.firstChild=t.lastChild=t.next=t.prev=null}return this.firstChild=this.lastChild=null,this},Ia.prototype.isEmpty=function(e,t,n){void 0===t&&(t={});var r=this.firstChild;if(La(this))return!1;if(r)do{if(1===r.type){if(r.attr("data-mce-bogus"))continue;if(e[r.name])return!1;if(La(r))return!1}if(8===r.type)return!1;if(3===r.type&&!function(e){if(Yt(e.value)){var t=e.parent;return!t||"span"===t.name&&!t.attr("style")||!/^[ ]+$/.test(e.value)}}(r))return!1;if(3===r.type&&r.parent&&t[r.parent.name]&&Yt(r.value))return!1;if(n&&n(r))return!1}while(r=Pa(r,this));return!0},Ia.prototype.walk=function(e){return Pa(this,null,e)},Ia),MC=Pp.each,FC=Pp.trim,UC="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),zC={ftp:21,http:80,https:443,mailto:25},HC=["img","video"],jC=(Fa.parseDataUri=function(e){var t,n=decodeURIComponent(e).split(","),r=/data:([^;]+)/.exec(n[0]);return{type:t=r?r[1]:t,data:n[1]}},Fa.isDomSafe=function(e,t,n){if((n=void 0===n?{}:n).allow_script_urls)return!0;var r,o,i,a,s=Rv.decode(e).replace(/[\s\u0000-\u001F]+/g,"");try{s=decodeURIComponent(s)}catch(e){s=unescape(s)}return!(/((java|vb)script|mhtml):/i.test(s)||(o=s,i=t,!(r=n).allow_html_data_urls&&(/^data:image\//i.test(o)?(u(a=r.allow_svg_data_urls)?!a:!u(i)||!x(HC,i))&&/^data:image\/svg\+xml/i.test(o):/^data:/i.test(o))))},Fa.getDocumentBaseUrl=function(e){var t=0!==e.protocol.indexOf("http")&&"file:"!==e.protocol?e.href:e.protocol+"//"+e.host+e.pathname;return/^[^:]+:\/\/\/?[^\/]+\//.test(t)&&(t=t.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(t)||(t+="/")),t},Fa.prototype.setPath=function(e){var t=/^(.*?)\/?(\w+)?$/.exec(e);this.path=t[0],this.directory=t[1],this.file=t[2],this.source="",this.getURI()},Fa.prototype.toRelative=function(e){var t;if("./"===e)return e;var n=new Fa(e,{base_uri:this});if("mce_host"!==n.host&&this.host!==n.host&&n.host||this.port!==n.port||this.protocol!==n.protocol&&""!==n.protocol)return n.getURI();var r=this.getURI(),o=n.getURI();return r===o||"/"===r.charAt(r.length-1)&&r.substr(0,r.length-1)===o?r:(t=this.toRelPath(this.path,n.path),n.query&&(t+="?"+n.query),n.anchor&&(t+="#"+n.anchor),t)},Fa.prototype.toAbsolute=function(e,t){var n=new Fa(e,{base_uri:this});return n.getURI(t&&this.isSameOrigin(n))},Fa.prototype.isSameOrigin=function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=zC[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},Fa.prototype.toRelPath=function(e,t){var n,r,o=0,i="",a=e.substring(0,e.lastIndexOf("/")).split("/"),u=t.split("/");if(a.length>=u.length)for(n=0,r=a.length;n<r;n++)if(n>=u.length||a[n]!==u[n]){o=n+1;break}if(a.length<u.length)for(n=0,r=u.length;n<r;n++)if(n>=a.length||a[n]!==u[n]){o=n+1;break}if(1===o)return t;for(n=0,r=a.length-(o-1);n<r;n++)i+="../";for(n=o-1,r=u.length;n<r;n++)i+=n!==o-1?"/"+u[n]:u[n];return i},Fa.prototype.toAbsPath=function(e,t){var n,r,o=0,i=[],a=/\/$/.test(t)?"/":"",u=e.split("/"),s=t.split("/");for(MC(u,function(e){e&&i.push(e)}),u=i,n=s.length-1,i=[];0<=n;n--)0!==s[n].length&&"."!==s[n]&&(".."!==s[n]?0<o?o--:i.push(s[n]):o++);return 0!==(r=(n=u.length-o)<=0?L(i).join("/"):u.slice(0,n).join("/")+"/"+L(i).join("/")).indexOf("/")&&(r="/"+r),a&&r.lastIndexOf("/")!==r.length-1&&(r+=a),r},Fa.prototype.getURI=function(e){var t;return void 0===e&&(e=!1),this.source&&!e||(t="",e||(this.protocol?t+=this.protocol+"://":t+="//",this.userInfo&&(t+=this.userInfo+"@"),this.host&&(t+=this.host),this.port&&(t+=":"+this.port)),this.path&&(t+=this.path),this.query&&(t+="?"+this.query),this.anchor&&(t+="#"+this.anchor),this.source=t),this.source},Fa),VC=Pp.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),qC=re(function(){return document.implementation.createHTMLDocument("parser")}),$C=function(e,t,n){void 0===n&&(n=0);var r=e.toLowerCase();if(-1!==r.indexOf("[if ",n)&&(u=n,/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(r.substr(u)))){var o=r.indexOf("[endif]",n);return r.indexOf(">",o)}if(t){var i=r.indexOf(">",n);return-1!==i?i:r.length}var a=/--!?>/g;a.lastIndex=n;var u,s=a.exec(e);return s?s.index+s[0].length:r.length};za.findEndTag=Ua;var WC=Ha,KC=Pp.each,XC=Pp.makeMap,YC=new Set;E(["margin","margin-left","margin-right","margin-top","margin-bottom","padding","padding-left","padding-right","padding-top","padding-bottom","border","border-width","border-style","border-color","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","float","position","left","right","top","bottom","z-index","display","transform","width","max-width","min-width","height","max-height","min-height","overflow","overflow-x","overflow-y","text-overflow","vertical-align","transition","transition-delay","transition-duration","transition-property","transition-timing-function"],function(e){YC.add(e)});var GC,JC=["font","text-decoration","text-emphasis"],QC=g(Wa,!0,Ho),ZC=g(Wa,!1,Ho),ex=Xa(!0,Ya),tx=Xa(!1,Ya),nx=Xa(!0,uh),rx=Xa(!1,uh),ox=Xa(!0,ot),ix=Xa(!1,ot),ax=Xa(!0,Ga),ux=Xa(!1,Ga),sx=g(ou,!1),cx=g(ou,!0),lx=g(ru,!1),fx=g(ru,!0),dx=g(au,!1),mx=g(au,!0),gx=St([{singleCellTable:["rng","cell"]},{fullTable:["table"]},{partialTable:["cells","outsideDetails"]},{multiTable:["startTableCells","endTableCells","betweenRng"]}]),px=function(e){var t;return(8===Se(t=e)||"#comment"===we(t)?Re:Le)(e).bind(px).orThunk(function(){return Kg.some(e)})},hx=function(e,t,n,r){void 0===r&&(r=!0),t.deleteContents();var o,i=px(n).getOr(n),a=Lp.fromDom(e.dom.getParent(i.dom,e.dom.isBlock));return Jt(a)&&(Ja(a),r&&e.selection.setCursorLocation(a.dom,0)),he(n,a)||E((at(Ae(a),n)?[]:Ae(o=a).map(zp).map(function(e){return _(e,function(e){return!he(o,e)})}).getOr([])).concat(zp(n)),function(e){he(e,a)||ve(e,a)||!Jt(e)||$p(e)}),!0},vx=function(e,t){return T(eu(t,e),function(e){return Ip(e)&&"caption"===we(e)})},bx=function(e,t){return Ja(t),e.selection.setCursorLocation(t.dom,0),Kg.some(!0)},yx=ah,Cx=function(e,t){t(e),e.firstChild&&Cx(e.firstChild,t),e.next&&Cx(e.next,t)},xx=Yo,wx=function(e,t,n,r,o){var i=e.formatter.get(n),a=e.dom;if(i&&t)for(var u=0;u<i.length;u++){var s=i[u];if(ps(e.dom,t,s)&&hs(a,t,s,"attributes",o,r)&&hs(a,t,s,"styles",o,r)){var c=s.classes;if(c)for(var l=0;l<c.length;l++)if(!e.dom.hasClass(t,Xo(c[l],r)))return;return s}}},Sx=Zh,Ex="_mce_caret",kx={},Nx=J,_x=Y;GC=function(e){var t,n=e.selection.getRng(),r=et(["pre"]);n.collapsed||(t=e.selection.getSelectedBlocks(),_x(Nx(Nx(t,r),function(e){return r(e.previousSibling)&&-1!==Q(t,e.previousSibling)}),function(e){var t,n=e.previousSibling;Ib(t=e).remove(),Ib(n).append("<br><br>").append(t.childNodes)}))},kx.pre||(kx.pre=[]),kx.pre.push(GC);var Ax,Rx,Dx,Tx,Ox=Pp.each,Bx=function(e,t,n){Ox(e.childNodes,function(e){As(e)&&(t(e)&&n(e),e.hasChildNodes()&&Bx(e,t,n))})},Px=St([{keep:[]},{rename:["name"]},{removed:[]}]),Lx=/^(src|href|style)$/,Ix=Pp.each,Mx=Yo,Fx=Pp.each,Ux=Pp.each,zx=function(e,t,n,r){function o(e,t){var o;Hg((t=void 0===t?m:t).onformat)&&t.onformat(e,t,n,r),Ux(t.styles,function(t,r){p.setStyle(e,r,Xo(t,n))}),!t.styles||(o=p.getAttrib(e,"style"))&&p.setAttrib(e,"data-mce-style",o),Ux(t.attributes,function(t,r){p.setAttrib(e,r,Xo(t,n))}),Ux(t.classes,function(t){t=Xo(t,n),p.hasClass(e,t)||p.addClass(e,t)})}function i(e,t){var n=!1;return Ux(e,function(e){return!!ni(e)&&(u(e.collapsed)&&e.collapsed!==g||!p.is(t,e.selector)||To(t)?void 0:(o(t,e),!(n=!0)))}),n}function a(r,a,s){var c=[],l=!0,f=m.inline||m.block,g=function(e){if(Lg(e)){var t=p.create(e);return o(t),t}return null}(f);pi(r,a,function(a){var p,h=function(a){var v=!1,b=l,y=a.nodeName.toLowerCase(),C=a.parentNode,x=C.nodeName.toLowerCase();if(Gp(a)&&r.getContentEditable(a)&&(b=l,l="true"===r.getContentEditable(a),v=!0),nh(a)&&!function(e,t,n,r){if(e.getParam("format_empty_lines",!1,"boolean")&&ri(t)){var o=un(e.schema),i=(a=Lp.fromDom(n),s=function(e){return To(e.dom)},((c=(u=a).dom).parentNode?Fh(Lp.fromDom(c.parentNode),function(e){return!he(u,e)&&s(e)}):Kg.none()).isSome());return X(o,r)&&Jt(Lp.fromDom(n.parentNode),!1)&&!i}var a,u,s,c}(e,m,a,x))return p=null,void(ti(m)&&r.remove(a));if(ti(m)&&m.wrapper&&wx(e,a,t,n))p=null;else{if(l&&!v&&ti(m)&&!m.wrapper&&Wo(e,y)&&Ko(e,x,f)){var w=r.rename(a,f);return o(w),c.push(w),void(p=null)}if(ni(m)){var S=i(d,a);if(!S&&u(C)&&oi(m)&&(S=i(d,C)),!ri(m)||S)return void(p=null)}!l||v||!Ko(e,f,y)||!Ko(e,x,f)||!s&&Qp(a)&&ev(a.data)||To(a)||ri(m)&&r.isBlock(a)?(p=null,E(Jg(a.childNodes),h),v&&(l=b),p=null):(p||(p=r.clone(g,!1),a.parentNode.insertBefore(p,a),c.push(p)),p.appendChild(a))}};E(a,h)}),!0===m.links&&E(c,function(e){var t=function(e){"A"===e.nodeName&&o(e,m),E(Jg(e.childNodes),t)};t(e)}),E(c,function(i){function a(e){var t;1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType&&(t=Qo(S,e.parentNode),S.getStyle(e,"color")&&t?S.setStyle(e,"text-decoration",t):S.getStyle(e,"text-decoration")===t&&S.setStyle(e,"text-decoration",null))}var s,l,f,g,p,h,v,b,y,C,x,w,S,k,N,_,A,R,D=(s=0,E(i.childNodes,function(e){var t;u(t=e)&&Qp(t)&&0===t.length||zo(e)||s++}),s);!(1<c.length)&&r.isBlock(i)||0!==D?(ri(m)||ti(m)&&m.wrapper)&&(m.exact||1!==D||(i=T((w=i).childNodes,Vs).filter(function(e){return ps(r,e,m)}).map(function(e){var t=r.clone(e,!1);return o(t),r.replace(t,w,!0),r.remove(e,!0),t}).getOr(w)),_=e,A=n,R=i,Fx(d,function(e){var t,n,r;ri(e)&&Fx(_.dom.select(e.inline,R),function(t){As(t)&&Hs(_,e,A,t,e.exact?t:null)}),t=_.dom,(n=e).clear_child_styles&&(r=n.links?"*:not(a)":"*",Ox(t.select(r,R),function(e){As(e)&&Ox(n.styles,function(n,r){t.setStyle(e,r,"")})}))}),b=m,wx(v=e,(x=i).parentNode,y=t,C=n)&&Hs(v,b,C,x)||b.merge_with_parents&&v.dom.getParent(x.parentNode,function(e){if(wx(v,e,y,C))return Hs(v,b,C,x),!0}),h=i,(p=m).styles&&p.styles.backgroundColor&&Bx(h,Os(r,"fontSize"),Bs(r,"backgroundColor",Xo(p.styles.backgroundColor,n))),S=r,N=i,(k=m).styles&&(k.styles.color||k.styles.textDecoration)&&(Pp.walk(N,a,"childNodes"),a(N)),l=r,g=i,!ri(f=m)||"sub"!==f.inline&&"sup"!==f.inline||(Bx(g,Os(l,"fontSize"),Bs(l,"fontSize","")),l.remove(l.select("sup"===f.inline?"sub":"sup",g),!0)),Ts(r,m,0,i)):r.remove(i,!0)})}var s,c,l,f,d=e.formatter.get(t),m=d[0],g=!r&&e.selection.isCollapsed(),p=e.dom,h=e.selection;if("false"!==p.getContentEditable(h.getNode()))m&&(r?Vo(r)?i(d,r)||((s=p.createRng()).setStartBefore(r),s.setEndAfter(r),a(p,gi(e,s,d),!0)):a(p,r,!0):g&&ri(m)&&!bi(e).length?function(e,t,n){var r,o=e.selection,i=o.getRng(),a=i.startOffset,u=i.startContainer.nodeValue,s=Oo(e.getBody(),o.getStart());s&&(r=ys(s));var c,l,f,d,m=/[^\s\u00a0\u00ad\u200b\ufeff]/;u&&0<a&&a<u.length&&m.test(u.charAt(a))&&m.test(u.charAt(a-1))?(c=o.getBookmark(),i.collapse(!0),l=Ki(gi(e,i,e.formatter.get(t))),e.formatter.apply(t,n,l),o.moveToBookmark(c)):(s&&r.nodeValue===Sx||(f=e.getDoc(),d=Cs(!0).dom,r=(s=f.importNode(d,!0)).firstChild,i.insertNode(s),a=1),e.formatter.apply(t,n,s),o.setCursorLocation(r,a))}(e,t,n):(c=h.getNode(),l=d[0],e.settings.forced_root_block||!l.defaultBlock||p.getParent(c,p.isBlock)||zx(e,l.defaultBlock),h.setRng(ts(h.getRng())),Ei(h,!0,function(){Si(e,function(t,n){var r=n?t:gi(e,t,d);a(p,r,!1)})}),qo(p,h,h.getRng()),e.nodeChanged()),f=e,_x(kx[t],function(e){e(f)})),Pi(e,t,r,n);else{r=h.getNode();for(var v=0,b=d.length;v<b;v++){var y=d[v];if(y.ceFalseOverride&&ni(y)&&p.is(r,y.selector)){o(r,y);break}}Pi(e,t,r,n)}},Hx=function(e){return e.selection.getStart()},jx=function(e,t,n){var r=Ws(e,t);j(n,function(n,o){function i(n){var i,a=$s(e,r,o,n.similar,qs(n)?n.vars:void 0),u=a.isSome();n.state.get()!==u&&(n.state.set(u),i=a.getOr(t),qs(n)?n.callback(u,{node:i,format:o,parents:r}):E(n.callbacks,function(e){return e(u,{node:i,format:o,parents:r})}))}E([n.withSimilar,n.withoutSimilar],i),E(n.withVars,i)})},Vx=re(function(){return document.implementation.createHTMLDocument("undo")}),qx=0,$x=function(e,t){return e&&e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.name===t},Wx=Pp.makeMap,Kx=Pp.each,Xx=Pp.explode,Yx=Pp.extend,Gx=Hb.DOM,Jx=(Ax=function(e,t){return Ig(e)&&Ig(t)?Jx(e,t):t},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)throw new Error("Can't merge zero objects");for(var n={},r=0;r<e.length;r++){var o,i=e[r];for(o in i)tp(i,o)&&(n[o]=Ax(n[o],i[o]))}return n}),Qx="autoresize_on_init,content_editable_state,convert_fonts_to_spans,inline_styles,padd_empty_with_br,block_elements,boolean_attributes,editor_deselector,editor_selector,elements,file_browser_callback_types,filepicker_validator_handler,force_hex_style_colors,force_p_newlines,gecko_spellcheck,images_dataimg_filter,media_scripts,mode,move_caret_before_on_enter_elements,non_empty_elements,self_closing_elements,short_ended_elements,special,spellchecker_select_languages,spellchecker_whitelist,tab_focus,table_responsive_width,text_block_elements,text_inline_elements,toolbar_drawer,types,validate,whitespace_elements,paste_word_valid_elements,paste_retain_style_properties,paste_convert_word_fake_lists".split(","),Zx="bbcode,colorpicker,contextmenu,fullpage,legacyoutput,spellchecker,textcolor".split(","),ew="imagetools,toc".split(","),tw=wp().deviceType,nw=tw.isTouch(),rw=tw.isPhone(),ow=tw.isTablet(),iw=["lists","autolink","autosave"],aw={table_grid:!1,object_resizing:!1,resize:!1},uw=(Rx={},{add:function(e,t){Rx[e]=t},get:function(e){return Rx[e]||{icons:{}}},has:function(e){return tp(Rx,e)}}),sw=g(Qc,"clientWidth"),cw=g(Qc,"clientHeight"),lw=g(Zc,"margin-top"),fw=g(Zc,"margin-left"),dw=Yb.PluginManager,mw=Yb.ThemeManager,gw=function(e,t){var n=e.editorManager.baseURL+"/skins/content",r="content"+e.editorManager.suffix+".css",o=!0===e.inline;return S(t,function(t){return/^[a-z0-9\-]+$/i.test(t)&&!o?n+"/"+t+"/"+r:e.documentBaseURI.toAbsolute(t)})},pw=0,hw=Pp.each,vw=Hb.DOM,bw=[9,27,vC.HOME,vC.END,19,20,44,144,145,33,34,45,16,17,18,91,92,93,vC.DOWN,vC.UP,vC.LEFT,vC.RIGHT].concat(Tp.browser.isFirefox()?[224]:[]),yw="data-mce-placeholder",Cw=/[\u0591-\u07FF\uFB1D-\uFDFF\uFE70-\uFEFC]/,xw=g(Nl,!0),ww=g(Nl,!1),Sw=oh,Ew=ih,kw=St([{remove:["element"]},{moveToElement:["element"]},{moveToPosition:["position"]}]),Nw=Qp,_w=g(sf,!0),Aw=g(sf,!1),Rw=St([{before:["element"]},{start:["element"]},{end:["element"]},{after:["element"]}]),Dw=function(e){return e.fold(d,d,d,d)};g(Af,!1),g(Af,!0),(Tx=Dx={})[Tx.Br=0]="Br",Tx[Tx.Block=1]="Block",Tx[Tx.Wrap=2]="Wrap",Tx[Tx.Eol=3]="Eol";var Tw,Ow,Bw=g(Of,py.isAbove,-1),Pw=g(Of,py.isBelow,1),Lw=g(Bf,-1,Bw),Iw=g(Bf,1,Pw);(Ow=Tw=Tw||{})[Ow.Up=-1]="Up",Ow[Ow.Down=1]="Down";var Mw,Fw,Uw=g(Ff,Tw.Up,dr,mr),zw=g(Ff,Tw.Down,mr,dr),Hw=ih,jw=lo,Vw=function(e,t){var n=e.selection.getRng(),r=e.getBody();if(t){var o=py.fromRangeEnd(n),i=Pw(r,o);return z(i.positions)}return o=py.fromRangeStart(n),U((i=Bw(r,o)).positions)},qw=g(rd,!0),$w=g(rd,!1),Ww=function(e){return _(S(e.selection.getSelectedBlocks(),Lp.fromDom),function(e){return!vd(e)&&!Ae(e).exists(vd)&&_t(e,function(e){return oh(e.dom)||ih(e.dom)}).exists(function(e){return oh(e.dom)})})},Kw=ih,Xw=g(zd,function(e){return e.bottom},function(e,t){return e.y<t}),Yw=g(zd,function(e){return e.top},function(e,t){return e.y>t}),Gw=g(Hd,Bw),Jw=g(Hd,Pw),Qw=function(e,t){return n=py.after(t),!!nh(n.getNode())||tC(e,py.after(t)).map(function(e){return nh(e.getNode())}).getOr(!1);var n},Zw=St([{br:[]},{block:[]},{none:[]}]),eS=wp().browser,tS=wp(),nS=g(Rm,Qh),rS=g(Rm," "),oS=(Bm.prototype.nodeChanged=function(e){var t,n,r,o=this.editor.selection;this.editor.initialized&&o&&!this.editor.getParam("disable_nodechange")&&!this.editor.mode.isReadOnly()&&(r=this.editor.getBody(),(t=o.getStart(!0)||r).ownerDocument===this.editor.getDoc()&&this.editor.dom.isChildOf(t,r)||(t=r),n=[],this.editor.dom.getParent(t,function(e){return e===r||void n.push(e)}),(e=e||{}).element=t,e.parents=n,this.editor.fire("NodeChange",e))},Bm.prototype.isSameElementPath=function(e){var t,n=this.editor.$(e).parentsUntil(this.editor.getBody()).add(e);if(n.length===this.lastPath.length){for(t=n.length;0<=t&&n[t]===this.lastPath[t];t--);if(-1===t)return this.lastPath=n,!0}return this.lastPath=n,!1},Bm),iS=ih,aS=oh,uS=function(e){e.on(function(e){Im(e.ghost)}),e.clear()},sS=oh,cS=ih,lS=Hb.DOM,fS=Hb.DOM,dS=Hb.DOM,mS=function(e,t,n){var r,o,i,a,u=dw.get(n),s=dw.urls[n]||e.documentBaseUrl.replace(/\/$/,"");if(n=Pp.trim(n),u&&-1===Pp.inArray(t,n)&&(Pp.each(dw.dependencies(n),function(n){mS(e,t,n)}),!e.plugins[n]))try{var c=new u(e,s,e.$);(e.plugins[n]=c).init&&(c.init(e,s),t.push(n))}catch(u){o=n,i=u,Bi(r=e,"PluginLoadError",{message:a=Xb.translate(["Failed to initialize plugin: {0}",o])}),Rf(a,i),ol(r,a)}},gS=Hb.DOM,pS={"font-size":"size","font-family":"face"},hS=ig("font-size"),vS=c(function(e){return e.replace(/[\'\"\\]/g,"").replace(/,\s+/g,",")},ig("font-family")),bS=Pp.each,yS=Pp.map,CS=Pp.inArray,xS=(cg.prototype.execCommand=function(e,t,n,r){var o,i,a=!1,u=this;if(!u.editor.removed){if("mcefocus"!==e.toLowerCase()&&(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus?xa(i=u.editor).each(function(e){return i.selection.setRng(e)}):u.editor.focus()),(r=u.editor.fire("BeforeExecCommand",{command:e,ui:t,value:n})).isDefaultPrevented())return!1;var s=e.toLowerCase();if(o=u.commands.exec[s])return o(s,t,n),u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;if(bS(this.editor.plugins,function(r){if(r.execCommand&&r.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!(a=!0)}),a)return a;if(u.editor.theme&&u.editor.theme.execCommand&&u.editor.theme.execCommand(e,t,n))return u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0;try{a=u.editor.getDoc().execCommand(e,t,n)}catch(r){}return!!a&&(u.editor.fire("ExecCommand",{command:e,ui:t,value:n}),!0)}},cg.prototype.queryCommandState=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.state[e])return t(e);try{return this.editor.getDoc().queryCommandState(e)}catch(e){}return!1}},cg.prototype.queryCommandValue=function(e){var t;if(!this.editor.quirks.isHidden()&&!this.editor.removed){if(e=e.toLowerCase(),t=this.commands.value[e])return t(e);try{return this.editor.getDoc().queryCommandValue(e)}catch(e){}}},cg.prototype.addCommands=function(e,t){void 0===t&&(t="exec");var n=this;bS(e,function(e,r){bS(r.toLowerCase().split(","),function(r){n.commands[t][r]=e})})},cg.prototype.addCommand=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.exec[e]=function(e,o,i,a){return t.call(n||r.editor,o,i,a)}},cg.prototype.queryCommandSupported=function(e){if(e=e.toLowerCase(),this.commands.exec[e])return!0;try{return this.editor.getDoc().queryCommandSupported(e)}catch(e){}return!1},cg.prototype.addQueryStateHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.state[e]=function(){return t.call(n||r.editor)}},cg.prototype.addQueryValueHandler=function(e,t,n){var r=this;e=e.toLowerCase(),this.commands.value[e]=function(){return t.call(n||r.editor)}},cg.prototype.hasCustomCommand=function(e){return e=e.toLowerCase(),!!this.commands.exec[e]},cg.prototype.execNativeCommand=function(e,t,n){return void 0===t&&(t=!1),void 0===n&&(n=null),this.editor.getDoc().execCommand(e,t,n)},cg.prototype.isFormatMatch=function(e){return this.editor.formatter.match(e)},cg.prototype.toggleFormat=function(e,t){this.editor.formatter.toggle(e,t),this.editor.nodeChanged()},cg.prototype.storeSelection=function(e){this.selectionBookmark=this.editor.selection.getBookmark(e)},cg.prototype.restoreSelection=function(){this.editor.selection.moveToBookmark(this.selectionBookmark)},cg.prototype.setupCommands=function(e){function t(t){return function(){
|
33
|
+
var n=e.selection,r=n.isCollapsed()?[e.dom.getParent(n.getNode(),e.dom.isBlock)]:n.getSelectedBlocks(),o=yS(r,function(n){return!!e.formatter.matchNode(n,t)});return-1!==CS(o,!0)}}var n=this;this.addCommands({"mceResetDesignMode,mceBeginUndoLevel":s,"mceEndUndoLevel,mceAddUndoLevel":function(){e.undoManager.add()},mceFocus:function(t,n,r){var o,i;i=r,(o=e).removed||(i?PC:function(e){var t=e.selection,n=e.getBody(),r=t.getRng();e.quirks.refreshContentEditable(),void 0!==e.bookmark&&!1===Aa(e)&&xa(e).each(function(t){e.selection.setRng(t),r=t});var o,i,a=(o=e,i=t.getNode(),o.dom.getParent(i,function(e){return"true"===o.dom.getContentEditable(e)}));if(e.$.contains(n,a))return _a(a),Na(e,r),PC(e);e.inline||(Tp.opera||_a(n),e.getWin().focus()),(Tp.gecko||e.inline)&&(_a(n),Na(e,r)),PC(e)})(o)},"Cut,Copy,Paste":function(t){var r,o,i=e.getDoc();try{n.execNativeCommand(t)}catch(t){r=!0}!(r="paste"===t&&!i.queryCommandEnabled(t)||r)&&i.queryCommandSupported(t)||(o=e.translate("Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead."),Tp.mac&&(o=o.replace(/Ctrl\+/g,"\u2318+")),e.notificationManager.open({text:o,type:"error"}))},unlink:function(){var t;e.selection.isCollapsed()?(t=e.dom.getParent(e.selection.getStart(),"a"))&&e.dom.remove(t,!0):e.formatter.remove("link")},"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull,JustifyNone":function(t){var r=t.substring(7);"full"===r&&(r="justify"),bS("left,center,right,justify".split(","),function(t){r!==t&&e.formatter.remove("align"+t)}),"none"!==r&&n.toggleFormat("align"+r)},"InsertUnorderedList,InsertOrderedList":function(t){var r;n.execNativeCommand(t);var o=e.dom.getParent(e.selection.getNode(),"ol,ul");o&&(r=o.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(r.nodeName)&&(n.storeSelection(),e.dom.split(r,o),n.restoreSelection()))},"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){n.toggleFormat(e)},"ForeColor,HiliteColor":function(e,t,r){n.toggleFormat(e,{value:r})},FontName:function(t,n,r){var o,i;i=sg(o=e,r),o.formatter.toggle("fontname",{value:S(i.split(/\s*,\s*/),function(e){return-1===e.indexOf(" ")||ap(e,'"')||ap(e,"'")?e:"'"+e+"'"}).join(",")}),o.nodeChanged()},FontSize:function(t,n,r){var o;(o=e).formatter.toggle("fontsize",{value:sg(o,r)}),o.nodeChanged()},LineHeight:function(t,n,r){var o;(o=e).formatter.toggle("lineheight",{value:String(r)}),o.nodeChanged()},Lang:function(e,t,r){n.toggleFormat(e,{value:r.code,customValue:r.customCode})},RemoveFormat:function(t){e.formatter.remove(t)},mceBlockQuote:function(){n.toggleFormat("blockquote")},FormatBlock:function(e,t,r){return n.toggleFormat(r||"p")},mceCleanup:function(){var t=e.selection.getBookmark();e.setContent(e.getContent()),e.selection.moveToBookmark(t)},mceRemoveNode:function(t,r,o){var i=o||e.selection.getNode();i!==e.getBody()&&(n.storeSelection(),e.dom.remove(i,!0),n.restoreSelection())},mceSelectNodeDepth:function(t,n,r){var o=0;e.dom.getParent(e.selection.getNode(),function(t){if(1===t.nodeType&&o++===r)return e.selection.select(t),!1},e.getBody())},mceSelectNode:function(t,n,r){e.selection.select(r)},mceInsertContent:function(t,n,r){var o,i,a,u;o=e,a=(i=function(e){if("string"==typeof e)return{content:e,details:{}};var t=Pp.extend({paste:e.paste,data:{paste:e.paste}},e);return{content:e.content,details:t}}(r)).content,u=i.details,xc(o).editor.insertContent(a,u)},mceInsertRawHTML:function(t,n,r){e.selection.setContent("tiny_mce_marker");var o=e.getContent();e.setContent(o.replace(/tiny_mce_marker/g,function(){return r}))},mceInsertNewLine:function(t,n,r){km(e,r)},mceToggleFormat:function(e,t,r){n.toggleFormat(r)},mceSetContent:function(t,n,r){e.setContent(r)},"Indent,Outdent":function(t){bd(e,t)},mceRepaint:s,InsertHorizontalRule:function(){e.execCommand("mceInsertContent",!1,"<hr />")},mceToggleVisualAid:function(){e.hasVisual=!e.hasVisual,e.addVisual()},mceReplaceContent:function(t,n,r){e.execCommand("mceInsertContent",!1,r.replace(/\{\$selection\}/g,e.selection.getContent({format:"text"})))},mceInsertLink:function(t,n,r){"string"==typeof r&&(r={href:r});var o=e.dom.getParent(e.selection.getNode(),"a");r.href=r.href.replace(/ /g,"%20"),o&&r.href||e.formatter.remove("link"),r.href&&e.formatter.apply("link",r,o)},selectAll:function(){var t,n=e.dom.getParent(e.selection.getStart(),oh);n&&((t=e.dom.createRng()).selectNodeContents(n),e.selection.setRng(t))},mceNewDocument:function(){e.setContent("")},InsertLineBreak:function(t,n,r){return mm(e,r),!0}}),n.addCommands({JustifyLeft:t("alignleft"),JustifyCenter:t("aligncenter"),JustifyRight:t("alignright"),JustifyFull:t("alignjustify"),"Bold,Italic,Underline,Strikethrough,Superscript,Subscript":function(e){return n.isFormatMatch(e)},mceBlockQuote:function(){return n.isFormatMatch("blockquote")},Outdent:function(){return hd(e)},"InsertUnorderedList,InsertOrderedList":function(t){var n=e.dom.getParent(e.selection.getNode(),"ul,ol");return n&&("insertunorderedlist"===t&&"UL"===n.tagName||"insertorderedlist"===t&&"OL"===n.tagName)}},"state"),n.addCommands({Undo:function(){e.undoManager.undo()},Redo:function(){e.undoManager.redo()}}),n.addQueryValueHandler("FontName",function(){return ug(t=e,function(e){return vS(t.getBody(),e.dom)}).getOr("");var t},this),n.addQueryValueHandler("FontSize",function(){return ug(t=e,function(e){return hS(t.getBody(),e.dom)}).getOr("");var t},this),n.addQueryValueHandler("LineHeight",function(){return ug(t=e,function(e){var n=Lp.fromDom(t.getBody());return ds(e,function(e){return vt(e,"line-height")},g(he,n)).getOrThunk(function(){var t=parseFloat(ht(e,"line-height")),n=parseFloat(ht(e,"font-size"));return String(t/n)})}).getOr("");var t},this)},cg),wS="data-mce-contenteditable",SS=Pp.makeMap("focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input beforeinput contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchmove touchend touchcancel"," "),ES=(hg.isNative=function(e){return!!SS[e.toLowerCase()]},hg.prototype.fire=function(e,t){var n=e.toLowerCase(),r=mn(n,t||{},this.scope);this.settings.beforeFire&&this.settings.beforeFire(r);var o=this.bindings[n];if(o)for(var i=0,a=o.length;i<a;i++){var u=o[i];if(!u.removed){if(u.once&&this.off(n,u.func),r.isImmediatePropagationStopped())return r;if(!1===u.func.call(this.scope,r))return r.preventDefault(),r}}return r},hg.prototype.on=function(e,t,n,r){if(t=!1===t?Vg:t){var o={func:t,removed:!1};r&&Pp.extend(o,r);for(var i=e.toLowerCase().split(" "),a=i.length;a--;){var u=i[a],s=this.bindings[u];s||(s=[],this.toggleEvent(u,!0)),s=n?ne([o],s,!0):ne(ne([],s,!0),[o],!1),this.bindings[u]=s}}return this},hg.prototype.off=function(e,t){var n=this;if(e)for(var r=e.toLowerCase().split(" "),o=r.length;o--;){var i,a=r[o],u=this.bindings[a];if(!a)return j(this.bindings,function(e,t){n.toggleEvent(t,!1),delete n.bindings[t]}),this;u&&(t?(u=(i=N(u,function(e){return e.func===t})).fail,this.bindings[a]=u,E(i.pass,function(e){e.removed=!0})):u.length=0,u.length||(this.toggleEvent(e,!1),delete this.bindings[a]))}else j(this.bindings,function(e,t){n.toggleEvent(t,!1)}),this.bindings={};return this},hg.prototype.once=function(e,t,n){return this.on(e,t,n,{once:!0})},hg.prototype.has=function(e){return e=e.toLowerCase(),!(!this.bindings[e]||0===this.bindings[e].length)},hg),kS={fire:function(e,t,n){if(this.removed&&"remove"!==e&&"detach"!==e)return t;var r=vg(this).fire(e,t);if(!1!==n&&this.parent)for(var o=this.parent();o&&!r.isPropagationStopped();)o.fire(e,r,!1),o=o.parent();return r},on:function(e,t,n){return vg(this).on(e,t,n)},off:function(e,t){return vg(this).off(e,t)},once:function(e,t){return vg(this).once(e,t)},hasEventListeners:function(e){return vg(this).has(e)}},NS=Hb.DOM,_S=rp(rp({},kS),{bindPendingEventDelegates:function(){var e=this;Pp.each(e._pendingNativeEvents,function(t){Cg(e,t)})},toggleNativeEvent:function(e,t){var n=this;"focus"!==e&&"blur"!==e&&(n.removed||(t?n.initialized?Cg(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(bg(n,e),e,n.delegates[e]),delete n.delegates[e])))},unbindAllNativeEvents:function(){var e=this,t=e.getBody(),n=e.dom;e.delegates&&(j(e.delegates,function(t,n){e.dom.unbind(bg(e,n),n,t)}),delete e.delegates),!e.inline&&t&&n&&(t.onload=null,n.unbind(e.getWin()),n.unbind(e.getDoc())),n&&(n.unbind(t),n.unbind(e.getContainer()))}}),AS=["design","readonly"],RS=Pp.each,DS=Pp.explode,TS={f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},OS=Pp.makeMap("alt,ctrl,shift,meta,access"),BS=(Sg.prototype.add=function(e,t,n,r){var o=this,i=o.normalizeCommandFunc(n);return RS(DS(Pp.trim(e)),function(e){var n=o.createShortcut(e,t,i,r);o.shortcuts[n.id]=n}),!0},Sg.prototype.remove=function(e){var t=this.createShortcut(e);return!!this.shortcuts[t.id]&&(delete this.shortcuts[t.id],!0)},Sg.prototype.normalizeCommandFunc=function(e){var t=this,n=e;return"string"==typeof n?function(){t.editor.execCommand(n,!1,null)}:Pp.isArray(n)?function(){t.editor.execCommand(n[0],n[1],n[2])}:n},Sg.prototype.createShortcut=function(e,t,n,r){var o=Pp.map(DS(e,">"),wg);return o[o.length-1]=Pp.extend(o[o.length-1],{func:n,scope:r||this.editor}),Pp.extend(o[0],{desc:this.editor.translate(t),subpatterns:o.slice(1)})},Sg.prototype.hasModifier=function(e){return e.altKey||e.ctrlKey||e.metaKey},Sg.prototype.isFunctionKey=function(e){return"keydown"===e.type&&112<=e.keyCode&&e.keyCode<=123},Sg.prototype.matchShortcut=function(e,t){return!!t&&t.ctrl===e.ctrlKey&&t.meta===e.metaKey&&t.alt===e.altKey&&t.shift===e.shiftKey&&!!(e.keyCode===t.keyCode||e.charCode&&e.charCode===t.charCode)&&(e.preventDefault(),!0)},Sg.prototype.executeShortcutAction=function(e){return e.func?e.func.call(e.scope):null},Sg),PS=Hb.DOM,LS=Pp.extend,IS=Pp.each,MS=Pp.resolve,FS=Tp.ie,US=(Eg.prototype.render=function(){!function(e){var t=e.id;Xb.setCode($r(e));var n,r,o,i,a=function(){gS.unbind(window,"ready",a),e.render()};Uv.Event.domLoaded?e.getElement()&&Tp.contentEditable&&(n=Lp.fromDom(e.getElement()),r=R(n.dom.attributes,function(e,t){return e[t.name]=t.value,e},{}),e.on("remove",function(){k(n.dom.attributes,function(e){return gt(n,e.name),0}),ft(n,r)}),e.ui.styleSheetLoader=Hh.forElement(n,{contentCssCors:(o=e).getParam("content_css_cors"),referrerPolicy:qr(o)}),e.getParam("inline")?e.inline=!0:(e.orgVisibility=e.getElement().style.visibility,e.getElement().style.visibility="hidden"),(i=e.getElement().form||gS.getParent(t,"form"))&&(e.formElement=i,e.getParam("hidden_input")&&!Jp(e.getElement())&&(gS.insertAfter(gS.create("input",{type:"hidden",name:t}),t),e.hasHiddenInput=!0),e.formEventDelegate=function(t){e.fire(t.type,t)},gS.bind(i,"submit reset",e.formEventDelegate),e.on("reset",function(){e.resetContent()}),!e.getParam("submit_patch")||i.submit.nodeType||i.submit.length||i._mceOldSubmit||(i._mceOldSubmit=i.submit,i.submit=function(){return e.editorManager.triggerSave(),e.setDirty(!1),i._mceOldSubmit(i)})),e.windowManager=nl(e),e.notificationManager=tl(e),"xml"===e.getParam("encoding")&&e.on("GetContent",function(e){e.save&&(e.content=gS.encode(e.content))}),e.getParam("add_form_submit_trigger")&&e.on("submit",function(){e.initialized&&e.save()}),e.getParam("add_unload_trigger")&&(e._beforeUnload=function(){!e.initialized||e.destroyed||e.isHidden()||e.save({format:"raw",no_events:!0,set_dirty:!1})},e.editorManager.on("BeforeUnload",e._beforeUnload)),e.editorManager.add(e),og(e,e.suffix)):gS.bind(window,"ready",a)}(this)},Eg.prototype.focus=function(e){this.execCommand("mceFocus",!1,e)},Eg.prototype.hasFocus=function(){return Aa(this)},Eg.prototype.execCallback=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r,o=this.settings[e];if(o)return this.callbackLookup&&(r=this.callbackLookup[e])&&(o=r.func,r=r.scope),"string"==typeof o&&(r=(r=o.replace(/\.\w+$/,""))?MS(r):0,o=MS(o),this.callbackLookup=this.callbackLookup||{},this.callbackLookup[e]={func:o,scope:r}),o.apply(r||this,t)},Eg.prototype.translate=function(e){return Xb.translate(e)},Eg.prototype.getParam=function(e,t,n){return i=t,a=n,l=(o=e)in(r=this).settings?r.settings[o]:i,"hash"===a?(c={},"string"==typeof(s=l)?E(0<s.indexOf("=")?s.split(/[;,](?![^=;,]*(?:[;,]|$))/):s.split(","),function(e){var t=e.split("=");1<t.length?c[Pp.trim(t[0])]=Pp.trim(t[1]):c[Pp.trim(t[0])]=Pp.trim(t[0])}):c=s,c):"string"===a?Jc(Lg,r,o).getOr(i):"number"===a?Jc(jg,r,o).getOr(i):"boolean"===a?Jc(Ug,r,o).getOr(i):"object"===a?Jc(Ig,r,o).getOr(i):"array"===a?Jc(Mg,r,o).getOr(i):"string[]"===a?Jc((u=Lg,function(e){return Mg(e)&&P(e,u)}),r,o).getOr(i):"function"===a?Jc(Hg,r,o).getOr(i):l;var r,o,i,a,u,s,c,l},Eg.prototype.hasPlugin=function(e,t){return!(!x(Qr(this).split(/[ ,]/),e)||t&&void 0===dw.get(e))},Eg.prototype.nodeChanged=function(e){this._nodeChangeDispatcher.nodeChanged(e)},Eg.prototype.addCommand=function(e,t,n){this.editorCommands.addCommand(e,t,n)},Eg.prototype.addQueryStateHandler=function(e,t,n){this.editorCommands.addQueryStateHandler(e,t,n)},Eg.prototype.addQueryValueHandler=function(e,t,n){this.editorCommands.addQueryValueHandler(e,t,n)},Eg.prototype.addShortcut=function(e,t,n,r){this.shortcuts.add(e,t,n,r)},Eg.prototype.execCommand=function(e,t,n,r){return this.editorCommands.execCommand(e,t,n,r)},Eg.prototype.queryCommandState=function(e){return this.editorCommands.queryCommandState(e)},Eg.prototype.queryCommandValue=function(e){return this.editorCommands.queryCommandValue(e)},Eg.prototype.queryCommandSupported=function(e){return this.editorCommands.queryCommandSupported(e)},Eg.prototype.show=function(){this.hidden&&(this.hidden=!1,this.inline?this.getBody().contentEditable="true":(PS.show(this.getContainer()),PS.hide(this.id)),this.load(),this.fire("show"))},Eg.prototype.hide=function(){var e=this,t=e.getDoc();e.hidden||(FS&&t&&!e.inline&&t.execCommand("SelectAll"),e.save(),e.inline?(e.getBody().contentEditable="false",e===e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(PS.hide(e.getContainer()),PS.setStyle(e.id,"display",e.orgDisplay)),e.hidden=!0,e.fire("hide"))},Eg.prototype.isHidden=function(){return!!this.hidden},Eg.prototype.setProgressState=function(e,t){this.fire("ProgressState",{state:e,time:t})},Eg.prototype.load=function(e){var t=this.getElement();if(this.removed)return"";if(t){(e=e||{}).load=!0;var n=Jp(t)?t.value:t.innerHTML,r=this.setContent(n,e);return e.element=t,e.no_events||this.fire("LoadContent",e),e.element=t=null,r}},Eg.prototype.save=function(e){var t,n,r=this,o=r.getElement();if(o&&r.initialized&&!r.removed)return(e=e||{}).save=!0,e.element=o,e.content=r.getContent(e),e.no_events||r.fire("SaveContent",e),"raw"===e.format&&r.fire("RawSaveContent",e),t=e.content,Jp(o)?o.value=t:(!e.is_removing&&r.inline||(o.innerHTML=t),(n=PS.getParent(r.id,"form"))&&IS(n.elements,function(e){if(e.name===r.id)return e.value=t,!1})),e.element=o=null,!1!==e.set_dirty&&r.setDirty(!1),t},Eg.prototype.setContent=function(e,t){return Vc(this,e,t)},Eg.prototype.getContent=function(e){return t=this,r=(n=void 0===(n=e)?{}:n).format||"html",o=n,xc(t).editor.getContent(o,r);var t,n,r,o},Eg.prototype.insertContent=function(e,t){t&&(e=LS({content:e},t)),this.execCommand("mceInsertContent",!1,e)},Eg.prototype.resetContent=function(e){void 0===e?Vc(this,this.startContent,{format:"raw"}):Vc(this,e),this.undoManager.reset(),this.setDirty(!1),this.nodeChanged()},Eg.prototype.isDirty=function(){return!this.isNotDirty},Eg.prototype.setDirty=function(e){var t=!this.isNotDirty;this.isNotDirty=!e,e&&e!==t&&this.fire("dirty")},Eg.prototype.getContainer=function(){return this.container||(this.container=PS.get(this.editorContainer||this.id+"_parent")),this.container},Eg.prototype.getContentAreaContainer=function(){return this.contentAreaContainer},Eg.prototype.getElement=function(){return this.targetElm||(this.targetElm=PS.get(this.id)),this.targetElm},Eg.prototype.getWin=function(){var e;return this.contentWindow||(e=this.iframeElement)&&(this.contentWindow=e.contentWindow),this.contentWindow},Eg.prototype.getDoc=function(){var e;return this.contentDocument||(e=this.getWin())&&(this.contentDocument=e.document),this.contentDocument},Eg.prototype.getBody=function(){var e=this.getDoc();return this.bodyElement||(e?e.body:null)},Eg.prototype.convertURL=function(e,t,n){var r=this.settings;return r.urlconverter_callback?this.execCallback("urlconverter_callback",e,n,!0,t):!r.convert_urls||n&&"LINK"===n.nodeName||0===e.indexOf("file:")||0===e.length?e:r.relative_urls?this.documentBaseURI.toRelative(e):this.documentBaseURI.toAbsolute(e,r.remove_script_host)},Eg.prototype.addVisual=function(e){var t;t=e,wc(this).editor.addVisual(t)},Eg.prototype.remove=function(){var e,t,n,r,o;(e=this).removed||(t=e._selectionOverrides,n=e.editorUpload,r=e.getBody(),o=e.getElement(),r&&e.save({is_removing:!0}),e.removed=!0,e.unbindAllNativeEvents(),e.hasHiddenInput&&o&&Gx.remove(o.nextSibling),e.fire("remove"),e.editorManager.remove(e),!e.inline&&r&&Gx.setStyle(e.id,"display",e.orgDisplay),e.fire("detach"),Gx.remove(e.getContainer()),qc(t),qc(n),e.destroy())},Eg.prototype.destroy=function(e){var t,n,r,o,i,a,u;n=e,a=(t=this).selection,u=t.dom,t.destroyed||(n||t.removed?(n||(t.editorManager.off("beforeunload",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),qc(a),qc(u)),(o=(r=t).formElement)&&(o._mceOldSubmit&&(o.submit=o._mceOldSubmit,o._mceOldSubmit=null),Gx.unbind(o,"submit reset",r.formEventDelegate)),(i=t).contentAreaContainer=i.formElement=i.container=i.editorContainer=null,i.bodyElement=i.contentDocument=i.contentWindow=null,i.iframeElement=i.targetElm=null,i.selection&&(i.selection=i.selection.win=i.selection.dom=i.selection.dom.doc=null),t.destroyed=!0):t.remove())},Eg.prototype.uploadImages=function(e){return this.editorUpload.uploadImages(e)},Eg.prototype._scanForImages=function(){return this.editorUpload.scanForImages()},Eg.prototype.addButton=function(){throw new Error("editor.addButton has been removed in tinymce 5x, use editor.ui.registry.addButton or editor.ui.registry.addToggleButton or editor.ui.registry.addSplitButton instead")},Eg.prototype.addSidebar=function(){throw new Error("editor.addSidebar has been removed in tinymce 5x, use editor.ui.registry.addSidebar instead")},Eg.prototype.addMenuItem=function(){throw new Error("editor.addMenuItem has been removed in tinymce 5x, use editor.ui.registry.addMenuItem instead")},Eg.prototype.addContextToolbar=function(){throw new Error("editor.addContextToolbar has been removed in tinymce 5x, use editor.ui.registry.addContextToolbar instead")},Eg),zS=Hb.DOM,HS=Pp.explode,jS=Pp.each,VS=Pp.extend,qS=0,$S=!1,WS=[],KS=[],XS="CSS1Compat"!==document.compatMode,YS=rp(rp({},kS),{baseURI:null,baseURL:null,defaultSettings:{},documentBaseURL:null,suffix:null,$:Ib,majorVersion:"5",minorVersion:"10.7",releaseDate:"2022-12-06",editors:WS,i18n:Xb,activeEditor:null,focusedEditor:null,settings:{},setup:function(){var e,t="",n=jC.getDocumentBaseUrl(document.location);/^[^:]+:\/\/\/?[^\/]+\//.test(n)&&(n=n.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(n)||(n+="/"));var r=window.tinymce||window.tinyMCEPreInit;if(r)e=r.base||r.baseURL,t=r.suffix;else{for(var o,i=document.getElementsByTagName("script"),a=0;a<i.length;a++)if(""!==(o=i[a].src||"")){var u=o.substring(o.lastIndexOf("/"));if(/tinymce(\.full|\.jquery|)(\.min|\.dev|)\.js/.test(o)){-1!==u.indexOf(".min")&&(t=".min"),e=o.substring(0,o.lastIndexOf("/"));break}}!e&&document.currentScript&&(-1!==(o=document.currentScript.src).indexOf(".min")&&(t=".min"),e=o.substring(0,o.lastIndexOf("/")))}this.baseURL=new jC(n).toAbsolute(e),this.documentBaseURL=n,this.baseURI=new jC(this.baseURL),this.suffix=t,this.on("AddEditor",g(Ea,this)),this.on("RemoveEditor",g(ka,this))},overrideDefaults:function(e){var t=e.base_url;t&&this._setBaseUrl(t);var n=e.suffix;e.suffix&&(this.suffix=n);var r=(this.defaultSettings=e).plugin_base_urls;void 0!==r&&j(r,function(e,t){Yb.PluginManager.urls[t]=e})},init:function(e){function t(e){var t=e.id;return t||(t=K(e,"name").filter(function(e){return!zS.get(e)}).getOrThunk(zS.uniqueId),e.setAttribute("id",t)),t}function n(e,t){return t.constructor===RegExp?t.test(e.className):zS.hasClass(e,t)}var r,o=this,i=Pp.makeMap("area base basefont br col frame hr img input isindex link meta param embed source wbr track colgroup option table tbody tfoot thead tr th td script noscript style textarea video audio iframe object menu"," "),a=function(e){r=e},u=function(){function r(e,t,n){var r=new US(e,t,o);f.push(r),r.on("init",function(){++l===s.length&&a(f)}),r.targetElm=r.targetElm||n,r.render()}var s,c,l=0,f=[];zS.unbind(window,"ready",u),(c=e.onpageload)&&c.apply(o,[]),s=Ib.unique(function(e){var t=[];if(Tp.browser.isIE()&&Tp.browser.version.major<11)return Rf("TinyMCE does not support the browser you are using. For a list of supported browsers please see: https://www.tinymce.com/docs/get-started/system-requirements/"),[];if(XS)return Rf("Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode."),[];if(e.types)return jS(e.types,function(e){t=t.concat(zS.select(e.selector))}),t;if(e.selector)return zS.select(e.selector);if(e.target)return[e.target];switch(e.mode){case"exact":var r=e.elements||"";0<r.length&&jS(HS(r),function(e){var n=zS.get(e);n?t.push(n):jS(document.forms,function(n){jS(n.elements,function(n){n.name===e&&(e="mce_editor_"+qS++,zS.setAttrib(n,"id",e),t.push(n))})})});break;case"textareas":case"specific_textareas":jS(zS.select("textarea"),function(r){e.editor_deselector&&n(r,e.editor_deselector)||e.editor_selector&&!n(r,e.editor_selector)||t.push(r)})}return t}(e)),e.types?jS(e.types,function(n){Pp.each(s,function(o){return!zS.is(o,n.selector)||(r(t(o),VS({},e,n),o),!1)})}):(Pp.each(s,function(e){var t;(t=o.get(e.id))&&t.initialized&&!(t.getContainer()||t.getBody()).parentNode&&(_g(t),t.unbindAllNativeEvents(),t.destroy(!0),t.removed=!0)}),0===(s=Pp.grep(s,function(e){return!o.get(e.id)})).length?a([]):jS(s,function(n){var o=n;e.inline&&o.tagName.toLowerCase()in i?Rf("Could not initialize inline editor on invalid inline target element",n):r(t(n),e,n)}))};return o.settings=e,zS.bind(window,"ready",u),new Uh(function(e){r?e(r):a=function(t){e(t)}})},get:function(e){return 0===arguments.length?KS.slice(0):Lg(e)?T(KS,function(t){return t.id===e}).getOr(null):jg(e)&&KS[e]||null},add:function(e){var t=this;return WS[e.id]===e||(null===t.get(e.id)&&("length"!==e.id&&(WS[e.id]=e),WS.push(e),KS.push(e)),Ng(!0),t.activeEditor=e,t.fire("AddEditor",{editor:e}),Fw||(Fw=function(e){var n=t.fire("BeforeUnload");if(n.returnValue)return e.preventDefault(),e.returnValue=n.returnValue,n.returnValue},window.addEventListener("beforeunload",Fw))),e},createEditor:function(e,t){return this.add(new US(e,t,this))},remove:function(e){var t,n,r=this;if(e){if(!Lg(e))return n=e,Fg(r.get(n.id))?null:(_g(n)&&r.fire("RemoveEditor",{editor:n}),0===KS.length&&window.removeEventListener("beforeunload",Fw),n.remove(),Ng(0<KS.length),n);jS(zS.select(e),function(e){(n=r.get(e.id))&&r.remove(n)})}else for(t=KS.length-1;0<=t;t--)r.remove(KS[t])},execCommand:function(e,t,n){var r=this.get(n);switch(e){case"mceAddEditor":return this.get(n)||new US(n,this.settings,this).render(),!0;case"mceRemoveEditor":return r&&r.remove(),!0;case"mceToggleEditor":return r?r.isHidden()?r.show():r.hide():this.execCommand("mceAddEditor",!1,n),!0}return!!this.activeEditor&&this.activeEditor.execCommand(e,t,n)},triggerSave:function(){jS(KS,function(e){e.save()})},addI18n:function(e,t){Xb.add(e,t)},translate:function(e){return Xb.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!==e&&(t&&t.fire("deactivate",{relatedTarget:e}),e.fire("activate",{relatedTarget:t})),this.activeEditor=e},_setBaseUrl:function(e){this.baseURL=new jC(this.documentBaseURL).toAbsolute(e.replace(/\/+$/,"")),this.baseURI=new jC(this.baseURL)}});YS.setup();var GS,JS,QS,ZS,eE=Math.min,tE=Math.max,nE=Math.round,rE={inflate:function(e,t,n){return Dg(e.x-t,e.y-n,e.w+2*t,e.h+2*n)},relativePosition:Ag,findBestRelativePosition:function(e,t,n,r){for(var o,i=0;i<r.length;i++)if((o=Ag(e,t,r[i])).x>=n.x&&o.x+o.w<=n.w+n.x&&o.y>=n.y&&o.y+o.h<=n.h+n.y)return r[i];return null},intersect:function(e,t){var n=tE(e.x,t.x),r=tE(e.y,t.y),o=eE(e.x+e.w,t.x+t.w),i=eE(e.y+e.h,t.y+t.h);return o-n<0||i-r<0?null:Dg(n,r,o-n,i-r)},clamp:function(e,t,n){var r=e.x,o=e.y,i=e.x+e.w,a=e.y+e.h,u=t.x+t.w,s=t.y+t.h,c=tE(0,t.x-r),l=tE(0,t.y-o),f=tE(0,i-u),d=tE(0,a-s);return r+=c,o+=l,n&&(i+=c,a+=l,r-=f,o-=d),Dg(r,o,(i-=f)-r,(a-=d)-o)},create:Dg,fromClientRect:function(e){return Dg(e.left,e.top,e.width,e.height)}},oE=(GS={},JS={},{load:function(e,t){var n='Script at URL "'+t+'" failed to load',r='Script at URL "'+t+"\" did not call `tinymce.Resource.add('"+e+"', data)` within 1 second";if(void 0!==GS[e])return GS[e];var o=new Uh(function(o,i){var a=function(e,t,n){function r(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];o||(o=!0,null!==i&&(clearTimeout(i),i=null),e.apply(null,t))}}void 0===n&&(n=1e3);var o=!1,i=null,a=r(e),u=r(t);return{start:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o||null!==i||(i=setTimeout(function(){return u.apply(null,e)},n))},resolve:a,reject:u}}(o,i);JS[e]=a.resolve,$b.ScriptLoader.loadScript(t,function(){return a.start(r)},function(){return a.reject(n)})});return GS[e]=o},add:function(e,t){void 0!==JS[e]&&(JS[e](t),delete JS[e]),GS[e]=Uh.resolve(t)}}),iE=Pp.each,aE=Pp.extend;Rg.extend=QS=function(e){function t(){var e,t,n;if(!ZS&&(this.init&&this.init.apply(this,arguments),t=this.Mixins))for(e=t.length;e--;)(n=t[e]).init&&n.init.apply(this,arguments)}function n(){return this}var r=this.prototype;ZS=!0;var o=new this;return ZS=!1,e.Mixins&&(iE(e.Mixins,function(t){for(var n in t)"init"!==n&&(e[n]=t[n])}),r.Mixins&&(e.Mixins=r.Mixins.concat(e.Mixins))),e.Methods&&iE(e.Methods.split(","),function(t){e[t]=n}),e.Properties&&iE(e.Properties.split(","),function(t){var n="_"+t;e[t]=function(e){return void 0!==e?(this[n]=e,this):this[n]}}),e.Statics&&iE(e.Statics,function(e,n){t[n]=e}),e.Defaults&&r.Defaults&&(e.Defaults=aE({},r.Defaults,e.Defaults)),j(e,function(e,t){var n,i;"function"==typeof e&&r[t]?o[t]=(n=t,i=e,function(){var e=this._super;this._super=r[n];var t=i.apply(this,arguments);return this._super=e,t}):o[t]=e}),t.prototype=o,(t.constructor=t).extend=QS,t};var uE,sE,cE,lE=Math.min,fE=Math.max,dE=Math.round,mE={serialize:function(e){var t=JSON.stringify(e);return Lg(t)?t.replace(/[\u0080-\uFFFF]/g,function(e){var t=e.charCodeAt(0).toString(16);return"\\u"+"0000".substring(t.length)+t}):t},parse:function(e){try{return JSON.parse(e)}catch(e){}}},gE={callbacks:{},count:0,send:function(e){var t=this,n=Hb.DOM,r=(void 0!==e.count?e:t).count,o="tinymce_jsonp_"+r;t.callbacks[r]=function(i){n.remove(o),delete t.callbacks[r],e.callback(i)},n.add(n.doc.body,"script",{id:o,src:e.url,type:"text/javascript"}),t.count++}},pE=rp(rp({},kS),{send:function(e){var t,n=0,r=function(){!e.async||4===t.readyState||1e4<n++?(e.success&&n<1e4&&200===t.status?e.success.call(e.success_scope,""+t.responseText,t,e):e.error&&e.error.call(e.error_scope,1e4<n?"TIMED_OUT":"GENERAL",t,e),t=null):zh.setTimeout(r,10)};if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=!1!==e.async,e.data=e.data||"",pE.fire("beforeInitialize",{settings:e}),(t=new XMLHttpRequest).overrideMimeType&&t.overrideMimeType(e.content_type),t.open(e.type||(e.data?"POST":"GET"),e.url,e.async),e.crossDomain&&(t.withCredentials=!0),e.content_type&&t.setRequestHeader("Content-Type",e.content_type),e.requestheaders&&Pp.each(e.requestheaders,function(e){t.setRequestHeader(e.key,e.value)}),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),(t=pE.fire("beforeSend",{xhr:t,settings:e}).xhr).send(e.data),!e.async)return r();zh.setTimeout(r,10)}}),hE=Pp.extend,vE=(Tg.sendRPC=function(e){return(new Tg).send(e)},Tg.prototype.send=function(e){var t=e.error,n=e.success,r=hE(this.settings,e);r.success=function(e,o){(e=void 0===(e=mE.parse(e))?{error:"JSON Parse error."}:e).error?t.call(r.error_scope||r.scope,e.error,o):n.call(r.success_scope||r.scope,e.result)},r.error=function(e,n){t&&t.call(r.error_scope||r.scope,e,n)},r.data=mE.serialize({id:e.id||"c"+this.count++,method:e.method,params:e.params}),r.content_type="application/json",pE.send(r)},Tg);try{var bE,yE="__storage_test__";(bE=window.localStorage).setItem(yE,yE),bE.removeItem(yE)}catch(r){uE={},sE=[],cE={getItem:function(e){return uE[e]||null},setItem:function(e,t){sE.push(e),uE[e]=String(t)},key:function(e){return sE[e]},removeItem:function(e){sE=sE.filter(function(t){return t===e}),delete uE[e]},clear:function(){sE=[],uE={}},length:0},Object.defineProperty(cE,"length",{get:function(){return sE.length},configurable:!1,enumerable:!1}),bE=cE}var CE={geom:{Rect:rE},util:{Promise:Uh,Delay:zh,Tools:Pp,VK:vC,URI:jC,Class:Rg,EventDispatcher:ES,Observable:kS,I18n:Xb,XHR:pE,JSON:mE,JSONRequest:vE,JSONP:gE,LocalStorage:bE,Color:function(e){function t(e){var t;return"object"==typeof e?"r"in e?(r=e.r,o=e.g,i=e.b):"v"in e&&function(e,t,n){if(e=(parseInt(e,10)||0)%360,t=parseInt(t,10)/100,n=parseInt(n,10)/100,t=fE(0,lE(t,1)),n=fE(0,lE(n,1)),0!==t){var a=e/60,u=n*t,s=u*(1-Math.abs(a%2-1)),c=n-u;switch(Math.floor(a)){case 0:r=u,o=s,i=0;break;case 1:r=s,o=u,i=0;break;case 2:r=0,o=u,i=s;break;case 3:r=0,o=s,i=u;break;case 4:r=s,o=0,i=u;break;case 5:r=u,o=0,i=s;break;default:r=o=i=0}r=dE(255*(r+c)),o=dE(255*(o+c)),i=dE(255*(i+c))}else r=o=i=dE(255*n)}(e.h,e.s,e.v):(t=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)[^\)]*\)/gi.exec(e))?(r=parseInt(t[1],10),o=parseInt(t[2],10),i=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(r=parseInt(t[1],16),o=parseInt(t[2],16),i=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(r=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16)),r=r<0?0:255<r?255:r,o=o<0?0:255<o?255:o,i=i<0?0:255<i?255:i,n}var n={},r=0,o=0,i=0;return e&&t(e),n.toRgb=function(){return{r:r,g:o,b:i}},n.toHsv=function(){return e=r,t=o,n=i,u=0,(s=lE(e/=255,lE(t/=255,n/=255)))===(c=fE(e,fE(t,n)))?{h:0,s:0,v:100*(u=s)}:(a=(c-s)/c,{h:dE(60*((e===s?3:n===s?1:5)-(e===s?t-n:n===s?e-t:n-e)/((u=c)-s))),s:dE(100*a),v:dE(100*u)});var e,t,n,a,u,s,c},n.toHex=function(){function e(e){return 1<(e=parseInt(e,10).toString(16)).length?e:"0"+e}return"#"+e(r)+e(o)+e(i)},n.parse=t,n},ImageUploader:function(e){var t=cl(),n=gl(e,t);return{upload:function(t,r){return n.upload(t,(r=void 0===r||r)?ml(e):void 0)}}}},dom:{EventUtils:Uv,Sizzle:Cb,DomQuery:Ib,TreeWalker:jh,TextSeeker:sr,DOMUtils:Hb,ScriptLoader:$b,RangeUtils:Xi,Serializer:jc,StyleSheetLoader:Pt,ControlSelection:Ii,BookmarkManager:Ri,Selection:Rc,Event:Uv.Event},html:{Styles:fn,Entities:Rv,Node:IC,Schema:cn,SaxParser:za,DomParser:Uc,Writer:Va,Serializer:qa},Env:Tp,AddOnManager:Yb,Annotator:Ai,Formatter:yl,UndoManager:xl,EditorCommands:xS,WindowManager:nl,NotificationManager:tl,EditorObservable:_S,Shortcuts:BS,Editor:US,FocusManager:OC,EditorManager:YS,DOM:Hb.DOM,ScriptLoader:$b.ScriptLoader,PluginManager:dw,ThemeManager:mw,IconManager:uw,Resource:oE,trim:Pp.trim,isArray:Pp.isArray,is:Pp.is,toArray:Pp.toArray,makeMap:Pp.makeMap,each:Pp.each,map:Pp.map,grep:Pp.grep,inArray:Pp.inArray,extend:Pp.extend,create:Pp.create,walk:Pp.walk,createNS:Pp.createNS,resolve:Pp.resolve,explode:Pp.explode,_addCacheSuffix:Pp._addCacheSuffix,isOpera:Tp.opera,isWebKit:Tp.webkit,isIE:Tp.ie,isGecko:Tp.gecko,isMac:Tp.mac},xE=Pp.extend(YS,CE),wE=xE;window.tinymce=wE,window.tinyMCE=wE,function(e){if("object"==typeof module)try{module.exports=e}catch(e){}}(xE)}();
|
36
34
|
// tinymce_config.js.coffee
|
37
|
-
(function(){decko.editors.add(".tinymce-textarea",function(){return decko.initTinyMCE(this[0].id)},function(){var
|
35
|
+
(function(){$(document).ready(function(){return document.addEventListener("focusin",function(t){if(null!==t.target.closest(".tox-tinymce-aux, .moxman-window, .tam-assetmanager-root"))return t.stopImmediatePropagation()})}),decko.editors.add(".tinymce-textarea",function(){return decko.initTinyMCE(this[0].id)},function(){var t;return(t=tinyMCE.get(this[0].id))&&t.getContent()}),decko.slot.destroy(function(t){return t.find("textarea.tinymce-textarea").each(function(){var t;return(t=tinyMCE.get($(this)[0].id))&&t.remove()})}),$.extend(decko,{setTinyMCEConfig:function(t){var e;return e=function(){try{return $.parseJSON(t)}catch(e){return{}}},decko.tinyMCEConfig=e()},initTinyMCE:function(t){var e,n,i;return e={theme:"silver",plugins:"autoresize",autoresize_max_height:500,mobile:{theme:"mobile"},contextmenu:"deckolink nest"},i=null!=decko.tinyMCEConfig?decko.tinyMCEConfig:{},n={selector:"#"+t,branding:!1,extended_valid_elements:"card-nest[id]",content_css:decko.cssPath,entity_encoding:"raw"},$.extend(e,i,n),decko.addNestPlugin(e),tinyMCE.baseURL=decko.path("mod/tinymce_editor"),tinyMCE.suffix=".min",tinyMCE.init(e)},addNestPlugin:function(t){return null!=t.plugins?t.plugins+=" nest":t.plugins="nest",t.menu={insert:{title:"Insert",items:"deckolink nest image | hr"}}}})}).call(this);
|