/* Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ !function(){function e(e){e=e.getElementsByTag("*");for(var n,o=e.count(),a=0;o>a;a++)n=e.getItem(a),function(e){for(var n=0;ns;s++){i[s]=r=CKEDITOR.tools.trim(i[s]);var u=r.match(/^(["'])([^"']*?)\1$/);if(u)i[s]=u[2];else if(r.match(/\d+/))i[s]=parseInt(r,10);else switch(r){case"this":i[s]=e.$;break;case"event":i[s]=t.data.$;break;case"null":i[s]=null}}i=CKEDITOR.tools.callFunction.apply(window,i),a&&!1===i&&(o=1)}o&&t.data.preventDefault()}))})(t[n])}(n)}var t="click keydown mousedown keypress mouseover mouseout".split(" ");CKEDITOR.plugins.add("adobeair",{onLoad:function(){CKEDITOR.env.air&&(CKEDITOR.dom.document.prototype.write=CKEDITOR.tools.override(CKEDITOR.dom.document.prototype.write,function(e){function t(e,t,n,o){t=e.append(t),(n=CKEDITOR.htmlParser.fragment.fromHtml(n).children[0].attributes)&&t.setAttributes(n),o&&t.append(e.getDocument().createText(o))}return function(n){if(this.getBody()){var o=this,a=this.getHead();n=n.replace(/(]*>)([\s\S]*?)<\/style>/gi,function(e,n,o){return t(a,"style",n,o),""}),n=n.replace(/]*\/>/i,function(e){return t(a,"base",e),""}),n=n.replace(/([\s\S]*)<\/title>/i,function(e,t){return o.$.title=t,""}),n=n.replace(/<head>([\s\S]*)<\/head>/i,function(e){var t=new CKEDITOR.dom.element("div",o);return t.setHtml(e),t.moveChildren(a),""}),n.replace(/(<body[^>]*>)([\s\S]*)(?=$|<\/body>)/i,function(e,t,n){o.getBody().setHtml(n),(e=CKEDITOR.htmlParser.fragment.fromHtml(t).children[0].attributes)&&o.getBody().setAttributes(e)})}else e.apply(this,arguments)}}),CKEDITOR.addCss("body.cke_editable { padding: 8px }"),CKEDITOR.ui.on("ready",function(t){if(t=t.data,t._.panel){var n,o=t._.panel._.panel;!function a(){o.isLoaded?(n=o._.holder,e(n)):setTimeout(a,30)}()}else t instanceof CKEDITOR.dialog&&e(t._.element)}))},init:function(t){CKEDITOR.env.air&&(t.on("uiReady",function(){e(t.container),t.on("elementsPathUpdate",function(t){e(t.data.space)})}),t.on("contentDom",function(){t.document.on("click",function(e){e.data.preventDefault(!0)})}))}})}();