/home/arranoyd/www/wp-content/plugins/brizy/public/editor-build/140-wp/editor/js/0.worker.js
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){function r(e){this.options=e||{locator:{}}}function o(){this.cdata=!1}function i(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function c(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function s(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new u,i=n.domBuilder||new o,c=n.errorHandler,s=n.locator,l=n.xmlns||{},f={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return s&&i.setDocumentLocator(s),r.errorHandler=function(e,t,n){if(!e){if(t instanceof o)return t;e=t}var r={},i=e instanceof Function;function c(t){var o=e[t];!o&&i&&(o=2==e.length?function(n){e(t,n)}:e),r[t]=o&&function(e){o("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},c("warning"),c("error"),c("fatalError"),r}(c,i,s),r.domBuilder=n.domBuilder||i,/\/x?html?$/.test(t)&&(f.nbsp=" ",f.copy="©",l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,l,f):r.errorHandler.error("invalid doc source"),i.doc},o.prototype={startDocument:function(){this.doc=(new l).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var o=this.doc,a=o.createElementNS(e,n||t),c=r.length;s(this,a),this.currentElement=a,this.locator&&i(this.locator,a);for(var u=0;u<c;u++){e=r.getURI(u);var l=r.getValue(u),f=(n=r.getQName(u),o.createAttributeNS(e,n));this.locator&&i(r.getLocator(u),f),f.value=f.nodeValue=l,a.setAttributeNode(f)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&i(this.locator,n),s(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=c.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&i(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=c.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&i(this.locator,r),s(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var o=r.createDocumentType(e,t,n);this.locator&&i(this.locator,o),s(this,o)}},warning:function(e){console.warn("[xmldom warning]\t"+e,a(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,a(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,a(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){o.prototype[e]=function(){return null}}));var u=n(2).XMLReader,l=t.DOMImplementation=n(1).DOMImplementation;t.XMLSerializer=n(1).XMLSerializer,t.DOMParser=r},function(e,t){function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(Object.create){var o=Object.create(t.prototype);r.__proto__=o}if(!(r instanceof t)){function i(){}i.prototype=t.prototype,n(r,i=new i),e.prototype=r=i}r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}var o="http://www.w3.org/1999/xhtml",i={},a=i.ELEMENT_NODE=1,c=i.ATTRIBUTE_NODE=2,s=i.TEXT_NODE=3,u=i.CDATA_SECTION_NODE=4,l=i.ENTITY_REFERENCE_NODE=5,f=i.ENTITY_NODE=6,d=i.PROCESSING_INSTRUCTION_NODE=7,p=i.COMMENT_NODE=8,h=i.DOCUMENT_NODE=9,m=i.DOCUMENT_TYPE_NODE=10,g=i.DOCUMENT_FRAGMENT_NODE=11,b=i.NOTATION_NODE=12,N={},v={},w=(N.INDEX_SIZE_ERR=(v[1]="Index size error",1),N.DOMSTRING_SIZE_ERR=(v[2]="DOMString size error",2),N.HIERARCHY_REQUEST_ERR=(v[3]="Hierarchy request error",3)),y=(N.WRONG_DOCUMENT_ERR=(v[4]="Wrong document",4),N.INVALID_CHARACTER_ERR=(v[5]="Invalid character",5),N.NO_DATA_ALLOWED_ERR=(v[6]="No data allowed",6),N.NO_MODIFICATION_ALLOWED_ERR=(v[7]="No modification allowed",7),N.NOT_FOUND_ERR=(v[8]="Not found",8)),E=(N.NOT_SUPPORTED_ERR=(v[9]="Not supported",9),N.INUSE_ATTRIBUTE_ERR=(v[10]="Attribute in use",10));N.INVALID_STATE_ERR=(v[11]="Invalid state",11),N.SYNTAX_ERR=(v[12]="Syntax error",12),N.INVALID_MODIFICATION_ERR=(v[13]="Invalid modification",13),N.NAMESPACE_ERR=(v[14]="Invalid namespace",14),N.INVALID_ACCESS_ERR=(v[15]="Invalid access",15);function x(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,v[e]),this.message=v[e],Error.captureStackTrace&&Error.captureStackTrace(this,x);return n.code=e,t&&(this.message=this.message+": "+t),n}function D(){}function T(e,t){this._node=e,this._refresh=t,_(this)}function _(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);ne(e,"length",r.length),n(r,e),e._inc=t}}function S(){}function C(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function A(e,t,n,r){if(r?t[C(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var o=e.ownerDocument;o&&(r&&P(o,e,r),function(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(o,e,n))}}function O(e,t,n){var r=C(t,n);if(!(r>=0))throw x(y,new Error(e.tagName+"@"+n));for(var o=t.length-1;r<o;)t[r]=t[++r];if(t.length=o,e){var i=e.ownerDocument;i&&(P(i,e,n),n.ownerElement=null)}}function I(e){if(this._features={},e)for(var t in e)this._features=e[t]}function R(){}function M(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function k(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(k(e,t))return!0}while(e=e.nextSibling)}function U(){}function P(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function z(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var o=t.firstChild,i=0;o;)r[i++]=o,o=o.nextSibling;r.length=i}}}function j(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,z(e.ownerDocument,e),t}function F(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===g){var o=t.firstChild;if(null==o)return t;var i=t.lastChild}else o=i=t;var a=n?n.previousSibling:e.lastChild;o.previousSibling=a,i.nextSibling=n,a?a.nextSibling=o:e.firstChild=o,null==n?e.lastChild=i:n.previousSibling=i;do{o.parentNode=e}while(o!==i&&(o=o.nextSibling));return z(e.ownerDocument||e,e),t.nodeType==g&&(t.firstChild=t.lastChild=null),t}function L(){this._nsMap={}}function B(){}function $(){}function V(){}function X(){}function q(){}function H(){}function Y(){}function W(){}function G(){}function Q(){}function Z(){}function J(){}function K(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,o=r.prefix,i=r.namespaceURI;if(i&&null==o&&null==(o=r.lookupPrefix(i)))var a=[{namespace:i,prefix:null}];return te(this,n,e,t,a),n.join("")}function ee(e,t,n){var r=e.prefix||"",o=e.namespaceURI;if(!r&&!o)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===o||"http://www.w3.org/2000/xmlns/"==o)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix==r)return a.namespace!=o}return!0}function te(e,t,n,r,i){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case a:i||(i=[]);i.length;var f=e.attributes,b=f.length,N=e.firstChild,v=e.tagName;n=o===e.namespaceURI||n,t.push("<",v);for(var w=0;w<b;w++){"xmlns"==(y=f.item(w)).prefix?i.push({prefix:y.localName,namespace:y.value}):"xmlns"==y.nodeName&&i.push({prefix:"",namespace:y.value})}for(w=0;w<b;w++){var y;if(ee(y=f.item(w),0,i)){var E=y.prefix||"",x=y.namespaceURI,D=E?" xmlns:"+E:" xmlns";t.push(D,'="',x,'"'),i.push({prefix:E,namespace:x})}te(y,t,n,r,i)}if(ee(e,0,i)){E=e.prefix||"",x=e.namespaceURI,D=E?" xmlns:"+E:" xmlns";t.push(D,'="',x,'"'),i.push({prefix:E,namespace:x})}if(N||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(v)){if(t.push(">"),n&&/^script$/i.test(v))for(;N;)N.data?t.push(N.data):te(N,t,n,r,i),N=N.nextSibling;else for(;N;)te(N,t,n,r,i),N=N.nextSibling;t.push("</",v,">")}else t.push("/>");return;case h:case g:for(N=e.firstChild;N;)te(N,t,n,r,i),N=N.nextSibling;return;case c:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,M),'"');case s:return t.push(e.data.replace(/[<&]/g,M));case u:return t.push("<![CDATA[",e.data,"]]>");case p:return t.push("\x3c!--",e.data,"--\x3e");case m:var T=e.publicId,_=e.systemId;if(t.push("<!DOCTYPE ",e.name),T)t.push(' PUBLIC "',T),_&&"."!=_&&t.push('" "',_),t.push('">');else if(_&&"."!=_)t.push(' SYSTEM "',_,'">');else{var S=e.internalSubset;S&&t.push(" [",S,"]"),t.push(">")}return;case d:return t.push("<?",e.target," ",e.data,"?>");case l:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function ne(e,t,n){e[t]=n}x.prototype=Error.prototype,n(N,x),D.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)te(this[r],n,e,t);return n.join("")}},T.prototype.item=function(e){return _(this),this[e]},r(T,D),S.prototype={length:0,item:D.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new x(E);var n=this.getNamedItem(e.nodeName);return A(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new x(E);return t=this.getNamedItemNS(e.namespaceURI,e.localName),A(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return O(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return O(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},I.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new U;if(r.implementation=this,r.childNodes=new D,r.doctype=n,n&&r.appendChild(n),t){var o=r.createElementNS(e,t);r.appendChild(o)}return r},createDocumentType:function(e,t,n){var r=new H;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},R.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return F(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return j(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var o=new n.constructor;for(var i in n){var s=n[i];"object"!=typeof s&&s!=o[i]&&(o[i]=s)}n.childNodes&&(o.childNodes=new D);o.ownerDocument=t;switch(o.nodeType){case a:var u=n.attributes,l=o.attributes=new S,f=u.length;l._ownerElement=o;for(var d=0;d<f;d++)o.setAttributeNode(e(t,u.item(d),!0));break;case c:r=!0}if(r)for(var p=n.firstChild;p;)o.appendChild(e(t,p,r)),p=p.nextSibling;return o}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==s&&e.nodeType==s?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==c?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==c?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(i,R),n(i,R.prototype),U.prototype={nodeName:"#document",nodeType:h,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==g){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==a&&(this.documentElement=e),F(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),j(this,e)},importNode:function(e,t){return function e(t,n,r){var o;switch(n.nodeType){case a:(o=n.cloneNode(!1)).ownerDocument=t;case g:break;case c:r=!0}o||(o=n.cloneNode(!1));o.ownerDocument=t;o.parentNode=null;if(r)for(var i=n.firstChild;i;)o.appendChild(e(t,i,r)),i=i.nextSibling;return o}(this,e,t)},getElementById:function(e){var t=null;return k(this.documentElement,(function(n){if(n.nodeType==a&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new L;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new D,(t.attributes=new S)._ownerElement=t,t},createDocumentFragment:function(){var e=new Q;return e.ownerDocument=this,e.childNodes=new D,e},createTextNode:function(e){var t=new V;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new X;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new q;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Z;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new B;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new G;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new L,r=t.split(":"),o=n.attributes=new S;return n.childNodes=new D,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,o._ownerElement=n,n},createAttributeNS:function(e,t){var n=new B,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(U,R),L.prototype={nodeType:a,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===g?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,z(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new T(this,(function(t){var n=[];return k(t,(function(r){r===t||r.nodeType!=a||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new T(this,(function(n){var r=[];return k(n,(function(o){o===n||o.nodeType!==a||"*"!==e&&o.namespaceURI!==e||"*"!==t&&o.localName!=t||r.push(o)})),r}))}},U.prototype.getElementsByTagName=L.prototype.getElementsByTagName,U.prototype.getElementsByTagNameNS=L.prototype.getElementsByTagNameNS,r(L,R),B.prototype.nodeType=c,r(B,R),$.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(v[w])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r($,R),V.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(V,$),X.prototype={nodeName:"#comment",nodeType:p},r(X,$),q.prototype={nodeName:"#cdata-section",nodeType:u},r(q,$),H.prototype.nodeType=m,r(H,R),Y.prototype.nodeType=b,r(Y,R),W.prototype.nodeType=f,r(W,R),G.prototype.nodeType=l,r(G,R),Q.prototype.nodeName="#document-fragment",Q.prototype.nodeType=g,r(Q,R),Z.prototype.nodeType=d,r(Z,R),J.prototype.serializeToString=function(e,t,n){return K.call(e,t,n)},R.prototype.toString=K;try{if(Object.defineProperty){Object.defineProperty(T.prototype,"length",{get:function(){return _(this),this.$$length}}),Object.defineProperty(R.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case a:case g:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case a:case g:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ne=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=I,t.XMLSerializer=J},function(e,t){var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$"),i=0,a=1,c=2,s=3,u=4,l=5,f=6,d=7;function p(){}function h(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function m(e,t,n,r,o,p){for(var h,m=++t,g=i;;){var b=e.charAt(m);switch(b){case"=":if(g===a)h=e.slice(t,m),g=s;else{if(g!==c)throw new Error("attribute equal must after attrName");g=s}break;case"'":case'"':if(g===s||g===a){if(g===a&&(p.warning('attribute value must after "="'),h=e.slice(t,m)),t=m+1,!((m=e.indexOf(b,t))>0))throw new Error("attribute value no end '"+b+"' match");N=e.slice(t,m).replace(/&#?\w+;/g,o),n.add(h,N,t-1),g=l}else{if(g!=u)throw new Error('attribute value must after "="');N=e.slice(t,m).replace(/&#?\w+;/g,o),n.add(h,N,t),p.warning('attribute "'+h+'" missed start quot('+b+")!!"),t=m+1,g=l}break;case"/":switch(g){case i:n.setTagName(e.slice(t,m));case l:case f:case d:g=d,n.closed=!0;case u:case a:case c:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return p.error("unexpected end of input"),g==i&&n.setTagName(e.slice(t,m)),m;case">":switch(g){case i:n.setTagName(e.slice(t,m));case l:case f:case d:break;case u:case a:"/"===(N=e.slice(t,m)).slice(-1)&&(n.closed=!0,N=N.slice(0,-1));case c:g===c&&(N=h),g==u?(p.warning('attribute "'+N+'" missed quot(")!!'),n.add(h,N.replace(/&#?\w+;/g,o),t)):("http://www.w3.org/1999/xhtml"===r[""]&&N.match(/^(?:disabled|checked|selected)$/i)||p.warning('attribute "'+N+'" missed value!! "'+N+'" instead!!'),n.add(N,N,t));break;case s:throw new Error("attribute value missed!!")}return m;case"€":b=" ";default:if(b<=" ")switch(g){case i:n.setTagName(e.slice(t,m)),g=f;break;case a:h=e.slice(t,m),g=c;break;case u:var N=e.slice(t,m).replace(/&#?\w+;/g,o);p.warning('attribute "'+N+'" missed quot(")!!'),n.add(h,N,t);case l:g=f}else switch(g){case c:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&h.match(/^(?:disabled|checked|selected)$/i)||p.warning('attribute "'+h+'" missed value!! "'+h+'" instead2!!'),n.add(h,h,t),t=m,g=a;break;case l:p.warning('attribute space is required"'+h+'"!!');case f:g=a,t=m;break;case s:g=u,t=m;break;case d:throw new Error("elements closed character '/' and '>' must be connected to")}}m++}}function g(e,t,n){for(var r=e.tagName,o=null,i=e.length;i--;){var a=e[i],c=a.qName,s=a.value;if((d=c.indexOf(":"))>0)var u=a.prefix=c.slice(0,d),l=c.slice(d+1),f="xmlns"===u&&l;else l=c,u=null,f="xmlns"===c&&"";a.localName=l,!1!==f&&(null==o&&(o={},v(n,n={})),n[f]=o[f]=s,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(f,s))}for(i=e.length;i--;){(u=(a=e[i]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]))}var d;(d=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,d),l=e.localName=r.slice(d+1)):(u=null,l=e.localName=r);var p=e.uri=n[u||""];if(t.startElement(p,l,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=o,!0;if(t.endElement(p,l,r),o)for(u in o)t.endPrefixMapping(u)}function b(e,t,n,r,o){if(/^(?:script|textarea)$/i.test(n)){var i=e.indexOf("</"+n+">",t),a=e.substring(t+1,i);if(/[&<]/.test(a))return/^script$/i.test(n)?(o.characters(a,0,a.length),i):(a=a.replace(/&#?\w+;/g,r),o.characters(a,0,a.length),i)}return t+1}function N(e,t,n,r){var o=r[n];return null==o&&((o=e.lastIndexOf("</"+n+">"))<t&&(o=e.lastIndexOf("</"+n)),r[n]=o),o<t}function v(e,t){for(var n in e)t[n]=e[n]}function w(e,t,n,r){switch(e.charAt(t+2)){case"-":return"-"===e.charAt(t+3)?(o=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,o-t-4),o+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var o=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,o-t-9),n.endCDATA(),o+3}var i=function(e,t){var n,r=[],o=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;o.lastIndex=t,o.exec(e);for(;n=o.exec(e);)if(r.push(n),n[1])return r}(e,t),a=i.length;if(a>1&&/!doctype/i.test(i[0][0])){var c=i[1][0],s=a>3&&/^public$/i.test(i[2][0])&&i[3][0],u=a>4&&i[4][0],l=i[a-1];return n.startDTD(c,s&&s.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),l.index+l[0].length}}return-1}function y(e,t,n){var r=e.indexOf("?>",t);if(r){var o=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(o){o[0].length;return n.processingInstruction(o[1],o[2]),r+2}return-1}return-1}function E(e){}function x(e,t){return e.__proto__=t,e}p.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),v(t,t={}),function(e,t,n,r,o){function i(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity not found:"+e),e)}function a(t){if(t>v){var n=e.substring(v,t).replace(/&#?\w+;/g,i);f&&c(v),r.characters(n,0,t-v),v=t}}function c(t,n){for(;t>=u&&(n=l.exec(e));)s=n.index,u=s+n[0].length,f.lineNumber++;f.columnNumber=t-s+1}var s=0,u=0,l=/.*(?:\r\n?|\n)|.*$/g,f=r.locator,d=[{currentNSMap:t}],p={},v=0;for(;;){try{var x=e.indexOf("<",v);if(x<0){if(!e.substr(v).match(/^\s*$/)){var D=r.doc,T=D.createTextNode(e.substr(v));D.appendChild(T),r.currentElement=T}return}switch(x>v&&a(x),e.charAt(x+1)){case"/":var _=e.indexOf(">",x+3),S=e.substring(x+2,_),C=d.pop();_<0?(S=e.substring(x+2).replace(/[\s<].*/,""),o.error("end tag name: "+S+" is not complete:"+C.tagName),_=x+1+S.length):S.match(/\s</)&&(S=S.replace(/[\s<].*/,""),o.error("end tag name: "+S+" maybe not complete"),_=x+1+S.length);var A=C.localNSMap,O=C.tagName==S;if(O||C.tagName&&C.tagName.toLowerCase()==S.toLowerCase()){if(r.endElement(C.uri,C.localName,S),A)for(var I in A)r.endPrefixMapping(I);O||o.fatalError("end tag name: "+S+" is not match the current start tagName:"+C.tagName)}else d.push(C);_++;break;case"?":f&&c(x),_=y(e,x,r);break;case"!":f&&c(x),_=w(e,x,r,o);break;default:f&&c(x);var R=new E,M=d[d.length-1].currentNSMap,k=(_=m(e,x,R,M,i,o),R.length);if(!R.closed&&N(e,_,R.tagName,p)&&(R.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),f&&k){for(var U=h(f,{}),P=0;P<k;P++){var z=R[P];c(z.offset),z.locator=h(f,{})}r.locator=U,g(R,r,M)&&d.push(R),r.locator=f}else g(R,r,M)&&d.push(R);"http://www.w3.org/1999/xhtml"!==R.uri||R.closed?_++:_=b(e,_,R.tagName,i,r)}}catch(e){o.error("element parse error: "+e),_=-1}_>v?v=_:a(Math.max(x,v)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},E.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!o.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},x({},x.prototype)instanceof x||(x=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.XMLReader=p},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t);var o=n(0);const i={ELEMENT_NODE:1};function a(e,t){const n=[];return p(e,e=>{e.nodeType===i.ELEMENT_NODE&&d(e,t)&&n.push(e)}),n}function c(e,t){const n=[];return p(e,e=>{e.nodeType===i.ELEMENT_NODE&&e.tagName===t&&n.push(e)}),n}function s(e,t,n){const r=[];return p(e,e=>{if(e.nodeType===i.ELEMENT_NODE){const o=Array.from(e.attributes);let i=!1;o.forEach(o=>{i||o.nodeName!==t||void 0!==n&&o.nodeValue!==n||(r.push(e),i=!0)})}}),r}function u(e){e.parentNode.removeChild(e)}function l(e,t,n){const r=/\s*(.+?):\s*(.+?);/g;let o=e.getAttribute("style");if(";"!==o[o.length-1]&&(o+=";"),"object"==typeof t){const n=Object.entries(t).map(([e,t])=>"".concat(e,": ").concat(t,";")).join(" ");return void e.setAttribute("style","".concat(o," ").concat(n))}if(t&&n&&"string"==typeof t)return void e.setAttribute("style","".concat(o," ").concat(t,": ").concat(n,";"));const i={};{let e,t,n;for(;e=r.exec(o);)[,t,n]=e,i[t]=n}return t?i[t]:i}function f(e,t){do{if(e.nodeType===i.ELEMENT_NODE&&d(e,t))return e}while(e=e.parentNode);return null}function d(e,t){const n=e.getAttribute("class");return new RegExp("\\b".concat(t,"\\b")).test(n)}function p(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(p(e,t))return!0}while(e=e.nextSibling)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){return fetch(e,{credentials:"omit"}).then(t=>{if(t.ok)return t.blob();throw new Error("could not fetch ".concat(e))}).then(N).catch(e=>console.error("worker fetch:",e))}function b(e,{siteUrl:t,proxyUrl:n}){return 0===e.indexOf(t)||"/"===e[0]?e:n+encodeURIComponent(e)}function N(e){return new Promise(t=>{var n=new FileReader;n.onload=function(){t(this.result)},n.onerror=()=>console.error("failed to decode image"),n.readAsDataURL(e)})}function v(e){return/^data:.+;base64/.test(e)}onerror=e=>{console.error(e)},onmessage=async e=>{const{id:t,url:n,options:r,assetUrl:i,siteUrl:p,proxyUrl:h}=e.data,N=await fetch(n),w=await N.text(),y=(new o.DOMParser).parseFromString(w,"text/html"),E={assetUrl:i,siteUrl:p,proxyUrl:h};!function(e){[{type:"className",value:"brz-ed-collapsible"},{type:"className",value:"brz-ed-draggable",canDelete:e=>!d(e,"brz-ed-draggable__padding")},{type:"className",value:"brz-ed-border__inner"},{type:"className",value:"brz-ed-border__button"},{type:"className",value:"brz-ed-container-plus"},{type:"className",value:"brz-ed-container-trigger"},{type:"className",value:"brz-ed-toolbar"},{type:"className",value:"brz-ed-row__toolbar"},{type:"className",value:"brz-ed-column__toolbar"},{type:"className",value:"brz-ed-wrapper__toolbar"},{type:"className",value:"brz-form__select-list"},{type:"className",value:"brz-popup2__button-go-to-editor"},{type:"className",value:"brz-ed-icon-svg"}].forEach(({type:t,value:n,canDelete:r=(e=>!0)})=>{let o;switch(t){case"className":o=a(e,n);break;default:throw new Error("unsupported selector type ".concat(t))}o.forEach(e=>{r(e)&&u(e)})})}(y),function(e){a(e,"brz-text-mask").forEach(e=>{l(e,{background:"transparent",color:"inherit !important","-webkit-text-fill-color":"unset"})})}(y),function(e){c(e,"picture").forEach(e=>{c(e,"source").forEach(u),c(e,"img").forEach(e=>e.removeAttribute("srcset"))})}(y),await async function(e,t){const n=[];return c(e,"img").forEach(async e=>{const r=e.getAttribute("src");r&&!v(r)&&n.push(g(b(r,t)).then(t=>(e.setAttribute("src",t),t)))}),s(e,"style").forEach(async e=>{const r=e.getAttribute("style");if(!r.includes("url"))return;const o=/(url\("?'?([^\"')]+)"?'?\))/,i=o.exec(r),[,a,c]=i||[];a&&c&&!v(c)&&n.push(g(b(c,t)).then(t=>(e.setAttribute("style",r.replace(o,'url("'.concat(t,'")'))),t)))}),Promise.all(n)}(y,E),function(e){a(e,"brz-bg-image-parallax").forEach(e=>l(e,{transform:"none",position:"absolute",top:"0",left:"0",width:"100%",height:"100%"}))}(y),await function(e,t){const n=[],r=["soundcloud","map","bg-map","video","bg-video"];return c(e,"iframe").forEach(e=>{const o=l(e);if("none"===o.display)return void u(e);const i=["brz-map","brz-bg-map","brz-video","brz-bg-video","brz-soundcloud"];for(let a of i){if(!f(e,a))continue;const i=a.replace("brz-",""),c=r.includes(i)?g(b("".concat(t.assetUrl,"/editor/img/screenshot-placeholder-").concat(i,".png"),t)):Promise.resolve();c.then(t=>{const n=m({width:e.getAttribute("width")||o.width,height:e.getAttribute("height")||o.height,position:o.position,top:o.top,bottom:o.bottom,left:o.left,right:o.right,margin:o.margin},t?{"background-repeat":"no-repeat","background-position":"center center","background-size":"cover","background-image":"url(".concat(t,")")}:{"background-color":"#373e48"}),r=Object.entries(n).reduce((e,[t,n])=>e+="".concat(t,":").concat(n,";"),""),i=e.ownerDocument.createElement("div");i.setAttribute("style",r),e.parentNode.replaceChild(i,e)}),n.push(c);break}}),Promise.all(n)}(y,E),function(e){a(e,"brz-ed-draggable__padding").forEach(e=>{d(e,"brz-ed-draggable__padding--active")&&(l(e,"background","transparent"),function(e){return Array.from(e.childNodes)}(e).forEach(e=>u(e)))})}(y),function(e){["id","class","data-block-id","data-href"].forEach(t=>{s(e,t).forEach(e=>e.removeAttribute(t))})}(y);const x=function(e,t){const{width:n,height:r}=t,o='<foreignObject x="0" y="0" width="100%" height="100%" style="background-color: white;">'.concat(e,"</foreignObject>"),i='<svg xmlns="http://www.w3.org/2000/svg" width="'.concat(n,'" height="').concat(r,'">').concat(o,"</svg>");return"data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i)}((new o.XMLSerializer).serializeToString(y),r),D=new Blob([x],{type:"text/plain"}),T=URL.createObjectURL(D);postMessage({id:t,url:T})}}]);