@innovastudio/contentbuilder 1.4.77 → 1.4.78

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- var ContentBuilder=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={exports:{}};e.exports=function(){var t="object",e="function",i="undefined",n=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],o=["setStart","setStartBefore","setStartAfter","setEnd","setEndBefore","setEndAfter","collapse","selectNode","selectNodeContents","compareBoundaryPoints","deleteContents","extractContents","cloneContents","insertNode","surroundContents","cloneRange","toString","detach"],s=["boundingHeight","boundingLeft","boundingTop","boundingWidth","htmlText","text"],r=["collapse","compareEndPoints","duplicate","moveToElementText","parentElement","select","setEndPoint","getBoundingClientRect"];function l(i,n){var o=typeof i[n];return o==e||!(o!=t||!i[n])||"unknown"==o}function a(e,i){return!(typeof e[i]!=t||!e[i])}function d(t,e){return typeof t[e]!=i}function c(t){return function(e,i){for(var n=i.length;n--;)if(!t(e,i[n]))return!1;return!0}}var u=c(l),h=c(a),p=c(d);function g(t){return t&&u(t,r)&&p(t,s)}function m(t){return a(t,"body")?t.body:t.getElementsByTagName("body")[0]}var f,b,v=[].forEach?function(t,e){t.forEach(e)}:function(t,e){for(var i=0,n=t.length;i<n;++i)e(t[i],i)},y={},x=typeof window!=i&&typeof document!=i,w={isHostMethod:l,isHostObject:a,isHostProperty:d,areHostMethods:u,areHostObjects:h,areHostProperties:p,isTextRange:g,getBody:m,forEach:v},S={version:"1.3.1",initialized:!1,isBrowser:x,supported:!0,util:w,features:{},modules:y,config:{alertOnFail:!1,alertOnWarn:!1,preferTextRange:!1,autoInitialize:typeof rangyAutoInitialize==i||rangyAutoInitialize}};function _(t){typeof console!=i&&l(console,"log")&&console.log(t)}function C(t,e){x&&e?alert(t):_(t)}function k(t){S.initialized=!0,S.supported=!1,C("Rangy is not supported in this environment. Reason: "+t,S.config.alertOnFail)}function E(t){C("Rangy warning: "+t,S.config.alertOnWarn)}S.fail=k,S.warn=E,{}.hasOwnProperty?(w.extend=f=function(t,e,i){var n,o;for(var s in e)e.hasOwnProperty(s)&&(n=t[s],o=e[s],i&&null!==n&&"object"==typeof n&&null!==o&&"object"==typeof o&&f(n,o,!0),t[s]=o);return e.hasOwnProperty("toString")&&(t.toString=e.toString),t},w.createOptions=function(t,e){var i={};return f(i,e),t&&f(i,t),i}):k("hasOwnProperty not supported"),x||k("Rangy can only run in a browser"),function(){var t;if(x){var e=document.createElement("div");e.appendChild(document.createElement("span"));var i=[].slice;try{1==i.call(e.childNodes,0)[0].nodeType&&(t=function(t){return i.call(t,0)})}catch(t){}}t||(t=function(t){for(var e=[],i=0,n=t.length;i<n;++i)e[i]=t[i];return e}),w.toArray=t}(),x&&(l(document,"addEventListener")?b=function(t,e,i){t.addEventListener(e,i,!1)}:l(document,"attachEvent")?b=function(t,e,i){t.attachEvent("on"+e,i)}:k("Document does not have required addEventListener or attachEvent method"),w.addListener=b);var A=[];function L(t){return t.message||t.description||String(t)}function q(){if(x&&!S.initialized){var t,e=!1,i=!1;l(document,"createRange")&&(t=document.createRange(),u(t,o)&&p(t,n)&&(e=!0));var s=m(document);if(s&&"body"==s.nodeName.toLowerCase())if(s&&l(s,"createTextRange")&&g(t=s.createTextRange())&&(i=!0),e||i){var r;for(var a in S.initialized=!0,S.features={implementsDomRange:e,implementsTextRange:i},y)(r=y[a])instanceof B&&r.init(r,S);for(var d=0,c=A.length;d<c;++d)try{A[d](S)}catch(t){_("Rangy init listener threw an exception. Continuing. Detail: "+L(t))}}else k("Neither Range nor TextRange are available");else k("No body element found")}}function T(t,e,i){i&&(t+=" in module "+i.name),S.warn("DEPRECATED: "+t+" is deprecated. Please use "+e+" instead.")}function M(t,e,i,n){t[e]=function(){return T(e,i,n),t[i].apply(t,w.toArray(arguments))}}w.deprecationNotice=T,w.createAliasForDeprecatedMethod=M,S.init=q,S.addInitListener=function(t){S.initialized?t(S):A.push(t)};var R=[];function O(t){t=t||window,q();for(var e=0,i=R.length;e<i;++e)R[e](t)}function B(t,e,i){this.name=t,this.dependencies=e,this.initialized=!1,this.supported=!1,this.initializer=i}function N(t,e,i){var n=new B(t,e,(function(e){if(!e.initialized){e.initialized=!0;try{i(S,e),e.supported=!0}catch(e){_("Module '"+t+"' failed to load: "+L(e)),e.stack&&_(e.stack)}}}));return y[t]=n,n}function I(){}function $(){}S.addShimListener=function(t){R.push(t)},x&&(S.shim=S.createMissingNativeApi=O,M(S,"createMissingNativeApi","shim")),B.prototype={init:function(){for(var t,e,i=this.dependencies||[],n=0,o=i.length;n<o;++n){if(e=i[n],!((t=y[e])&&t instanceof B))throw new Error("required module '"+e+"' not found");if(t.init(),!t.supported)throw new Error("required module '"+e+"' not supported")}this.initializer(this)},fail:function(t){throw this.initialized=!0,this.supported=!1,new Error(t)},warn:function(t){S.warn("Module "+this.name+": "+t)},deprecationNotice:function(t,e){S.warn("DEPRECATED: "+t+" in module "+this.name+" is deprecated. Please use "+e+" instead")},createError:function(t){return new Error("Error in Rangy "+this.name+" module: "+t)}},S.createModule=function(t){var e,i;2==arguments.length?(e=arguments[1],i=[]):(e=arguments[2],i=arguments[1]);var n=N(t,i,e);S.initialized&&S.supported&&n.init()},S.createCoreModule=function(t,e,i){N(t,e,i)},S.RangePrototype=I,S.rangePrototype=new I,S.selectionPrototype=new $,S.createCoreModule("DomUtil",[],(function(t,e){var i="undefined",n=t.util,o=n.getBody;n.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||e.fail("document missing a Node creation method"),n.isHostMethod(document,"getElementsByTagName")||e.fail("document missing getElementsByTagName method");var s=document.createElement("div");n.areHostMethods(s,["insertBefore","appendChild","cloneNode"]||!n.areHostObjects(s,["previousSibling","nextSibling","childNodes","parentNode"]))||e.fail("Incomplete Element implementation"),n.isHostProperty(s,"innerHTML")||e.fail("Element is missing innerHTML property");var r=document.createTextNode("test");n.areHostMethods(r,["splitText","deleteData","insertData","appendData","cloneNode"]||!n.areHostObjects(s,["previousSibling","nextSibling","childNodes","parentNode"])||!n.areHostProperties(r,["data"]))||e.fail("Incomplete Text Node implementation");var l=function(t,e){for(var i=t.length;i--;)if(t[i]===e)return!0;return!1};function a(t){var e;return typeof t.namespaceURI==i||null===(e=t.namespaceURI)||"http://www.w3.org/1999/xhtml"==e}function d(t){var e=t.parentNode;return 1==e.nodeType?e:null}function c(t){for(var e=0;t=t.previousSibling;)++e;return e}function u(t){switch(t.nodeType){case 7:case 10:return 0;case 3:case 8:return t.length;default:return t.childNodes.length}}function h(t,e){var i,n=[];for(i=t;i;i=i.parentNode)n.push(i);for(i=e;i;i=i.parentNode)if(l(n,i))return i;return null}function p(t,e,i){for(var n=i?e:e.parentNode;n;){if(n===t)return!0;n=n.parentNode}return!1}function g(t,e){return p(t,e,!0)}function m(t,e,i){for(var n,o=i?t:t.parentNode;o;){if((n=o.parentNode)===e)return o;o=n}return null}function f(t){var e=t.nodeType;return 3==e||4==e||8==e}function b(t){if(!t)return!1;var e=t.nodeType;return 3==e||8==e}function v(t,e){var i=e.nextSibling,n=e.parentNode;return i?n.insertBefore(t,i):n.appendChild(t),t}function y(t,e,i){var n=t.cloneNode(!1);if(n.deleteData(0,e),t.deleteData(e,t.length-e),v(n,t),i)for(var o,s=0;o=i[s++];)o.node==t&&o.offset>e?(o.node=n,o.offset-=e):o.node==t.parentNode&&o.offset>c(t)&&++o.offset;return n}function x(t){if(9==t.nodeType)return t;if(typeof t.ownerDocument!=i)return t.ownerDocument;if(typeof t.document!=i)return t.document;if(t.parentNode)return x(t.parentNode);throw e.createError("getDocument: no document found for node")}function w(t){var n=x(t);if(typeof n.defaultView!=i)return n.defaultView;if(typeof n.parentWindow!=i)return n.parentWindow;throw e.createError("Cannot get a window object for node")}function S(t){if(typeof t.contentDocument!=i)return t.contentDocument;if(typeof t.contentWindow!=i)return t.contentWindow.document;throw e.createError("getIframeDocument: No Document object found for iframe element")}function _(t){if(typeof t.contentWindow!=i)return t.contentWindow;if(typeof t.contentDocument!=i)return t.contentDocument.defaultView;throw e.createError("getIframeWindow: No Window object found for iframe element")}function C(t){return t&&n.isHostMethod(t,"setTimeout")&&n.isHostObject(t,"document")}function k(t,e,i){var o;if(t?n.isHostProperty(t,"nodeType")?o=1==t.nodeType&&"iframe"==t.tagName.toLowerCase()?S(t):x(t):C(t)&&(o=t.document):o=document,!o)throw e.createError(i+"(): Parameter must be a Window object or DOM node");return o}function E(t){for(var e;e=t.parentNode;)t=e;return t}function A(t,i,n,o){var s,r,l,a,d;if(t==n)return i===o?0:i<o?-1:1;if(s=m(n,t,!0))return i<=c(s)?-1:1;if(s=m(t,n,!0))return c(s)<o?-1:1;if(!(r=h(t,n)))throw new Error("comparePoints error: nodes have no common ancestor");if((l=t===r?r:m(t,r,!0))===(a=n===r?r:m(n,r,!0)))throw e.createError("comparePoints got to case 4 and childA and childB are the same!");for(d=r.firstChild;d;){if(d===l)return-1;if(d===a)return 1;d=d.nextSibling}}var L,q=!1;function T(t){try{return t.parentNode,!1}catch(t){return!0}}function M(t){if(!t)return"[No node]";if(q&&T(t))return"[Broken node]";if(f(t))return'"'+t.data+'"';if(1==t.nodeType){var e=t.id?' id="'+t.id+'"':"";return"<"+t.nodeName+e+">[index:"+c(t)+",length:"+t.childNodes.length+"]["+(t.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return t.nodeName}function R(t){for(var e,i=x(t).createDocumentFragment();e=t.firstChild;)i.appendChild(e);return i}function O(t,e,i){var n=o(t),s=t.createElement("div");s.contentEditable=""+!!i,e&&(s.innerHTML=e);var r=n.firstChild;return r?n.insertBefore(s,r):n.appendChild(s),s}function B(t){return t.parentNode.removeChild(t)}function N(t){this.root=t,this._next=t}function I(t){return new N(t)}function $(t,e){this.node=t,this.offset=e}function D(t){this.code=this[t],this.codeName=t,this.message="DOMException: "+this.codeName}!function(){var e=document.createElement("b");e.innerHTML="1";var i=e.firstChild;e.innerHTML="<br />",q=T(i),t.features.crashyTextNodes=q}(),typeof window.getComputedStyle!=i?L=function(t,e){return w(t).getComputedStyle(t,null)[e]}:typeof document.documentElement.currentStyle!=i?L=function(t,e){return t.currentStyle?t.currentStyle[e]:""}:e.fail("No means of obtaining computed style properties found"),N.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var t,e,i=this._current=this._next;if(this._current)if(t=i.firstChild)this._next=t;else{for(e=null;i!==this.root&&!(e=i.nextSibling);)i=i.parentNode;this._next=e}return this._current},detach:function(){this._current=this._next=this.root=null}},$.prototype={equals:function(t){return!!t&&this.node===t.node&&this.offset==t.offset},inspect:function(){return"[DomPosition("+M(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},D.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},D.prototype.toString=function(){return this.message},t.dom={arrayContains:l,isHtmlNamespace:a,parentElement:d,getNodeIndex:c,getNodeLength:u,getCommonAncestor:h,isAncestorOf:p,isOrIsAncestorOf:g,getClosestAncestorIn:m,isCharacterDataNode:f,isTextOrCommentNode:b,insertAfter:v,splitDataNode:y,getDocument:x,getWindow:w,getIframeWindow:_,getIframeDocument:S,getBody:o,isWindow:C,getContentDocument:k,getRootContainer:E,comparePoints:A,isBrokenNode:T,inspectNode:M,getComputedStyleProperty:L,createTestElement:O,removeNode:B,fragmentFromNodeChildren:R,createIterator:I,DomPosition:$},t.DOMException=D})),S.createCoreModule("DomRange",["DomUtil"],(function(t,e){var i=t.dom,n=t.util,o=i.DomPosition,s=t.DOMException,r=i.isCharacterDataNode,l=i.getNodeIndex,a=i.isOrIsAncestorOf,d=i.getDocument,c=i.comparePoints,u=i.splitDataNode,h=i.getClosestAncestorIn,p=i.getNodeLength,g=i.arrayContains,m=i.getRootContainer,f=t.features.crashyTextNodes,b=i.removeNode;function v(t,e){return 3!=t.nodeType&&(a(t,e.startContainer)||a(t,e.endContainer))}function y(t){return t.document||d(t.startContainer)}function x(t){return m(t.startContainer)}function w(t){return new o(t.parentNode,l(t))}function S(t){return new o(t.parentNode,l(t)+1)}function _(t,e,n){var o=11==t.nodeType?t.firstChild:t;return r(e)?n==e.length?i.insertAfter(t,e):e.parentNode.insertBefore(t,0==n?e:u(e,n)):n>=e.childNodes.length?e.appendChild(t):e.insertBefore(t,e.childNodes[n]),o}function C(t,e,i){if(Z(t),Z(e),y(e)!=y(t))throw new s("WRONG_DOCUMENT_ERR");var n=c(t.startContainer,t.startOffset,e.endContainer,e.endOffset),o=c(t.endContainer,t.endOffset,e.startContainer,e.startOffset);return i?n<=0&&o>=0:n<0&&o>0}function k(t){for(var e,i,n,o=y(t.range).createDocumentFragment();i=t.next();){if(e=t.isPartiallySelectedSubtree(),i=i.cloneNode(!e),e&&(n=t.getSubtreeIterator(),i.appendChild(k(n)),n.detach()),10==i.nodeType)throw new s("HIERARCHY_REQUEST_ERR");o.appendChild(i)}return o}function E(t,e,n){var o,s,r,l;for(n=n||{stop:!1};r=t.next();)if(t.isPartiallySelectedSubtree()){if(!1===e(r))return void(n.stop=!0);if(E(l=t.getSubtreeIterator(),e,n),l.detach(),n.stop)return}else for(o=i.createIterator(r);s=o.next();)if(!1===e(s))return void(n.stop=!0)}function A(t){for(var e;t.next();)t.isPartiallySelectedSubtree()?(A(e=t.getSubtreeIterator()),e.detach()):t.remove()}function L(t){for(var e,i,n=y(t.range).createDocumentFragment();e=t.next();){if(t.isPartiallySelectedSubtree()?(e=e.cloneNode(!1),i=t.getSubtreeIterator(),e.appendChild(L(i)),i.detach()):t.remove(),10==e.nodeType)throw new s("HIERARCHY_REQUEST_ERR");n.appendChild(e)}return n}function q(t,e,i){var n,o=!(!e||!e.length),s=!!i;o&&(n=new RegExp("^("+e.join("|")+")$"));var l=[];return E(new M(t,!1),(function(e){if((!o||n.test(e.nodeType))&&(!s||i(e))){var a=t.startContainer;if(e!=a||!r(a)||t.startOffset!=a.length){var d=t.endContainer;e==d&&r(d)&&0==t.endOffset||l.push(e)}}})),l}function T(t){return"["+(void 0===t.getName?"Range":t.getName())+"("+i.inspectNode(t.startContainer)+":"+t.startOffset+", "+i.inspectNode(t.endContainer)+":"+t.endOffset+")]"}function M(t,e){if(this.range=t,this.clonePartiallySelectedTextNodes=e,!t.collapsed){this.sc=t.startContainer,this.so=t.startOffset,this.ec=t.endContainer,this.eo=t.endOffset;var i=t.commonAncestorContainer;this.sc===this.ec&&r(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==i||r(this.sc)?h(this.sc,i,!0):this.sc.childNodes[this.so],this._last=this.ec!==i||r(this.ec)?h(this.ec,i,!0):this.ec.childNodes[this.eo-1])}}M.prototype={_current:null,_next:null,_first:null,_last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null,this._next=this._first},hasNext:function(){return!!this._next},next:function(){var t=this._current=this._next;return t&&(this._next=t!==this._last?t.nextSibling:null,r(t)&&this.clonePartiallySelectedTextNodes&&(t===this.ec&&(t=t.cloneNode(!0)).deleteData(this.eo,t.length-this.eo),this._current===this.sc&&(t=t.cloneNode(!0)).deleteData(0,this.so))),t},remove:function(){var t,e,i=this._current;!r(i)||i!==this.sc&&i!==this.ec?i.parentNode&&b(i):(t=i===this.sc?this.so:0)!=(e=i===this.ec?this.eo:i.length)&&i.deleteData(t,e-t)},isPartiallySelectedSubtree:function(){return v(this._current,this.range)},getSubtreeIterator:function(){var t;if(this.isSingleCharacterDataNode)(t=this.range.cloneRange()).collapse(!1);else{t=new bt(y(this.range));var e=this._current,i=e,n=0,o=e,s=p(e);a(e,this.sc)&&(i=this.sc,n=this.so),a(e,this.ec)&&(o=this.ec,s=this.eo),ft(t,i,n,o,s)}return new M(t,this.clonePartiallySelectedTextNodes)},detach:function(){this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}};var R=[1,3,4,5,7,8,10],O=[2,9,11],B=[5,6,10,12],N=[1,3,4,5,7,8,10,11],I=[1,3,4,5,7,8];function $(t){return function(e,i){for(var n,o=i?e:e.parentNode;o;){if(n=o.nodeType,g(t,n))return o;o=o.parentNode}return null}}var D=$([9,11]),z=$(B),P=$([6,10,12]),H=$([1]);function F(t,e){if(P(t,e))throw new s("INVALID_NODE_TYPE_ERR")}function U(t,e){if(!g(e,t.nodeType))throw new s("INVALID_NODE_TYPE_ERR")}function j(t,e){if(e<0||e>(r(t)?t.length:t.childNodes.length))throw new s("INDEX_SIZE_ERR")}function W(t,e){if(D(t,!0)!==D(e,!0))throw new s("WRONG_DOCUMENT_ERR")}function G(t){if(z(t,!0))throw new s("NO_MODIFICATION_ALLOWED_ERR")}function V(t,e){if(!t)throw new s(e)}function Y(t,e){return e<=(r(t)?t.length:t.childNodes.length)}function X(t){return!!t.startContainer&&!!t.endContainer&&!(f&&(i.isBrokenNode(t.startContainer)||i.isBrokenNode(t.endContainer)))&&m(t.startContainer)==m(t.endContainer)&&Y(t.startContainer,t.startOffset)&&Y(t.endContainer,t.endOffset)}function Z(t){if(!X(t))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+t.inspect()+")")}var K=document.createElement("style"),Q=!1;try{K.innerHTML="<b>x</b>",Q=3==K.firstChild.nodeType}catch(t){}t.features.htmlParsingConforms=Q;var J=Q?function(t){var e=this.startContainer,n=d(e);if(!e)throw new s("INVALID_STATE_ERR");var o=null;return 1==e.nodeType?o=e:r(e)&&(o=i.parentElement(e)),(o=null===o||"HTML"==o.nodeName&&i.isHtmlNamespace(d(o).documentElement)&&i.isHtmlNamespace(o)?n.createElement("body"):o.cloneNode(!1)).innerHTML=t,i.fragmentFromNodeChildren(o)}:function(t){var e=y(this).createElement("body");return e.innerHTML=t,i.fragmentFromNodeChildren(e)};function tt(t,e){Z(t);var i=t.startContainer,n=t.startOffset,o=t.endContainer,s=t.endOffset,a=i===o;r(o)&&s>0&&s<o.length&&u(o,s,e),r(i)&&n>0&&n<i.length&&(i=u(i,n,e),a?(s-=n,o=i):o==i.parentNode&&s>=l(i)&&s++,n=0),t.setStartAndEnd(i,n,o,s)}function et(t){Z(t);var e=t.commonAncestorContainer.parentNode.cloneNode(!1);return e.appendChild(t.cloneContents()),e.innerHTML}var it=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],nt=0,ot=1,st=2,rt=3,lt=0,at=1,dt=2,ct=3;function ut(t){t.START_TO_START=nt,t.START_TO_END=ot,t.END_TO_END=st,t.END_TO_START=rt,t.NODE_BEFORE=lt,t.NODE_AFTER=at,t.NODE_BEFORE_AND_AFTER=dt,t.NODE_INSIDE=ct}function ht(t){ut(t),ut(t.prototype)}function pt(t,e){return function(){Z(this);var i,n=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,r=new M(this,!0);n!==s&&(n=(i=S(h(n,s,!0))).node,o=i.offset),E(r,G),r.reset();var l=t(r);return r.detach(),e(this,n,o,n,o),l}}function gt(e,i){function o(t,e){return function(i){U(i,R),U(m(i),O);var n=(t?w:S)(i);(e?s:a)(this,n.node,n.offset)}}function s(t,e,n){var o=t.endContainer,s=t.endOffset;e===t.startContainer&&n===t.startOffset||(m(e)==m(o)&&1!=c(e,n,o,s)||(o=e,s=n),i(t,e,n,o,s))}function a(t,e,n){var o=t.startContainer,s=t.startOffset;e===t.endContainer&&n===t.endOffset||(m(e)==m(o)&&-1!=c(e,n,o,s)||(o=e,s=n),i(t,o,s,e,n))}var d=function(){};d.prototype=t.rangePrototype,e.prototype=new d,n.extend(e.prototype,{setStart:function(t,e){F(t,!0),j(t,e),s(this,t,e)},setEnd:function(t,e){F(t,!0),j(t,e),a(this,t,e)},setStartAndEnd:function(){var t=arguments,e=t[0],n=t[1],o=e,s=n;switch(t.length){case 3:s=t[2];break;case 4:o=t[2],s=t[3]}F(e,!0),j(e,n),F(o,!0),j(o,s),i(this,e,n,o,s)},setBoundary:function(t,e,i){this["set"+(i?"Start":"End")](t,e)},setStartBefore:o(!0,!0),setStartAfter:o(!1,!0),setEndBefore:o(!0,!1),setEndAfter:o(!1,!1),collapse:function(t){Z(this),t?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(t){F(t,!0),i(this,t,0,t,p(t))},selectNode:function(t){F(t,!1),U(t,R);var e=w(t),n=S(t);i(this,e.node,e.offset,n.node,n.offset)},extractContents:pt(L,i),deleteContents:pt(A,i),canSurroundContents:function(){Z(this),G(this.startContainer),G(this.endContainer);var t=new M(this,!0),e=t._first&&v(t._first,this)||t._last&&v(t._last,this);return t.detach(),!e},splitBoundaries:function(){tt(this)},splitBoundariesPreservingPositions:function(t){tt(this,t)},normalizeBoundaries:function(){Z(this);var t,e=this.startContainer,n=this.startOffset,o=this.endContainer,s=this.endOffset,a=function(t){var e=t.nextSibling;e&&e.nodeType==t.nodeType&&(o=t,s=t.length,t.appendData(e.data),b(e))},d=function(t){var i=t.previousSibling;if(i&&i.nodeType==t.nodeType){e=t;var r=t.length;if(n=i.length,t.insertData(0,i.data),b(i),e==o)s+=n,o=e;else if(o==t.parentNode){var a=l(t);s==a?(o=t,s=r):s>a&&s--}}},c=!0;if(r(o))s==o.length?a(o):0==s&&(t=o.previousSibling)&&t.nodeType==o.nodeType&&(s=t.length,e==o&&(c=!1),t.appendData(o.data),b(o),o=t);else{if(s>0){var u=o.childNodes[s-1];u&&r(u)&&a(u)}c=!this.collapsed}if(c){if(r(e))0==n?d(e):n==e.length&&(t=e.nextSibling)&&t.nodeType==e.nodeType&&(o==t&&(o=e,s+=e.length),e.appendData(t.data),b(t));else if(n<e.childNodes.length){var h=e.childNodes[n];h&&r(h)&&d(h)}}else e=o,n=s;i(this,e,n,o,s)},collapseToPoint:function(t,e){F(t,!0),j(t,e),this.setStartAndEnd(t,e)},parentElement:function(){return Z(this),this.commonAncestorContainer?H(this.commonAncestorContainer,!0):null}}),ht(e)}function mt(t){t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset,t.commonAncestorContainer=t.collapsed?t.startContainer:i.getCommonAncestor(t.startContainer,t.endContainer)}function ft(t,e,n,o,s){t.startContainer=e,t.startOffset=n,t.endContainer=o,t.endOffset=s,t.document=i.getDocument(e),mt(t)}function bt(t){ft(this,t,0,t,0)}n.extend(t.rangePrototype,{compareBoundaryPoints:function(t,e){var i,n,o,s;Z(this),W(this.startContainer,e.startContainer);var r=t==rt||t==nt?"start":"end",l=t==ot||t==nt?"start":"end";return i=this[r+"Container"],n=this[r+"Offset"],o=e[l+"Container"],s=e[l+"Offset"],c(i,n,o,s)},insertNode:function(t){if(Z(this),U(t,N),G(this.startContainer),a(t,this.startContainer))throw new s("HIERARCHY_REQUEST_ERR");var e=_(t,this.startContainer,this.startOffset);this.setStartBefore(e)},cloneContents:function(){var t,e;if(Z(this),this.collapsed)return y(this).createDocumentFragment();if(this.startContainer===this.endContainer&&r(this.startContainer))return(t=this.startContainer.cloneNode(!0)).data=t.data.slice(this.startOffset,this.endOffset),(e=y(this).createDocumentFragment()).appendChild(t),e;var i=new M(this,!0);return t=k(i),i.detach(),t},canSurroundContents:function(){Z(this),G(this.startContainer),G(this.endContainer);var t=new M(this,!0),e=t._first&&v(t._first,this)||t._last&&v(t._last,this);return t.detach(),!e},surroundContents:function(t){if(U(t,I),!this.canSurroundContents())throw new s("INVALID_STATE_ERR");var e=this.extractContents();if(t.hasChildNodes())for(;t.lastChild;)t.removeChild(t.lastChild);_(t,this.startContainer,this.startOffset),t.appendChild(e),this.selectNode(t)},cloneRange:function(){Z(this);for(var t,e=new bt(y(this)),i=it.length;i--;)e[t=it[i]]=this[t];return e},toString:function(){Z(this);var t=this.startContainer;if(t===this.endContainer&&r(t))return 3==t.nodeType||4==t.nodeType?t.data.slice(this.startOffset,this.endOffset):"";var e=[],i=new M(this,!0);return E(i,(function(t){3!=t.nodeType&&4!=t.nodeType||e.push(t.data)})),i.detach(),e.join("")},compareNode:function(t){Z(this);var e=t.parentNode,i=l(t);if(!e)throw new s("NOT_FOUND_ERR");var n=this.comparePoint(e,i),o=this.comparePoint(e,i+1);return n<0?o>0?dt:lt:o>0?at:ct},comparePoint:function(t,e){return Z(this),V(t,"HIERARCHY_REQUEST_ERR"),W(t,this.startContainer),c(t,e,this.startContainer,this.startOffset)<0?-1:c(t,e,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:J,toHtml:function(){return et(this)},intersectsNode:function(t,e){if(Z(this),m(t)!=x(this))return!1;var i=t.parentNode,n=l(t);if(!i)return!0;var o=c(i,n,this.endContainer,this.endOffset),s=c(i,n+1,this.startContainer,this.startOffset);return e?o<=0&&s>=0:o<0&&s>0},isPointInRange:function(t,e){return Z(this),V(t,"HIERARCHY_REQUEST_ERR"),W(t,this.startContainer),c(t,e,this.startContainer,this.startOffset)>=0&&c(t,e,this.endContainer,this.endOffset)<=0},intersectsRange:function(t){return C(this,t,!1)},intersectsOrTouchesRange:function(t){return C(this,t,!0)},intersection:function(t){if(this.intersectsRange(t)){var e=c(this.startContainer,this.startOffset,t.startContainer,t.startOffset),i=c(this.endContainer,this.endOffset,t.endContainer,t.endOffset),n=this.cloneRange();return-1==e&&n.setStart(t.startContainer,t.startOffset),1==i&&n.setEnd(t.endContainer,t.endOffset),n}return null},union:function(t){if(this.intersectsOrTouchesRange(t)){var e=this.cloneRange();return-1==c(t.startContainer,t.startOffset,this.startContainer,this.startOffset)&&e.setStart(t.startContainer,t.startOffset),1==c(t.endContainer,t.endOffset,this.endContainer,this.endOffset)&&e.setEnd(t.endContainer,t.endOffset),e}throw new s("Ranges do not intersect")},containsNode:function(t,e){return e?this.intersectsNode(t,!1):this.compareNode(t)==ct},containsNodeContents:function(t){return this.comparePoint(t,0)>=0&&this.comparePoint(t,p(t))<=0},containsRange:function(t){var e=this.intersection(t);return null!==e&&t.equals(e)},containsNodeText:function(t){var e=this.cloneRange();e.selectNode(t);var i=e.getNodes([3]);if(i.length>0){e.setStart(i[0],0);var n=i.pop();return e.setEnd(n,n.length),this.containsRange(e)}return this.containsNodeContents(t)},getNodes:function(t,e){return Z(this),q(this,t,e)},getDocument:function(){return y(this)},collapseBefore:function(t){this.setEndBefore(t),this.collapse(!1)},collapseAfter:function(t){this.setStartAfter(t),this.collapse(!0)},getBookmark:function(e){var n=y(this),o=t.createRange(n);e=e||i.getBody(n),o.selectNodeContents(e);var s=this.intersection(o),r=0,l=0;return s&&(o.setEnd(s.startContainer,s.startOffset),l=(r=o.toString().length)+s.toString().length),{start:r,end:l,containerNode:e}},moveToBookmark:function(t){var e=t.containerNode,i=0;this.setStart(e,0),this.collapse(!0);for(var n,o,s,r,l=[e],a=!1,d=!1;!d&&(n=l.pop());)if(3==n.nodeType)o=i+n.length,!a&&t.start>=i&&t.start<=o&&(this.setStart(n,t.start-i),a=!0),a&&t.end>=i&&t.end<=o&&(this.setEnd(n,t.end-i),d=!0),i=o;else for(s=(r=n.childNodes).length;s--;)l.push(r[s])},getName:function(){return"DomRange"},equals:function(t){return bt.rangesEqual(this,t)},isValid:function(){return X(this)},inspect:function(){return T(this)},detach:function(){}}),gt(bt,ft),n.extend(bt,{rangeProperties:it,RangeIterator:M,copyComparisonConstants:ht,createPrototypeRange:gt,inspect:T,toHtml:et,getRangeDocument:y,rangesEqual:function(t,e){return t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.endContainer&&t.endOffset===e.endOffset}}),t.DomRange=bt})),S.createCoreModule("WrappedRange",["DomRange"],(function(t,e){var i,n,o=t.dom,s=t.util,r=o.DomPosition,l=t.DomRange,a=o.getBody,d=o.getContentDocument,c=o.isCharacterDataNode;if(t.features.implementsDomRange&&function(){var n,r,c=l.rangeProperties;function u(t){for(var e,i=c.length;i--;)t[e=c[i]]=t.nativeRange[e];t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset}function h(t,e,i,n,o){var s=t.startContainer!==e||t.startOffset!=i,r=t.endContainer!==n||t.endOffset!=o,l=!t.equals(t.nativeRange);(s||r||l)&&(t.setEnd(n,o),t.setStart(e,i))}i=function(t){if(!t)throw e.createError("WrappedRange: Range must be specified");this.nativeRange=t,u(this)},l.createPrototypeRange(i,h),(n=i.prototype).selectNode=function(t){this.nativeRange.selectNode(t),u(this)},n.cloneContents=function(){return this.nativeRange.cloneContents()},n.surroundContents=function(t){this.nativeRange.surroundContents(t),u(this)},n.collapse=function(t){this.nativeRange.collapse(t),u(this)},n.cloneRange=function(){return new i(this.nativeRange.cloneRange())},n.refresh=function(){u(this)},n.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");a(document).appendChild(p);var g=document.createRange();g.setStart(p,0),g.setEnd(p,0);try{g.setStart(p,1),n.setStart=function(t,e){this.nativeRange.setStart(t,e),u(this)},n.setEnd=function(t,e){this.nativeRange.setEnd(t,e),u(this)},r=function(t){return function(e){this.nativeRange[t](e),u(this)}}}catch(t){n.setStart=function(t,e){try{this.nativeRange.setStart(t,e)}catch(i){this.nativeRange.setEnd(t,e),this.nativeRange.setStart(t,e)}u(this)},n.setEnd=function(t,e){try{this.nativeRange.setEnd(t,e)}catch(i){this.nativeRange.setStart(t,e),this.nativeRange.setEnd(t,e)}u(this)},r=function(t,e){return function(i){try{this.nativeRange[t](i)}catch(n){this.nativeRange[e](i),this.nativeRange[t](i)}u(this)}}}n.setStartBefore=r("setStartBefore","setEndBefore"),n.setStartAfter=r("setStartAfter","setEndAfter"),n.setEndBefore=r("setEndBefore","setStartBefore"),n.setEndAfter=r("setEndAfter","setStartAfter"),n.selectNodeContents=function(t){this.setStartAndEnd(t,0,o.getNodeLength(t))},g.selectNodeContents(p),g.setEnd(p,3);var m=document.createRange();m.selectNodeContents(p),m.setEnd(p,4),m.setStart(p,2),-1==g.compareBoundaryPoints(g.START_TO_END,m)&&1==g.compareBoundaryPoints(g.END_TO_START,m)?n.compareBoundaryPoints=function(t,e){return t==(e=e.nativeRange||e).START_TO_END?t=e.END_TO_START:t==e.END_TO_START&&(t=e.START_TO_END),this.nativeRange.compareBoundaryPoints(t,e)}:n.compareBoundaryPoints=function(t,e){return this.nativeRange.compareBoundaryPoints(t,e.nativeRange||e)};var f=document.createElement("div");f.innerHTML="123";var b=f.firstChild,v=a(document);v.appendChild(f),g.setStart(b,1),g.setEnd(b,2),g.deleteContents(),"13"==b.data&&(n.deleteContents=function(){this.nativeRange.deleteContents(),u(this)},n.extractContents=function(){var t=this.nativeRange.extractContents();return u(this),t}),v.removeChild(f),v=null,s.isHostMethod(g,"createContextualFragment")&&(n.createContextualFragment=function(t){return this.nativeRange.createContextualFragment(t)}),a(document).removeChild(p),n.getName=function(){return"WrappedRange"},t.WrappedRange=i,t.createNativeRange=function(t){return(t=d(t,e,"createNativeRange")).createRange()}}(),t.features.implementsTextRange){var u=function(t){var e=t.parentElement(),i=t.duplicate();i.collapse(!0);var n=i.parentElement();(i=t.duplicate()).collapse(!1);var s=i.parentElement(),r=n==s?n:o.getCommonAncestor(n,s);return r==e?r:o.getCommonAncestor(e,r)},h=function(t){return 0==t.compareEndPoints("StartToEnd",t)},p=function(t,e,i,n,s){var l=t.duplicate();l.collapse(i);var a=l.parentElement();if(o.isOrIsAncestorOf(e,a)||(a=e),!a.canHaveHTML){var d=new r(a.parentNode,o.getNodeIndex(a));return{boundaryPosition:d,nodeInfo:{nodeIndex:d.offset,containerElement:d.node}}}var u=o.getDocument(a).createElement("span");u.parentNode&&o.removeNode(u);for(var h,p,g,m,f,b=i?"StartToStart":"StartToEnd",v=s&&s.containerElement==a?s.nodeIndex:0,y=a.childNodes.length,x=y,w=x;w==y?a.appendChild(u):a.insertBefore(u,a.childNodes[w]),l.moveToElementText(u),0!=(h=l.compareEndPoints(b,t))&&v!=x;){if(-1==h){if(x==v+1)break;v=w}else x=x==v+1?v:w;w=Math.floor((v+x)/2),a.removeChild(u)}if(f=u.nextSibling,-1==h&&f&&c(f)){var S;if(l.setEndPoint(i?"EndToStart":"EndToEnd",t),/[\r\n]/.test(f.data)){var _=l.duplicate(),C=_.text.replace(/\r\n/g,"\r").length;for(S=_.moveStart("character",C);-1==(h=_.compareEndPoints("StartToEnd",_));)S++,_.moveStart("character",1)}else S=l.text.length;m=new r(f,S)}else p=(n||!i)&&u.previousSibling,m=(g=(n||i)&&u.nextSibling)&&c(g)?new r(g,0):p&&c(p)?new r(p,p.data.length):new r(a,o.getNodeIndex(u));return o.removeNode(u),{boundaryPosition:m,nodeInfo:{nodeIndex:w,containerElement:a}}},g=function(t,e){var i,n,s,r,l=t.offset,d=o.getDocument(t.node),u=a(d).createTextRange(),h=c(t.node);return h?n=(i=t.node).parentNode:(i=l<(r=t.node.childNodes).length?r[l]:null,n=t.node),(s=d.createElement("span")).innerHTML="&#feff;",i?n.insertBefore(s,i):n.appendChild(s),u.moveToElementText(s),u.collapse(!e),n.removeChild(s),h&&u[e?"moveStart":"moveEnd"]("character",l),u};(n=function(t){this.textRange=t,this.refresh()}).prototype=new l(document),n.prototype.refresh=function(){var t,e,i,n=u(this.textRange);h(this.textRange)?e=t=p(this.textRange,n,!0,!0).boundaryPosition:(t=(i=p(this.textRange,n,!0,!1)).boundaryPosition,e=p(this.textRange,n,!1,!1,i.nodeInfo).boundaryPosition),this.setStart(t.node,t.offset),this.setEnd(e.node,e.offset)},n.prototype.getName=function(){return"WrappedTextRange"},l.copyComparisonConstants(n);var m=function(t){if(t.collapsed)return g(new r(t.startContainer,t.startOffset),!0);var e=g(new r(t.startContainer,t.startOffset),!0),i=g(new r(t.endContainer,t.endOffset),!1),n=a(l.getRangeDocument(t)).createTextRange();return n.setEndPoint("StartToStart",e),n.setEndPoint("EndToEnd",i),n};if(n.rangeToTextRange=m,n.prototype.toTextRange=function(){return m(this)},t.WrappedTextRange=n,!t.features.implementsDomRange||t.config.preferTextRange){var f=Function("return this;")();void 0===f.Range&&(f.Range=n),t.createNativeRange=function(t){return t=d(t,e,"createNativeRange"),a(t).createTextRange()},t.WrappedRange=n}}t.createRange=function(i){return i=d(i,e,"createRange"),new t.WrappedRange(t.createNativeRange(i))},t.createRangyRange=function(t){return t=d(t,e,"createRangyRange"),new l(t)},s.createAliasForDeprecatedMethod(t,"createIframeRange","createRange"),s.createAliasForDeprecatedMethod(t,"createIframeRangyRange","createRangyRange"),t.addShimListener((function(e){var i=e.document;void 0===i.createRange&&(i.createRange=function(){return t.createRange(i)}),i=e=null}))})),S.createCoreModule("WrappedSelection",["DomRange","WrappedRange"],(function(t,e){t.config.checkSelectionRanges=!0;var i,n,o="boolean",s="number",r=t.dom,l=t.util,a=l.isHostMethod,d=t.DomRange,c=t.WrappedRange,u=t.DOMException,h=r.DomPosition,p=t.features,g="Control",m=r.getDocument,f=r.getBody,b=d.rangesEqual;function v(t){return"string"==typeof t?/^backward(s)?$/i.test(t):!!t}function y(t,i){if(t){if(r.isWindow(t))return t;if(t instanceof Z)return t.win;var n=r.getContentDocument(t,e,i);return r.getWindow(n)}return window}function x(t){return y(t,"getWinSelection").getSelection()}function w(t){return y(t,"getDocSelection").document.selection}function S(t){var e=!1;return t.anchorNode&&(e=1==r.comparePoints(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)),e}var _=a(window,"getSelection"),C=l.isHostObject(document,"selection");p.implementsWinGetSelection=_,p.implementsDocSelection=C;var k=C&&(!_||t.config.preferTextRange);if(k)i=w,t.isSelectionValid=function(t){var e=y(t,"isSelectionValid").document,i=e.selection;return"None"!=i.type||m(i.createRange().parentElement())==e};else{if(!_)return e.fail("Neither document.selection or window.getSelection() detected."),!1;i=x,t.isSelectionValid=function(){return!0}}t.getNativeSelection=i;var E=i();if(!E)return e.fail("Native selection was null (possibly issue 138?)"),!1;var A=t.createNativeRange(document),L=f(document),q=l.areHostProperties(E,["anchorNode","focusNode","anchorOffset","focusOffset"]);p.selectionHasAnchorAndFocus=q;var T=a(E,"extend");p.selectionHasExtend=T;var M=a(E,"setBaseAndExtent");p.selectionHasSetBaseAndExtent=M;var R=typeof E.rangeCount==s;p.selectionHasRangeCount=R;var O=!1,B=!0,N=T?function(e,i){var n=d.getRangeDocument(i),o=t.createRange(n);o.collapseToPoint(i.endContainer,i.endOffset),e.addRange(U(o)),e.extend(i.startContainer,i.startOffset)}:null;l.areHostMethods(E,["addRange","getRangeAt","removeAllRanges"])&&typeof E.rangeCount==s&&p.implementsDomRange&&function(){var e=window.getSelection();if(e){for(var i=e.rangeCount,n=i>1,o=[],s=S(e),l=0;l<i;++l)o[l]=e.getRangeAt(l);var a=r.createTestElement(document,"",!1),d=a.appendChild(document.createTextNode("   ")),c=document.createRange();if(c.setStart(d,1),c.collapse(!0),e.removeAllRanges(),e.addRange(c),B=1==e.rangeCount,e.removeAllRanges(),!n){var u=window.navigator.appVersion.match(/Chrome\/(.*?) /);if(u&&parseInt(u[1])>=36)O=!1;else{var h=c.cloneRange();c.setStart(d,0),h.setEnd(d,3),h.setStart(d,2),e.addRange(c),e.addRange(h),O=2==e.rangeCount}}for(r.removeNode(a),e.removeAllRanges(),l=0;l<i;++l)0==l&&s?N?N(e,o[l]):(t.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"),e.addRange(o[l])):e.addRange(o[l])}}(),p.selectionSupportsMultipleRanges=O,p.collapsedNonEditableSelectionsSupported=B;var I,$,D=!1;function z(t,e,i){var n=i?"end":"start",o=i?"start":"end";t.anchorNode=e[n+"Container"],t.anchorOffset=e[n+"Offset"],t.focusNode=e[o+"Container"],t.focusOffset=e[o+"Offset"]}function P(t){var e=t.nativeSelection;t.anchorNode=e.anchorNode,t.anchorOffset=e.anchorOffset,t.focusNode=e.focusNode,t.focusOffset=e.focusOffset}function H(t){t.anchorNode=t.focusNode=null,t.anchorOffset=t.focusOffset=0,t.rangeCount=0,t.isCollapsed=!0,t._ranges.length=0,F(t)}function F(t){t.type=0==t.rangeCount?"None":n(t)?"Caret":"Range"}function U(e){var i;return e instanceof d?((i=t.createNativeRange(e.getDocument())).setEnd(e.endContainer,e.endOffset),i.setStart(e.startContainer,e.startOffset)):e instanceof c?i=e.nativeRange:p.implementsDomRange&&e instanceof r.getWindow(e.startContainer).Range&&(i=e),i}function j(t){if(!t.length||1!=t[0].nodeType)return!1;for(var e=1,i=t.length;e<i;++e)if(!r.isAncestorOf(t[0],t[e]))return!1;return!0}function W(t){var i=t.getNodes();if(!j(i))throw e.createError("getSingleElementFromRange: range "+t.inspect()+" did not consist of a single element");return i[0]}function G(t){return!!t&&void 0!==t.text}function V(t,e){var i=new c(e);t._ranges=[i],z(t,i,!1),t.rangeCount=1,t.isCollapsed=i.collapsed,F(t)}function Y(e){if(e._ranges.length=0,"None"==e.docSelection.type)H(e);else{var i=e.docSelection.createRange();if(G(i))V(e,i);else{e.rangeCount=i.length;for(var n,o=m(i.item(0)),s=0;s<e.rangeCount;++s)(n=t.createRange(o)).selectNode(i.item(s)),e._ranges.push(n);e.isCollapsed=1==e.rangeCount&&e._ranges[0].collapsed,z(e,e._ranges[e.rangeCount-1],!1),F(e)}}}function X(t,i){for(var n=t.docSelection.createRange(),o=W(i),s=m(n.item(0)),r=f(s).createControlRange(),l=0,a=n.length;l<a;++l)r.add(n.item(l));try{r.add(o)}catch(t){throw e.createError("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)")}r.select(),Y(t)}function Z(t,e,i){this.nativeSelection=t,this.docSelection=e,this._ranges=[],this.win=i,this.refresh()}function K(t){t.win=t.anchorNode=t.focusNode=t._ranges=null,t.rangeCount=t.anchorOffset=t.focusOffset=0,t.detached=!0,F(t)}L&&a(L,"createControlRange")&&(I=L.createControlRange(),l.areHostProperties(I,["item","add"])&&(D=!0)),p.implementsControlRange=D,n=q?function(t){return t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset}:function(t){return!!t.rangeCount&&t.getRangeAt(t.rangeCount-1).collapsed},a(E,"getRangeAt")?$=function(t,e){try{return t.getRangeAt(e)}catch(t){return null}}:q&&($=function(e){var i=m(e.anchorNode),n=t.createRange(i);return n.setStartAndEnd(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset),n.collapsed!==this.isCollapsed&&n.setStartAndEnd(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset),n}),Z.prototype=t.selectionPrototype;var Q=[];function J(t,e){for(var i,n,o=Q.length;o--;)if(n=(i=Q[o]).selection,"deleteAll"==e)K(n);else if(i.win==t)return"delete"==e?(Q.splice(o,1),!0):n;return"deleteAll"==e&&(Q.length=0),null}var tt=function(t){if(t&&t instanceof Z)return t.refresh(),t;var e=J(t=y(t,"getNativeSelection")),n=i(t),o=C?w(t):null;return e?(e.nativeSelection=n,e.docSelection=o,e.refresh()):(e=new Z(n,o,t),Q.push({win:t,selection:e})),e};t.getSelection=tt,l.createAliasForDeprecatedMethod(t,"getIframeSelection","getSelection");var et,it=Z.prototype;function nt(t,i){for(var n,o=m(i[0].startContainer),s=f(o).createControlRange(),r=0,l=i.length;r<l;++r){n=W(i[r]);try{s.add(n)}catch(t){throw e.createError("setRanges(): Element within one of the specified Ranges could not be added to control selection (does it have layout?)")}}s.select(),Y(t)}if(!k&&q&&l.areHostMethods(E,["removeAllRanges","addRange"])){it.removeAllRanges=function(){this.nativeSelection.removeAllRanges(),H(this)};var ot=function(t,e){N(t.nativeSelection,e),t.refresh()};it.addRange=R?function(e,i){if(D&&C&&this.docSelection.type==g)X(this,e);else if(v(i)&&T)ot(this,e);else{var o;O?o=this.rangeCount:(this.removeAllRanges(),o=0);var s=U(e).cloneRange();try{this.nativeSelection.addRange(s)}catch(t){}if(this.rangeCount=this.nativeSelection.rangeCount,this.rangeCount==o+1){if(t.config.checkSelectionRanges){var r=$(this.nativeSelection,this.rangeCount-1);r&&!b(r,e)&&(e=new c(r))}this._ranges[this.rangeCount-1]=e,z(this,e,st(this.nativeSelection)),this.isCollapsed=n(this),F(this)}else this.refresh()}}:function(t,e){v(e)&&T?ot(this,t):(this.nativeSelection.addRange(U(t)),this.refresh())},it.setRanges=function(t){if(D&&C&&t.length>1)nt(this,t);else{this.removeAllRanges();for(var e=0,i=t.length;e<i;++e)this.addRange(t[e])}}}else{if(!(a(E,"empty")&&a(A,"select")&&D&&k))return e.fail("No means of selecting a Range or TextRange was found"),!1;it.removeAllRanges=function(){try{if(this.docSelection.empty(),"None"!=this.docSelection.type){var t;if(this.anchorNode)t=m(this.anchorNode);else if(this.docSelection.type==g){var e=this.docSelection.createRange();e.length&&(t=m(e.item(0)))}t&&(f(t).createTextRange().select(),this.docSelection.empty())}}catch(t){}H(this)},it.addRange=function(e){this.docSelection.type==g?X(this,e):(t.WrappedTextRange.rangeToTextRange(e).select(),this._ranges[0]=e,this.rangeCount=1,this.isCollapsed=this._ranges[0].collapsed,z(this,e,!1),F(this))},it.setRanges=function(t){this.removeAllRanges();var e=t.length;e>1?nt(this,t):e&&this.addRange(t[0])}}if(it.getRangeAt=function(t){if(t<0||t>=this.rangeCount)throw new u("INDEX_SIZE_ERR");return this._ranges[t].cloneRange()},k)et=function(e){var i;t.isSelectionValid(e.win)?i=e.docSelection.createRange():(i=f(e.win.document).createTextRange()).collapse(!0),e.docSelection.type==g?Y(e):G(i)?V(e,i):H(e)};else if(a(E,"getRangeAt")&&typeof E.rangeCount==s)et=function(e){if(D&&C&&e.docSelection.type==g)Y(e);else if(e._ranges.length=e.rangeCount=e.nativeSelection.rangeCount,e.rangeCount){for(var i=0,o=e.rangeCount;i<o;++i)e._ranges[i]=new t.WrappedRange(e.nativeSelection.getRangeAt(i));z(e,e._ranges[e.rangeCount-1],st(e.nativeSelection)),e.isCollapsed=n(e),F(e)}else H(e)};else{if(!q||typeof E.isCollapsed!=o||typeof A.collapsed!=o||!p.implementsDomRange)return e.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;et=function(t){var e,i=t.nativeSelection;i.anchorNode?(e=$(i,0),t._ranges=[e],t.rangeCount=1,P(t),t.isCollapsed=n(t),F(t)):H(t)}}it.refresh=function(t){var e=t?this._ranges.slice(0):null,i=this.anchorNode,n=this.anchorOffset;if(et(this),t){var o=e.length;if(o!=this._ranges.length)return!0;if(this.anchorNode!=i||this.anchorOffset!=n)return!0;for(;o--;)if(!b(e[o],this._ranges[o]))return!0;return!1}};var st,rt=function(t,e){var i=t.getAllRanges();t.removeAllRanges();for(var n=0,o=i.length;n<o;++n)b(e,i[n])||t.addRange(i[n]);t.rangeCount||H(t)};function lt(t,e){if(t.win.document!=m(e))throw new u("WRONG_DOCUMENT_ERR")}function at(t,e){if(e<0||e>(r.isCharacterDataNode(t)?t.length:t.childNodes.length))throw new u("INDEX_SIZE_ERR")}function dt(e){return function(i,n){var o;this.rangeCount?(o=this.getRangeAt(0))["set"+(e?"Start":"End")](i,n):(o=t.createRange(this.win.document)).setStartAndEnd(i,n),this.setSingleRange(o,this.isBackward())}}function ct(t){var e=[],i=new h(t.anchorNode,t.anchorOffset),n=new h(t.focusNode,t.focusOffset),o="function"==typeof t.getName?t.getName():"Selection";if(void 0!==t.rangeCount)for(var s=0,r=t.rangeCount;s<r;++s)e[s]=d.inspect(t.getRangeAt(s));return"["+o+"(Ranges: "+e.join(", ")+")(anchor: "+i.inspect()+", focus: "+n.inspect()+"]"}it.removeRange=D&&C?function(t){if(this.docSelection.type==g){for(var e=this.docSelection.createRange(),i=W(t),n=m(e.item(0)),o=f(n).createControlRange(),s=!1,r=0,l=e.length;r<l;++r)e.item(r)!==i||s?o.add(e.item(r)):s=!0;o.select(),Y(this)}else rt(this,t)}:function(t){rt(this,t)},!k&&q&&p.implementsDomRange?(st=S,it.isBackward=function(){return st(this)}):st=it.isBackward=function(){return!1},it.isBackwards=it.isBackward,it.toString=function(){for(var t=[],e=0,i=this.rangeCount;e<i;++e)t[e]=""+this._ranges[e];return t.join("")},it.collapse=function(e,i){lt(this,e);var n=t.createRange(e);n.collapseToPoint(e,i),this.setSingleRange(n),this.isCollapsed=!0},it.collapseToStart=function(){if(!this.rangeCount)throw new u("INVALID_STATE_ERR");var t=this._ranges[0];this.collapse(t.startContainer,t.startOffset)},it.collapseToEnd=function(){if(!this.rangeCount)throw new u("INVALID_STATE_ERR");var t=this._ranges[this.rangeCount-1];this.collapse(t.endContainer,t.endOffset)},it.selectAllChildren=function(e){lt(this,e);var i=t.createRange(e);i.selectNodeContents(e),this.setSingleRange(i)},M?it.setBaseAndExtent=function(t,e,i,n){this.nativeSelection.setBaseAndExtent(t,e,i,n),this.refresh()}:T&&(it.setBaseAndExtent=function(e,i,n,o){at(e,i),at(n,o),lt(this,e),lt(this,n);var s=t.createRange(node),l=-1==r.comparePoints(e,i,n,o);l?s.setStartAndEnd(n,o,e,i):s.setStartAndEnd(e,i,n,o),this.setSingleRange(s,l)}),it.deleteFromDocument=function(){if(D&&C&&this.docSelection.type==g){for(var t,e=this.docSelection.createRange();e.length;)t=e.item(0),e.remove(t),r.removeNode(t);this.refresh()}else if(this.rangeCount){var i=this.getAllRanges();if(i.length){this.removeAllRanges();for(var n=0,o=i.length;n<o;++n)i[n].deleteContents();this.addRange(i[o-1])}}},it.eachRange=function(t,e){for(var i=0,n=this._ranges.length;i<n;++i)if(t(this.getRangeAt(i)))return e},it.getAllRanges=function(){var t=[];return this.eachRange((function(e){t.push(e)})),t},it.setSingleRange=function(t,e){this.removeAllRanges(),this.addRange(t,e)},it.callMethodOnEachRange=function(t,e){var i=[];return this.eachRange((function(n){i.push(n[t].apply(n,e||[]))})),i},it.setStart=dt(!0),it.setEnd=dt(!1),t.rangePrototype.select=function(t){tt(this.getDocument()).setSingleRange(this,t)},it.changeEachRange=function(t){var e=[],i=this.isBackward();this.eachRange((function(i){t(i),e.push(i)})),this.removeAllRanges(),i&&1==e.length?this.addRange(e[0],"backward"):this.setRanges(e)},it.containsNode=function(t,e){return this.eachRange((function(i){return i.containsNode(t,e)}),!0)||!1},it.getBookmark=function(t){return{backward:this.isBackward(),rangeBookmarks:this.callMethodOnEachRange("getBookmark",[t])}},it.moveToBookmark=function(e){for(var i,n,o=[],s=0;i=e.rangeBookmarks[s++];)(n=t.createRange(this.win)).moveToBookmark(i),o.push(n);e.backward?this.setSingleRange(o[0],"backward"):this.setRanges(o)},it.saveRanges=function(){return{backward:this.isBackward(),ranges:this.callMethodOnEachRange("cloneRange")}},it.restoreRanges=function(t){this.removeAllRanges();for(var e,i=0;e=t.ranges[i];++i)this.addRange(e,t.backward&&0==i)},it.toHtml=function(){var t=[];return this.eachRange((function(e){t.push(d.toHtml(e))})),t.join("")},p.implementsTextRange&&(it.getNativeTextRange=function(){var i;if(i=this.docSelection){var n=i.createRange();if(G(n))return n;throw e.createError("getNativeTextRange: selection is a control selection")}if(this.rangeCount>0)return t.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw e.createError("getNativeTextRange: selection contains no range")}),it.getName=function(){return"WrappedSelection"},it.inspect=function(){return ct(this)},it.detach=function(){J(this.win,"delete"),K(this)},Z.detachAll=function(){J(null,"deleteAll")},Z.inspect=ct,Z.isDirectionBackward=v,t.Selection=Z,t.selectionPrototype=it,t.addShimListener((function(t){void 0===t.getSelection&&(t.getSelection=function(){return tt(t)}),t=null}))}));var D=!1,z=function(t){D||(D=!0,!S.initialized&&S.config.autoInitialize&&q())};return x&&("complete"==document.readyState?z():(l(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",z,!1),b(window,"load",z))),S}();var i=e.exports;class n{constructor(t){this.builder=t,this.dom=this.builder.dom}cellSelected(){return this.builder.doc.querySelector(".cell-active")}rowSelected(){return this.builder.doc.querySelector(".row-active")}builderStuff(){return document.querySelector("#_cbhtml")}cellNext(t){const e=this.dom;let i=t.nextElementSibling;return i?e.hasClass(i,"is-row-tool")||e.hasClass(i,"is-col-tool")||e.hasClass(i,"is-rowadd-tool")||e.hasClass(i,"is-row-overlay")?null:i:null}out(t){if(this.builder){let e=this.builder.opts.lang[t];return e||(this.builder.checkLang&&console.log(t),t)}return t}showMessage(t){const e=this.dom;let i="";i=`<div class="is-modal modalmessage" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-top: 15px;padding-bottom: 20px;max-width: 450px;">\n <div style="margin: 20px 0 30px;font-size: 17px;">${t}</div>\n <button title="${this.out("Ok")}" class="input-ok classic focus-warning">${this.out("Ok")}</button>\n </div>\n </div>`;const n=this.builder.builderStuff;let o=n.querySelector(".modalmessage");o||(e.appendHtml(n,i),o=n.querySelector(".modalmessage")),this.showModal(o,!1,(()=>{o.parentNode.removeChild(o)}));let s=o.querySelector(".modalmessage .input-ok");e.addEventListener(s,"click",(()=>{this.hideModal(o),o.parentNode.removeChild(o)}))}showChoice(t,e,i){const n=this.dom;let o="";o=`<div class="is-modal modalmessage" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-top: 15px;padding-bottom: 20px;max-width: 450px;">\n <div style="margin: 20px 0 30px;font-size: 17px;">${t}</div>\n\n <div style="display:flex;">\n <button title="${this.out("Cancel")}" class="input-cancel classic-secondary" style="width:100%;margin-right:4px;">${this.out("Cancel")}</button>\n <button title="${e}" class="input-ok classic-primary" style="width:100%">${e}</button>\n </div>\n </div>\n </div>`;const s=this.builder.builderStuff;let r=s.querySelector(".modalmessage");r||(n.appendHtml(s,o),r=s.querySelector(".modalmessage")),this.showModal(r,!1,(()=>{r.parentNode.removeChild(r),i(!1)}));let l=r.querySelector(".modalmessage .input-cancel");n.addEventListener(l,"click",(()=>{this.hideModal(r),r.parentNode.removeChild(r),i(!1)})),l.focus();let a=r.querySelector(".modalmessage .input-ok");n.addEventListener(a,"click",(()=>{this.hideModal(r),r.parentNode.removeChild(r),i(!0)}))}confirm(t,e,i,n){if(!this.builder.deleteConfirm)return void e(!0);const o=this.dom;let s="";s=`<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-bottom:20px;">\n <div style="margin: 20px 0 30px;font-size: 14px;">${t}</div>\n <button title="${this.out("Delete")}" class="input-ok classic focus-warning">${this.out("Delete")}</button>\n </div>\n </div>`,i&&(s=`<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-bottom:20px;">\n <div style="margin: 20px 0 30px;font-size: 14px;">${t}</div>\n <button title="${this.out("Cancel")}" class="input-cancel classic-secondary">${this.out("Cancel")}</button>\n <button title="${n}" class="input-ok classic-primary">${n}</button>\n </div>\n </div>`);const r=this.builder.builderStuff;let l=r.querySelector(".is-confirm");l||(o.appendHtml(r,s),l=r.querySelector(".is-confirm")),this.showModal(l,!1,(()=>{l.parentNode.removeChild(l),e(!1)}),!0);let a=l.querySelector(".is-confirm .input-ok");o.addEventListener(a,"click",(()=>{this.hideModal(l),l.parentNode.removeChild(l),e(!0)}));let d=l.querySelector(".is-confirm .input-cancel");o.addEventListener(d,"click",(t=>{this.hideModal(l),l.parentNode.removeChild(l),e(!1),t.preventDefault(),t.stopImmediatePropagation()}))}showRtePop(t,e,i){const n=this.dom;t.style.display="flex",e&&e(),n.removeClass(t,"deactive"),n.addClass(t,"active");const o=e=>{t.contains(e.target)||i.contains(e.target)||e.target.closest(".pickcolormore")||(this.hideRtePop(t),t.removeEventListener("keydown",s),document.removeEventListener("click",o),this.builder.iframeDocument&&this.builder.doc.removeEventListener("click",o))},s=e=>{27===e.keyCode&&(this.hideRtePop(t),t.removeEventListener("keydown",s),document.removeEventListener("click",o),this.builder.iframeDocument&&this.builder.doc.removeEventListener("click",o))};t.addEventListener("keydown",s),document.addEventListener("click",o),this.builder.iframeDocument&&this.builder.doc.addEventListener("click",o)}hideRtePop(t){const e=this.dom;t.style.display="",e.removeClass(t,"active"),e.addClass(t,"deactive")}clearAllEventListener(t){for(let e=0;e<10;e++)t.removeEventListener("keydown",this.handlePopKeyDown),document.removeEventListener("click",this.handlePopClickOut),this.builder.iframeDocument&&this.builder.doc.removeEventListener("click",this.handlePopClickOut)}showPop(t,e,i){const n=this.dom;let o=document.querySelectorAll(".is-pop.active");Array.prototype.forEach.call(o,(e=>{e!==t&&(e.style.display="",n.removeClass(e,"active"),e.setAttribute("aria-hidden",!0))})),this.clearAllEventListener(t),t.style.display="flex",n.addClass(t,"active"),t.setAttribute("aria-hidden",!1),this.setupTabKeys(t),t.focus({preventScroll:!0}),this.handlePopClickOut=n=>{t.contains(n.target)||i.contains(n.target)||(this.hidePop(t),e&&e())},this.handlePopKeyDown=i=>{27===i.keyCode&&(this.hidePop(t),e&&e())},t.addEventListener("keydown",this.handlePopKeyDown),document.addEventListener("click",this.handlePopClickOut),this.builder.iframeDocument&&this.builder.doc.addEventListener("click",this.handlePopClickOut)}hidePop(t){const e=this.dom;t.style.display="",e.removeClass(t,"active"),t.setAttribute("aria-hidden",!0),this.clearAllEventListener(t)}setupTabKeys(t){let e=t.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])');if(0===e.length)return;let i=e[0],n=e[e.length-1];n.addEventListener("keydown",(n=>{9!==n.which||n.shiftKey||(n.preventDefault(),e=t.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])'),i=e[0],i.focus())})),i.addEventListener("keydown",(t=>{9===t.which&&t.shiftKey&&(t.preventDefault(),n.focus())}));t.querySelectorAll("iframe").forEach((t=>{t.addEventListener("focus",(()=>{const e=t.contentWindow.document.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])');if(0===e.length)return;let i=e[0];i&&i.focus()}))}))}showModal(t,e,i,n){const o=this.dom;o.addClass(t,"active"),t.setAttribute("aria-hidden",!1);const s=e=>{if(27===e.keyCode){o.hasClass(t,"active")&&this.hideModal(t),t.removeEventListener("keydown",s);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",d),i&&i()}};t.addEventListener("keydown",s);let r=t.querySelector(".is-tab-content.active");r?(r.focus(),this.builder.tabs.setupTabKey(r)):(this.setupTabKeys(t),t.focus());let l=!1;if(this.builder?this.builder.opts.animateModal&&(l=!0,n||(l=!1)):n&&(l=!0),l&&this.builder){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{t.style.transform=`scale(${this.builder.opts.zoom-.02})`,t.style.WebkitTransform=`scale(${this.builder.opts.zoom-.02})`,t.style.MozTransform=`scale(${this.builder.opts.zoom-.02})`,t.setAttribute("scaled-down","1")}))}const a=t.querySelector(".is-modal-overlay");if(a&&a.parentNode.removeChild(a),!t.querySelector(".is-modal-overlay")){let n;if(n=e?'<div class="is-modal-overlay overlay-stay"></div>':'<div class="is-modal-overlay"></div>',t.insertAdjacentHTML("afterbegin",n),!e){let e=t.querySelector(".is-modal-overlay");o.addEventListener(e,"click",(()=>{this.hideModal(t),t.removeEventListener("keydown",s);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",d),i&&i()}))}}const d=()=>{o.hasClass(t,"active")&&this.hideModal(t),t.removeEventListener("keydown",s);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",d),i&&i()},c=t.querySelector(".is-modal-close");c&&o.addEventListener(c,"click",d)}_hideModal(t){let e=t.querySelector(".is-modal-overlay");e?e.classList.contains("overlay-stay")?(this.hideModal(t),t.dispatchEvent(new KeyboardEvent("keydown",{key:"e",keyCode:27,code:"KeyE",which:27,shiftKey:!1,ctrlKey:!1,metaKey:!1}))):e.click():(this.hideModal(t),t.dispatchEvent(new KeyboardEvent("keydown",{key:"e",keyCode:27,code:"KeyE",which:27,shiftKey:!1,ctrlKey:!1,metaKey:!1})))}hideModal(t){if(t.setAttribute("aria-hidden",!0),this.builder){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{t.getAttribute("scaled-down")&&(t.style.transform=`scale(${this.builder.opts.zoom})`,t.style.WebkitTransform=`scale(${this.builder.opts.zoom})`,t.style.MozTransform=`scale(${this.builder.opts.zoom})`,t.removeAttribute("scaled-down"))}))}this.dom.removeClass(t,"active")}refreshModuleLayout(t){let e=decodeURIComponent(t.getAttribute("data-html"));e=e.replace(/{id}/g,this.builder.util.makeId()),t.innerHTML="";let i=document.createRange();i.setStart(t,0),t.appendChild(i.createContextualFragment(e));let n=t.querySelectorAll("[data-subblock]");var o=1;Array.prototype.forEach.call(n,(e=>{t.getAttribute("data-html-"+o)&&(e.innerHTML=decodeURIComponent(t.getAttribute("data-html-"+o)),e.contentEditable=!0),o++}))}removeColClasses(t){t.classList.remove("full"),t.classList.remove("two-third"),t.classList.remove("two-fourth"),t.classList.remove("two-fifth"),t.classList.remove("two-sixth"),t.classList.remove("half"),t.classList.remove("third"),t.classList.remove("fourth"),t.classList.remove("fifth"),t.classList.remove("sixth"),t.classList.remove("seventh"),t.classList.remove("eighth"),t.classList.remove("ninth"),t.classList.remove("tenth"),t.classList.remove("eleventh"),t.classList.remove("twelfth")}getAllColumns(t){let e=[];const i=this.dom;return i.elementChildren(t).forEach((t=>{i.hasClass(t,"is-row-tool")||i.hasClass(t,"is-col-tool")||i.hasClass(t,"is-rowadd-tool")||i.hasClass(t,"is-row-overlay")||e.push(t)})),e}fixLayout(t){const e=this.dom;let i=!1,n=!1;if(Array.from(t.children).map((e=>{e.classList.contains("is-row-tool")||e.classList.contains("is-col-tool")||e.classList.contains("is-rowadd-tool")||(e.getAttribute("data-html")?(e.style.width||(e.style.width="50%",e.style.flex="0 0 auto"),1===this.getAllColumns(t).length&&(e.style.width="",e.style.flex="")):(e.style.width="",e.style.flex=""),e.classList.contains("sm-hidden")&&(i=!0),e.classList.contains("md-hidden")&&(n=!0))})),i?t.classList.add("sm-autofit"):t.classList.remove("sm-autofit"),n?t.classList.add("md-autofit"):t.classList.remove("md-autofit"),this.builder.useDefaultGrid){return e.elementChildren(t).forEach((t=>{e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay")||this.removeColClasses(t)})),void Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}let o=3;t.querySelector(".is-row-overlay")&&(o=4);const s=t.childElementCount-o,r=this.builder.opts.row;let l=this.builder.opts.cols;const a=this.builder.opts.colequal;if(a.length>0){return e.elementChildren(t).forEach((t=>{if(!(e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay"))){for(let i=0;i<=l.length-1;i++)e.removeClass(t,l[i]);for(let i=0;i<=a.length-1;i++)if(a[i].length===s){e.addClass(t,a[i][0]);break}1===s&&e.addClass(t,l[l.length-1])}})),void Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}if(""!==r&&l.length>0){let i=0;e.elementChildren(t).forEach((t=>{if(!(e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay"))){-1!==t.className.indexOf("col-md-")||(-1!==t.className.indexOf("col-sm-")?l=["col-sm-1","col-sm-2","col-sm-3","col-sm-4","col-sm-5","col-sm-6","col-sm-7","col-sm-8","col-sm-9","col-sm-10","col-sm-11","col-sm-12"]:-1!==t.className.indexOf("col-xs-")?l=["col-xs-1","col-xs-2","col-xs-3","col-xs-4","col-xs-5","col-xs-6","col-xs-7","col-xs-8","col-xs-9","col-xs-10","col-xs-11","col-xs-12"]:-1!==t.className.indexOf("col-lg-")?l=["col-lg-1","col-lg-2","col-lg-3","col-lg-4","col-lg-5","col-lg-6","col-lg-7","col-lg-8","col-lg-9","col-lg-10","col-lg-11","col-lg-12"]:-1!==t.className.indexOf("col-xl-")?l=["col-xl-1","col-xl-2","col-xl-3","col-xl-4","col-xl-5","col-xl-6","col-xl-7","col-xl-8","col-xl-9","col-xl-10","col-xl-11","col-xl-12"]:-1!==t.className.indexOf("col-xxl-")&&(l=["col-xxl-1","col-xxl-2","col-xxl-3","col-xxl-4","col-xxl-5","col-xxl-6","col-xxl-7","col-xxl-8","col-xxl-9","col-xxl-10","col-xxl-11","col-xxl-12"])),i++;for(var n=0;n<=l.length-1;n++)e.removeClass(t,l[n]);1===s&&e.addClass(t,l[11]),2===s&&e.addClass(t,l[5]),3===s&&e.addClass(t,l[3]),4===s&&e.addClass(t,l[2]),5===s&&(5===i?e.addClass(t,l[3]):e.addClass(t,l[1])),6===s&&e.addClass(t,l[1]),7===s&&(i>=6?e.addClass(t,l[0]):e.addClass(t,l[1])),8===s&&(i>=5?e.addClass(t,l[0]):e.addClass(t,l[1])),9===s&&(i>=4?e.addClass(t,l[0]):e.addClass(t,l[1])),10===s&&(i>=3?e.addClass(t,l[0]):e.addClass(t,l[1])),11===s&&(i>=2?e.addClass(t,l[0]):e.addClass(t,l[1])),12===s&&e.addClass(t,l[0])}}))}Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}addContent(t,e,i){const n=this.dom;this.builder.opts.onAdd&&(t=this.builder.opts.onAdd(t));const o=this.cellSelected();let s;if(o)s=o.parentNode;else{if(s=this.builder.doc.querySelector(".row-active"),!s)return;e="row"}if("cell"===e||"cell-left"===e||"cell-right"===e){let r=4;this.builder.maxColumns&&(r=this.builder.maxColumns);let l,a=3;if(s.querySelector(".is-row-overlay")&&(a=4),s.childElementCount>=r+a)return alert(this.out("You have reached the maximum number of columns")),!1;if(this.builder.uo.saveForUndo(),""===this.builder.opts.row){let e=this.builder.opts.cellFormat,i=e.indexOf("</");t=e.substring(0,i)+t+e.substring(i),l=this.createElementFromHTML(t)}else{l=o.cloneNode(!0),l.removeAttribute("data-noedit"),l.removeAttribute("data-protected"),l.removeAttribute("data-module"),l.removeAttribute("data-module-desc"),l.removeAttribute("data-dialog-width"),l.removeAttribute("data-html"),l.removeAttribute("data-settings");for(let t=1;t<=20;t++)l.removeAttribute("data-html-"+t);l.removeAttribute("data-noedit"),n.removeClass(l,"cell-active"),n.removeClass(l,"is-light-text"),n.removeClass(l,"is-dark-text"),n.removeClass(l,"padding-0"),n.removeClass(l,"p-0"),l.removeAttribute("data-click"),l.removeAttribute("style"),i&&l.setAttribute(i,""),l.innerHTML=t}s.insertBefore(l,o),"cell"!==e&&"cell-right"!==e||n.moveAfter(l,o);let d=this.builder.doc.querySelector(".builder-active");d&&this.builder.applyBehaviorOn(d),this.fixLayout(s),l.click()}if("row"===e){let e,o;if(this.builder.uo.saveForUndo(),""===this.builder.opts.row){e=this.htmlToElement(this.builder.opts.rowFormat);let s=this.builder.opts.cellFormat,r=s.indexOf("</");t=s.substring(0,r)+t+s.substring(r);let l=n.elementChildren(e);for(;l.length>0&&(l=l[0],n.elementChildren(l).length>0);)l=n.elementChildren(l);l.innerHTML=t,o=l.firstChild,i&&o.setAttribute(i,"")}else o=n.createElement("div"),n.addClass(o,this.builder.opts.cols[this.builder.opts.cols.length-1]),o.innerHTML=t,i&&o.setAttribute(i,""),e=n.createElement("div"),n.addClass(e,this.builder.opts.row),n.appendChild(e,o);s.parentNode.insertBefore(e,s),n.moveAfter(e,s);let r=this.builder.doc.querySelector(".builder-active");r&&this.builder.applyBehaviorOn(r),o.click()}if("elm"===e){let e=this.builder.activeElement;if(!e)return;this.builder.uo.saveForUndo();let i=e;i.insertAdjacentHTML("afterend",t);let n=this.builder.doc.querySelector(".builder-active");n&&this.builder.applyBehaviorOn(n);let o=i.nextElementSibling;if("img"===o.tagName.toLowerCase()){let t=setInterval((()=>{o.complete&&(o.click(),clearInterval(t))}),30)}else o.click();let s=this.builder.builderStuff.querySelector(".quickadd");this.hidePop(s)}if(this.builder.useCssClasses){let t=this.builder.doc.querySelector(".builder-active");t&&n.contentReformat(t,this.builder.cssClasses)}this.builder.opts.onChange(),this.builder.opts.onRender()}htmlToElement(t){var e=document.createElement("template");return t=t.trim(),e.innerHTML=t,e.content.firstChild}addSnippet(t,e,i){this.builder.uo.saveForUndo();const n=this.dom;let o,s,r,l=!1;const a=this.builder.builderStuff.querySelector(".quickadd").getAttribute("data-mode");if(!e||"cell"!==a&&"cell-left"!==a&&"cell-right"!==a){if(e&&"row"===a){let e;if(r=document.createElement("div"),r.className=this.builder.opts.cols[this.builder.opts.cols.length-1],r.innerHTML=t,i&&r.setAttribute("data-noedit",""),o=document.createElement("div"),o.className=this.builder.opts.row,o.appendChild(r),s=this.builder.cellSelected(),s?e=s.parentNode:(e=this.builder.doc.querySelector(".row-active"),e||(l=!0)),l){const t=this.builder.doc.querySelectorAll(".is-builder"),i=t[t.length-1],o=n.elementChildren(i);e=o[o.length-1]}e.parentNode.insertBefore(o,e),n.moveAfter(o,e);let a=this.builder.doc.querySelector(".builder-active");a||(a=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(a),r.click(),o.className=o.className.replace("row-outline",""),this.builder.util.hideColumnTool()}else{if(e)return void(i?this.addContent(t,a,"data-noedit"):this.addContent(t,a));{var d=document.createElement("div");d.innerHTML=t;var c=d.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(c,(e=>{t=(t=(t=decodeURIComponent(e.getAttribute("data-html"))).replace(/{id}/g,this.makeId())).replace(/<script>/g,""+(this.builder.nonce?`<script nonce="${this.builder.nonce}">`:"<script>"));for(var i=1;i<=20;i++)t=t.replace("[%HTML"+i+"%]",void 0===e.getAttribute("data-html-"+i)?"":decodeURIComponent(e.getAttribute("data-html-"+i)));e.innerHTML=t})),1===d.childNodes.length&&1===d.childNodes[0].childNodes.length&&("cell"===a||"cell-left"===a||"cell-right"===a)){const t=this.cellSelected();let e=t.parentNode,i=4;if(this.builder.maxColumns&&(i=this.builder.maxColumns),e.querySelector(".is-row-overlay")){if(e.childElementCount>=i+4)return alert(this.out("You have reached the maximum number of columns")),!1}else if(e.childElementCount>=i+3)return alert(this.out("You have reached the maximum number of columns")),!1;this.builder.uo.saveForUndo();let n=d.childNodes[0].childNodes[0];var u=document.createRange();t.parentNode.insertBefore(u.createContextualFragment(n.outerHTML),t),"cell"!==a&&"cell-right"!==a||(t.parentNode.insertBefore(t.previousElementSibling,t),t.parentNode.insertBefore(t,t.previousElementSibling));let o=this.builder.doc.querySelector(".builder-active");return o||(o=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(o),this.fixLayout(e),"cell"===a||"cell-right"===a?t.nextElementSibling.click():t.previousElementSibling.click(),this.builder.opts.onChange(),void this.builder.opts.onRender()}let e;if(s=this.builder.activeCol,s?e=s.parentNode:(e=this.builder.doc.querySelector(".row-active"),e||(l=!0)),l){const t=this.builder.doc.querySelectorAll(".is-builder"),i=t[t.length-1],o=n.elementChildren(i);e=o[o.length-1]}u=document.createRange(),e.parentNode.insertBefore(u.createContextualFragment(d.innerHTML),e.nextSibling),o=d.childNodes[0],o=e.nextElementSibling;let i=this.builder.doc.querySelector(".builder-active");i||(i=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(i),r=o.querySelector("div"),r&&r.click(),o.className=o.className.replace("row-outline",""),this.builder.util.hideColumnTool()}}if(this.builder.useCssClasses){let t=this.builder.doc.querySelector(".builder-active");t&&n.contentReformat(t,this.builder.cssClasses)}this.builder.opts.onChange(),this.builder.opts.onRender()}else i?this.addContent(t,a,"data-noedit"):this.addContent(t,a)}clearActiveCell(){const t=this.builder.builderStuff;if(!t)return;if(t.getAttribute("preventDevault"))return void setTimeout((()=>{t.removeAttribute("preventDevault")}),30);let e=this.builder.doc.getElementsByClassName("cell-active");for(;e.length;)e[0].classList.remove("cell-active");for(e=this.builder.doc.getElementsByClassName("row-outline");e.length;)e[0].classList.remove("row-outline");for(e=this.builder.doc.getElementsByClassName("row-active");e.length;)e[0].classList.remove("row-active");for(e=this.builder.doc.getElementsByClassName("builder-active");e.length;)e[0].classList.remove("builder-active");this.builder.activeCol=null,this.builder.dom.removeClass(this.builder.doc.body,"content-edit")}clearAfterUndoRedo(){const t=this.dom,e=this.builder.builderStuff;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none",this.builder.activeSpacer=null,this.builder.activeCodeBlock=null,this.builder.activeLink=null,this.builder.activeLinkButton=null,this.builder.activeButton=null,this.builder.activeIframe=null,this.builder.activeTd=null,this.builder.activeTable=null,this.builder.activeModule=null;const n=this.builder.doc.querySelectorAll(".icon-active");Array.prototype.forEach.call(n,(e=>{t.removeClass(e,"icon-active")})),this.builder.activeIcon=null;let o=e.querySelector(".is-rte-tool").querySelectorAll("button");Array.prototype.forEach.call(o,(e=>{t.removeClass(e,"on")})),o=e.querySelector(".is-elementrte-tool").querySelectorAll("button"),Array.prototype.forEach.call(o,(e=>{t.removeClass(e,"on")}));let s=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(s,(t=>{t.style.display=""}))}hidePops(){const t=this.dom,e=this.builder.builderStuff;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}));let n=e.querySelectorAll(".is-pop.active");Array.prototype.forEach.call(n,(e=>{e.style.transition="all 200ms ease",setTimeout((()=>{e.style.opacity="0"}),10),setTimeout((()=>{e.style.display="",t.removeClass(e,"active"),e.style.opacity="",e.style.transition=""}),200)})),this.builder.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none"}hideControls(){const t=this.dom;let e=this.builder.builderStuff.querySelectorAll(".is-tool");Array.prototype.forEach.call(e,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(e=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(e,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none"}clearActiveElement(t){const e=this.dom,i=this.builder.builderStuff,n=this.builder.doc.querySelectorAll(".icon-active");Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"icon-active")}));let o=this.builder.doc.querySelectorAll(".elm-inspected");if(Array.prototype.forEach.call(o,(t=>{e.removeClass(t,"elm-inspected")})),o=this.builder.doc.querySelectorAll(".elm-active"),Array.prototype.forEach.call(o,(t=>{e.removeClass(t,"elm-active")})),i.querySelector(".is-element-tool").style.display="",i.querySelector("#divLinkTool").style.display="",t){this.builder.activeIcon=null,this.builder.inspectedElement=null,this.builder.activeElement=null;let t=i.querySelector(".is-rte-tool");t&&(t.style.display="none");let e=i.querySelector(".is-elementrte-tool");e&&(e.style.display="flex");let n=i.querySelector(".rte-more-options");n&&(n.style.display="");let o=i.querySelector(".elementrte-more-options");o&&(o.style.display="");let s=e.querySelectorAll("button[data-align]");Array.prototype.forEach.call(s,(t=>{t.style.display="none"})),this.builder.rte.positionToolbar()}}clearControls(){const t=this.dom,e=this.builder.builderStuff;if(!e)return;if(e.getAttribute("preventDevault"))return void setTimeout((()=>{e.removeAttribute("preventDevault")}),30);let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none",this.builder.activeSpacer=null,this.builder.activeCodeBlock=null,this.builder.activeLink=null,this.builder.activeLinkButton=null,this.builder.activeButton=null,this.builder.activeIframe=null,this.builder.activeTd=null,this.builder.activeTable=null,this.builder.activeModule=null,this.builder.activeImage=null;const n=this.builder.doc.querySelectorAll(".icon-active");Array.prototype.forEach.call(n,(e=>{t.removeClass(e,"icon-active")})),this.builder.activeIcon=null;let o=this.builder.doc.querySelectorAll(".ovl");Array.prototype.forEach.call(o,(t=>{t.style.display="block"}));var s=e.querySelectorAll(".is-side.elementstyles");Array.prototype.forEach.call(s,(e=>{t.removeClass(e,"active")}));let r=this.builder.doc.querySelectorAll("[data-saveforundo]");if(Array.prototype.forEach.call(r,(t=>{t.removeAttribute("data-saveforundo")})),r=this.builder.doc.querySelectorAll(".elm-inspected"),Array.prototype.forEach.call(r,(e=>{t.removeClass(e,"elm-inspected")})),"auto"===this.builder.toolbarDisplay){let t=e.querySelector(".is-rte-tool");t&&(t.style.display="none");let i=e.querySelector(".is-elementrte-tool");i&&(i.style.display="none");let n=e.querySelector(".rte-more-options");n&&(n.style.display="");let o=e.querySelector(".elementrte-more-options");o&&(o.style.display="")}r=this.builder.doc.querySelectorAll(".elm-active"),Array.prototype.forEach.call(r,(e=>{t.removeClass(e,"elm-active")}));let l=e.querySelectorAll(".is-rte-pop");Array.prototype.forEach.call(l,(e=>{e.style.display="",t.removeClass(e,"active"),t.removeClass(e,"deactive")}));let a=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(a,(e=>{e.style.display="",t.removeClass(e,"active"),e.setAttribute("aria-hidden",!0)})),this.builder.colTool.lockIndicator.style.display="",this.builder.resize&&this.builder.resize.destroy()}makeId(){let t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let i=0;i<2;i++)t+=e.charAt(Math.floor(Math.random()*e.length));let i="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let t=0;t<5;t++)i+=n.charAt(Math.floor(Math.random()*n.length));return t+i}getSelection(){const t=this.dom.getSelection();if(!t)return;const e=t.anchorNode;if(e){const r=e.nodeType!==Node.TEXT_NODE&&e.nodeType!==Node.COMMENT_NODE?e:e.parentElement,l=r&&r.innerText===t.toString();let a=!1;for(var n=[],o=i.getSelection(),s=0;s<o.rangeCount;++s)n=n.concat(o.getRangeAt(s).getNodes());const d=["p","h1","h2","h3","h4","h5","h6","div","pre"];if(n.forEach((t=>{if(t.tagName){const e=t.tagName.toLowerCase();-1!==d.indexOf(e)&&(a=!0)}})),this.builder.selectionMulti=!!a,l||""===t.toString().trim()){this.builder.selectionElm=r;let t=r.nodeName.toLowerCase();this.builder.activeLink="a"===t?r:null}else this.builder.selectionText=t,this.builder.activeLink=null}}saveSelection(){if(this.builder.win.getSelection){let t=this.builder.win.getSelection();if(t.getRangeAt&&t.rangeCount){let e=[];for(let i=0,n=t.rangeCount;i<n;++i)e.push(t.getRangeAt(i));return this.builder.selection=e,e}}else if(this.builder.doc.selection&&this.builder.doc.selection.createRange)return this.builder.selection=this.builder.doc.selection.createRange(),this.builder.doc.selection.createRange();return this.builder.selection=null,null}restoreSelection(){let t=this.builder.selection;if(t)if(this.builder.win.getSelection){let o=this.builder.win.getSelection();if(this.builder.doc.body.createTextRange){var e=this.builder.doc.body.createTextRange();e.collapse(),e.select()}else this.builder.win.getSelection?this.builder.win.getSelection().empty?this.builder.win.getSelection().empty():this.builder.win.getSelection().removeAllRanges&&this.builder.win.getSelection().removeAllRanges():this.builder.doc.selection&&this.builder.doc.selection.empty();for(var i=0,n=t.length;i<n;++i)o.addRange(t[i])}else this.builder.doc.selection&&t.select&&t.select()}cleanHTML(t,e){let i,n=t.replace(/(\n|\r| class=(")?Mso[a-zA-Z]+(")?)/g," "),o=new RegExp("\x3c!--(.*?)--\x3e","g");n=n.replace(o,""),i=e?new RegExp("<(/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>","gi"):new RegExp("<(/)*(meta|link|\\?xml:|st1:|o:|font)(.*?)>","gi"),n=n.replace(i,"");let s,r=["style","script","applet","embed","noframes","noscript"];for(let t=0;t<r.length;t++)i=new RegExp("<"+r[t]+".*?"+r[t]+"(.*?)>","gi"),n=n.replace(i,"");s=e?["style","start"]:["start"];for(let t=0;t<s.length;t++){let e=new RegExp(" "+s[t]+'="(.*?)"',"gi");n=n.replace(e,"")}return n=n.replace(/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s/>]))[^>]*>/gi,""),n=n.replace(/<(\/?)s>/gi,"<$1strike>"),n=n.replace(/&nbsp;/gi," "),n=n.replace(/background-color: rgba\(200, 200, 201, 0.11\);/gi,""),n=n.replace(/background-color: rgba\(200, 200, 201, 0.11\)/gi,""),n}checkEmpty(){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{this.checkEmptyOn(t)}))}checkEmptyOn(t){const e=this.dom,i=e.elementChildren(t);let n=!0;if(i.forEach((t=>{e.hasClass(t,"row-add-initial")||e.hasClass(t,"dummy-space")||(n=!1)})),n){let i=t.querySelector(".row-add-initial");i||(t.innerHTML=`<button type="button" class="row-add-initial">${this.out("Empty")}<br><span class="block">${this.out("+ Click to add content")}</span></div>`,i=t.querySelector(".row-add-initial")),i.addEventListener("click",(()=>{this.clearActiveCell();const n=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"builder-active")})),e.addClass(t,"builder-active"),e.addClass(i,"row-active");let o=this.builder.builderStuff.querySelector(".quickadd");o.querySelector(".is-pop-tabs").style.display="none";const s=window.innerHeight;let r,l;if(this.builder.iframe){let t=this.builder.iframe.getBoundingClientRect().top,e=this.builder.iframe.getBoundingClientRect().left;r=i.getBoundingClientRect().top+t,l=i.getBoundingClientRect().left+(i.offsetWidth*this.builder.opts.zoom/2-11)+e}else r=i.getBoundingClientRect().top,l=i.getBoundingClientRect().left+i.offsetWidth*this.builder.opts.zoom/2-11;o.style.display="flex",this.showPop(o,!1,i);const a=o.offsetWidth,d=o.offsetHeight;s-r>d?(r=r+i.offsetHeight*this.builder.opts.zoom-19,o.style.top=r+window.pageYOffset+27+"px",o.style.left=l-a/2+7+"px",e.removeClass(o,"arrow-bottom"),e.removeClass(o,"arrow-right"),e.removeClass(o,"arrow-left"),e.removeClass(o,"center"),e.addClass(o,"arrow-top"),e.addClass(o,"center")):(o.style.top=r+window.pageYOffset-d-8+"px",o.style.left=l-a/2+7+"px",e.removeClass(o,"arrow-top"),e.removeClass(o,"arrow-right"),e.removeClass(o,"arrow-left"),e.removeClass(o,"center"),e.addClass(o,"arrow-bottom"),e.addClass(o,"center")),o.setAttribute("data-mode","row")}))}else{let e=t.querySelector(".row-add-initial");e&&e.parentNode.removeChild(e)}}clearPreferences(){localStorage.removeItem("_theme"),localStorage.removeItem("_zoom"),localStorage.removeItem("_buildermode"),localStorage.removeItem("_editingtoolbar"),localStorage.removeItem("_editingtoolbardisplay"),localStorage.removeItem("_hidecelltool"),localStorage.removeItem("_rowtool"),localStorage.removeItem("_hideelementtool"),localStorage.removeItem("_hidesnippetaddtool"),localStorage.removeItem("_outlinemode"),localStorage.removeItem("_hiderowcoloutline"),localStorage.removeItem("_outlinestyle"),localStorage.removeItem("_hideelementhighlight"),localStorage.removeItem("_opensnippets"),localStorage.removeItem("_toolstyle"),localStorage.removeItem("_snippetssidebardisplay"),localStorage.removeItem("_htmlview"),localStorage.removeItem("_pasteresult"),localStorage.removeItem("_livepreview"),localStorage.removeItem("_dictation"),localStorage.removeItem("_mic"),localStorage.removeItem("_autosendcommand"),localStorage.removeItem("_sampleshown"),localStorage.removeItem("_scrollableeditor"),localStorage.removeItem("_animatedsorting"),localStorage.removeItem("_addbuttonplace"),localStorage.removeItem("_hiderowtool"),localStorage.removeItem("_dragwithouthandle"),localStorage.removeItem("_advancedhtmleditor"),localStorage.removeItem("_hidecolhtmleditor"),localStorage.removeItem("_hiderowhtmleditor")}pasteHtmlAtCaret(t,e){var i,n;if(this.restoreSelection(),this.builder.win.getSelection){if(!this.builder.activeCol)return;if((i=this.builder.win.getSelection()).getRangeAt&&i.rangeCount){(n=i.getRangeAt(0)).deleteContents();var o=this.builder.doc.createElement("div");o.innerHTML=t;for(var s,r,l=this.builder.doc.createDocumentFragment();s=o.firstChild;)r=l.appendChild(s);var a=l.firstChild;n.insertNode(l),r&&((n=n.cloneRange()).setStartAfter(r),e?n.setStartBefore(a):n.collapse(!0),i.removeAllRanges(),this.builder.isTouchSupport||i.addRange(n))}}else if((i=this.builder.doc.selection)&&"Control"!==i.type){if(!this.builder.activeCol)return;var d=i.createRange();d.collapse(!0),i.createRange().pasteHTML(t),e&&((n=i.createRange()).setEndPoint("StartToStart",d),this.builder.isTouchSupport||n.select())}}refreshModule(){let t=this.builder.activeModule;if(!t)return;let e=1,i=t.querySelectorAll("[data-subblock]");Array.prototype.forEach.call(i,(i=>{let n=i.innerHTML;t.setAttribute("data-html-"+e,encodeURIComponent(n)),e++}));let n=decodeURIComponent(t.getAttribute("data-html"));n=n.replace(/{id}/g,this.makeId()),t.innerHTML="";var o=document.createRange();o.setStart(t,0),t.appendChild(o.createContextualFragment(n)),i=t.querySelectorAll("[data-subblock]");var s=1;Array.prototype.forEach.call(i,(e=>{t.getAttribute("data-html-"+s)&&(e.innerHTML=decodeURIComponent(t.getAttribute("data-html-"+s))),s++})),this.repositionColumnTool(!0),this.builder.onRefreshTool&&this.builder.onRefreshTool()}repositionColumnTool(){let t=this.builder.activeCol;if(!t)return;let e=t.parentNode;if(t.parentNode||(e=this.rowSelected()),this.colTool=e.querySelector(".is-col-tool"),!this.colTool)return;t.parentNode||(this.colTool.style.display="none"),this.colTool.style.left=t.offsetLeft+"px";const i=this.builder.builderStuff.querySelector(".columnmore.active");if(i){const t=this.colTool.querySelector(".cell-more");i.classList.add("transition1"),setTimeout((()=>{let e,n;if(this.builder.iframe){let i=this.builder.iframe.getBoundingClientRect().top+window.pageYOffset,o=this.builder.iframe.getBoundingClientRect().left+window.pageXOffset;e=t.getBoundingClientRect().top+i,n=t.getBoundingClientRect().left+o}else e=t.getBoundingClientRect().top+window.pageYOffset,n=t.getBoundingClientRect().left+window.pageXOffset;i.style.top=e+35+"px",i.style.left=n-7+"px",setTimeout((()=>{i.classList.remove("transition1")}),300)}),30)}}hideColumnTool(){this.builder.doc.querySelectorAll(".is-col-tool").forEach((t=>{t.style.display="none"}))}isTouchSupport(){return!!window.matchMedia("(pointer: coarse)").matches}detectIE(){return!!document.documentMode}LightenDarkenColor(t,e){var i=!1;"#"===t[0]&&(t=t.slice(1),i=!0);var n=parseInt(t,16),o=(n>>16)+e;o>255?o=255:o<0&&(o=0);var s=(n>>8&255)+e;s>255?s=255:s<0&&(s=0);var r=(255&n)+e;return r>255?r=255:r<0&&(r=0),(i?"#":"")+String("000000"+(r|s<<8|o<<16).toString(16)).slice(-6)}getUIStyles(){this.dom.appendHtml(this.builder.builderStuff,'\n <input type="text" class="style-helper-input" style="display:none;">\n <label class="style-helper-label" style="display:none;"></label>\n <button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <select class="style-helper-select" style="display:none;"><option value=""></option></select>\n\n <div class="style-helper modal-color"></div>\n <div class="style-helper modal-background"></div>\n <div class="style-helper button-pickcolor-border"></div>\n <div class="style-helper button-pickcolor-background"></div>\n\n <button class="style-helper base"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <div class="style-helper base on"></div>\n <div class="style-helper base hover"></div>\n\n <div class="style-helper snippet-color"></div>\n <div class="style-helper snippet-background"></div>\n <div class="style-helper snippet-tabs-background"></div>\n <div class="style-helper snippet-tab-item-background"></div>\n <div class="style-helper snippet-tab-item-background-active"></div>\n <div class="style-helper snippet-tab-item-background-hover"></div>\n <div class="style-helper snippet-tab-item-color"></div>\n\n <div class="style-helper snippet-more-item-background"></div>\n <div class="style-helper snippet-more-item-background-active"></div>\n <div class="style-helper snippet-more-item-background-hover"></div>\n <div class="style-helper snippet-more-item-color"></div>\n\n <div class="style-helper tabs-background"></div>\n <div class="style-helper tab-item-active-border-bottom"></div>\n <div class="style-helper tab-item-color"></div>\n <div class="style-helper tabs-more-background"></div>\n <div class="style-helper tabs-more-border"></div>\n <div class="style-helper tabs-more-item-color"></div>\n <div class="style-helper tabs-more-item-background-hover"></div>\n <div class="style-helper separator-color"></div>\n <div class="style-helper outline-color"></div>\n ');const t=(t,e)=>{const i=this.builder.builderStuff.querySelector(".style-helper"+t);return window.getComputedStyle(i,null).getPropertyValue(e)},e=this.builder.builderStuff.querySelector(".style-helper-input"),i=this.builder.builderStuff.querySelector(".style-helper-label"),n=this.builder.builderStuff.querySelector(".style-helper-select"),o=this.builder.builderStuff.querySelector(".style-helper-button-classic");this.builder.styleModalColor=t(".modal-color","background-color"),this.builder.styleModalBackground=t(".modal-background","background-color"),this.builder.styleButtonPickColorBorder=t(".button-pickcolor-border","border"),this.builder.styleButtonPickColorBackground=t(".button-pickcolor-background","background-color"),this.builder.styleToolBackground=t(".base","background-color"),this.builder.styleButtonColor=t(".base","color"),this.builder.styleButtonSvgFill=(()=>{const t=this.builder.builderStuff.querySelector(".style-helper.base");return window.getComputedStyle(t.querySelector("svg"),null).getPropertyValue("fill")})(),this.builder.styleButtonBackgroundHover=t(".base.hover","background-color"),this.builder.styleSnippetColor=t(".snippet-color","background-color"),this.builder.styleSnippetBackground=t(".snippet-background","background-color"),this.builder.styleSnippetTabsBackground=t(".snippet-tabs-background","background-color"),this.builder.styleSnippetTabItemBackground=t(".snippet-tab-item-background","background-color"),this.builder.styleSnippetTabItemBackgroundActive=t(".snippet-tab-item-background-active","background-color"),this.builder.styleSnippetTabItemBackgroundHover=t(".snippet-tab-item-background-hover","background-color"),this.builder.styleSnippetTabItemColor=t(".snippet-tab-item-color","background-color"),this.builder.styleSnippetMoreItemBackground=t(".snippet-more-item-background","background-color"),this.builder.styleSnippetMoreItemBackgroundActive=t(".snippet-more-item-background-active","background-color"),this.builder.styleSnippetMoreItemBackgroundHover=t(".snippet-more-item-background-hover","background-color"),this.builder.styleSnippetMoreItemColor=t(".snippet-more-item-color","background-color"),this.builder.styleTabsBackground=t(".tabs-background","background-color"),this.builder.styleTabItemBorderBottomActive=t(".tab-item-active-border-bottom","border"),this.builder.styleTabItemColor=t(".tab-item-color","background-color"),this.builder.styleTabsMoreBackground=t(".tabs-more-background","background-color"),this.builder.styleTabsMoreBorder=t(".tabs-more-border","border"),this.builder.styleTabsMoreItemColor=t(".tabs-more-item-color","background-color"),this.builder.styleTabsMoreBackgroundHover=t(".tabs-more-item-background-hover","background-color"),this.builder.styleSeparatorColor=t(".separator-color","background-color"),this.builder.styleOutlineColor=t(".outline-color","background-color"),this.builder.styleSelectBackground=window.getComputedStyle(n,null).getPropertyValue("background-color"),this.builder.styleSelectColor=window.getComputedStyle(n,null).getPropertyValue("color"),this.builder.styleSelectOptionBackground=window.getComputedStyle(n.querySelector("option"),null).getPropertyValue("background-color"),this.builder.styleInputBackground=window.getComputedStyle(e,null).getPropertyValue("background-color"),this.builder.styleInputBorderBottom=window.getComputedStyle(e,null).getPropertyValue("border-bottom"),this.builder.styleInputColor=window.getComputedStyle(e,null).getPropertyValue("color"),this.builder.styleLabelColor=window.getComputedStyle(i,null).getPropertyValue("color"),this.builder.styleButtonClassicBackground=window.getComputedStyle(o,null).getPropertyValue("background-color"),this.builder.styleButtonClassicColor=window.getComputedStyle(o,null).getPropertyValue("color"),this.builder.styleButtonClassicBackgroundHover=this.getUIStyleValue(o,"hover","background-color"),this.builder.styleDark=!1,this.builder.styleColored=!1,this.builder.styleColoredDark=!1,this.builder.styleLight=!1,document.body.getAttribute("class")&&(-1!==document.body.getAttribute("class").indexOf("colored-dark")?this.builder.styleColoredDark=!0:-1!==document.body.getAttribute("class").indexOf("dark")?this.builder.styleDark=!0:-1!==document.body.getAttribute("class").indexOf("colored")?this.builder.styleColored=!0:-1!==document.body.getAttribute("class").indexOf("light")&&(this.builder.styleLight=!0))}getUIStyles_OLD(){this.dom.appendHtml(this.builder.builderStuff,'<button class="style-helper"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <input type="text" class="style-helper-input" style="display:none;">\n <label class="style-helper-label" style="display:none;"></label>\n <input class="style-helper-checkbox" type="checkbox" style="display:none;">\n <button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <select class="style-helper-select" style="display:none;"><option value=""></option></select>\n ');const t=this.builder.builderStuff.querySelector(".style-helper"),e=this.builder.builderStuff.querySelector(".style-helper-input"),i=this.builder.builderStuff.querySelector(".style-helper-label"),n=this.builder.builderStuff.querySelector(".style-helper-select"),o=this.builder.builderStuff.querySelector(".style-helper-button-classic");this.builder.styleModalColor=this.getUIStyleValue(t,"modal-color","background-color"),this.builder.styleModalBackground=this.getUIStyleValue(t,"modal-background","background-color"),this.builder.styleButtonPickColorBorder=this.getUIStyleValue(t,"button-pickcolor-border","border"),this.builder.styleButtonPickColorBackground=this.getUIStyleValue(t,"button-pickcolor-background","background-color"),this.builder.styleToolBackground=window.getComputedStyle(t,null).getPropertyValue("background-color"),this.builder.styleButtonColor=window.getComputedStyle(t,null).getPropertyValue("color"),this.builder.styleButtonSvgFill=window.getComputedStyle(t.querySelector("svg"),null).getPropertyValue("fill"),this.builder.styleButtonBackgroundHover=this.getUIStyleValue(t,"hover","background-color"),this.builder.styleSnippetColor=this.getUIStyleValue(t,"snippet-color","background-color"),this.builder.styleSnippetBackground=this.getUIStyleValue(t,"snippet-background","background-color"),this.builder.styleSnippetTabsBackground=this.getUIStyleValue(t,"snippet-tabs-background","background-color"),this.builder.styleSnippetTabItemBackground=this.getUIStyleValue(t,"snippet-tab-item-background","background-color"),this.builder.styleSnippetTabItemBackgroundActive=this.getUIStyleValue(t,"snippet-tab-item-background-active","background-color"),this.builder.styleSnippetTabItemBackgroundHover=this.getUIStyleValue(t,"snippet-tab-item-background-hover","background-color"),this.builder.styleSnippetTabItemColor=this.getUIStyleValue(t,"snippet-tab-item-color","background-color"),this.builder.styleSnippetMoreItemBackground=this.getUIStyleValue(t,"snippet-more-item-background","background-color"),this.builder.styleSnippetMoreItemBackgroundActive=this.getUIStyleValue(t,"snippet-more-item-background-active","background-color"),this.builder.styleSnippetMoreItemBackgroundHover=this.getUIStyleValue(t,"snippet-more-item-background-hover","background-color"),this.builder.styleSnippetMoreItemColor=this.getUIStyleValue(t,"snippet-more-item-color","background-color"),this.builder.styleTabsBackground=this.getUIStyleValue(t,"tabs-background","background-color"),this.builder.styleTabItemBorderBottomActive=this.getUIStyleValue(t,"tab-item-active-border-bottom","border"),this.builder.styleTabItemColor=this.getUIStyleValue(t,"tab-item-color","background-color"),this.builder.styleTabsMoreBackground=this.getUIStyleValue(t,"tabs-more-background","background-color"),this.builder.styleTabsMoreBorder=this.getUIStyleValue(t,"tabs-more-border","border"),this.builder.styleTabsMoreItemColor=this.getUIStyleValue(t,"tabs-more-item-color","background-color"),this.builder.styleTabsMoreBackgroundHover=this.getUIStyleValue(t,"tabs-more-item-background-hover","background-color"),this.builder.styleSeparatorColor=this.getUIStyleValue(t,"separator-color","background-color"),this.builder.styleSelectBackground=window.getComputedStyle(n,null).getPropertyValue("background-color"),this.builder.styleSelectColor=window.getComputedStyle(n,null).getPropertyValue("color"),this.builder.styleSelectOptionBackground=window.getComputedStyle(n.querySelector("option"),null).getPropertyValue("background-color"),this.builder.styleInputBackground=window.getComputedStyle(e,null).getPropertyValue("background-color"),this.builder.styleInputBorderBottom=window.getComputedStyle(e,null).getPropertyValue("border-bottom"),this.builder.styleInputColor=window.getComputedStyle(e,null).getPropertyValue("color"),this.builder.styleLabelColor=window.getComputedStyle(i,null).getPropertyValue("color"),this.builder.styleButtonClassicBackground=window.getComputedStyle(o,null).getPropertyValue("background-color"),this.builder.styleButtonClassicColor=window.getComputedStyle(o,null).getPropertyValue("color"),this.builder.styleButtonClassicBackgroundHover=this.getUIStyleValue(o,"hover","background-color"),this.builder.styleOutlineColor=this.getUIStyleValue(t,"outline-color","background-color"),this.builder.styleDark=!1,this.builder.styleColored=!1,this.builder.styleColoredDark=!1,this.builder.styleLight=!1,document.body.getAttribute("class")&&(-1!==document.body.getAttribute("class").indexOf("colored-dark")?this.builder.styleColoredDark=!0:-1!==document.body.getAttribute("class").indexOf("dark")?this.builder.styleDark=!0:-1!==document.body.getAttribute("class").indexOf("colored")?this.builder.styleColored=!0:-1!==document.body.getAttribute("class").indexOf("light")&&(this.builder.styleLight=!0))}getUIStyleValue(t,e,i){const n=this.dom;n.addClass(t,e);let o=window.getComputedStyle(t,null).getPropertyValue(i);return n.removeClass(t,e),o}getFontFamilyStyle(t){return`\n html, body {height:100%}\n body {overflow:hidden;margin:0;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size:100%; \n line-height:1.7;\n }\n #divFontList {margin:0;padding:0 0 9px 9px;height:100%;overflow-y:scroll !important;box-sizing:border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n #divFontList > li {width:100%;cursor:pointer;overflow:hidden;text-align:center;position:relative;\n display: flex;\n align-items: center;\n justify-content: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n outline:none;\n }\n #divFontList > li img {margin:7px 5px 7px 5px;max-width: 230px;max-height: 27px;pointer-events: none;}\n #divFontList > li div {position:absolute;top:0;left:0;width:100%;height:100%;}\n\n #divFontList > li > div {\n position:absolute;left:0px;top:0px;width:100%;height:100%;\n // z-index: 1;\n pointer-events: none;}\n\n #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n #divFontList > li > div:after {\n // background: rgba(0, 0, 0, 0.04); \n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n position: absolute;\n content: "";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n }\n #divFontList > li:hover > div:after,\n #divFontList > li:focus > div:after {\n opacity: 1;\n }\n #divFontList > li.on > div:after {\n opacity: 1;\n }\n\n ${this.builder.styleDark||this.builder.styleColoredDark||this.builder.styleColore?"":"\n #divFontList > li img {\n mix-blend-mode: multiply;\n }\n "}\n\n .dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n filter: invert(1);\n }\n .dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n \n .colored-dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored-dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored-dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n .colored #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n /* Scrollbar for toolbar/RTE and modal */\n\n .dark * {\n scrollbar-width: thin;\n scrollbar-color: rgba(255, 255, 255, 0.3) auto;\n }\n .dark *::-webkit-scrollbar {\n width: 12px;\n }\n .dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .dark *::-webkit-scrollbar-thumb {\n background-color:rgba(255, 255, 255, 0.3);\n } \n\n .colored-dark * {\n scrollbar-width: thin;\n scrollbar-color: rgb(100, 100, 100) auto;\n }\n .colored-dark *::-webkit-scrollbar {\n width: 12px;\n }\n .colored-dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored-dark *::-webkit-scrollbar-thumb {\n background-color:rgb(100, 100, 100);\n } \n\n .colored * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .colored *::-webkit-scrollbar {\n width: 12px;\n }\n .colored *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n\n .light * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .light *::-webkit-scrollbar {\n width: 12px;\n }\n .light *::-webkit-scrollbar-track {\n background: transparent;\n }\n .light *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n `}refreshFontFamilyStyle1(){let t=this.builder.rte.rteFontFamilyOptions.querySelector("iframe").contentWindow.document;t.querySelector("#mainstyle").innerHTML=this.getFontFamilyStyle(),this.builder.styleDark?t.body.setAttribute("class","dark"):this.builder.styleColored?t.body.className="colored":this.builder.styleColoredDark?t.body.className="colored-dark":this.builder.styleLight?t.body.className="light":t.body.className=""}refreshFontFamilyStyle2(){let t=this.builder.builderStuff.querySelector(".is-modal.pickfontfamily").querySelector("iframe").contentWindow.document;t.querySelector("#mainstyle").innerHTML=this.getFontFamilyStyle(!0),this.builder.styleDark?t.body.setAttribute("class","dark"):this.builder.styleColored?t.body.className="colored":this.builder.styleColoredDark?t.body.className="colored-dark":this.builder.styleLight?t.body.className="light":t.body.className=""}getFontPreview(){let t=this.builder.fontAssetPath,e="";return e=`\n <li role="option" tabindex="0" data-provider="" data-font-family="" style="font-size:12px;padding:10px 7px;box-sizing:border-box;"><div></div>\n <span style="z-index:1;position: relative;pointer-events: none;">${this.out("None")}</span>\n </li>\n <li role="option" tabindex="0" data-provider="" data-font-family="Arial, sans-serif"><div></div><img src="${t}arial.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="courier"><div></div><img src="${t}courier.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="Georgia, serif"><div></div><img src="${t}georgia.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="monospace"><div></div><img src="${t}monospace.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="sans-serif"><div></div><img src="${t}sans_serif.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="serif"><div></div><img src="${t}serif.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Abel, sans-serif"><div></div><img src="${t}abel.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Abril Fatface"><div></div><img src="${t}abril_fatface.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Advent Pro, sans-serif" data-font-style="wght@100;200;300;400;500;600;700"><div></div><img src="${t}advent_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Aladin, cursive"><div></div><img src="${t}aladin.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Alegreya, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}alegreya.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Alegreya Sans SC, sans-serif" data-font-style="ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900"><div></div><img src="${t}alegreya_sans_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Alegreya SC, serif" data-font-style="ital,wght@0,400;0,500;0,700;0,800;0,900;1,400;1,500;1,700;1,800;1,900"><div></div><img src="${t}alegreya_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Alice, serif"><div></div><img src="${t}alice.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Allerta Stencil, sans-serif"><div></div><img src="${t}allerta_stencil.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Allura, cursive"><div></div><img src="${t}allura.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Almendra Display, cursive"><div></div><img src="${t}almendra_display.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Amatic SC, cursive" data-font-style="wght@400;700"><div></div><img src="${t}amatic_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Andika, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}andika.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Anonymous Pro, monospace" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}anonymous_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Architects Daughter, cursive"><div></div><img style="transform:scale(1.1);" src="${t}architects_daughter.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Arimo, sans-serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700"><div></div><img src="${t}arimo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Arsenal, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}arsenal.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Assistant" data-font-style="wght@200;300;400;500;600;700;800"><div></div><img src="${t}assistant.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Aubrey, cursive"><div></div><img src="${t}aubrey.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Anton, sans-serif"><div></div><img src="${t}anton.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Archivo Narrow, sans-serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700"><div></div><img src="${t}archivo_narrow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bad Script, cursive"><div></div><img src="${t}bad_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="BenchNine, sans-serif" data-font-style="wght@300;400;700"><div></div><img src="${t}benchNine.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bevan, cursive"><div></div><img src="${t}bevan.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bigelow Rules, cursive"><div></div><img src="${t}bigelow_rules.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bilbo, cursive"><div></div><img src="${t}bilbo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bonbon, cursive"><div></div><img src="${t}bonbon.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bowlby One SC, cursive"><div></div><img src="${t}bowlby_one_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cabin Condensed, sans-serif" data-font-style="wght@400;500;600;700"><div></div><img src="${t}cabin_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Carrois Gothic SC, sans-serif"><div></div><img src="${t}carrois_gothic_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Caveat, cursive" data-font-style="wght@400;500;600;700"><div></div><img src="${t}caveat.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Chewy, cursive"><div></div><img src="${t}chewy.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cinzel, serif" data-font-style="wght@400;500;600;700;800;900"><div></div><img src="${t}cinzel.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Comfortaa, cursive" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}comfortaa.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Concert One, cursive"><div></div><img src="${t}concert_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant, serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}cormorant.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant Garamond, serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}cormorant_garamond.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant Infant, serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}cormorant_infant.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant SC, serif" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}cormorant_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant Unicase, serif" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}cormorant_unicase.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cousine" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}cousine.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Crafty Girls, cursive"><div></div><img src="${t}crafty_girls.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cuprum, sans-serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700"><div></div><img src="${t}cuprum.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cutive Mono, monospace"><div></div><img src="${t}cutive_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Devonshire, cursive"><div></div><img src="${t}devonshire.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Didact Gothic, sans-serif"><div></div><img src="${t}didact_gothic.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Diplomata SC, cursive"><div></div><img src="${t}diplomata_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Dosis, sans-serif" data-font-style="wght@200;300;400;500;600;700;800"><div></div><img src="${t}dosis.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="EB Garamond, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}eb_garamond.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="El Messiri, sans-serif" data-font-style="wght@400;500;600;700"><div></div><img src="${t}el_messiri.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Elsie, cursive" data-font-style="wght@400;900"><div></div><img src="${t}elsie.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Encode Sans, sans-serif" data-font-style="wght@100;200;300;400;500;600;700;800;900"><div></div><img src="${t}encode_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Exo, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}exo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="'Exo 2', sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900" data-font-display="swap"><div></div><img src="${t}exo_2.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Felipa, cursive"><div></div><img src="${t}felipa.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Code, monospace" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}fira_code.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Mono, monospace" data-font-style="wght@400;500;700"><div></div><img src="${t}fira_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Sans, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}fira_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Sans Condensed, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}fira_sans_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Sans Extra Condensed, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}fira_sans_extra_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fjalla One, sans-serif"><div></div><img src="${t}fjalla_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Forum, cursive"><div></div><img src="${t}forum.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Frank Ruhl Libre" data-font-style="wght@300;400;500;700;900"><div></div><img src="${t}frank_ruhl_libre.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fredericka the Great, cursive"><div></div><img src="${t}fredericka_the_great.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Gabriela, serif"><div></div><img src="${t}gabriela.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Gilda Display, serif"><div></div><img src="${t}gilda_display.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Give You Glory, cursive"><div></div><img style="transform:scale(1.3);" src="${t}give_you_glory.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Gruppo, cursive"><div></div><img src="${t}gruppo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Handlee, cursive"><div></div><img src="${t}handlee.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Happy Monkey, cursive"><div></div><img src="${t}happy_monkey.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Hind" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}hind.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="IBM Plex Mono, monospace" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}ibm_plex_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="IBM Plex Sans, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}ibm_plex_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="IBM Plex Serif, serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}ibm_plex_serif.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Iceland, cursive"><div></div><img src="${t}iceland.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Inconsolata, monospace" data-font-style="wght@200;300;400;500;600;700;800;900"><div></div><img src="${t}inconsolata.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Josefin Sans, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}josefin_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Istok Web, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}istok_web.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Julee, cursive"><div></div><img src="${t}julee.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Julius Sans One, sans-serif"><div></div><img src="${t}julius_sans_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Junge, serif"><div></div><img src="${t}junge.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Jura, sans-serif" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}jura.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Just Me Again Down Here, cursive"><div></div><img style="transform:scale(1.1);" src="${t}just_me_again_down_here.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kaushan Script, cursive"><div></div><img src="${t}kaushan_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kelly Slab, cursive"><div></div><img src="${t}kelly_slab.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kite One, sans-serif"><div></div><img src="${t}kite_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kosugi, sans-serif"><div></div><img src="${t}kosugi.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kosugi Maru, sans-serif"><div></div><img src="${t}kosugi_maru.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kurale, serif"><div></div><img src="${t}kurale.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lato, sans-serif" data-font-style="ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900"><div></div><img src="${t}lato.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ledger, serif" data-font-display="swap"><div></div><img src="${t}ledger.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lekton, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400"><div></div><img src="${t}lekton.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Life Savers, cursive" data-font-style="wght@400;700;800"><div></div><img src="${t}life_savers.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Literata, serif" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}literata.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lobster, cursive"><div></div><img src="${t}lobster.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lobster Two, cursive" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}lobster_two.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Londrina Shadow, cursive"><div></div><img src="${t}londrina_shadow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lora, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700"><div></div><img src="${t}lora.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lovers Quarrel, cursive"><div></div><img style="transform:scale(1.1);" src="${t}lovers_quarrel.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="'M PLUS 1p', sans-serif" data-font-style="wght@100;300;400;500;700;800;900" data-font-display="swap"><div></div><img src="${t}m_plus_1p.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="'M PLUS Rounded 1c', sans-serif" data-font-style="wght@100;300;400;500;700;800;900" data-font-display="swap"><div></div><img src="${t}m_plus_rounded_1c.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Macondo, cursive"><div></div><img src="${t}macondo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Marcellus SC, serif"><div></div><img src="${t}marcellus_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Marck Script, cursive"><div></div><img src="${t}marck_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Martel, serif" data-font-style="wght@200;300;400;600;700;800;900"><div></div><img src="${t}martel.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Maven Pro, sans-serif"><div></div><img src="${t}maven_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Merriweather, serif" data-font-style="ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900"><div></div><img src="${t}merriweather.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Merriweather Sans" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}merriweather_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Mogra, cursive"><div></div><img src="${t}mogra.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Monoton, cursive"><div></div><img src="${t}monoton.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Montez, cursive"><div></div><img src="${t}montez.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Montserrat, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}montserrat.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Montserrat Alternates, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}montserrat_alternates.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Montserrat Subrayada, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}montserrat_subrayada.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Neucha, cursive"><div></div><img src="${t}neucha.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Neuton, serif" data-font-style="ital,wght@0,200;0,300;0,400;0,700;0,800;1,400"><div></div><img src="${t}neuton.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Nixie One, cursive"><div></div><img src="${t}nixie_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Nothing You Could Do, cursive"><div></div><img style="transform:scale(1.1);" src="${t}nothing_you_could_do.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Noto Sans, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}noto_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Noto Sans SC, sans-serif" data-font-style="wght@100;300;400;500;700;900"><div></div><img src="${t}noto_sans_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Noto Serif, serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}noto_serif.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Noto Serif TC, serif" data-font-style="wght@200;300;400;500;600;700;900"><div></div><img src="${t}noto_serif_tc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Nunito, sans-serif" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000"><div></div><img src="${t}nunito.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Old Standard TT, serif" data-font-style="ital,wght@0,400;0,700;1,400"><div></div><img src="${t}old_standard_tt.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Open Sans, sans-serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}open_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Oranienbaum, serif"><div></div><img src="${t}oranienbaum.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Oswald, sans-serif" data-font-style="wght@200;300;400;500;600;700"><div></div><img src="${t}oswald.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Oxygen, sans-serif" data-font-style="wght@300;400;700"><div></div><img src="${t}oxygen.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pacifico, cursive"><div></div><img src="${t}pacifico.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pangolin, cursive"><div></div><img src="${t}pangolin.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Passion One, cursive" data-font-style="wght@400;700;900"><div></div><img src="${t}passion_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pathway Gothic One, sans-serif"><div></div><img src="${t}pathway_gothic_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pattaya, sans-serif"><div></div><img src="${t}pattaya.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Petit Formal Script, cursive"><div></div><img style="transform:scale(1.1);" src="${t}petit_formal_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Philosopher, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}philosopher.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Play, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}play.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Playfair Display, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}playfair_display.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Playfair Display SC, serif" data-font-style="ital,wght@0,400;0,700;0,900;1,400;1,700;1,900"><div></div><img src="${t}playfair_display_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Podkova, serif" data-font-style="wght@400;500;600;700;800"><div></div><img src="${t}podkova.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Poiret One, cursive"><div></div><img src="${t}poiret_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pompiere, cursive"><div></div><img style="transform:scale(1.1);" src="${t}pompiere.png"></li>\n `,e+=`<li role="option" tabindex="0" data-provider="google" data-font-family="Poppins, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}poppins.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Prata, serif"><div></div><img src="${t}prata.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="'Press Start 2P', cursive"><div></div><img src="${t}press_start_2p.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Prosto One, cursive"><div></div><img src="${t}prosto_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Mono, monospace"><div></div><img src="${t}pt_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Sans, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}pt_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Sans Caption, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}pt_sans_caption.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Sans Narrow, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}pt_sans_narrow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Serif, serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}pt_serif.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Serif Caption, serif" data-font-style="ital@0;1"><div></div><img src="${t}pt_serif_caption.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Quattrocento Sans, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}quattrocento_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Quattrocento, serif" data-font-style="wght@400;700"><div></div><img src="${t}quattrocento.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Quicksand, sans-serif" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}quicksand.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Qwigley, cursive"><div></div><img src="${t}qwigley.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Raleway, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}raleway.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Raleway Dots, sans-serif"><div></div><img src="${t}raleway_dots.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Redressed, cursive"><div></div><img src="${t}redressed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ribeye Marrow, cursive"><div></div><img src="${t}ribeye_marrow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Righteous, cursive"><div></div><img src="${t}righteous.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Roboto, sans-serif" data-font-style="ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900"><div></div><img src="${t}roboto.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Roboto Condensed, sans-serif" data-font-style="ital,wght@0,300;0,400;0,700;1,300;1,400;1,700"><div></div><img src="${t}roboto_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Roboto Mono, monospace" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}roboto_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Roboto Slab, serif" data-font-style="wght@100;200;300;400;500;600;700;800;900"><div></div><img src="${t}roboto_slab.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Rochester, cursive"><div></div><img src="${t}rochester.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Rouge Script, cursive"><div></div><img src="${t}rouge_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Rubik, sans-serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}rubik.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Rubik Mono One, sans-serif"><div></div><img src="${t}rubik_mono_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ruslan Display, cursive"><div></div><img src="${t}ruslan_display.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Russo One, sans-serif"><div></div><img src="${t}russo_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Sacramento, cursive"><div></div><img src="${t}sacramento.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Sanchez, serif" data-font-style="ital@0;1"><div></div><img src="${t}sanchez.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Satisfy, cursive"><div></div><img src="${t}satisfy.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Sawarabi Gothic, sans-serif"><div></div><img src="${t}sawarabi_gothic.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Scada, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}scada.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Seaweed Script, cursive"><div></div><img src="${t}seaweed_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Seymour One, sans-serif"><div></div><img src="${t}seymour_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Shadows Into Light Two, cursive"><div></div><img src="${t}shadows_into_light_two.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Six Caps, sans-serif"><div></div><img src="${t}six_caps.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Snowburst One, cursive"><div></div><img src="${t}snowburst_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Source Code Pro, monospace" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}source_code_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Source Sans Pro, sans-serif" data-font-style="ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900"><div></div><img src="${t}source_sans_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Special Elite, cursive"><div></div><img src="${t}special_elite.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Spectral, serif" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}spectral.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Spectral SC, serif" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}spectral_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Squada One, cursive"><div></div><img src="${t}squada_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Stalinist One, cursive"><div></div><img src="${t}stalinist_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Stint Ultra Expanded, cursive"><div></div><img src="${t}stint_ultra_expanded.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Syncopate, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}syncopate.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Tangerine, cursive" data-font-style="wght@400;700"><div></div><img src="${t}tangerine.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Tenor Sans, sans-serif"><div></div><img src="${t}tenor_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Tinos, serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}tinos.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ubuntu, sans-serif" data-font-style="ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700"><div></div><img src="${t}ubuntu.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ubuntu Condensed, sans-serif"><div></div><img src="${t}ubuntu_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ubuntu Mono, monospace" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}ubuntu_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Underdog, cursive"><div></div><img src="${t}underdog.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="UnifrakturMaguntia, cursive"><div></div><img src="${t}unifrakturmaguntia.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Vast Shadow, cursive"><div></div><img src="${t}vast_shadow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Viga, sans-serif"><div></div><img src="${t}viga.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Vollkorn, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}vollkorn.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Vollkorn SC, serif" data-font-style="wght@400;600;700;900"><div></div><img src="${t}vollkorn_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Voltaire, sans-serif"><div></div><img src="${t}voltaire.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Wire One, sans-serif"><div></div><img src="${t}wire_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Yanone Kaffeesatz, sans-serif" data-font-style="wght@200;300;400;500;600;700"><div></div><img src="${t}yanone_kaffeesatz.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Yeseva One, cursive"><div></div><img src="${t}yeseva_one.png"></li>\n `,e}getFontFamilyHTML(t){return`\n <!DOCTYPE HTML>\n <html>\n <head>\n <meta charset="utf-8">\n <title>Fonts</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content=""> \n <style id="mainstyle">\n html, body {height:100%}\n body {overflow:hidden;margin:0;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size:100%; \n line-height:1.7;\n }\n #divFontList {margin:0;padding:0 0 9px 9px;height:100%;overflow-y:scroll !important;box-sizing:border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n #divFontList > li {width:100%;cursor:pointer;overflow:hidden;text-align:center;position:relative;\n display: flex;\n align-items: center;\n justify-content: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n outline:none;\n }\n #divFontList > li img {margin:7px 5px 7px 5px;max-width: 230px;max-height: 27px;pointer-events: none;}\n #divFontList > li div {position:absolute;top:0;left:0;width:100%;height:100%;}\n\n #divFontList > li > div {\n position:absolute;left:0px;top:0px;width:100%;height:100%;\n // z-index: 1;\n pointer-events: none;}\n\n #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n #divFontList > li > div:after {\n // background: rgba(0, 0, 0, 0.04); \n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n position: absolute;\n content: "";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n }\n #divFontList > li:hover > div:after,\n #divFontList > li:focus > div:after {\n opacity: 1;\n }\n #divFontList > li.on > div:after {\n opacity: 1;\n }\n\n ${this.builder.styleDark||this.builder.styleColoredDark||this.builder.styleColore?"":"\n #divFontList > li img {\n mix-blend-mode: multiply;\n }\n "}\n\n .dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n filter: invert(1);\n }\n .dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n \n .colored-dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored-dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored-dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n .colored #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n /* Scrollbar for toolbar/RTE and modal */\n\n .dark * {\n scrollbar-width: thin;\n scrollbar-color: rgba(255, 255, 255, 0.3) auto;\n }\n .dark *::-webkit-scrollbar {\n width: 12px;\n }\n .dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .dark *::-webkit-scrollbar-thumb {\n background-color:rgba(255, 255, 255, 0.3);\n } \n\n .colored-dark * {\n scrollbar-width: thin;\n scrollbar-color: rgb(100, 100, 100) auto;\n }\n .colored-dark *::-webkit-scrollbar {\n width: 12px;\n }\n .colored-dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored-dark *::-webkit-scrollbar-thumb {\n background-color:rgb(100, 100, 100);\n } \n\n .colored * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .colored *::-webkit-scrollbar {\n width: 12px;\n }\n .colored *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n\n .light * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .light *::-webkit-scrollbar {\n width: 12px;\n }\n .light *::-webkit-scrollbar-track {\n background: transparent;\n }\n .light *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n </style>\n\n </head>\n <body${this.builder.styleDark?' class="dark"':""}${this.builder.styleColored?' class="colored"':""}${this.builder.styleColoredDark?' class="colored-dark"':""}${this.builder.styleLight?' class="light"':""}>\n\n <ul id="divFontList">\n ${this.getFontPreview()}\n </ul>\n\n <script${this.builder.nonce?` nonce="${this.builder.nonce}"`:""}>\n\n const close = () => {\n parent.focus();\n\n let pop = parent.document.querySelector('.rte-fontfamily-options.active, .pickfontfamily.active');\n if(pop) {\n pop.classList.remove('active');\n pop.classList.add('deactive');\n }\n }\n\n const setValue = (item) => {\n let provider = item.getAttribute('data-provider');\n let fontfamily = item.getAttribute('data-font-family');\n let fontstyle = item.getAttribute('data-font-style');\n let fontdisplay = item.getAttribute('data-font-display');\n parent._cb.setFont(fontfamily, fontstyle, fontdisplay, provider);\n\n let elms = document.querySelectorAll('#divFontList > li');\n elms.forEach(elm=>{\n elm.classList.remove('on');\n });\n item.classList.add('on');\n }\n\n const handleItemClick = (e) => {\n e.preventDefault();\n\n let item = e.target;\n setValue(item);\n }\n\n const handleItemKeyDown = (e) => {\n e.preventDefault();\n\n if(e.keyCode === 38 && e.target.previousElementSibling) { // up\n e.target.previousElementSibling.focus();\n } else if(e.keyCode === 40 && e.target.nextElementSibling) { // down\n e.target.nextElementSibling.focus();\n } else if(e.keyCode === 27) { // escape key\n close();\n } else if(e.keyCode === 13 || e.keyCode === 32) { // enter or spacebar key\n setValue(e.target);\n }\n }\n \n let elms = document.querySelectorAll('#divFontList > li');\n elms.forEach(elm=>{\n elm.addEventListener('keydown', handleItemKeyDown);\n elm.addEventListener('click', handleItemClick);\n });\n <\/script>\n \n </body>\n </html>\n \n \n `}getFontFamilyEmail(t){let e=this.builder.fontAssetPath;return`\n <!DOCTYPE HTML>\n <html>\n <head>\n <meta charset="utf-8">\n <title>Fonts</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content=""> \n <style>\n html, body {height:100%}\n body {overflow:hidden;margin:0;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size:100%; \n line-height:1.7;\n }\n #divFontList {margin:0;padding:0 0 9px 9px;height:100%;overflow-y:scroll !important;box-sizing:border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n #divFontList > li {width:100%;cursor:pointer;overflow:hidden;text-align:center;position:relative;\n display: flex;\n align-items: center;\n justify-content: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n outline:none;\n }\n #divFontList > li img {margin:7px 5px 7px 5px;max-width: 230px;max-height: 27px;pointer-events: none;}\n #divFontList > li div {position:absolute;top:0;left:0;width:100%;height:100%;}\n\n #divFontList > li > div {\n position:absolute;left:0px;top:0px;width:100%;height:100%;\n // z-index: 1;\n pointer-events: none;}\n\n #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n #divFontList > li > div:after {\n // background: rgba(0, 0, 0, 0.04); \n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n position: absolute;\n content: "";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n }\n #divFontList > li:hover > div:after,\n #divFontList > li:focus > div:after {\n opacity: 1;\n }\n #divFontList > li.on > div:after {\n opacity: 1;\n }\n\n ${this.builder.styleDark||this.builder.styleColoredDark||this.builder.styleColore?"":"\n #divFontList > li img {\n mix-blend-mode: multiply;\n }\n "}\n\n .dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n filter: invert(1);\n }\n .dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n \n .colored-dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored-dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored-dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n .colored #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n /* Scrollbar for toolbar/RTE and modal */\n\n .dark * {\n scrollbar-width: thin;\n scrollbar-color: rgba(255, 255, 255, 0.3) auto;\n }\n .dark *::-webkit-scrollbar {\n width: 12px;\n }\n .dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .dark *::-webkit-scrollbar-thumb {\n background-color:rgba(255, 255, 255, 0.3);\n } \n\n .colored-dark * {\n scrollbar-width: thin;\n scrollbar-color: rgb(100, 100, 100) auto;\n }\n .colored-dark *::-webkit-scrollbar {\n width: 12px;\n }\n .colored-dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored-dark *::-webkit-scrollbar-thumb {\n background-color:rgb(100, 100, 100);\n } \n\n .colored * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .colored *::-webkit-scrollbar {\n width: 12px;\n }\n .colored *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n\n .light * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .light *::-webkit-scrollbar {\n width: 12px;\n }\n .light *::-webkit-scrollbar-track {\n background: transparent;\n }\n .light *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n </style>\n\n </head>\n <body${this.builder.styleDark?' class="dark"':""}${this.builder.styleColored?' class="colored"':""}${this.builder.styleColoredDark?' class="colored-dark"':""}${this.builder.styleLight?' class="light"':""}>\n\n <ul id="divFontList">\n <li role="option" tabindex="0" data-provider="" data-font-family="" style="font-size:12px;padding:10px 7px;box-sizing:border-box;"><div></div>\n <span style="z-index:1;position: relative;pointer-events: none;">${this.out("None")}</span>\n </li>\n <li role="option" tabindex="0" data-provider="" data-font-family="Arial, sans-serif"><div></div><img src="${e}arial.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="courier"><div></div><img src="${e}courier.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="Georgia, serif"><div></div><img src="${e}georgia.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="monospace"><div></div><img src="${e}monospace.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="sans-serif"><div></div><img src="${e}sans_serif.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="serif"><div></div><img src="${e}serif.png"></li>\n </ul>\n\n <script>\n\n const close = () => {\n parent.focus();\n\n let pop = parent.document.querySelector('.is-rte-pop.active');\n if(pop) {\n pop.classList.remove('active');\n pop.classList.add('deactive');\n }\n }\n\n const setValue = (item) => {\n let provider = item.getAttribute('data-provider');\n let fontfamily = item.getAttribute('data-font-family');\n let fontstyle = item.getAttribute('data-font-style');\n let fontdisplay = item.getAttribute('data-font-display');\n parent._cb.setFont(fontfamily, fontstyle, fontdisplay, provider);\n\n let elms = document.querySelectorAll('#divFontList > li');\n elms.forEach(elm=>{\n elm.classList.remove('on');\n });\n item.classList.add('on');\n }\n\n const handleItemClick = (e) => {\n e.preventDefault();\n\n let item = e.target;\n setValue(item);\n }\n\n const handleItemKeyDown = (e) => {\n e.preventDefault();\n\n if(e.keyCode === 38 && e.target.previousElementSibling) { // up\n e.target.previousElementSibling.focus();\n } else if(e.keyCode === 40 && e.target.nextElementSibling) { // down\n e.target.nextElementSibling.focus();\n } else if(e.keyCode === 27) { // escape key\n close();\n } else if(e.keyCode === 13 || e.keyCode === 32) { // enter or spacebar key\n setValue(e.target);\n }\n }\n \n let elms = document.querySelectorAll('#divFontList > li');\n elms.forEach(elm=>{\n elm.addEventListener('keydown', handleItemKeyDown);\n elm.addEventListener('click', handleItemClick);\n });\n <\/script>\n \n </body>\n </html>\n \n \n `}getPageTemplate(t){let e="";return e=""===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"tailwind"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content-tailwind.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <link rel="stylesheet" href="[%PATH%]/assets/frameworks/tailwindcss/styles.css">\n \x3c!-- To build your own, please see: https://tailwindcss.com/docs/installation --\x3e\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"bootstrap"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n\n <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {margin: 140px auto; max-width: 800px; width:100%; padding:0 35px; box-sizing: border-box;}\n /* Bootstrap css adjustment to enable column drag to resize */\n .row > *,\n .column {\n max-width: unset !important;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"foundation"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation.min.css">\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation-float.min.css">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"[%CONTENT%]",e}}class o{constructor(t){this.builder=t}getScale(t){let e=window.getComputedStyle(t).transform.split("(")[1];e=e.split(")")[0],e=e.split(",");let i=e[0],n=e[1];return Math.sqrt(i*i+n*n)}createElement(t){return document.createElement(t)}appendChild(t,e){t&&t.appendChild(e)}appendHtml(t,e){t&&t.insertAdjacentHTML("beforeend",e)}addEventListener(t,e,i){t&&t.addEventListener(e,i)}addClass(t,e){t&&(this.hasClass(t,e)||(0===t.classList.length?t.className=e:t.className=t.className+" "+e,t.className=t.className.replace(/ +/g," ")))}removeClass(t,e){if(t&&t.classList.length>0){let i,n,o,s,r=e.split(" ");for(i=0,o=r.length;i<o;++i){if(!r[i])continue;let e=r[i],o="",l=t.className.split(" ");for(n=0,s=l.length;n<s;++n)l[n]&&l[n]!==e&&(o+=l[n]+" ");t.className=o.trim()}""===t.className&&t.removeAttribute("class")}}removeClassesByPrefix(t,e){t.classList&&t.classList.forEach((i=>{0===i.indexOf(e)&&this.removeClass(t,i)}))}hasClass(t,e){return!!t&&(!!t.className&&(" "+t.className+" ").indexOf(" "+e+" ")>-1)}moveAfter(t,e){e.parentNode.insertBefore(t,e),e.parentNode.insertBefore(e,e.previousElementSibling)}elementChildren(t){const e=t.childNodes;let i=[],n=e.length;for(;n--;)1===e[n].nodeType&&i.unshift(e[n]);return i}getElementOffset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset,width:e.width,height:e.height}}parentsHasClass(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(this.hasClass(t,e))return!0;t=t.parentNode}}parentsHasId(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.id===e)return!0;t=t.parentNode}}parentsHasTag(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.tagName.toLowerCase()===e.toLowerCase())return!0;t=t.parentNode}}parentsHasAttribute(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;try{if(t.hasAttribute(e))return!0}catch(t){}t=t.parentNode}}getParentByTag(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.tagName.toLowerCase()===e.toLowerCase())return t;t=t.parentNode}}getParentByAttribute(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;try{if(t.hasAttribute(e))return t}catch(t){}t=t.parentNode}}parentsHasElement(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(!(t=t.parentNode))return!1;if(!t.tagName)return!1;if(t.tagName.toLowerCase()===e)return!0}}getParentElement(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(!(t=t.parentNode))return!1;if(!t.tagName)return!1;if(t.tagName.toLowerCase()===e)return t}}removeClasses(t,e){for(let i=0;i<t.length;i++)t[i].classList.remove(e)}removeAttributes(t,e){for(let i=0;i<t.length;i++)t[i].removeAttribute(e)}removeElements(t){Array.prototype.forEach.call(t,(t=>{t.parentNode.removeChild(t)}))}moveCursorToElement(t){var e,i;window.getSelection&&this.builder.doc.createRange?((i=this.builder.doc.createRange()).selectNodeContents(t),i.collapse(!1),(e=window.getSelection()).removeAllRanges(),e.addRange(i)):this.builder.doc.body.createTextRange&&((i=this.builder.doc.body.createTextRange()).moveToElementText(t),i.collapse(!1),i.select())}selectElementContents(t){var e=this.builder.doc.createRange();e.selectNodeContents(t);var i=this.builder.win.getSelection();i.removeAllRanges(),i.addRange(e)}getSelected(){if(this.builder.win.getSelection)return this.builder.win.getSelection().toString();if(this.builder.doc.getSelection)return this.builder.doc.getSelection().toString();var t=this.builder.doc.selection&&this.builder.doc.selection.createRange();return!!t.text&&t.text}checkEditable(){try{var t,e;return this.builder.win.getSelection?t=3===(e=this.builder.win.getSelection().getRangeAt(0).commonAncestorContainer).nodeType?e.parentNode:e:this.builder.doc.selection&&(e=this.builder.doc.selection.createRange(),t=this.builder.doc.selection.createRange().parentElement()),!!this.parentsHasAttribute(t,"contenteditable")}catch(t){return!1}}textSelection(){const t=this.getSelection().anchorNode;if(!t)return!1;return t.nodeType!==Node.TEXT_NODE&&t.nodeType!==Node.COMMENT_NODE?t:t.parentElement}getStyle(t,e){return window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(e):t.style[e.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]}observeElement(t,e,i,n=0){let o=Object.getPrototypeOf(t);if(Object.prototype.hasOwnProperty.call(o,e)){let s=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,{get:function(){return s.get.apply(this,arguments)},set:function(){let t=this[e];s.set.apply(this,arguments);let o=this[e];"function"==typeof i&&setTimeout(i.bind(this,t,o),n)}})}}baseName(t){if("string"==typeof t){var e=t.split(".");return e.splice(0,e.length-1).join(".")}}doFunction(t,e,i){if(e(t),i){let i=Array.prototype.slice.call(t.getElementsByTagName("*"));for(var n=0;n<i.length;n++)e(i[n])}}execCommand(t,e,n){const o=this.getSelection();if(!o)return;const s=o.anchorNode;if(s){const d=s.nodeType!==Node.TEXT_NODE&&s.nodeType!==Node.COMMENT_NODE?s:s.parentElement,c=d&&d.innerText===o.toString();let u,h=!1;for(var r=[],l=i.getSelection(),a=0;a<l.rangeCount;++a)r=r.concat(l.getRangeAt(a).getNodes());const p=["p","h1","h2","h3","h4","h5","h6","div","pre","li"];if(r.forEach((t=>{if(t.tagName){const e=t.tagName.toLowerCase();-1!==p.indexOf(e)&&(h=!0,n(!0,t))}})),h)return;u=c||""===o.toString().trim()?this.updateSelection(t,e,d):this.replaceSelection(t,e,o,d),n&&n(!0,u)}else n&&n(!1)}updateSelection(t,e,i){return i.style[t]=this.getStyleValue(i,t,e),this.checkStyleIfSameAsParent(i,t),this.cleanChildren(t,i),this.cleanUnusedSpan(i),i}replaceSelection(t,e,i,n){const o=i.getRangeAt(0),s=o.extractContents(),r=this.createSpan(n,t,e);return r.appendChild(s),this.cleanChildren(t,r),this.cleanUnusedSpan(r),o.insertNode(r),i.selectAllChildren(r),this.checkStyleIfSameAsParent(r,t),r}checkStyleIfSameAsParent(t,e){if(t.parentNode&&(t.parentNode.style[e]===t.style[e]||window.getComputedStyle(t.parentNode,null).getPropertyValue(e)===t.style[e])){t.style[e]="",""!==t.getAttribute("style")&&null!==t.style||t.removeAttribute("style");let i=0===t.attributes.length||1===t.attributes.length&&t.hasAttribute("data-keep");if("span"===t.nodeName.toLowerCase()&&i){const e=document.createTextNode(t.textContent);t.parentElement.replaceChild(e,t)}}}createSpan(t,e,i){const n=document.createElement("span");return n.style[e]=this.getStyleValue(t,e,i),n}findParentStyle(t,e){if("HTML"===t.nodeName.toUpperCase()||"BODY"===t.nodeName.toUpperCase())return null;if(!t.parentNode)return null;if(null!==t.style[e]&&void 0!==t.style[e]&&""!==t.style[e])return t;this.findParentStyle(t.parentNode,e)}getStyleValue(t,e,i){if("font-weight"===e||"font-style"===e||"text-decoration"===e||"text-transform"===e){let n,o=this.findParentStyle(t,e);if(o&&(n=o.style[e]),i===n){t.style[e]="";let o=window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n,i=o}}return i}getParentBlock(t){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if("inline"!==this.getStyle(t,"display"))return t;t=t.parentNode}}execCommandClass(t,e,n=!0,o){const s=this.getSelection();if(!s)return;const r=s.anchorNode;if(r){let c=r.nodeType!==Node.TEXT_NODE&&r.nodeType!==Node.COMMENT_NODE?r:r.parentElement;const u=c&&c.innerText===s.toString();let h=!1;for(var l=[],a=i.getSelection(),d=0;d<a.rangeCount;++d)l=l.concat(a.getRangeAt(d).getNodes());const p=["p","h1","h2","h3","h4","h5","h6","div","pre"];if(l.forEach((i=>{if(i.tagName){const n=i.tagName.toLowerCase();if(-1!==p.indexOf(n)){h=!0;for(let t=0;t<Object.keys(e).length;t++){let n=Object.values(e)[t];this.removeClass(i,n)}""!==t&&this.addClass(i,t),this.cleanChildrenClass(i,e),this.cleanUnusedSpan(i)}}})),h)return;(n||u||""===s.toString().trim())&&("block"===o&&"inline"===this.getStyle(c,"display")&&(c=this.getParentBlock(c)),this.updateSelectionClass(t,e,c))}}updateSelectionClass(t,e,i){for(let t=0;t<Object.keys(e).length;t++){let n=Object.values(e)[t];this.removeClass(i,n)}return""!==t&&this.addClass(i,t),this.cleanChildrenClass(i,e),this.cleanUnusedSpan(i),i}cleanChildrenClass(t,e){if(!t.hasChildNodes())return;Array.from(t.children).map((t=>{for(let i=0;i<Object.keys(e).length;i++){let n=Object.values(e)[i];this.removeClass(t,n)}}));const i=Array.from(t.children).map((t=>this.cleanChildrenClass(t,e)));i&&i.length}execCommandToggle(t,e,n){const o=this.getSelection();if(!o)return;const s=o.anchorNode;if(s){const d=s.nodeType!==Node.TEXT_NODE&&s.nodeType!==Node.COMMENT_NODE?s:s.parentElement,c=d&&d.innerText===o.toString();let u=!1;for(var r=[],l=i.getSelection(),a=0;a<l.rangeCount;++a)r=r.concat(l.getRangeAt(a).getNodes());const h=["p","h1","h2","h3","h4","h5","h6","div","pre"];if(r.forEach((i=>{if(i.tagName){const o=i.tagName.toLowerCase();if(-1!==h.indexOf(o)){if(u=!0,"fontWeight"===t){let t=!1;this.hasClass(i,n.fontWeight.defaultBold)&&(t=!0),this.removeClass(i,n.fontWeight.thin),this.removeClass(i,n.fontWeight.extralight),this.removeClass(i,n.fontWeight.light),this.removeClass(i,n.fontWeight.normal),this.removeClass(i,n.fontWeight.medium),this.removeClass(i,n.fontWeight.semibold),this.removeClass(i,n.fontWeight.bold),this.removeClass(i,n.fontWeight.extrabold),this.removeClass(i,n.fontWeight.black),t||this.addClass(i,n.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;this.hasClass(i,n.fontStyle.italic)&&(t=!0),this.removeClass(i,n.fontStyle.italic),this.removeClass(i,n.fontStyle.normal),t||this.addClass(i,n.fontStyle.italic)}if("textUnderline"===t){let t=!1;this.hasClass(i,n.textDecoration.underline)&&(t=!0),this.removeClass(i,n.textDecoration.linethrough),this.removeClass(i,n.textDecoration.underline),this.removeClass(i,n.textDecoration.normal),t||this.addClass(i,n.textDecoration.underline)}if("textLinethrough"===t){let t=!1;this.hasClass(i,n.textDecoration.linethrough)&&(t=!0),this.removeClass(i,n.textDecoration.underline),this.removeClass(i,n.textDecoration.linethrough),this.removeClass(i,n.textDecoration.normal),t||this.addClass(i,n.textDecoration.linethrough)}if("textTransform"===t){let t="";this.hasClass(i,n.textTransform.uppercase)?t="uppercase":this.hasClass(i,n.textTransform.lowercase)?t="lowercase":this.hasClass(i,n.textTransform.capitalize)?t="capitalize":this.hasClass(i,n.textTransform.normal)&&(t="normal"),this.removeClass(i,n.textTransform.uppercase),this.removeClass(i,n.textTransform.lowercase),this.removeClass(i,n.textTransform.capitalize),this.removeClass(i,n.textTransform.normal),""===t?this.addClass(i,n.textTransform.uppercase):"uppercase"===t?this.addClass(i,n.textTransform.lowercase):"lowercase"===t?this.addClass(i,n.textTransform.capitalize):"capitalize"===t||"normal"===t&&this.addClass(i,n.textTransform.uppercase)}if("clean"===t&&(i.className="",i.style.cssText=""),"extend"===t){let t=!1;this.hasClass(i,n.extend[e])&&(t=!0),t?this.removeClass(i,n.extend[e]):this.addClass(i,n.extend[e])}this.cleanChildrenToggle(t,e,i,n),this.cleanUnusedSpan(i)}}})),u)return;c||""===o.toString().trim()?this.updateSelectionToggle(t,e,n,d):this.replaceSelectionToggle(t,e,n,o,d)}}updateSelectionToggle(t,e,i,n){if("fontWeight"===t){let t=!1;this.hasClass(n,i.fontWeight.defaultBold)&&(t=!0);parseInt(window.getComputedStyle(n,null).getPropertyValue("font-weight"))>=500&&(t=!0),this.removeClass(n,i.fontWeight.thin),this.removeClass(n,i.fontWeight.extralight),this.removeClass(n,i.fontWeight.light),this.removeClass(n,i.fontWeight.normal),this.removeClass(n,i.fontWeight.medium),this.removeClass(n,i.fontWeight.semibold),this.removeClass(n,i.fontWeight.bold),this.removeClass(n,i.fontWeight.extrabold),this.removeClass(n,i.fontWeight.black),t?this.addClass(n,i.fontWeight.defaultNormal):this.addClass(n,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;this.hasClass(n,i.fontStyle.italic)&&(t=!0),this.removeClass(n,i.fontStyle.italic),this.removeClass(n,i.fontStyle.normal),t?this.addClass(n,i.fontStyle.normal):this.addClass(n,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;this.hasClass(n,i.textDecoration.underline)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t?this.addClass(n,i.textDecoration.normal):this.addClass(n,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;this.hasClass(n,i.textDecoration.linethrough)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t?this.addClass(n,i.textDecoration.normal):this.addClass(n,i.textDecoration.linethrough)}if("textTransform"===t){let t="";this.hasClass(n,i.textTransform.uppercase)?t="uppercase":this.hasClass(n,i.textTransform.lowercase)?t="lowercase":this.hasClass(n,i.textTransform.capitalize)?t="capitalize":this.hasClass(n,i.textTransform.normal)&&(t="normal"),this.removeClass(n,i.textTransform.uppercase),this.removeClass(n,i.textTransform.lowercase),this.removeClass(n,i.textTransform.capitalize),this.removeClass(n,i.textTransform.normal),""===t?this.addClass(n,i.textTransform.uppercase):"uppercase"===t?this.addClass(n,i.textTransform.lowercase):"lowercase"===t?this.addClass(n,i.textTransform.capitalize):"capitalize"===t?this.addClass(n,i.textTransform.normal):"normal"===t&&this.addClass(n,i.textTransform.uppercase)}if("clean"===t&&(n.className="",n.style.cssText=""),"extend"===t){let t=!1;this.hasClass(n,i.extend[e])&&(t=!0),t?this.removeClass(n,i.extend[e]):this.addClass(n,i.extend[e])}return this.cleanChildrenToggle(t,e,n,i),this.cleanUnusedSpan(n),n}replaceSelectionToggle(t,e,i,n,o){const s=n.getRangeAt(0),r=s.extractContents(),l=document.createElement("span");if("fontWeight"===t){let t=!1;o.closest(`.${i.fontWeight.defaultBold}`)&&(t=!0,this.hasClass(o,i.fontWeight.defaultNormal)&&(t=!1));parseInt(window.getComputedStyle(o,null).getPropertyValue("font-weight"))>=500&&(t=!0),t?this.addClass(l,i.fontWeight.defaultNormal):this.addClass(l,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;o.closest(`.${i.fontStyle.italic}`)&&(t=!0,this.hasClass(o,i.fontStyle.normal)&&(t=!1)),t?this.addClass(l,i.fontStyle.normal):this.addClass(l,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;o.closest(`.${i.textDecoration.underline}`)&&(t=!0),t||this.addClass(l,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;o.closest(`.${i.textDecoration.linethrough}`)&&(t=!0),t||this.addClass(l,i.textDecoration.linethrough)}if("textTransform"===t){let t="";o.closest(`.${i.textTransform.uppercase}`)?t="uppercase":o.closest(`.${i.textTransform.lowercase}`)?t="lowercase":o.closest(`.${i.textTransform.capitalize}`)?t="capitalize":o.closest(`.${i.textTransform.normal}`)&&(t="normal"),""===t?this.addClass(l,i.textTransform.uppercase):"uppercase"===t?this.addClass(l,i.textTransform.lowercase):"lowercase"===t?this.addClass(l,i.textTransform.capitalize):"capitalize"===t?this.addClass(l,i.textTransform.normal):"normal"===t&&this.addClass(l,i.textTransform.uppercase)}if("extend"===t){let t=!1;o.closest(`.${i.extend[e]}`)&&(t=!0),t||this.addClass(l,i.extend[e])}return l.appendChild(r),this.cleanChildrenToggle(t,e,l,i),this.cleanUnusedSpan(l),s.insertNode(l),n.selectAllChildren(l),l}cleanChildrenToggle(t,e,i,n){if(!i.hasChildNodes())return;"fontWeight"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.fontWeight.thin),this.removeClass(t,n.fontWeight.extralight),this.removeClass(t,n.fontWeight.light),this.removeClass(t,n.fontWeight.normal),this.removeClass(t,n.fontWeight.medium),this.removeClass(t,n.fontWeight.semibold),this.removeClass(t,n.fontWeight.bold),this.removeClass(t,n.fontWeight.extrabold),this.removeClass(t,n.fontWeight.black)})),"fontStyle"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.fontStyle.italic),this.removeClass(t,n.fontStyle.normal)})),"textUnderline"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textDecoration.underline),this.removeClass(t,n.textDecoration.linethrough),this.removeClass(t,n.textDecoration.normal)})),"textLinethrough"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textDecoration.underline),this.removeClass(t,n.textDecoration.linethrough),this.removeClass(t,n.textDecoration.normal)})),"textTransform"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textTransform.uppercase),this.removeClass(t,n.textTransform.lowercase),this.removeClass(t,n.textTransform.capitalize),this.removeClass(t,n.textTransform.normal)})),"clean"===t&&Array.from(i.children).map((t=>{t.className="",t.style.cssText=""})),"extend"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.extend[e])}));const o=Array.from(i.children).map((i=>this.cleanChildrenToggle(t,e,i,n)));o&&o.length}getSelection(){return this.builder.win&&this.builder.win.getSelection?this.builder.win.getSelection():this.builder.doc&&this.builder.doc.getSelection?this.builder.doc.getSelection():this.builder.doc&&this.builder.doc.selection?this.builder.doc.selection.createRange().text:null}cleanChildren(t,e){if(!e.hasChildNodes())return;const i=Array.from(e.children).filter((e=>void 0!==e.style[t]&&""!==e.style[t.style]));i&&i.length>0&&i.forEach((e=>{e.style[t]="",""!==e.getAttribute("style")&&null!==e.style||e.removeAttribute("style")}));const n=Array.from(e.children).map((e=>this.cleanChildren(t,e)));n&&n.length}addCssClass(t,e,i){this.removeCssClasses(t,i),this.addClass(t,e)}removeCssClasses(t,e){for(let i=0;i<Object.keys(e).length;i++){const n=Object.values(e)[i];this.removeClass(t,n)}}removeEmptyStyle(t){if(!t.hasChildNodes())return;const e=Array.from(t.children).filter((t=>t.getAttribute("style")));e&&e.length>0&&e.forEach((t=>{""!==t.getAttribute("style").trim()&&null!==t.style||t.removeAttribute("style")}));const i=Array.from(t.children).map((t=>this.removeEmptyStyle(t)));i&&i.length}cleanClassSize(t,e){if(!t.hasChildNodes())return;const i=Array.from(t.children).filter((t=>this.hasClass(t,e)));i&&i.length>0&&i.forEach((t=>{this.removeClass(t,e)}));const n=Array.from(t.children).map((t=>this.cleanClassSize(t,e)));n&&n.length}removeFormat(){const t=this.getSelection();if(!t)return;const e=t.anchorNode;if(!e)return;const i=e.nodeType!==Node.TEXT_NODE&&e.nodeType!==Node.COMMENT_NODE?e:e.parentElement;i&&i.innerText===t.toString()||""===t.toString().trim()?this.cleanElement(i):this.cleanSelection(t)}cleanElement(t){t.style.fontWeight="",t.style.fontStyle="",t.style.textDecoration="",t.style.textTransform="",t.style.fontFamily="",t.style.fontSize="",t.style.color="",t.style.backgroundColor="",t.classList.forEach((e=>{-1!==e.indexOf("size-")&&this.removeClass(t,e)})),t.querySelectorAll("*").forEach((t=>{t.style.fontWeight="",t.style.fontStyle="",t.style.textDecoration="",t.style.textTransform="",t.style.fontFamily="",t.style.fontSize="",t.style.color="",t.style.backgroundColor="",t.classList.forEach((e=>{-1!==e.indexOf("size-")&&this.removeClass(t,e)}))})),this.cleanUnusedSpan(t)}cleanSelection(t){const e=t.getRangeAt(0),i=e.extractContents(),n=document.createElement("span");n.appendChild(i),e.insertNode(n),t.selectAllChildren(n),this.cleanElement(n)}cleanUnusedSpan(t){let e=t.querySelectorAll("span");const i=Array.prototype.filter;let n=i.call(e,(t=>0===t.attributes.length));n&&n.length>0&&n.forEach((t=>{t.outerHTML=t.innerHTML})),e=t.querySelectorAll("span"),i.call(e,(t=>{""===t.innerHTML&&t.parentNode.removeChild(t)})),e=t.querySelectorAll("span"),n=i.call(e,(t=>0===t.attributes.length)),n&&n.length>0&&this.cleanUnusedSpan(t)}contentReformat(t,e){this.replaceTag(t,"b",e.fontWeight.defaultBold),this.replaceTag(t,"i",e.fontStyle.italic),this.replaceTag(t,"u",e.textDecoration.underline),this.replaceTag(t,"strike",e.textDecoration.linethrough),this.replaceInline(t,"font-weight","normal",e.fontWeight.defaultBold),this.replaceInline(t,"font-weight","bold",e.fontWeight.defaultBold),this.replaceInline(t,"font-weight","600",e.fontWeight.semibold),this.replaceInline(t,"text-align","left",e.textAlign.left),this.replaceInline(t,"text-align","right",e.textAlign.right),this.replaceInline(t,"text-align","center",e.textAlign.center),this.replaceInline(t,"text-align","justify",e.textAlign.justify),this.replaceInline(t,"display","flex",e.display.flex),this.replaceInline(t,"justiify-content","flex-start",e.justifyContent.start),this.replaceInline(t,"justiify-content","flex-end",e.justifyContent.end),this.replaceInline(t,"justiify-content","center",e.justifyContent.center),this.replaceInline(t,"justiify-content","space-between",e.justifyContent.between),this.replaceInline(t,"flex-direction","column",e.flexDirection.column),this.replaceInline(t,"flex-direction","row",e.flexDirection.row),this.replaceInline(t,"align-items","flex-start",e.alignItems.start),this.replaceInline(t,"align-items","flex-end",e.alignItems.end),this.replaceInline(t,"align-items","center",e.alignItems.center),this.replaceInline(t,"text-transform","uppercase",e.textTransform.uppercase),this.replaceInline(t,"text-transform","lowercase",e.textTransform.lowercase),this.replaceInline(t,"text-transform","none",e.textTransform.normal),this.replaceInline(t,"line-height","1",e.leading.leading_10),this.replaceInline(t,"line-height","1.1",e.leading.leading_11),this.replaceInline(t,"line-height","1.2",e.leading.leading_12),this.replaceInline(t,"line-height","1.25",e.leading.leading_125),this.replaceInline(t,"line-height","1.3",e.leading.leading_13),this.replaceInline(t,"line-height","1.375",e.leading.leading_1375),this.replaceInline(t,"line-height","1.4",e.leading.leading_14),this.replaceInline(t,"line-height","1.5",e.leading.leading_15),this.replaceInline(t,"line-height","1.6",e.leading.leading_16),this.replaceInline(t,"line-height","1.625",e.leading.leading_1625),this.replaceInline(t,"line-height","1.7",e.leading.leading_17),this.replaceInline(t,"line-height","1.8",e.leading.leading_18),this.replaceInline(t,"line-height","1.9",e.leading.leading_19),this.replaceInline(t,"line-height","2",e.leading.leading_20),this.replaceInline(t,"line-height","2.1",e.leading.leading_21),this.replaceInline(t,"line-height","2.2",e.leading.leading_22)}replaceTag(t,e,i){let n=t.querySelectorAll(e);let o=Array.prototype.filter.call(n,(t=>0===t.attributes.length));o&&o.length>0&&o.forEach((t=>{const e=document.createElement("span");e.setAttribute("class",i),e.innerHTML=t.innerHTML,t.outerHTML=e.outerHTML}))}replaceInline(t,e,i,n){t.querySelectorAll("*").forEach((t=>{"justiify-content"===e?t.style.justifyContent===`${i}`&&(this.addClass(t,n),t.style.justifyContent=""):t.style[e]===`${i}`&&(this.addClass(t,n),t.style[e]="")}))}}var s={exports:{}},r={},l={exports:{}},a={},d={};function c(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function u(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function h(t,e){this.__indent_cache=new u(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new c(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}c.prototype.clone_empty=function(){var t=new c(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},c.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},c.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},c.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},c.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},c.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},c.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},c.prototype.is_empty=function(){return 0===this.__items.length},c.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},c.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},c.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},c.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},c.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},c.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},c.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},u.prototype.get_indent_size=function(t,e){var i=this.__base_string_length;return e=e||0,t<0&&(i=0),i+=t*this.__indent_size,i+=e},u.prototype.get_indent_string=function(t,e){var i=this.__base_string;return e=e||0,t<0&&(t=0,i=""),e+=t*this.__indent_size,this.__ensure_cache(e),i+=this.__cache[e]},u.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var t=this.__cache.length,e=0,i="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,i=new Array(e+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)},h.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},h.prototype.get_line_number=function(){return this.__lines.length},h.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},h.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},h.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},h.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},h.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==t&&(i=i.replace(/[\n]/g,t)),i},h.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},h.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},h.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},h.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},h.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},h.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},h.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},h.prototype.just_added_newline=function(){return this.current_line.is_empty()},h.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},h.prototype.ensure_empty_line_above=function(t,e){for(var i=this.__lines.length-2;i>=0;){var n=this.__lines[i];if(n.is_empty())break;if(0!==n.item(0).indexOf(t)&&n.item(-1)!==e){this.__lines.splice(i+1,0,new c(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},d.Output=h;var p={};p.Token=function(t,e,i,n){this.type=t,this.text=e,this.comments_before=null,this.newlines=i||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null};var g,m,f,b,v,y,x={};v="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+(f="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc")+"])",y="(?:\\\\u[0-9a-fA-F]{4}|["+(m="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a")+f+(b="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f")+"])*",(g=x).identifier=new RegExp(v+y,"g"),g.identifierStart=new RegExp(v),g.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+m+f+b+"])+"),g.newline=/[\n\r\u2028\u2029]/,g.lineBreak=new RegExp("\r\n|"+g.newline.source),g.allLineBreaks=new RegExp(g.lineBreak.source,"g");var w={},S={};function _(t,e){this.raw_options=C(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function C(t,e){var i,n={};for(i in t=k(t))i!==e&&(n[i]=t[i]);if(e&&t[e])for(i in t[e])n[i]=t[e][i];return n}function k(t){var e,i={};for(e in t){i[e.replace(/-/g,"_")]=t[e]}return i}_.prototype._get_array=function(t,e){var i=this.raw_options[t],n=e||[];return"object"==typeof i?null!==i&&"function"==typeof i.concat&&(n=i.concat()):"string"==typeof i&&(n=i.split(/[^a-zA-Z0-9_\/\-]+/)),n},_.prototype._get_boolean=function(t,e){var i=this.raw_options[t];return void 0===i?!!e:!!i},_.prototype._get_characters=function(t,e){var i=this.raw_options[t],n=e||"";return"string"==typeof i&&(n=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),n},_.prototype._get_number=function(t,e){var i=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var n=parseInt(i,10);return isNaN(n)&&(n=e),n},_.prototype._get_selection=function(t,e,i){var n=this._get_selection_list(t,e,i);if(1!==n.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},_.prototype._get_selection_list=function(t,e,i){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(i=i||[e[0]],!this._is_valid_selection(i,e))throw new Error("Invalid Default Value!");var n=this._get_array(t,i);if(!this._is_valid_selection(n,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n},_.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},S.Options=_,S.normalizeOpts=k,S.mergeOpts=C;var E=S.Options,A=["before-newline","after-newline","preserve-newline"];function L(t){E.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var n=0;n<i.length;n++)"preserve-inline"===i[n]?this.brace_preserve_inline=!0:this.brace_style=i[n];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",A),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}L.prototype=new E,w.Options=L;var q={},T={},M=RegExp.prototype.hasOwnProperty("sticky");function R(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}R.prototype.restart=function(){this.__position=0},R.prototype.back=function(){this.__position>0&&(this.__position-=1)},R.prototype.hasNext=function(){return this.__position<this.__input_length},R.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},R.prototype.peek=function(t){var e=null;return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&(e=this.__input.charAt(t)),e},R.prototype.__match=function(t,e){t.lastIndex=e;var i=t.exec(this.__input);return!i||M&&t.sticky||i.index!==e&&(i=null),i},R.prototype.test=function(t,e){return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&!!this.__match(t,e)},R.prototype.testChar=function(t,e){var i=this.peek(e);return t.lastIndex=0,null!==i&&t.test(i)},R.prototype.match=function(t){var e=this.__match(t,this.__position);return e?this.__position+=e[0].length:e=null,e},R.prototype.read=function(t,e,i){var n,o="";return t&&(n=this.match(t))&&(o+=n[0]),!e||!n&&t||(o+=this.readUntil(e,i)),o},R.prototype.readUntil=function(t,e){var i,n=this.__position;t.lastIndex=this.__position;var o=t.exec(this.__input);return o?(n=o.index,e&&(n+=o[0].length)):n=this.__input_length,i=this.__input.substring(this.__position,n),this.__position=n,i},R.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},R.prototype.get_regexp=function(t,e){var i=null,n="g";return e&&M&&(n="y"),"string"==typeof t&&""!==t?i=new RegExp(t,n):t&&(i=new RegExp(t.source,n)),i},R.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},R.prototype.peekUntilAfter=function(t){var e=this.__position,i=this.readUntilAfter(t);return this.__position=e,i},R.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},T.InputScanner=R;var O={},B={};function N(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}N.prototype.restart=function(){this.__position=0},N.prototype.isEmpty=function(){return 0===this.__tokens_length},N.prototype.hasNext=function(){return this.__position<this.__tokens_length},N.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},N.prototype.peek=function(t){var e=null;return t=t||0,(t+=this.__position)>=0&&t<this.__tokens_length&&(e=this.__tokens[t]),e},N.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},B.TokenStream=N;var I={},$={};function D(t,e){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,e&&(this._starting_pattern=this._input.get_regexp(e._starting_pattern,!0),this._match_pattern=this._input.get_regexp(e._match_pattern,!0),this._until_pattern=this._input.get_regexp(e._until_pattern),this._until_after=e._until_after)}D.prototype.read=function(){var t=this._input.read(this._starting_pattern);return this._starting_pattern&&!t||(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},D.prototype.read_match=function(){return this._input.match(this._match_pattern)},D.prototype.until_after=function(t){var e=this._create();return e._until_after=!0,e._until_pattern=this._input.get_regexp(t),e._update(),e},D.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},D.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},D.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},D.prototype._create=function(){return new D(this._input,this)},D.prototype._update=function(){},$.Pattern=D;var z=$.Pattern;function P(t,e){z.call(this,t,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}P.prototype=new z,P.prototype.__set_whitespace_patterns=function(t,e){t+="\\t ",e+="\\n\\r",this._match_pattern=this._input.get_regexp("["+t+e+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},P.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t=this._input.read(this._match_pattern);if(" "===t)this.whitespace_before_token=" ";else if(t){var e=this.__split(this._newline_regexp,t);this.newline_count=e.length-1,this.whitespace_before_token=e[this.newline_count]}return t},P.prototype.matching=function(t,e){var i=this._create();return i.__set_whitespace_patterns(t,e),i._update(),i},P.prototype._create=function(){return new P(this._input,this)},P.prototype.__split=function(t,e){t.lastIndex=0;for(var i=0,n=[],o=t.exec(e);o;)n.push(e.substring(i,o.index)),i=o.index+o[0].length,o=t.exec(e);return i<e.length?n.push(e.substring(i,e.length)):n.push(""),n},I.WhitespacePattern=P;var H=T.InputScanner,F=p.Token,U=B.TokenStream,j=I.WhitespacePattern,W={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},G=function(t,e){this._input=new H(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new j(this._input)};G.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new U,this._reset();for(var e=new F(W.START,""),i=null,n=[],o=new U;e.type!==W.EOF;){for(t=this._get_next_token(e,i);this._is_comment(t);)o.add(t),t=this._get_next_token(e,i);o.isEmpty()||(t.comments_before=o,o=new U),t.parent=i,this._is_opening(t)?(n.push(i),i=t):i&&this._is_closing(t,i)&&(t.opened=i,i.closed=t,i=n.pop(),t.parent=i),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},G.prototype._is_first_token=function(){return this.__tokens.isEmpty()},G.prototype._reset=function(){},G.prototype._get_next_token=function(t,e){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(W.RAW,i):this._create_token(W.EOF,"")},G.prototype._is_comment=function(t){return!1},G.prototype._is_opening=function(t){return!1},G.prototype._is_closing=function(t,e){return!1},G.prototype._create_token=function(t,e){return new F(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},G.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},O.Tokenizer=G,O.TOKEN=W;var V={};function Y(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}Y.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(t);i;)e[i[1]]=i[2],i=this.__directive_pattern.exec(t);return e},Y.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},V.Directives=Y;var X={},Z=$.Pattern,K={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function Q(t,e){Z.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},K),this._excluded=Object.assign({},K),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled));var i=new Z(t);this.__patterns={handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:i.starting_with(/{{{/).until_after(/}}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),php:i.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}Q.prototype=new Z,Q.prototype._create=function(){return new Q(this._input,this)},Q.prototype._update=function(){this.__set_templated_pattern()},Q.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},Q.prototype.read_options=function(t){var e=this._create();for(var i in K)e._disabled[i]=-1===t.templating.indexOf(i);return e._update(),e},Q.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},Q.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},Q.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},Q.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var i=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==i||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==i||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=(t=(t=t||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return t},X.TemplatablePattern=Q;var J=T.InputScanner,tt=O.Tokenizer,et=O.TOKEN,it=V.Directives,nt=x,ot=$.Pattern,st=X.TemplatablePattern;function rt(t,e){return-1!==e.indexOf(t)}var lt={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:et.START,RAW:et.RAW,EOF:et.EOF},at=new it(/\/\*/,/\*\//),dt=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,ct=/[0-9]/,ut=/[^\d\.]/,ht=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),pt=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";pt=(pt="\\?\\.(?!\\d) "+(pt=pt.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var gt,mt=new RegExp(pt),ft="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),bt=ft.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),vt=new RegExp("^(?:"+bt.join("|")+")$"),yt=function(t,e){tt.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var i=new ot(this._input),n=new st(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(nt.identifier).matching(nt.identifierMatch),number:i.matching(dt),punct:i.matching(mt),comment:i.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:i.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:i.matching(/<!--/),html_comment_end:i.matching(/-->/),include:i.starting_with(/#include/).until_after(nt.lineBreak),shebang:i.starting_with(/#!/).until_after(nt.lineBreak),xml:i.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\]|)(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}};(yt.prototype=new tt)._is_comment=function(t){return t.type===lt.COMMENT||t.type===lt.BLOCK_COMMENT||t.type===lt.UNKNOWN},yt.prototype._is_opening=function(t){return t.type===lt.START_BLOCK||t.type===lt.START_EXPR},yt.prototype._is_closing=function(t,e){return(t.type===lt.END_BLOCK||t.type===lt.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},yt.prototype._reset=function(){gt=!1},yt.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(lt.EOF,""):i=(i=(i=(i=(i=(i=(i=(i=(i=i||this._read_non_javascript(n))||this._read_string(n))||this._read_word(t))||this._read_singles(n))||this._read_comment(n))||this._read_regexp(n,t))||this._read_xml(n,t))||this._read_punctuation())||this._create_token(lt.UNKNOWN,this._input.next())},yt.prototype._read_word=function(t){var e;return""!==(e=this.__patterns.identifier.read())?(e=e.replace(nt.allLineBreaks,"\n"),t.type!==lt.DOT&&(t.type!==lt.RESERVED||"set"!==t.text&&"get"!==t.text)&&vt.test(e)?"in"===e||"of"===e?this._create_token(lt.OPERATOR,e):this._create_token(lt.RESERVED,e):this._create_token(lt.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(lt.WORD,e):void 0},yt.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(lt.START_EXPR,t):")"===t||"]"===t?e=this._create_token(lt.END_EXPR,t):"{"===t?e=this._create_token(lt.START_BLOCK,t):"}"===t?e=this._create_token(lt.END_BLOCK,t):";"===t?e=this._create_token(lt.SEMICOLON,t):"."===t&&ut.test(this._input.peek(1))?e=this._create_token(lt.DOT,t):","===t&&(e=this._create_token(lt.COMMA,t)),e&&this._input.next(),e},yt.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(lt.EQUALS,t):"?."===t?this._create_token(lt.DOT,t):this._create_token(lt.OPERATOR,t)},yt.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(lt.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(lt.UNKNOWN,e.trim()+"\n");t=this._input.next();var i="#";if(this._input.hasNext()&&this._input.testChar(ct)){do{i+=t=this._input.next()}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(i+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(i+="{}",this._input.next(),this._input.next())),this._create_token(lt.WORD,i)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(nt.newline);)e+=this._input.next();return gt=!0,this._create_token(lt.COMMENT,e)}}else if(gt&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return gt=!1,this._create_token(lt.COMMENT,e);return null},yt.prototype._read_comment=function(t){var e=null;if("/"===t){var i="";if("*"===this._input.peek(1)){i=this.__patterns.block_comment.read();var n=at.get_directives(i);n&&"start"===n.ignore&&(i+=at.readIgnored(this._input)),i=i.replace(nt.allLineBreaks,"\n"),(e=this._create_token(lt.BLOCK_COMMENT,i)).directives=n}else"/"===this._input.peek(1)&&(i=this.__patterns.comment.read(),e=this._create_token(lt.COMMENT,i))}return e},yt.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=function(t){var e="",i=0,n=new J(t),o=null;for(;n.hasNext();)if((o=n.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=o[0]),"\\"===n.peek()){if(n.next(),"x"===n.peek())o=n.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==n.peek()){e+="\\",n.hasNext()&&(e+=n.next());continue}o=n.match(/u([0-9A-Fa-f]{4})/g)}if(!o)return t;if((i=parseInt(o[1],16))>126&&i<=255&&0===o[0].indexOf("x"))return t;if(i>=0&&i<32){e+="\\"+o[0];continue}e+=34===i||39===i||92===i?"\\"+String.fromCharCode(i):String.fromCharCode(i)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(nt.allLineBreaks,"\n"),this._create_token(lt.STRING,e)}return null},yt.prototype._allow_regexp_or_xml=function(t){return t.type===lt.RESERVED&&rt(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===lt.END_EXPR&&")"===t.text&&t.opened.previous.type===lt.RESERVED&&rt(t.opened.previous.text,["if","while","for"])||rt(t.type,[lt.COMMENT,lt.START_EXPR,lt.START_BLOCK,lt.START,lt.END_BLOCK,lt.OPERATOR,lt.EQUALS,lt.EOF,lt.SEMICOLON,lt.COMMA])},yt.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var i=this._input.next(),n=!1,o=!1;this._input.hasNext()&&(n||o||this._input.peek()!==t)&&!this._input.testChar(nt.newline);)i+=this._input.peek(),n?n=!1:(n="\\"===this._input.peek(),"["===this._input.peek()?o=!0:"]"===this._input.peek()&&(o=!1)),this._input.next();return this._input.peek()===t&&(i+=this._input.next(),i+=this._input.read(nt.identifier)),this._create_token(lt.STRING,i)}return null},yt.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var i="",n=this.__patterns.xml.read_match();if(n){for(var o=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===o.indexOf("{"),r=0;n;){var l=!!n[1],a=n[2];if(!(!!n[n.length-1]||"![CDATA["===a.slice(0,8))&&(a===o||s&&a.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--r:++r),i+=n[0],r<=0)break;n=this.__patterns.xml.read_match()}return n||(i+=this._input.match(/[\s\S]*/g)[0]),i=i.replace(nt.allLineBreaks,"\n"),this._create_token(lt.STRING,i)}}return null},yt.prototype._read_string_recursive=function(t,e,i){var n,o;"'"===t?o=this.__patterns.single_quote:'"'===t?o=this.__patterns.double_quote:"`"===t?o=this.__patterns.template_text:"}"===t&&(o=this.__patterns.template_expression);for(var s=o.read(),r="";this._input.hasNext();){if((r=this._input.next())===t||!e&&nt.newline.test(r)){this._input.back();break}"\\"===r&&this._input.hasNext()?("x"===(n=this._input.peek())||"u"===n?this.has_char_escapes=!0:"\r"===n&&"\n"===this._input.peek(1)&&this._input.next(),r+=this._input.next()):i&&("${"===i&&"$"===r&&"{"===this._input.peek()&&(r+=this._input.next()),i===r&&(r+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(r+=this._input.next()))),s+=r+=o.read()}return s},q.Tokenizer=yt,q.TOKEN=lt,q.positionable_operators=ht.slice(),q.line_starters=ft.slice();var xt=d.Output,wt=p.Token,St=x,_t=w.Options,Ct=q.Tokenizer,kt=q.line_starters,Et=q.positionable_operators,At=q.TOKEN;function Lt(t,e){return-1!==e.indexOf(t)}function qt(t,e){return t&&t.type===At.RESERVED&&t.text===e}function Tt(t,e){return t&&t.type===At.RESERVED&&Lt(t.text,e)}var Mt=["case","return","do","if","throw","else","await","break","continue","async"],Rt=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].replace(/-/g,"_")]=t[i];return e}(["before-newline","after-newline","preserve-newline"]),Ot=[Rt.before_newline,Rt.preserve_newline],Bt={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Nt(t,e){e.multiline_frame||e.mode===Bt.ForInitializer||e.mode===Bt.Conditional||t.remove_indent(e.start_line_index)}function It(t){return t===Bt.ArrayLiteral}function $t(t){return Lt(t,[Bt.Expression,Bt.ForInitializer,Bt.Conditional])}function Dt(t,e){e=e||{},this._source_text=t||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new _t(e)}Dt.prototype.create_flags=function(t,e){var i=0;return t&&(i=t.indentation_level,!this._output.just_added_newline()&&t.line_indent_level>i&&(i=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new wt(At.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:i,alignment:0,line_indent_level:t?t.line_indent_level:i,start_line_index:this._output.get_line_number(),ternary_depth:0}},Dt.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new xt(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Bt.BlockStatement);var i=new Ct(t,this._options);return this._tokens=i.tokenize(),t},Dt.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&St.lineBreak.test(t||"")&&(e=t.match(St.lineBreak)[0]));for(var i=this._tokens.next();i;)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return this._output.get_code(e)},Dt.prototype.handle_token=function(t,e){t.type===At.START_EXPR?this.handle_start_expr(t):t.type===At.END_EXPR?this.handle_end_expr(t):t.type===At.START_BLOCK?this.handle_start_block(t):t.type===At.END_BLOCK?this.handle_end_block(t):t.type===At.WORD||t.type===At.RESERVED?this.handle_word(t):t.type===At.SEMICOLON?this.handle_semicolon(t):t.type===At.STRING?this.handle_string(t):t.type===At.EQUALS?this.handle_equals(t):t.type===At.OPERATOR?this.handle_operator(t):t.type===At.COMMA?this.handle_comma(t):t.type===At.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===At.COMMENT?this.handle_comment(t,e):t.type===At.DOT?this.handle_dot(t):t.type===At.EOF?this.handle_eof(t):(t.type,At.UNKNOWN,this.handle_unknown(t,e))},Dt.prototype.handle_whitespace_and_comments=function(t,e){var i=t.newlines,n=this._options.keep_array_indentation&&It(this._flags.mode);if(t.comments_before)for(var o=t.comments_before.next();o;)this.handle_whitespace_and_comments(o,e),this.handle_token(o,e),o=t.comments_before.next();if(n)for(var s=0;s<i;s+=1)this.print_newline(s>0,e);else if(this._options.max_preserve_newlines&&i>this._options.max_preserve_newlines&&(i=this._options.max_preserve_newlines),this._options.preserve_newlines&&i>1){this.print_newline(!1,e);for(var r=1;r<i;r+=1)this.print_newline(!0,e)}};var zt=["async","break","continue","return","throw","yield"];Dt.prototype.allow_wrap_or_preserved_newline=function(t,e){if(e=void 0!==e&&e,!this._output.just_added_newline()){var i=this._options.preserve_newlines&&t.newlines||e;if(Lt(this._flags.last_token.text,Et)||Lt(t.text,Et)){var n=Lt(this._flags.last_token.text,Et)&&Lt(this._options.operator_position,Ot)||Lt(t.text,Et);i=i&&n}if(i)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Tt(this._flags.last_token,zt))return;this._output.set_wrap_point()}}},Dt.prototype.print_newline=function(t,e){if(!e&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==At.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var i=this._tokens.peek();!(this._flags.mode!==Bt.Statement||this._flags.if_block&&qt(i,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(t)&&(this._flags.multiline_frame=!0)},Dt.prototype.print_token_line_indentation=function(t){this._output.just_added_newline()&&(this._options.keep_array_indentation&&t.newlines&&("["===t.text||It(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(t.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},Dt.prototype.print_token=function(t){if(this._output.raw)this._output.add_raw_token(t);else{if(this._options.comma_first&&t.previous&&t.previous.type===At.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var e=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(e),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(t),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(t),this._output.non_breaking_space=!0,this._output.add_token(t.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},Dt.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Dt.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},Dt.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Dt.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Bt.Statement&&Nt(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},Dt.prototype.start_of_object_property=function(){return this._flags.parent.mode===Bt.ObjectLiteral&&this._flags.mode===Bt.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||Tt(this._flags.last_token,["get","set"]))},Dt.prototype.start_of_statement=function(t){var e=!1;return!!(e=(e=(e=(e=(e=(e=(e=e||Tt(this._flags.last_token,["var","let","const"])&&t.type===At.WORD)||qt(this._flags.last_token,"do"))||!(this._flags.parent.mode===Bt.ObjectLiteral&&this._flags.mode===Bt.Statement)&&Tt(this._flags.last_token,zt)&&!t.newlines)||qt(this._flags.last_token,"else")&&!(qt(t,"if")&&!t.comments_before))||this._flags.last_token.type===At.END_EXPR&&(this._previous_flags.mode===Bt.ForInitializer||this._previous_flags.mode===Bt.Conditional))||this._flags.last_token.type===At.WORD&&this._flags.mode===Bt.BlockStatement&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==At.WORD&&t.type!==At.RESERVED)||this._flags.mode===Bt.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||Tt(this._flags.last_token,["get","set"])))&&(this.set_mode(Bt.Statement),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,Tt(t,["do","for","if","while"])),!0)},Dt.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=Bt.Expression;if("["===t.text){if(this._flags.last_token.type===At.WORD||")"===this._flags.last_token.text)return Tt(this._flags.last_token,kt)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=Bt.ArrayLiteral,It(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),Lt(this._flags.last_token.type,[At.START_EXPR,At.END_EXPR,At.WORD,At.OPERATOR,At.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===At.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=Bt.ForInitializer):Lt(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,e=Bt.Conditional):Lt(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(Lt(this._flags.last_token.text,kt)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===At.EQUALS||this._flags.last_token.type===At.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===At.WORD){this._output.space_before_token=!1;var i=this._tokens.peek(-3);if(this._options.space_after_named_function&&i){var n=this._tokens.peek(-4);Tt(i,["async","function"])||"*"===i.text&&Tt(n,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Bt.ObjectLiteral&&("{"!==i.text&&","!==i.text&&("*"!==i.text||"{"!==n.text&&","!==n.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===At.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(Lt(this._last_last_text,["function","yield"])||this._flags.mode===Bt.ObjectLiteral&&Lt(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===At.START_BLOCK?this.print_newline():this._flags.last_token.type!==At.END_EXPR&&this._flags.last_token.type!==At.START_EXPR&&this._flags.last_token.type!==At.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==At.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},Dt.prototype.handle_end_expr=function(t){for(;this._flags.mode===Bt.Statement;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&It(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==At.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),Nt(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Bt.Conditional&&(this._previous_flags.mode=Bt.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},Dt.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),i=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===At.END_EXPR?(this.set_mode(Bt.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Bt.BlockStatement):i&&(Lt(i.text,[":",","])&&Lt(e.type,[At.STRING,At.WORD,At.RESERVED])||Lt(e.text,["get","set","..."])&&Lt(i.type,[At.WORD,At.RESERVED]))?Lt(this._last_last_text,["class","interface"])?this.set_mode(Bt.BlockStatement):this.set_mode(Bt.ObjectLiteral):this._flags.last_token.type===At.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(Bt.BlockStatement):Lt(this._flags.last_token.type,[At.EQUALS,At.START_EXPR,At.COMMA,At.OPERATOR])||Tt(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Bt.ObjectLiteral):this.set_mode(Bt.BlockStatement);var n=!e.comments_before&&"}"===e.text,o=n&&"function"===this._flags.last_word&&this._flags.last_token.type===At.END_EXPR;if(this._options.brace_preserve_inline){var s=0,r=null;this._flags.inline_frame=!0;do{if(s+=1,(r=this._tokens.peek(s-1)).newlines){this._flags.inline_frame=!1;break}}while(r.type!==At.EOF&&(r.type!==At.END_BLOCK||r.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==At.OPERATOR&&(o||this._flags.last_token.type===At.EQUALS||Tt(this._flags.last_token,Mt)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!It(this._previous_flags.mode)||this._flags.last_token.type!==At.START_EXPR&&this._flags.last_token.type!==At.COMMA||((this._flags.last_token.type===At.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===At.COMMA||this._flags.last_token.type===At.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==At.OPERATOR&&this._flags.last_token.type!==At.START_EXPR&&(this._flags.last_token.type!==At.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),n||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},Dt.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===Bt.Statement;)this.restore_mode();var e=this._flags.last_token.type===At.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(It(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},Dt.prototype.handle_word=function(t){if(t.type===At.RESERVED)if(Lt(t.text,["set","get"])&&this._flags.mode!==Bt.ObjectLiteral)t.type=At.WORD;else if("import"===t.text&&"("===this._tokens.peek().text)t.type=At.WORD;else if(Lt(t.text,["as","from"])&&!this._flags.import_block)t.type=At.WORD;else if(this._flags.mode===Bt.ObjectLiteral){":"===this._tokens.peek().text&&(t.type=At.WORD)}if(this.start_of_statement(t)?Tt(this._flags.last_token,["var","let","const"])&&t.type===At.WORD&&(this._flags.declaration_statement=!0):!t.newlines||$t(this._flags.mode)||this._flags.last_token.type===At.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===At.EQUALS||!this._options.preserve_newlines&&Tt(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(qt(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&qt(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Bt.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&Tt(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==At.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==At.COMMA&&this._flags.last_token.type!==At.START_EXPR&&this._flags.last_token.type!==At.EQUALS&&this._flags.last_token.type!==At.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),qt(t,"function"))return(Lt(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!Lt(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==At.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===At.RESERVED||this._flags.last_token.type===At.WORD?Tt(this._flags.last_token,["get","set","new","export"])||Tt(this._flags.last_token,zt)||qt(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===At.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!$t(this._flags.mode)&&!It(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var e="NONE";(this._flags.last_token.type===At.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":Tt(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?e="NEWLINE":(e="SPACE",this._output.space_before_token=!0):e="NEWLINE":this._flags.last_token.type===At.SEMICOLON&&this._flags.mode===Bt.BlockStatement?e="NEWLINE":this._flags.last_token.type===At.SEMICOLON&&$t(this._flags.mode)?e="SPACE":this._flags.last_token.type===At.STRING?e="NEWLINE":this._flags.last_token.type===At.RESERVED||this._flags.last_token.type===At.WORD||"*"===this._flags.last_token.text&&(Lt(this._last_last_text,["function","yield"])||this._flags.mode===Bt.ObjectLiteral&&Lt(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===At.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===At.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),Tt(t,kt)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),Tt(t,["else","catch","finally"]))?(this._flags.last_token.type!==At.END_BLOCK||this._previous_flags.mode!==Bt.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===e?Tt(this._flags.last_token,Mt)||"declare"===this._flags.last_token.text&&Tt(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==At.END_EXPR?this._flags.last_token.type===At.START_EXPR&&Tt(t,["var","let","const"])||":"===this._flags.last_token.text||(qt(t,"if")&&qt(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Tt(t,kt)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&It(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===e&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==At.WORD&&t.previous.type!==At.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===At.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&qt(t,"from")&&(this._flags.import_block=!1))},Dt.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!(this._flags.mode!==Bt.Statement||this._flags.if_block&&qt(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},Dt.prototype.handle_string=function(t){(!t.text.startsWith("`")||0!==t.newlines||""!==t.whitespace_before||")"!==t.previous.text&&this._flags.last_token.type!==At.WORD)&&(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===At.RESERVED||this._flags.last_token.type===At.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===At.COMMA||this._flags.last_token.type===At.START_EXPR||this._flags.last_token.type===At.EQUALS||this._flags.last_token.type===At.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==At.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},Dt.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},Dt.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?($t(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===Bt.ObjectLiteral||this._flags.mode===Bt.Statement&&this._flags.parent.mode===Bt.ObjectLiteral?(this._flags.mode===Bt.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},Dt.prototype.handle_operator=function(t){var e="*"===t.text&&(Tt(this._flags.last_token,["function","yield"])||Lt(this._flags.last_token.type,[At.START_BLOCK,At.COMMA,At.END_BLOCK,At.SEMICOLON])),i=Lt(t.text,["-","+"])&&(Lt(this._flags.last_token.type,[At.START_BLOCK,At.START_EXPR,At.EQUALS,At.OPERATOR])||Lt(this._flags.last_token.text,kt)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var n=!e;this.handle_whitespace_and_comments(t,n)}if(Tt(this._flags.last_token,Mt))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==At.DOT)if("::"!==t.text){if(this._flags.last_token.type===At.OPERATOR&&Lt(this._options.operator_position,Ot)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==At.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var o=!0,s=!0,r=!1;if(":"===t.text?0===this._flags.ternary_depth?o=!1:(this._flags.ternary_depth-=1,r=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!i&&!e&&this._options.preserve_newlines&&Lt(t.text,Et)){var l=":"===t.text,a=l&&r,d=l&&!r;switch(this._options.operator_position){case Rt.before_newline:return this._output.space_before_token=!d,this.print_token(t),l&&!a||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case Rt.after_newline:return this._output.space_before_token=!0,!l||a?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case Rt.preserve_newline:return d||this.allow_wrap_or_preserved_newline(t),o=!(this._output.just_added_newline()||d),this._output.space_before_token=o,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),o=!1;var c=this._tokens.peek();s=c&&Lt(c.type,[At.WORD,At.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),o=this._flags.last_token.type===At.START_BLOCK,s=!1):(Lt(t.text,["--","++","!","~"])||i)&&(this._flags.last_token.type!==At.COMMA&&this._flags.last_token.type!==At.START_EXPR||this.allow_wrap_or_preserved_newline(t),o=!1,s=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&$t(this._flags.mode)&&(o=!0),this._flags.last_token.type===At.RESERVED?o=!0:this._flags.last_token.type===At.END_EXPR?o=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===At.OPERATOR&&(o=Lt(t.text,["--","-","++","+"])&&Lt(this._flags.last_token.text,["--","-","++","+"]),Lt(t.text,["+","-"])&&Lt(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==Bt.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==Bt.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||o,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},Dt.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):St.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},Dt.prototype.print_block_commment=function(t,e){var i,n=function(t){for(var e=[],i=(t=t.replace(St.allLineBreaks,"\n")).indexOf("\n");-1!==i;)e.push(t.substring(0,i)),i=(t=t.substring(i+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),o=!1,s=!1,r=t.whitespace_before,l=r.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(n[0]),this.print_newline(!1,e),n.length>1){for(o=function(t,e){for(var i=0;i<t.length;i++)if(t[i].trim().charAt(0)!==e)return!1;return!0}(n=n.slice(1),"*"),s=function(t,e){for(var i,n=0,o=t.length;n<o;n++)if((i=t[n])&&0!==i.indexOf(e))return!1;return!0}(n,r),o&&(this._flags.alignment=1),i=0;i<n.length;i++)o?(this.print_token_line_indentation(t),this._output.add_token(n[i].replace(/^\s+/g,""))):s&&n[i]?(this.print_token_line_indentation(t),this._output.add_token(n[i].substring(l))):(this._output.current_line.set_indent(-1),this._output.add_token(n[i])),this.print_newline(!1,e);this._flags.alignment=0}},Dt.prototype.handle_comment=function(t,e){t.newlines?this.print_newline(!1,e):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(t),this.print_newline(!1,e)},Dt.prototype.handle_dot=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!0),Tt(this._flags.last_token,Mt)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(t,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(t)},Dt.prototype.handle_unknown=function(t,e){this.print_token(t),"\n"===t.text[t.text.length-1]&&this.print_newline(!1,e)},Dt.prototype.handle_eof=function(t){for(;this._flags.mode===Bt.Statement;)this.restore_mode();this.handle_whitespace_and_comments(t)},a.Beautifier=Dt;var Pt=a.Beautifier,Ht=w.Options;l.exports=function(t,e){return new Pt(t,e).beautify()},l.exports.defaultOptions=function(){return new Ht};var Ft={exports:{}},Ut={},jt={},Wt=S.Options;function Gt(t){Wt.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var n=0;n<i.length;n++)"expand"!==i[n]?this.brace_style="collapse":this.brace_style=i[n]}Gt.prototype=new Wt,jt.Options=Gt;var Vt=jt.Options,Yt=d.Output,Xt=T.InputScanner,Zt=new(0,V.Directives)(/\/\*/,/\*\//),Kt=/\r\n|[\r\n]/,Qt=/\r\n|[\r\n]/g,Jt=/\s/,te=/(?:\s|\n)+/g,ee=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,ie=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function ne(t,e){this._source_text=t||"",this._options=new Vt(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}ne.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},ne.prototype.eatWhitespace=function(t){for(var e=Jt.test(this._input.peek()),i=0;Jt.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===i||i<this._options.max_preserve_newlines)&&(i++,this._output.add_new_line(!0));return e},ne.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,i=this._input.peek(e);i;){if("{"===i)return!0;if("("===i)t+=1;else if(")"===i){if(0===t)return!1;t-=1}else if(";"===i||"}"===i)return!1;e++,i=this._input.peek(e)}return!1},ne.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},ne.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},ne.prototype.indent=function(){this._indentLevel++},ne.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},ne.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&Kt.test(t||"")&&(e=t.match(Kt)[0]));var i=(t=t.replace(Qt,"\n")).match(/^[\t ]*/)[0];this._output=new Yt(this._options,i),this._input=new Xt(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var n,o,s=0,r=!1,l=!1,a=!1,d=!1,c=!1,u=this._ch;n=""!==this._input.read(te),o=u,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),u=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var h=this._input.read(ee),p=Zt.get_directives(h);p&&"start"===p.ignore&&(h+=Zt.readIgnored(this._input)),this.print_string(h),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(ie)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(n),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var g=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);g.match(/[ :]$/)&&(g=this.eatString(": ").replace(/\s$/,""),this.print_string(g),this._output.space_before_token=!0),"extend"===(g=g.replace(/\s$/,""))?d=!0:"import"===g&&(c=!0),g in this.NESTED_AT_RULE?(this._nestedLevel+=1,g in this.CONDITIONAL_GROUP_RULE&&(a=!0)):r||0!==s||-1===g.indexOf(":")||(l=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(n),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(l&&(l=!1,this.outdent()),a?(a=!1,r=this._indentLevel>=this._nestedLevel):r=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&r&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===o&&this._output.trim(!0),c=!1,d=!1,l&&(this.outdent(),l=!1),this.print_string(this._ch),r=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!r&&!a||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||d||0!==s?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),l||(l=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(n),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===s?(l&&(this.outdent(),l=!1),d=!1,c=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),s++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),s&&(s--,this.outdent()))):(this.preserveSingleSpace(n),this.print_string(this._ch),this.eatWhitespace(),s++,this.indent()):")"===this._ch?(s&&(s--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||l||0!==s||c||d?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||l||0!==s?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(n),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),Jt.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(n),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&Jt.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},Ut.Beautifier=ne;var oe=Ut.Beautifier,se=jt.Options;Ft.exports=function(t,e){return new oe(t,e).beautify()},Ft.exports.defaultOptions=function(){return new se};var re={exports:{}},le={},ae={},de=S.Options;function ce(t){de.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}ce.prototype=new de,ae.Options=ce;var ue={},he=O.Tokenizer,pe=O.TOKEN,ge=V.Directives,me=X.TemplatablePattern,fe=$.Pattern,be={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:pe.START,RAW:pe.RAW,EOF:pe.EOF},ve=new ge(/<\!--/,/-->/),ye=function(t,e){he.call(this,t,e),this._current_tag_name="";var i=new me(this._input).read_options(this._options),n=new fe(this._input);if(this.__patterns={word:i.until(/[\n\r\t <]/),single_quote:i.until_after(/'/),double_quote:i.until_after(/"/),attribute:i.until(/[\n\r\t =>]|\/>/),element_name:i.until(/[\n\r\t >\/]/),handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),handlebars_open:n.until(/[\n\r\t }]/),handlebars_raw_close:n.until(/}}/),comment:n.starting_with(/<!--/).until_after(/-->/),cdata:n.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:n.starting_with(/<!\[/).until_after(/]>/),processing:n.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=n.matching(o).until_after(o)}};(ye.prototype=new he)._is_comment=function(t){return!1},ye.prototype._is_opening=function(t){return t.type===be.TAG_OPEN},ye.prototype._is_closing=function(t,e){return t.type===be.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},ye.prototype._reset=function(){this._current_tag_name=""},ye.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(be.EOF,""):i=(i=(i=(i=(i=(i=(i=(i=(i=i||this._read_open_handlebars(n,e))||this._read_attribute(n,t,e))||this._read_close(n,e))||this._read_raw_content(n,t,e))||this._read_content_word(n))||this._read_comment_or_cdata(n))||this._read_processing(n))||this._read_open(n,e))||this._create_token(be.UNKNOWN,this._input.next())},ye.prototype._read_comment_or_cdata=function(t){var e=null,i=null,n=null;"<"===t&&("!"===this._input.peek(1)&&((i=this.__patterns.comment.read())?(n=ve.get_directives(i))&&"start"===n.ignore&&(i+=ve.readIgnored(this._input)):i=this.__patterns.cdata.read()),i&&((e=this._create_token(be.COMMENT,i)).directives=n));return e},ye.prototype._read_processing=function(t){var e=null,i=null;if("<"===t){var n=this._input.peek(1);"!"!==n&&"?"!==n||(i=(i=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),i&&((e=this._create_token(be.COMMENT,i)).directives=null)}return e},ye.prototype._read_open=function(t,e){var i=null,n=null;return e||"<"===t&&(i=this._input.next(),"/"===this._input.peek()&&(i+=this._input.next()),i+=this.__patterns.element_name.read(),n=this._create_token(be.TAG_OPEN,i)),n},ye.prototype._read_open_handlebars=function(t,e){var i=null,n=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(i=(i=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),n=this._create_token(be.COMMENT,i)):(i=this.__patterns.handlebars_open.read(),n=this._create_token(be.TAG_OPEN,i))),n},ye.prototype._read_close=function(t,e){var i=null,n=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(i=this._input.next(),"/"===t&&(i+=this._input.next()),n=this._create_token(be.TAG_CLOSE,i)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),n=this._create_token(be.TAG_CLOSE,"}}"))),n},ye.prototype._read_attribute=function(t,e,i){var n=null,o="";if(i&&"<"===i.text[0])if("="===t)n=this._create_token(be.EQUALS,this._input.next());else if('"'===t||"'"===t){var s=this._input.next();s+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),n=this._create_token(be.VALUE,s)}else(o=this.__patterns.attribute.read())&&(n=e.type===be.EQUALS?this._create_token(be.VALUE,o):this._create_token(be.ATTRIBUTE,o));return n},ye.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},ye.prototype._read_raw_content=function(t,e,i){var n="";if(i&&"{"===i.text[0])n=this.__patterns.handlebars_raw_close.read();else if(e.type===be.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var o=e.opened.text.substr(1).toLowerCase();if("script"===o||"style"===o){var s=this._read_comment_or_cdata(t);if(s)return s.type=be.TEXT,s;n=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(o)&&(n=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig")))}return n?this._create_token(be.TEXT,n):null},ye.prototype._read_content_word=function(t){var e="";if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(e=this.__patterns.unformatted_content_delimiter.read()),e||(e=this.__patterns.word.read()),e)return this._create_token(be.TEXT,e)},ue.Tokenizer=ye,ue.TOKEN=be;var xe=ae.Options,we=d.Output,Se=ue.Tokenizer,_e=ue.TOKEN,Ce=/\r\n|[\r\n]/,ke=/\r\n|[\r\n]/g,Ee=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new we(t,e)};Ee.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},Ee.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},Ee.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},Ee.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},Ee.prototype.print_preserved_newlines=function(t){var e=0;t.type!==_e.TEXT&&t.previous.type!==_e.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines<this.max_preserve_newlines+1?t.newlines:this.max_preserve_newlines+1);for(var i=0;i<e;i++)this.print_newline(i>0);return 0!==e},Ee.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},Ee.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},Ee.prototype.print_newline=function(t){this._output.add_new_line(t)},Ee.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},Ee.prototype.indent=function(){this.indent_level++},Ee.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?"":this._output.get_indent_string(t)};var Ae=function(t,e){var i=null,n=null;return e.closed?("script"===t?i="text/javascript":"style"===t&&(i="text/css"),i=function(t){for(var e=null,i=t.next;i.type!==_e.EOF&&t.closed!==i;){if(i.type===_e.ATTRIBUTE&&"type"===i.text){i.next&&i.next.type===_e.EQUALS&&i.next.next&&i.next.next.type===_e.VALUE&&(e=i.next.next.text);break}i=i.next}return e}(e)||i,i.search("text/css")>-1?n="css":i.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?n="javascript":i.search(/(text|application|dojo)\/(x-)?(html)/)>-1?n="html":i.search(/test\/null/)>-1&&(n="null"),n):null};function Le(t,e){return-1!==e.indexOf(t)}function qe(t,e,i){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=i||0,this.parser_token=e||null}function Te(t){this._printer=t,this._current_frame=null}function Me(t,e,i,n){this._source_text=t||"",e=e||{},this._js_beautify=i,this._css_beautify=n,this._tag_stack=null;var o=new xe(e,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}Te.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},Te.prototype.record_tag=function(t){var e=new qe(this._current_frame,t,this._printer.indent_level);this._current_frame=e},Te.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},Te.prototype._get_frame=function(t,e){for(var i=this._current_frame;i&&-1===t.indexOf(i.tag);){if(e&&-1!==e.indexOf(i.tag)){i=null;break}i=i.parent}return i},Te.prototype.try_pop=function(t,e){var i=this._get_frame([t],e);return this._try_pop_frame(i)},Te.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},Me.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&Ce.test(t)&&(e=t.match(Ce)[0]));var i=(t=t.replace(ke,"\n")).match(/^[\t ]*/)[0],n={text:"",type:""},o=new Re,s=new Ee(this._options,i),r=new Se(t,this._options).tokenize();this._tag_stack=new Te(s);for(var l=null,a=r.next();a.type!==_e.EOF;)a.type===_e.TAG_OPEN||a.type===_e.COMMENT?o=l=this._handle_tag_open(s,a,o,n):a.type===_e.ATTRIBUTE||a.type===_e.EQUALS||a.type===_e.VALUE||a.type===_e.TEXT&&!o.tag_complete?l=this._handle_inside_tag(s,a,o,r):a.type===_e.TAG_CLOSE?l=this._handle_tag_close(s,a,o):a.type===_e.TEXT?l=this._handle_text(s,a,o):s.add_raw_token(a),n=l,a=r.next();return s._output.get_code(e)},Me.prototype._handle_tag_close=function(t,e,i){var n={text:e.text,type:e.type};return t.alignment_size=0,i.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted?t.add_raw_token(e):("<"===i.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&i.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!i.indent_content||i.is_unformatted||i.is_content_unformatted||(t.indent(),i.indent_content=!1),i.is_inline_element||i.is_unformatted||i.is_content_unformatted||t.set_wrap_point(),n},Me.prototype._handle_inside_tag=function(t,e,i,n){var o=i.has_wrapped_attrs,s={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted)t.add_raw_token(e);else if("{"===i.tag_start_char&&e.type===_e.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===_e.ATTRIBUTE?(t.set_space_before_token(!0),i.attr_count+=1):(e.type===_e.EQUALS||e.type===_e.VALUE&&e.previous.type===_e.EQUALS)&&t.set_space_before_token(!1),e.type===_e.ATTRIBUTE&&"<"===i.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),o=o||0!==e.newlines),this._is_wrap_attributes_force)){var r=i.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===i.attr_count){var l,a=!0,d=0;do{if((l=n.peek(d)).type===_e.ATTRIBUTE){a=!1;break}d+=1}while(d<4&&l.type!==_e.EOF&&l.type!==_e.TAG_CLOSE);r=!a}r&&(t.print_newline(!1),o=!0)}t.print_token(e),o=o||t.previous_token_wrapped(),i.has_wrapped_attrs=o}return s},Me.prototype._handle_text=function(t,e,i){var n={text:e.text,type:"TK_CONTENT"};return i.custom_beautifier_name?this._print_custom_beatifier_text(t,e,i):i.is_unformatted||i.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),n},Me.prototype._print_custom_beatifier_text=function(t,e,i){var n=this;if(""!==e.text){var o,s=e.text,r=1,l="",a="";"javascript"===i.custom_beautifier_name&&"function"==typeof this._js_beautify?o=this._js_beautify:"css"===i.custom_beautifier_name&&"function"==typeof this._css_beautify?o=this._css_beautify:"html"===i.custom_beautifier_name&&(o=function(t,e){return new Me(t,e,n._js_beautify,n._css_beautify).beautify()}),"keep"===this._options.indent_scripts?r=0:"separate"===this._options.indent_scripts&&(r=-t.indent_level);var d=t.get_full_indent(r);if(s=s.replace(/\n[ \t]*$/,""),"html"!==i.custom_beautifier_name&&"<"===s[0]&&s.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(s);if(!c)return void t.add_raw_token(e);l=d+c[1]+"\n",s=c[4],c[5]&&(a=d+c[5]),s=s.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/))&&(e.whitespace_before=c[0])}if(s)if(o){var u=function(){this.eol="\n"};u.prototype=this._options.raw_options,s=o(d+s,new u)}else{var h=e.whitespace_before;h&&(s=s.replace(new RegExp("\n("+h+")?","g"),"\n")),s=d+s.replace(/\n/g,"\n"+d)}l&&(s=s?l+s+"\n"+a:l+a),t.print_newline(!1),s&&(e.text=s,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},Me.prototype._handle_tag_open=function(t,e,i,n){var o=this._get_tag_open_token(e);return!i.is_unformatted&&!i.is_content_unformatted||i.is_empty_element||e.type!==_e.TAG_OPEN||0!==e.text.indexOf("</")?(t.traverse_whitespace(e),this._set_tag_position(t,e,o,i,n),o.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=e.text.length+1),o.tag_complete||o.is_unformatted||(t.alignment_size=o.alignment_size),o};var Re=function(t,e){var i;(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",e)?(this.tag_start_char=e.text[0],this.text=e.text,"<"===this.tag_start_char?(i=e.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===_e.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&"/>"===e.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};Me.prototype._get_tag_open_token=function(t){var e=new Re(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||Le(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&Le(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&Le(e.tag_check,this._options.content_unformatted),e.is_inline_element=Le(e.tag_name,this._options.inline)||"{"===e.tag_start_char,e},Me.prototype._set_tag_position=function(t,e,i,n,o){if(i.is_empty_element||(i.is_end_tag?i.start_tag_token=this._tag_stack.try_pop(i.tag_name):(this._do_optional_end_element(i)&&(i.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(i),"script"!==i.tag_name&&"style"!==i.tag_name||i.is_unformatted||i.is_content_unformatted||(i.custom_beautifier_name=Ae(i.tag_check,e)))),Le(i.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),i.is_empty_element){if("{"===i.tag_start_char&&"else"===i.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),i.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1);"!--"===i.tag_name&&o.type===_e.TAG_CLOSE&&n.is_end_tag&&-1===i.text.indexOf("\n")||(i.is_inline_element||i.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i))}else if(i.is_end_tag){var s=!1;s=(s=i.start_tag_token&&i.start_tag_token.multiline_content)||!i.is_inline_element&&!(n.is_inline_element||n.is_unformatted)&&!(o.type===_e.TAG_CLOSE&&i.start_tag_token===n)&&"TK_CONTENT"!==o.type,(i.is_content_unformatted||i.is_unformatted)&&(s=!1),s&&t.print_newline(!1)}else i.indent_content=!i.custom_beautifier_name,"<"===i.tag_start_char&&("html"===i.tag_name?i.indent_content=this._options.indent_inner_html:"head"===i.tag_name?i.indent_content=this._options.indent_head_inner_html:"body"===i.tag_name&&(i.indent_content=this._options.indent_body_inner_html)),i.is_inline_element||i.is_unformatted||"TK_CONTENT"===o.type&&!i.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i)},Me.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var Oe=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],Be=["a","audio","del","ins","map","noscript","video"];Me.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent){if("body"===t.tag_name)e=e||this._tag_stack.try_pop("head");else if("li"===t.tag_name)e=e||this._tag_stack.try_pop("li",["ol","ul"]);else if("dd"===t.tag_name||"dt"===t.tag_name)e=(e=e||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===t.parent.tag_name&&-1!==Oe.indexOf(t.tag_name)){var i=t.parent.parent;i&&-1!==Be.indexOf(i.tag_name)||(e=e||this._tag_stack.try_pop("p"))}else"rp"===t.tag_name||"rt"===t.tag_name?e=(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===t.tag_name||"tfoot"===t.tag_name?e=(e=(e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===t.tag_name?e=(e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==t.tag_name&&"td"!==t.tag_name||(e=(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}},le.Beautifier=Me;var Ne=le.Beautifier,Ie=ae.Options;re.exports=function(t,e,i,n){return new Ne(t,e,i,n).beautify()},re.exports.defaultOptions=function(){return new Ie};var $e=l.exports,De=Ft.exports,ze=re.exports;function Pe(t,e,i,n){return ze(t,e,i=i||$e,n=n||De)}Pe.defaultOptions=ze.defaultOptions,r.js=$e,r.css=De,r.html=Pe,function(t){!function(t){var e=r;e.js_beautify=e.js,e.css_beautify=e.css,e.html_beautify=e.html,t.exports=function(t,e,i){var n=function(e,i){return t.js_beautify(e,i)};return n.js=t.js_beautify,n.css=e.css_beautify,n.html=i.html_beautify,n.js_beautify=t.js_beautify,n.css_beautify=e.css_beautify,n.html_beautify=i.html_beautify,n}(e,e,e)}(t)}(s);var He=s.exports;function Fe(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ue(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function je(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(i),!0).forEach((function(e){Fe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ue(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function We(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i,n,o={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function Ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Ve(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ye(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Xe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ye(Object(i),!0).forEach((function(e){Ve(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ye(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ze(t){return function e(){for(var i=this,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return o.length>=t.length?t.apply(this,o):function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return e.apply(i,[].concat(o,n))}}}function Ke(t){return{}.toString.call(t).includes("Object")}function Qe(t){return"function"==typeof t}var Je=Ze((function(t,e){throw new Error(t[e]||t.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),ti={changes:function(t,e){return Ke(e)||Je("changeType"),Object.keys(e).some((function(e){return i=t,n=e,!Object.prototype.hasOwnProperty.call(i,n);var i,n}))&&Je("changeField"),e},selector:function(t){Qe(t)||Je("selectorType")},handler:function(t){Qe(t)||Ke(t)||Je("handlerType"),Ke(t)&&Object.values(t).some((function(t){return!Qe(t)}))&&Je("handlersType")},initial:function(t){var e;t||Je("initialIsRequired"),Ke(t)||Je("initialType"),e=t,Object.keys(e).length||Je("initialContent")}};function ei(t,e){return Qe(e)?e(t.current):e}function ii(t,e){return t.current=Xe(Xe({},t.current),e),e}function ni(t,e,i){return Qe(e)?e(t.current):Object.keys(i).forEach((function(i){var n;return null===(n=e[i])||void 0===n?void 0:n.call(e,t.current[i])})),i}var oi={create:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ti.initial(t),ti.handler(e);var i={current:t},n=Ze(ni)(i,e),o=Ze(ii)(i),s=Ze(ti.changes)(t),r=Ze(ei)(i);return[function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return ti.selector(t),t(i.current)},function(t){!function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduceRight((function(t,e){return e(t)}),t)}}(n,o,s,r)(t)}]}};var si,ri={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},li=(si=function(t,e){throw new Error(t[e]||t.default)},function t(){for(var e=this,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return n.length>=si.length?si.apply(this,n):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(e,[].concat(n,o))}})(ri),ai={config:function(t){var e;return t||li("configIsRequired"),e=t,{}.toString.call(e).includes("Object")||li("configType"),t.urls?(console.warn(ri.deprecation),{paths:{vs:t.urls.monacoBase}}):t}};function di(t,e){return Object.keys(e).forEach((function(i){e[i]instanceof Object&&t[i]&&Object.assign(e[i],di(t[i],e[i]))})),je(je({},t),e)}var ci={type:"cancelation",msg:"operation is manually canceled"};function ui(t){var e=!1,i=new Promise((function(i,n){t.then((function(t){return e?n(ci):i(t)})),t.catch(n)}));return i.cancel=function(){return e=!0},i}var hi,pi,gi=oi.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),mi=(pi=2,function(t){if(Array.isArray(t))return t}(hi=gi)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,o=!1,s=void 0;try{for(var r,l=t[Symbol.iterator]();!(n=(r=l.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,s=t}finally{try{n||null==l.return||l.return()}finally{if(o)throw s}}return i}}(hi,pi)||function(t,e){if(t){if("string"==typeof t)return Ge(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ge(t,e):void 0}}(hi,pi)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),fi=mi[0],bi=mi[1];function vi(t){return document.body.appendChild(t)}function yi(t){var e=fi((function(t){return{config:t.config,reject:t.reject}})),i=function(t){var e=document.createElement("script");return t&&(e.src=t),e}("".concat(e.config.paths.vs,"/loader.js"));return i.onload=function(){return t()},i.onerror=e.reject,i}function xi(){var t=fi((function(t){return{config:t.config,resolve:t.resolve,reject:t.reject}})),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],(function(e){wi(e),t.resolve(e)}),(function(e){t.reject(e)}))}function wi(t){fi().monaco||bi({monaco:t})}var Si=new Promise((function(t,e){return bi({resolve:t,reject:e})})),_i={config:function(t){var e=ai.config(t),i=e.monaco,n=We(e,["monaco"]);bi((function(t){return{config:di(t.config,n),monaco:i}}))},init:function(){var t=fi((function(t){return{monaco:t.monaco,isInitialized:t.isInitialized,resolve:t.resolve}}));if(!t.isInitialized){if(bi({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),ui(Si);if(window.monaco&&window.monaco.editor)return wi(window.monaco),t.resolve(window.monaco),ui(Si);!function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduceRight((function(t,e){return e(t)}),t)}}(vi,yi)(xi)}return ui(Si)},__getMonacoInstance:function(){return fi((function(t){return t.monaco}))}};const Ci=new o;let ki={};class Ei{constructor(t){this.builder=t;const e=this.builder.util,i=this.builder.builderStuff;let n=i.querySelector(".viewhtml");if(!n){const t=`<div class="is-modal viewhtml" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content">\n <textarea class="tabSupport" style="width:100%;height:calc(100% - 50px);border:none;margin:0;box-sizing:border-box;"></textarea>\n <div class="is-modal-footer" style="border-top:1px solid ${this.builder.styleSeparatorColor};width:100%;height:50px;position:absolute;left:0;bottom:0;overflow:hidden;text-align:right">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal viewhtmlmonaco" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="max-width: 55vw;padding:0">\n <textarea style="position:absolute;display:none;"></textarea>\n <div class="input-code-editor" style="width:100%;height:65vh;"></div>\n <div class="is-modal-footer" style="display:flex;justify-content:flex-end;border-top:1px solid ${this.builder.styleSeparatorColor};">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal viewhtmlexternal" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="max-width: 55vw;padding:0">\n <div class="input-code-editor" style="width:100%;height:65vh;"></div>\n <div class="is-modal-footer" style="display:flex;justify-content:flex-end;border-top:1px solid ${this.builder.styleSeparatorColor};">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n \n `;Ci.appendHtml(i,t),n=i.querySelector(".viewhtml");let o=i.querySelector(".viewhtmlmonaco"),s=i.querySelector(".viewhtmlexternal"),r=n.querySelector(".input-ok");Ci.addEventListener(r,"click",(()=>{this.applyHtml(n)})),r=n.querySelector(".input-cancel"),Ci.addEventListener(r,"click",(()=>{this.builder.hideModal(n)})),r=o.querySelector(".input-ok"),Ci.addEventListener(r,"click",(()=>{this.applyHtml(o)})),r=o.querySelector(".input-cancel"),Ci.addEventListener(r,"click",(()=>{this.builder.hideModal(o)})),r=s.querySelector(".input-ok"),Ci.addEventListener(r,"click",(()=>{const t=document.querySelector("textarea[data-source-active]"),e=t.getAttribute("data-source-ok");t.removeAttribute("data-source-active"),t.removeAttribute("data-source-ok"),t.removeAttribute("data-source-cancel"),document.querySelector(e).click(),this.builder.hideModal(s)})),r=s.querySelector(".input-cancel"),Ci.addEventListener(r,"click",(()=>{const t=document.querySelector("textarea[data-source-active]"),e=t.getAttribute("data-source-cancel");t.removeAttribute("data-source-active"),t.removeAttribute("data-source-ok"),t.removeAttribute("data-source-cancel"),document.querySelector(e).click(),this.builder.hideModal(s)}))}}applyHtml(t){const e=this.builder.util;let i=this.builder.codeEditorMode,n=this.builder.codeEditorArea;this.builder.uo.saveForUndo();let o=t.querySelector("textarea").value;if("code"===i){let i=this.builder.activeCodeBlock;i.setAttribute("data-html",encodeURIComponent(o)),o=o.replace(/{id}/g,e.makeId());for(let t=1;t<=20;t++)o=o.replace("[%HTML"+t+"%]",void 0===i.getAttribute("data-html-"+t)?"":decodeURIComponent(i.getAttribute("data-html-"+t)));i.innerHTML="";let n=document.createRange();n.setStart(i,0),i.appendChild(n.createContextualFragment(o));let s=this.builder.doc.querySelector(".builder-active");return s&&this.builder.applyBehaviorOn(s),this.builder.opts.onChange(),this.builder.opts.onRender(),this.builder.hideModal(t),void e.hideControls()}if(o=this.fromViewToActual(o),"cell"===i){e.cellSelected().innerHTML=o;let t=this.builder.doc.querySelector(".builder-active");t&&this.builder.applyBehaviorOn(t),this.builder.opts.onChange(),this.builder.opts.onRender()}if("row"===i){let t,i=e.cellSelected();if(t=i?i.parentNode:e.rowSelected(),!t)return;t.innerHTML=o;let n=this.builder.doc.querySelector(".builder-active");n&&this.builder.applyBehaviorOn(n),this.builder.opts.onChange(),this.builder.opts.onRender()}if("full"===i){n.innerHTML="";let t=document.createRange();t.setStart(n,0),n.appendChild(t.createContextualFragment(o)),this.builder.applyBehaviorOn(n),this.builder.opts.onChange(),this.builder.opts.onRender(),e.clearActiveCell()}e.clearControls(),this.builder.hideModal(t)}viewHtmlExternal(){const t=this.builder.util,e=this.builder.builderStuff.querySelector(".viewhtmlexternal");document.activeElement&&(this.elmFocus=document.activeElement),t.showModal(e,!0,(()=>{this.elmFocus&&this.elmFocus.focus()}),!1),e.querySelector(".input-code-editor").style.opacity=.01,this._viewHtmlExternal()}_viewHtmlExternal(){const t=document.querySelector("textarea[data-source-active]");let e=this.builder.builderStuff.querySelector(".viewhtmlexternal").querySelector(".input-code-editor");if(!e.querySelector(".monaco-editor"))return _i.init().then((t=>{this.builder.monaco=t,e.getAttribute("data-mode-id")||(this.builder.codeEditorExternal=t.editor.create(e,{value:"",minimap:{enabled:!1},automaticLayout:!0,contextmenu:!1,fontSize:13,wordWrap:!0,scrollbar:{useShadows:!1,vertical:"visible",horizontal:"visible",horizontalScrollbarSize:12,verticalScrollbarSize:12},language:"html",theme:this.builder.styleDark||this.builder.styleColoredDark?"vs-dark":""})),this.builder.codeEditorExternal.onKeyUp((()=>{document.querySelector("textarea[data-source-active]").value=this.builder.codeEditorExternal.getModel().getValue()}))})),void setTimeout((()=>{this._viewHtmlExternal()}),100);const i=this.builder.monaco.editor.createModel(t.value,"html");this.builder.codeEditorExternal.setModel(i),e.style.opacity=""}view(t,e,i){const n=this.builder.util,o=this.builder.builderStuff;let s;s=this.builder.opts.htmlSyntaxHighlighting?o.querySelector(".viewhtmlmonaco"):o.querySelector(".viewhtml"),n.showModal(s,!0,(()=>{i&&(i.removeAttribute("data-focus"),i.focus())})),i&&i.setAttribute("data-focus",!0),s.querySelector(".input-code-editor").style.opacity=.01,this._view(t,e)}_view(t,e){const i=this.builder.util,n=this.builder.builderStuff;let o;if(this.builder.opts.htmlSyntaxHighlighting){o=n.querySelector(".viewhtmlmonaco");let i=o.querySelector(".input-code-editor");if(!i.querySelector(".monaco-editor"))return _i.init().then((t=>{this.builder.monaco=t,i.getAttribute("data-mode-id")||(this.builder.codeEditor=t.editor.create(i,{value:"",minimap:{enabled:!1},automaticLayout:!0,contextmenu:!1,fontSize:13,wordWrap:!0,scrollbar:{useShadows:!1,vertical:"visible",horizontal:"visible",horizontalScrollbarSize:12,verticalScrollbarSize:12},language:"html",theme:this.builder.styleDark||this.builder.styleColoredDark?"vs-dark":""}));let e=o.querySelector("textarea");this.builder.codeEditor.onKeyUp((()=>{e.value=this.builder.codeEditor.getModel().getValue()}))})),void setTimeout((()=>{this._view(t,e)}),100)}else o=n.querySelector(".viewhtml");let s=o.querySelector("textarea");if("cell"===t){const t=i.cellSelected();if(!t)return;let e=o.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,e.value=this.readHtml(t,!0),this.builder.cleanHtmlFormatting=!1}if("row"===t){let t,e=i.cellSelected();if(t=e?e.parentNode:i.rowSelected(),!t)return;let n=o.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,n.value=this.readHtml(t,!0),this.builder.cleanHtmlFormatting=!1,Ci.removeClass(t,"row-outline")}if("full"===t){if(e);else{const t=this.builder.doc.querySelectorAll(this.builder.opts.container);if(t.length>1){const n=i.cellSelected();e=n?n.parentNode.parentNode:t[0]}else e=t[0];if(""!==this.builder.opts.page){const t=this.builder.doc.querySelector(this.builder.opts.page);t&&(e=t)}}let t=o.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,this.builder.shortenHTML?t.value=this.readHtml(e,!0):t.value=this.readHtml(e,!1),this.builder.cleanHtmlFormatting=!1}if(this.builder.opts.htmlSyntaxHighlighting){const t=this.builder.monaco.editor.createModel(s.value,"html");this.builder.codeEditor.setModel(t)}let r=n.querySelector(".is-pop.columnmore");r&&(r.style.display="");let l=n.querySelector(".is-pop.rowmore");l&&(l.style.display=""),this.builder.codeEditorMode=t,this.builder.codeEditorArea=e,o.querySelector(".input-code-editor").style.opacity=""}fromViewToActual(t){for(var e in ki)t=t.replace(e,ki[e]);return t}readHtml(t,e,i,n){if(this.builder.opts.absolutePath){let e=t.querySelectorAll("a");Array.prototype.forEach.call(e,(t=>{let e=t.href;t.setAttribute("href",e)}));let i=t.querySelectorAll("img");Array.prototype.forEach.call(i,(t=>{let e=t.src;t.setAttribute("src",e)}))}this.builder.cleanHtmlFormatting;const o=this.builder.util;let s,r=document.createElement("div");r.innerHTML=t.innerHTML;let l=r.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(l,(t=>{let e=1,i=t.querySelectorAll("[data-subblock]");Array.prototype.forEach.call(i,(i=>{if(i.closest(".glide__slide--clone"))return;let n=i.innerHTML;t.setAttribute("data-html-"+e,encodeURIComponent(n)),e++}))})),l=r.querySelectorAll("[data-html]"),Array.prototype.forEach.call(l,(t=>{let e=decodeURIComponent(t.getAttribute("data-html"));e=e.replace(/{id}/g,o.makeId()),t.innerHTML=e;let i=t.querySelectorAll("[data-subblock]");var n=1;Array.prototype.forEach.call(i,(e=>{e.innerHTML=void 0===t.getAttribute("data-html-"+n)?"":decodeURIComponent(t.getAttribute("data-html-"+n)),n++}))})),e&&(ki={},l=r.querySelectorAll("[data-html]"),Array.prototype.forEach.call(l,(t=>{let e=o.makeId();ki[e]=t.getAttribute("data-html"),t.setAttribute("data-html",e);for(let i=1;i<=20;i++)void 0!==t.getAttribute("data-html-"+i)&&(e=o.makeId(),ki[e]=t.getAttribute("data-html-"+i),t.getAttribute("data-html-"+i,e));void 0!==t.getAttribute("data-settings")&&(e=o.makeId(),ki[e]=t.getAttribute("data-settings"),t.getAttribute("data-settings",e))}))),this.builder.makeAbsolute){const t=t=>{let e=document.createElement("img");return e.src=t,e.setAttribute("data-absoluteurl",e.src),t=e.getAttribute("data-absoluteurl")},e=t=>{let e=document.createElement("img");e.src=t,e.setAttribute("data-absoluteurl",e.src),t=e.getAttribute("data-absoluteurl");let i=location.href.substring(0,location.href.lastIndexOf("/"));return t.replace(i,"[%PATH%]")},i=(e,i)=>{if(e.hasAttribute(i)){if("video"!==e.parentNode.tagName.toLowerCase()&&"audio"!==e.parentNode.tagName.toLowerCase())return;let n=e.getAttribute(i);n=t(n),e.setAttribute(i,`${n}`)}};let n=r.querySelectorAll("img");Array.prototype.forEach.call(n,(t=>{let e=t.src;t.setAttribute("src",e)})),r.querySelectorAll("*").forEach((n=>{if(n.style.backgroundImage){let t=n.style.backgroundImage;if(-1!==t.indexOf("url(")){let i=t.slice(4,-1).replace(/["']/g,"");i=e(i),n.style.backgroundImage=`url(${i})`}}if(i(n,"src"),i(n,"data-default"),i(n,"data-240"),i(n,"data-360"),i(n,"data-480"),i(n,"data-540"),i(n,"data-720"),i(n,"data-1080"),i(n,"data-1440"),i(n,"data-2160"),n.hasAttribute("href")&&"link"===n.tagName.toLowerCase()){let e=n.getAttribute("href");e=t(e),n.setAttribute("href",`${e}`)}}))}let a=r.querySelectorAll(".is-builder");Array.prototype.forEach.call(a,(t=>{t.style.transform="",t.style.WebkitTransform="",t.style.MozTransform="",t.removeAttribute("data-sort"),Ci.removeClass(t,"builder-active");Ci.elementChildren(t).forEach((t=>{Ci.elementChildren(t).forEach((t=>{t.style.cursor=""}))}))}));Ci.elementChildren(r).forEach((t=>{t.style.cursor="";Ci.elementChildren(t).forEach((t=>{t.style.cursor=""}))}));let d=r.querySelectorAll(".sortable-chosen");Ci.removeClasses(d,"sortable-chosen"),d=r.querySelectorAll(".sortable-ghost"),Ci.removeClasses(d,"sortable-ghost"),d=r.querySelectorAll(".elm-active"),Ci.removeClasses(d,"elm-active"),d=r.querySelectorAll(".elm-inspected"),Ci.removeClasses(d,"elm-inspected"),d=r.querySelectorAll(".cell-active"),Ci.removeClasses(d,"cell-active"),d=r.querySelectorAll(".row-active"),Ci.removeClasses(d,"row-active"),d=r.querySelectorAll(".row-outline"),Ci.removeClasses(d,"row-outline"),d=r.querySelectorAll(".is-builder"),Ci.removeClasses(d,"is-builder"),d=r.querySelectorAll(".row-outline"),Ci.removeClasses(d,"row-outline"),d=r.querySelectorAll("[data-click]"),Ci.removeAttributes(d,"data-click"),d=r.querySelectorAll("[contenteditable]"),Ci.removeAttributes(d,"contenteditable"),d=r.querySelectorAll("[draggridoutline]"),Ci.removeAttributes(d,"draggridoutline"),d=r.querySelectorAll("[between-blocks-left]"),Ci.removeAttributes(d,"between-blocks-left"),d=r.querySelectorAll("[between-blocks-center]"),Ci.removeAttributes(d,"between-blocks-center"),d=r.querySelectorAll("[hideelementhighlight]"),Ci.removeAttributes(d,"hideelementhighlight"),d=r.querySelectorAll("[data-module-active]"),Ci.removeAttributes(d,"data-module-active"),d=r.querySelectorAll("[draggable]"),Ci.removeAttributes(d,"draggable"),d=r.querySelectorAll("[data-animated]"),Ci.removeAttributes(d,"data-animated"),d=r.querySelectorAll("[data-saveforundo]"),Ci.removeAttributes(d,"data-saveforundo"),d=r.querySelectorAll("[hidesnippetaddtool]"),Ci.removeAttributes(d,"hidesnippetaddtool"),d=r.querySelectorAll("[gray]"),Ci.removeAttributes(d,"gray"),d=r.querySelectorAll("[rowoutline]"),Ci.removeAttributes(d,"rowoutline"),d=r.querySelectorAll("[hidecolumntool]"),Ci.removeAttributes(d,"hidecolumntool"),d=r.querySelectorAll("[grayoutline]"),Ci.removeAttributes(d,"grayoutline"),d=r.querySelectorAll("[hideoutline]"),Ci.removeAttributes(d,"hideoutline"),d=r.querySelectorAll("[leftrowtool]"),Ci.removeAttributes(d,"leftrowtool"),d=r.querySelectorAll("[minimal]"),Ci.removeAttributes(d,"minimal"),d=r.querySelectorAll("[clean]"),Ci.removeAttributes(d,"clean"),d=r.querySelectorAll("[grideditor]"),Ci.removeAttributes(d,"grideditor"),d=r.querySelectorAll("[gridoutline]"),Ci.removeAttributes(d,"gridoutline"),Ci.removeElements(r.querySelectorAll(".is-row-tool")),Ci.removeElements(r.querySelectorAll(".is-col-tool")),Ci.removeElements(r.querySelectorAll(".is-rowadd-tool")),Ci.removeElements(r.querySelectorAll(".ovl")),Ci.removeElements(r.querySelectorAll(".row-add-initial")),d=r.querySelectorAll(".aos-init"),Ci.removeClasses(d,"aos-init"),d=r.querySelectorAll(".aos-animate"),Ci.removeClasses(d,"aos-animate"),d=r.querySelectorAll(".skrollable"),Ci.removeClasses(d,"skrollable"),d=r.querySelectorAll(".skrollable-after"),Ci.removeClasses(d,"skrollable-after"),d=r.querySelectorAll(".skrollable-before"),Ci.removeClasses(d,"skrollable-before"),d=r.querySelectorAll(".skrollable-between"),Ci.removeClasses(d,"skrollable-between"),d=r.querySelectorAll(".is-inview"),Ci.removeClasses(d,"is-inview");let c=r.querySelectorAll('[class=""]');Array.prototype.forEach.call(c,(t=>{t.removeAttribute("class")}));let u=r.querySelectorAll(".is-row-overlay");Array.prototype.forEach.call(u,(t=>{t.hasAttribute("style")||t.parentNode.removeChild(t)})),Ci.removeEmptyStyle(r),d=r.querySelectorAll("[data-keep]"),Ci.removeAttributes(d,"data-keep");let h=r.querySelectorAll("a");if(Array.prototype.forEach.call(h,(t=>{"inline-block"===t.style.display&&1===t.parentNode.childElementCount&&"span"===t.parentNode.tagName.toLowerCase()&&(t.parentNode.outerHTML=t.parentNode.innerHTML)})),n){r.querySelectorAll("[data-html]").forEach((t=>{t.innerHTML=""}))}if(s="",i){let t=r.querySelectorAll(".is-dummy");Ci.removeElements(t),t=r.querySelectorAll("[data-scroll]"),Ci.removeAttributes(t,"data-scroll"),t=r.querySelectorAll("[data-scroll-once]"),Ci.removeAttributes(t,"data-scroll-once"),this.builder.shortenOutput&&(t=r.querySelectorAll("[data-noedit]"),Ci.removeAttributes(t,"data-noedit"),t=r.querySelectorAll("[data-module]"),Ci.removeAttributes(t,"data-module"),t=r.querySelectorAll("[data-module-desc]"),Ci.removeAttributes(t,"data-module-desc"),t=r.querySelectorAll("[data-dialog-width]"),Ci.removeAttributes(t,"data-dialog-width"),t=r.querySelectorAll("[data-dialog-height]"),Ci.removeAttributes(t,"data-dialog-height"),t=r.querySelectorAll("[data-html]"),Ci.removeAttributes(t,"data-html"),t=r.querySelectorAll("[data-settings]"),Ci.removeAttributes(t,"data-settings"),t=r.querySelectorAll("[data-html-1]"),Ci.removeAttributes(t,"data-html-1"),t=r.querySelectorAll("[data-html-2]"),Ci.removeAttributes(t,"data-html-2"),t=r.querySelectorAll("[data-html-3]"),Ci.removeAttributes(t,"data-html-3"),t=r.querySelectorAll("[data-html-4]"),Ci.removeAttributes(t,"data-html-4"),t=r.querySelectorAll("[data-html-5]"),Ci.removeAttributes(t,"data-html-5"),t=r.querySelectorAll("[data-html-6]"),Ci.removeAttributes(t,"data-html-6"),t=r.querySelectorAll("[data-html-7]"),Ci.removeAttributes(t,"data-html-7"),t=r.querySelectorAll("[data-html-8]"),Ci.removeAttributes(t,"data-html-8"),t=r.querySelectorAll("[data-html-9]"),Ci.removeAttributes(t,"data-html-9"),t=r.querySelectorAll("[data-html-10]"),Ci.removeAttributes(t,"data-html-10"),t=r.querySelectorAll("[data-html-12]"),Ci.removeAttributes(t,"data-html-12"),t=r.querySelectorAll("[data-html-13]"),Ci.removeAttributes(t,"data-html-13"),t=r.querySelectorAll("[data-html-14]"),Ci.removeAttributes(t,"data-html-14"),t=r.querySelectorAll("[data-html-15]"),Ci.removeAttributes(t,"data-html-15"),t=r.querySelectorAll("[data-html-16]"),Ci.removeAttributes(t,"data-html-16"),t=r.querySelectorAll("[data-html-17]"),Ci.removeAttributes(t,"data-html-17"),t=r.querySelectorAll("[data-html-18]"),Ci.removeAttributes(t,"data-html-18"),t=r.querySelectorAll("[data-html-19]"),Ci.removeAttributes(t,"data-html-19"),t=r.querySelectorAll("[data-html-20]"),Ci.removeAttributes(t,"data-html-20"),t=r.querySelectorAll("[data-html-21]"),Ci.removeAttributes(t,"data-html-21"),t=r.querySelectorAll("[data-html-21]"),Ci.removeAttributes(t,"data-html-21"),t=r.querySelectorAll("[data-html-22]"),Ci.removeAttributes(t,"data-html-22"),t=r.querySelectorAll("[data-html-23]"),Ci.removeAttributes(t,"data-html-23"),t=r.querySelectorAll("[data-html-24]"),Ci.removeAttributes(t,"data-html-24"),t=r.querySelectorAll("[data-html-25]"),Ci.removeAttributes(t,"data-html-25")),t=r.querySelectorAll("[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out][data-t],[data-t-100],[data-t-200],[data-t-300],[data-t-400],[data-t-500],[data-t-600],[data-t-700],[data-t-800],[data-t-900],[data-t-1000],[data-t-1100],[data-t-1200],[data-t-1300],[data-t-1400],[data-t-1500],[data-t-1600],[data-t-1700],[data-t-1800],[data-t-1900],[data-t-2000],[data-t-2100],[data-t-2200],[data-t-2300],[data-t-2400],[data-t-2500],[data-t-2600],[data-t-2700],[data-t-2800]"),Array.prototype.forEach.call(t,(t=>{t.style.transition="",t.style.transform="",t.style.opacity=""})),t=r.querySelectorAll(".is-animated"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"animated"),Ci.removeClass(t,"pulse"),Ci.removeClass(t,"bounceIn"),Ci.removeClass(t,"fadeIn"),Ci.removeClass(t,"fadeOut"),Ci.removeClass(t,"fadeInDown"),Ci.removeClass(t,"fadeInLeft"),Ci.removeClass(t,"fadeInRight"),Ci.removeClass(t,"fadeInUp"),Ci.removeClass(t,"flipInX"),Ci.removeClass(t,"flipInY"),Ci.removeClass(t,"slideInUp"),Ci.removeClass(t,"slideInDown"),Ci.removeClass(t,"slideInLeft"),Ci.removeClass(t,"slideInRight"),Ci.removeClass(t,"zoomIn"),t.style.animationDelay="",t.style.transitionDelay="",t.style.transitionDuration="",t.style.transitionTimingFunction="",t.style.transitionProperty=""}));let e=r.querySelectorAll('[style=""]');Array.prototype.forEach.call(e,(t=>{t.removeAttribute("style")})),t=r.querySelectorAll(".is-appeared"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"is-appeared")})),t=r.querySelectorAll(".box-active"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"box-active")})),t=r.querySelectorAll(".section-active"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"section-active")})),t=r.querySelectorAll(".section-select"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"section-select")})),t=r.querySelectorAll(".box-select"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"box-select")})),t=r.querySelectorAll(".is-section-tool"),Ci.removeElements(t),t=r.querySelectorAll(".is-box-tool"),Ci.removeElements(t),t=r.querySelectorAll(".is-box-info"),Ci.removeElements(t),t=r.querySelectorAll(".is-section-info"),Ci.removeElements(t);var p="",g="",m="";Ci.elementChildren(r).forEach((t=>{let e=t;if(Ci.hasClass(e,"is-section")){var i="";e.getAttribute("class")&&(i=' class="'+e.getAttribute("class")+'"');var n=e.cloneNode(!0),o=n.outerHTML;s+=o,-1===i.indexOf("is-static")?p+=o+"\n\n":g+=o+"\n\n"}else o=(n=e.cloneNode(!0)).outerHTML,s+=o,m+=o}));let i=document.querySelector("[data-contentbox]"),n=!1;i&&(n=i.settings.disableStaticSection),n||(s=p+g+m)}else{let t=r.querySelectorAll('[style=""]');Array.prototype.forEach.call(t,(t=>{t.removeAttribute("style")})),this.builder.shortenOutput&&(d=r.querySelectorAll("[data-noedit]"),Ci.removeAttributes(d,"data-noedit"),d=r.querySelectorAll("[data-module]"),Ci.removeAttributes(d,"data-module"),d=r.querySelectorAll("[data-module-desc]"),Ci.removeAttributes(d,"data-module-desc"),d=r.querySelectorAll("[data-dialog-width]"),Ci.removeAttributes(d,"data-dialog-width"),d=r.querySelectorAll("[data-dialog-height]"),Ci.removeAttributes(d,"data-dialog-height"),d=r.querySelectorAll("[data-html]"),Ci.removeAttributes(d,"data-html"),d=r.querySelectorAll("[data-settings]"),Ci.removeAttributes(d,"data-settings"),d=r.querySelectorAll("[data-html-1]"),Ci.removeAttributes(d,"data-html-1"),d=r.querySelectorAll("[data-html-2]"),Ci.removeAttributes(d,"data-html-2"),d=r.querySelectorAll("[data-html-3]"),Ci.removeAttributes(d,"data-html-3"),d=r.querySelectorAll("[data-html-4]"),Ci.removeAttributes(d,"data-html-4"),d=r.querySelectorAll("[data-html-5]"),Ci.removeAttributes(d,"data-html-5"),d=r.querySelectorAll("[data-html-6]"),Ci.removeAttributes(d,"data-html-6"),d=r.querySelectorAll("[data-html-7]"),Ci.removeAttributes(d,"data-html-7"),d=r.querySelectorAll("[data-html-8]"),Ci.removeAttributes(d,"data-html-8"),d=r.querySelectorAll("[data-html-9]"),Ci.removeAttributes(d,"data-html-9"),d=r.querySelectorAll("[data-html-10]"),Ci.removeAttributes(d,"data-html-10"),d=r.querySelectorAll("[data-html-12]"),Ci.removeAttributes(d,"data-html-12"),d=r.querySelectorAll("[data-html-13]"),Ci.removeAttributes(d,"data-html-13"),d=r.querySelectorAll("[data-html-14]"),Ci.removeAttributes(d,"data-html-14"),d=r.querySelectorAll("[data-html-15]"),Ci.removeAttributes(d,"data-html-15"),d=r.querySelectorAll("[data-html-16]"),Ci.removeAttributes(d,"data-html-16"),d=r.querySelectorAll("[data-html-17]"),Ci.removeAttributes(d,"data-html-17"),d=r.querySelectorAll("[data-html-18]"),Ci.removeAttributes(d,"data-html-18"),d=r.querySelectorAll("[data-html-19]"),Ci.removeAttributes(d,"data-html-19"),d=r.querySelectorAll("[data-html-20]"),Ci.removeAttributes(d,"data-html-20"),d=r.querySelectorAll("[data-html-21]"),Ci.removeAttributes(d,"data-html-21"),d=r.querySelectorAll("[data-html-21]"),Ci.removeAttributes(d,"data-html-21"),d=r.querySelectorAll("[data-html-22]"),Ci.removeAttributes(d,"data-html-22"),d=r.querySelectorAll("[data-html-23]"),Ci.removeAttributes(d,"data-html-23"),d=r.querySelectorAll("[data-html-24]"),Ci.removeAttributes(d,"data-html-24"),d=r.querySelectorAll("[data-html-25]"),Ci.removeAttributes(d,"data-html-25")),s=r.innerHTML.trim(),s=s.replace(/<font/g,"<span").replace(/<\/font/g,"</span")}let f=He.html;return s=f(s),s=s.replace(/(\r\n|\r|\n){3,}/g,"$1\n"),s}beautify(t){return t=(t=(0,He.html)(t)).replace(/(\r\n|\r|\n){3,}/g,"$1\n")}}class Ai{constructor(t){this.builder=t;const e=this.builder.dom;this.dom=e,this.undoList=[]}readStyles(){if(this.builder.opts.undoContainerOnly)return"";let t,e,i="",n=this.builder.doc.getElementsByTagName("link");for(t=0;t<n.length;t++)e=n[t].href.toLowerCase(),-1!==e.indexOf("basetype-")&&(i+=n[t].outerHTML);for(n=this.builder.doc.getElementsByTagName("link"),t=0;t<n.length;t++)e=n[t].href.toLowerCase(),-1!==e.indexOf("basetype-")||-1!==e.indexOf("type-")&&(i+=n[t].outerHTML);return i}writeStyles(t){const e=this.dom;if(this.builder.opts.undoContainerOnly)return;let i,n,o=this.builder.doc.getElementsByTagName("link");for(i=0;i<o.length;i++)n=o[i].href.toLowerCase(),(-1!==n.indexOf("basetype-")||-1!==n.indexOf("type-"))&&o[i].parentNode.removeChild(o[i]);let s=this.builder.doc.getElementsByTagName("head")[0];e.appendHtml(s,t)}readHtml(){if(""===this.builder.opts.page||this.builder.opts.undoContainerOnly){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);let e="";return Array.prototype.forEach.call(t,(t=>{e+=t.innerHTML+"####|####"})),e=e.substr(0,e.length-9),e}return this.builder.doc.querySelector(this.builder.opts.page).innerHTML}cleaning(t){const e=this.dom;let i=t.querySelectorAll(".is-builder");Array.prototype.forEach.call(i,(t=>{t.removeAttribute("data-sort")}));let n=t.querySelectorAll("[data-click]");e.removeAttributes(n,"data-click"),e.removeElements(t.querySelectorAll(".is-row-tool")),e.removeElements(t.querySelectorAll(".is-rowadd-tool")),e.removeElements(t.querySelectorAll(".is-col-tool")),e.removeElements(t.querySelectorAll(".ovl")),e.removeElements(t.querySelectorAll(".row-add-initial")),n=t.querySelectorAll(".is-section-tool"),e.removeElements(n)}writeHtml(t){if(""===this.builder.opts.page||this.builder.opts.undoContainerOnly){const e=this.builder.doc.querySelectorAll(this.builder.opts.container);let i=0;Array.prototype.forEach.call(e,(e=>{var n=document.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(t.split("####|####")[i])),this.cleaning(e),this.builder.applyBehaviorOn(e),i++}))}else{let i=this.builder.doc.querySelector(this.builder.opts.page);var e=document.createRange();i.innerHTML="",i.appendChild(e.createContextualFragment(t)),this.cleaning(i)}this.builder.opts.onRender()}saveForUndo(t){if(this.builder.undoRedoStyles){if(this.undoList[120]){let e=this.undoList[120][0].split("###$###")[1];if(this.builder.saveForUndoCheck&&e===this.readHtml())return void(this.builder.saveForUndoCheck=!0===t)}}else if(this.undoList[120]){let e=this.undoList[120][0];if(this.builder.saveForUndoCheck&&e===this.readHtml())return void(this.builder.saveForUndoCheck=!0===t)}if(this.builder.saveForUndoCheck=!0===t,this.undoList[140]=this.undoList[139],this.undoList[139]=this.undoList[138],this.undoList[138]=this.undoList[137],this.undoList[137]=this.undoList[136],this.undoList[136]=this.undoList[135],this.undoList[135]=this.undoList[134],this.undoList[134]=this.undoList[133],this.undoList[133]=this.undoList[132],this.undoList[132]=this.undoList[131],this.undoList[131]=this.undoList[130],this.undoList[130]=this.undoList[129],this.undoList[129]=this.undoList[128],this.undoList[128]=this.undoList[127],this.undoList[127]=this.undoList[126],this.undoList[126]=this.undoList[125],this.undoList[125]=this.undoList[124],this.undoList[124]=this.undoList[123],this.undoList[123]=this.undoList[122],this.undoList[122]=this.undoList[121],this.undoList[121]=this.undoList[120],this.builder.undoRedoStyles){let t=" "+this.readStyles()+"###$###"+this.readHtml();this.undoList[120]=[t,null]}else this.undoList[120]=[this.readHtml(),null]}doUndo(){const t=this.dom;if(!this.undoList[120])return;if(!0===this.builder.undoRedoInProcess)return;if(this.builder.undoRedoInProcess=!0,this.undoList[99]=this.undoList[100],this.undoList[100]=this.undoList[101],this.undoList[101]=this.undoList[102],this.undoList[102]=this.undoList[103],this.undoList[103]=this.undoList[104],this.undoList[104]=this.undoList[105],this.undoList[105]=this.undoList[106],this.undoList[106]=this.undoList[107],this.undoList[107]=this.undoList[108],this.undoList[108]=this.undoList[109],this.undoList[109]=this.undoList[110],this.undoList[110]=this.undoList[111],this.undoList[111]=this.undoList[112],this.undoList[112]=this.undoList[113],this.undoList[113]=this.undoList[114],this.undoList[114]=this.undoList[115],this.undoList[115]=this.undoList[116],this.undoList[116]=this.undoList[117],this.undoList[117]=this.undoList[118],this.undoList[118]=this.undoList[119],this.builder.undoRedoStyles){let t=this.readStyles(),e=this.readHtml(),i=" "+t+"###$###"+e;this.undoList[119]=[i,null],i=this.undoList[120][0],t=i.split("###$###")[0].trim(),e=i.split("###$###")[1],this.writeStyles(t),this.writeHtml(e)}else{this.undoList[119]=[this.readHtml(),null];let t=this.undoList[120][0];this.writeHtml(t)}this.builder.applyBehavior(),this.builder.opts.onChange(),this.undoList[120]=this.undoList[121],this.undoList[121]=this.undoList[122],this.undoList[122]=this.undoList[123],this.undoList[123]=this.undoList[124],this.undoList[124]=this.undoList[125],this.undoList[125]=this.undoList[126],this.undoList[126]=this.undoList[127],this.undoList[127]=this.undoList[128],this.undoList[128]=this.undoList[129],this.undoList[129]=this.undoList[130],this.undoList[130]=this.undoList[131],this.undoList[131]=this.undoList[132],this.undoList[132]=this.undoList[133],this.undoList[133]=this.undoList[134],this.undoList[134]=this.undoList[135],this.undoList[135]=this.undoList[136],this.undoList[136]=this.undoList[137],this.undoList[137]=this.undoList[138],this.undoList[138]=this.undoList[139],this.undoList[139]=this.undoList[140],this.undoList[140]=this.undoList[141];const e=new n(this.builder);e.clearActiveCell(),e.clearAfterUndoRedo();let i=this.builder.doc.querySelector("[data-saveforundo]");if(i){let e=document.querySelector(".is-side.elementstyles");t.addClass(e,"active"),setTimeout((()=>{i.click()}),700)}else{let e=document.querySelector(".is-side.elementstyles");t.removeClass(e,"active")}this.builder.opts.onUndo&&this.builder.opts.onUndo(),this.builder.undoRedoInProcess=!1}doRedo(){const t=this.dom;if(!this.undoList[119])return;if(!0===this.builder.undoRedoInProcess)return;if(this.builder.undoRedoInProcess=!0,this.undoList[141]=this.undoList[140],this.undoList[140]=this.undoList[139],this.undoList[139]=this.undoList[138],this.undoList[138]=this.undoList[137],this.undoList[137]=this.undoList[136],this.undoList[136]=this.undoList[135],this.undoList[135]=this.undoList[134],this.undoList[134]=this.undoList[133],this.undoList[133]=this.undoList[132],this.undoList[132]=this.undoList[131],this.undoList[131]=this.undoList[130],this.undoList[130]=this.undoList[129],this.undoList[129]=this.undoList[128],this.undoList[128]=this.undoList[127],this.undoList[127]=this.undoList[126],this.undoList[126]=this.undoList[125],this.undoList[125]=this.undoList[124],this.undoList[124]=this.undoList[123],this.undoList[123]=this.undoList[122],this.undoList[122]=this.undoList[121],this.undoList[121]=this.undoList[120],this.builder.undoRedoStyles){let t=this.readStyles(),e=this.readHtml(),i=" "+t+"###$###"+e;this.undoList[120]=[i,null],i=this.undoList[119][0],t=i.split("###$###")[0].trim(),e=i.split("###$###")[1],this.writeStyles(t),this.writeHtml(e)}else{this.undoList[120]=[this.readHtml(),null];let t=this.undoList[119][0];this.writeHtml(t)}this.builder.applyBehavior(),this.builder.opts.onChange(),this.undoList[119]=this.undoList[118],this.undoList[118]=this.undoList[117],this.undoList[117]=this.undoList[116],this.undoList[116]=this.undoList[115],this.undoList[115]=this.undoList[114],this.undoList[114]=this.undoList[113],this.undoList[113]=this.undoList[112],this.undoList[112]=this.undoList[111],this.undoList[111]=this.undoList[110],this.undoList[110]=this.undoList[109],this.undoList[109]=this.undoList[108],this.undoList[108]=this.undoList[107],this.undoList[107]=this.undoList[106],this.undoList[106]=this.undoList[105],this.undoList[105]=this.undoList[104],this.undoList[104]=this.undoList[103],this.undoList[103]=this.undoList[102],this.undoList[102]=this.undoList[101],this.undoList[101]=this.undoList[100],this.undoList[100]=this.undoList[99],this.undoList[99]=null;const e=new n(this.builder);e.clearActiveCell(),e.clearAfterUndoRedo();let i=this.builder.doc.querySelector("[data-saveforundo]");if(i){let e=document.querySelector(".is-side.elementstyles");t.addClass(e,"active"),setTimeout((()=>{i.click()}),700)}else{let e=document.querySelector(".is-side.elementstyles");t.removeClass(e,"active")}this.builder.opts.onRedo&&this.builder.opts.onRedo(),this.builder.undoRedoInProcess=!1}}
1
+ var ContentBuilder=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e={exports:{}};e.exports=function(){var t="object",e="function",i="undefined",n=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],o=["setStart","setStartBefore","setStartAfter","setEnd","setEndBefore","setEndAfter","collapse","selectNode","selectNodeContents","compareBoundaryPoints","deleteContents","extractContents","cloneContents","insertNode","surroundContents","cloneRange","toString","detach"],s=["boundingHeight","boundingLeft","boundingTop","boundingWidth","htmlText","text"],r=["collapse","compareEndPoints","duplicate","moveToElementText","parentElement","select","setEndPoint","getBoundingClientRect"];function l(i,n){var o=typeof i[n];return o==e||!(o!=t||!i[n])||"unknown"==o}function a(e,i){return!(typeof e[i]!=t||!e[i])}function d(t,e){return typeof t[e]!=i}function c(t){return function(e,i){for(var n=i.length;n--;)if(!t(e,i[n]))return!1;return!0}}var u=c(l),h=c(a),p=c(d);function g(t){return t&&u(t,r)&&p(t,s)}function m(t){return a(t,"body")?t.body:t.getElementsByTagName("body")[0]}var f,b,v=[].forEach?function(t,e){t.forEach(e)}:function(t,e){for(var i=0,n=t.length;i<n;++i)e(t[i],i)},y={},x=typeof window!=i&&typeof document!=i,w={isHostMethod:l,isHostObject:a,isHostProperty:d,areHostMethods:u,areHostObjects:h,areHostProperties:p,isTextRange:g,getBody:m,forEach:v},S={version:"1.3.1",initialized:!1,isBrowser:x,supported:!0,util:w,features:{},modules:y,config:{alertOnFail:!1,alertOnWarn:!1,preferTextRange:!1,autoInitialize:typeof rangyAutoInitialize==i||rangyAutoInitialize}};function _(t){typeof console!=i&&l(console,"log")&&console.log(t)}function C(t,e){x&&e?alert(t):_(t)}function k(t){S.initialized=!0,S.supported=!1,C("Rangy is not supported in this environment. Reason: "+t,S.config.alertOnFail)}function E(t){C("Rangy warning: "+t,S.config.alertOnWarn)}S.fail=k,S.warn=E,{}.hasOwnProperty?(w.extend=f=function(t,e,i){var n,o;for(var s in e)e.hasOwnProperty(s)&&(n=t[s],o=e[s],i&&null!==n&&"object"==typeof n&&null!==o&&"object"==typeof o&&f(n,o,!0),t[s]=o);return e.hasOwnProperty("toString")&&(t.toString=e.toString),t},w.createOptions=function(t,e){var i={};return f(i,e),t&&f(i,t),i}):k("hasOwnProperty not supported"),x||k("Rangy can only run in a browser"),function(){var t;if(x){var e=document.createElement("div");e.appendChild(document.createElement("span"));var i=[].slice;try{1==i.call(e.childNodes,0)[0].nodeType&&(t=function(t){return i.call(t,0)})}catch(t){}}t||(t=function(t){for(var e=[],i=0,n=t.length;i<n;++i)e[i]=t[i];return e}),w.toArray=t}(),x&&(l(document,"addEventListener")?b=function(t,e,i){t.addEventListener(e,i,!1)}:l(document,"attachEvent")?b=function(t,e,i){t.attachEvent("on"+e,i)}:k("Document does not have required addEventListener or attachEvent method"),w.addListener=b);var A=[];function L(t){return t.message||t.description||String(t)}function q(){if(x&&!S.initialized){var t,e=!1,i=!1;l(document,"createRange")&&(t=document.createRange(),u(t,o)&&p(t,n)&&(e=!0));var s=m(document);if(s&&"body"==s.nodeName.toLowerCase())if(s&&l(s,"createTextRange")&&g(t=s.createTextRange())&&(i=!0),e||i){var r;for(var a in S.initialized=!0,S.features={implementsDomRange:e,implementsTextRange:i},y)(r=y[a])instanceof B&&r.init(r,S);for(var d=0,c=A.length;d<c;++d)try{A[d](S)}catch(t){_("Rangy init listener threw an exception. Continuing. Detail: "+L(t))}}else k("Neither Range nor TextRange are available");else k("No body element found")}}function T(t,e,i){i&&(t+=" in module "+i.name),S.warn("DEPRECATED: "+t+" is deprecated. Please use "+e+" instead.")}function M(t,e,i,n){t[e]=function(){return T(e,i,n),t[i].apply(t,w.toArray(arguments))}}w.deprecationNotice=T,w.createAliasForDeprecatedMethod=M,S.init=q,S.addInitListener=function(t){S.initialized?t(S):A.push(t)};var R=[];function O(t){t=t||window,q();for(var e=0,i=R.length;e<i;++e)R[e](t)}function B(t,e,i){this.name=t,this.dependencies=e,this.initialized=!1,this.supported=!1,this.initializer=i}function N(t,e,i){var n=new B(t,e,(function(e){if(!e.initialized){e.initialized=!0;try{i(S,e),e.supported=!0}catch(e){_("Module '"+t+"' failed to load: "+L(e)),e.stack&&_(e.stack)}}}));return y[t]=n,n}function I(){}function $(){}S.addShimListener=function(t){R.push(t)},x&&(S.shim=S.createMissingNativeApi=O,M(S,"createMissingNativeApi","shim")),B.prototype={init:function(){for(var t,e,i=this.dependencies||[],n=0,o=i.length;n<o;++n){if(e=i[n],!((t=y[e])&&t instanceof B))throw new Error("required module '"+e+"' not found");if(t.init(),!t.supported)throw new Error("required module '"+e+"' not supported")}this.initializer(this)},fail:function(t){throw this.initialized=!0,this.supported=!1,new Error(t)},warn:function(t){S.warn("Module "+this.name+": "+t)},deprecationNotice:function(t,e){S.warn("DEPRECATED: "+t+" in module "+this.name+" is deprecated. Please use "+e+" instead")},createError:function(t){return new Error("Error in Rangy "+this.name+" module: "+t)}},S.createModule=function(t){var e,i;2==arguments.length?(e=arguments[1],i=[]):(e=arguments[2],i=arguments[1]);var n=N(t,i,e);S.initialized&&S.supported&&n.init()},S.createCoreModule=function(t,e,i){N(t,e,i)},S.RangePrototype=I,S.rangePrototype=new I,S.selectionPrototype=new $,S.createCoreModule("DomUtil",[],(function(t,e){var i="undefined",n=t.util,o=n.getBody;n.areHostMethods(document,["createDocumentFragment","createElement","createTextNode"])||e.fail("document missing a Node creation method"),n.isHostMethod(document,"getElementsByTagName")||e.fail("document missing getElementsByTagName method");var s=document.createElement("div");n.areHostMethods(s,["insertBefore","appendChild","cloneNode"]||!n.areHostObjects(s,["previousSibling","nextSibling","childNodes","parentNode"]))||e.fail("Incomplete Element implementation"),n.isHostProperty(s,"innerHTML")||e.fail("Element is missing innerHTML property");var r=document.createTextNode("test");n.areHostMethods(r,["splitText","deleteData","insertData","appendData","cloneNode"]||!n.areHostObjects(s,["previousSibling","nextSibling","childNodes","parentNode"])||!n.areHostProperties(r,["data"]))||e.fail("Incomplete Text Node implementation");var l=function(t,e){for(var i=t.length;i--;)if(t[i]===e)return!0;return!1};function a(t){var e;return typeof t.namespaceURI==i||null===(e=t.namespaceURI)||"http://www.w3.org/1999/xhtml"==e}function d(t){var e=t.parentNode;return 1==e.nodeType?e:null}function c(t){for(var e=0;t=t.previousSibling;)++e;return e}function u(t){switch(t.nodeType){case 7:case 10:return 0;case 3:case 8:return t.length;default:return t.childNodes.length}}function h(t,e){var i,n=[];for(i=t;i;i=i.parentNode)n.push(i);for(i=e;i;i=i.parentNode)if(l(n,i))return i;return null}function p(t,e,i){for(var n=i?e:e.parentNode;n;){if(n===t)return!0;n=n.parentNode}return!1}function g(t,e){return p(t,e,!0)}function m(t,e,i){for(var n,o=i?t:t.parentNode;o;){if((n=o.parentNode)===e)return o;o=n}return null}function f(t){var e=t.nodeType;return 3==e||4==e||8==e}function b(t){if(!t)return!1;var e=t.nodeType;return 3==e||8==e}function v(t,e){var i=e.nextSibling,n=e.parentNode;return i?n.insertBefore(t,i):n.appendChild(t),t}function y(t,e,i){var n=t.cloneNode(!1);if(n.deleteData(0,e),t.deleteData(e,t.length-e),v(n,t),i)for(var o,s=0;o=i[s++];)o.node==t&&o.offset>e?(o.node=n,o.offset-=e):o.node==t.parentNode&&o.offset>c(t)&&++o.offset;return n}function x(t){if(9==t.nodeType)return t;if(typeof t.ownerDocument!=i)return t.ownerDocument;if(typeof t.document!=i)return t.document;if(t.parentNode)return x(t.parentNode);throw e.createError("getDocument: no document found for node")}function w(t){var n=x(t);if(typeof n.defaultView!=i)return n.defaultView;if(typeof n.parentWindow!=i)return n.parentWindow;throw e.createError("Cannot get a window object for node")}function S(t){if(typeof t.contentDocument!=i)return t.contentDocument;if(typeof t.contentWindow!=i)return t.contentWindow.document;throw e.createError("getIframeDocument: No Document object found for iframe element")}function _(t){if(typeof t.contentWindow!=i)return t.contentWindow;if(typeof t.contentDocument!=i)return t.contentDocument.defaultView;throw e.createError("getIframeWindow: No Window object found for iframe element")}function C(t){return t&&n.isHostMethod(t,"setTimeout")&&n.isHostObject(t,"document")}function k(t,e,i){var o;if(t?n.isHostProperty(t,"nodeType")?o=1==t.nodeType&&"iframe"==t.tagName.toLowerCase()?S(t):x(t):C(t)&&(o=t.document):o=document,!o)throw e.createError(i+"(): Parameter must be a Window object or DOM node");return o}function E(t){for(var e;e=t.parentNode;)t=e;return t}function A(t,i,n,o){var s,r,l,a,d;if(t==n)return i===o?0:i<o?-1:1;if(s=m(n,t,!0))return i<=c(s)?-1:1;if(s=m(t,n,!0))return c(s)<o?-1:1;if(!(r=h(t,n)))throw new Error("comparePoints error: nodes have no common ancestor");if((l=t===r?r:m(t,r,!0))===(a=n===r?r:m(n,r,!0)))throw e.createError("comparePoints got to case 4 and childA and childB are the same!");for(d=r.firstChild;d;){if(d===l)return-1;if(d===a)return 1;d=d.nextSibling}}var L,q=!1;function T(t){try{return t.parentNode,!1}catch(t){return!0}}function M(t){if(!t)return"[No node]";if(q&&T(t))return"[Broken node]";if(f(t))return'"'+t.data+'"';if(1==t.nodeType){var e=t.id?' id="'+t.id+'"':"";return"<"+t.nodeName+e+">[index:"+c(t)+",length:"+t.childNodes.length+"]["+(t.innerHTML||"[innerHTML not supported]").slice(0,25)+"]"}return t.nodeName}function R(t){for(var e,i=x(t).createDocumentFragment();e=t.firstChild;)i.appendChild(e);return i}function O(t,e,i){var n=o(t),s=t.createElement("div");s.contentEditable=""+!!i,e&&(s.innerHTML=e);var r=n.firstChild;return r?n.insertBefore(s,r):n.appendChild(s),s}function B(t){return t.parentNode.removeChild(t)}function N(t){this.root=t,this._next=t}function I(t){return new N(t)}function $(t,e){this.node=t,this.offset=e}function D(t){this.code=this[t],this.codeName=t,this.message="DOMException: "+this.codeName}!function(){var e=document.createElement("b");e.innerHTML="1";var i=e.firstChild;e.innerHTML="<br />",q=T(i),t.features.crashyTextNodes=q}(),typeof window.getComputedStyle!=i?L=function(t,e){return w(t).getComputedStyle(t,null)[e]}:typeof document.documentElement.currentStyle!=i?L=function(t,e){return t.currentStyle?t.currentStyle[e]:""}:e.fail("No means of obtaining computed style properties found"),N.prototype={_current:null,hasNext:function(){return!!this._next},next:function(){var t,e,i=this._current=this._next;if(this._current)if(t=i.firstChild)this._next=t;else{for(e=null;i!==this.root&&!(e=i.nextSibling);)i=i.parentNode;this._next=e}return this._current},detach:function(){this._current=this._next=this.root=null}},$.prototype={equals:function(t){return!!t&&this.node===t.node&&this.offset==t.offset},inspect:function(){return"[DomPosition("+M(this.node)+":"+this.offset+")]"},toString:function(){return this.inspect()}},D.prototype={INDEX_SIZE_ERR:1,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INVALID_STATE_ERR:11,INVALID_NODE_TYPE_ERR:24},D.prototype.toString=function(){return this.message},t.dom={arrayContains:l,isHtmlNamespace:a,parentElement:d,getNodeIndex:c,getNodeLength:u,getCommonAncestor:h,isAncestorOf:p,isOrIsAncestorOf:g,getClosestAncestorIn:m,isCharacterDataNode:f,isTextOrCommentNode:b,insertAfter:v,splitDataNode:y,getDocument:x,getWindow:w,getIframeWindow:_,getIframeDocument:S,getBody:o,isWindow:C,getContentDocument:k,getRootContainer:E,comparePoints:A,isBrokenNode:T,inspectNode:M,getComputedStyleProperty:L,createTestElement:O,removeNode:B,fragmentFromNodeChildren:R,createIterator:I,DomPosition:$},t.DOMException=D})),S.createCoreModule("DomRange",["DomUtil"],(function(t,e){var i=t.dom,n=t.util,o=i.DomPosition,s=t.DOMException,r=i.isCharacterDataNode,l=i.getNodeIndex,a=i.isOrIsAncestorOf,d=i.getDocument,c=i.comparePoints,u=i.splitDataNode,h=i.getClosestAncestorIn,p=i.getNodeLength,g=i.arrayContains,m=i.getRootContainer,f=t.features.crashyTextNodes,b=i.removeNode;function v(t,e){return 3!=t.nodeType&&(a(t,e.startContainer)||a(t,e.endContainer))}function y(t){return t.document||d(t.startContainer)}function x(t){return m(t.startContainer)}function w(t){return new o(t.parentNode,l(t))}function S(t){return new o(t.parentNode,l(t)+1)}function _(t,e,n){var o=11==t.nodeType?t.firstChild:t;return r(e)?n==e.length?i.insertAfter(t,e):e.parentNode.insertBefore(t,0==n?e:u(e,n)):n>=e.childNodes.length?e.appendChild(t):e.insertBefore(t,e.childNodes[n]),o}function C(t,e,i){if(Z(t),Z(e),y(e)!=y(t))throw new s("WRONG_DOCUMENT_ERR");var n=c(t.startContainer,t.startOffset,e.endContainer,e.endOffset),o=c(t.endContainer,t.endOffset,e.startContainer,e.startOffset);return i?n<=0&&o>=0:n<0&&o>0}function k(t){for(var e,i,n,o=y(t.range).createDocumentFragment();i=t.next();){if(e=t.isPartiallySelectedSubtree(),i=i.cloneNode(!e),e&&(n=t.getSubtreeIterator(),i.appendChild(k(n)),n.detach()),10==i.nodeType)throw new s("HIERARCHY_REQUEST_ERR");o.appendChild(i)}return o}function E(t,e,n){var o,s,r,l;for(n=n||{stop:!1};r=t.next();)if(t.isPartiallySelectedSubtree()){if(!1===e(r))return void(n.stop=!0);if(E(l=t.getSubtreeIterator(),e,n),l.detach(),n.stop)return}else for(o=i.createIterator(r);s=o.next();)if(!1===e(s))return void(n.stop=!0)}function A(t){for(var e;t.next();)t.isPartiallySelectedSubtree()?(A(e=t.getSubtreeIterator()),e.detach()):t.remove()}function L(t){for(var e,i,n=y(t.range).createDocumentFragment();e=t.next();){if(t.isPartiallySelectedSubtree()?(e=e.cloneNode(!1),i=t.getSubtreeIterator(),e.appendChild(L(i)),i.detach()):t.remove(),10==e.nodeType)throw new s("HIERARCHY_REQUEST_ERR");n.appendChild(e)}return n}function q(t,e,i){var n,o=!(!e||!e.length),s=!!i;o&&(n=new RegExp("^("+e.join("|")+")$"));var l=[];return E(new M(t,!1),(function(e){if((!o||n.test(e.nodeType))&&(!s||i(e))){var a=t.startContainer;if(e!=a||!r(a)||t.startOffset!=a.length){var d=t.endContainer;e==d&&r(d)&&0==t.endOffset||l.push(e)}}})),l}function T(t){return"["+(void 0===t.getName?"Range":t.getName())+"("+i.inspectNode(t.startContainer)+":"+t.startOffset+", "+i.inspectNode(t.endContainer)+":"+t.endOffset+")]"}function M(t,e){if(this.range=t,this.clonePartiallySelectedTextNodes=e,!t.collapsed){this.sc=t.startContainer,this.so=t.startOffset,this.ec=t.endContainer,this.eo=t.endOffset;var i=t.commonAncestorContainer;this.sc===this.ec&&r(this.sc)?(this.isSingleCharacterDataNode=!0,this._first=this._last=this._next=this.sc):(this._first=this._next=this.sc!==i||r(this.sc)?h(this.sc,i,!0):this.sc.childNodes[this.so],this._last=this.ec!==i||r(this.ec)?h(this.ec,i,!0):this.ec.childNodes[this.eo-1])}}M.prototype={_current:null,_next:null,_first:null,_last:null,isSingleCharacterDataNode:!1,reset:function(){this._current=null,this._next=this._first},hasNext:function(){return!!this._next},next:function(){var t=this._current=this._next;return t&&(this._next=t!==this._last?t.nextSibling:null,r(t)&&this.clonePartiallySelectedTextNodes&&(t===this.ec&&(t=t.cloneNode(!0)).deleteData(this.eo,t.length-this.eo),this._current===this.sc&&(t=t.cloneNode(!0)).deleteData(0,this.so))),t},remove:function(){var t,e,i=this._current;!r(i)||i!==this.sc&&i!==this.ec?i.parentNode&&b(i):(t=i===this.sc?this.so:0)!=(e=i===this.ec?this.eo:i.length)&&i.deleteData(t,e-t)},isPartiallySelectedSubtree:function(){return v(this._current,this.range)},getSubtreeIterator:function(){var t;if(this.isSingleCharacterDataNode)(t=this.range.cloneRange()).collapse(!1);else{t=new bt(y(this.range));var e=this._current,i=e,n=0,o=e,s=p(e);a(e,this.sc)&&(i=this.sc,n=this.so),a(e,this.ec)&&(o=this.ec,s=this.eo),ft(t,i,n,o,s)}return new M(t,this.clonePartiallySelectedTextNodes)},detach:function(){this.range=this._current=this._next=this._first=this._last=this.sc=this.so=this.ec=this.eo=null}};var R=[1,3,4,5,7,8,10],O=[2,9,11],B=[5,6,10,12],N=[1,3,4,5,7,8,10,11],I=[1,3,4,5,7,8];function $(t){return function(e,i){for(var n,o=i?e:e.parentNode;o;){if(n=o.nodeType,g(t,n))return o;o=o.parentNode}return null}}var D=$([9,11]),z=$(B),P=$([6,10,12]),H=$([1]);function F(t,e){if(P(t,e))throw new s("INVALID_NODE_TYPE_ERR")}function U(t,e){if(!g(e,t.nodeType))throw new s("INVALID_NODE_TYPE_ERR")}function j(t,e){if(e<0||e>(r(t)?t.length:t.childNodes.length))throw new s("INDEX_SIZE_ERR")}function W(t,e){if(D(t,!0)!==D(e,!0))throw new s("WRONG_DOCUMENT_ERR")}function G(t){if(z(t,!0))throw new s("NO_MODIFICATION_ALLOWED_ERR")}function V(t,e){if(!t)throw new s(e)}function Y(t,e){return e<=(r(t)?t.length:t.childNodes.length)}function X(t){return!!t.startContainer&&!!t.endContainer&&!(f&&(i.isBrokenNode(t.startContainer)||i.isBrokenNode(t.endContainer)))&&m(t.startContainer)==m(t.endContainer)&&Y(t.startContainer,t.startOffset)&&Y(t.endContainer,t.endOffset)}function Z(t){if(!X(t))throw new Error("Range error: Range is not valid. This usually happens after DOM mutation. Range: ("+t.inspect()+")")}var K=document.createElement("style"),Q=!1;try{K.innerHTML="<b>x</b>",Q=3==K.firstChild.nodeType}catch(t){}t.features.htmlParsingConforms=Q;var J=Q?function(t){var e=this.startContainer,n=d(e);if(!e)throw new s("INVALID_STATE_ERR");var o=null;return 1==e.nodeType?o=e:r(e)&&(o=i.parentElement(e)),(o=null===o||"HTML"==o.nodeName&&i.isHtmlNamespace(d(o).documentElement)&&i.isHtmlNamespace(o)?n.createElement("body"):o.cloneNode(!1)).innerHTML=t,i.fragmentFromNodeChildren(o)}:function(t){var e=y(this).createElement("body");return e.innerHTML=t,i.fragmentFromNodeChildren(e)};function tt(t,e){Z(t);var i=t.startContainer,n=t.startOffset,o=t.endContainer,s=t.endOffset,a=i===o;r(o)&&s>0&&s<o.length&&u(o,s,e),r(i)&&n>0&&n<i.length&&(i=u(i,n,e),a?(s-=n,o=i):o==i.parentNode&&s>=l(i)&&s++,n=0),t.setStartAndEnd(i,n,o,s)}function et(t){Z(t);var e=t.commonAncestorContainer.parentNode.cloneNode(!1);return e.appendChild(t.cloneContents()),e.innerHTML}var it=["startContainer","startOffset","endContainer","endOffset","collapsed","commonAncestorContainer"],nt=0,ot=1,st=2,rt=3,lt=0,at=1,dt=2,ct=3;function ut(t){t.START_TO_START=nt,t.START_TO_END=ot,t.END_TO_END=st,t.END_TO_START=rt,t.NODE_BEFORE=lt,t.NODE_AFTER=at,t.NODE_BEFORE_AND_AFTER=dt,t.NODE_INSIDE=ct}function ht(t){ut(t),ut(t.prototype)}function pt(t,e){return function(){Z(this);var i,n=this.startContainer,o=this.startOffset,s=this.commonAncestorContainer,r=new M(this,!0);n!==s&&(n=(i=S(h(n,s,!0))).node,o=i.offset),E(r,G),r.reset();var l=t(r);return r.detach(),e(this,n,o,n,o),l}}function gt(e,i){function o(t,e){return function(i){U(i,R),U(m(i),O);var n=(t?w:S)(i);(e?s:a)(this,n.node,n.offset)}}function s(t,e,n){var o=t.endContainer,s=t.endOffset;e===t.startContainer&&n===t.startOffset||(m(e)==m(o)&&1!=c(e,n,o,s)||(o=e,s=n),i(t,e,n,o,s))}function a(t,e,n){var o=t.startContainer,s=t.startOffset;e===t.endContainer&&n===t.endOffset||(m(e)==m(o)&&-1!=c(e,n,o,s)||(o=e,s=n),i(t,o,s,e,n))}var d=function(){};d.prototype=t.rangePrototype,e.prototype=new d,n.extend(e.prototype,{setStart:function(t,e){F(t,!0),j(t,e),s(this,t,e)},setEnd:function(t,e){F(t,!0),j(t,e),a(this,t,e)},setStartAndEnd:function(){var t=arguments,e=t[0],n=t[1],o=e,s=n;switch(t.length){case 3:s=t[2];break;case 4:o=t[2],s=t[3]}F(e,!0),j(e,n),F(o,!0),j(o,s),i(this,e,n,o,s)},setBoundary:function(t,e,i){this["set"+(i?"Start":"End")](t,e)},setStartBefore:o(!0,!0),setStartAfter:o(!1,!0),setEndBefore:o(!0,!1),setEndAfter:o(!1,!1),collapse:function(t){Z(this),t?i(this,this.startContainer,this.startOffset,this.startContainer,this.startOffset):i(this,this.endContainer,this.endOffset,this.endContainer,this.endOffset)},selectNodeContents:function(t){F(t,!0),i(this,t,0,t,p(t))},selectNode:function(t){F(t,!1),U(t,R);var e=w(t),n=S(t);i(this,e.node,e.offset,n.node,n.offset)},extractContents:pt(L,i),deleteContents:pt(A,i),canSurroundContents:function(){Z(this),G(this.startContainer),G(this.endContainer);var t=new M(this,!0),e=t._first&&v(t._first,this)||t._last&&v(t._last,this);return t.detach(),!e},splitBoundaries:function(){tt(this)},splitBoundariesPreservingPositions:function(t){tt(this,t)},normalizeBoundaries:function(){Z(this);var t,e=this.startContainer,n=this.startOffset,o=this.endContainer,s=this.endOffset,a=function(t){var e=t.nextSibling;e&&e.nodeType==t.nodeType&&(o=t,s=t.length,t.appendData(e.data),b(e))},d=function(t){var i=t.previousSibling;if(i&&i.nodeType==t.nodeType){e=t;var r=t.length;if(n=i.length,t.insertData(0,i.data),b(i),e==o)s+=n,o=e;else if(o==t.parentNode){var a=l(t);s==a?(o=t,s=r):s>a&&s--}}},c=!0;if(r(o))s==o.length?a(o):0==s&&(t=o.previousSibling)&&t.nodeType==o.nodeType&&(s=t.length,e==o&&(c=!1),t.appendData(o.data),b(o),o=t);else{if(s>0){var u=o.childNodes[s-1];u&&r(u)&&a(u)}c=!this.collapsed}if(c){if(r(e))0==n?d(e):n==e.length&&(t=e.nextSibling)&&t.nodeType==e.nodeType&&(o==t&&(o=e,s+=e.length),e.appendData(t.data),b(t));else if(n<e.childNodes.length){var h=e.childNodes[n];h&&r(h)&&d(h)}}else e=o,n=s;i(this,e,n,o,s)},collapseToPoint:function(t,e){F(t,!0),j(t,e),this.setStartAndEnd(t,e)},parentElement:function(){return Z(this),this.commonAncestorContainer?H(this.commonAncestorContainer,!0):null}}),ht(e)}function mt(t){t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset,t.commonAncestorContainer=t.collapsed?t.startContainer:i.getCommonAncestor(t.startContainer,t.endContainer)}function ft(t,e,n,o,s){t.startContainer=e,t.startOffset=n,t.endContainer=o,t.endOffset=s,t.document=i.getDocument(e),mt(t)}function bt(t){ft(this,t,0,t,0)}n.extend(t.rangePrototype,{compareBoundaryPoints:function(t,e){var i,n,o,s;Z(this),W(this.startContainer,e.startContainer);var r=t==rt||t==nt?"start":"end",l=t==ot||t==nt?"start":"end";return i=this[r+"Container"],n=this[r+"Offset"],o=e[l+"Container"],s=e[l+"Offset"],c(i,n,o,s)},insertNode:function(t){if(Z(this),U(t,N),G(this.startContainer),a(t,this.startContainer))throw new s("HIERARCHY_REQUEST_ERR");var e=_(t,this.startContainer,this.startOffset);this.setStartBefore(e)},cloneContents:function(){var t,e;if(Z(this),this.collapsed)return y(this).createDocumentFragment();if(this.startContainer===this.endContainer&&r(this.startContainer))return(t=this.startContainer.cloneNode(!0)).data=t.data.slice(this.startOffset,this.endOffset),(e=y(this).createDocumentFragment()).appendChild(t),e;var i=new M(this,!0);return t=k(i),i.detach(),t},canSurroundContents:function(){Z(this),G(this.startContainer),G(this.endContainer);var t=new M(this,!0),e=t._first&&v(t._first,this)||t._last&&v(t._last,this);return t.detach(),!e},surroundContents:function(t){if(U(t,I),!this.canSurroundContents())throw new s("INVALID_STATE_ERR");var e=this.extractContents();if(t.hasChildNodes())for(;t.lastChild;)t.removeChild(t.lastChild);_(t,this.startContainer,this.startOffset),t.appendChild(e),this.selectNode(t)},cloneRange:function(){Z(this);for(var t,e=new bt(y(this)),i=it.length;i--;)e[t=it[i]]=this[t];return e},toString:function(){Z(this);var t=this.startContainer;if(t===this.endContainer&&r(t))return 3==t.nodeType||4==t.nodeType?t.data.slice(this.startOffset,this.endOffset):"";var e=[],i=new M(this,!0);return E(i,(function(t){3!=t.nodeType&&4!=t.nodeType||e.push(t.data)})),i.detach(),e.join("")},compareNode:function(t){Z(this);var e=t.parentNode,i=l(t);if(!e)throw new s("NOT_FOUND_ERR");var n=this.comparePoint(e,i),o=this.comparePoint(e,i+1);return n<0?o>0?dt:lt:o>0?at:ct},comparePoint:function(t,e){return Z(this),V(t,"HIERARCHY_REQUEST_ERR"),W(t,this.startContainer),c(t,e,this.startContainer,this.startOffset)<0?-1:c(t,e,this.endContainer,this.endOffset)>0?1:0},createContextualFragment:J,toHtml:function(){return et(this)},intersectsNode:function(t,e){if(Z(this),m(t)!=x(this))return!1;var i=t.parentNode,n=l(t);if(!i)return!0;var o=c(i,n,this.endContainer,this.endOffset),s=c(i,n+1,this.startContainer,this.startOffset);return e?o<=0&&s>=0:o<0&&s>0},isPointInRange:function(t,e){return Z(this),V(t,"HIERARCHY_REQUEST_ERR"),W(t,this.startContainer),c(t,e,this.startContainer,this.startOffset)>=0&&c(t,e,this.endContainer,this.endOffset)<=0},intersectsRange:function(t){return C(this,t,!1)},intersectsOrTouchesRange:function(t){return C(this,t,!0)},intersection:function(t){if(this.intersectsRange(t)){var e=c(this.startContainer,this.startOffset,t.startContainer,t.startOffset),i=c(this.endContainer,this.endOffset,t.endContainer,t.endOffset),n=this.cloneRange();return-1==e&&n.setStart(t.startContainer,t.startOffset),1==i&&n.setEnd(t.endContainer,t.endOffset),n}return null},union:function(t){if(this.intersectsOrTouchesRange(t)){var e=this.cloneRange();return-1==c(t.startContainer,t.startOffset,this.startContainer,this.startOffset)&&e.setStart(t.startContainer,t.startOffset),1==c(t.endContainer,t.endOffset,this.endContainer,this.endOffset)&&e.setEnd(t.endContainer,t.endOffset),e}throw new s("Ranges do not intersect")},containsNode:function(t,e){return e?this.intersectsNode(t,!1):this.compareNode(t)==ct},containsNodeContents:function(t){return this.comparePoint(t,0)>=0&&this.comparePoint(t,p(t))<=0},containsRange:function(t){var e=this.intersection(t);return null!==e&&t.equals(e)},containsNodeText:function(t){var e=this.cloneRange();e.selectNode(t);var i=e.getNodes([3]);if(i.length>0){e.setStart(i[0],0);var n=i.pop();return e.setEnd(n,n.length),this.containsRange(e)}return this.containsNodeContents(t)},getNodes:function(t,e){return Z(this),q(this,t,e)},getDocument:function(){return y(this)},collapseBefore:function(t){this.setEndBefore(t),this.collapse(!1)},collapseAfter:function(t){this.setStartAfter(t),this.collapse(!0)},getBookmark:function(e){var n=y(this),o=t.createRange(n);e=e||i.getBody(n),o.selectNodeContents(e);var s=this.intersection(o),r=0,l=0;return s&&(o.setEnd(s.startContainer,s.startOffset),l=(r=o.toString().length)+s.toString().length),{start:r,end:l,containerNode:e}},moveToBookmark:function(t){var e=t.containerNode,i=0;this.setStart(e,0),this.collapse(!0);for(var n,o,s,r,l=[e],a=!1,d=!1;!d&&(n=l.pop());)if(3==n.nodeType)o=i+n.length,!a&&t.start>=i&&t.start<=o&&(this.setStart(n,t.start-i),a=!0),a&&t.end>=i&&t.end<=o&&(this.setEnd(n,t.end-i),d=!0),i=o;else for(s=(r=n.childNodes).length;s--;)l.push(r[s])},getName:function(){return"DomRange"},equals:function(t){return bt.rangesEqual(this,t)},isValid:function(){return X(this)},inspect:function(){return T(this)},detach:function(){}}),gt(bt,ft),n.extend(bt,{rangeProperties:it,RangeIterator:M,copyComparisonConstants:ht,createPrototypeRange:gt,inspect:T,toHtml:et,getRangeDocument:y,rangesEqual:function(t,e){return t.startContainer===e.startContainer&&t.startOffset===e.startOffset&&t.endContainer===e.endContainer&&t.endOffset===e.endOffset}}),t.DomRange=bt})),S.createCoreModule("WrappedRange",["DomRange"],(function(t,e){var i,n,o=t.dom,s=t.util,r=o.DomPosition,l=t.DomRange,a=o.getBody,d=o.getContentDocument,c=o.isCharacterDataNode;if(t.features.implementsDomRange&&function(){var n,r,c=l.rangeProperties;function u(t){for(var e,i=c.length;i--;)t[e=c[i]]=t.nativeRange[e];t.collapsed=t.startContainer===t.endContainer&&t.startOffset===t.endOffset}function h(t,e,i,n,o){var s=t.startContainer!==e||t.startOffset!=i,r=t.endContainer!==n||t.endOffset!=o,l=!t.equals(t.nativeRange);(s||r||l)&&(t.setEnd(n,o),t.setStart(e,i))}i=function(t){if(!t)throw e.createError("WrappedRange: Range must be specified");this.nativeRange=t,u(this)},l.createPrototypeRange(i,h),(n=i.prototype).selectNode=function(t){this.nativeRange.selectNode(t),u(this)},n.cloneContents=function(){return this.nativeRange.cloneContents()},n.surroundContents=function(t){this.nativeRange.surroundContents(t),u(this)},n.collapse=function(t){this.nativeRange.collapse(t),u(this)},n.cloneRange=function(){return new i(this.nativeRange.cloneRange())},n.refresh=function(){u(this)},n.toString=function(){return this.nativeRange.toString()};var p=document.createTextNode("test");a(document).appendChild(p);var g=document.createRange();g.setStart(p,0),g.setEnd(p,0);try{g.setStart(p,1),n.setStart=function(t,e){this.nativeRange.setStart(t,e),u(this)},n.setEnd=function(t,e){this.nativeRange.setEnd(t,e),u(this)},r=function(t){return function(e){this.nativeRange[t](e),u(this)}}}catch(t){n.setStart=function(t,e){try{this.nativeRange.setStart(t,e)}catch(i){this.nativeRange.setEnd(t,e),this.nativeRange.setStart(t,e)}u(this)},n.setEnd=function(t,e){try{this.nativeRange.setEnd(t,e)}catch(i){this.nativeRange.setStart(t,e),this.nativeRange.setEnd(t,e)}u(this)},r=function(t,e){return function(i){try{this.nativeRange[t](i)}catch(n){this.nativeRange[e](i),this.nativeRange[t](i)}u(this)}}}n.setStartBefore=r("setStartBefore","setEndBefore"),n.setStartAfter=r("setStartAfter","setEndAfter"),n.setEndBefore=r("setEndBefore","setStartBefore"),n.setEndAfter=r("setEndAfter","setStartAfter"),n.selectNodeContents=function(t){this.setStartAndEnd(t,0,o.getNodeLength(t))},g.selectNodeContents(p),g.setEnd(p,3);var m=document.createRange();m.selectNodeContents(p),m.setEnd(p,4),m.setStart(p,2),-1==g.compareBoundaryPoints(g.START_TO_END,m)&&1==g.compareBoundaryPoints(g.END_TO_START,m)?n.compareBoundaryPoints=function(t,e){return t==(e=e.nativeRange||e).START_TO_END?t=e.END_TO_START:t==e.END_TO_START&&(t=e.START_TO_END),this.nativeRange.compareBoundaryPoints(t,e)}:n.compareBoundaryPoints=function(t,e){return this.nativeRange.compareBoundaryPoints(t,e.nativeRange||e)};var f=document.createElement("div");f.innerHTML="123";var b=f.firstChild,v=a(document);v.appendChild(f),g.setStart(b,1),g.setEnd(b,2),g.deleteContents(),"13"==b.data&&(n.deleteContents=function(){this.nativeRange.deleteContents(),u(this)},n.extractContents=function(){var t=this.nativeRange.extractContents();return u(this),t}),v.removeChild(f),v=null,s.isHostMethod(g,"createContextualFragment")&&(n.createContextualFragment=function(t){return this.nativeRange.createContextualFragment(t)}),a(document).removeChild(p),n.getName=function(){return"WrappedRange"},t.WrappedRange=i,t.createNativeRange=function(t){return(t=d(t,e,"createNativeRange")).createRange()}}(),t.features.implementsTextRange){var u=function(t){var e=t.parentElement(),i=t.duplicate();i.collapse(!0);var n=i.parentElement();(i=t.duplicate()).collapse(!1);var s=i.parentElement(),r=n==s?n:o.getCommonAncestor(n,s);return r==e?r:o.getCommonAncestor(e,r)},h=function(t){return 0==t.compareEndPoints("StartToEnd",t)},p=function(t,e,i,n,s){var l=t.duplicate();l.collapse(i);var a=l.parentElement();if(o.isOrIsAncestorOf(e,a)||(a=e),!a.canHaveHTML){var d=new r(a.parentNode,o.getNodeIndex(a));return{boundaryPosition:d,nodeInfo:{nodeIndex:d.offset,containerElement:d.node}}}var u=o.getDocument(a).createElement("span");u.parentNode&&o.removeNode(u);for(var h,p,g,m,f,b=i?"StartToStart":"StartToEnd",v=s&&s.containerElement==a?s.nodeIndex:0,y=a.childNodes.length,x=y,w=x;w==y?a.appendChild(u):a.insertBefore(u,a.childNodes[w]),l.moveToElementText(u),0!=(h=l.compareEndPoints(b,t))&&v!=x;){if(-1==h){if(x==v+1)break;v=w}else x=x==v+1?v:w;w=Math.floor((v+x)/2),a.removeChild(u)}if(f=u.nextSibling,-1==h&&f&&c(f)){var S;if(l.setEndPoint(i?"EndToStart":"EndToEnd",t),/[\r\n]/.test(f.data)){var _=l.duplicate(),C=_.text.replace(/\r\n/g,"\r").length;for(S=_.moveStart("character",C);-1==(h=_.compareEndPoints("StartToEnd",_));)S++,_.moveStart("character",1)}else S=l.text.length;m=new r(f,S)}else p=(n||!i)&&u.previousSibling,m=(g=(n||i)&&u.nextSibling)&&c(g)?new r(g,0):p&&c(p)?new r(p,p.data.length):new r(a,o.getNodeIndex(u));return o.removeNode(u),{boundaryPosition:m,nodeInfo:{nodeIndex:w,containerElement:a}}},g=function(t,e){var i,n,s,r,l=t.offset,d=o.getDocument(t.node),u=a(d).createTextRange(),h=c(t.node);return h?n=(i=t.node).parentNode:(i=l<(r=t.node.childNodes).length?r[l]:null,n=t.node),(s=d.createElement("span")).innerHTML="&#feff;",i?n.insertBefore(s,i):n.appendChild(s),u.moveToElementText(s),u.collapse(!e),n.removeChild(s),h&&u[e?"moveStart":"moveEnd"]("character",l),u};(n=function(t){this.textRange=t,this.refresh()}).prototype=new l(document),n.prototype.refresh=function(){var t,e,i,n=u(this.textRange);h(this.textRange)?e=t=p(this.textRange,n,!0,!0).boundaryPosition:(t=(i=p(this.textRange,n,!0,!1)).boundaryPosition,e=p(this.textRange,n,!1,!1,i.nodeInfo).boundaryPosition),this.setStart(t.node,t.offset),this.setEnd(e.node,e.offset)},n.prototype.getName=function(){return"WrappedTextRange"},l.copyComparisonConstants(n);var m=function(t){if(t.collapsed)return g(new r(t.startContainer,t.startOffset),!0);var e=g(new r(t.startContainer,t.startOffset),!0),i=g(new r(t.endContainer,t.endOffset),!1),n=a(l.getRangeDocument(t)).createTextRange();return n.setEndPoint("StartToStart",e),n.setEndPoint("EndToEnd",i),n};if(n.rangeToTextRange=m,n.prototype.toTextRange=function(){return m(this)},t.WrappedTextRange=n,!t.features.implementsDomRange||t.config.preferTextRange){var f=Function("return this;")();void 0===f.Range&&(f.Range=n),t.createNativeRange=function(t){return t=d(t,e,"createNativeRange"),a(t).createTextRange()},t.WrappedRange=n}}t.createRange=function(i){return i=d(i,e,"createRange"),new t.WrappedRange(t.createNativeRange(i))},t.createRangyRange=function(t){return t=d(t,e,"createRangyRange"),new l(t)},s.createAliasForDeprecatedMethod(t,"createIframeRange","createRange"),s.createAliasForDeprecatedMethod(t,"createIframeRangyRange","createRangyRange"),t.addShimListener((function(e){var i=e.document;void 0===i.createRange&&(i.createRange=function(){return t.createRange(i)}),i=e=null}))})),S.createCoreModule("WrappedSelection",["DomRange","WrappedRange"],(function(t,e){t.config.checkSelectionRanges=!0;var i,n,o="boolean",s="number",r=t.dom,l=t.util,a=l.isHostMethod,d=t.DomRange,c=t.WrappedRange,u=t.DOMException,h=r.DomPosition,p=t.features,g="Control",m=r.getDocument,f=r.getBody,b=d.rangesEqual;function v(t){return"string"==typeof t?/^backward(s)?$/i.test(t):!!t}function y(t,i){if(t){if(r.isWindow(t))return t;if(t instanceof Z)return t.win;var n=r.getContentDocument(t,e,i);return r.getWindow(n)}return window}function x(t){return y(t,"getWinSelection").getSelection()}function w(t){return y(t,"getDocSelection").document.selection}function S(t){var e=!1;return t.anchorNode&&(e=1==r.comparePoints(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)),e}var _=a(window,"getSelection"),C=l.isHostObject(document,"selection");p.implementsWinGetSelection=_,p.implementsDocSelection=C;var k=C&&(!_||t.config.preferTextRange);if(k)i=w,t.isSelectionValid=function(t){var e=y(t,"isSelectionValid").document,i=e.selection;return"None"!=i.type||m(i.createRange().parentElement())==e};else{if(!_)return e.fail("Neither document.selection or window.getSelection() detected."),!1;i=x,t.isSelectionValid=function(){return!0}}t.getNativeSelection=i;var E=i();if(!E)return e.fail("Native selection was null (possibly issue 138?)"),!1;var A=t.createNativeRange(document),L=f(document),q=l.areHostProperties(E,["anchorNode","focusNode","anchorOffset","focusOffset"]);p.selectionHasAnchorAndFocus=q;var T=a(E,"extend");p.selectionHasExtend=T;var M=a(E,"setBaseAndExtent");p.selectionHasSetBaseAndExtent=M;var R=typeof E.rangeCount==s;p.selectionHasRangeCount=R;var O=!1,B=!0,N=T?function(e,i){var n=d.getRangeDocument(i),o=t.createRange(n);o.collapseToPoint(i.endContainer,i.endOffset),e.addRange(U(o)),e.extend(i.startContainer,i.startOffset)}:null;l.areHostMethods(E,["addRange","getRangeAt","removeAllRanges"])&&typeof E.rangeCount==s&&p.implementsDomRange&&function(){var e=window.getSelection();if(e){for(var i=e.rangeCount,n=i>1,o=[],s=S(e),l=0;l<i;++l)o[l]=e.getRangeAt(l);var a=r.createTestElement(document,"",!1),d=a.appendChild(document.createTextNode("   ")),c=document.createRange();if(c.setStart(d,1),c.collapse(!0),e.removeAllRanges(),e.addRange(c),B=1==e.rangeCount,e.removeAllRanges(),!n){var u=window.navigator.appVersion.match(/Chrome\/(.*?) /);if(u&&parseInt(u[1])>=36)O=!1;else{var h=c.cloneRange();c.setStart(d,0),h.setEnd(d,3),h.setStart(d,2),e.addRange(c),e.addRange(h),O=2==e.rangeCount}}for(r.removeNode(a),e.removeAllRanges(),l=0;l<i;++l)0==l&&s?N?N(e,o[l]):(t.warn("Rangy initialization: original selection was backwards but selection has been restored forwards because the browser does not support Selection.extend"),e.addRange(o[l])):e.addRange(o[l])}}(),p.selectionSupportsMultipleRanges=O,p.collapsedNonEditableSelectionsSupported=B;var I,$,D=!1;function z(t,e,i){var n=i?"end":"start",o=i?"start":"end";t.anchorNode=e[n+"Container"],t.anchorOffset=e[n+"Offset"],t.focusNode=e[o+"Container"],t.focusOffset=e[o+"Offset"]}function P(t){var e=t.nativeSelection;t.anchorNode=e.anchorNode,t.anchorOffset=e.anchorOffset,t.focusNode=e.focusNode,t.focusOffset=e.focusOffset}function H(t){t.anchorNode=t.focusNode=null,t.anchorOffset=t.focusOffset=0,t.rangeCount=0,t.isCollapsed=!0,t._ranges.length=0,F(t)}function F(t){t.type=0==t.rangeCount?"None":n(t)?"Caret":"Range"}function U(e){var i;return e instanceof d?((i=t.createNativeRange(e.getDocument())).setEnd(e.endContainer,e.endOffset),i.setStart(e.startContainer,e.startOffset)):e instanceof c?i=e.nativeRange:p.implementsDomRange&&e instanceof r.getWindow(e.startContainer).Range&&(i=e),i}function j(t){if(!t.length||1!=t[0].nodeType)return!1;for(var e=1,i=t.length;e<i;++e)if(!r.isAncestorOf(t[0],t[e]))return!1;return!0}function W(t){var i=t.getNodes();if(!j(i))throw e.createError("getSingleElementFromRange: range "+t.inspect()+" did not consist of a single element");return i[0]}function G(t){return!!t&&void 0!==t.text}function V(t,e){var i=new c(e);t._ranges=[i],z(t,i,!1),t.rangeCount=1,t.isCollapsed=i.collapsed,F(t)}function Y(e){if(e._ranges.length=0,"None"==e.docSelection.type)H(e);else{var i=e.docSelection.createRange();if(G(i))V(e,i);else{e.rangeCount=i.length;for(var n,o=m(i.item(0)),s=0;s<e.rangeCount;++s)(n=t.createRange(o)).selectNode(i.item(s)),e._ranges.push(n);e.isCollapsed=1==e.rangeCount&&e._ranges[0].collapsed,z(e,e._ranges[e.rangeCount-1],!1),F(e)}}}function X(t,i){for(var n=t.docSelection.createRange(),o=W(i),s=m(n.item(0)),r=f(s).createControlRange(),l=0,a=n.length;l<a;++l)r.add(n.item(l));try{r.add(o)}catch(t){throw e.createError("addRange(): Element within the specified Range could not be added to control selection (does it have layout?)")}r.select(),Y(t)}function Z(t,e,i){this.nativeSelection=t,this.docSelection=e,this._ranges=[],this.win=i,this.refresh()}function K(t){t.win=t.anchorNode=t.focusNode=t._ranges=null,t.rangeCount=t.anchorOffset=t.focusOffset=0,t.detached=!0,F(t)}L&&a(L,"createControlRange")&&(I=L.createControlRange(),l.areHostProperties(I,["item","add"])&&(D=!0)),p.implementsControlRange=D,n=q?function(t){return t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset}:function(t){return!!t.rangeCount&&t.getRangeAt(t.rangeCount-1).collapsed},a(E,"getRangeAt")?$=function(t,e){try{return t.getRangeAt(e)}catch(t){return null}}:q&&($=function(e){var i=m(e.anchorNode),n=t.createRange(i);return n.setStartAndEnd(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset),n.collapsed!==this.isCollapsed&&n.setStartAndEnd(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset),n}),Z.prototype=t.selectionPrototype;var Q=[];function J(t,e){for(var i,n,o=Q.length;o--;)if(n=(i=Q[o]).selection,"deleteAll"==e)K(n);else if(i.win==t)return"delete"==e?(Q.splice(o,1),!0):n;return"deleteAll"==e&&(Q.length=0),null}var tt=function(t){if(t&&t instanceof Z)return t.refresh(),t;var e=J(t=y(t,"getNativeSelection")),n=i(t),o=C?w(t):null;return e?(e.nativeSelection=n,e.docSelection=o,e.refresh()):(e=new Z(n,o,t),Q.push({win:t,selection:e})),e};t.getSelection=tt,l.createAliasForDeprecatedMethod(t,"getIframeSelection","getSelection");var et,it=Z.prototype;function nt(t,i){for(var n,o=m(i[0].startContainer),s=f(o).createControlRange(),r=0,l=i.length;r<l;++r){n=W(i[r]);try{s.add(n)}catch(t){throw e.createError("setRanges(): Element within one of the specified Ranges could not be added to control selection (does it have layout?)")}}s.select(),Y(t)}if(!k&&q&&l.areHostMethods(E,["removeAllRanges","addRange"])){it.removeAllRanges=function(){this.nativeSelection.removeAllRanges(),H(this)};var ot=function(t,e){N(t.nativeSelection,e),t.refresh()};it.addRange=R?function(e,i){if(D&&C&&this.docSelection.type==g)X(this,e);else if(v(i)&&T)ot(this,e);else{var o;O?o=this.rangeCount:(this.removeAllRanges(),o=0);var s=U(e).cloneRange();try{this.nativeSelection.addRange(s)}catch(t){}if(this.rangeCount=this.nativeSelection.rangeCount,this.rangeCount==o+1){if(t.config.checkSelectionRanges){var r=$(this.nativeSelection,this.rangeCount-1);r&&!b(r,e)&&(e=new c(r))}this._ranges[this.rangeCount-1]=e,z(this,e,st(this.nativeSelection)),this.isCollapsed=n(this),F(this)}else this.refresh()}}:function(t,e){v(e)&&T?ot(this,t):(this.nativeSelection.addRange(U(t)),this.refresh())},it.setRanges=function(t){if(D&&C&&t.length>1)nt(this,t);else{this.removeAllRanges();for(var e=0,i=t.length;e<i;++e)this.addRange(t[e])}}}else{if(!(a(E,"empty")&&a(A,"select")&&D&&k))return e.fail("No means of selecting a Range or TextRange was found"),!1;it.removeAllRanges=function(){try{if(this.docSelection.empty(),"None"!=this.docSelection.type){var t;if(this.anchorNode)t=m(this.anchorNode);else if(this.docSelection.type==g){var e=this.docSelection.createRange();e.length&&(t=m(e.item(0)))}t&&(f(t).createTextRange().select(),this.docSelection.empty())}}catch(t){}H(this)},it.addRange=function(e){this.docSelection.type==g?X(this,e):(t.WrappedTextRange.rangeToTextRange(e).select(),this._ranges[0]=e,this.rangeCount=1,this.isCollapsed=this._ranges[0].collapsed,z(this,e,!1),F(this))},it.setRanges=function(t){this.removeAllRanges();var e=t.length;e>1?nt(this,t):e&&this.addRange(t[0])}}if(it.getRangeAt=function(t){if(t<0||t>=this.rangeCount)throw new u("INDEX_SIZE_ERR");return this._ranges[t].cloneRange()},k)et=function(e){var i;t.isSelectionValid(e.win)?i=e.docSelection.createRange():(i=f(e.win.document).createTextRange()).collapse(!0),e.docSelection.type==g?Y(e):G(i)?V(e,i):H(e)};else if(a(E,"getRangeAt")&&typeof E.rangeCount==s)et=function(e){if(D&&C&&e.docSelection.type==g)Y(e);else if(e._ranges.length=e.rangeCount=e.nativeSelection.rangeCount,e.rangeCount){for(var i=0,o=e.rangeCount;i<o;++i)e._ranges[i]=new t.WrappedRange(e.nativeSelection.getRangeAt(i));z(e,e._ranges[e.rangeCount-1],st(e.nativeSelection)),e.isCollapsed=n(e),F(e)}else H(e)};else{if(!q||typeof E.isCollapsed!=o||typeof A.collapsed!=o||!p.implementsDomRange)return e.fail("No means of obtaining a Range or TextRange from the user's selection was found"),!1;et=function(t){var e,i=t.nativeSelection;i.anchorNode?(e=$(i,0),t._ranges=[e],t.rangeCount=1,P(t),t.isCollapsed=n(t),F(t)):H(t)}}it.refresh=function(t){var e=t?this._ranges.slice(0):null,i=this.anchorNode,n=this.anchorOffset;if(et(this),t){var o=e.length;if(o!=this._ranges.length)return!0;if(this.anchorNode!=i||this.anchorOffset!=n)return!0;for(;o--;)if(!b(e[o],this._ranges[o]))return!0;return!1}};var st,rt=function(t,e){var i=t.getAllRanges();t.removeAllRanges();for(var n=0,o=i.length;n<o;++n)b(e,i[n])||t.addRange(i[n]);t.rangeCount||H(t)};function lt(t,e){if(t.win.document!=m(e))throw new u("WRONG_DOCUMENT_ERR")}function at(t,e){if(e<0||e>(r.isCharacterDataNode(t)?t.length:t.childNodes.length))throw new u("INDEX_SIZE_ERR")}function dt(e){return function(i,n){var o;this.rangeCount?(o=this.getRangeAt(0))["set"+(e?"Start":"End")](i,n):(o=t.createRange(this.win.document)).setStartAndEnd(i,n),this.setSingleRange(o,this.isBackward())}}function ct(t){var e=[],i=new h(t.anchorNode,t.anchorOffset),n=new h(t.focusNode,t.focusOffset),o="function"==typeof t.getName?t.getName():"Selection";if(void 0!==t.rangeCount)for(var s=0,r=t.rangeCount;s<r;++s)e[s]=d.inspect(t.getRangeAt(s));return"["+o+"(Ranges: "+e.join(", ")+")(anchor: "+i.inspect()+", focus: "+n.inspect()+"]"}it.removeRange=D&&C?function(t){if(this.docSelection.type==g){for(var e=this.docSelection.createRange(),i=W(t),n=m(e.item(0)),o=f(n).createControlRange(),s=!1,r=0,l=e.length;r<l;++r)e.item(r)!==i||s?o.add(e.item(r)):s=!0;o.select(),Y(this)}else rt(this,t)}:function(t){rt(this,t)},!k&&q&&p.implementsDomRange?(st=S,it.isBackward=function(){return st(this)}):st=it.isBackward=function(){return!1},it.isBackwards=it.isBackward,it.toString=function(){for(var t=[],e=0,i=this.rangeCount;e<i;++e)t[e]=""+this._ranges[e];return t.join("")},it.collapse=function(e,i){lt(this,e);var n=t.createRange(e);n.collapseToPoint(e,i),this.setSingleRange(n),this.isCollapsed=!0},it.collapseToStart=function(){if(!this.rangeCount)throw new u("INVALID_STATE_ERR");var t=this._ranges[0];this.collapse(t.startContainer,t.startOffset)},it.collapseToEnd=function(){if(!this.rangeCount)throw new u("INVALID_STATE_ERR");var t=this._ranges[this.rangeCount-1];this.collapse(t.endContainer,t.endOffset)},it.selectAllChildren=function(e){lt(this,e);var i=t.createRange(e);i.selectNodeContents(e),this.setSingleRange(i)},M?it.setBaseAndExtent=function(t,e,i,n){this.nativeSelection.setBaseAndExtent(t,e,i,n),this.refresh()}:T&&(it.setBaseAndExtent=function(e,i,n,o){at(e,i),at(n,o),lt(this,e),lt(this,n);var s=t.createRange(node),l=-1==r.comparePoints(e,i,n,o);l?s.setStartAndEnd(n,o,e,i):s.setStartAndEnd(e,i,n,o),this.setSingleRange(s,l)}),it.deleteFromDocument=function(){if(D&&C&&this.docSelection.type==g){for(var t,e=this.docSelection.createRange();e.length;)t=e.item(0),e.remove(t),r.removeNode(t);this.refresh()}else if(this.rangeCount){var i=this.getAllRanges();if(i.length){this.removeAllRanges();for(var n=0,o=i.length;n<o;++n)i[n].deleteContents();this.addRange(i[o-1])}}},it.eachRange=function(t,e){for(var i=0,n=this._ranges.length;i<n;++i)if(t(this.getRangeAt(i)))return e},it.getAllRanges=function(){var t=[];return this.eachRange((function(e){t.push(e)})),t},it.setSingleRange=function(t,e){this.removeAllRanges(),this.addRange(t,e)},it.callMethodOnEachRange=function(t,e){var i=[];return this.eachRange((function(n){i.push(n[t].apply(n,e||[]))})),i},it.setStart=dt(!0),it.setEnd=dt(!1),t.rangePrototype.select=function(t){tt(this.getDocument()).setSingleRange(this,t)},it.changeEachRange=function(t){var e=[],i=this.isBackward();this.eachRange((function(i){t(i),e.push(i)})),this.removeAllRanges(),i&&1==e.length?this.addRange(e[0],"backward"):this.setRanges(e)},it.containsNode=function(t,e){return this.eachRange((function(i){return i.containsNode(t,e)}),!0)||!1},it.getBookmark=function(t){return{backward:this.isBackward(),rangeBookmarks:this.callMethodOnEachRange("getBookmark",[t])}},it.moveToBookmark=function(e){for(var i,n,o=[],s=0;i=e.rangeBookmarks[s++];)(n=t.createRange(this.win)).moveToBookmark(i),o.push(n);e.backward?this.setSingleRange(o[0],"backward"):this.setRanges(o)},it.saveRanges=function(){return{backward:this.isBackward(),ranges:this.callMethodOnEachRange("cloneRange")}},it.restoreRanges=function(t){this.removeAllRanges();for(var e,i=0;e=t.ranges[i];++i)this.addRange(e,t.backward&&0==i)},it.toHtml=function(){var t=[];return this.eachRange((function(e){t.push(d.toHtml(e))})),t.join("")},p.implementsTextRange&&(it.getNativeTextRange=function(){var i;if(i=this.docSelection){var n=i.createRange();if(G(n))return n;throw e.createError("getNativeTextRange: selection is a control selection")}if(this.rangeCount>0)return t.WrappedTextRange.rangeToTextRange(this.getRangeAt(0));throw e.createError("getNativeTextRange: selection contains no range")}),it.getName=function(){return"WrappedSelection"},it.inspect=function(){return ct(this)},it.detach=function(){J(this.win,"delete"),K(this)},Z.detachAll=function(){J(null,"deleteAll")},Z.inspect=ct,Z.isDirectionBackward=v,t.Selection=Z,t.selectionPrototype=it,t.addShimListener((function(t){void 0===t.getSelection&&(t.getSelection=function(){return tt(t)}),t=null}))}));var D=!1,z=function(t){D||(D=!0,!S.initialized&&S.config.autoInitialize&&q())};return x&&("complete"==document.readyState?z():(l(document,"addEventListener")&&document.addEventListener("DOMContentLoaded",z,!1),b(window,"load",z))),S}();var i=e.exports;class n{constructor(t){this.builder=t,this.dom=this.builder.dom}cellSelected(){return this.builder.doc.querySelector(".cell-active")}rowSelected(){return this.builder.doc.querySelector(".row-active")}builderStuff(){return document.querySelector("#_cbhtml")}cellNext(t){const e=this.dom;let i=t.nextElementSibling;return i?e.hasClass(i,"is-row-tool")||e.hasClass(i,"is-col-tool")||e.hasClass(i,"is-rowadd-tool")||e.hasClass(i,"is-row-overlay")?null:i:null}out(t){if(this.builder){let e=this.builder.opts.lang[t];return e||(this.builder.checkLang&&console.log(t),t)}return t}showMessage(t,e){const i=this.dom;let n="";n=`<div class="is-modal modalmessage" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-top: 15px;padding-bottom: 20px;max-width: 450px;">\n <div style="margin: 20px 0 30px;font-size: 17px;">${t}</div>\n <button title="${this.out("Ok")}" class="input-ok classic">${this.out("Ok")}</button>\n </div>\n </div>`;const o=this.builder.builderStuff;let s=o.querySelector(".modalmessage");s||(i.appendHtml(o,n),s=o.querySelector(".modalmessage")),this.showModal(s,!1,(()=>{s.parentNode.removeChild(s)}));let r=s.querySelector(".modalmessage .input-ok");i.addEventListener(r,"click",(()=>{this.hideModal(s),s.parentNode&&s.parentNode.removeChild(s)})),r.focus(),e&&r.classList.add("focus-outline")}showChoice(t,e,i){const n=this.dom;let o="";o=`<div class="is-modal modalmessage" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-top: 15px;padding-bottom: 20px;max-width: 450px;">\n <div style="margin: 20px 0 30px;font-size: 17px;">${t}</div>\n\n <div style="display:flex;">\n <button title="${this.out("Cancel")}" class="input-cancel classic-secondary" style="width:100%;margin-right:4px;">${this.out("Cancel")}</button>\n <button title="${e}" class="input-ok classic-primary" style="width:100%">${e}</button>\n </div>\n </div>\n </div>`;const s=this.builder.builderStuff;let r=s.querySelector(".modalmessage");r||(n.appendHtml(s,o),r=s.querySelector(".modalmessage")),this.showModal(r,!1,(()=>{r.parentNode.removeChild(r),i(!1)}));let l=r.querySelector(".modalmessage .input-cancel");n.addEventListener(l,"click",(()=>{this.hideModal(r),r.parentNode.removeChild(r),i(!1)})),l.focus();let a=r.querySelector(".modalmessage .input-ok");n.addEventListener(a,"click",(()=>{this.hideModal(r),r.parentNode.removeChild(r),i(!0)}))}confirm(t,e,i,n){if(!this.builder.deleteConfirm)return void e(!0);const o=this.dom;let s="";s=`<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-bottom:20px;">\n <div style="margin: 20px 0 30px;font-size: 14px;">${t}</div>\n <button title="${this.out("Delete")}" class="input-ok classic focus-warning">${this.out("Delete")}</button>\n </div>\n </div>`,i&&(s=`<div class="is-modal is-confirm" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="padding-bottom:20px;">\n <div style="margin: 20px 0 30px;font-size: 14px;">${t}</div>\n <button title="${this.out("Cancel")}" class="input-cancel classic-secondary">${this.out("Cancel")}</button>\n <button title="${n}" class="input-ok classic-primary">${n}</button>\n </div>\n </div>`);const r=this.builder.builderStuff;let l=r.querySelector(".is-confirm");l||(o.appendHtml(r,s),l=r.querySelector(".is-confirm")),this.showModal(l,!1,(()=>{l.parentNode.removeChild(l),e(!1)}),!0);let a=l.querySelector(".is-confirm .input-ok");o.addEventListener(a,"click",(()=>{this.hideModal(l),l.parentNode.removeChild(l),e(!0)}));let d=l.querySelector(".is-confirm .input-cancel");o.addEventListener(d,"click",(t=>{this.hideModal(l),l.parentNode.removeChild(l),e(!1),t.preventDefault(),t.stopImmediatePropagation()}))}showRtePop(t,e,i){const n=this.dom;t.style.display="flex",e&&e(),n.removeClass(t,"deactive"),n.addClass(t,"active");const o=e=>{t.contains(e.target)||i.contains(e.target)||e.target.closest(".pickcolormore")||(this.hideRtePop(t),t.removeEventListener("keydown",s),document.removeEventListener("click",o),this.builder.iframeDocument&&this.builder.doc.removeEventListener("click",o))},s=e=>{27===e.keyCode&&(this.hideRtePop(t),t.removeEventListener("keydown",s),document.removeEventListener("click",o),this.builder.iframeDocument&&this.builder.doc.removeEventListener("click",o))};t.addEventListener("keydown",s),document.addEventListener("click",o),this.builder.iframeDocument&&this.builder.doc.addEventListener("click",o)}hideRtePop(t){const e=this.dom;t.style.display="",e.removeClass(t,"active"),e.addClass(t,"deactive")}clearAllEventListener(t){for(let e=0;e<10;e++)t.removeEventListener("keydown",this.handlePopKeyDown),document.removeEventListener("click",this.handlePopClickOut),this.builder.iframeDocument&&this.builder.doc.removeEventListener("click",this.handlePopClickOut)}showPop(t,e,i){const n=this.dom;let o=document.querySelectorAll(".is-pop.active");Array.prototype.forEach.call(o,(e=>{e!==t&&(e.style.display="",n.removeClass(e,"active"),e.setAttribute("aria-hidden",!0))})),this.clearAllEventListener(t),t.style.display="flex",n.addClass(t,"active"),t.setAttribute("aria-hidden",!1),this.setupTabKeys(t),t.focus({preventScroll:!0}),this.handlePopClickOut=n=>{t.contains(n.target)||i.contains(n.target)||(this.hidePop(t),e&&e())},this.handlePopKeyDown=i=>{27===i.keyCode&&(this.hidePop(t),e&&e())},t.addEventListener("keydown",this.handlePopKeyDown),document.addEventListener("click",this.handlePopClickOut),this.builder.iframeDocument&&this.builder.doc.addEventListener("click",this.handlePopClickOut)}hidePop(t){const e=this.dom;t.style.display="",e.removeClass(t,"active"),t.setAttribute("aria-hidden",!0),this.clearAllEventListener(t)}setupTabKeys(t){let e=t.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])');if(0===e.length)return;let i=e[0],n=e[e.length-1];n.addEventListener("keydown",(n=>{9!==n.which||n.shiftKey||(n.preventDefault(),e=t.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])'),i=e[0],i.focus())})),i.addEventListener("keydown",(t=>{9===t.which&&t.shiftKey&&(t.preventDefault(),n.focus())}));t.querySelectorAll("iframe").forEach((t=>{t.addEventListener("focus",(()=>{const e=t.contentWindow.document.querySelectorAll('a[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]):not([tabindex="-1"]), iframe, object, embed, *[tabindex]:not([tabindex="-1"])');if(0===e.length)return;let i=e[0];i&&i.focus()}))}))}showModal(t,e,i,n){const o=this.dom;o.addClass(t,"active"),t.setAttribute("aria-hidden",!1);const s=e=>{if(27===e.keyCode){o.hasClass(t,"active")&&this.hideModal(t),t.removeEventListener("keydown",s);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",d),i&&i()}};t.addEventListener("keydown",s);let r=t.querySelector(".is-tab-content.active");r?(r.focus(),this.builder.tabs.setupTabKey(r)):(this.setupTabKeys(t),t.focus());let l=!1;if(this.builder?this.builder.opts.animateModal&&(l=!0,n||(l=!1)):n&&(l=!0),l&&this.builder){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{t.style.transform=`scale(${this.builder.opts.zoom-.02})`,t.style.WebkitTransform=`scale(${this.builder.opts.zoom-.02})`,t.style.MozTransform=`scale(${this.builder.opts.zoom-.02})`,t.setAttribute("scaled-down","1")}))}const a=t.querySelector(".is-modal-overlay");if(a&&a.parentNode.removeChild(a),!t.querySelector(".is-modal-overlay")){let n;if(n=e?'<div class="is-modal-overlay overlay-stay"></div>':'<div class="is-modal-overlay"></div>',t.insertAdjacentHTML("afterbegin",n),!e){let e=t.querySelector(".is-modal-overlay");o.addEventListener(e,"click",(()=>{this.hideModal(t),t.removeEventListener("keydown",s);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",d),i&&i()}))}}const d=()=>{o.hasClass(t,"active")&&this.hideModal(t),t.removeEventListener("keydown",s);const e=t.querySelector(".is-modal-close");e&&e.removeEventListener("click",d),i&&i()},c=t.querySelector(".is-modal-close");c&&o.addEventListener(c,"click",d)}_hideModal(t){let e=t.querySelector(".is-modal-overlay");e?e.classList.contains("overlay-stay")?(this.hideModal(t),t.dispatchEvent(new KeyboardEvent("keydown",{key:"e",keyCode:27,code:"KeyE",which:27,shiftKey:!1,ctrlKey:!1,metaKey:!1}))):e.click():(this.hideModal(t),t.dispatchEvent(new KeyboardEvent("keydown",{key:"e",keyCode:27,code:"KeyE",which:27,shiftKey:!1,ctrlKey:!1,metaKey:!1})))}hideModal(t){if(t.setAttribute("aria-hidden",!0),this.builder){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{t.getAttribute("scaled-down")&&(t.style.transform=`scale(${this.builder.opts.zoom})`,t.style.WebkitTransform=`scale(${this.builder.opts.zoom})`,t.style.MozTransform=`scale(${this.builder.opts.zoom})`,t.removeAttribute("scaled-down"))}))}this.dom.removeClass(t,"active")}refreshModuleLayout(t){let e=decodeURIComponent(t.getAttribute("data-html"));e=e.replace(/{id}/g,this.builder.util.makeId()),t.innerHTML="";let i=document.createRange();i.setStart(t,0),t.appendChild(i.createContextualFragment(e));let n=t.querySelectorAll("[data-subblock]");var o=1;Array.prototype.forEach.call(n,(e=>{t.getAttribute("data-html-"+o)&&(e.innerHTML=decodeURIComponent(t.getAttribute("data-html-"+o)),e.contentEditable=!0),o++}))}removeColClasses(t){t.classList.remove("full"),t.classList.remove("two-third"),t.classList.remove("two-fourth"),t.classList.remove("two-fifth"),t.classList.remove("two-sixth"),t.classList.remove("half"),t.classList.remove("third"),t.classList.remove("fourth"),t.classList.remove("fifth"),t.classList.remove("sixth"),t.classList.remove("seventh"),t.classList.remove("eighth"),t.classList.remove("ninth"),t.classList.remove("tenth"),t.classList.remove("eleventh"),t.classList.remove("twelfth")}getAllColumns(t){let e=[];const i=this.dom;return i.elementChildren(t).forEach((t=>{i.hasClass(t,"is-row-tool")||i.hasClass(t,"is-col-tool")||i.hasClass(t,"is-rowadd-tool")||i.hasClass(t,"is-row-overlay")||e.push(t)})),e}fixLayout(t){const e=this.dom;let i=!1,n=!1;if(Array.from(t.children).map((e=>{e.classList.contains("is-row-tool")||e.classList.contains("is-col-tool")||e.classList.contains("is-rowadd-tool")||(e.getAttribute("data-html")?(e.style.width||(e.style.width="50%",e.style.flex="0 0 auto"),1===this.getAllColumns(t).length&&(e.style.width="",e.style.flex="")):(e.style.width="",e.style.flex=""),e.classList.contains("sm-hidden")&&(i=!0),e.classList.contains("md-hidden")&&(n=!0))})),i?t.classList.add("sm-autofit"):t.classList.remove("sm-autofit"),n?t.classList.add("md-autofit"):t.classList.remove("md-autofit"),this.builder.useDefaultGrid){return e.elementChildren(t).forEach((t=>{e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay")||this.removeColClasses(t)})),void Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}let o=3;t.querySelector(".is-row-overlay")&&(o=4);const s=t.childElementCount-o,r=this.builder.opts.row;let l=this.builder.opts.cols;const a=this.builder.opts.colequal;if(a.length>0){return e.elementChildren(t).forEach((t=>{if(!(e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay"))){for(let i=0;i<=l.length-1;i++)e.removeClass(t,l[i]);for(let i=0;i<=a.length-1;i++)if(a[i].length===s){e.addClass(t,a[i][0]);break}1===s&&e.addClass(t,l[l.length-1])}})),void Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}if(""!==r&&l.length>0){let i=0;e.elementChildren(t).forEach((t=>{if(!(e.hasClass(t,"is-row-tool")||e.hasClass(t,"is-col-tool")||e.hasClass(t,"is-rowadd-tool")||e.hasClass(t,"is-row-overlay"))){-1!==t.className.indexOf("col-md-")||(-1!==t.className.indexOf("col-sm-")?l=["col-sm-1","col-sm-2","col-sm-3","col-sm-4","col-sm-5","col-sm-6","col-sm-7","col-sm-8","col-sm-9","col-sm-10","col-sm-11","col-sm-12"]:-1!==t.className.indexOf("col-xs-")?l=["col-xs-1","col-xs-2","col-xs-3","col-xs-4","col-xs-5","col-xs-6","col-xs-7","col-xs-8","col-xs-9","col-xs-10","col-xs-11","col-xs-12"]:-1!==t.className.indexOf("col-lg-")?l=["col-lg-1","col-lg-2","col-lg-3","col-lg-4","col-lg-5","col-lg-6","col-lg-7","col-lg-8","col-lg-9","col-lg-10","col-lg-11","col-lg-12"]:-1!==t.className.indexOf("col-xl-")?l=["col-xl-1","col-xl-2","col-xl-3","col-xl-4","col-xl-5","col-xl-6","col-xl-7","col-xl-8","col-xl-9","col-xl-10","col-xl-11","col-xl-12"]:-1!==t.className.indexOf("col-xxl-")&&(l=["col-xxl-1","col-xxl-2","col-xxl-3","col-xxl-4","col-xxl-5","col-xxl-6","col-xxl-7","col-xxl-8","col-xxl-9","col-xxl-10","col-xxl-11","col-xxl-12"])),i++;for(var n=0;n<=l.length-1;n++)e.removeClass(t,l[n]);1===s&&e.addClass(t,l[11]),2===s&&e.addClass(t,l[5]),3===s&&e.addClass(t,l[3]),4===s&&e.addClass(t,l[2]),5===s&&(5===i?e.addClass(t,l[3]):e.addClass(t,l[1])),6===s&&e.addClass(t,l[1]),7===s&&(i>=6?e.addClass(t,l[0]):e.addClass(t,l[1])),8===s&&(i>=5?e.addClass(t,l[0]):e.addClass(t,l[1])),9===s&&(i>=4?e.addClass(t,l[0]):e.addClass(t,l[1])),10===s&&(i>=3?e.addClass(t,l[0]):e.addClass(t,l[1])),11===s&&(i>=2?e.addClass(t,l[0]):e.addClass(t,l[1])),12===s&&e.addClass(t,l[0])}}))}Array.from(t.children).map((t=>{t.classList.contains("is-row-tool")||t.classList.contains("is-rowadd-tool")||t.classList.contains("is-col-tool")||t.getAttribute("data-module")&&this.refreshModuleLayout(t)}))}addContent(t,e,i){const n=this.dom;this.builder.opts.onAdd&&(t=this.builder.opts.onAdd(t));const o=this.cellSelected();let s;if(o)s=o.parentNode;else{if(s=this.builder.doc.querySelector(".row-active"),!s)return;e="row"}if("cell"===e||"cell-left"===e||"cell-right"===e){let r=4;this.builder.maxColumns&&(r=this.builder.maxColumns);let l,a=3;if(s.querySelector(".is-row-overlay")&&(a=4),s.childElementCount>=r+a)return alert(this.out("You have reached the maximum number of columns")),!1;if(this.builder.uo.saveForUndo(),""===this.builder.opts.row){let e=this.builder.opts.cellFormat,i=e.indexOf("</");t=e.substring(0,i)+t+e.substring(i),l=this.createElementFromHTML(t)}else{l=o.cloneNode(!0),l.removeAttribute("data-noedit"),l.removeAttribute("data-protected"),l.removeAttribute("data-module"),l.removeAttribute("data-module-desc"),l.removeAttribute("data-dialog-width"),l.removeAttribute("data-html"),l.removeAttribute("data-settings");for(let t=1;t<=20;t++)l.removeAttribute("data-html-"+t);l.removeAttribute("data-noedit"),n.removeClass(l,"cell-active"),n.removeClass(l,"is-light-text"),n.removeClass(l,"is-dark-text"),n.removeClass(l,"padding-0"),n.removeClass(l,"p-0"),l.removeAttribute("data-click"),l.removeAttribute("style"),i&&l.setAttribute(i,""),l.innerHTML=t}s.insertBefore(l,o),"cell"!==e&&"cell-right"!==e||n.moveAfter(l,o);let d=this.builder.doc.querySelector(".builder-active");d&&this.builder.applyBehaviorOn(d),this.fixLayout(s),l.click()}if("row"===e){let e,o;if(this.builder.uo.saveForUndo(),""===this.builder.opts.row){e=this.htmlToElement(this.builder.opts.rowFormat);let s=this.builder.opts.cellFormat,r=s.indexOf("</");t=s.substring(0,r)+t+s.substring(r);let l=n.elementChildren(e);for(;l.length>0&&(l=l[0],n.elementChildren(l).length>0);)l=n.elementChildren(l);l.innerHTML=t,o=l.firstChild,i&&o.setAttribute(i,"")}else o=n.createElement("div"),n.addClass(o,this.builder.opts.cols[this.builder.opts.cols.length-1]),o.innerHTML=t,i&&o.setAttribute(i,""),e=n.createElement("div"),n.addClass(e,this.builder.opts.row),n.appendChild(e,o);s.parentNode.insertBefore(e,s),n.moveAfter(e,s);let r=this.builder.doc.querySelector(".builder-active");r&&this.builder.applyBehaviorOn(r),o.click()}if("elm"===e){let e=this.builder.activeElement;if(!e)return;this.builder.uo.saveForUndo();let i=e;i.insertAdjacentHTML("afterend",t);let n=this.builder.doc.querySelector(".builder-active");n&&this.builder.applyBehaviorOn(n);let o=i.nextElementSibling;if("img"===o.tagName.toLowerCase()){let t=setInterval((()=>{o.complete&&(o.click(),clearInterval(t))}),30)}else o.click();let s=this.builder.builderStuff.querySelector(".quickadd");this.hidePop(s)}if(this.builder.useCssClasses){let t=this.builder.doc.querySelector(".builder-active");t&&n.contentReformat(t,this.builder.cssClasses)}this.builder.opts.onChange(),this.builder.opts.onRender()}htmlToElement(t){var e=document.createElement("template");return t=t.trim(),e.innerHTML=t,e.content.firstChild}addSnippet(t,e,i){this.builder.uo.saveForUndo();const n=this.dom;let o,s,r,l=!1;const a=this.builder.builderStuff.querySelector(".quickadd").getAttribute("data-mode");if(!e||"cell"!==a&&"cell-left"!==a&&"cell-right"!==a){if(e&&"row"===a){let e;if(r=document.createElement("div"),r.className=this.builder.opts.cols[this.builder.opts.cols.length-1],r.innerHTML=t,i&&r.setAttribute("data-noedit",""),o=document.createElement("div"),o.className=this.builder.opts.row,o.appendChild(r),s=this.builder.cellSelected(),s?e=s.parentNode:(e=this.builder.doc.querySelector(".row-active"),e||(l=!0)),l){const t=this.builder.doc.querySelectorAll(".is-builder"),i=t[t.length-1],o=n.elementChildren(i);e=o[o.length-1]}e.parentNode.insertBefore(o,e),n.moveAfter(o,e);let a=this.builder.doc.querySelector(".builder-active");a||(a=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(a),r.click(),o.className=o.className.replace("row-outline",""),this.builder.util.hideColumnTool()}else{if(e)return void(i?this.addContent(t,a,"data-noedit"):this.addContent(t,a));{var d=document.createElement("div");d.innerHTML=t;var c=d.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(c,(e=>{t=(t=(t=decodeURIComponent(e.getAttribute("data-html"))).replace(/{id}/g,this.makeId())).replace(/<script>/g,""+(this.builder.nonce?`<script nonce="${this.builder.nonce}">`:"<script>"));for(var i=1;i<=20;i++)t=t.replace("[%HTML"+i+"%]",void 0===e.getAttribute("data-html-"+i)?"":decodeURIComponent(e.getAttribute("data-html-"+i)));e.innerHTML=t})),1===d.childNodes.length&&1===d.childNodes[0].childNodes.length&&("cell"===a||"cell-left"===a||"cell-right"===a)){const t=this.cellSelected();let e=t.parentNode,i=4;if(this.builder.maxColumns&&(i=this.builder.maxColumns),e.querySelector(".is-row-overlay")){if(e.childElementCount>=i+4)return alert(this.out("You have reached the maximum number of columns")),!1}else if(e.childElementCount>=i+3)return alert(this.out("You have reached the maximum number of columns")),!1;this.builder.uo.saveForUndo();let n=d.childNodes[0].childNodes[0];var u=document.createRange();t.parentNode.insertBefore(u.createContextualFragment(n.outerHTML),t),"cell"!==a&&"cell-right"!==a||(t.parentNode.insertBefore(t.previousElementSibling,t),t.parentNode.insertBefore(t,t.previousElementSibling));let o=this.builder.doc.querySelector(".builder-active");return o||(o=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(o),this.fixLayout(e),"cell"===a||"cell-right"===a?t.nextElementSibling.click():t.previousElementSibling.click(),this.builder.opts.onChange(),void this.builder.opts.onRender()}let e;if(s=this.builder.activeCol,s?e=s.parentNode:(e=this.builder.doc.querySelector(".row-active"),e||(l=!0)),l){const t=this.builder.doc.querySelectorAll(".is-builder"),i=t[t.length-1],o=n.elementChildren(i);e=o[o.length-1]}u=document.createRange(),e.parentNode.insertBefore(u.createContextualFragment(d.innerHTML),e.nextSibling),o=d.childNodes[0],o=e.nextElementSibling;let i=this.builder.doc.querySelector(".builder-active");i||(i=this.builder.doc.querySelector(".is-builder")),this.builder.applyBehaviorOn(i),r=o.querySelector("div"),r&&r.click(),o.className=o.className.replace("row-outline",""),this.builder.util.hideColumnTool()}}if(this.builder.useCssClasses){let t=this.builder.doc.querySelector(".builder-active");t&&n.contentReformat(t,this.builder.cssClasses)}this.builder.opts.onChange(),this.builder.opts.onRender()}else i?this.addContent(t,a,"data-noedit"):this.addContent(t,a)}clearActiveCell(){const t=this.builder.builderStuff;if(!t)return;if(t.getAttribute("preventDevault"))return void setTimeout((()=>{t.removeAttribute("preventDevault")}),30);let e=this.builder.doc.getElementsByClassName("cell-active");for(;e.length;)e[0].classList.remove("cell-active");for(e=this.builder.doc.getElementsByClassName("row-outline");e.length;)e[0].classList.remove("row-outline");for(e=this.builder.doc.getElementsByClassName("row-active");e.length;)e[0].classList.remove("row-active");for(e=this.builder.doc.getElementsByClassName("builder-active");e.length;)e[0].classList.remove("builder-active");this.builder.activeCol=null,this.builder.dom.removeClass(this.builder.doc.body,"content-edit")}clearAfterUndoRedo(){const t=this.dom,e=this.builder.builderStuff;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none",this.builder.activeSpacer=null,this.builder.activeCodeBlock=null,this.builder.activeLink=null,this.builder.activeLinkButton=null,this.builder.activeButton=null,this.builder.activeIframe=null,this.builder.activeTd=null,this.builder.activeTable=null,this.builder.activeModule=null;const n=this.builder.doc.querySelectorAll(".icon-active");Array.prototype.forEach.call(n,(e=>{t.removeClass(e,"icon-active")})),this.builder.activeIcon=null;let o=e.querySelector(".is-rte-tool").querySelectorAll("button");Array.prototype.forEach.call(o,(e=>{t.removeClass(e,"on")})),o=e.querySelector(".is-elementrte-tool").querySelectorAll("button"),Array.prototype.forEach.call(o,(e=>{t.removeClass(e,"on")}));let s=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(s,(t=>{t.style.display=""}))}hidePops(){const t=this.dom,e=this.builder.builderStuff;let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}));let n=e.querySelectorAll(".is-pop.active");Array.prototype.forEach.call(n,(e=>{e.style.transition="all 200ms ease",setTimeout((()=>{e.style.opacity="0"}),10),setTimeout((()=>{e.style.display="",t.removeClass(e,"active"),e.style.opacity="",e.style.transition=""}),200)})),this.builder.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none"}hideControls(){const t=this.dom;let e=this.builder.builderStuff.querySelectorAll(".is-tool");Array.prototype.forEach.call(e,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(e=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(e,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none"}clearActiveElement(t){const e=this.dom,i=this.builder.builderStuff,n=this.builder.doc.querySelectorAll(".icon-active");Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"icon-active")}));let o=this.builder.doc.querySelectorAll(".elm-inspected");if(Array.prototype.forEach.call(o,(t=>{e.removeClass(t,"elm-inspected")})),o=this.builder.doc.querySelectorAll(".elm-active"),Array.prototype.forEach.call(o,(t=>{e.removeClass(t,"elm-active")})),i.querySelector(".is-element-tool").style.display="",i.querySelector("#divLinkTool").style.display="",t){this.builder.activeIcon=null,this.builder.inspectedElement=null,this.builder.activeElement=null;let t=i.querySelector(".is-rte-tool");t&&(t.style.display="none");let e=i.querySelector(".is-elementrte-tool");e&&(e.style.display="flex");let n=i.querySelector(".rte-more-options");n&&(n.style.display="");let o=i.querySelector(".elementrte-more-options");o&&(o.style.display="");let s=e.querySelectorAll("button[data-align]");Array.prototype.forEach.call(s,(t=>{t.style.display="none"})),this.builder.rte.positionToolbar()}}clearControls(){const t=this.dom,e=this.builder.builderStuff;if(!e)return;if(e.getAttribute("preventDevault"))return void setTimeout((()=>{e.removeAttribute("preventDevault")}),30);let i=e.querySelectorAll(".is-tool");Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")})),this.builder.iframe&&(i=this.builder.contentStuff.querySelectorAll(".is-tool"),Array.prototype.forEach.call(i,(e=>{e.style.display="",t.removeClass(e,"active")}))),this.builder.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none",this.builder.activeSpacer=null,this.builder.activeCodeBlock=null,this.builder.activeLink=null,this.builder.activeLinkButton=null,this.builder.activeButton=null,this.builder.activeIframe=null,this.builder.activeTd=null,this.builder.activeTable=null,this.builder.activeModule=null,this.builder.activeImage=null;const n=this.builder.doc.querySelectorAll(".icon-active");Array.prototype.forEach.call(n,(e=>{t.removeClass(e,"icon-active")})),this.builder.activeIcon=null;let o=this.builder.doc.querySelectorAll(".ovl");Array.prototype.forEach.call(o,(t=>{t.style.display="block"}));var s=e.querySelectorAll(".is-side.elementstyles");Array.prototype.forEach.call(s,(e=>{t.removeClass(e,"active")}));let r=this.builder.doc.querySelectorAll("[data-saveforundo]");if(Array.prototype.forEach.call(r,(t=>{t.removeAttribute("data-saveforundo")})),r=this.builder.doc.querySelectorAll(".elm-inspected"),Array.prototype.forEach.call(r,(e=>{t.removeClass(e,"elm-inspected")})),"auto"===this.builder.toolbarDisplay){let t=e.querySelector(".is-rte-tool");t&&(t.style.display="none");let i=e.querySelector(".is-elementrte-tool");i&&(i.style.display="none");let n=e.querySelector(".rte-more-options");n&&(n.style.display="");let o=e.querySelector(".elementrte-more-options");o&&(o.style.display="")}r=this.builder.doc.querySelectorAll(".elm-active"),Array.prototype.forEach.call(r,(e=>{t.removeClass(e,"elm-active")}));let l=e.querySelectorAll(".is-rte-pop");Array.prototype.forEach.call(l,(e=>{e.style.display="",t.removeClass(e,"active"),t.removeClass(e,"deactive")}));let a=e.querySelectorAll(".is-pop");Array.prototype.forEach.call(a,(e=>{e.style.display="",t.removeClass(e,"active"),e.setAttribute("aria-hidden",!0)})),this.builder.colTool.lockIndicator.style.display="",this.builder.resize&&this.builder.resize.destroy()}makeId(){let t="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let i=0;i<2;i++)t+=e.charAt(Math.floor(Math.random()*e.length));let i="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let t=0;t<5;t++)i+=n.charAt(Math.floor(Math.random()*n.length));return t+i}getSelection(){const t=this.dom.getSelection();if(!t)return;const e=t.anchorNode;if(e){const r=e.nodeType!==Node.TEXT_NODE&&e.nodeType!==Node.COMMENT_NODE?e:e.parentElement,l=r&&r.innerText===t.toString();let a=!1;for(var n=[],o=i.getSelection(),s=0;s<o.rangeCount;++s)n=n.concat(o.getRangeAt(s).getNodes());const d=["p","h1","h2","h3","h4","h5","h6","div","pre"];if(n.forEach((t=>{if(t.tagName){const e=t.tagName.toLowerCase();-1!==d.indexOf(e)&&(a=!0)}})),this.builder.selectionMulti=!!a,l||""===t.toString().trim()){this.builder.selectionElm=r;let t=r.nodeName.toLowerCase();this.builder.activeLink="a"===t?r:null}else this.builder.selectionText=t,this.builder.activeLink=null}}saveSelection(){if(this.builder.win.getSelection){let t=this.builder.win.getSelection();if(t.getRangeAt&&t.rangeCount){let e=[];for(let i=0,n=t.rangeCount;i<n;++i)e.push(t.getRangeAt(i));return this.builder.selection=e,e}}else if(this.builder.doc.selection&&this.builder.doc.selection.createRange)return this.builder.selection=this.builder.doc.selection.createRange(),this.builder.doc.selection.createRange();return this.builder.selection=null,null}restoreSelection(){let t=this.builder.selection;if(t)if(this.builder.win.getSelection){let o=this.builder.win.getSelection();if(this.builder.doc.body.createTextRange){var e=this.builder.doc.body.createTextRange();e.collapse(),e.select()}else this.builder.win.getSelection?this.builder.win.getSelection().empty?this.builder.win.getSelection().empty():this.builder.win.getSelection().removeAllRanges&&this.builder.win.getSelection().removeAllRanges():this.builder.doc.selection&&this.builder.doc.selection.empty();for(var i=0,n=t.length;i<n;++i)o.addRange(t[i])}else this.builder.doc.selection&&t.select&&t.select()}cleanHTML(t,e){let i,n=t.replace(/(\n|\r| class=(")?Mso[a-zA-Z]+(")?)/g," "),o=new RegExp("\x3c!--(.*?)--\x3e","g");n=n.replace(o,""),i=e?new RegExp("<(/)*(meta|link|span|\\?xml:|st1:|o:|font)(.*?)>","gi"):new RegExp("<(/)*(meta|link|\\?xml:|st1:|o:|font)(.*?)>","gi"),n=n.replace(i,"");let s,r=["style","script","applet","embed","noframes","noscript"];for(let t=0;t<r.length;t++)i=new RegExp("<"+r[t]+".*?"+r[t]+"(.*?)>","gi"),n=n.replace(i,"");s=e?["style","start"]:["start"];for(let t=0;t<s.length;t++){let e=new RegExp(" "+s[t]+'="(.*?)"',"gi");n=n.replace(e,"")}return n=n.replace(/<(!|script[^>]*>.*?<\/script(?=[>\s])|\/?(\?xml(:\w+)?|img|meta|link|style|\w:\w+)(?=[\s/>]))[^>]*>/gi,""),n=n.replace(/<(\/?)s>/gi,"<$1strike>"),n=n.replace(/&nbsp;/gi," "),n=n.replace(/background-color: rgba\(200, 200, 201, 0.11\);/gi,""),n=n.replace(/background-color: rgba\(200, 200, 201, 0.11\)/gi,""),n}checkEmpty(){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(t,(t=>{this.checkEmptyOn(t)}))}checkEmptyOn(t){const e=this.dom,i=e.elementChildren(t);let n=!0;if(i.forEach((t=>{e.hasClass(t,"row-add-initial")||e.hasClass(t,"dummy-space")||(n=!1)})),n){let i=t.querySelector(".row-add-initial");i||(t.innerHTML=`<button type="button" class="row-add-initial">${this.out("Empty")}<br><span class="block">${this.out("+ Click to add content")}</span></div>`,i=t.querySelector(".row-add-initial")),i.addEventListener("click",(()=>{this.clearActiveCell();const n=this.builder.doc.querySelectorAll(this.builder.opts.container);Array.prototype.forEach.call(n,(t=>{e.removeClass(t,"builder-active")})),e.addClass(t,"builder-active"),e.addClass(i,"row-active");let o=this.builder.builderStuff.querySelector(".quickadd");o.querySelector(".is-pop-tabs").style.display="none";const s=window.innerHeight;let r,l;if(this.builder.iframe){let t=this.builder.iframe.getBoundingClientRect().top,e=this.builder.iframe.getBoundingClientRect().left;r=i.getBoundingClientRect().top+t,l=i.getBoundingClientRect().left+(i.offsetWidth*this.builder.opts.zoom/2-11)+e}else r=i.getBoundingClientRect().top,l=i.getBoundingClientRect().left+i.offsetWidth*this.builder.opts.zoom/2-11;o.style.display="flex",this.showPop(o,!1,i);const a=o.offsetWidth,d=o.offsetHeight;s-r>d?(r=r+i.offsetHeight*this.builder.opts.zoom-19,o.style.top=r+window.pageYOffset+27+"px",o.style.left=l-a/2+7+"px",e.removeClass(o,"arrow-bottom"),e.removeClass(o,"arrow-right"),e.removeClass(o,"arrow-left"),e.removeClass(o,"center"),e.addClass(o,"arrow-top"),e.addClass(o,"center")):(o.style.top=r+window.pageYOffset-d-8+"px",o.style.left=l-a/2+7+"px",e.removeClass(o,"arrow-top"),e.removeClass(o,"arrow-right"),e.removeClass(o,"arrow-left"),e.removeClass(o,"center"),e.addClass(o,"arrow-bottom"),e.addClass(o,"center")),o.setAttribute("data-mode","row")}))}else{let e=t.querySelector(".row-add-initial");e&&e.parentNode.removeChild(e)}}clearPreferences(){localStorage.removeItem("_theme"),localStorage.removeItem("_zoom"),localStorage.removeItem("_buildermode"),localStorage.removeItem("_editingtoolbar"),localStorage.removeItem("_editingtoolbardisplay"),localStorage.removeItem("_hidecelltool"),localStorage.removeItem("_rowtool"),localStorage.removeItem("_hideelementtool"),localStorage.removeItem("_hidesnippetaddtool"),localStorage.removeItem("_outlinemode"),localStorage.removeItem("_hiderowcoloutline"),localStorage.removeItem("_outlinestyle"),localStorage.removeItem("_hideelementhighlight"),localStorage.removeItem("_opensnippets"),localStorage.removeItem("_toolstyle"),localStorage.removeItem("_snippetssidebardisplay"),localStorage.removeItem("_htmlview"),localStorage.removeItem("_pasteresult"),localStorage.removeItem("_livepreview"),localStorage.removeItem("_dictation"),localStorage.removeItem("_mic"),localStorage.removeItem("_autosendcommand"),localStorage.removeItem("_sampleshown"),localStorage.removeItem("_scrollableeditor"),localStorage.removeItem("_animatedsorting"),localStorage.removeItem("_addbuttonplace"),localStorage.removeItem("_hiderowtool"),localStorage.removeItem("_dragwithouthandle"),localStorage.removeItem("_advancedhtmleditor"),localStorage.removeItem("_hidecolhtmleditor"),localStorage.removeItem("_hiderowhtmleditor")}pasteHtmlAtCaret(t,e){var i,n;if(this.restoreSelection(),this.builder.win.getSelection){if(!this.builder.activeCol)return;if((i=this.builder.win.getSelection()).getRangeAt&&i.rangeCount){(n=i.getRangeAt(0)).deleteContents();var o=this.builder.doc.createElement("div");o.innerHTML=t;for(var s,r,l=this.builder.doc.createDocumentFragment();s=o.firstChild;)r=l.appendChild(s);var a=l.firstChild;n.insertNode(l),r&&((n=n.cloneRange()).setStartAfter(r),e?n.setStartBefore(a):n.collapse(!0),i.removeAllRanges(),this.builder.isTouchSupport||i.addRange(n))}}else if((i=this.builder.doc.selection)&&"Control"!==i.type){if(!this.builder.activeCol)return;var d=i.createRange();d.collapse(!0),i.createRange().pasteHTML(t),e&&((n=i.createRange()).setEndPoint("StartToStart",d),this.builder.isTouchSupport||n.select())}}refreshModule(){let t=this.builder.activeModule;if(!t)return;let e=1,i=t.querySelectorAll("[data-subblock]");Array.prototype.forEach.call(i,(i=>{let n=i.innerHTML;t.setAttribute("data-html-"+e,encodeURIComponent(n)),e++}));let n=decodeURIComponent(t.getAttribute("data-html"));n=n.replace(/{id}/g,this.makeId()),t.innerHTML="";var o=document.createRange();o.setStart(t,0),t.appendChild(o.createContextualFragment(n)),i=t.querySelectorAll("[data-subblock]");var s=1;Array.prototype.forEach.call(i,(e=>{t.getAttribute("data-html-"+s)&&(e.innerHTML=decodeURIComponent(t.getAttribute("data-html-"+s))),s++})),this.repositionColumnTool(!0),this.builder.onRefreshTool&&this.builder.onRefreshTool()}repositionColumnTool(){let t=this.builder.activeCol;if(!t)return;let e=t.parentNode;if(t.parentNode||(e=this.rowSelected()),this.colTool=e.querySelector(".is-col-tool"),!this.colTool)return;t.parentNode||(this.colTool.style.display="none"),this.colTool.style.left=t.offsetLeft+"px";const i=this.builder.builderStuff.querySelector(".columnmore.active");if(i){const t=this.colTool.querySelector(".cell-more");i.classList.add("transition1"),setTimeout((()=>{let e,n;if(this.builder.iframe){let i=this.builder.iframe.getBoundingClientRect().top+window.pageYOffset,o=this.builder.iframe.getBoundingClientRect().left+window.pageXOffset;e=t.getBoundingClientRect().top+i,n=t.getBoundingClientRect().left+o}else e=t.getBoundingClientRect().top+window.pageYOffset,n=t.getBoundingClientRect().left+window.pageXOffset;i.style.top=e+35+"px",i.style.left=n-7+"px",setTimeout((()=>{i.classList.remove("transition1")}),300)}),30)}}hideColumnTool(){this.builder.doc.querySelectorAll(".is-col-tool").forEach((t=>{t.style.display="none"}))}isTouchSupport(){return!!window.matchMedia("(pointer: coarse)").matches}detectIE(){return!!document.documentMode}LightenDarkenColor(t,e){var i=!1;"#"===t[0]&&(t=t.slice(1),i=!0);var n=parseInt(t,16),o=(n>>16)+e;o>255?o=255:o<0&&(o=0);var s=(n>>8&255)+e;s>255?s=255:s<0&&(s=0);var r=(255&n)+e;return r>255?r=255:r<0&&(r=0),(i?"#":"")+String("000000"+(r|s<<8|o<<16).toString(16)).slice(-6)}getUIStyles(){this.dom.appendHtml(this.builder.builderStuff,'\n <input type="text" class="style-helper-input" style="display:none;">\n <label class="style-helper-label" style="display:none;"></label>\n <button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <select class="style-helper-select" style="display:none;"><option value=""></option></select>\n\n <div class="style-helper modal-color"></div>\n <div class="style-helper modal-background"></div>\n <div class="style-helper button-pickcolor-border"></div>\n <div class="style-helper button-pickcolor-background"></div>\n\n <button class="style-helper base"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <div class="style-helper base on"></div>\n <div class="style-helper base hover"></div>\n\n <div class="style-helper snippet-color"></div>\n <div class="style-helper snippet-background"></div>\n <div class="style-helper snippet-tabs-background"></div>\n <div class="style-helper snippet-tab-item-background"></div>\n <div class="style-helper snippet-tab-item-background-active"></div>\n <div class="style-helper snippet-tab-item-background-hover"></div>\n <div class="style-helper snippet-tab-item-color"></div>\n\n <div class="style-helper snippet-more-item-background"></div>\n <div class="style-helper snippet-more-item-background-active"></div>\n <div class="style-helper snippet-more-item-background-hover"></div>\n <div class="style-helper snippet-more-item-color"></div>\n\n <div class="style-helper tabs-background"></div>\n <div class="style-helper tab-item-active-border-bottom"></div>\n <div class="style-helper tab-item-color"></div>\n <div class="style-helper tabs-more-background"></div>\n <div class="style-helper tabs-more-border"></div>\n <div class="style-helper tabs-more-item-color"></div>\n <div class="style-helper tabs-more-item-background-hover"></div>\n <div class="style-helper separator-color"></div>\n <div class="style-helper outline-color"></div>\n ');const t=(t,e)=>{const i=this.builder.builderStuff.querySelector(".style-helper"+t);return window.getComputedStyle(i,null).getPropertyValue(e)},e=this.builder.builderStuff.querySelector(".style-helper-input"),i=this.builder.builderStuff.querySelector(".style-helper-label"),n=this.builder.builderStuff.querySelector(".style-helper-select"),o=this.builder.builderStuff.querySelector(".style-helper-button-classic");this.builder.styleModalColor=t(".modal-color","background-color"),this.builder.styleModalBackground=t(".modal-background","background-color"),this.builder.styleButtonPickColorBorder=t(".button-pickcolor-border","border"),this.builder.styleButtonPickColorBackground=t(".button-pickcolor-background","background-color"),this.builder.styleToolBackground=t(".base","background-color"),this.builder.styleButtonColor=t(".base","color"),this.builder.styleButtonSvgFill=(()=>{const t=this.builder.builderStuff.querySelector(".style-helper.base");return window.getComputedStyle(t.querySelector("svg"),null).getPropertyValue("fill")})(),this.builder.styleButtonBackgroundHover=t(".base.hover","background-color"),this.builder.styleSnippetColor=t(".snippet-color","background-color"),this.builder.styleSnippetBackground=t(".snippet-background","background-color"),this.builder.styleSnippetTabsBackground=t(".snippet-tabs-background","background-color"),this.builder.styleSnippetTabItemBackground=t(".snippet-tab-item-background","background-color"),this.builder.styleSnippetTabItemBackgroundActive=t(".snippet-tab-item-background-active","background-color"),this.builder.styleSnippetTabItemBackgroundHover=t(".snippet-tab-item-background-hover","background-color"),this.builder.styleSnippetTabItemColor=t(".snippet-tab-item-color","background-color"),this.builder.styleSnippetMoreItemBackground=t(".snippet-more-item-background","background-color"),this.builder.styleSnippetMoreItemBackgroundActive=t(".snippet-more-item-background-active","background-color"),this.builder.styleSnippetMoreItemBackgroundHover=t(".snippet-more-item-background-hover","background-color"),this.builder.styleSnippetMoreItemColor=t(".snippet-more-item-color","background-color"),this.builder.styleTabsBackground=t(".tabs-background","background-color"),this.builder.styleTabItemBorderBottomActive=t(".tab-item-active-border-bottom","border"),this.builder.styleTabItemColor=t(".tab-item-color","background-color"),this.builder.styleTabsMoreBackground=t(".tabs-more-background","background-color"),this.builder.styleTabsMoreBorder=t(".tabs-more-border","border"),this.builder.styleTabsMoreItemColor=t(".tabs-more-item-color","background-color"),this.builder.styleTabsMoreBackgroundHover=t(".tabs-more-item-background-hover","background-color"),this.builder.styleSeparatorColor=t(".separator-color","background-color"),this.builder.styleOutlineColor=t(".outline-color","background-color"),this.builder.styleSelectBackground=window.getComputedStyle(n,null).getPropertyValue("background-color"),this.builder.styleSelectColor=window.getComputedStyle(n,null).getPropertyValue("color"),this.builder.styleSelectOptionBackground=window.getComputedStyle(n.querySelector("option"),null).getPropertyValue("background-color"),this.builder.styleInputBackground=window.getComputedStyle(e,null).getPropertyValue("background-color"),this.builder.styleInputBorderBottom=window.getComputedStyle(e,null).getPropertyValue("border-bottom"),this.builder.styleInputColor=window.getComputedStyle(e,null).getPropertyValue("color"),this.builder.styleLabelColor=window.getComputedStyle(i,null).getPropertyValue("color"),this.builder.styleButtonClassicBackground=window.getComputedStyle(o,null).getPropertyValue("background-color"),this.builder.styleButtonClassicColor=window.getComputedStyle(o,null).getPropertyValue("color"),this.builder.styleButtonClassicBackgroundHover=this.getUIStyleValue(o,"hover","background-color"),this.builder.styleDark=!1,this.builder.styleColored=!1,this.builder.styleColoredDark=!1,this.builder.styleLight=!1,document.body.getAttribute("class")&&(-1!==document.body.getAttribute("class").indexOf("colored-dark")?this.builder.styleColoredDark=!0:-1!==document.body.getAttribute("class").indexOf("dark")?this.builder.styleDark=!0:-1!==document.body.getAttribute("class").indexOf("colored")?this.builder.styleColored=!0:-1!==document.body.getAttribute("class").indexOf("light")&&(this.builder.styleLight=!0))}getUIStyles_OLD(){this.dom.appendHtml(this.builder.builderStuff,'<button class="style-helper"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <input type="text" class="style-helper-input" style="display:none;">\n <label class="style-helper-label" style="display:none;"></label>\n <input class="style-helper-checkbox" type="checkbox" style="display:none;">\n <button class="style-helper-button-classic classic" style="display:none;"><svg><use xlink:href="#ion-code-working"></use></svg></button>\n <select class="style-helper-select" style="display:none;"><option value=""></option></select>\n ');const t=this.builder.builderStuff.querySelector(".style-helper"),e=this.builder.builderStuff.querySelector(".style-helper-input"),i=this.builder.builderStuff.querySelector(".style-helper-label"),n=this.builder.builderStuff.querySelector(".style-helper-select"),o=this.builder.builderStuff.querySelector(".style-helper-button-classic");this.builder.styleModalColor=this.getUIStyleValue(t,"modal-color","background-color"),this.builder.styleModalBackground=this.getUIStyleValue(t,"modal-background","background-color"),this.builder.styleButtonPickColorBorder=this.getUIStyleValue(t,"button-pickcolor-border","border"),this.builder.styleButtonPickColorBackground=this.getUIStyleValue(t,"button-pickcolor-background","background-color"),this.builder.styleToolBackground=window.getComputedStyle(t,null).getPropertyValue("background-color"),this.builder.styleButtonColor=window.getComputedStyle(t,null).getPropertyValue("color"),this.builder.styleButtonSvgFill=window.getComputedStyle(t.querySelector("svg"),null).getPropertyValue("fill"),this.builder.styleButtonBackgroundHover=this.getUIStyleValue(t,"hover","background-color"),this.builder.styleSnippetColor=this.getUIStyleValue(t,"snippet-color","background-color"),this.builder.styleSnippetBackground=this.getUIStyleValue(t,"snippet-background","background-color"),this.builder.styleSnippetTabsBackground=this.getUIStyleValue(t,"snippet-tabs-background","background-color"),this.builder.styleSnippetTabItemBackground=this.getUIStyleValue(t,"snippet-tab-item-background","background-color"),this.builder.styleSnippetTabItemBackgroundActive=this.getUIStyleValue(t,"snippet-tab-item-background-active","background-color"),this.builder.styleSnippetTabItemBackgroundHover=this.getUIStyleValue(t,"snippet-tab-item-background-hover","background-color"),this.builder.styleSnippetTabItemColor=this.getUIStyleValue(t,"snippet-tab-item-color","background-color"),this.builder.styleSnippetMoreItemBackground=this.getUIStyleValue(t,"snippet-more-item-background","background-color"),this.builder.styleSnippetMoreItemBackgroundActive=this.getUIStyleValue(t,"snippet-more-item-background-active","background-color"),this.builder.styleSnippetMoreItemBackgroundHover=this.getUIStyleValue(t,"snippet-more-item-background-hover","background-color"),this.builder.styleSnippetMoreItemColor=this.getUIStyleValue(t,"snippet-more-item-color","background-color"),this.builder.styleTabsBackground=this.getUIStyleValue(t,"tabs-background","background-color"),this.builder.styleTabItemBorderBottomActive=this.getUIStyleValue(t,"tab-item-active-border-bottom","border"),this.builder.styleTabItemColor=this.getUIStyleValue(t,"tab-item-color","background-color"),this.builder.styleTabsMoreBackground=this.getUIStyleValue(t,"tabs-more-background","background-color"),this.builder.styleTabsMoreBorder=this.getUIStyleValue(t,"tabs-more-border","border"),this.builder.styleTabsMoreItemColor=this.getUIStyleValue(t,"tabs-more-item-color","background-color"),this.builder.styleTabsMoreBackgroundHover=this.getUIStyleValue(t,"tabs-more-item-background-hover","background-color"),this.builder.styleSeparatorColor=this.getUIStyleValue(t,"separator-color","background-color"),this.builder.styleSelectBackground=window.getComputedStyle(n,null).getPropertyValue("background-color"),this.builder.styleSelectColor=window.getComputedStyle(n,null).getPropertyValue("color"),this.builder.styleSelectOptionBackground=window.getComputedStyle(n.querySelector("option"),null).getPropertyValue("background-color"),this.builder.styleInputBackground=window.getComputedStyle(e,null).getPropertyValue("background-color"),this.builder.styleInputBorderBottom=window.getComputedStyle(e,null).getPropertyValue("border-bottom"),this.builder.styleInputColor=window.getComputedStyle(e,null).getPropertyValue("color"),this.builder.styleLabelColor=window.getComputedStyle(i,null).getPropertyValue("color"),this.builder.styleButtonClassicBackground=window.getComputedStyle(o,null).getPropertyValue("background-color"),this.builder.styleButtonClassicColor=window.getComputedStyle(o,null).getPropertyValue("color"),this.builder.styleButtonClassicBackgroundHover=this.getUIStyleValue(o,"hover","background-color"),this.builder.styleOutlineColor=this.getUIStyleValue(t,"outline-color","background-color"),this.builder.styleDark=!1,this.builder.styleColored=!1,this.builder.styleColoredDark=!1,this.builder.styleLight=!1,document.body.getAttribute("class")&&(-1!==document.body.getAttribute("class").indexOf("colored-dark")?this.builder.styleColoredDark=!0:-1!==document.body.getAttribute("class").indexOf("dark")?this.builder.styleDark=!0:-1!==document.body.getAttribute("class").indexOf("colored")?this.builder.styleColored=!0:-1!==document.body.getAttribute("class").indexOf("light")&&(this.builder.styleLight=!0))}getUIStyleValue(t,e,i){const n=this.dom;n.addClass(t,e);let o=window.getComputedStyle(t,null).getPropertyValue(i);return n.removeClass(t,e),o}getFontFamilyStyle(t){return`\n html, body {height:100%}\n body {overflow:hidden;margin:0;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size:100%; \n line-height:1.7;\n }\n #divFontList {margin:0;padding:0 0 9px 9px;height:100%;overflow-y:scroll !important;box-sizing:border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n #divFontList > li {width:100%;cursor:pointer;overflow:hidden;text-align:center;position:relative;\n display: flex;\n align-items: center;\n justify-content: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n outline:none;\n }\n #divFontList > li img {margin:7px 5px 7px 5px;max-width: 230px;max-height: 27px;pointer-events: none;}\n #divFontList > li div {position:absolute;top:0;left:0;width:100%;height:100%;}\n\n #divFontList > li > div {\n position:absolute;left:0px;top:0px;width:100%;height:100%;\n // z-index: 1;\n pointer-events: none;}\n\n #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n #divFontList > li > div:after {\n // background: rgba(0, 0, 0, 0.04); \n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n position: absolute;\n content: "";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n }\n #divFontList > li:hover > div:after,\n #divFontList > li:focus > div:after {\n opacity: 1;\n }\n #divFontList > li.on > div:after {\n opacity: 1;\n }\n\n ${this.builder.styleDark||this.builder.styleColoredDark||this.builder.styleColore?"":"\n #divFontList > li img {\n mix-blend-mode: multiply;\n }\n "}\n\n .dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n filter: invert(1);\n }\n .dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n \n .colored-dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored-dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored-dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n .colored #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n /* Scrollbar for toolbar/RTE and modal */\n\n .dark * {\n scrollbar-width: thin;\n scrollbar-color: rgba(255, 255, 255, 0.3) auto;\n }\n .dark *::-webkit-scrollbar {\n width: 12px;\n }\n .dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .dark *::-webkit-scrollbar-thumb {\n background-color:rgba(255, 255, 255, 0.3);\n } \n\n .colored-dark * {\n scrollbar-width: thin;\n scrollbar-color: rgb(100, 100, 100) auto;\n }\n .colored-dark *::-webkit-scrollbar {\n width: 12px;\n }\n .colored-dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored-dark *::-webkit-scrollbar-thumb {\n background-color:rgb(100, 100, 100);\n } \n\n .colored * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .colored *::-webkit-scrollbar {\n width: 12px;\n }\n .colored *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n\n .light * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .light *::-webkit-scrollbar {\n width: 12px;\n }\n .light *::-webkit-scrollbar-track {\n background: transparent;\n }\n .light *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n `}refreshFontFamilyStyle1(){let t=this.builder.rte.rteFontFamilyOptions.querySelector("iframe").contentWindow.document;t.querySelector("#mainstyle").innerHTML=this.getFontFamilyStyle(),this.builder.styleDark?t.body.setAttribute("class","dark"):this.builder.styleColored?t.body.className="colored":this.builder.styleColoredDark?t.body.className="colored-dark":this.builder.styleLight?t.body.className="light":t.body.className=""}refreshFontFamilyStyle2(){let t=this.builder.builderStuff.querySelector(".is-modal.pickfontfamily").querySelector("iframe").contentWindow.document;t.querySelector("#mainstyle").innerHTML=this.getFontFamilyStyle(!0),this.builder.styleDark?t.body.setAttribute("class","dark"):this.builder.styleColored?t.body.className="colored":this.builder.styleColoredDark?t.body.className="colored-dark":this.builder.styleLight?t.body.className="light":t.body.className=""}getFontPreview(){let t=this.builder.fontAssetPath,e="";return e=`\n <li role="option" tabindex="0" data-provider="" data-font-family="" style="font-size:12px;padding:10px 7px;box-sizing:border-box;"><div></div>\n <span style="z-index:1;position: relative;pointer-events: none;">${this.out("None")}</span>\n </li>\n <li role="option" tabindex="0" data-provider="" data-font-family="Arial, sans-serif"><div></div><img src="${t}arial.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="courier"><div></div><img src="${t}courier.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="Georgia, serif"><div></div><img src="${t}georgia.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="monospace"><div></div><img src="${t}monospace.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="sans-serif"><div></div><img src="${t}sans_serif.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="serif"><div></div><img src="${t}serif.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Abel, sans-serif"><div></div><img src="${t}abel.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Abril Fatface"><div></div><img src="${t}abril_fatface.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Advent Pro, sans-serif" data-font-style="wght@100;200;300;400;500;600;700"><div></div><img src="${t}advent_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Aladin, cursive"><div></div><img src="${t}aladin.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Alegreya, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}alegreya.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Alegreya Sans SC, sans-serif" data-font-style="ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900"><div></div><img src="${t}alegreya_sans_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Alegreya SC, serif" data-font-style="ital,wght@0,400;0,500;0,700;0,800;0,900;1,400;1,500;1,700;1,800;1,900"><div></div><img src="${t}alegreya_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Alice, serif"><div></div><img src="${t}alice.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Allerta Stencil, sans-serif"><div></div><img src="${t}allerta_stencil.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Allura, cursive"><div></div><img src="${t}allura.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Almendra Display, cursive"><div></div><img src="${t}almendra_display.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Amatic SC, cursive" data-font-style="wght@400;700"><div></div><img src="${t}amatic_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Andika, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}andika.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Anonymous Pro, monospace" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}anonymous_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Architects Daughter, cursive"><div></div><img style="transform:scale(1.1);" src="${t}architects_daughter.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Arimo, sans-serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700"><div></div><img src="${t}arimo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Arsenal, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}arsenal.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Assistant" data-font-style="wght@200;300;400;500;600;700;800"><div></div><img src="${t}assistant.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Aubrey, cursive"><div></div><img src="${t}aubrey.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Anton, sans-serif"><div></div><img src="${t}anton.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Archivo Narrow, sans-serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700"><div></div><img src="${t}archivo_narrow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bad Script, cursive"><div></div><img src="${t}bad_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="BenchNine, sans-serif" data-font-style="wght@300;400;700"><div></div><img src="${t}benchNine.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bevan, cursive"><div></div><img src="${t}bevan.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bigelow Rules, cursive"><div></div><img src="${t}bigelow_rules.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bilbo, cursive"><div></div><img src="${t}bilbo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bonbon, cursive"><div></div><img src="${t}bonbon.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Bowlby One SC, cursive"><div></div><img src="${t}bowlby_one_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cabin Condensed, sans-serif" data-font-style="wght@400;500;600;700"><div></div><img src="${t}cabin_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Carrois Gothic SC, sans-serif"><div></div><img src="${t}carrois_gothic_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Caveat, cursive" data-font-style="wght@400;500;600;700"><div></div><img src="${t}caveat.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Chewy, cursive"><div></div><img src="${t}chewy.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cinzel, serif" data-font-style="wght@400;500;600;700;800;900"><div></div><img src="${t}cinzel.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Comfortaa, cursive" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}comfortaa.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Concert One, cursive"><div></div><img src="${t}concert_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant, serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}cormorant.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant Garamond, serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}cormorant_garamond.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant Infant, serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}cormorant_infant.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant SC, serif" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}cormorant_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cormorant Unicase, serif" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}cormorant_unicase.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cousine" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}cousine.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Crafty Girls, cursive"><div></div><img src="${t}crafty_girls.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cuprum, sans-serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700"><div></div><img src="${t}cuprum.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Cutive Mono, monospace"><div></div><img src="${t}cutive_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Devonshire, cursive"><div></div><img src="${t}devonshire.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Didact Gothic, sans-serif"><div></div><img src="${t}didact_gothic.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Diplomata SC, cursive"><div></div><img src="${t}diplomata_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Dosis, sans-serif" data-font-style="wght@200;300;400;500;600;700;800"><div></div><img src="${t}dosis.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="EB Garamond, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}eb_garamond.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="El Messiri, sans-serif" data-font-style="wght@400;500;600;700"><div></div><img src="${t}el_messiri.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Elsie, cursive" data-font-style="wght@400;900"><div></div><img src="${t}elsie.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Encode Sans, sans-serif" data-font-style="wght@100;200;300;400;500;600;700;800;900"><div></div><img src="${t}encode_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Exo, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}exo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="'Exo 2', sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900" data-font-display="swap"><div></div><img src="${t}exo_2.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Felipa, cursive"><div></div><img src="${t}felipa.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Code, monospace" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}fira_code.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Mono, monospace" data-font-style="wght@400;500;700"><div></div><img src="${t}fira_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Sans, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}fira_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Sans Condensed, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}fira_sans_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fira Sans Extra Condensed, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}fira_sans_extra_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fjalla One, sans-serif"><div></div><img src="${t}fjalla_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Forum, cursive"><div></div><img src="${t}forum.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Frank Ruhl Libre" data-font-style="wght@300;400;500;700;900"><div></div><img src="${t}frank_ruhl_libre.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Fredericka the Great, cursive"><div></div><img src="${t}fredericka_the_great.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Gabriela, serif"><div></div><img src="${t}gabriela.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Gilda Display, serif"><div></div><img src="${t}gilda_display.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Give You Glory, cursive"><div></div><img style="transform:scale(1.3);" src="${t}give_you_glory.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Gruppo, cursive"><div></div><img src="${t}gruppo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Handlee, cursive"><div></div><img src="${t}handlee.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Happy Monkey, cursive"><div></div><img src="${t}happy_monkey.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Hind" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}hind.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="IBM Plex Mono, monospace" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}ibm_plex_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="IBM Plex Sans, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}ibm_plex_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="IBM Plex Serif, serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}ibm_plex_serif.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Iceland, cursive"><div></div><img src="${t}iceland.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Inconsolata, monospace" data-font-style="wght@200;300;400;500;600;700;800;900"><div></div><img src="${t}inconsolata.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Josefin Sans, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}josefin_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Istok Web, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}istok_web.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Julee, cursive"><div></div><img src="${t}julee.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Julius Sans One, sans-serif"><div></div><img src="${t}julius_sans_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Junge, serif"><div></div><img src="${t}junge.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Jura, sans-serif" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}jura.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Just Me Again Down Here, cursive"><div></div><img style="transform:scale(1.1);" src="${t}just_me_again_down_here.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kaushan Script, cursive"><div></div><img src="${t}kaushan_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kelly Slab, cursive"><div></div><img src="${t}kelly_slab.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kite One, sans-serif"><div></div><img src="${t}kite_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kosugi, sans-serif"><div></div><img src="${t}kosugi.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kosugi Maru, sans-serif"><div></div><img src="${t}kosugi_maru.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Kurale, serif"><div></div><img src="${t}kurale.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lato, sans-serif" data-font-style="ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900"><div></div><img src="${t}lato.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ledger, serif" data-font-display="swap"><div></div><img src="${t}ledger.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lekton, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400"><div></div><img src="${t}lekton.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Life Savers, cursive" data-font-style="wght@400;700;800"><div></div><img src="${t}life_savers.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Literata, serif" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}literata.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lobster, cursive"><div></div><img src="${t}lobster.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lobster Two, cursive" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}lobster_two.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Londrina Shadow, cursive"><div></div><img src="${t}londrina_shadow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lora, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700"><div></div><img src="${t}lora.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Lovers Quarrel, cursive"><div></div><img style="transform:scale(1.1);" src="${t}lovers_quarrel.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="'M PLUS 1p', sans-serif" data-font-style="wght@100;300;400;500;700;800;900" data-font-display="swap"><div></div><img src="${t}m_plus_1p.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="'M PLUS Rounded 1c', sans-serif" data-font-style="wght@100;300;400;500;700;800;900" data-font-display="swap"><div></div><img src="${t}m_plus_rounded_1c.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Macondo, cursive"><div></div><img src="${t}macondo.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Marcellus SC, serif"><div></div><img src="${t}marcellus_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Marck Script, cursive"><div></div><img src="${t}marck_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Martel, serif" data-font-style="wght@200;300;400;600;700;800;900"><div></div><img src="${t}martel.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Maven Pro, sans-serif"><div></div><img src="${t}maven_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Merriweather, serif" data-font-style="ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900"><div></div><img src="${t}merriweather.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Merriweather Sans" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}merriweather_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Mogra, cursive"><div></div><img src="${t}mogra.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Monoton, cursive"><div></div><img src="${t}monoton.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Montez, cursive"><div></div><img src="${t}montez.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Montserrat, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}montserrat.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Montserrat Alternates, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}montserrat_alternates.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Montserrat Subrayada, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}montserrat_subrayada.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Neucha, cursive"><div></div><img src="${t}neucha.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Neuton, serif" data-font-style="ital,wght@0,200;0,300;0,400;0,700;0,800;1,400"><div></div><img src="${t}neuton.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Nixie One, cursive"><div></div><img src="${t}nixie_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Nothing You Could Do, cursive"><div></div><img style="transform:scale(1.1);" src="${t}nothing_you_could_do.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Noto Sans, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}noto_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Noto Sans SC, sans-serif" data-font-style="wght@100;300;400;500;700;900"><div></div><img src="${t}noto_sans_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Noto Serif, serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}noto_serif.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Noto Serif TC, serif" data-font-style="wght@200;300;400;500;600;700;900"><div></div><img src="${t}noto_serif_tc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Nunito, sans-serif" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900;1,1000"><div></div><img src="${t}nunito.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Old Standard TT, serif" data-font-style="ital,wght@0,400;0,700;1,400"><div></div><img src="${t}old_standard_tt.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Open Sans, sans-serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}open_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Oranienbaum, serif"><div></div><img src="${t}oranienbaum.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Oswald, sans-serif" data-font-style="wght@200;300;400;500;600;700"><div></div><img src="${t}oswald.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Oxygen, sans-serif" data-font-style="wght@300;400;700"><div></div><img src="${t}oxygen.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pacifico, cursive"><div></div><img src="${t}pacifico.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pangolin, cursive"><div></div><img src="${t}pangolin.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Passion One, cursive" data-font-style="wght@400;700;900"><div></div><img src="${t}passion_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pathway Gothic One, sans-serif"><div></div><img src="${t}pathway_gothic_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pattaya, sans-serif"><div></div><img src="${t}pattaya.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Petit Formal Script, cursive"><div></div><img style="transform:scale(1.1);" src="${t}petit_formal_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Philosopher, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}philosopher.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Play, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}play.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Playfair Display, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}playfair_display.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Playfair Display SC, serif" data-font-style="ital,wght@0,400;0,700;0,900;1,400;1,700;1,900"><div></div><img src="${t}playfair_display_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Podkova, serif" data-font-style="wght@400;500;600;700;800"><div></div><img src="${t}podkova.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Poiret One, cursive"><div></div><img src="${t}poiret_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Pompiere, cursive"><div></div><img style="transform:scale(1.1);" src="${t}pompiere.png"></li>\n `,e+=`<li role="option" tabindex="0" data-provider="google" data-font-family="Poppins, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}poppins.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Prata, serif"><div></div><img src="${t}prata.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="'Press Start 2P', cursive"><div></div><img src="${t}press_start_2p.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Prosto One, cursive"><div></div><img src="${t}prosto_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Mono, monospace"><div></div><img src="${t}pt_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Sans, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}pt_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Sans Caption, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}pt_sans_caption.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Sans Narrow, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}pt_sans_narrow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Serif, serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}pt_serif.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="PT Serif Caption, serif" data-font-style="ital@0;1"><div></div><img src="${t}pt_serif_caption.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Quattrocento Sans, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}quattrocento_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Quattrocento, serif" data-font-style="wght@400;700"><div></div><img src="${t}quattrocento.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Quicksand, sans-serif" data-font-style="wght@300;400;500;600;700"><div></div><img src="${t}quicksand.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Qwigley, cursive"><div></div><img src="${t}qwigley.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Raleway, sans-serif" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}raleway.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Raleway Dots, sans-serif"><div></div><img src="${t}raleway_dots.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Redressed, cursive"><div></div><img src="${t}redressed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ribeye Marrow, cursive"><div></div><img src="${t}ribeye_marrow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Righteous, cursive"><div></div><img src="${t}righteous.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Roboto, sans-serif" data-font-style="ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900"><div></div><img src="${t}roboto.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Roboto Condensed, sans-serif" data-font-style="ital,wght@0,300;0,400;0,700;1,300;1,400;1,700"><div></div><img src="${t}roboto_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Roboto Mono, monospace" data-font-style="ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700"><div></div><img src="${t}roboto_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Roboto Slab, serif" data-font-style="wght@100;200;300;400;500;600;700;800;900"><div></div><img src="${t}roboto_slab.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Rochester, cursive"><div></div><img src="${t}rochester.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Rouge Script, cursive"><div></div><img src="${t}rouge_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Rubik, sans-serif" data-font-style="ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}rubik.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Rubik Mono One, sans-serif"><div></div><img src="${t}rubik_mono_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ruslan Display, cursive"><div></div><img src="${t}ruslan_display.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Russo One, sans-serif"><div></div><img src="${t}russo_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Sacramento, cursive"><div></div><img src="${t}sacramento.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Sanchez, serif" data-font-style="ital@0;1"><div></div><img src="${t}sanchez.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Satisfy, cursive"><div></div><img src="${t}satisfy.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Sawarabi Gothic, sans-serif"><div></div><img src="${t}sawarabi_gothic.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Scada, sans-serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}scada.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Seaweed Script, cursive"><div></div><img src="${t}seaweed_script.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Seymour One, sans-serif"><div></div><img src="${t}seymour_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Shadows Into Light Two, cursive"><div></div><img src="${t}shadows_into_light_two.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Six Caps, sans-serif"><div></div><img src="${t}six_caps.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Snowburst One, cursive"><div></div><img src="${t}snowburst_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Source Code Pro, monospace" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}source_code_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Source Sans Pro, sans-serif" data-font-style="ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900"><div></div><img src="${t}source_sans_pro.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Special Elite, cursive"><div></div><img src="${t}special_elite.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Spectral, serif" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}spectral.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Spectral SC, serif" data-font-style="ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800"><div></div><img src="${t}spectral_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Squada One, cursive"><div></div><img src="${t}squada_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Stalinist One, cursive"><div></div><img src="${t}stalinist_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Stint Ultra Expanded, cursive"><div></div><img src="${t}stint_ultra_expanded.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Syncopate, sans-serif" data-font-style="wght@400;700"><div></div><img src="${t}syncopate.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Tangerine, cursive" data-font-style="wght@400;700"><div></div><img src="${t}tangerine.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Tenor Sans, sans-serif"><div></div><img src="${t}tenor_sans.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Tinos, serif" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}tinos.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ubuntu, sans-serif" data-font-style="ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700"><div></div><img src="${t}ubuntu.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ubuntu Condensed, sans-serif"><div></div><img src="${t}ubuntu_condensed.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Ubuntu Mono, monospace" data-font-style="ital,wght@0,400;0,700;1,400;1,700"><div></div><img src="${t}ubuntu_mono.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Underdog, cursive"><div></div><img src="${t}underdog.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="UnifrakturMaguntia, cursive"><div></div><img src="${t}unifrakturmaguntia.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Vast Shadow, cursive"><div></div><img src="${t}vast_shadow.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Viga, sans-serif"><div></div><img src="${t}viga.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Vollkorn, serif" data-font-style="ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900"><div></div><img src="${t}vollkorn.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Vollkorn SC, serif" data-font-style="wght@400;600;700;900"><div></div><img src="${t}vollkorn_sc.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Voltaire, sans-serif"><div></div><img src="${t}voltaire.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Wire One, sans-serif"><div></div><img src="${t}wire_one.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Yanone Kaffeesatz, sans-serif" data-font-style="wght@200;300;400;500;600;700"><div></div><img src="${t}yanone_kaffeesatz.png"></li>\n <li role="option" tabindex="0" data-provider="google" data-font-family="Yeseva One, cursive"><div></div><img src="${t}yeseva_one.png"></li>\n `,e}getFontFamilyHTML(t){return`\n <!DOCTYPE HTML>\n <html>\n <head>\n <meta charset="utf-8">\n <title>Fonts</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content=""> \n <style id="mainstyle">\n html, body {height:100%}\n body {overflow:hidden;margin:0;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size:100%; \n line-height:1.7;\n }\n #divFontList {margin:0;padding:0 0 9px 9px;height:100%;overflow-y:scroll !important;box-sizing:border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n #divFontList > li {width:100%;cursor:pointer;overflow:hidden;text-align:center;position:relative;\n display: flex;\n align-items: center;\n justify-content: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n outline:none;\n }\n #divFontList > li img {margin:7px 5px 7px 5px;max-width: 230px;max-height: 27px;pointer-events: none;}\n #divFontList > li div {position:absolute;top:0;left:0;width:100%;height:100%;}\n\n #divFontList > li > div {\n position:absolute;left:0px;top:0px;width:100%;height:100%;\n // z-index: 1;\n pointer-events: none;}\n\n #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n #divFontList > li > div:after {\n // background: rgba(0, 0, 0, 0.04); \n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n position: absolute;\n content: "";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n }\n #divFontList > li:hover > div:after,\n #divFontList > li:focus > div:after {\n opacity: 1;\n }\n #divFontList > li.on > div:after {\n opacity: 1;\n }\n\n ${this.builder.styleDark||this.builder.styleColoredDark||this.builder.styleColore?"":"\n #divFontList > li img {\n mix-blend-mode: multiply;\n }\n "}\n\n .dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n filter: invert(1);\n }\n .dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n \n .colored-dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored-dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored-dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n .colored #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n /* Scrollbar for toolbar/RTE and modal */\n\n .dark * {\n scrollbar-width: thin;\n scrollbar-color: rgba(255, 255, 255, 0.3) auto;\n }\n .dark *::-webkit-scrollbar {\n width: 12px;\n }\n .dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .dark *::-webkit-scrollbar-thumb {\n background-color:rgba(255, 255, 255, 0.3);\n } \n\n .colored-dark * {\n scrollbar-width: thin;\n scrollbar-color: rgb(100, 100, 100) auto;\n }\n .colored-dark *::-webkit-scrollbar {\n width: 12px;\n }\n .colored-dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored-dark *::-webkit-scrollbar-thumb {\n background-color:rgb(100, 100, 100);\n } \n\n .colored * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .colored *::-webkit-scrollbar {\n width: 12px;\n }\n .colored *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n\n .light * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .light *::-webkit-scrollbar {\n width: 12px;\n }\n .light *::-webkit-scrollbar-track {\n background: transparent;\n }\n .light *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n </style>\n\n </head>\n <body${this.builder.styleDark?' class="dark"':""}${this.builder.styleColored?' class="colored"':""}${this.builder.styleColoredDark?' class="colored-dark"':""}${this.builder.styleLight?' class="light"':""}>\n\n <ul id="divFontList">\n ${this.getFontPreview()}\n </ul>\n\n <script${this.builder.nonce?` nonce="${this.builder.nonce}"`:""}>\n\n const close = () => {\n parent.focus();\n\n let pop = parent.document.querySelector('.rte-fontfamily-options.active, .pickfontfamily.active');\n if(pop) {\n pop.classList.remove('active');\n pop.classList.add('deactive');\n }\n }\n\n const setValue = (item) => {\n let provider = item.getAttribute('data-provider');\n let fontfamily = item.getAttribute('data-font-family');\n let fontstyle = item.getAttribute('data-font-style');\n let fontdisplay = item.getAttribute('data-font-display');\n parent._cb.setFont(fontfamily, fontstyle, fontdisplay, provider);\n\n let elms = document.querySelectorAll('#divFontList > li');\n elms.forEach(elm=>{\n elm.classList.remove('on');\n });\n item.classList.add('on');\n }\n\n const handleItemClick = (e) => {\n e.preventDefault();\n\n let item = e.target;\n setValue(item);\n }\n\n const handleItemKeyDown = (e) => {\n e.preventDefault();\n\n if(e.keyCode === 38 && e.target.previousElementSibling) { // up\n e.target.previousElementSibling.focus();\n } else if(e.keyCode === 40 && e.target.nextElementSibling) { // down\n e.target.nextElementSibling.focus();\n } else if(e.keyCode === 27) { // escape key\n close();\n } else if(e.keyCode === 13 || e.keyCode === 32) { // enter or spacebar key\n setValue(e.target);\n }\n }\n \n let elms = document.querySelectorAll('#divFontList > li');\n elms.forEach(elm=>{\n elm.addEventListener('keydown', handleItemKeyDown);\n elm.addEventListener('click', handleItemClick);\n });\n <\/script>\n \n </body>\n </html>\n \n \n `}getFontFamilyEmail(t){let e=this.builder.fontAssetPath;return`\n <!DOCTYPE HTML>\n <html>\n <head>\n <meta charset="utf-8">\n <title>Fonts</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content=""> \n <style>\n html, body {height:100%}\n body {overflow:hidden;margin:0;\n font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;\n font-size:100%; \n line-height:1.7;\n }\n #divFontList {margin:0;padding:0 0 9px 9px;height:100%;overflow-y:scroll !important;box-sizing:border-box;\n list-style: none;\n padding: 0;\n margin: 0;\n }\n #divFontList > li {width:100%;cursor:pointer;overflow:hidden;text-align:center;position:relative;\n display: flex;\n align-items: center;\n justify-content: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n outline:none;\n }\n #divFontList > li img {margin:7px 5px 7px 5px;max-width: 230px;max-height: 27px;pointer-events: none;}\n #divFontList > li div {position:absolute;top:0;left:0;width:100%;height:100%;}\n\n #divFontList > li > div {\n position:absolute;left:0px;top:0px;width:100%;height:100%;\n // z-index: 1;\n pointer-events: none;}\n\n #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n #divFontList > li > div:after {\n // background: rgba(0, 0, 0, 0.04); \n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n position: absolute;\n content: "";\n display: block;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n opacity: 0;\n }\n #divFontList > li:hover > div:after,\n #divFontList > li:focus > div:after {\n opacity: 1;\n }\n #divFontList > li.on > div:after {\n opacity: 1;\n }\n\n ${this.builder.styleDark||this.builder.styleColoredDark||this.builder.styleColore?"":"\n #divFontList > li img {\n mix-blend-mode: multiply;\n }\n "}\n\n .dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n filter: invert(1);\n }\n .dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n \n .colored-dark #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored-dark #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored-dark #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n .colored #divFontList > li img {\n ${t?"":"mix-blend-mode: screen;"};\n ${t?"":"filter: invert(1);"};\n }\n .colored #divFontList > li {\n color: ${t?this.builder.styleModalColor:this.builder.styleButtonColor};\n background: ${t?this.builder.styleModalBackground:this.builder.styleToolBackground};\n }\n .colored #divFontList > li > div:after {\n background: ${t?this.builder.styleButtonClassicBackgroundHover:this.builder.styleButtonBackgroundHover};\n }\n\n\n /* Scrollbar for toolbar/RTE and modal */\n\n .dark * {\n scrollbar-width: thin;\n scrollbar-color: rgba(255, 255, 255, 0.3) auto;\n }\n .dark *::-webkit-scrollbar {\n width: 12px;\n }\n .dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .dark *::-webkit-scrollbar-thumb {\n background-color:rgba(255, 255, 255, 0.3);\n } \n\n .colored-dark * {\n scrollbar-width: thin;\n scrollbar-color: rgb(100, 100, 100) auto;\n }\n .colored-dark *::-webkit-scrollbar {\n width: 12px;\n }\n .colored-dark *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored-dark *::-webkit-scrollbar-thumb {\n background-color:rgb(100, 100, 100);\n } \n\n .colored * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .colored *::-webkit-scrollbar {\n width: 12px;\n }\n .colored *::-webkit-scrollbar-track {\n background: transparent;\n }\n .colored *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n\n .light * {\n scrollbar-width: thin;\n scrollbar-color: rgba(0, 0, 0, 0.4) auto;\n }\n .light *::-webkit-scrollbar {\n width: 12px;\n }\n .light *::-webkit-scrollbar-track {\n background: transparent;\n }\n .light *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.4);\n } \n </style>\n\n </head>\n <body${this.builder.styleDark?' class="dark"':""}${this.builder.styleColored?' class="colored"':""}${this.builder.styleColoredDark?' class="colored-dark"':""}${this.builder.styleLight?' class="light"':""}>\n\n <ul id="divFontList">\n <li role="option" tabindex="0" data-provider="" data-font-family="" style="font-size:12px;padding:10px 7px;box-sizing:border-box;"><div></div>\n <span style="z-index:1;position: relative;pointer-events: none;">${this.out("None")}</span>\n </li>\n <li role="option" tabindex="0" data-provider="" data-font-family="Arial, sans-serif"><div></div><img src="${e}arial.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="courier"><div></div><img src="${e}courier.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="Georgia, serif"><div></div><img src="${e}georgia.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="monospace"><div></div><img src="${e}monospace.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="sans-serif"><div></div><img src="${e}sans_serif.png"></li>\n <li role="option" tabindex="0" data-provider="" data-font-family="serif"><div></div><img src="${e}serif.png"></li>\n </ul>\n\n <script>\n\n const close = () => {\n parent.focus();\n\n let pop = parent.document.querySelector('.is-rte-pop.active');\n if(pop) {\n pop.classList.remove('active');\n pop.classList.add('deactive');\n }\n }\n\n const setValue = (item) => {\n let provider = item.getAttribute('data-provider');\n let fontfamily = item.getAttribute('data-font-family');\n let fontstyle = item.getAttribute('data-font-style');\n let fontdisplay = item.getAttribute('data-font-display');\n parent._cb.setFont(fontfamily, fontstyle, fontdisplay, provider);\n\n let elms = document.querySelectorAll('#divFontList > li');\n elms.forEach(elm=>{\n elm.classList.remove('on');\n });\n item.classList.add('on');\n }\n\n const handleItemClick = (e) => {\n e.preventDefault();\n\n let item = e.target;\n setValue(item);\n }\n\n const handleItemKeyDown = (e) => {\n e.preventDefault();\n\n if(e.keyCode === 38 && e.target.previousElementSibling) { // up\n e.target.previousElementSibling.focus();\n } else if(e.keyCode === 40 && e.target.nextElementSibling) { // down\n e.target.nextElementSibling.focus();\n } else if(e.keyCode === 27) { // escape key\n close();\n } else if(e.keyCode === 13 || e.keyCode === 32) { // enter or spacebar key\n setValue(e.target);\n }\n }\n \n let elms = document.querySelectorAll('#divFontList > li');\n elms.forEach(elm=>{\n elm.addEventListener('keydown', handleItemKeyDown);\n elm.addEventListener('click', handleItemClick);\n });\n <\/script>\n \n </body>\n </html>\n \n \n `}getPageTemplate(t){let e="";return e=""===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"tailwind"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content-tailwind.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <link rel="stylesheet" href="[%PATH%]/assets/frameworks/tailwindcss/styles.css">\n \x3c!-- To build your own, please see: https://tailwindcss.com/docs/installation --\x3e\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"bootstrap"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n\n <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {margin: 140px auto; max-width: 800px; width:100%; padding:0 35px; box-sizing: border-box;}\n /* Bootstrap css adjustment to enable column drag to resize */\n .row > *,\n .column {\n max-width: unset !important;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"foundation"===t?'\n <!DOCTYPE html>\n <html lang="en">\n <head>\n <meta charset="utf-8">\n <title>Page</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <meta name="description" content="">\n <link rel="shortcut icon" href="#">\n\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation.min.css">\n <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.5.3/css/foundation-float.min.css">\n \n <link href="[%PATH%]/assets/minimalist-blocks/content.css" rel="stylesheet">\n \n <link href="[%PATH%]/assets/scripts/glide/css/glide.core.css" rel="stylesheet">\n <link href="[%PATH%]/assets/scripts/glide/css/glide.theme.css" rel="stylesheet">\n <script src="[%PATH%]/assets/scripts/glide/glide.js"><\/script>\n \n <style>\n .container {\n margin: 150px auto 0;\n max-width: 800px;\n width: 100%;\n padding: 0 20px;\n box-sizing: border-box;\n }\n </style>\n </head>\n <body>\n \n <div class="container">\n [%CONTENT%]\n </div>\n \n </body>\n </html>\n ':"[%CONTENT%]",e}}class o{constructor(t){this.builder=t}getScale(t){let e=window.getComputedStyle(t).transform.split("(")[1];e=e.split(")")[0],e=e.split(",");let i=e[0],n=e[1];return Math.sqrt(i*i+n*n)}createElement(t){return document.createElement(t)}appendChild(t,e){t&&t.appendChild(e)}appendHtml(t,e){t&&t.insertAdjacentHTML("beforeend",e)}addEventListener(t,e,i){t&&t.addEventListener(e,i)}addClass(t,e){t&&(this.hasClass(t,e)||(0===t.classList.length?t.className=e:t.className=t.className+" "+e,t.className=t.className.replace(/ +/g," ")))}removeClass(t,e){if(t&&t.classList.length>0){let i,n,o,s,r=e.split(" ");for(i=0,o=r.length;i<o;++i){if(!r[i])continue;let e=r[i],o="",l=t.className.split(" ");for(n=0,s=l.length;n<s;++n)l[n]&&l[n]!==e&&(o+=l[n]+" ");t.className=o.trim()}""===t.className&&t.removeAttribute("class")}}removeClassesByPrefix(t,e){t.classList&&t.classList.forEach((i=>{0===i.indexOf(e)&&this.removeClass(t,i)}))}hasClass(t,e){return!!t&&(!!t.className&&(" "+t.className+" ").indexOf(" "+e+" ")>-1)}moveAfter(t,e){e.parentNode.insertBefore(t,e),e.parentNode.insertBefore(e,e.previousElementSibling)}elementChildren(t){const e=t.childNodes;let i=[],n=e.length;for(;n--;)1===e[n].nodeType&&i.unshift(e[n]);return i}getElementOffset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset,width:e.width,height:e.height}}parentsHasClass(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(this.hasClass(t,e))return!0;t=t.parentNode}}parentsHasId(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.id===e)return!0;t=t.parentNode}}parentsHasTag(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.tagName.toLowerCase()===e.toLowerCase())return!0;t=t.parentNode}}parentsHasAttribute(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;try{if(t.hasAttribute(e))return!0}catch(t){}t=t.parentNode}}getParentByTag(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(t.tagName.toLowerCase()===e.toLowerCase())return t;t=t.parentNode}}getParentByAttribute(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;try{if(t.hasAttribute(e))return t}catch(t){}t=t.parentNode}}parentsHasElement(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(!(t=t.parentNode))return!1;if(!t.tagName)return!1;if(t.tagName.toLowerCase()===e)return!0}}getParentElement(t,e){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if(!(t=t.parentNode))return!1;if(!t.tagName)return!1;if(t.tagName.toLowerCase()===e)return t}}removeClasses(t,e){for(let i=0;i<t.length;i++)t[i].classList.remove(e)}removeAttributes(t,e){for(let i=0;i<t.length;i++)t[i].removeAttribute(e)}removeElements(t){Array.prototype.forEach.call(t,(t=>{t.parentNode.removeChild(t)}))}moveCursorToElement(t){var e,i;window.getSelection&&this.builder.doc.createRange?((i=this.builder.doc.createRange()).selectNodeContents(t),i.collapse(!1),(e=window.getSelection()).removeAllRanges(),e.addRange(i)):this.builder.doc.body.createTextRange&&((i=this.builder.doc.body.createTextRange()).moveToElementText(t),i.collapse(!1),i.select())}selectElementContents(t){var e=this.builder.doc.createRange();e.selectNodeContents(t);var i=this.builder.win.getSelection();i.removeAllRanges(),i.addRange(e)}getSelected(){if(this.builder.win.getSelection)return this.builder.win.getSelection().toString();if(this.builder.doc.getSelection)return this.builder.doc.getSelection().toString();var t=this.builder.doc.selection&&this.builder.doc.selection.createRange();return!!t.text&&t.text}checkEditable(){try{var t,e;return this.builder.win.getSelection?t=3===(e=this.builder.win.getSelection().getRangeAt(0).commonAncestorContainer).nodeType?e.parentNode:e:this.builder.doc.selection&&(e=this.builder.doc.selection.createRange(),t=this.builder.doc.selection.createRange().parentElement()),!!this.parentsHasAttribute(t,"contenteditable")}catch(t){return!1}}textSelection(){const t=this.getSelection().anchorNode;if(!t)return!1;return t.nodeType!==Node.TEXT_NODE&&t.nodeType!==Node.COMMENT_NODE?t:t.parentElement}getStyle(t,e){return window.getComputedStyle?window.getComputedStyle(t,null).getPropertyValue(e):t.style[e.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]}observeElement(t,e,i,n=0){let o=Object.getPrototypeOf(t);if(Object.prototype.hasOwnProperty.call(o,e)){let s=Object.getOwnPropertyDescriptor(o,e);Object.defineProperty(t,e,{get:function(){return s.get.apply(this,arguments)},set:function(){let t=this[e];s.set.apply(this,arguments);let o=this[e];"function"==typeof i&&setTimeout(i.bind(this,t,o),n)}})}}baseName(t){if("string"==typeof t){var e=t.split(".");return e.splice(0,e.length-1).join(".")}}doFunction(t,e,i){if(e(t),i){let i=Array.prototype.slice.call(t.getElementsByTagName("*"));for(var n=0;n<i.length;n++)e(i[n])}}execCommand(t,e,n){const o=this.getSelection();if(!o)return;const s=o.anchorNode;if(s){const d=s.nodeType!==Node.TEXT_NODE&&s.nodeType!==Node.COMMENT_NODE?s:s.parentElement,c=d&&d.innerText===o.toString();let u,h=!1;for(var r=[],l=i.getSelection(),a=0;a<l.rangeCount;++a)r=r.concat(l.getRangeAt(a).getNodes());const p=["p","h1","h2","h3","h4","h5","h6","div","pre","li"];if(r.forEach((t=>{if(t.tagName){const e=t.tagName.toLowerCase();-1!==p.indexOf(e)&&(h=!0,n(!0,t))}})),h)return;u=c||""===o.toString().trim()?this.updateSelection(t,e,d):this.replaceSelection(t,e,o,d),n&&n(!0,u)}else n&&n(!1)}updateSelection(t,e,i){return i.style[t]=this.getStyleValue(i,t,e),this.checkStyleIfSameAsParent(i,t),this.cleanChildren(t,i),this.cleanUnusedSpan(i),i}replaceSelection(t,e,i,n){const o=i.getRangeAt(0),s=o.extractContents(),r=this.createSpan(n,t,e);return r.appendChild(s),this.cleanChildren(t,r),this.cleanUnusedSpan(r),o.insertNode(r),i.selectAllChildren(r),this.checkStyleIfSameAsParent(r,t),r}checkStyleIfSameAsParent(t,e){if(t.parentNode&&(t.parentNode.style[e]===t.style[e]||window.getComputedStyle(t.parentNode,null).getPropertyValue(e)===t.style[e])){t.style[e]="",""!==t.getAttribute("style")&&null!==t.style||t.removeAttribute("style");let i=0===t.attributes.length||1===t.attributes.length&&t.hasAttribute("data-keep");if("span"===t.nodeName.toLowerCase()&&i){const e=document.createTextNode(t.textContent);t.parentElement.replaceChild(e,t)}}}createSpan(t,e,i){const n=document.createElement("span");return n.style[e]=this.getStyleValue(t,e,i),n}findParentStyle(t,e){if("HTML"===t.nodeName.toUpperCase()||"BODY"===t.nodeName.toUpperCase())return null;if(!t.parentNode)return null;if(null!==t.style[e]&&void 0!==t.style[e]&&""!==t.style[e])return t;this.findParentStyle(t.parentNode,e)}getStyleValue(t,e,i){if("font-weight"===e||"font-style"===e||"text-decoration"===e||"text-transform"===e){let n,o=this.findParentStyle(t,e);if(o&&(n=o.style[e]),i===n){t.style[e]="";let o=window.getComputedStyle(t,null).getPropertyValue(e);t.style[e]=n,i=o}}return i}getParentBlock(t){for(;t;){if(!t.tagName)return!1;if("BODY"===t.tagName||"HTML"===t.tagName)return!1;if("inline"!==this.getStyle(t,"display"))return t;t=t.parentNode}}execCommandClass(t,e,n=!0,o){const s=this.getSelection();if(!s)return;const r=s.anchorNode;if(r){let c=r.nodeType!==Node.TEXT_NODE&&r.nodeType!==Node.COMMENT_NODE?r:r.parentElement;const u=c&&c.innerText===s.toString();let h=!1;for(var l=[],a=i.getSelection(),d=0;d<a.rangeCount;++d)l=l.concat(a.getRangeAt(d).getNodes());const p=["p","h1","h2","h3","h4","h5","h6","div","pre"];if(l.forEach((i=>{if(i.tagName){const n=i.tagName.toLowerCase();if(-1!==p.indexOf(n)){h=!0;for(let t=0;t<Object.keys(e).length;t++){let n=Object.values(e)[t];this.removeClass(i,n)}""!==t&&this.addClass(i,t),this.cleanChildrenClass(i,e),this.cleanUnusedSpan(i)}}})),h)return;(n||u||""===s.toString().trim())&&("block"===o&&"inline"===this.getStyle(c,"display")&&(c=this.getParentBlock(c)),this.updateSelectionClass(t,e,c))}}updateSelectionClass(t,e,i){for(let t=0;t<Object.keys(e).length;t++){let n=Object.values(e)[t];this.removeClass(i,n)}return""!==t&&this.addClass(i,t),this.cleanChildrenClass(i,e),this.cleanUnusedSpan(i),i}cleanChildrenClass(t,e){if(!t.hasChildNodes())return;Array.from(t.children).map((t=>{for(let i=0;i<Object.keys(e).length;i++){let n=Object.values(e)[i];this.removeClass(t,n)}}));const i=Array.from(t.children).map((t=>this.cleanChildrenClass(t,e)));i&&i.length}execCommandToggle(t,e,n){const o=this.getSelection();if(!o)return;const s=o.anchorNode;if(s){const d=s.nodeType!==Node.TEXT_NODE&&s.nodeType!==Node.COMMENT_NODE?s:s.parentElement,c=d&&d.innerText===o.toString();let u=!1;for(var r=[],l=i.getSelection(),a=0;a<l.rangeCount;++a)r=r.concat(l.getRangeAt(a).getNodes());const h=["p","h1","h2","h3","h4","h5","h6","div","pre"];if(r.forEach((i=>{if(i.tagName){const o=i.tagName.toLowerCase();if(-1!==h.indexOf(o)){if(u=!0,"fontWeight"===t){let t=!1;this.hasClass(i,n.fontWeight.defaultBold)&&(t=!0),this.removeClass(i,n.fontWeight.thin),this.removeClass(i,n.fontWeight.extralight),this.removeClass(i,n.fontWeight.light),this.removeClass(i,n.fontWeight.normal),this.removeClass(i,n.fontWeight.medium),this.removeClass(i,n.fontWeight.semibold),this.removeClass(i,n.fontWeight.bold),this.removeClass(i,n.fontWeight.extrabold),this.removeClass(i,n.fontWeight.black),t||this.addClass(i,n.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;this.hasClass(i,n.fontStyle.italic)&&(t=!0),this.removeClass(i,n.fontStyle.italic),this.removeClass(i,n.fontStyle.normal),t||this.addClass(i,n.fontStyle.italic)}if("textUnderline"===t){let t=!1;this.hasClass(i,n.textDecoration.underline)&&(t=!0),this.removeClass(i,n.textDecoration.linethrough),this.removeClass(i,n.textDecoration.underline),this.removeClass(i,n.textDecoration.normal),t||this.addClass(i,n.textDecoration.underline)}if("textLinethrough"===t){let t=!1;this.hasClass(i,n.textDecoration.linethrough)&&(t=!0),this.removeClass(i,n.textDecoration.underline),this.removeClass(i,n.textDecoration.linethrough),this.removeClass(i,n.textDecoration.normal),t||this.addClass(i,n.textDecoration.linethrough)}if("textTransform"===t){let t="";this.hasClass(i,n.textTransform.uppercase)?t="uppercase":this.hasClass(i,n.textTransform.lowercase)?t="lowercase":this.hasClass(i,n.textTransform.capitalize)?t="capitalize":this.hasClass(i,n.textTransform.normal)&&(t="normal"),this.removeClass(i,n.textTransform.uppercase),this.removeClass(i,n.textTransform.lowercase),this.removeClass(i,n.textTransform.capitalize),this.removeClass(i,n.textTransform.normal),""===t?this.addClass(i,n.textTransform.uppercase):"uppercase"===t?this.addClass(i,n.textTransform.lowercase):"lowercase"===t?this.addClass(i,n.textTransform.capitalize):"capitalize"===t||"normal"===t&&this.addClass(i,n.textTransform.uppercase)}if("clean"===t&&(i.className="",i.style.cssText=""),"extend"===t){let t=!1;this.hasClass(i,n.extend[e])&&(t=!0),t?this.removeClass(i,n.extend[e]):this.addClass(i,n.extend[e])}this.cleanChildrenToggle(t,e,i,n),this.cleanUnusedSpan(i)}}})),u)return;c||""===o.toString().trim()?this.updateSelectionToggle(t,e,n,d):this.replaceSelectionToggle(t,e,n,o,d)}}updateSelectionToggle(t,e,i,n){if("fontWeight"===t){let t=!1;this.hasClass(n,i.fontWeight.defaultBold)&&(t=!0);parseInt(window.getComputedStyle(n,null).getPropertyValue("font-weight"))>=500&&(t=!0),this.removeClass(n,i.fontWeight.thin),this.removeClass(n,i.fontWeight.extralight),this.removeClass(n,i.fontWeight.light),this.removeClass(n,i.fontWeight.normal),this.removeClass(n,i.fontWeight.medium),this.removeClass(n,i.fontWeight.semibold),this.removeClass(n,i.fontWeight.bold),this.removeClass(n,i.fontWeight.extrabold),this.removeClass(n,i.fontWeight.black),t?this.addClass(n,i.fontWeight.defaultNormal):this.addClass(n,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;this.hasClass(n,i.fontStyle.italic)&&(t=!0),this.removeClass(n,i.fontStyle.italic),this.removeClass(n,i.fontStyle.normal),t?this.addClass(n,i.fontStyle.normal):this.addClass(n,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;this.hasClass(n,i.textDecoration.underline)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t?this.addClass(n,i.textDecoration.normal):this.addClass(n,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;this.hasClass(n,i.textDecoration.linethrough)&&(t=!0),this.removeClass(n,i.textDecoration.underline),this.removeClass(n,i.textDecoration.linethrough),this.removeClass(n,i.textDecoration.normal),t?this.addClass(n,i.textDecoration.normal):this.addClass(n,i.textDecoration.linethrough)}if("textTransform"===t){let t="";this.hasClass(n,i.textTransform.uppercase)?t="uppercase":this.hasClass(n,i.textTransform.lowercase)?t="lowercase":this.hasClass(n,i.textTransform.capitalize)?t="capitalize":this.hasClass(n,i.textTransform.normal)&&(t="normal"),this.removeClass(n,i.textTransform.uppercase),this.removeClass(n,i.textTransform.lowercase),this.removeClass(n,i.textTransform.capitalize),this.removeClass(n,i.textTransform.normal),""===t?this.addClass(n,i.textTransform.uppercase):"uppercase"===t?this.addClass(n,i.textTransform.lowercase):"lowercase"===t?this.addClass(n,i.textTransform.capitalize):"capitalize"===t?this.addClass(n,i.textTransform.normal):"normal"===t&&this.addClass(n,i.textTransform.uppercase)}if("clean"===t&&(n.className="",n.style.cssText=""),"extend"===t){let t=!1;this.hasClass(n,i.extend[e])&&(t=!0),t?this.removeClass(n,i.extend[e]):this.addClass(n,i.extend[e])}return this.cleanChildrenToggle(t,e,n,i),this.cleanUnusedSpan(n),n}replaceSelectionToggle(t,e,i,n,o){const s=n.getRangeAt(0),r=s.extractContents(),l=document.createElement("span");if("fontWeight"===t){let t=!1;o.closest(`.${i.fontWeight.defaultBold}`)&&(t=!0,this.hasClass(o,i.fontWeight.defaultNormal)&&(t=!1));parseInt(window.getComputedStyle(o,null).getPropertyValue("font-weight"))>=500&&(t=!0),t?this.addClass(l,i.fontWeight.defaultNormal):this.addClass(l,i.fontWeight.defaultBold)}if("fontStyle"===t){let t=!1;o.closest(`.${i.fontStyle.italic}`)&&(t=!0,this.hasClass(o,i.fontStyle.normal)&&(t=!1)),t?this.addClass(l,i.fontStyle.normal):this.addClass(l,i.fontStyle.italic)}if("textUnderline"===t){let t=!1;o.closest(`.${i.textDecoration.underline}`)&&(t=!0),t||this.addClass(l,i.textDecoration.underline)}if("textLinethrough"===t){let t=!1;o.closest(`.${i.textDecoration.linethrough}`)&&(t=!0),t||this.addClass(l,i.textDecoration.linethrough)}if("textTransform"===t){let t="";o.closest(`.${i.textTransform.uppercase}`)?t="uppercase":o.closest(`.${i.textTransform.lowercase}`)?t="lowercase":o.closest(`.${i.textTransform.capitalize}`)?t="capitalize":o.closest(`.${i.textTransform.normal}`)&&(t="normal"),""===t?this.addClass(l,i.textTransform.uppercase):"uppercase"===t?this.addClass(l,i.textTransform.lowercase):"lowercase"===t?this.addClass(l,i.textTransform.capitalize):"capitalize"===t?this.addClass(l,i.textTransform.normal):"normal"===t&&this.addClass(l,i.textTransform.uppercase)}if("extend"===t){let t=!1;o.closest(`.${i.extend[e]}`)&&(t=!0),t||this.addClass(l,i.extend[e])}return l.appendChild(r),this.cleanChildrenToggle(t,e,l,i),this.cleanUnusedSpan(l),s.insertNode(l),n.selectAllChildren(l),l}cleanChildrenToggle(t,e,i,n){if(!i.hasChildNodes())return;"fontWeight"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.fontWeight.thin),this.removeClass(t,n.fontWeight.extralight),this.removeClass(t,n.fontWeight.light),this.removeClass(t,n.fontWeight.normal),this.removeClass(t,n.fontWeight.medium),this.removeClass(t,n.fontWeight.semibold),this.removeClass(t,n.fontWeight.bold),this.removeClass(t,n.fontWeight.extrabold),this.removeClass(t,n.fontWeight.black)})),"fontStyle"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.fontStyle.italic),this.removeClass(t,n.fontStyle.normal)})),"textUnderline"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textDecoration.underline),this.removeClass(t,n.textDecoration.linethrough),this.removeClass(t,n.textDecoration.normal)})),"textLinethrough"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textDecoration.underline),this.removeClass(t,n.textDecoration.linethrough),this.removeClass(t,n.textDecoration.normal)})),"textTransform"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.textTransform.uppercase),this.removeClass(t,n.textTransform.lowercase),this.removeClass(t,n.textTransform.capitalize),this.removeClass(t,n.textTransform.normal)})),"clean"===t&&Array.from(i.children).map((t=>{t.className="",t.style.cssText=""})),"extend"===t&&Array.from(i.children).map((t=>{this.removeClass(t,n.extend[e])}));const o=Array.from(i.children).map((i=>this.cleanChildrenToggle(t,e,i,n)));o&&o.length}getSelection(){return this.builder.win&&this.builder.win.getSelection?this.builder.win.getSelection():this.builder.doc&&this.builder.doc.getSelection?this.builder.doc.getSelection():this.builder.doc&&this.builder.doc.selection?this.builder.doc.selection.createRange().text:null}cleanChildren(t,e){if(!e.hasChildNodes())return;const i=Array.from(e.children).filter((e=>void 0!==e.style[t]&&""!==e.style[t.style]));i&&i.length>0&&i.forEach((e=>{e.style[t]="",""!==e.getAttribute("style")&&null!==e.style||e.removeAttribute("style")}));const n=Array.from(e.children).map((e=>this.cleanChildren(t,e)));n&&n.length}addCssClass(t,e,i){this.removeCssClasses(t,i),this.addClass(t,e)}removeCssClasses(t,e){for(let i=0;i<Object.keys(e).length;i++){const n=Object.values(e)[i];this.removeClass(t,n)}}removeEmptyStyle(t){if(!t.hasChildNodes())return;const e=Array.from(t.children).filter((t=>t.getAttribute("style")));e&&e.length>0&&e.forEach((t=>{""!==t.getAttribute("style").trim()&&null!==t.style||t.removeAttribute("style")}));const i=Array.from(t.children).map((t=>this.removeEmptyStyle(t)));i&&i.length}cleanClassSize(t,e){if(!t.hasChildNodes())return;const i=Array.from(t.children).filter((t=>this.hasClass(t,e)));i&&i.length>0&&i.forEach((t=>{this.removeClass(t,e)}));const n=Array.from(t.children).map((t=>this.cleanClassSize(t,e)));n&&n.length}removeFormat(){const t=this.getSelection();if(!t)return;const e=t.anchorNode;if(!e)return;const i=e.nodeType!==Node.TEXT_NODE&&e.nodeType!==Node.COMMENT_NODE?e:e.parentElement;i&&i.innerText===t.toString()||""===t.toString().trim()?this.cleanElement(i):this.cleanSelection(t)}cleanElement(t){t.style.fontWeight="",t.style.fontStyle="",t.style.textDecoration="",t.style.textTransform="",t.style.fontFamily="",t.style.fontSize="",t.style.color="",t.style.backgroundColor="",t.classList.forEach((e=>{-1!==e.indexOf("size-")&&this.removeClass(t,e)})),t.querySelectorAll("*").forEach((t=>{t.style.fontWeight="",t.style.fontStyle="",t.style.textDecoration="",t.style.textTransform="",t.style.fontFamily="",t.style.fontSize="",t.style.color="",t.style.backgroundColor="",t.classList.forEach((e=>{-1!==e.indexOf("size-")&&this.removeClass(t,e)}))})),this.cleanUnusedSpan(t)}cleanSelection(t){const e=t.getRangeAt(0),i=e.extractContents(),n=document.createElement("span");n.appendChild(i),e.insertNode(n),t.selectAllChildren(n),this.cleanElement(n)}cleanUnusedSpan(t){let e=t.querySelectorAll("span");const i=Array.prototype.filter;let n=i.call(e,(t=>0===t.attributes.length));n&&n.length>0&&n.forEach((t=>{t.outerHTML=t.innerHTML})),e=t.querySelectorAll("span"),i.call(e,(t=>{""===t.innerHTML&&t.parentNode.removeChild(t)})),e=t.querySelectorAll("span"),n=i.call(e,(t=>0===t.attributes.length)),n&&n.length>0&&this.cleanUnusedSpan(t)}contentReformat(t,e){this.replaceTag(t,"b",e.fontWeight.defaultBold),this.replaceTag(t,"i",e.fontStyle.italic),this.replaceTag(t,"u",e.textDecoration.underline),this.replaceTag(t,"strike",e.textDecoration.linethrough),this.replaceInline(t,"font-weight","normal",e.fontWeight.defaultBold),this.replaceInline(t,"font-weight","bold",e.fontWeight.defaultBold),this.replaceInline(t,"font-weight","600",e.fontWeight.semibold),this.replaceInline(t,"text-align","left",e.textAlign.left),this.replaceInline(t,"text-align","right",e.textAlign.right),this.replaceInline(t,"text-align","center",e.textAlign.center),this.replaceInline(t,"text-align","justify",e.textAlign.justify),this.replaceInline(t,"display","flex",e.display.flex),this.replaceInline(t,"justiify-content","flex-start",e.justifyContent.start),this.replaceInline(t,"justiify-content","flex-end",e.justifyContent.end),this.replaceInline(t,"justiify-content","center",e.justifyContent.center),this.replaceInline(t,"justiify-content","space-between",e.justifyContent.between),this.replaceInline(t,"flex-direction","column",e.flexDirection.column),this.replaceInline(t,"flex-direction","row",e.flexDirection.row),this.replaceInline(t,"align-items","flex-start",e.alignItems.start),this.replaceInline(t,"align-items","flex-end",e.alignItems.end),this.replaceInline(t,"align-items","center",e.alignItems.center),this.replaceInline(t,"text-transform","uppercase",e.textTransform.uppercase),this.replaceInline(t,"text-transform","lowercase",e.textTransform.lowercase),this.replaceInline(t,"text-transform","none",e.textTransform.normal),this.replaceInline(t,"line-height","1",e.leading.leading_10),this.replaceInline(t,"line-height","1.1",e.leading.leading_11),this.replaceInline(t,"line-height","1.2",e.leading.leading_12),this.replaceInline(t,"line-height","1.25",e.leading.leading_125),this.replaceInline(t,"line-height","1.3",e.leading.leading_13),this.replaceInline(t,"line-height","1.375",e.leading.leading_1375),this.replaceInline(t,"line-height","1.4",e.leading.leading_14),this.replaceInline(t,"line-height","1.5",e.leading.leading_15),this.replaceInline(t,"line-height","1.6",e.leading.leading_16),this.replaceInline(t,"line-height","1.625",e.leading.leading_1625),this.replaceInline(t,"line-height","1.7",e.leading.leading_17),this.replaceInline(t,"line-height","1.8",e.leading.leading_18),this.replaceInline(t,"line-height","1.9",e.leading.leading_19),this.replaceInline(t,"line-height","2",e.leading.leading_20),this.replaceInline(t,"line-height","2.1",e.leading.leading_21),this.replaceInline(t,"line-height","2.2",e.leading.leading_22)}replaceTag(t,e,i){let n=t.querySelectorAll(e);let o=Array.prototype.filter.call(n,(t=>0===t.attributes.length));o&&o.length>0&&o.forEach((t=>{const e=document.createElement("span");e.setAttribute("class",i),e.innerHTML=t.innerHTML,t.outerHTML=e.outerHTML}))}replaceInline(t,e,i,n){t.querySelectorAll("*").forEach((t=>{"justiify-content"===e?t.style.justifyContent===`${i}`&&(this.addClass(t,n),t.style.justifyContent=""):t.style[e]===`${i}`&&(this.addClass(t,n),t.style[e]="")}))}}var s={exports:{}},r={},l={exports:{}},a={},d={};function c(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}function u(t,e){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),e=e||"",t.indent_level>0&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function h(t,e){this.__indent_cache=new u(t,e),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new c(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}c.prototype.clone_empty=function(){var t=new c(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},c.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},c.prototype.has_match=function(t){for(var e=this.__items.length-1;e>=0;e--)if(this.__items[e].match(t))return!0;return!1},c.prototype.set_indent=function(t,e){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=e||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},c.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},c.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},c.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count," "===t.__items[0]&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},c.prototype.is_empty=function(){return 0===this.__items.length},c.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},c.prototype.push=function(t){this.__items.push(t);var e=t.lastIndexOf("\n");-1!==e?this.__character_count=t.length-e:this.__character_count+=t.length},c.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},c.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},c.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},c.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),this.__character_count-=1},c.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t},u.prototype.get_indent_size=function(t,e){var i=this.__base_string_length;return e=e||0,t<0&&(i=0),i+=t*this.__indent_size,i+=e},u.prototype.get_indent_string=function(t,e){var i=this.__base_string;return e=e||0,t<0&&(t=0,i=""),e+=t*this.__indent_size,this.__ensure_cache(e),i+=this.__cache[e]},u.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},u.prototype.__add_column=function(){var t=this.__cache.length,e=0,i="";this.__indent_size&&t>=this.__indent_size&&(t-=(e=Math.floor(t/this.__indent_size))*this.__indent_size,i=new Array(e+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)},h.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},h.prototype.get_line_number=function(){return this.__lines.length},h.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},h.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},h.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},h.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline())&&(this.raw||this.__add_outputline(),!0)},h.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join("\n");return"\n"!==t&&(i=i.replace(/[\n]/g,t)),i},h.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},h.prototype.set_indent=function(t,e){return t=t||0,e=e||0,this.next_line.set_indent(t,e),this.__lines.length>1?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},h.prototype.add_raw_token=function(t){for(var e=0;e<t.newlines;e++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},h.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},h.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},h.prototype.remove_indent=function(t){for(var e=this.__lines.length;t<e;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},h.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},h.prototype.just_added_newline=function(){return this.current_line.is_empty()},h.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},h.prototype.ensure_empty_line_above=function(t,e){for(var i=this.__lines.length-2;i>=0;){var n=this.__lines[i];if(n.is_empty())break;if(0!==n.item(0).indexOf(t)&&n.item(-1)!==e){this.__lines.splice(i+1,0,new c(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},d.Output=h;var p={};p.Token=function(t,e,i,n){this.type=t,this.text=e,this.comments_before=null,this.newlines=i||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null};var g,m,f,b,v,y,x={};v="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+(f="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc")+"])",y="(?:\\\\u[0-9a-fA-F]{4}|["+(m="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a")+f+(b="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f")+"])*",(g=x).identifier=new RegExp(v+y,"g"),g.identifierStart=new RegExp(v),g.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+m+f+b+"])+"),g.newline=/[\n\r\u2028\u2029]/,g.lineBreak=new RegExp("\r\n|"+g.newline.source),g.allLineBreaks=new RegExp(g.lineBreak.source,"g");var w={},S={};function _(t,e){this.raw_options=C(t,e),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs","\t"===this.indent_char),this.indent_with_tabs&&(this.indent_char="\t",1===this.indent_size&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}function C(t,e){var i,n={};for(i in t=k(t))i!==e&&(n[i]=t[i]);if(e&&t[e])for(i in t[e])n[i]=t[e][i];return n}function k(t){var e,i={};for(e in t){i[e.replace(/-/g,"_")]=t[e]}return i}_.prototype._get_array=function(t,e){var i=this.raw_options[t],n=e||[];return"object"==typeof i?null!==i&&"function"==typeof i.concat&&(n=i.concat()):"string"==typeof i&&(n=i.split(/[^a-zA-Z0-9_\/\-]+/)),n},_.prototype._get_boolean=function(t,e){var i=this.raw_options[t];return void 0===i?!!e:!!i},_.prototype._get_characters=function(t,e){var i=this.raw_options[t],n=e||"";return"string"==typeof i&&(n=i.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t")),n},_.prototype._get_number=function(t,e){var i=this.raw_options[t];e=parseInt(e,10),isNaN(e)&&(e=0);var n=parseInt(i,10);return isNaN(n)&&(n=e),n},_.prototype._get_selection=function(t,e,i){var n=this._get_selection_list(t,e,i);if(1!==n.length)throw new Error("Invalid Option Value: The option '"+t+"' can only be one of the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n[0]},_.prototype._get_selection_list=function(t,e,i){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(i=i||[e[0]],!this._is_valid_selection(i,e))throw new Error("Invalid Default Value!");var n=this._get_array(t,i);if(!this._is_valid_selection(n,e))throw new Error("Invalid Option Value: The option '"+t+"' can contain only the following values:\n"+e+"\nYou passed in: '"+this.raw_options[t]+"'");return n},_.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},S.Options=_,S.normalizeOpts=k,S.mergeOpts=C;var E=S.Options,A=["before-newline","after-newline","preserve-newline"];function L(t){E.call(this,t,"js");var e=this.raw_options.brace_style||null;"expand-strict"===e?this.raw_options.brace_style="expand":"collapse-preserve-inline"===e?this.raw_options.brace_style="collapse,preserve-inline":void 0!==this.raw_options.braces_on_own_line&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var n=0;n<i.length;n++)"preserve-inline"===i[n]?this.brace_preserve_inline=!0:this.brace_style=i[n];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",A),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}L.prototype=new E,w.Options=L;var q={},T={},M=RegExp.prototype.hasOwnProperty("sticky");function R(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}R.prototype.restart=function(){this.__position=0},R.prototype.back=function(){this.__position>0&&(this.__position-=1)},R.prototype.hasNext=function(){return this.__position<this.__input_length},R.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},R.prototype.peek=function(t){var e=null;return t=t||0,(t+=this.__position)>=0&&t<this.__input_length&&(e=this.__input.charAt(t)),e},R.prototype.__match=function(t,e){t.lastIndex=e;var i=t.exec(this.__input);return!i||M&&t.sticky||i.index!==e&&(i=null),i},R.prototype.test=function(t,e){return e=e||0,(e+=this.__position)>=0&&e<this.__input_length&&!!this.__match(t,e)},R.prototype.testChar=function(t,e){var i=this.peek(e);return t.lastIndex=0,null!==i&&t.test(i)},R.prototype.match=function(t){var e=this.__match(t,this.__position);return e?this.__position+=e[0].length:e=null,e},R.prototype.read=function(t,e,i){var n,o="";return t&&(n=this.match(t))&&(o+=n[0]),!e||!n&&t||(o+=this.readUntil(e,i)),o},R.prototype.readUntil=function(t,e){var i,n=this.__position;t.lastIndex=this.__position;var o=t.exec(this.__input);return o?(n=o.index,e&&(n+=o[0].length)):n=this.__input_length,i=this.__input.substring(this.__position,n),this.__position=n,i},R.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},R.prototype.get_regexp=function(t,e){var i=null,n="g";return e&&M&&(n="y"),"string"==typeof t&&""!==t?i=new RegExp(t,n):t&&(i=new RegExp(t.source,n)),i},R.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},R.prototype.peekUntilAfter=function(t){var e=this.__position,i=this.readUntilAfter(t);return this.__position=e,i},R.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},T.InputScanner=R;var O={},B={};function N(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}N.prototype.restart=function(){this.__position=0},N.prototype.isEmpty=function(){return 0===this.__tokens_length},N.prototype.hasNext=function(){return this.__position<this.__tokens_length},N.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},N.prototype.peek=function(t){var e=null;return t=t||0,(t+=this.__position)>=0&&t<this.__tokens_length&&(e=this.__tokens[t]),e},N.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},B.TokenStream=N;var I={},$={};function D(t,e){this._input=t,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,e&&(this._starting_pattern=this._input.get_regexp(e._starting_pattern,!0),this._match_pattern=this._input.get_regexp(e._match_pattern,!0),this._until_pattern=this._input.get_regexp(e._until_pattern),this._until_after=e._until_after)}D.prototype.read=function(){var t=this._input.read(this._starting_pattern);return this._starting_pattern&&!t||(t+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),t},D.prototype.read_match=function(){return this._input.match(this._match_pattern)},D.prototype.until_after=function(t){var e=this._create();return e._until_after=!0,e._until_pattern=this._input.get_regexp(t),e._update(),e},D.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},D.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},D.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},D.prototype._create=function(){return new D(this._input,this)},D.prototype._update=function(){},$.Pattern=D;var z=$.Pattern;function P(t,e){z.call(this,t,e),e?this._line_regexp=this._input.get_regexp(e._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}P.prototype=new z,P.prototype.__set_whitespace_patterns=function(t,e){t+="\\t ",e+="\\n\\r",this._match_pattern=this._input.get_regexp("["+t+e+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},P.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t=this._input.read(this._match_pattern);if(" "===t)this.whitespace_before_token=" ";else if(t){var e=this.__split(this._newline_regexp,t);this.newline_count=e.length-1,this.whitespace_before_token=e[this.newline_count]}return t},P.prototype.matching=function(t,e){var i=this._create();return i.__set_whitespace_patterns(t,e),i._update(),i},P.prototype._create=function(){return new P(this._input,this)},P.prototype.__split=function(t,e){t.lastIndex=0;for(var i=0,n=[],o=t.exec(e);o;)n.push(e.substring(i,o.index)),i=o.index+o[0].length,o=t.exec(e);return i<e.length?n.push(e.substring(i,e.length)):n.push(""),n},I.WhitespacePattern=P;var H=T.InputScanner,F=p.Token,U=B.TokenStream,j=I.WhitespacePattern,W={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},G=function(t,e){this._input=new H(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new j(this._input)};G.prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new U,this._reset();for(var e=new F(W.START,""),i=null,n=[],o=new U;e.type!==W.EOF;){for(t=this._get_next_token(e,i);this._is_comment(t);)o.add(t),t=this._get_next_token(e,i);o.isEmpty()||(t.comments_before=o,o=new U),t.parent=i,this._is_opening(t)?(n.push(i),i=t):i&&this._is_closing(t,i)&&(t.opened=i,i.closed=t,i=n.pop(),t.parent=i),t.previous=e,e.next=t,this.__tokens.add(t),e=t}return this.__tokens},G.prototype._is_first_token=function(){return this.__tokens.isEmpty()},G.prototype._reset=function(){},G.prototype._get_next_token=function(t,e){this._readWhitespace();var i=this._input.read(/.+/g);return i?this._create_token(W.RAW,i):this._create_token(W.EOF,"")},G.prototype._is_comment=function(t){return!1},G.prototype._is_opening=function(t){return!1},G.prototype._is_closing=function(t,e){return!1},G.prototype._create_token=function(t,e){return new F(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},G.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},O.Tokenizer=G,O.TOKEN=W;var V={};function Y(t,e){t="string"==typeof t?t:t.source,e="string"==typeof e?e:e.source,this.__directives_block_pattern=new RegExp(t+/ beautify( \w+[:]\w+)+ /.source+e,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(t+/\sbeautify\signore:end\s/.source+e,"g")}Y.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var i=this.__directive_pattern.exec(t);i;)e[i[1]]=i[2],i=this.__directive_pattern.exec(t);return e},Y.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},V.Directives=Y;var X={},Z=$.Pattern,K={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function Q(t,e){Z.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},K),this._excluded=Object.assign({},K),e&&(this.__template_pattern=this._input.get_regexp(e.__template_pattern),this._excluded=Object.assign(this._excluded,e._excluded),this._disabled=Object.assign(this._disabled,e._disabled));var i=new Z(t);this.__patterns={handlebars_comment:i.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:i.starting_with(/{{{/).until_after(/}}}/),handlebars:i.starting_with(/{{/).until_after(/}}/),php:i.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:i.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:i.starting_with(/{%/).until_after(/%}/),django_value:i.starting_with(/{{/).until_after(/}}/),django_comment:i.starting_with(/{#/).until_after(/#}/),smarty:i.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:i.starting_with(/{\*/).until_after(/\*}/),smarty_literal:i.starting_with(/{literal}/).until_after(/{\/literal}/)}}Q.prototype=new Z,Q.prototype._create=function(){return new Q(this._input,this)},Q.prototype._update=function(){this.__set_templated_pattern()},Q.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},Q.prototype.read_options=function(t){var e=this._create();for(var i in K)e._disabled[i]=-1===t.templating.indexOf(i);return e._update(),e},Q.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},Q.prototype.read=function(){var t="";t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern);for(var e=this._read_template();e;)this._match_pattern?e+=this._input.read(this._match_pattern):e+=this._input.readUntil(this.__template_pattern),t+=e,e=this._read_template();return this._until_after&&(t+=this._input.readUntilAfter(this._until_pattern)),t},Q.prototype.__set_templated_pattern=function(){var t=[];this._disabled.php||t.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||t.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||t.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(t.push(this.__patterns.django._starting_pattern.source),t.push(this.__patterns.django_value._starting_pattern.source),t.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||t.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&t.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+t.join("|")+")")},Q.prototype._read_template=function(){var t="",e=this._input.peek();if("<"===e){var i=this._input.peek(1);this._disabled.php||this._excluded.php||"?"!==i||(t=t||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==i||(t=t||this.__patterns.erb.read())}else"{"===e&&(this._disabled.handlebars||this._excluded.handlebars||(t=(t=(t=t||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(t=t||this.__patterns.django_value.read()),this._excluded.django||(t=(t=t||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(t=(t=(t=t||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read()));return t},X.TemplatablePattern=Q;var J=T.InputScanner,tt=O.Tokenizer,et=O.TOKEN,it=V.Directives,nt=x,ot=$.Pattern,st=X.TemplatablePattern;function rt(t,e){return-1!==e.indexOf(t)}var lt={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:et.START,RAW:et.RAW,EOF:et.EOF},at=new it(/\/\*/,/\*\//),dt=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,ct=/[0-9]/,ut=/[^\d\.]/,ht=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),pt=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";pt=(pt="\\?\\.(?!\\d) "+(pt=pt.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"))).replace(/ /g,"|");var gt,mt=new RegExp(pt),ft="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),bt=ft.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),vt=new RegExp("^(?:"+bt.join("|")+")$"),yt=function(t,e){tt.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var i=new ot(this._input),n=new st(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(nt.identifier).matching(nt.identifierMatch),number:i.matching(dt),punct:i.matching(mt),comment:i.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:i.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:i.matching(/<!--/),html_comment_end:i.matching(/-->/),include:i.starting_with(/#include/).until_after(nt.lineBreak),shebang:i.starting_with(/#!/).until_after(nt.lineBreak),xml:i.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[\s\S]+?}|!\[CDATA\[[\s\S]*?\]\]|)(\s+{[\s\S]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{[\s\S]+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}};(yt.prototype=new tt)._is_comment=function(t){return t.type===lt.COMMENT||t.type===lt.BLOCK_COMMENT||t.type===lt.UNKNOWN},yt.prototype._is_opening=function(t){return t.type===lt.START_BLOCK||t.type===lt.START_EXPR},yt.prototype._is_closing=function(t,e){return(t.type===lt.END_BLOCK||t.type===lt.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},yt.prototype._reset=function(){gt=!1},yt.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(lt.EOF,""):i=(i=(i=(i=(i=(i=(i=(i=(i=i||this._read_non_javascript(n))||this._read_string(n))||this._read_word(t))||this._read_singles(n))||this._read_comment(n))||this._read_regexp(n,t))||this._read_xml(n,t))||this._read_punctuation())||this._create_token(lt.UNKNOWN,this._input.next())},yt.prototype._read_word=function(t){var e;return""!==(e=this.__patterns.identifier.read())?(e=e.replace(nt.allLineBreaks,"\n"),t.type!==lt.DOT&&(t.type!==lt.RESERVED||"set"!==t.text&&"get"!==t.text)&&vt.test(e)?"in"===e||"of"===e?this._create_token(lt.OPERATOR,e):this._create_token(lt.RESERVED,e):this._create_token(lt.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(lt.WORD,e):void 0},yt.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(lt.START_EXPR,t):")"===t||"]"===t?e=this._create_token(lt.END_EXPR,t):"{"===t?e=this._create_token(lt.START_BLOCK,t):"}"===t?e=this._create_token(lt.END_BLOCK,t):";"===t?e=this._create_token(lt.SEMICOLON,t):"."===t&&ut.test(this._input.peek(1))?e=this._create_token(lt.DOT,t):","===t&&(e=this._create_token(lt.COMMA,t)),e&&this._input.next(),e},yt.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(lt.EQUALS,t):"?."===t?this._create_token(lt.DOT,t):this._create_token(lt.OPERATOR,t)},yt.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(lt.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(lt.UNKNOWN,e.trim()+"\n");t=this._input.next();var i="#";if(this._input.hasNext()&&this._input.testChar(ct)){do{i+=t=this._input.next()}while(this._input.hasNext()&&"#"!==t&&"="!==t);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(i+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(i+="{}",this._input.next(),this._input.next())),this._create_token(lt.WORD,i)}this._input.back()}else if("<"===t&&this._is_first_token()){if(e=this.__patterns.html_comment_start.read()){for(;this._input.hasNext()&&!this._input.testChar(nt.newline);)e+=this._input.next();return gt=!0,this._create_token(lt.COMMENT,e)}}else if(gt&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return gt=!1,this._create_token(lt.COMMENT,e);return null},yt.prototype._read_comment=function(t){var e=null;if("/"===t){var i="";if("*"===this._input.peek(1)){i=this.__patterns.block_comment.read();var n=at.get_directives(i);n&&"start"===n.ignore&&(i+=at.readIgnored(this._input)),i=i.replace(nt.allLineBreaks,"\n"),(e=this._create_token(lt.BLOCK_COMMENT,i)).directives=n}else"/"===this._input.peek(1)&&(i=this.__patterns.comment.read(),e=this._create_token(lt.COMMENT,i))}return e},yt.prototype._read_string=function(t){if("`"===t||"'"===t||'"'===t){var e=this._input.next();return this.has_char_escapes=!1,e+="`"===t?this._read_string_recursive("`",!0,"${"):this._read_string_recursive(t),this.has_char_escapes&&this._options.unescape_strings&&(e=function(t){var e="",i=0,n=new J(t),o=null;for(;n.hasNext();)if((o=n.match(/([\s]|[^\\]|\\\\)+/g))&&(e+=o[0]),"\\"===n.peek()){if(n.next(),"x"===n.peek())o=n.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==n.peek()){e+="\\",n.hasNext()&&(e+=n.next());continue}o=n.match(/u([0-9A-Fa-f]{4})/g)}if(!o)return t;if((i=parseInt(o[1],16))>126&&i<=255&&0===o[0].indexOf("x"))return t;if(i>=0&&i<32){e+="\\"+o[0];continue}e+=34===i||39===i||92===i?"\\"+String.fromCharCode(i):String.fromCharCode(i)}return e}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(nt.allLineBreaks,"\n"),this._create_token(lt.STRING,e)}return null},yt.prototype._allow_regexp_or_xml=function(t){return t.type===lt.RESERVED&&rt(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===lt.END_EXPR&&")"===t.text&&t.opened.previous.type===lt.RESERVED&&rt(t.opened.previous.text,["if","while","for"])||rt(t.type,[lt.COMMENT,lt.START_EXPR,lt.START_BLOCK,lt.START,lt.END_BLOCK,lt.OPERATOR,lt.EQUALS,lt.EOF,lt.SEMICOLON,lt.COMMA])},yt.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var i=this._input.next(),n=!1,o=!1;this._input.hasNext()&&(n||o||this._input.peek()!==t)&&!this._input.testChar(nt.newline);)i+=this._input.peek(),n?n=!1:(n="\\"===this._input.peek(),"["===this._input.peek()?o=!0:"]"===this._input.peek()&&(o=!1)),this._input.next();return this._input.peek()===t&&(i+=this._input.next(),i+=this._input.read(nt.identifier)),this._create_token(lt.STRING,i)}return null},yt.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var i="",n=this.__patterns.xml.read_match();if(n){for(var o=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),s=0===o.indexOf("{"),r=0;n;){var l=!!n[1],a=n[2];if(!(!!n[n.length-1]||"![CDATA["===a.slice(0,8))&&(a===o||s&&a.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--r:++r),i+=n[0],r<=0)break;n=this.__patterns.xml.read_match()}return n||(i+=this._input.match(/[\s\S]*/g)[0]),i=i.replace(nt.allLineBreaks,"\n"),this._create_token(lt.STRING,i)}}return null},yt.prototype._read_string_recursive=function(t,e,i){var n,o;"'"===t?o=this.__patterns.single_quote:'"'===t?o=this.__patterns.double_quote:"`"===t?o=this.__patterns.template_text:"}"===t&&(o=this.__patterns.template_expression);for(var s=o.read(),r="";this._input.hasNext();){if((r=this._input.next())===t||!e&&nt.newline.test(r)){this._input.back();break}"\\"===r&&this._input.hasNext()?("x"===(n=this._input.peek())||"u"===n?this.has_char_escapes=!0:"\r"===n&&"\n"===this._input.peek(1)&&this._input.next(),r+=this._input.next()):i&&("${"===i&&"$"===r&&"{"===this._input.peek()&&(r+=this._input.next()),i===r&&(r+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(r+=this._input.next()))),s+=r+=o.read()}return s},q.Tokenizer=yt,q.TOKEN=lt,q.positionable_operators=ht.slice(),q.line_starters=ft.slice();var xt=d.Output,wt=p.Token,St=x,_t=w.Options,Ct=q.Tokenizer,kt=q.line_starters,Et=q.positionable_operators,At=q.TOKEN;function Lt(t,e){return-1!==e.indexOf(t)}function qt(t,e){return t&&t.type===At.RESERVED&&t.text===e}function Tt(t,e){return t&&t.type===At.RESERVED&&Lt(t.text,e)}var Mt=["case","return","do","if","throw","else","await","break","continue","async"],Rt=function(t){for(var e={},i=0;i<t.length;i++)e[t[i].replace(/-/g,"_")]=t[i];return e}(["before-newline","after-newline","preserve-newline"]),Ot=[Rt.before_newline,Rt.preserve_newline],Bt={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Nt(t,e){e.multiline_frame||e.mode===Bt.ForInitializer||e.mode===Bt.Conditional||t.remove_indent(e.start_line_index)}function It(t){return t===Bt.ArrayLiteral}function $t(t){return Lt(t,[Bt.Expression,Bt.ForInitializer,Bt.Conditional])}function Dt(t,e){e=e||{},this._source_text=t||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new _t(e)}Dt.prototype.create_flags=function(t,e){var i=0;return t&&(i=t.indentation_level,!this._output.just_added_newline()&&t.line_indent_level>i&&(i=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new wt(At.START_BLOCK,""),last_word:t?t.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:i,alignment:0,line_indent_level:t?t.line_indent_level:i,start_line_index:this._output.get_line_number(),ternary_depth:0}},Dt.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new xt(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Bt.BlockStatement);var i=new Ct(t,this._options);return this._tokens=i.tokenize(),t},Dt.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._reset(this._source_text),e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&St.lineBreak.test(t||"")&&(e=t.match(St.lineBreak)[0]));for(var i=this._tokens.next();i;)this.handle_token(i),this._last_last_text=this._flags.last_token.text,this._flags.last_token=i,i=this._tokens.next();return this._output.get_code(e)},Dt.prototype.handle_token=function(t,e){t.type===At.START_EXPR?this.handle_start_expr(t):t.type===At.END_EXPR?this.handle_end_expr(t):t.type===At.START_BLOCK?this.handle_start_block(t):t.type===At.END_BLOCK?this.handle_end_block(t):t.type===At.WORD||t.type===At.RESERVED?this.handle_word(t):t.type===At.SEMICOLON?this.handle_semicolon(t):t.type===At.STRING?this.handle_string(t):t.type===At.EQUALS?this.handle_equals(t):t.type===At.OPERATOR?this.handle_operator(t):t.type===At.COMMA?this.handle_comma(t):t.type===At.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===At.COMMENT?this.handle_comment(t,e):t.type===At.DOT?this.handle_dot(t):t.type===At.EOF?this.handle_eof(t):(t.type,At.UNKNOWN,this.handle_unknown(t,e))},Dt.prototype.handle_whitespace_and_comments=function(t,e){var i=t.newlines,n=this._options.keep_array_indentation&&It(this._flags.mode);if(t.comments_before)for(var o=t.comments_before.next();o;)this.handle_whitespace_and_comments(o,e),this.handle_token(o,e),o=t.comments_before.next();if(n)for(var s=0;s<i;s+=1)this.print_newline(s>0,e);else if(this._options.max_preserve_newlines&&i>this._options.max_preserve_newlines&&(i=this._options.max_preserve_newlines),this._options.preserve_newlines&&i>1){this.print_newline(!1,e);for(var r=1;r<i;r+=1)this.print_newline(!0,e)}};var zt=["async","break","continue","return","throw","yield"];Dt.prototype.allow_wrap_or_preserved_newline=function(t,e){if(e=void 0!==e&&e,!this._output.just_added_newline()){var i=this._options.preserve_newlines&&t.newlines||e;if(Lt(this._flags.last_token.text,Et)||Lt(t.text,Et)){var n=Lt(this._flags.last_token.text,Et)&&Lt(this._options.operator_position,Ot)||Lt(t.text,Et);i=i&&n}if(i)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Tt(this._flags.last_token,zt))return;this._output.set_wrap_point()}}},Dt.prototype.print_newline=function(t,e){if(!e&&";"!==this._flags.last_token.text&&","!==this._flags.last_token.text&&"="!==this._flags.last_token.text&&(this._flags.last_token.type!==At.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var i=this._tokens.peek();!(this._flags.mode!==Bt.Statement||this._flags.if_block&&qt(i,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(t)&&(this._flags.multiline_frame=!0)},Dt.prototype.print_token_line_indentation=function(t){this._output.just_added_newline()&&(this._options.keep_array_indentation&&t.newlines&&("["===t.text||It(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(t.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},Dt.prototype.print_token=function(t){if(this._output.raw)this._output.add_raw_token(t);else{if(this._options.comma_first&&t.previous&&t.previous.type===At.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()){var e=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(e),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(t),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(t),this._output.non_breaking_space=!0,this._output.add_token(t.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)}},Dt.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Dt.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},Dt.prototype.set_mode=function(t){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,t),this._flags=this.create_flags(this._previous_flags,t),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},Dt.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Bt.Statement&&Nt(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},Dt.prototype.start_of_object_property=function(){return this._flags.parent.mode===Bt.ObjectLiteral&&this._flags.mode===Bt.Statement&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||Tt(this._flags.last_token,["get","set"]))},Dt.prototype.start_of_statement=function(t){var e=!1;return!!(e=(e=(e=(e=(e=(e=(e=e||Tt(this._flags.last_token,["var","let","const"])&&t.type===At.WORD)||qt(this._flags.last_token,"do"))||!(this._flags.parent.mode===Bt.ObjectLiteral&&this._flags.mode===Bt.Statement)&&Tt(this._flags.last_token,zt)&&!t.newlines)||qt(this._flags.last_token,"else")&&!(qt(t,"if")&&!t.comments_before))||this._flags.last_token.type===At.END_EXPR&&(this._previous_flags.mode===Bt.ForInitializer||this._previous_flags.mode===Bt.Conditional))||this._flags.last_token.type===At.WORD&&this._flags.mode===Bt.BlockStatement&&!this._flags.in_case&&!("--"===t.text||"++"===t.text)&&"function"!==this._last_last_text&&t.type!==At.WORD&&t.type!==At.RESERVED)||this._flags.mode===Bt.ObjectLiteral&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||Tt(this._flags.last_token,["get","set"])))&&(this.set_mode(Bt.Statement),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,Tt(t,["do","for","if","while"])),!0)},Dt.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e=Bt.Expression;if("["===t.text){if(this._flags.last_token.type===At.WORD||")"===this._flags.last_token.text)return Tt(this._flags.last_token,kt)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(e),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));e=Bt.ArrayLiteral,It(this._flags.mode)&&("["!==this._flags.last_token.text&&(","!==this._flags.last_token.text||"]"!==this._last_last_text&&"}"!==this._last_last_text)||this._options.keep_array_indentation||this.print_newline()),Lt(this._flags.last_token.type,[At.START_EXPR,At.END_EXPR,At.WORD,At.OPERATOR,At.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===At.RESERVED)"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,e=Bt.ForInitializer):Lt(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,e=Bt.Conditional):Lt(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:"import"===this._flags.last_token.text&&""===t.whitespace_before?this._output.space_before_token=!1:(Lt(this._flags.last_token.text,kt)||"catch"===this._flags.last_token.text)&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===At.EQUALS||this._flags.last_token.type===At.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t);else if(this._flags.last_token.type===At.WORD){this._output.space_before_token=!1;var i=this._tokens.peek(-3);if(this._options.space_after_named_function&&i){var n=this._tokens.peek(-4);Tt(i,["async","function"])||"*"===i.text&&Tt(n,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Bt.ObjectLiteral&&("{"!==i.text&&","!==i.text&&("*"!==i.text||"{"!==n.text&&","!==n.text)||(this._output.space_before_token=!0))}}else this.allow_wrap_or_preserved_newline(t);(this._flags.last_token.type===At.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(Lt(this._last_last_text,["function","yield"])||this._flags.mode===Bt.ObjectLiteral&&Lt(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}";"===this._flags.last_token.text||this._flags.last_token.type===At.START_BLOCK?this.print_newline():this._flags.last_token.type!==At.END_EXPR&&this._flags.last_token.type!==At.START_EXPR&&this._flags.last_token.type!==At.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==At.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(e),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},Dt.prototype.handle_end_expr=function(t){for(;this._flags.mode===Bt.Statement;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&It(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==At.START_EXPR||this._options.space_in_empty_paren?this._output.space_before_token=!0:(this._output.trim(),this._output.space_before_token=!1)),this.deindent(),this.print_token(t),this.restore_mode(),Nt(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Bt.Conditional&&(this._previous_flags.mode=Bt.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},Dt.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),i=this._tokens.peek(1);"switch"===this._flags.last_word&&this._flags.last_token.type===At.END_EXPR?(this.set_mode(Bt.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Bt.BlockStatement):i&&(Lt(i.text,[":",","])&&Lt(e.type,[At.STRING,At.WORD,At.RESERVED])||Lt(e.text,["get","set","..."])&&Lt(i.type,[At.WORD,At.RESERVED]))?Lt(this._last_last_text,["class","interface"])?this.set_mode(Bt.BlockStatement):this.set_mode(Bt.ObjectLiteral):this._flags.last_token.type===At.OPERATOR&&"=>"===this._flags.last_token.text?this.set_mode(Bt.BlockStatement):Lt(this._flags.last_token.type,[At.EQUALS,At.START_EXPR,At.COMMA,At.OPERATOR])||Tt(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Bt.ObjectLiteral):this.set_mode(Bt.BlockStatement);var n=!e.comments_before&&"}"===e.text,o=n&&"function"===this._flags.last_word&&this._flags.last_token.type===At.END_EXPR;if(this._options.brace_preserve_inline){var s=0,r=null;this._flags.inline_frame=!0;do{if(s+=1,(r=this._tokens.peek(s-1)).newlines){this._flags.inline_frame=!1;break}}while(r.type!==At.EOF&&(r.type!==At.END_BLOCK||r.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==At.OPERATOR&&(o||this._flags.last_token.type===At.EQUALS||Tt(this._flags.last_token,Mt)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!It(this._previous_flags.mode)||this._flags.last_token.type!==At.START_EXPR&&this._flags.last_token.type!==At.COMMA||((this._flags.last_token.type===At.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===At.COMMA||this._flags.last_token.type===At.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(t),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==At.OPERATOR&&this._flags.last_token.type!==At.START_EXPR&&(this._flags.last_token.type!==At.START_BLOCK||this._flags.inline_frame?this._output.space_before_token=!0:this.print_newline())),this.print_token(t),this.indent(),n||this._options.brace_preserve_inline&&this._flags.inline_frame||this.print_newline()},Dt.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);this._flags.mode===Bt.Statement;)this.restore_mode();var e=this._flags.last_token.type===At.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(It(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(t)},Dt.prototype.handle_word=function(t){if(t.type===At.RESERVED)if(Lt(t.text,["set","get"])&&this._flags.mode!==Bt.ObjectLiteral)t.type=At.WORD;else if("import"===t.text&&"("===this._tokens.peek().text)t.type=At.WORD;else if(Lt(t.text,["as","from"])&&!this._flags.import_block)t.type=At.WORD;else if(this._flags.mode===Bt.ObjectLiteral){":"===this._tokens.peek().text&&(t.type=At.WORD)}if(this.start_of_statement(t)?Tt(this._flags.last_token,["var","let","const"])&&t.type===At.WORD&&(this._flags.declaration_statement=!0):!t.newlines||$t(this._flags.mode)||this._flags.last_token.type===At.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===At.EQUALS||!this._options.preserve_newlines&&Tt(this._flags.last_token,["var","let","const","set","get"])?this.handle_whitespace_and_comments(t):(this.handle_whitespace_and_comments(t),this.print_newline()),this._flags.do_block&&!this._flags.do_while){if(qt(t,"while"))return this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0,void(this._flags.do_while=!0);this.print_newline(),this._flags.do_block=!1}if(this._flags.if_block)if(!this._flags.else_block&&qt(t,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Bt.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&Tt(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==At.END_BLOCK&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(t),void(this._flags.in_case=!0);if(this._flags.last_token.type!==At.COMMA&&this._flags.last_token.type!==At.START_EXPR&&this._flags.last_token.type!==At.EQUALS&&this._flags.last_token.type!==At.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),qt(t,"function"))return(Lt(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!Lt(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==At.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===At.RESERVED||this._flags.last_token.type===At.WORD?Tt(this._flags.last_token,["get","set","new","export"])||Tt(this._flags.last_token,zt)||qt(this._flags.last_token,"default")&&"export"===this._last_last_text||"declare"===this._flags.last_token.text?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===At.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:(this._flags.multiline_frame||!$t(this._flags.mode)&&!It(this._flags.mode))&&this.print_newline(),this.print_token(t),void(this._flags.last_word=t.text);var e="NONE";(this._flags.last_token.type===At.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":Tt(t,["else","catch","finally","from"])?"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines?e="NEWLINE":(e="SPACE",this._output.space_before_token=!0):e="NEWLINE":this._flags.last_token.type===At.SEMICOLON&&this._flags.mode===Bt.BlockStatement?e="NEWLINE":this._flags.last_token.type===At.SEMICOLON&&$t(this._flags.mode)?e="SPACE":this._flags.last_token.type===At.STRING?e="NEWLINE":this._flags.last_token.type===At.RESERVED||this._flags.last_token.type===At.WORD||"*"===this._flags.last_token.text&&(Lt(this._last_last_text,["function","yield"])||this._flags.mode===Bt.ObjectLiteral&&Lt(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===At.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===At.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),Tt(t,kt)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),Tt(t,["else","catch","finally"]))?(this._flags.last_token.type!==At.END_BLOCK||this._previous_flags.mode!==Bt.BlockStatement||"expand"===this._options.brace_style||"end-expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this.print_newline():(this._output.trim(!0),"}"!==this._output.current_line.last()&&this.print_newline(),this._output.space_before_token=!0):"NEWLINE"===e?Tt(this._flags.last_token,Mt)||"declare"===this._flags.last_token.text&&Tt(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==At.END_EXPR?this._flags.last_token.type===At.START_EXPR&&Tt(t,["var","let","const"])||":"===this._flags.last_token.text||(qt(t,"if")&&qt(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Tt(t,kt)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&It(this._flags.mode)&&","===this._flags.last_token.text&&"}"===this._last_last_text?this.print_newline():"SPACE"===e&&(this._output.space_before_token=!0);!t.previous||t.previous.type!==At.WORD&&t.previous.type!==At.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===At.RESERVED&&("do"===t.text?this._flags.do_block=!0:"if"===t.text?this._flags.if_block=!0:"import"===t.text?this._flags.import_block=!0:this._flags.import_block&&qt(t,"from")&&(this._flags.import_block=!1))},Dt.prototype.handle_semicolon=function(t){this.start_of_statement(t)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(t);for(var e=this._tokens.peek();!(this._flags.mode!==Bt.Statement||this._flags.if_block&&qt(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},Dt.prototype.handle_string=function(t){(!t.text.startsWith("`")||0!==t.newlines||""!==t.whitespace_before||")"!==t.previous.text&&this._flags.last_token.type!==At.WORD)&&(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===At.RESERVED||this._flags.last_token.type===At.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===At.COMMA||this._flags.last_token.type===At.START_EXPR||this._flags.last_token.type===At.EQUALS||this._flags.last_token.type===At.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==At.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},Dt.prototype.handle_equals=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0},Dt.prototype.handle_comma=function(t){this.handle_whitespace_and_comments(t,!0),this.print_token(t),this._output.space_before_token=!0,this._flags.declaration_statement?($t(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)):this._flags.mode===Bt.ObjectLiteral||this._flags.mode===Bt.Statement&&this._flags.parent.mode===Bt.ObjectLiteral?(this._flags.mode===Bt.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},Dt.prototype.handle_operator=function(t){var e="*"===t.text&&(Tt(this._flags.last_token,["function","yield"])||Lt(this._flags.last_token.type,[At.START_BLOCK,At.COMMA,At.END_BLOCK,At.SEMICOLON])),i=Lt(t.text,["-","+"])&&(Lt(this._flags.last_token.type,[At.START_BLOCK,At.START_EXPR,At.EQUALS,At.OPERATOR])||Lt(this._flags.last_token.text,kt)||","===this._flags.last_token.text);if(this.start_of_statement(t));else{var n=!e;this.handle_whitespace_and_comments(t,n)}if(Tt(this._flags.last_token,Mt))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==At.DOT)if("::"!==t.text){if(this._flags.last_token.type===At.OPERATOR&&Lt(this._options.operator_position,Ot)&&this.allow_wrap_or_preserved_newline(t),":"===t.text&&this._flags.in_case)return this.print_token(t),this._flags.in_case=!1,this._flags.case_body=!0,void(this._tokens.peek().type!==At.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var o=!0,s=!0,r=!1;if(":"===t.text?0===this._flags.ternary_depth?o=!1:(this._flags.ternary_depth-=1,r=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!i&&!e&&this._options.preserve_newlines&&Lt(t.text,Et)){var l=":"===t.text,a=l&&r,d=l&&!r;switch(this._options.operator_position){case Rt.before_newline:return this._output.space_before_token=!d,this.print_token(t),l&&!a||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case Rt.after_newline:return this._output.space_before_token=!0,!l||a?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(t):this._output.space_before_token=!1,this.print_token(t),void(this._output.space_before_token=!0);case Rt.preserve_newline:return d||this.allow_wrap_or_preserved_newline(t),o=!(this._output.just_added_newline()||d),this._output.space_before_token=o,this.print_token(t),void(this._output.space_before_token=!0)}}if(e){this.allow_wrap_or_preserved_newline(t),o=!1;var c=this._tokens.peek();s=c&&Lt(c.type,[At.WORD,At.RESERVED])}else"..."===t.text?(this.allow_wrap_or_preserved_newline(t),o=this._flags.last_token.type===At.START_BLOCK,s=!1):(Lt(t.text,["--","++","!","~"])||i)&&(this._flags.last_token.type!==At.COMMA&&this._flags.last_token.type!==At.START_EXPR||this.allow_wrap_or_preserved_newline(t),o=!1,s=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&$t(this._flags.mode)&&(o=!0),this._flags.last_token.type===At.RESERVED?o=!0:this._flags.last_token.type===At.END_EXPR?o=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===At.OPERATOR&&(o=Lt(t.text,["--","-","++","+"])&&Lt(this._flags.last_token.text,["--","-","++","+"]),Lt(t.text,["+","-"])&&Lt(this._flags.last_token.text,["--","++"])&&(s=!0)),(this._flags.mode!==Bt.BlockStatement||this._flags.inline_frame)&&this._flags.mode!==Bt.Statement||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline());this._output.space_before_token=this._output.space_before_token||o,this.print_token(t),this._output.space_before_token=s}else this.print_token(t);else this.print_token(t)},Dt.prototype.handle_block_comment=function(t,e){return this._output.raw?(this._output.add_raw_token(t),void(t.directives&&"end"===t.directives.preserve&&(this._output.raw=this._options.test_output_raw))):t.directives?(this.print_newline(!1,e),this.print_token(t),"start"===t.directives.preserve&&(this._output.raw=!0),void this.print_newline(!1,!0)):St.newline.test(t.text)||t.newlines?void this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),void(this._output.space_before_token=!0))},Dt.prototype.print_block_commment=function(t,e){var i,n=function(t){for(var e=[],i=(t=t.replace(St.allLineBreaks,"\n")).indexOf("\n");-1!==i;)e.push(t.substring(0,i)),i=(t=t.substring(i+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),o=!1,s=!1,r=t.whitespace_before,l=r.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(n[0]),this.print_newline(!1,e),n.length>1){for(o=function(t,e){for(var i=0;i<t.length;i++)if(t[i].trim().charAt(0)!==e)return!1;return!0}(n=n.slice(1),"*"),s=function(t,e){for(var i,n=0,o=t.length;n<o;n++)if((i=t[n])&&0!==i.indexOf(e))return!1;return!0}(n,r),o&&(this._flags.alignment=1),i=0;i<n.length;i++)o?(this.print_token_line_indentation(t),this._output.add_token(n[i].replace(/^\s+/g,""))):s&&n[i]?(this.print_token_line_indentation(t),this._output.add_token(n[i].substring(l))):(this._output.current_line.set_indent(-1),this._output.add_token(n[i])),this.print_newline(!1,e);this._flags.alignment=0}},Dt.prototype.handle_comment=function(t,e){t.newlines?this.print_newline(!1,e):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(t),this.print_newline(!1,e)},Dt.prototype.handle_dot=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!0),Tt(this._flags.last_token,Mt)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(t,")"===this._flags.last_token.text&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(t)},Dt.prototype.handle_unknown=function(t,e){this.print_token(t),"\n"===t.text[t.text.length-1]&&this.print_newline(!1,e)},Dt.prototype.handle_eof=function(t){for(;this._flags.mode===Bt.Statement;)this.restore_mode();this.handle_whitespace_and_comments(t)},a.Beautifier=Dt;var Pt=a.Beautifier,Ht=w.Options;l.exports=function(t,e){return new Pt(t,e).beautify()},l.exports.defaultOptions=function(){return new Ht};var Ft={exports:{}},Ut={},jt={},Wt=S.Options;function Gt(t){Wt.call(this,t,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var e=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||e;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var n=0;n<i.length;n++)"expand"!==i[n]?this.brace_style="collapse":this.brace_style=i[n]}Gt.prototype=new Wt,jt.Options=Gt;var Vt=jt.Options,Yt=d.Output,Xt=T.InputScanner,Zt=new(0,V.Directives)(/\/\*/,/\*\//),Kt=/\r\n|[\r\n]/,Qt=/\r\n|[\r\n]/g,Jt=/\s/,te=/(?:\s|\n)+/g,ee=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,ie=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function ne(t,e){this._source_text=t||"",this._options=new Vt(e),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}ne.prototype.eatString=function(t){var e="";for(this._ch=this._input.next();this._ch;){if(e+=this._ch,"\\"===this._ch)e+=this._input.next();else if(-1!==t.indexOf(this._ch)||"\n"===this._ch)break;this._ch=this._input.next()}return e},ne.prototype.eatWhitespace=function(t){for(var e=Jt.test(this._input.peek()),i=0;Jt.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===i||i<this._options.max_preserve_newlines)&&(i++,this._output.add_new_line(!0));return e},ne.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,i=this._input.peek(e);i;){if("{"===i)return!0;if("("===i)t+=1;else if(")"===i){if(0===t)return!1;t-=1}else if(";"===i||"}"===i)return!1;e++,i=this._input.peek(e)}return!1},ne.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},ne.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},ne.prototype.indent=function(){this._indentLevel++},ne.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},ne.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===e&&(e="\n",t&&Kt.test(t||"")&&(e=t.match(Kt)[0]));var i=(t=t.replace(Qt,"\n")).match(/^[\t ]*/)[0];this._output=new Yt(this._options,i),this._input=new Xt(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var n,o,s=0,r=!1,l=!1,a=!1,d=!1,c=!1,u=this._ch;n=""!==this._input.read(te),o=u,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),u=this._ch,this._ch;)if("/"===this._ch&&"*"===this._input.peek()){this._output.add_new_line(),this._input.back();var h=this._input.read(ee),p=Zt.get_directives(h);p&&"start"===p.ignore&&(h+=Zt.readIgnored(this._input)),this.print_string(h),this.eatWhitespace(!0),this._output.add_new_line()}else if("/"===this._ch&&"/"===this._input.peek())this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(ie)),this.eatWhitespace(!0);else if("@"===this._ch)if(this.preserveSingleSpace(n),"{"===this._input.peek())this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var g=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);g.match(/[ :]$/)&&(g=this.eatString(": ").replace(/\s$/,""),this.print_string(g),this._output.space_before_token=!0),"extend"===(g=g.replace(/\s$/,""))?d=!0:"import"===g&&(c=!0),g in this.NESTED_AT_RULE?(this._nestedLevel+=1,g in this.CONDITIONAL_GROUP_RULE&&(a=!0)):r||0!==s||-1===g.indexOf(":")||(l=!0,this.indent())}else"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(n),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(l&&(l=!1,this.outdent()),a?(a=!1,r=this._indentLevel>=this._nestedLevel):r=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&r&&this._output.previous_line&&"{"!==this._output.previous_line.item(-1)&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,"expand"===this._options.brace_style?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):"}"===this._ch?(this.outdent(),this._output.add_new_line(),"{"===o&&this._output.trim(!0),c=!1,d=!1,l&&(this.outdent(),l=!1),this.print_string(this._ch),r=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&"}"!==this._input.peek()&&this._output.add_new_line(!0)):":"===this._ch?!r&&!a||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||d||0!==s?(this._input.lookBack(" ")&&(this._output.space_before_token=!0),":"===this._input.peek()?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):(this.print_string(":"),l||(l=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(n),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===s?(l&&(this.outdent(),l=!1),d=!1,c=!1,this.print_string(this._ch),this.eatWhitespace(!0),"/"!==this._input.peek()&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):"("===this._ch?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),s++,this.indent(),this._ch=this._input.next(),")"===this._ch||'"'===this._ch||"'"===this._ch?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),s&&(s--,this.outdent()))):(this.preserveSingleSpace(n),this.print_string(this._ch),this.eatWhitespace(),s++,this.indent()):")"===this._ch?(s&&(s--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||l||0!==s||c||d?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||l||0!==s?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(n),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),Jt.test(this._ch)&&(this._ch="")):"!"!==this._ch||this._input.lookBack("\\")?(this.preserveSingleSpace(n),this.print_string(this._ch)):(this.print_string(" "),this.print_string(this._ch)):this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&Jt.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},Ut.Beautifier=ne;var oe=Ut.Beautifier,se=jt.Options;Ft.exports=function(t,e){return new oe(t,e).beautify()},Ft.exports.defaultOptions=function(){return new se};var re={exports:{}},le={},ae={},de=S.Options;function ce(t){de.call(this,t,"html"),1===this.templating.length&&"auto"===this.templating[0]&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}ce.prototype=new de,ae.Options=ce;var ue={},he=O.Tokenizer,pe=O.TOKEN,ge=V.Directives,me=X.TemplatablePattern,fe=$.Pattern,be={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:pe.START,RAW:pe.RAW,EOF:pe.EOF},ve=new ge(/<\!--/,/-->/),ye=function(t,e){he.call(this,t,e),this._current_tag_name="";var i=new me(this._input).read_options(this._options),n=new fe(this._input);if(this.__patterns={word:i.until(/[\n\r\t <]/),single_quote:i.until_after(/'/),double_quote:i.until_after(/"/),attribute:i.until(/[\n\r\t =>]|\/>/),element_name:i.until(/[\n\r\t >\/]/),handlebars_comment:n.starting_with(/{{!--/).until_after(/--}}/),handlebars:n.starting_with(/{{/).until_after(/}}/),handlebars_open:n.until(/[\n\r\t }]/),handlebars_raw_close:n.until(/}}/),comment:n.starting_with(/<!--/).until_after(/-->/),cdata:n.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:n.starting_with(/<!\[/).until_after(/]>/),processing:n.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var o=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=n.matching(o).until_after(o)}};(ye.prototype=new he)._is_comment=function(t){return!1},ye.prototype._is_opening=function(t){return t.type===be.TAG_OPEN},ye.prototype._is_closing=function(t,e){return t.type===be.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},ye.prototype._reset=function(){this._current_tag_name=""},ye.prototype._get_next_token=function(t,e){var i=null;this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(be.EOF,""):i=(i=(i=(i=(i=(i=(i=(i=(i=i||this._read_open_handlebars(n,e))||this._read_attribute(n,t,e))||this._read_close(n,e))||this._read_raw_content(n,t,e))||this._read_content_word(n))||this._read_comment_or_cdata(n))||this._read_processing(n))||this._read_open(n,e))||this._create_token(be.UNKNOWN,this._input.next())},ye.prototype._read_comment_or_cdata=function(t){var e=null,i=null,n=null;"<"===t&&("!"===this._input.peek(1)&&((i=this.__patterns.comment.read())?(n=ve.get_directives(i))&&"start"===n.ignore&&(i+=ve.readIgnored(this._input)):i=this.__patterns.cdata.read()),i&&((e=this._create_token(be.COMMENT,i)).directives=n));return e},ye.prototype._read_processing=function(t){var e=null,i=null;if("<"===t){var n=this._input.peek(1);"!"!==n&&"?"!==n||(i=(i=this.__patterns.conditional_comment.read())||this.__patterns.processing.read()),i&&((e=this._create_token(be.COMMENT,i)).directives=null)}return e},ye.prototype._read_open=function(t,e){var i=null,n=null;return e||"<"===t&&(i=this._input.next(),"/"===this._input.peek()&&(i+=this._input.next()),i+=this.__patterns.element_name.read(),n=this._create_token(be.TAG_OPEN,i)),n},ye.prototype._read_open_handlebars=function(t,e){var i=null,n=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&("!"===this._input.peek(2)?(i=(i=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),n=this._create_token(be.COMMENT,i)):(i=this.__patterns.handlebars_open.read(),n=this._create_token(be.TAG_OPEN,i))),n},ye.prototype._read_close=function(t,e){var i=null,n=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(i=this._input.next(),"/"===t&&(i+=this._input.next()),n=this._create_token(be.TAG_CLOSE,i)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),n=this._create_token(be.TAG_CLOSE,"}}"))),n},ye.prototype._read_attribute=function(t,e,i){var n=null,o="";if(i&&"<"===i.text[0])if("="===t)n=this._create_token(be.EQUALS,this._input.next());else if('"'===t||"'"===t){var s=this._input.next();s+='"'===t?this.__patterns.double_quote.read():this.__patterns.single_quote.read(),n=this._create_token(be.VALUE,s)}else(o=this.__patterns.attribute.read())&&(n=e.type===be.EQUALS?this._create_token(be.VALUE,o):this._create_token(be.ATTRIBUTE,o));return n},ye.prototype._is_content_unformatted=function(t){return-1===this._options.void_elements.indexOf(t)&&(-1!==this._options.content_unformatted.indexOf(t)||-1!==this._options.unformatted.indexOf(t))},ye.prototype._read_raw_content=function(t,e,i){var n="";if(i&&"{"===i.text[0])n=this.__patterns.handlebars_raw_close.read();else if(e.type===be.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0]){var o=e.opened.text.substr(1).toLowerCase();if("script"===o||"style"===o){var s=this._read_comment_or_cdata(t);if(s)return s.type=be.TEXT,s;n=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(o)&&(n=this._input.readUntil(new RegExp("</"+o+"[\\n\\r\\t ]*?>","ig")))}return n?this._create_token(be.TEXT,n):null},ye.prototype._read_content_word=function(t){var e="";if(this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]&&(e=this.__patterns.unformatted_content_delimiter.read()),e||(e=this.__patterns.word.read()),e)return this._create_token(be.TEXT,e)},ue.Tokenizer=ye,ue.TOKEN=be;var xe=ae.Options,we=d.Output,Se=ue.Tokenizer,_e=ue.TOKEN,Ce=/\r\n|[\r\n]/,ke=/\r\n|[\r\n]/g,Ee=function(t,e){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=t.max_preserve_newlines,this.preserve_newlines=t.preserve_newlines,this._output=new we(t,e)};Ee.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},Ee.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},Ee.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},Ee.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},Ee.prototype.print_preserved_newlines=function(t){var e=0;t.type!==_e.TEXT&&t.previous.type!==_e.TEXT&&(e=t.newlines?1:0),this.preserve_newlines&&(e=t.newlines<this.max_preserve_newlines+1?t.newlines:this.max_preserve_newlines+1);for(var i=0;i<e;i++)this.print_newline(i>0);return 0!==e},Ee.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines)&&(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),!0)},Ee.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},Ee.prototype.print_newline=function(t){this._output.add_new_line(t)},Ee.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},Ee.prototype.indent=function(){this.indent_level++},Ee.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?"":this._output.get_indent_string(t)};var Ae=function(t,e){var i=null,n=null;return e.closed?("script"===t?i="text/javascript":"style"===t&&(i="text/css"),i=function(t){for(var e=null,i=t.next;i.type!==_e.EOF&&t.closed!==i;){if(i.type===_e.ATTRIBUTE&&"type"===i.text){i.next&&i.next.type===_e.EQUALS&&i.next.next&&i.next.next.type===_e.VALUE&&(e=i.next.next.text);break}i=i.next}return e}(e)||i,i.search("text/css")>-1?n="css":i.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?n="javascript":i.search(/(text|application|dojo)\/(x-)?(html)/)>-1?n="html":i.search(/test\/null/)>-1&&(n="null"),n):null};function Le(t,e){return-1!==e.indexOf(t)}function qe(t,e,i){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=i||0,this.parser_token=e||null}function Te(t){this._printer=t,this._current_frame=null}function Me(t,e,i,n){this._source_text=t||"",e=e||{},this._js_beautify=i,this._css_beautify=n,this._tag_stack=null;var o=new xe(e,"html");this._options=o,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,"force".length),this._is_wrap_attributes_force_expand_multiline="force-expand-multiline"===this._options.wrap_attributes,this._is_wrap_attributes_force_aligned="force-aligned"===this._options.wrap_attributes,this._is_wrap_attributes_aligned_multiple="aligned-multiple"===this._options.wrap_attributes,this._is_wrap_attributes_preserve="preserve"===this._options.wrap_attributes.substr(0,"preserve".length),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}Te.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},Te.prototype.record_tag=function(t){var e=new qe(this._current_frame,t,this._printer.indent_level);this._current_frame=e},Te.prototype._try_pop_frame=function(t){var e=null;return t&&(e=t.parser_token,this._printer.indent_level=t.indent_level,this._current_frame=t.parent),e},Te.prototype._get_frame=function(t,e){for(var i=this._current_frame;i&&-1===t.indexOf(i.tag);){if(e&&-1!==e.indexOf(i.tag)){i=null;break}i=i.parent}return i},Te.prototype.try_pop=function(t,e){var i=this._get_frame([t],e);return this._try_pop_frame(i)},Te.prototype.indent_to_tag=function(t){var e=this._get_frame(t);e&&(this._printer.indent_level=e.indent_level)},Me.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var t=this._source_text,e=this._options.eol;"auto"===this._options.eol&&(e="\n",t&&Ce.test(t)&&(e=t.match(Ce)[0]));var i=(t=t.replace(ke,"\n")).match(/^[\t ]*/)[0],n={text:"",type:""},o=new Re,s=new Ee(this._options,i),r=new Se(t,this._options).tokenize();this._tag_stack=new Te(s);for(var l=null,a=r.next();a.type!==_e.EOF;)a.type===_e.TAG_OPEN||a.type===_e.COMMENT?o=l=this._handle_tag_open(s,a,o,n):a.type===_e.ATTRIBUTE||a.type===_e.EQUALS||a.type===_e.VALUE||a.type===_e.TEXT&&!o.tag_complete?l=this._handle_inside_tag(s,a,o,r):a.type===_e.TAG_CLOSE?l=this._handle_tag_close(s,a,o):a.type===_e.TEXT?l=this._handle_text(s,a,o):s.add_raw_token(a),n=l,a=r.next();return s._output.get_code(e)},Me.prototype._handle_tag_close=function(t,e,i){var n={text:e.text,type:e.type};return t.alignment_size=0,i.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted?t.add_raw_token(e):("<"===i.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&i.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!i.indent_content||i.is_unformatted||i.is_content_unformatted||(t.indent(),i.indent_content=!1),i.is_inline_element||i.is_unformatted||i.is_content_unformatted||t.set_wrap_point(),n},Me.prototype._handle_inside_tag=function(t,e,i,n){var o=i.has_wrapped_attrs,s={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),i.is_unformatted)t.add_raw_token(e);else if("{"===i.tag_start_char&&e.type===_e.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===_e.ATTRIBUTE?(t.set_space_before_token(!0),i.attr_count+=1):(e.type===_e.EQUALS||e.type===_e.VALUE&&e.previous.type===_e.EQUALS)&&t.set_space_before_token(!1),e.type===_e.ATTRIBUTE&&"<"===i.tag_start_char&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(t.traverse_whitespace(e),o=o||0!==e.newlines),this._is_wrap_attributes_force)){var r=i.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&1===i.attr_count){var l,a=!0,d=0;do{if((l=n.peek(d)).type===_e.ATTRIBUTE){a=!1;break}d+=1}while(d<4&&l.type!==_e.EOF&&l.type!==_e.TAG_CLOSE);r=!a}r&&(t.print_newline(!1),o=!0)}t.print_token(e),o=o||t.previous_token_wrapped(),i.has_wrapped_attrs=o}return s},Me.prototype._handle_text=function(t,e,i){var n={text:e.text,type:"TK_CONTENT"};return i.custom_beautifier_name?this._print_custom_beatifier_text(t,e,i):i.is_unformatted||i.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),n},Me.prototype._print_custom_beatifier_text=function(t,e,i){var n=this;if(""!==e.text){var o,s=e.text,r=1,l="",a="";"javascript"===i.custom_beautifier_name&&"function"==typeof this._js_beautify?o=this._js_beautify:"css"===i.custom_beautifier_name&&"function"==typeof this._css_beautify?o=this._css_beautify:"html"===i.custom_beautifier_name&&(o=function(t,e){return new Me(t,e,n._js_beautify,n._css_beautify).beautify()}),"keep"===this._options.indent_scripts?r=0:"separate"===this._options.indent_scripts&&(r=-t.indent_level);var d=t.get_full_indent(r);if(s=s.replace(/\n[ \t]*$/,""),"html"!==i.custom_beautifier_name&&"<"===s[0]&&s.match(/^(<!--|<!\[CDATA\[)/)){var c=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(s);if(!c)return void t.add_raw_token(e);l=d+c[1]+"\n",s=c[4],c[5]&&(a=d+c[5]),s=s.replace(/\n[ \t]*$/,""),(c[2]||-1!==c[3].indexOf("\n"))&&(c=c[3].match(/[ \t]+$/))&&(e.whitespace_before=c[0])}if(s)if(o){var u=function(){this.eol="\n"};u.prototype=this._options.raw_options,s=o(d+s,new u)}else{var h=e.whitespace_before;h&&(s=s.replace(new RegExp("\n("+h+")?","g"),"\n")),s=d+s.replace(/\n/g,"\n"+d)}l&&(s=s?l+s+"\n"+a:l+a),t.print_newline(!1),s&&(e.text=s,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},Me.prototype._handle_tag_open=function(t,e,i,n){var o=this._get_tag_open_token(e);return!i.is_unformatted&&!i.is_content_unformatted||i.is_empty_element||e.type!==_e.TAG_OPEN||0!==e.text.indexOf("</")?(t.traverse_whitespace(e),this._set_tag_position(t,e,o,i,n),o.is_inline_element||t.set_wrap_point(),t.print_token(e)):(t.add_raw_token(e),o.start_tag_token=this._tag_stack.try_pop(o.tag_name)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(o.alignment_size=e.text.length+1),o.tag_complete||o.is_unformatted||(t.alignment_size=o.alignment_size),o};var Re=function(t,e){var i;(this.parent=t||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",e)?(this.tag_start_char=e.text[0],this.text=e.text,"<"===this.tag_start_char?(i=e.text.match(/^<([^\s>]*)/),this.tag_check=i?i[1]:""):(i=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=i?i[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===_e.COMMENT&&(this.tag_complete=!0),this.is_start_tag="/"!==this.tag_check.charAt(0),this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||e.closed&&"/>"===e.closed.text,this.is_end_tag=this.is_end_tag||"{"===this.tag_start_char&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))):this.tag_complete=!0};Me.prototype._get_tag_open_token=function(t){var e=new Re(this._tag_stack.get_parser_token(),t);return e.alignment_size=this._options.wrap_attributes_indent_size,e.is_end_tag=e.is_end_tag||Le(e.tag_check,this._options.void_elements),e.is_empty_element=e.tag_complete||e.is_start_tag&&e.is_end_tag,e.is_unformatted=!e.tag_complete&&Le(e.tag_check,this._options.unformatted),e.is_content_unformatted=!e.is_empty_element&&Le(e.tag_check,this._options.content_unformatted),e.is_inline_element=Le(e.tag_name,this._options.inline)||"{"===e.tag_start_char,e},Me.prototype._set_tag_position=function(t,e,i,n,o){if(i.is_empty_element||(i.is_end_tag?i.start_tag_token=this._tag_stack.try_pop(i.tag_name):(this._do_optional_end_element(i)&&(i.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(i),"script"!==i.tag_name&&"style"!==i.tag_name||i.is_unformatted||i.is_content_unformatted||(i.custom_beautifier_name=Ae(i.tag_check,e)))),Le(i.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),i.is_empty_element){if("{"===i.tag_start_char&&"else"===i.tag_check)this._tag_stack.indent_to_tag(["if","unless","each"]),i.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1);"!--"===i.tag_name&&o.type===_e.TAG_CLOSE&&n.is_end_tag&&-1===i.text.indexOf("\n")||(i.is_inline_element||i.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i))}else if(i.is_end_tag){var s=!1;s=(s=i.start_tag_token&&i.start_tag_token.multiline_content)||!i.is_inline_element&&!(n.is_inline_element||n.is_unformatted)&&!(o.type===_e.TAG_CLOSE&&i.start_tag_token===n)&&"TK_CONTENT"!==o.type,(i.is_content_unformatted||i.is_unformatted)&&(s=!1),s&&t.print_newline(!1)}else i.indent_content=!i.custom_beautifier_name,"<"===i.tag_start_char&&("html"===i.tag_name?i.indent_content=this._options.indent_inner_html:"head"===i.tag_name?i.indent_content=this._options.indent_head_inner_html:"body"===i.tag_name&&(i.indent_content=this._options.indent_body_inner_html)),i.is_inline_element||i.is_unformatted||"TK_CONTENT"===o.type&&!i.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,i)},Me.prototype._calcluate_parent_multiline=function(t,e){!e.parent||!t._output.just_added_newline()||(e.is_inline_element||e.is_unformatted)&&e.parent.is_inline_element||(e.parent.multiline_content=!0)};var Oe=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],Be=["a","audio","del","ins","map","noscript","video"];Me.prototype._do_optional_end_element=function(t){var e=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent){if("body"===t.tag_name)e=e||this._tag_stack.try_pop("head");else if("li"===t.tag_name)e=e||this._tag_stack.try_pop("li",["ol","ul"]);else if("dd"===t.tag_name||"dt"===t.tag_name)e=(e=e||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]);else if("p"===t.parent.tag_name&&-1!==Oe.indexOf(t.tag_name)){var i=t.parent.parent;i&&-1!==Be.indexOf(i.tag_name)||(e=e||this._tag_stack.try_pop("p"))}else"rp"===t.tag_name||"rt"===t.tag_name?e=(e=e||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===t.tag_name?e=e||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?e=e||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?e=e||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===t.tag_name||"tfoot"===t.tag_name?e=(e=(e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("thead",["table"]))||this._tag_stack.try_pop("tbody",["table"]):"tr"===t.tag_name?e=(e=(e=e||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]))||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"]):"th"!==t.tag_name&&"td"!==t.tag_name||(e=(e=e||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return t.parent=this._tag_stack.get_parser_token(),e}},le.Beautifier=Me;var Ne=le.Beautifier,Ie=ae.Options;re.exports=function(t,e,i,n){return new Ne(t,e,i,n).beautify()},re.exports.defaultOptions=function(){return new Ie};var $e=l.exports,De=Ft.exports,ze=re.exports;function Pe(t,e,i,n){return ze(t,e,i=i||$e,n=n||De)}Pe.defaultOptions=ze.defaultOptions,r.js=$e,r.css=De,r.html=Pe,function(t){!function(t){var e=r;e.js_beautify=e.js,e.css_beautify=e.css,e.html_beautify=e.html,t.exports=function(t,e,i){var n=function(e,i){return t.js_beautify(e,i)};return n.js=t.js_beautify,n.css=e.css_beautify,n.html=i.html_beautify,n.js_beautify=t.js_beautify,n.css_beautify=e.css_beautify,n.html_beautify=i.html_beautify,n}(e,e,e)}(t)}(s);var He=s.exports;function Fe(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ue(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function je(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ue(Object(i),!0).forEach((function(e){Fe(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ue(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function We(t,e){if(null==t)return{};var i,n,o=function(t,e){if(null==t)return{};var i,n,o={},s=Object.keys(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||(o[i]=t[i]);return o}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)i=s[n],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function Ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function Ve(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ye(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Xe(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Ye(Object(i),!0).forEach((function(e){Ve(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Ye(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Ze(t){return function e(){for(var i=this,n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return o.length>=t.length?t.apply(this,o):function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];return e.apply(i,[].concat(o,n))}}}function Ke(t){return{}.toString.call(t).includes("Object")}function Qe(t){return"function"==typeof t}var Je=Ze((function(t,e){throw new Error(t[e]||t.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),ti={changes:function(t,e){return Ke(e)||Je("changeType"),Object.keys(e).some((function(e){return i=t,n=e,!Object.prototype.hasOwnProperty.call(i,n);var i,n}))&&Je("changeField"),e},selector:function(t){Qe(t)||Je("selectorType")},handler:function(t){Qe(t)||Ke(t)||Je("handlerType"),Ke(t)&&Object.values(t).some((function(t){return!Qe(t)}))&&Je("handlersType")},initial:function(t){var e;t||Je("initialIsRequired"),Ke(t)||Je("initialType"),e=t,Object.keys(e).length||Je("initialContent")}};function ei(t,e){return Qe(e)?e(t.current):e}function ii(t,e){return t.current=Xe(Xe({},t.current),e),e}function ni(t,e,i){return Qe(e)?e(t.current):Object.keys(i).forEach((function(i){var n;return null===(n=e[i])||void 0===n?void 0:n.call(e,t.current[i])})),i}var oi={create:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ti.initial(t),ti.handler(e);var i={current:t},n=Ze(ni)(i,e),o=Ze(ii)(i),s=Ze(ti.changes)(t),r=Ze(ei)(i);return[function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return ti.selector(t),t(i.current)},function(t){!function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduceRight((function(t,e){return e(t)}),t)}}(n,o,s,r)(t)}]}};var si,ri={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},li=(si=function(t,e){throw new Error(t[e]||t.default)},function t(){for(var e=this,i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];return n.length>=si.length?si.apply(this,n):function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return t.apply(e,[].concat(n,o))}})(ri),ai={config:function(t){var e;return t||li("configIsRequired"),e=t,{}.toString.call(e).includes("Object")||li("configType"),t.urls?(console.warn(ri.deprecation),{paths:{vs:t.urls.monacoBase}}):t}};function di(t,e){return Object.keys(e).forEach((function(i){e[i]instanceof Object&&t[i]&&Object.assign(e[i],di(t[i],e[i]))})),je(je({},t),e)}var ci={type:"cancelation",msg:"operation is manually canceled"};function ui(t){var e=!1,i=new Promise((function(i,n){t.then((function(t){return e?n(ci):i(t)})),t.catch(n)}));return i.cancel=function(){return e=!0},i}var hi,pi,gi=oi.create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.33.0/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),mi=(pi=2,function(t){if(Array.isArray(t))return t}(hi=gi)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,o=!1,s=void 0;try{for(var r,l=t[Symbol.iterator]();!(n=(r=l.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,s=t}finally{try{n||null==l.return||l.return()}finally{if(o)throw s}}return i}}(hi,pi)||function(t,e){if(t){if("string"==typeof t)return Ge(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ge(t,e):void 0}}(hi,pi)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),fi=mi[0],bi=mi[1];function vi(t){return document.body.appendChild(t)}function yi(t){var e=fi((function(t){return{config:t.config,reject:t.reject}})),i=function(t){var e=document.createElement("script");return t&&(e.src=t),e}("".concat(e.config.paths.vs,"/loader.js"));return i.onload=function(){return t()},i.onerror=e.reject,i}function xi(){var t=fi((function(t){return{config:t.config,resolve:t.resolve,reject:t.reject}})),e=window.require;e.config(t.config),e(["vs/editor/editor.main"],(function(e){wi(e),t.resolve(e)}),(function(e){t.reject(e)}))}function wi(t){fi().monaco||bi({monaco:t})}var Si=new Promise((function(t,e){return bi({resolve:t,reject:e})})),_i={config:function(t){var e=ai.config(t),i=e.monaco,n=We(e,["monaco"]);bi((function(t){return{config:di(t.config,n),monaco:i}}))},init:function(){var t=fi((function(t){return{monaco:t.monaco,isInitialized:t.isInitialized,resolve:t.resolve}}));if(!t.isInitialized){if(bi({isInitialized:!0}),t.monaco)return t.resolve(t.monaco),ui(Si);if(window.monaco&&window.monaco.editor)return wi(window.monaco),t.resolve(window.monaco),ui(Si);!function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduceRight((function(t,e){return e(t)}),t)}}(vi,yi)(xi)}return ui(Si)},__getMonacoInstance:function(){return fi((function(t){return t.monaco}))}};const Ci=new o;let ki={};class Ei{constructor(t){this.builder=t;const e=this.builder.util,i=this.builder.builderStuff;let n=i.querySelector(".viewhtml");if(!n){const t=`<div class="is-modal viewhtml" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content">\n <textarea class="tabSupport" style="width:100%;height:calc(100% - 50px);border:none;margin:0;box-sizing:border-box;"></textarea>\n <div class="is-modal-footer" style="border-top:1px solid ${this.builder.styleSeparatorColor};width:100%;height:50px;position:absolute;left:0;bottom:0;overflow:hidden;text-align:right">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal viewhtmlmonaco" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="max-width: 55vw;padding:0">\n <textarea style="position:absolute;display:none;"></textarea>\n <div class="input-code-editor" style="width:100%;height:65vh;"></div>\n <div class="is-modal-footer" style="display:flex;justify-content:flex-end;border-top:1px solid ${this.builder.styleSeparatorColor};">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal viewhtmlexternal" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-content" style="max-width: 55vw;padding:0">\n <div class="input-code-editor" style="width:100%;height:65vh;"></div>\n <div class="is-modal-footer" style="display:flex;justify-content:flex-end;border-top:1px solid ${this.builder.styleSeparatorColor};">\n <button title="${e.out("Cancel")}" class="input-cancel classic-secondary">${e.out("Cancel")}</button>\n <button title="${e.out("Ok")}" class="input-ok classic-primary">${e.out("Ok")}</button>\n </div>\n </div>\n </div>\n \n `;Ci.appendHtml(i,t),n=i.querySelector(".viewhtml");let o=i.querySelector(".viewhtmlmonaco"),s=i.querySelector(".viewhtmlexternal"),r=n.querySelector(".input-ok");Ci.addEventListener(r,"click",(()=>{this.applyHtml(n)})),r=n.querySelector(".input-cancel"),Ci.addEventListener(r,"click",(()=>{this.builder.hideModal(n)})),r=o.querySelector(".input-ok"),Ci.addEventListener(r,"click",(()=>{this.applyHtml(o)})),r=o.querySelector(".input-cancel"),Ci.addEventListener(r,"click",(()=>{this.builder.hideModal(o)})),r=s.querySelector(".input-ok"),Ci.addEventListener(r,"click",(()=>{const t=document.querySelector("textarea[data-source-active]"),e=t.getAttribute("data-source-ok");t.removeAttribute("data-source-active"),t.removeAttribute("data-source-ok"),t.removeAttribute("data-source-cancel"),document.querySelector(e).click(),this.builder.hideModal(s)})),r=s.querySelector(".input-cancel"),Ci.addEventListener(r,"click",(()=>{const t=document.querySelector("textarea[data-source-active]"),e=t.getAttribute("data-source-cancel");t.removeAttribute("data-source-active"),t.removeAttribute("data-source-ok"),t.removeAttribute("data-source-cancel"),document.querySelector(e).click(),this.builder.hideModal(s)}))}}applyHtml(t){const e=this.builder.util;let i=this.builder.codeEditorMode,n=this.builder.codeEditorArea;this.builder.uo.saveForUndo();let o=t.querySelector("textarea").value;if("code"===i){let i=this.builder.activeCodeBlock;i.setAttribute("data-html",encodeURIComponent(o)),o=o.replace(/{id}/g,e.makeId());for(let t=1;t<=20;t++)o=o.replace("[%HTML"+t+"%]",void 0===i.getAttribute("data-html-"+t)?"":decodeURIComponent(i.getAttribute("data-html-"+t)));i.innerHTML="";let n=document.createRange();n.setStart(i,0),i.appendChild(n.createContextualFragment(o));let s=this.builder.doc.querySelector(".builder-active");return s&&this.builder.applyBehaviorOn(s),this.builder.opts.onChange(),this.builder.opts.onRender(),this.builder.hideModal(t),void e.hideControls()}if(o=this.fromViewToActual(o),"cell"===i){e.cellSelected().innerHTML=o;let t=this.builder.doc.querySelector(".builder-active");t&&this.builder.applyBehaviorOn(t),this.builder.opts.onChange(),this.builder.opts.onRender()}if("row"===i){let t,i=e.cellSelected();if(t=i?i.parentNode:e.rowSelected(),!t)return;t.innerHTML=o;let n=this.builder.doc.querySelector(".builder-active");n&&this.builder.applyBehaviorOn(n),this.builder.opts.onChange(),this.builder.opts.onRender()}if("full"===i){n.innerHTML="";let t=document.createRange();t.setStart(n,0),n.appendChild(t.createContextualFragment(o)),this.builder.applyBehaviorOn(n),this.builder.opts.onChange(),this.builder.opts.onRender(),e.clearActiveCell()}e.clearControls(),this.builder.hideModal(t)}viewHtmlExternal(){const t=this.builder.util,e=this.builder.builderStuff.querySelector(".viewhtmlexternal");document.activeElement&&(this.elmFocus=document.activeElement),t.showModal(e,!0,(()=>{this.elmFocus&&this.elmFocus.focus()}),!1),e.querySelector(".input-code-editor").style.opacity=.01,this._viewHtmlExternal()}_viewHtmlExternal(){const t=document.querySelector("textarea[data-source-active]");let e=this.builder.builderStuff.querySelector(".viewhtmlexternal").querySelector(".input-code-editor");if(!e.querySelector(".monaco-editor"))return _i.init().then((t=>{this.builder.monaco=t,e.getAttribute("data-mode-id")||(this.builder.codeEditorExternal=t.editor.create(e,{value:"",minimap:{enabled:!1},automaticLayout:!0,contextmenu:!1,fontSize:13,wordWrap:!0,scrollbar:{useShadows:!1,vertical:"visible",horizontal:"visible",horizontalScrollbarSize:12,verticalScrollbarSize:12},language:"html",theme:this.builder.styleDark||this.builder.styleColoredDark?"vs-dark":""})),this.builder.codeEditorExternal.onKeyUp((()=>{document.querySelector("textarea[data-source-active]").value=this.builder.codeEditorExternal.getModel().getValue()}))})),void setTimeout((()=>{this._viewHtmlExternal()}),100);const i=this.builder.monaco.editor.createModel(t.value,"html");this.builder.codeEditorExternal.setModel(i),e.style.opacity=""}view(t,e,i){const n=this.builder.util,o=this.builder.builderStuff;let s;s=this.builder.opts.htmlSyntaxHighlighting?o.querySelector(".viewhtmlmonaco"):o.querySelector(".viewhtml"),n.showModal(s,!0,(()=>{i&&(i.removeAttribute("data-focus"),i.focus())})),i&&i.setAttribute("data-focus",!0),s.querySelector(".input-code-editor").style.opacity=.01,this._view(t,e)}_view(t,e){const i=this.builder.util,n=this.builder.builderStuff;let o;if(this.builder.opts.htmlSyntaxHighlighting){o=n.querySelector(".viewhtmlmonaco");let i=o.querySelector(".input-code-editor");if(!i.querySelector(".monaco-editor"))return _i.init().then((t=>{this.builder.monaco=t,i.getAttribute("data-mode-id")||(this.builder.codeEditor=t.editor.create(i,{value:"",minimap:{enabled:!1},automaticLayout:!0,contextmenu:!1,fontSize:13,wordWrap:!0,scrollbar:{useShadows:!1,vertical:"visible",horizontal:"visible",horizontalScrollbarSize:12,verticalScrollbarSize:12},language:"html",theme:this.builder.styleDark||this.builder.styleColoredDark?"vs-dark":""}));let e=o.querySelector("textarea");this.builder.codeEditor.onKeyUp((()=>{e.value=this.builder.codeEditor.getModel().getValue()}))})),void setTimeout((()=>{this._view(t,e)}),100)}else o=n.querySelector(".viewhtml");let s=o.querySelector("textarea");if("cell"===t){const t=i.cellSelected();if(!t)return;let e=o.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,e.value=this.readHtml(t,!0),this.builder.cleanHtmlFormatting=!1}if("row"===t){let t,e=i.cellSelected();if(t=e?e.parentNode:i.rowSelected(),!t)return;let n=o.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,n.value=this.readHtml(t,!0),this.builder.cleanHtmlFormatting=!1,Ci.removeClass(t,"row-outline")}if("full"===t){if(e);else{const t=this.builder.doc.querySelectorAll(this.builder.opts.container);if(t.length>1){const n=i.cellSelected();e=n?n.parentNode.parentNode:t[0]}else e=t[0];if(""!==this.builder.opts.page){const t=this.builder.doc.querySelector(this.builder.opts.page);t&&(e=t)}}let t=o.querySelector("textarea");this.builder.cleanHtmlFormatting=!0,this.builder.shortenHTML?t.value=this.readHtml(e,!0):t.value=this.readHtml(e,!1),this.builder.cleanHtmlFormatting=!1}if(this.builder.opts.htmlSyntaxHighlighting){const t=this.builder.monaco.editor.createModel(s.value,"html");this.builder.codeEditor.setModel(t)}let r=n.querySelector(".is-pop.columnmore");r&&(r.style.display="");let l=n.querySelector(".is-pop.rowmore");l&&(l.style.display=""),this.builder.codeEditorMode=t,this.builder.codeEditorArea=e,o.querySelector(".input-code-editor").style.opacity=""}fromViewToActual(t){for(var e in ki)t=t.replace(e,ki[e]);return t}readHtml(t,e,i,n){if(this.builder.opts.absolutePath){let e=t.querySelectorAll("a");Array.prototype.forEach.call(e,(t=>{let e=t.href;t.setAttribute("href",e)}));let i=t.querySelectorAll("img");Array.prototype.forEach.call(i,(t=>{let e=t.src;t.setAttribute("src",e)}))}this.builder.cleanHtmlFormatting;const o=this.builder.util;let s,r=document.createElement("div");r.innerHTML=t.innerHTML;let l=r.querySelectorAll("[data-html]");if(Array.prototype.forEach.call(l,(t=>{let e=1,i=t.querySelectorAll("[data-subblock]");Array.prototype.forEach.call(i,(i=>{if(i.closest(".glide__slide--clone"))return;let n=i.innerHTML;t.setAttribute("data-html-"+e,encodeURIComponent(n)),e++}))})),l=r.querySelectorAll("[data-html]"),Array.prototype.forEach.call(l,(t=>{let e=decodeURIComponent(t.getAttribute("data-html"));e=e.replace(/{id}/g,o.makeId()),t.innerHTML=e;let i=t.querySelectorAll("[data-subblock]");var n=1;Array.prototype.forEach.call(i,(e=>{e.innerHTML=void 0===t.getAttribute("data-html-"+n)?"":decodeURIComponent(t.getAttribute("data-html-"+n)),n++}))})),e&&(ki={},l=r.querySelectorAll("[data-html]"),Array.prototype.forEach.call(l,(t=>{let e=o.makeId();ki[e]=t.getAttribute("data-html"),t.setAttribute("data-html",e);for(let i=1;i<=20;i++)void 0!==t.getAttribute("data-html-"+i)&&(e=o.makeId(),ki[e]=t.getAttribute("data-html-"+i),t.getAttribute("data-html-"+i,e));void 0!==t.getAttribute("data-settings")&&(e=o.makeId(),ki[e]=t.getAttribute("data-settings"),t.getAttribute("data-settings",e))}))),this.builder.makeAbsolute){const t=t=>{let e=document.createElement("img");return e.src=t,e.setAttribute("data-absoluteurl",e.src),t=e.getAttribute("data-absoluteurl")},e=t=>{let e=document.createElement("img");e.src=t,e.setAttribute("data-absoluteurl",e.src),t=e.getAttribute("data-absoluteurl");let i=location.href.substring(0,location.href.lastIndexOf("/"));return t.replace(i,"[%PATH%]")},i=(e,i)=>{if(e.hasAttribute(i)){if("video"!==e.parentNode.tagName.toLowerCase()&&"audio"!==e.parentNode.tagName.toLowerCase())return;let n=e.getAttribute(i);n=t(n),e.setAttribute(i,`${n}`)}};let n=r.querySelectorAll("img");Array.prototype.forEach.call(n,(t=>{let e=t.src;t.setAttribute("src",e)})),r.querySelectorAll("*").forEach((n=>{if(n.style.backgroundImage){let t=n.style.backgroundImage;if(-1!==t.indexOf("url(")){let i=t.slice(4,-1).replace(/["']/g,"");i=e(i),n.style.backgroundImage=`url(${i})`}}if(i(n,"src"),i(n,"data-default"),i(n,"data-240"),i(n,"data-360"),i(n,"data-480"),i(n,"data-540"),i(n,"data-720"),i(n,"data-1080"),i(n,"data-1440"),i(n,"data-2160"),n.hasAttribute("href")&&"link"===n.tagName.toLowerCase()){let e=n.getAttribute("href");e=t(e),n.setAttribute("href",`${e}`)}}))}let a=r.querySelectorAll(".is-builder");Array.prototype.forEach.call(a,(t=>{t.style.transform="",t.style.WebkitTransform="",t.style.MozTransform="",t.removeAttribute("data-sort"),Ci.removeClass(t,"builder-active");Ci.elementChildren(t).forEach((t=>{Ci.elementChildren(t).forEach((t=>{t.style.cursor=""}))}))}));Ci.elementChildren(r).forEach((t=>{t.style.cursor="";Ci.elementChildren(t).forEach((t=>{t.style.cursor=""}))}));let d=r.querySelectorAll(".sortable-chosen");Ci.removeClasses(d,"sortable-chosen"),d=r.querySelectorAll(".sortable-ghost"),Ci.removeClasses(d,"sortable-ghost"),d=r.querySelectorAll(".elm-active"),Ci.removeClasses(d,"elm-active"),d=r.querySelectorAll(".elm-inspected"),Ci.removeClasses(d,"elm-inspected"),d=r.querySelectorAll(".cell-active"),Ci.removeClasses(d,"cell-active"),d=r.querySelectorAll(".row-active"),Ci.removeClasses(d,"row-active"),d=r.querySelectorAll(".row-outline"),Ci.removeClasses(d,"row-outline"),d=r.querySelectorAll(".is-builder"),Ci.removeClasses(d,"is-builder"),d=r.querySelectorAll(".row-outline"),Ci.removeClasses(d,"row-outline"),d=r.querySelectorAll("[data-click]"),Ci.removeAttributes(d,"data-click"),d=r.querySelectorAll("[contenteditable]"),Ci.removeAttributes(d,"contenteditable"),d=r.querySelectorAll("[draggridoutline]"),Ci.removeAttributes(d,"draggridoutline"),d=r.querySelectorAll("[between-blocks-left]"),Ci.removeAttributes(d,"between-blocks-left"),d=r.querySelectorAll("[between-blocks-center]"),Ci.removeAttributes(d,"between-blocks-center"),d=r.querySelectorAll("[hideelementhighlight]"),Ci.removeAttributes(d,"hideelementhighlight"),d=r.querySelectorAll("[data-module-active]"),Ci.removeAttributes(d,"data-module-active"),d=r.querySelectorAll("[draggable]"),Ci.removeAttributes(d,"draggable"),d=r.querySelectorAll("[data-animated]"),Ci.removeAttributes(d,"data-animated"),d=r.querySelectorAll("[data-saveforundo]"),Ci.removeAttributes(d,"data-saveforundo"),d=r.querySelectorAll("[hidesnippetaddtool]"),Ci.removeAttributes(d,"hidesnippetaddtool"),d=r.querySelectorAll("[gray]"),Ci.removeAttributes(d,"gray"),d=r.querySelectorAll("[rowoutline]"),Ci.removeAttributes(d,"rowoutline"),d=r.querySelectorAll("[hidecolumntool]"),Ci.removeAttributes(d,"hidecolumntool"),d=r.querySelectorAll("[grayoutline]"),Ci.removeAttributes(d,"grayoutline"),d=r.querySelectorAll("[hideoutline]"),Ci.removeAttributes(d,"hideoutline"),d=r.querySelectorAll("[leftrowtool]"),Ci.removeAttributes(d,"leftrowtool"),d=r.querySelectorAll("[minimal]"),Ci.removeAttributes(d,"minimal"),d=r.querySelectorAll("[clean]"),Ci.removeAttributes(d,"clean"),d=r.querySelectorAll("[grideditor]"),Ci.removeAttributes(d,"grideditor"),d=r.querySelectorAll("[gridoutline]"),Ci.removeAttributes(d,"gridoutline"),Ci.removeElements(r.querySelectorAll(".is-row-tool")),Ci.removeElements(r.querySelectorAll(".is-col-tool")),Ci.removeElements(r.querySelectorAll(".is-rowadd-tool")),Ci.removeElements(r.querySelectorAll(".ovl")),Ci.removeElements(r.querySelectorAll(".row-add-initial")),d=r.querySelectorAll(".aos-init"),Ci.removeClasses(d,"aos-init"),d=r.querySelectorAll(".aos-animate"),Ci.removeClasses(d,"aos-animate"),d=r.querySelectorAll(".skrollable"),Ci.removeClasses(d,"skrollable"),d=r.querySelectorAll(".skrollable-after"),Ci.removeClasses(d,"skrollable-after"),d=r.querySelectorAll(".skrollable-before"),Ci.removeClasses(d,"skrollable-before"),d=r.querySelectorAll(".skrollable-between"),Ci.removeClasses(d,"skrollable-between"),d=r.querySelectorAll(".is-inview"),Ci.removeClasses(d,"is-inview");let c=r.querySelectorAll('[class=""]');Array.prototype.forEach.call(c,(t=>{t.removeAttribute("class")}));let u=r.querySelectorAll(".is-row-overlay");Array.prototype.forEach.call(u,(t=>{t.hasAttribute("style")||t.parentNode.removeChild(t)})),Ci.removeEmptyStyle(r),d=r.querySelectorAll("[data-keep]"),Ci.removeAttributes(d,"data-keep");let h=r.querySelectorAll("a");if(Array.prototype.forEach.call(h,(t=>{"inline-block"===t.style.display&&1===t.parentNode.childElementCount&&"span"===t.parentNode.tagName.toLowerCase()&&(t.parentNode.outerHTML=t.parentNode.innerHTML)})),n){r.querySelectorAll("[data-html]").forEach((t=>{t.innerHTML=""}))}if(s="",i){let t=r.querySelectorAll(".is-dummy");Ci.removeElements(t),t=r.querySelectorAll("[data-scroll]"),Ci.removeAttributes(t,"data-scroll"),t=r.querySelectorAll("[data-scroll-once]"),Ci.removeAttributes(t,"data-scroll-once"),this.builder.shortenOutput&&(t=r.querySelectorAll("[data-noedit]"),Ci.removeAttributes(t,"data-noedit"),t=r.querySelectorAll("[data-module]"),Ci.removeAttributes(t,"data-module"),t=r.querySelectorAll("[data-module-desc]"),Ci.removeAttributes(t,"data-module-desc"),t=r.querySelectorAll("[data-dialog-width]"),Ci.removeAttributes(t,"data-dialog-width"),t=r.querySelectorAll("[data-dialog-height]"),Ci.removeAttributes(t,"data-dialog-height"),t=r.querySelectorAll("[data-html]"),Ci.removeAttributes(t,"data-html"),t=r.querySelectorAll("[data-settings]"),Ci.removeAttributes(t,"data-settings"),t=r.querySelectorAll("[data-html-1]"),Ci.removeAttributes(t,"data-html-1"),t=r.querySelectorAll("[data-html-2]"),Ci.removeAttributes(t,"data-html-2"),t=r.querySelectorAll("[data-html-3]"),Ci.removeAttributes(t,"data-html-3"),t=r.querySelectorAll("[data-html-4]"),Ci.removeAttributes(t,"data-html-4"),t=r.querySelectorAll("[data-html-5]"),Ci.removeAttributes(t,"data-html-5"),t=r.querySelectorAll("[data-html-6]"),Ci.removeAttributes(t,"data-html-6"),t=r.querySelectorAll("[data-html-7]"),Ci.removeAttributes(t,"data-html-7"),t=r.querySelectorAll("[data-html-8]"),Ci.removeAttributes(t,"data-html-8"),t=r.querySelectorAll("[data-html-9]"),Ci.removeAttributes(t,"data-html-9"),t=r.querySelectorAll("[data-html-10]"),Ci.removeAttributes(t,"data-html-10"),t=r.querySelectorAll("[data-html-12]"),Ci.removeAttributes(t,"data-html-12"),t=r.querySelectorAll("[data-html-13]"),Ci.removeAttributes(t,"data-html-13"),t=r.querySelectorAll("[data-html-14]"),Ci.removeAttributes(t,"data-html-14"),t=r.querySelectorAll("[data-html-15]"),Ci.removeAttributes(t,"data-html-15"),t=r.querySelectorAll("[data-html-16]"),Ci.removeAttributes(t,"data-html-16"),t=r.querySelectorAll("[data-html-17]"),Ci.removeAttributes(t,"data-html-17"),t=r.querySelectorAll("[data-html-18]"),Ci.removeAttributes(t,"data-html-18"),t=r.querySelectorAll("[data-html-19]"),Ci.removeAttributes(t,"data-html-19"),t=r.querySelectorAll("[data-html-20]"),Ci.removeAttributes(t,"data-html-20"),t=r.querySelectorAll("[data-html-21]"),Ci.removeAttributes(t,"data-html-21"),t=r.querySelectorAll("[data-html-21]"),Ci.removeAttributes(t,"data-html-21"),t=r.querySelectorAll("[data-html-22]"),Ci.removeAttributes(t,"data-html-22"),t=r.querySelectorAll("[data-html-23]"),Ci.removeAttributes(t,"data-html-23"),t=r.querySelectorAll("[data-html-24]"),Ci.removeAttributes(t,"data-html-24"),t=r.querySelectorAll("[data-html-25]"),Ci.removeAttributes(t,"data-html-25")),t=r.querySelectorAll("[data-bottom-top],[data-center],[data-center-bottom],[data-100-top],[data-50-top],[data-top],[data-top-bottom],[data-center-top],[data--300-bottom],[data--150-bottom],[data--50-bottom],[data-bottom],[data-100-bottom],[data-150-bottom],[data-400-bottom],[data--400-bottom],[data--200-bottom],[data--100-bottom],[data-50-bottom],[data-200-bottom],[data-300-bottom],[data-in],[data-in-150],[data-in-300],[data-cen--150],[data-cen],[data-cen-150],[data-out--300],[data-out--150],[data-out][data-t],[data-t-100],[data-t-200],[data-t-300],[data-t-400],[data-t-500],[data-t-600],[data-t-700],[data-t-800],[data-t-900],[data-t-1000],[data-t-1100],[data-t-1200],[data-t-1300],[data-t-1400],[data-t-1500],[data-t-1600],[data-t-1700],[data-t-1800],[data-t-1900],[data-t-2000],[data-t-2100],[data-t-2200],[data-t-2300],[data-t-2400],[data-t-2500],[data-t-2600],[data-t-2700],[data-t-2800]"),Array.prototype.forEach.call(t,(t=>{t.style.transition="",t.style.transform="",t.style.opacity=""})),t=r.querySelectorAll(".is-animated"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"animated"),Ci.removeClass(t,"pulse"),Ci.removeClass(t,"bounceIn"),Ci.removeClass(t,"fadeIn"),Ci.removeClass(t,"fadeOut"),Ci.removeClass(t,"fadeInDown"),Ci.removeClass(t,"fadeInLeft"),Ci.removeClass(t,"fadeInRight"),Ci.removeClass(t,"fadeInUp"),Ci.removeClass(t,"flipInX"),Ci.removeClass(t,"flipInY"),Ci.removeClass(t,"slideInUp"),Ci.removeClass(t,"slideInDown"),Ci.removeClass(t,"slideInLeft"),Ci.removeClass(t,"slideInRight"),Ci.removeClass(t,"zoomIn"),t.style.animationDelay="",t.style.transitionDelay="",t.style.transitionDuration="",t.style.transitionTimingFunction="",t.style.transitionProperty=""}));let e=r.querySelectorAll('[style=""]');Array.prototype.forEach.call(e,(t=>{t.removeAttribute("style")})),t=r.querySelectorAll(".is-appeared"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"is-appeared")})),t=r.querySelectorAll(".box-active"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"box-active")})),t=r.querySelectorAll(".section-active"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"section-active")})),t=r.querySelectorAll(".section-select"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"section-select")})),t=r.querySelectorAll(".box-select"),Array.prototype.forEach.call(t,(t=>{Ci.removeClass(t,"box-select")})),t=r.querySelectorAll(".is-section-tool"),Ci.removeElements(t),t=r.querySelectorAll(".is-box-tool"),Ci.removeElements(t),t=r.querySelectorAll(".is-box-info"),Ci.removeElements(t),t=r.querySelectorAll(".is-section-info"),Ci.removeElements(t);var p="",g="",m="";Ci.elementChildren(r).forEach((t=>{let e=t;if(Ci.hasClass(e,"is-section")){var i="";e.getAttribute("class")&&(i=' class="'+e.getAttribute("class")+'"');var n=e.cloneNode(!0),o=n.outerHTML;s+=o,-1===i.indexOf("is-static")?p+=o+"\n\n":g+=o+"\n\n"}else o=(n=e.cloneNode(!0)).outerHTML,s+=o,m+=o}));let i=document.querySelector("[data-contentbox]"),n=!1;i&&(n=i.settings.disableStaticSection),n||(s=p+g+m)}else{let t=r.querySelectorAll('[style=""]');Array.prototype.forEach.call(t,(t=>{t.removeAttribute("style")})),this.builder.shortenOutput&&(d=r.querySelectorAll("[data-noedit]"),Ci.removeAttributes(d,"data-noedit"),d=r.querySelectorAll("[data-module]"),Ci.removeAttributes(d,"data-module"),d=r.querySelectorAll("[data-module-desc]"),Ci.removeAttributes(d,"data-module-desc"),d=r.querySelectorAll("[data-dialog-width]"),Ci.removeAttributes(d,"data-dialog-width"),d=r.querySelectorAll("[data-dialog-height]"),Ci.removeAttributes(d,"data-dialog-height"),d=r.querySelectorAll("[data-html]"),Ci.removeAttributes(d,"data-html"),d=r.querySelectorAll("[data-settings]"),Ci.removeAttributes(d,"data-settings"),d=r.querySelectorAll("[data-html-1]"),Ci.removeAttributes(d,"data-html-1"),d=r.querySelectorAll("[data-html-2]"),Ci.removeAttributes(d,"data-html-2"),d=r.querySelectorAll("[data-html-3]"),Ci.removeAttributes(d,"data-html-3"),d=r.querySelectorAll("[data-html-4]"),Ci.removeAttributes(d,"data-html-4"),d=r.querySelectorAll("[data-html-5]"),Ci.removeAttributes(d,"data-html-5"),d=r.querySelectorAll("[data-html-6]"),Ci.removeAttributes(d,"data-html-6"),d=r.querySelectorAll("[data-html-7]"),Ci.removeAttributes(d,"data-html-7"),d=r.querySelectorAll("[data-html-8]"),Ci.removeAttributes(d,"data-html-8"),d=r.querySelectorAll("[data-html-9]"),Ci.removeAttributes(d,"data-html-9"),d=r.querySelectorAll("[data-html-10]"),Ci.removeAttributes(d,"data-html-10"),d=r.querySelectorAll("[data-html-12]"),Ci.removeAttributes(d,"data-html-12"),d=r.querySelectorAll("[data-html-13]"),Ci.removeAttributes(d,"data-html-13"),d=r.querySelectorAll("[data-html-14]"),Ci.removeAttributes(d,"data-html-14"),d=r.querySelectorAll("[data-html-15]"),Ci.removeAttributes(d,"data-html-15"),d=r.querySelectorAll("[data-html-16]"),Ci.removeAttributes(d,"data-html-16"),d=r.querySelectorAll("[data-html-17]"),Ci.removeAttributes(d,"data-html-17"),d=r.querySelectorAll("[data-html-18]"),Ci.removeAttributes(d,"data-html-18"),d=r.querySelectorAll("[data-html-19]"),Ci.removeAttributes(d,"data-html-19"),d=r.querySelectorAll("[data-html-20]"),Ci.removeAttributes(d,"data-html-20"),d=r.querySelectorAll("[data-html-21]"),Ci.removeAttributes(d,"data-html-21"),d=r.querySelectorAll("[data-html-21]"),Ci.removeAttributes(d,"data-html-21"),d=r.querySelectorAll("[data-html-22]"),Ci.removeAttributes(d,"data-html-22"),d=r.querySelectorAll("[data-html-23]"),Ci.removeAttributes(d,"data-html-23"),d=r.querySelectorAll("[data-html-24]"),Ci.removeAttributes(d,"data-html-24"),d=r.querySelectorAll("[data-html-25]"),Ci.removeAttributes(d,"data-html-25")),s=r.innerHTML.trim(),s=s.replace(/<font/g,"<span").replace(/<\/font/g,"</span")}let f=He.html;return s=f(s),s=s.replace(/(\r\n|\r|\n){3,}/g,"$1\n"),s}beautify(t){return t=(t=(0,He.html)(t)).replace(/(\r\n|\r|\n){3,}/g,"$1\n")}}class Ai{constructor(t){this.builder=t;const e=this.builder.dom;this.dom=e,this.undoList=[]}readStyles(){if(this.builder.opts.undoContainerOnly)return"";let t,e,i="",n=this.builder.doc.getElementsByTagName("link");for(t=0;t<n.length;t++)e=n[t].href.toLowerCase(),-1!==e.indexOf("basetype-")&&(i+=n[t].outerHTML);for(n=this.builder.doc.getElementsByTagName("link"),t=0;t<n.length;t++)e=n[t].href.toLowerCase(),-1!==e.indexOf("basetype-")||-1!==e.indexOf("type-")&&(i+=n[t].outerHTML);return i}writeStyles(t){const e=this.dom;if(this.builder.opts.undoContainerOnly)return;let i,n,o=this.builder.doc.getElementsByTagName("link");for(i=0;i<o.length;i++)n=o[i].href.toLowerCase(),(-1!==n.indexOf("basetype-")||-1!==n.indexOf("type-"))&&o[i].parentNode.removeChild(o[i]);let s=this.builder.doc.getElementsByTagName("head")[0];e.appendHtml(s,t)}readHtml(){if(""===this.builder.opts.page||this.builder.opts.undoContainerOnly){const t=this.builder.doc.querySelectorAll(this.builder.opts.container);let e="";return Array.prototype.forEach.call(t,(t=>{e+=t.innerHTML+"####|####"})),e=e.substr(0,e.length-9),e}return this.builder.doc.querySelector(this.builder.opts.page).innerHTML}cleaning(t){const e=this.dom;let i=t.querySelectorAll(".is-builder");Array.prototype.forEach.call(i,(t=>{t.removeAttribute("data-sort")}));let n=t.querySelectorAll("[data-click]");e.removeAttributes(n,"data-click"),e.removeElements(t.querySelectorAll(".is-row-tool")),e.removeElements(t.querySelectorAll(".is-rowadd-tool")),e.removeElements(t.querySelectorAll(".is-col-tool")),e.removeElements(t.querySelectorAll(".ovl")),e.removeElements(t.querySelectorAll(".row-add-initial")),n=t.querySelectorAll(".is-section-tool"),e.removeElements(n)}writeHtml(t){if(""===this.builder.opts.page||this.builder.opts.undoContainerOnly){const e=this.builder.doc.querySelectorAll(this.builder.opts.container);let i=0;Array.prototype.forEach.call(e,(e=>{var n=document.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(t.split("####|####")[i])),this.cleaning(e),this.builder.applyBehaviorOn(e),i++}))}else{let i=this.builder.doc.querySelector(this.builder.opts.page);var e=document.createRange();i.innerHTML="",i.appendChild(e.createContextualFragment(t)),this.cleaning(i)}this.builder.opts.onRender()}saveForUndo(t){if(this.builder.undoRedoStyles){if(this.undoList[120]){let e=this.undoList[120][0].split("###$###")[1];if(this.builder.saveForUndoCheck&&e===this.readHtml())return void(this.builder.saveForUndoCheck=!0===t)}}else if(this.undoList[120]){let e=this.undoList[120][0];if(this.builder.saveForUndoCheck&&e===this.readHtml())return void(this.builder.saveForUndoCheck=!0===t)}if(this.builder.saveForUndoCheck=!0===t,this.undoList[140]=this.undoList[139],this.undoList[139]=this.undoList[138],this.undoList[138]=this.undoList[137],this.undoList[137]=this.undoList[136],this.undoList[136]=this.undoList[135],this.undoList[135]=this.undoList[134],this.undoList[134]=this.undoList[133],this.undoList[133]=this.undoList[132],this.undoList[132]=this.undoList[131],this.undoList[131]=this.undoList[130],this.undoList[130]=this.undoList[129],this.undoList[129]=this.undoList[128],this.undoList[128]=this.undoList[127],this.undoList[127]=this.undoList[126],this.undoList[126]=this.undoList[125],this.undoList[125]=this.undoList[124],this.undoList[124]=this.undoList[123],this.undoList[123]=this.undoList[122],this.undoList[122]=this.undoList[121],this.undoList[121]=this.undoList[120],this.builder.undoRedoStyles){let t=" "+this.readStyles()+"###$###"+this.readHtml();this.undoList[120]=[t,null]}else this.undoList[120]=[this.readHtml(),null]}doUndo(){const t=this.dom;if(!this.undoList[120])return;if(!0===this.builder.undoRedoInProcess)return;if(this.builder.undoRedoInProcess=!0,this.undoList[99]=this.undoList[100],this.undoList[100]=this.undoList[101],this.undoList[101]=this.undoList[102],this.undoList[102]=this.undoList[103],this.undoList[103]=this.undoList[104],this.undoList[104]=this.undoList[105],this.undoList[105]=this.undoList[106],this.undoList[106]=this.undoList[107],this.undoList[107]=this.undoList[108],this.undoList[108]=this.undoList[109],this.undoList[109]=this.undoList[110],this.undoList[110]=this.undoList[111],this.undoList[111]=this.undoList[112],this.undoList[112]=this.undoList[113],this.undoList[113]=this.undoList[114],this.undoList[114]=this.undoList[115],this.undoList[115]=this.undoList[116],this.undoList[116]=this.undoList[117],this.undoList[117]=this.undoList[118],this.undoList[118]=this.undoList[119],this.builder.undoRedoStyles){let t=this.readStyles(),e=this.readHtml(),i=" "+t+"###$###"+e;this.undoList[119]=[i,null],i=this.undoList[120][0],t=i.split("###$###")[0].trim(),e=i.split("###$###")[1],this.writeStyles(t),this.writeHtml(e)}else{this.undoList[119]=[this.readHtml(),null];let t=this.undoList[120][0];this.writeHtml(t)}this.builder.applyBehavior(),this.builder.opts.onChange(),this.undoList[120]=this.undoList[121],this.undoList[121]=this.undoList[122],this.undoList[122]=this.undoList[123],this.undoList[123]=this.undoList[124],this.undoList[124]=this.undoList[125],this.undoList[125]=this.undoList[126],this.undoList[126]=this.undoList[127],this.undoList[127]=this.undoList[128],this.undoList[128]=this.undoList[129],this.undoList[129]=this.undoList[130],this.undoList[130]=this.undoList[131],this.undoList[131]=this.undoList[132],this.undoList[132]=this.undoList[133],this.undoList[133]=this.undoList[134],this.undoList[134]=this.undoList[135],this.undoList[135]=this.undoList[136],this.undoList[136]=this.undoList[137],this.undoList[137]=this.undoList[138],this.undoList[138]=this.undoList[139],this.undoList[139]=this.undoList[140],this.undoList[140]=this.undoList[141];const e=new n(this.builder);e.clearActiveCell(),e.clearAfterUndoRedo();let i=this.builder.doc.querySelector("[data-saveforundo]");if(i){let e=document.querySelector(".is-side.elementstyles");t.addClass(e,"active"),setTimeout((()=>{i.click()}),700)}else{let e=document.querySelector(".is-side.elementstyles");t.removeClass(e,"active")}this.builder.opts.onUndo&&this.builder.opts.onUndo(),this.builder.undoRedoInProcess=!1}doRedo(){const t=this.dom;if(!this.undoList[119])return;if(!0===this.builder.undoRedoInProcess)return;if(this.builder.undoRedoInProcess=!0,this.undoList[141]=this.undoList[140],this.undoList[140]=this.undoList[139],this.undoList[139]=this.undoList[138],this.undoList[138]=this.undoList[137],this.undoList[137]=this.undoList[136],this.undoList[136]=this.undoList[135],this.undoList[135]=this.undoList[134],this.undoList[134]=this.undoList[133],this.undoList[133]=this.undoList[132],this.undoList[132]=this.undoList[131],this.undoList[131]=this.undoList[130],this.undoList[130]=this.undoList[129],this.undoList[129]=this.undoList[128],this.undoList[128]=this.undoList[127],this.undoList[127]=this.undoList[126],this.undoList[126]=this.undoList[125],this.undoList[125]=this.undoList[124],this.undoList[124]=this.undoList[123],this.undoList[123]=this.undoList[122],this.undoList[122]=this.undoList[121],this.undoList[121]=this.undoList[120],this.builder.undoRedoStyles){let t=this.readStyles(),e=this.readHtml(),i=" "+t+"###$###"+e;this.undoList[120]=[i,null],i=this.undoList[119][0],t=i.split("###$###")[0].trim(),e=i.split("###$###")[1],this.writeStyles(t),this.writeHtml(e)}else{this.undoList[120]=[this.readHtml(),null];let t=this.undoList[119][0];this.writeHtml(t)}this.builder.applyBehavior(),this.builder.opts.onChange(),this.undoList[119]=this.undoList[118],this.undoList[118]=this.undoList[117],this.undoList[117]=this.undoList[116],this.undoList[116]=this.undoList[115],this.undoList[115]=this.undoList[114],this.undoList[114]=this.undoList[113],this.undoList[113]=this.undoList[112],this.undoList[112]=this.undoList[111],this.undoList[111]=this.undoList[110],this.undoList[110]=this.undoList[109],this.undoList[109]=this.undoList[108],this.undoList[108]=this.undoList[107],this.undoList[107]=this.undoList[106],this.undoList[106]=this.undoList[105],this.undoList[105]=this.undoList[104],this.undoList[104]=this.undoList[103],this.undoList[103]=this.undoList[102],this.undoList[102]=this.undoList[101],this.undoList[101]=this.undoList[100],this.undoList[100]=this.undoList[99],this.undoList[99]=null;const e=new n(this.builder);e.clearActiveCell(),e.clearAfterUndoRedo();let i=this.builder.doc.querySelector("[data-saveforundo]");if(i){let e=document.querySelector(".is-side.elementstyles");t.addClass(e,"active"),setTimeout((()=>{i.click()}),700)}else{let e=document.querySelector(".is-side.elementstyles");t.removeClass(e,"active")}this.builder.opts.onRedo&&this.builder.opts.onRedo(),this.builder.undoRedoInProcess=!1}}
2
2
  /*!
3
3
  Ionicons
4
4
  License: MIT
@@ -417,4 +417,4 @@ function B(t,e){var i,n,o;function s(){return new ReadableStream({start:function
417
417
  * @throws Will throw an error if "new" keyword is not used to initiate "RecordRTCPromisesHandler". Also throws error if first argument "MediaStream" is missing.
418
418
  * @requires {@link RecordRTC}
419
419
  */
420
- function(t,e){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if(void 0===t)throw'First argument "MediaStream" is required.';var n=this;n.recordRTC=new i(t,e),this.startRecording=function(){return new Promise((function(t,e){try{n.recordRTC.startRecording(),t()}catch(t){e(t)}}))},this.stopRecording=function(){return new Promise((function(t,e){try{n.recordRTC.stopRecording((function(i){n.blob=n.recordRTC.getBlob(),n.blob&&n.blob.size?t(i):e("Empty blob.",n.blob)}))}catch(t){e(t)}}))},this.pauseRecording=function(){return new Promise((function(t,e){try{n.recordRTC.pauseRecording(),t()}catch(t){e(t)}}))},this.resumeRecording=function(){return new Promise((function(t,e){try{n.recordRTC.resumeRecording(),t()}catch(t){e(t)}}))},this.getDataURL=function(t){return new Promise((function(t,e){try{n.recordRTC.getDataURL((function(e){t(e)}))}catch(t){e(t)}}))},this.getBlob=function(){return new Promise((function(t,e){try{t(n.recordRTC.getBlob())}catch(t){e(t)}}))},this.getInternalRecorder=function(){return new Promise((function(t,e){try{t(n.recordRTC.getInternalRecorder())}catch(t){e(t)}}))},this.reset=function(){return new Promise((function(t,e){try{t(n.recordRTC.reset())}catch(t){e(t)}}))},this.destroy=function(){return new Promise((function(t,e){try{t(n.recordRTC.destroy())}catch(t){e(t)}}))},this.getState=function(){return new Promise((function(t,e){try{t(n.recordRTC.getState())}catch(t){e(t)}}))},this.blob=null,this.version="5.6.2"}),void 0!==i&&(i.WebAssemblyRecorder=B)}(lf);var af=lf.exports;const df=new o;class cf{constructor(t={},e){this.opts=Object.assign(this,{send:()=>{},abort:()=>{}},t),this.builder=e;const i=this.builder.util;this.util=i;const n=this.builder.builderStuff;this.builderStuff=n,null===localStorage.getItem("_mic")&&localStorage.setItem("_mic","0"),this.builder.isInProgress=!1;const o=this.builder.commandInfo;let s="";for(const t in o)if(Object.prototype.hasOwnProperty.call(o,t)){const{title:e,list:i,width:n}=o[t];if(this.builder.enableShortCommands){s+=`<h2>${e}</h2>`;for(const t of i)s+=n?`<div role="button" tabindex="0" class="command-item" style="width:${n}">${t}</div>`:`<div role="button" tabindex="0" class="command-item">${t}</div>`}else if("general"===t){s+=`<h2>${e}</h2>`;for(const t of i)s+=n?`<div role="button" tabindex="0" class="command-item" style="width:${n}">${t}</div>`:`<div role="button" tabindex="0" class="command-item">${t}</div>`}}let r=`\n <style>\n .is-modal.commandlist {\n z-index: 10005 !important\n }\n .is-modal.commandlist .is-modal-content {\n max-width:calc(100% - 150px);\n height:calc(100% - 150px);\n padding:0 !important;\n }\n .is-modal.commandlist .is-modal-close {\n position: absolute !important;\n top: 5px;\n right: 15px;\n box-shadow: none !important;\n }\n .is-modal.commandlist .is-modal-close {\n background: transparent !important;\n }\n .is-modal.commandlist .is-modal-close svg {\n width:50px;height:50px;\n }\n .is-modal.commandlist .is-modal-content > div {\n display: flex;\n flex-flow: wrap;\n align-items: flex-start;\n /*align-items: inherits;*/\n justify-content: flex-start;\n padding: 2.2rem;\n box-sizing: border-box;\n overflow-y: auto;\n overflow-x: hidden;\n width: 100%;\n height: 100%;\n }\n .is-modal.commandlist .is-modal-content > div > h2 {\n display: block;\n width: 100%;\n flex: none;\n font-family: "Open Sans", sans-serif;\n font-weight: 300;\n margin-bottom: 30px;\n font-size: 28px;\n }\n .is-modal.commandlist .is-modal-content > div > div {\n margin-right: 2.2rem;\n margin-bottom: 2.2rem;\n display: flex;\n flex: none;\n width: 350px;\n height: auto;\n flex-direction: column;\n justify-content: space-between;\n border-radius: 0.25rem;\n border: 1px solid rgb(156 163 175/.75);\n padding: 1.5rem 2rem;\n box-sizing: border-box;\n letter-spacing: .025em;\n box-shadow: 5px 5px 0px rgb(0 0 0 / 3%);\n font-size: 19px;\n font-weight: 300;\n font-family: sans-serif;\n line-height: 1.3;\n cursor:pointer;\n transition: all 0.3s ease;\n }\n .is-modal.commandlist .is-modal-content > div > div:hover {\n background: rgba(0, 0, 0, 0.03);\n }\n .dark .is-modal.commandlist .is-modal-content > div > div:hover {\n background: rgba(255, 255, 255, 0.05);\n }\n .is-modal.page-command {\n width: 340px !important; \n height: 200px !important; \n top: auto !important; \n bottom: 30px !important; \n left: auto !important; \n right: 30px !important; \n z-index: 10005 !important;\n font-size: 12px;\n }\n .page-command-overlay {\n position: fixed;\n background: rgb(148 148 148 / 22%);\n display: none;\n z-index: 10004;\n justify-content: center;\n align-items:center;\n }\n\n .spinner {\n -webkit-animation: rotator 1.4s linear infinite;\n animation: rotator 1.4s linear infinite;\n }\n @-webkit-keyframes rotator {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(270deg);\n }\n }\n @keyframes rotator {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(270deg);\n }\n }\n .path {\n stroke: #232323; /* #b7b7b7; */\n stroke-dasharray: 187;\n stroke-dashoffset: 0;\n transform-origin: center;\n -webkit-animation: dash 1.4s ease-in-out infinite;\n animation: dash 1.4s ease-in-out infinite;\n }\n @-webkit-keyframes dash {\n 0% {\n stroke-dashoffset: 187;\n }\n 50% {\n stroke-dashoffset: 46.75;\n transform: rotate(135deg);\n }\n 100% {\n stroke-dashoffset: 187;\n transform: rotate(450deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dashoffset: 187;\n }\n 50% {\n stroke-dashoffset: 46.75;\n transform: rotate(135deg);\n }\n 100% {\n stroke-dashoffset: 187;\n transform: rotate(450deg);\n }\n }\n </style>\n <div class="is-overlay page-command-overlay">\n <svg class="spinner" width="40px" height="40px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\n <circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle>\n </svg>\n </div>\n <div class="is-modal is-modal-content page-command" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-bar is-draggable" draggable=""> \n <span style="display: flex;\n justify-content: center;\n align-items: center;">\n ${i.out("AI Assistant")}</span>\n <button class="is-modal-close" tabindex="-1" title="${i.out("Close")}">\n <svg class="is-icon-flex"style="width:20px;height:20px"><use xlink:href="#ion-ios-close-empty"></use></svg>\n </button>\n </div>\n <div style="display:flex;flex-direction:column;justify-content:space-between;position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;border-top:transparent 35px solid;overflow-y:hidden;overflow-x:auto;">\n \n <textarea class="inp-command" style="resize:none;width:100%;height:121px;border:none;outline:none;background:transparent;line-height: 1.2;\n font-family: sans-serif;font-weight: 300;font-size: 17px;"></textarea>\n <div style="display:flex">\n <button title="${i.out("Mic")}" class="cmd-enable-dictation classic-secondary" style="width:40px;height:43px;flex:none;padding:0;outline-offset:-2px;">\n <svg class="is-icon-flex" style="width: 18px; height: 18px;"><use xlink:href="#icon-microphone"></use></svg> \n </button>\n <button title="${i.out("Commands")}" class="cmd-command-list classic-secondary" style="width:40px;height:43px;flex:none;padding:0;outline-offset:-2px;">\n <svg class="is-icon-flex" style="width: 18px; height: 18px;"><use xlink:href="#icon-message-search"></use></svg> \n </button>\n <button title="${i.out("Clear")}" class="cmd-clear-command classic-secondary" style="width:40px;height:43px;flex:none;padding:0;outline-offset:-2px;">\n <svg class="is-icon-flex" style="width: 18px; height: 18px;"><use xlink:href="#icon-eraser"></use></svg> \n </button>\n <label for="chkAutoSendCommand" style="margin:0;display:flex;padding-left:10px;padding-right:10px;white-space:nowrap;width:100%;align-items:center;letter-spacing:0"><input id="chkAutoSendCommand" type="checkbox"> <span style="margin-left:3px">${i.out("Auto Send")}</span></label>\n <button title="${i.out("Send")}" class="cmd-send-command classic-primary" style="width:100%;padding-left:5px;padding-right:5px;height:43px;outline-offset:-2px;">Send</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal commandlist" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="false">\n <div class="is-modal-overlay"></div>\n\n <div class="is-modal-content scroll-darker"">\n <button class="is-modal-close" tabindex="-1" title="${i.out("Close")}">\n <svg class="is-icon-flex"><use xlink:href="#ion-ios-close-empty"></use></svg>\n </button>\n <div>\n\n ${s}\n\n </div>\n </div>\n </div>\n `;df.appendHtml(n,r);const l=n.querySelector(".page-command");this.modalCommand=l;const a=n.querySelector(".commandlist");this.modalCommandList=a;const d=n.querySelector(".cmd-enable-dictation"),c=n.querySelector(".cmd-clear-command"),u=n.querySelector("#chkAutoSendCommand"),h=n.querySelector(".cmd-command-list"),p=this.builderStuff.querySelector(".inp-command");null===localStorage.getItem("_sampleshown")&&(p.setAttribute("placeholder",this.builder.commandPlaceholderText),localStorage.setItem("_sampleshown",!0)),this.builder.commandText="",this.builder.autoSendCommand=!1,null!==localStorage.getItem("_dictation")&&"1"===localStorage.getItem("_dictation")&&(this.modalCommand.classList.add("active"),null!==localStorage.getItem("_mic")?"1"===localStorage.getItem("_mic")&&this.startDictation():this.startDictation()),null!==localStorage.getItem("_mic")&&"0"===localStorage.getItem("_mic")&&(d.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',u.parentNode.style.display="none",c.style.marginRight="6px"),null!==localStorage.getItem("_autosendcommand")&&"1"===localStorage.getItem("_autosendcommand")&&(u.checked=!0,this.builder.autoSendCommand=!0,localStorage.setItem("_autosendcommand","1")),this.modalCommand.addEventListener("focus",(()=>{i.saveSelection()})),h.addEventListener("click",(()=>{i.showModal(this.modalCommandList,!1,(()=>{h.removeAttribute("data-focus"),h.focus()}),!1),h.setAttribute("data-focus",!0)}));const g=t=>{this.builderStuff.querySelector(".inp-command").value=t,i.hideModal(this.modalCommandList)};a.querySelectorAll(".command-item").forEach((t=>{t.addEventListener("click",(()=>{g(t.innerText),p.focus()})),t.addEventListener("keydown",(e=>{13!==e.which||e.shiftKey||(e.preventDefault(),e.stopImmediatePropagation(),g(t.innerText),setTimeout((()=>{p.focus()}),300))}))})),d.addEventListener("click",(()=>{this.checkMic()?(this.stopDictation(),d.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',localStorage.setItem("_mic","0"),u.parentNode.style.display="none",c.style.marginRight="6px"):(this.startDictation(),d.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone"></use></svg>',localStorage.setItem("_mic","1"),u.parentNode.style.display="flex",c.style.marginRight="")})),u.addEventListener("change",(()=>{u.checked?(this.builder.autoSendCommand=!0,localStorage.setItem("_autosendcommand","1")):(this.builder.autoSendCommand=!1,localStorage.setItem("_autosendcommand","0"))})),c.addEventListener("click",(()=>{const t=this.builderStuff.querySelector(".inp-command");this.builder.commandText="",t.value="",t.focus()}));const m=n.querySelector(".cmd-send-command");m.addEventListener("click",(async()=>{if(this.builder.isInProgress)return void this.opts.abort();let t=this.modalCommand.querySelector(".inp-command").value;t=t.trim(),""!==t&&this.opts.send(t)})),p.addEventListener("keydown",(t=>{13!==t.keyCode||t.shiftKey||t.preventDefault()})),p.addEventListener("keyup",(t=>{if(13===t.keyCode&&!t.shiftKey)return m.click(),void t.preventDefault();this.builder.commandText=p.value}));this.modalCommand.querySelector(".is-modal-close").addEventListener("click",(()=>{this.modalCommand.classList.remove("active"),this.stopDictation(),localStorage.setItem("_dictation","0")})),this.initialStart=!1}checkMic(){return null===localStorage.getItem("_mic")||"0"!==localStorage.getItem("_mic")}openDictation(){if(this.modalCommand.classList.contains("active"))return void setTimeout((()=>{this.modalCommand.querySelector(".inp-command").focus()}),600);this.modalCommand.classList.add("active");this.modalCommand.querySelector(".inp-command").focus(),localStorage.setItem("_dictation","1");const t=this.builderStuff.querySelector("#chkAutoSendCommand"),e=this.builderStuff.querySelector(".cmd-clear-command");if(!this.checkMic()){return this.builderStuff.querySelector(".cmd-enable-dictation").innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',t.parentNode.style.display="none",void(e.style.marginRight="6px")}t.parentNode.style.display="flex",e.style.marginRight="",this.startDictation()}stopDictation(){this.recognition&&this.recognition.abort(),this.aborted=!0,this.recorder&&this.recorder.stopRecording(),this.localStream&&this.localStream.getAudioTracks().forEach((t=>{t.stop()}))}async startDictation(){if(this.builder.speechTranscribeUrl){this.websocket=new WebSocket(this.builder.speechTranscribeUrl);try{this.localStream=await navigator.mediaDevices.getUserMedia({audio:!0})}catch(t){return setTimeout((()=>{const t=this.builderStuff.querySelector(".cmd-enable-dictation"),e=this.builderStuff.querySelector(".cmd-clear-command"),i=this.builderStuff.querySelector("#chkAutoSendCommand");this.stopDictation(),t.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',localStorage.setItem("_mic","0"),i.parentNode.style.display="none",e.style.marginRight="6px"}),1),void this.util.showMessage(this.util.out("No microphone found. Please activate your microphone and refresh the page."))}const t=16e3;this.recorder=new af(this.localStream,{type:"audio",desiredSampRate:t,numberOfAudioChannels:1,timeSlice:1e3,ondataavailable:t=>{this.websocket.send(t)}});(/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&window.safari.pushNotification).toString())&&!this.initialStart&&(this.recorder.stopRecording(),this.initialStart=!0,this.startDictation());let e="";const i=this.modalCommand.querySelector(".inp-command");this.websocket.onmessage=t=>{const n=JSON.parse(t.data);if("can-open-mic"===n.event&&(this.recorder.startRecording(),this.aborted=!1),"transcript-result"===n.event){const t=n.data;if(this.builder.isInProgress||this.aborted)return;e+=" "+t,i.value=e,clearTimeout(this.speechTimeout),this.speechTimeout=setTimeout((()=>{if(this.builder.commandText="",e="",this.builder.autoSendCommand){if(""===i.value.trim())return;this.modalCommand.querySelector(".cmd-send-command").click()}}),2e3)}}}else if("SpeechRecognition"in window||"webkitSpeechRecognition"in window||"mozSpeechRecognition"in window){const t=window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition;this.recognition=new t,this.recognition.continuous=!0,this.recognition.interimResults=!0;let e=this.builder.speechRecognitionLang;this.recognition.lang=e,this.recognition.start(),this.speechTimeout,this.builder.commandText="",this.recognition.onresult=t=>{if(this.builder.isInProgress)return;let e="",i="";for(var n=t.resultIndex;n<t.results.length;++n)t.results[n].isFinal?i+=t.results[n][0].transcript:e+=t.results[n][0].transcript;if(-1!==e.indexOf("send")||-1!==i.indexOf("send")){return void this.modalCommand.querySelector(".cmd-send-command").click()}this.builder.commandText+=i;const o=this.modalCommand.querySelector(".inp-command");o.value=this.builder.commandText,clearTimeout(this.speechTimeout),this.speechTimeout=setTimeout((()=>{if(this.builder.commandText="",this.builder.autoSendCommand){if(""===o.value.trim())return;this.modalCommand.querySelector(".cmd-send-command").click()}}),3e3)},this.recognition.onend=()=>{this.aborted||this.startDictation()},this.recognition.onstart=()=>{this.aborted=!1},this.recognition.onerror=t=>{console.log(t.message)}}else setTimeout((()=>{const t=this.builderStuff.querySelector(".cmd-enable-dictation"),e=this.builderStuff.querySelector(".cmd-clear-command"),i=this.builderStuff.querySelector("#chkAutoSendCommand");this.stopDictation(),t.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',localStorage.setItem("_mic","0"),i.parentNode.style.display="none",e.style.marginRight="6px"}),1),this.util.showMessage(this.util.out("Speech recognition not supported in this browser."))}startSending(){this.modalCommand.querySelector(".cmd-send-command").innerHTML=`\n <svg class="spinner" width="14px" height="14px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\n <circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle>\n </svg>\n <span style="margin-left:5px">${this.util.out("Abort")}</span>\n `;this.builderStuff.querySelector(".page-command-overlay").style.display="flex",this.builder.isInProgress=!0}finish(){this.builder.isInProgress=!1;this.modalCommand.querySelector(".cmd-send-command").innerText=this.util.out("Send");this.builderStuff.querySelector(".page-command-overlay").style.display="none"}}var uf={compareTwoStrings:hf,findBestMatch:function(t,e){if(!function(t,e){return"string"==typeof t&&(!!Array.isArray(e)&&(!!e.length&&!e.find((function(t){return"string"!=typeof t}))))}(t,e))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const i=[];let n=0;for(let o=0;o<e.length;o++){const s=e[o],r=hf(t,s);i.push({target:s,rating:r}),r>i[n].rating&&(n=o)}const o=i[n];return{ratings:i,bestMatch:o,bestMatchIndex:n}}};function hf(t,e){if((t=t.replace(/\s+/g,""))===(e=e.replace(/\s+/g,"")))return 1;if(t.length<2||e.length<2)return 0;let i=new Map;for(let e=0;e<t.length-1;e++){const n=t.substring(e,e+2),o=i.has(n)?i.get(n)+1:1;i.set(n,o)}let n=0;for(let t=0;t<e.length-1;t++){const o=e.substring(t,t+2),s=i.has(o)?i.get(o):0;s>0&&(i.set(o,s-1),n++)}return 2*n/(t.length+e.length-2)}class pf{constructor(t){this.builder=t}check(t){const{commandList:e}=this.builder.settings;let i=0,n="";for(const[o,s]of Object.entries(e)){const e=this.calculate(t,s);e>i&&(i=e,n=o)}return i>=this.builder.similarityThreshold&&n}calculate(t,e){const i=t.toLowerCase();let n=0;for(const t of e){const e=uf.compareTwoStrings(i,t);e>n&&(n=e)}return n}}class gf{constructor(t={}){let e,i,s={page:"",container:".container",row:"",cols:[],colequal:[],colsizes:[],imageQuality:.92,elementSelection:!0,paste:"text",snippetJSON:{snippets:[]},onPreviewOpen:()=>{let t=this.html();localStorage.setItem("preview-html",t)},previewStyle:"top:auto;bottom:50px;left:50px;right:auto;",livePreviewOpen:!1,livePreviewAlwaysReload:!1,livePreviewReloadEvery:30,scriptPath:"",plugins:[],pluginPath:"contentbuilder/",disableConfig:!1,modulePath:"assets/modules/",assetPath:"assets/",fontAssetPath:"assets/fonts/",snippetData:"assets/minimalist-blocks/snippetlist.html",snippetUrl:"assets/minimalist-blocks/content.js",snippetPath:"assets/minimalist-blocks/",snippetPathReplace:[],snippetCategories:[[120,"Basic"],[118,"Article"],[101,"Headline"],[119,"Buttons"],[102,"Photos"],[103,"Profile"],[116,"Contact"],[104,"Products, Services"],[105,"Features"],[108,"Skills"],[109,"Achievements"],[106,"Process"],[107,"Pricing"],[110,"Quotes"],[111,"Partners"],[112,"As Featured On"],[113,"Page Not Found"],[114,"Coming Soon"],[115,"Help, FAQ"]],defaultSnippetCategory:120,snippetHandle:!0,sidePanel:"right",snippetList:"#divSnippetList",onRender:function(){},onChange:function(){},largerImageHandler:"",imageHandler:"",fileHandler:"",mediaHandler:"",videoHandler:"",audioHandler:"",colors:["#ff8f00","#ef6c00","#d84315","#c62828","#58362f","#37474f","#353535","#f9a825","#9e9d24","#558b2f","#ad1457","#6a1b9a","#4527a0","#616161","#00b8c9","#009666","#2e7d32","#0277bd","#1565c0","#283593","#9e9e9e"],builderMode:"",rowTool:"right",rowcolOutline:!0,columnTool:!0,outlineMode:"",toolStyle:"",outlineStyle:"",snippetAddTool:!0,elementTool:!0,elementHighlight:!0,columnHtmlEditor:!0,rowHtmlEditor:!0,htmlSyntaxHighlighting:!0,snippetOpen:!1,toolbar:"top",toolbarDisplay:"auto",shortenHTML:!0,resizeHeight:!1,snippetsSidebarDisplay:"auto",imageEmbed:!0,imageselect:"",fileselect:"",imageSelect:"",fileSelect:"",videoSelect:"",audioSelect:"",mediaSelect:"",selectIcon:'<svg class="is-icon-flex" style="width:16px;height:16px;"><use xlink:href="#icon-folder"></use></svg>',otherSelect:"",otherSelectCaption:"Select Document",otherSelectIcon:'<svg class="is-icon-flex" style="width:16px;height:16px;"><use xlink:href="#icon-list-search"></use></svg>',imageSelectWidth:"1024px",imageSelectHeight:"80vh",fileSelectWidth:"1024px",fileSelectHeight:"80vh",videoSelectWidth:"1024px",videoSelectHeight:"80vh",audioSelectWidth:"1024px",audioSelectHeight:"80vh",mediaSelectWidth:"1024px",mediaSelectHeight:"80vh",otherSelectWidth:"1024px",otherSelectHeight:"80vh",assetRefresh:!1,customTags:[],buttons:["bold","italic","underline","formatting","color","align","textsettings","createLink","tags","|","undo","redo","zoom","livepreview","more"],buttonsMore:["icon","image","|","list","font","formatPara","|","html","preferences"],elementButtons:["left","center","right","full","undo","redo","zoom","livepreview","more"],elementButtonsMore:["|","html","preferences"],iconButtons:["icon","color","textsettings","createLink","|","undo","redo","zoom","livepreview","more"],iconButtonsMore:["|","html","preferences"],lang:[],checkLang:!1,clearPreferences:!1,toolbarAddSnippetButton:!1,animateModal:!0,defaultFontSizes:[16,17,18,19,24,32,48,76,96,120,200,300],fontSizeClassValues:[12,14,15,16,17,18,19,21,24,28,32,35,38,42,46,48,50,54,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,396,400],gradientcolors:[["linear-gradient(0deg, rgb(255, 57, 25), rgb(249, 168, 37))"],["linear-gradient(0deg, rgb(255, 57, 25), rgb(255, 104, 15))"],["linear-gradient(0deg, #FF5722, #FF9800)"],["linear-gradient(0deg, #613ca2, rgb(110, 123, 217))"],["linear-gradient(0deg, rgb(65, 70, 206), rgb(236, 78, 130))"],["linear-gradient(0deg, rgb(0, 150, 102), rgb(90, 103, 197))"],["linear-gradient(30deg, rgb(249, 119, 148), rgb(98, 58, 162))"],["linear-gradient(0deg, rgb(223, 70, 137), rgb(90, 103, 197))"],["linear-gradient(0deg, rgb(40, 53, 147), rgb(90, 103, 197))"],["linear-gradient(0deg, rgb(21, 101, 192), rgb(52, 169, 239))"],["linear-gradient(0deg, rgb(32, 149, 219), rgb(139, 109, 230))"],["linear-gradient(0deg, rgb(90, 103, 197), rgb(0, 184, 201))"],["linear-gradient(0deg, rgb(0, 184, 201), rgb(253, 187, 45))"],["linear-gradient(0deg, rgb(255, 208, 100), rgb(239, 98, 159))"],["linear-gradient(0deg, rgb(0, 214, 223), rgb(130, 162, 253))"],["linear-gradient(0deg, rgb(50, 234, 251), rgb(248, 247, 126))"],["linear-gradient(0deg, rgb(141, 221, 255), rgb(255, 227, 255))"],["linear-gradient(0deg, rgb(255, 170, 170), rgb(255, 255, 200))"],["linear-gradient(0deg, rgb(239, 239, 239), rgb(252, 252, 252))"]],elementEditor:!0,customval:"",moduleConfig:[],elementAnimate:!1,framework:"",cellFormat:"",rowFormat:"",emailMode:!1,absolutePath:!1,emailSnippetCategories:[[1,"Logo"],[14,"Call to Action"],[2,"Title"],[3,"Title, Subtitle"],[4,"Info, Title"],[7,"Paragraph"],[6,"Heading"],[8,"Buttons"],[9,"Callouts"],[10,"Images + Caption"],[12,"Images"],[13,"List"],[15,"Pricing"],[16,"Quotes"],[17,"Profile"],[18,"Contact Info"],[19,"Footer"],[20,"Separator"]],defaultEmailSnippetCategory:14,undoRedoStyles:!1,maxEmbedImageWidth:1600,zoom:1,useLightbox:!1,lightboxArrow:!0,imageRenameOnEdit:!0,disableAutoEmbedVideo:!1,deleteConfirm:!1,sectionTemplate:'\n <div class="is-section is-box is-section-100 type-opensans">\n <div class="is-overlay"></div>\n <div class="is-boxes">\n <div class="is-box-centered">\n <div class="is-container is-content-1100 v2 size-17 leading-13">\n [%CONTENT%]\n </div>\n </div>\n </div>\n </div>\n ',colHeight:[300,350,400,450,500,550,600,650,700],maxColumns:6,leadingPreset:[1,1.2,1.4,1.6,1.8,2,2.2],cssClasses:{fontWeight:{thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold",black:"font-black",defaultBold:"font-semibold",defaultNormal:"font-light"},fontStyle:{italic:"italic",normal:"not-italic"},textDecoration:{underline:"underline",linethrough:"line-through",normal:"no-underline"},textTransform:{uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",normal:"normal-case"},tracking:{tracking__100:"tracking--100",tracking__075:"tracking--75",tracking__050:"tracking-tighter",tracking__025:"tracking-tight",tracking_000:"tracking-normal",tracking_025:"tracking-wide",tracking_050:"tracking-wider",tracking_075:"tracking-75",tracking_100:"tracking-widest",tracking_125:"tracking-125",tracking_150:"tracking-150",tracking_175:"tracking-175",tracking_200:"tracking-200",tracking_225:"tracking-225",tracking_250:"tracking-250",tracking_275:"tracking-275",tracking_300:"tracking-300",tracking_325:"tracking-325",tracking_350:"tracking-350",tracking_375:"tracking-375",tracking_400:"tracking-400",tracking_425:"tracking-425",tracking_450:"tracking-450",tracking_475:"tracking-475",tracking_500:"tracking-500"},leading:{leading_5:"leading-05",leading_6:"leading-06",leading_7:"leading-07",leading_8:"leading-08",leading_9:"leading-09",leading_10:"leading-none",leading_11:"leading-11",leading_12:"leading-12",leading_125:"leading-tight",leading_13:"leading-13",leading_1375:"leading-snug",leading_14:"leading-14",leading_15:"leading-normal",leading_16:"leading-16",leading_1625:"leading-relaxed",leading_17:"leading-17",leading_18:"leading-18",leading_19:"leading-19",leading_20:"leading-loose",leading_21:"leading-21",leading_22:"leading-22",leading_23:"leading-23",leading_24:"leading-24",leading_25:"leading-25",leading_26:"leading-26",leading_27:"leading-27",leading_28:"leading-28",leading_29:"leading-29",leading_30:"leading-30"},opacity:{opacity_0:"opacity-0",opacity_2:"opacity-2",opacity_4:"opacity-4",opacity_5:"opacity-5",opacity_6:"opacity-6",opacity_8:"opacity-8",opacity_10:"opacity-10",opacity_12:"opacity-12",opacity_15:"opacity-15",opacity_20:"opacity-20",opacity_25:"opacity-25",opacity_30:"opacity-30",opacity_35:"opacity-35",opacity_40:"opacity-40",opacity_45:"opacity-45",opacity_50:"opacity-50",opacity_55:"opacity-55",opacity_60:"opacity-60",opacity_65:"opacity-65",opacity_70:"opacity-70",opacity_75:"opacity-75",opacity_80:"opacity-80",opacity_85:"opacity-85",opacity_90:"opacity-90",opacity_95:"opacity-95",opacity_100:"opacity-100"},padding:{all:{p_0:"p-0",p_1:"p-1",p_2:"p-2",p_3:"p-3",p_4:"p-4",p_5:"p-5",p_6:"p-6",p_7:"p-7",p_8:"p-8",p_9:"p-9",p_10:"p-10",p_11:"p-11",p_12:"p-12",p_14:"p-14",p_16:"p-16",p_20:"p-20"},x:{px_0:"px-0",px_1:"px-1",px_2:"px-2",px_3:"px-3",px_4:"px-4",px_5:"px-5",px_6:"px-6",px_7:"px-7",px_8:"px-8",px_9:"px-9",px_10:"px-10",px_11:"px-11",px_12:"px-12",px_14:"px-14",px_16:"px-16",px_20:"px-20"},y:{py_0:"py-0",py_1:"py-1",py_2:"py-2",py_3:"py-3",py_4:"py-4",py_5:"py-5",py_6:"py-6",py_7:"py-7",py_8:"py-8",py_9:"py-9",py_10:"py-10",py_11:"py-11",py_12:"py-12",py_14:"py-14",py_16:"py-16",py_20:"py-20"},top:{pt_0:"pt-0",pt_1:"pt-1",pt_2:"pt-2",pt_3:"pt-3",pt_4:"pt-4",pt_5:"pt-5",pt_6:"pt-6",pt_7:"pt-7",pt_8:"pt-8",pt_9:"pt-9",pt_10:"pt-10",pt_11:"pt-11",pt_12:"pt-12",pt_14:"pt-14",pt_16:"pt-16",pt_20:"pt-20"},right:{pr_0:"pr-0",pr_1:"pr-1",pr_2:"pr-2",pr_3:"pr-3",pr_4:"pr-4",pr_5:"pr-5",pr_6:"pr-6",pr_7:"pr-7",pr_8:"pr-8",pr_9:"pr-9",pr_10:"pr-10",pr_11:"pr-11",pr_12:"pr-12",pr_14:"pr-14",pr_16:"pr-16",pr_20:"pr-20"},bottom:{pb_0:"pb-0",pb_1:"pb-1",pb_2:"pb-2",pb_3:"pb-3",pb_4:"pb-4",pb_5:"pb-5",pb_6:"pb-6",pb_7:"pb-7",pb_8:"pb-8",pb_9:"pb-9",pb_10:"pb-10",pb_11:"pb-11",pb_12:"pb-12",pb_14:"pb-14",pb_16:"pb-16",pb_20:"pb-20"},left:{pl_0:"pl-0",pl_1:"pl-1",pl_2:"pl-2",pl_3:"pl-3",pl_4:"pl-4",pl_5:"pl-5",pl_6:"pl-6",pl_7:"pl-7",pl_8:"pl-8",pl_9:"pl-9",pl_10:"pl-10",pl_11:"pl-11",pl_12:"pl-12",pl_14:"pl-14",pl_16:"pl-16",pl_20:"pl-20"}},extend:{superscript:"sup",subscript:"sub"},textAlign:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},display:{flex:"flex",block:"block",inline:"inline",inline_block:"inline-block"},flexDirection:{row:"flex-row",column:"flex-col",row_reverse:"flex-row-reverse",column_reverse:"flex-col-reverse"},flexWrap:{wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},justifyContent:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},alignItems:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"}},useCssClasses:!0,useButtonPlugin:!1,enableDragResize:!0,simpleTextSettings:!1,enableColumnsPerLine:!0,isContentBox:!1,sendCommandUrl:"http://localhost:8081/answer",commandPlaceholderText:"",enableShortCommands:!0,speechRecognitionLang:"en-US",headlineList:["We create simple and effective designs.","Ultimate Experiences With Story, Emotion, And Purpose.","Build Anything Beautifully","With Less Stuff and More Compassion","We're [CompanyName]. Full stack development with a spark of creativity.","Transforming your digital experience with [CompanyName]. Achieve your online goals with our customized solutions.","Revolutionizing web development with [CompanyName]. Unleash your digital potential with our high-performance solutions.","Creative and Inspiring"],shortCommandList:{undo:["undo"],redo:["undo"],increase:["increase","bigger","larger","enlarge"],decrease:["decrease","smaller"],bold:["bold"],italic:["italic"],underline:["underline"],strikethrough:["strikethrough"],superscript:["superscript"],subscript:["subscript"],uppercase:["uppercase"],lowercase:["lowercase"],capitalize:["capitalize"],clean:["clean"]},similarityThreshold:.65,commandList:{select:["select","select first"],select_next:["select next","select after"],select_previous:["select previous","select before"],select_last:["select last"],select_headline:["select headline"],select_paragraph:["select paragraph"],select_button:["select button"],select_space:["select space"],select_image:["select image"],change_font:["change font","change typography","change style"],fade_in:["fade in"],fade_in_slow:["fade in slow"],fade_in_up:["fade in up"],fade_in_up_slow:["fade in up slow"],slide_up:["slide up"],slide_up_slow:["slide up slow"],zoom_in:["zoom in"],zoom_out:["zoom out"],animate_once:["animate once"],always_animate:["always animate"],remove_animation:["remove animation","clear animation","remove fade in","clear fade in","remove slide up","clear slide up","remove zoom in","clear zoom in","remove zoom out","clear zoom out"],add_bg_color:["add background color"],add_bg_image:["add background image","add background"],change_bg_color:["change background color"],change_bg_image:["change background image","change background"],remove_bg_color:["remove background color","clear background color"],remove_bg:["remove background","remove background image","clear background","clear background image"],increase_content_width:["increase content width","enlarge content width"],decrease_content_width:["decrease content width","reduce content width"],clear_content_width:["clear content width","remove content width","make content full","full width content"],make_content_light:["make content white","make content light","make text white","make text light","change content white","change content light","change text white","change text light","change to white content","change to light content","change to white text","change to light text"],make_content_dark:["make content black","make content dark","make text black","make text dark","change content black","change content dark","change text black","change text dark","change to black content","change to dark content","change to black text","change to dark text"],make_section_height_10:["make section height 10"],make_section_height_15:["make section height 15"],make_section_height_20:["make section height 20"],make_section_height_25:["make section height 25"],make_section_height_30:["make section height 30"],make_section_height_40:["make section height 40"],make_section_height_50:["make section height 50"],make_section_height_60:["make section height 60"],make_section_height_70:["make section height 70"],make_section_height_75:["make section height 75"],make_section_height_80:["make section height 80"],make_section_height_85:["make section height 85"],make_section_height_90:["make section height 90"],make_section_height_100:["make section height 100"],make_section_height_auto:["make section height auto"],suggest_headline:["suggest headline","suggest header","suggest title","write headline","write header","write title"],suggest_tagline:["suggest tagline","write tagline"],add_headline:["add headline","add header","add title"],add_paragraph:["add paragraph"],add_image:["add image"],add_youtube:["add youtube"],add_video:["add video"],remove_video:["remove video","clear video"],add_bg_video:["add background video"],remove_bg_video:["remove background video","clear background video"],add_slider:["add slider"],remove_slider:["remove slider","clear slider"],add_bg_slider:["add background slider"],remove_bg_slider:["remove background slider","clear background slider"],add_audio:["add audio","add music","add mp3"],add_map:["add map","add google map"],add_table:["add table"],add_social:["add social"],add_icon:["add icon"],add_button:["add button"],add_2buttons:["add 2 button","add 2 buttons"],add_space:["add space"],position_before:["above","before"],increase_line_height:["increase line height","increase line spacing","increase text spacing","enlarge line height","enlarge line spacing","enlarge text spacing","bigger line height","bigger line spacing","bigger text spacing","make line height bigger","make line spacing bigger","make text spacing bigger"],increase_default_line_height:["increase default line height","increase default line spacing","increase default text spacing","enlarge default line height","enlarge default line spacing","enlarge default text spacing","bigger default line height","bigger default line spacing","bigger default text spacing","make default line height bigger","make default line spacing bigger","make default text spacing bigger"],decrease_line_height:["decrease line height","decrease line spacing","decrease text spacing","reduce line height","reduce line spacing","reduce text spacing","smaller line height","smaller line spacing","smaller text spacing","make line height smaller","make line spacing smaller","make text spacing smaller"],decrease_default_line_height:["decrease default line height","decrease default line spacing","decrease default text spacing","reduce default line height","reduce default line spacing","reduce default text spacing","smaller default line height","smaller default line spacing","smaller default text spacing","make default line height smaller","make default line spacing smaller","make default text spacing smaller"],increase_font_size:["increase font","increase size","increase font size","increase text","increase size","increase text size","enlarge font","enlarge size","enlarge font size","enlarge text","enlarge size","enlarge text size","text bigger","font bigger","size bigger"],decrease_font_size:["decrease font","decrease size","decrease font size","decrease text","decrease size","decrease text size","reduce font","reduce size","reduce font size","reduce text","reduce size","reduce text size","text smaller","font smaller","size smaller"],increase_default_font_size:["increase default font","increase default size","increase default font size","increase default text","increase default size","increase default text size","enlarge default font","enlarge default size","enlarge default font size","enlarge default text","enlarge default text size","default text bigger","default font bigger","default size bigger","increase default content","increase default content size","enlarge default content","enlarge default content size"],decrease_default_font_size:["decrease default font","decrease default size","decrease default font size","decrease default text","decrease default size","decrease default text size","reduce default font","reduce default size","reduce default font size","reduce default text","reduce default text size","default text smaller","default font smaller","default size smaller","decrease default content","decrease default content size","reduce default content","reduce default content size"],clear_font_size:["clear font size","remove font size","clear text size","remove text size","use default font size"],align_left:["align left","align text left","left aligned"],align_center:["align center","align text center","center aligned"],align_right:["align right","align text right","right aligned"],align_full:["align full","align justify","justify","justify text","justify full"],clear_alignment:["clear alignment","remove alignment","clear text alignment","remove text alignment"],make_content_centered:["make content center"],move_content_left:["move content left","place content left"],move_content_center:["move content center","place content center"],move_content_right:["move content right","place content right"],move_content_top:["move content top","place content top"],move_content_middle:["move content middle","place content middle"],move_content_bottom:["move content bottom","place content bottom"],increase_space:["more space","increase space","enlarge space"],decrease_space:["less space","decrease space","reduce space"],move_up:["move up"],move_down:["move down"],move_row_up:["move row up"],move_row_down:["move row down"],duplicate_row:["duplicate row","copy row"],remove_row:["remove row","delete row"],move_col_left:["move left","move column left"],move_col_right:["move right","move column right"],duplicate_col:["duplicate column","copy column"],remove_col:["remove column","delete column"],move_column_up:["move column up"],move_column_down:["move column down"],move_section_up:["move section up"],move_section_down:["move section down"],move_section_top:["move section top"],move_section_bottom:["move section bottom"],duplicate_section:["duplicate section","copy section"],remove_section:["remove section","delete section"],remove_content:["remove content","remove all text","remove all content","delete content","delete all text","delete all content","clear content","clear all text","clear all content"],add_content:["add content","add text"]},commandInfo:{general:{title:"General",list:["Let's redesign the layout to enhance its visual appeal and user experience.","Rewrite all the text to improve the overall copywriting quality.","Can you come up with another rendition of the content or offer an alternative wording?","Can you suggest a captivating headline for us?","Undo","Redo"]},selection:{title:"Selection",list:["Select the headline","Select the next block","Move up","Move down","Duplicate row","Remove row","Move column left","Move column right","Duplicate column","Remove column"]},element:{title:"Element",list:["Add a paragraph","Add an image","Add a youtube","Add a button","Add two buttons","Add a space","Increase the space","Reduce the space"]},text:{title:"Text Formatting",list:["Increase font size","Clear font size","Align center","Align right","Align justify","Clear alignment","Bold","Italic","Underline","Strikethrough","Uppercase","Clean"]}}};if(this.opts=Object.assign(this,s,t),window.data_basic&&(this.opts.snippetJSON=window.data_basic,""===this.opts.snippetPath&&(this.opts.snippetPath=window._snippets_path)),this.opts.snippetDisplay&&("auto"===this.opts.snippetDisplay?this.opts.snippetsSidebarDisplay="auto":this.opts.snippetsSidebarDisplay="always"),""===this.opts.scriptPath&&(this.opts.scriptPath=this.currentScriptPath()),window._txt&&(this.opts.lang=window._txt),this.settings=this.opts,""!==this.opts.imageSelect?this.opts.imageselect=this.opts.imageSelect:""!==this.opts.imageselect&&(this.opts.imageSelect=this.opts.imageselect),""!==this.opts.fileSelect?this.opts.fileselect=this.opts.fileSelect:""!==this.opts.fileselect&&(this.opts.fileSelect=this.opts.fileselect),""!==this.opts.videoSelect?this.opts.videoselect=this.opts.videoSelect:""!==this.opts.videoselect&&(this.opts.videoSelect=this.opts.videoselect),this.opts.onImageUpload||this.opts.onLargerImageUpload||(this.opts.onImageUpload=this.opts.onMediaUpload),this.opts.imageHandler||this.opts.largerImageHandler||(this.opts.imageHandler=this.opts.mediaHandler),""!==this.opts.imageHandler&&(this.opts.largerImageHandler=this.opts.imageHandler),this.opts.onImageUpload&&(this.opts.onLargerImageUpload=this.opts.onImageUpload),this.opts.emailMode&&(this.useButtonPlugin=!0),!this.useButtonPlugin){let t=this.plugins.filter((t=>"buttoneditor"!==t.name));this.plugins=[...t]}if("bootstrap"===this.opts.framework?(this.opts.row="row",this.opts.cols=["col-md-1","col-md-2","col-md-3","col-md-4","col-md-5","col-md-6","col-md-7","col-md-8","col-md-9","col-md-10","col-md-11","col-md-12"],this.opts.colequal=[],this.opts.colsizes=[]):"tailwind"===this.opts.framework?(this.opts.row="flex flex-col md:flex-row",this.opts.cols=["w-full md:w-1/12 px-4","w-full md:w-2/12 px-4","w-full md:w-3/12 px-4","w-full md:w-4/12 px-4","w-full md:w-5/12 px-4","w-full md:w-6/12 px-4","w-full md:w-7/12 px-4","w-full md:w-8/12 px-4","w-full md:w-9/12 px-4","w-full md:w-10/12 px-4","w-full md:w-11/12 px-4","w-full px-4"],this.opts.colequal=[],this.opts.colsizes=[]):"foundation"===this.opts.framework?(this.opts.row="row",this.opts.cols=["large-1 columns","large-2 columns","large-3 columns","large-4 columns","large-5 columns","large-6 columns","large-7 columns","large-8 columns","large-9 columns","large-10 columns","large-11 columns","large-12 columns"],this.opts.colequal=[],this.opts.colsizes=[]):"material"===this.opts.framework?(this.opts.row="mdl-grid",this.opts.cols=["mdl-cell mdl-cell--1-col","mdl-cell mdl-cell--2-col","mdl-cell mdl-cell--3-col","mdl-cell mdl-cell--4-col","mdl-cell mdl-cell--5-col","mdl-cell mdl-cell--6-col","mdl-cell mdl-cell--7-col","mdl-cell mdl-cell--8-col","mdl-cell mdl-cell--9-col","mdl-cell mdl-cell--10-col","mdl-cell mdl-cell--11-col","mdl-cell mdl-cell--12-col"],this.opts.colequal=[],this.opts.colsizes=[]):"uikit"===this.opts.framework?(this.opts.row="",this.opts.cols=[],this.opts.colequal=[],this.opts.colsizes=[],this.opts.cellFormat='<div class="uk-width-1-1"></div>',this.opts.rowFormat='<div class="uk-grid"></div>'):""!==this.opts.row&&this.opts.cols.length>0||""===this.opts.cellFormat&&""===this.opts.rowFormat&&(this.useDefaultGrid=!0,this.opts.row="row",this.opts.cols=["column twelfth","column eleventh","column tenth","column ninth","column eighth","column seventh","column sixth","column fifth","column fourth","column third","column half","column two-third","column two-fourth","column two-fifth","column two-sixth","column"],this.opts.colequal=[["column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth"],["column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh"],["column tenth","column tenth","column tenth","column tenth","column tenth","column tenth","column tenth","column tenth","column tenth","column tenth"],["column ninth","column ninth","column ninth","column ninth","column ninth","column ninth","column ninth","column ninth","column ninth"],["column eighth","column eighth","column eighth","column eighth","column eighth","column eighth","column eighth","column eighth"],["column seventh","column seventh","column seventh","column seventh","column seventh","column seventh","column seventh"],["column sixth","column sixth","column sixth","column sixth","column sixth","column sixth"],["column fifth","column fifth","column fifth","column fifth","column fifth"],["column fourth","column fourth","column fourth","column fourth"],["column third","column third","column third"],["column half","column half"]],this.opts.colsizes=[[["column third","column third","column third"],["column half","column fourth","column fourth"]],[["column sixth","column two-sixth"],["column fifth","column two-fifth"],["column fourth","column two-fourth"],["column third","column two-third"],["column half","column half"],["column two-third","column third"],["column two-fourth","column fourth"],["column two-fifth","column fifth"],["column two-sixth","column sixth"]]]),this.sortableObjects=[],this.iframe){e=this.iframe.contentWindow;let t=this.iframe.contentDocument||this.iframe.contentWindow.document;i=t,this.iframeDocument=t}else e=window,i=document;this.win=e,this.doc=i,this.doc.body.classList.add("data-editor");const r=new o(this);this.dom=r;const l=new n(this);this.util=l,this.pageTemplate||(this.pageTemplate=l.getPageTemplate(this.framework));const a=new of(this);if(this.responsive=a,this.iframe){let t=i.querySelector(".content-stuff");t||(t=document.createElement("div"),t.className="content-stuff is-ui",t.id="_cbhtml",i.body.appendChild(t)),this.contentStuff=t,this.stuff=new ef(this)}this.isTouchSupport=l.isTouchSupport(),this.isIE=l.detectIE(),this.opts.clearPreferences&&l.clearPreferences(),this.uoTm=null,this.uo=new Ai(this),this.cbDom=r,this.autoclean=!1,this.filesAdded="",this.opts.emailMode&&this.applyStyle("emailmode",".is-builder > div {display: block}");let d=document.querySelector("#_cbhtml");var c;d||(d=this.dom.createElement("div"),d.id="_cbhtml",d.className="is-ui",this.dom.appendChild(document.body,d)),this.builderStuff=d,(c=this).dom.appendHtml(c.builderStuff,'<svg width="0" height="0" style="position:absolute;display:none;">\n <defs>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-left"><path d="M352 115.4L331.3 96 160 256l171.3 160 20.7-19.3L201.5 256z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-right"><path d="M160 115.4L180.7 96 352 256 180.7 416 160 396.7 310.5 256z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-plus-outline"><path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm0 398.7c-105.1 0-190.7-85.5-190.7-190.7S150.9 65.3 256 65.3 446.7 150.9 446.7 256 361.1 446.7 256 446.7z"></path><path d="M264.1 128h-16.8v119.9H128v16.8h119.3V384h16.8V264.7H384v-16.8H264.1z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-image"><path d="M368 224c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48z"></path><path d="M452 64H60c-15.6 0-28 12.7-28 28.3v327.4c0 15.6 12.4 28.3 28 28.3h392c15.6 0 28-12.7 28-28.3V92.3c0-15.6-12.4-28.3-28-28.3zM348.9 261.7c-3-3.5-7.6-6.2-12.8-6.2-5.1 0-8.7 2.4-12.8 5.7L304.6 277c-3.9 2.8-7 4.7-11.5 4.7-4.3 0-8.2-1.6-11-4.1-1-.9-2.8-2.6-4.3-4.1L224 215.3c-4-4.6-10-7.5-16.7-7.5-6.7 0-12.9 3.3-16.8 7.8L64 368.2V107.7c1-6.8 6.3-11.7 13.1-11.7h357.7c6.9 0 12.5 5.1 12.9 12l.3 260.4-99.1-106.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-photos-outline"><path d="M96 128v320h384V128H96zm368 304H112V144h352v288z"></path><path d="M32 64v320h48v-16H48V80h352v32h16V64z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-settings-strong"><path d="M32 376h283.35c6.186-14.112 20.281-24 36.65-24s30.465 9.888 36.65 24H480v32h-91.35c-6.186 14.112-20.281 24-36.65 24s-30.465-9.888-36.65-24H32M32 240h91.35c6.186-14.112 20.281-24 36.65-24s30.465 9.888 36.65 24H480v32H196.65c-6.186 14.112-20.281 24-36.65 24s-30.465-9.888-36.65-24H32M32 104h283.35c6.186-14.112 20.281-24 36.65-24s30.465 9.888 36.65 24H480v32h-91.35c-6.186 14.112-20.281 24-36.65 24s-30.465-9.888-36.65-24H32"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-settings"><path d="M352 104c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16m0-16c-17.645 0-32 14.355-32 32s14.355 32 32 32 32-14.355 32-32-14.355-32-32-32zM352 376c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16m0-16c-17.645 0-32 14.355-32 32s14.355 32 32 32 32-14.355 32-32-14.355-32-32-32zM160 240c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16m0-16c-17.645 0-32 14.355-32 32s14.355 32 32 32 32-14.355 32-32-14.355-32-32-32zM207.32 248H480v16H207.32c.439-2.604.68-5.273.68-8s-.24-5.396-.68-8zM112 256c0 2.727.24 5.396.68 8H32v-16h80.68a47.955 47.955 0 0 0-.68 8zM399.32 384H480v16h-80.68c.439-2.604.68-5.273.68-8s-.24-5.396-.68-8zM304 392c0 2.727.24 5.396.68 8H32v-16h272.68a47.955 47.955 0 0 0-.68 8zM399.32 112H480v16h-80.68c.439-2.604.68-5.273.68-8s-.24-5.396-.68-8zM304.68 112c-.439 2.604-.68 5.273-.68 8s.24 5.396.68 8H32v-16h272.68z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-options"><path d="M32 384h272v32H32zM400 384h80v32h-80zM384 447.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"></path><g><path d="M32 240h80v32H32zM208 240h272v32H208zM192 303.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"></path></g><g><path d="M32 96h272v32H32zM400 96h80v32h-80zM384 159.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"></path></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-list-number"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-1043.45,1024 C-1039.25,946.283 -1023.18,878.648 -995.249,821.096 C-967.313,763.544 -912.806,711.242 -831.728,664.192 L-710.742,594.247 C-656.55,562.74 -618.532,535.854 -596.687,513.589 C-562.24,478.722 -545.016,438.813 -545.016,393.863 C-545.016,341.352 -560.769,299.658 -592.276,268.781 C-623.783,237.904 -665.792,222.466 -718.304,222.466 C-796.02,222.466 -849.792,251.873 -879.619,310.685 C-895.582,342.192 -904.404,385.882 -906.084,441.754 L-1021.4,441.754 C-1020.14,363.197 -1005.65,299.133 -977.92,249.562 C-928.769,162.183 -842.02,118.494 -717.673,118.494 C-614.331,118.494 -538.82,146.43 -491.139,202.302 C-443.459,258.174 -419.619,320.347 -419.619,388.822 C-419.619,461.078 -445.034,522.831 -495.865,574.082 C-525.272,603.909 -577.993,640.037 -654.03,682.466 L-740.358,730.356 C-781.527,753.041 -813.874,774.676 -837.399,795.26 C-879.408,831.808 -905.874,872.347 -916.797,916.877 L-424.03,916.877 L-424.03,1024 L-1043.45,1024 Z " /><path d="M-922.391,-764.384 L-922.391,-851.343 C-840.474,-859.324 -783.341,-872.662 -750.994,-891.356 C-718.647,-910.05 -694.492,-954.265 -678.529,-1024 L-589.049,-1024 L-589.049,-125.425 L-710.035,-125.425 L-710.035,-764.384 L-922.391,-764.384 Z " /><path d="M-198.618,-510.942 L-198.618,-667.156 L1004.57,-667.156 L1004.57,-510.942 L-198.618,-510.942 Z " /><path d="M-198.618,78.1071 L-198.618,-78.1071 L1004.57,-78.1071 L1004.57,78.1071 L-198.618,78.1071 Z " /><path d="M-179.185,649.354 L-179.185,493.14 L1024,493.14 L1024,649.354 L-179.185,649.354 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-list-bullet"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-379.801,-514.33 L-379.801,-670.545 L914.662,-670.545 L914.662,-514.33 L-379.801,-514.33 Z " /><path d="M-379.801,78.1071 L-379.801,-78.1071 L914.662,-78.1071 L914.662,78.1071 L-379.801,78.1071 Z " /><path d="M-379.801,670.545 L-379.801,514.33 L914.662,514.33 L914.662,670.545 L-379.801,670.545 Z " /><path d="M-929.642,-469.441 L-929.642,-715.434 L-669.092,-715.434 L-669.092,-469.441 L-929.642,-469.441 Z " /><path d="M-929.642,127.109 L-929.642,-118.885 L-669.092,-118.885 L-669.092,127.109 L-929.642,127.109 Z " /><path d="M-929.642,715.434 L-929.642,469.441 L-669.092,469.441 L-669.092,715.434 L-929.642,715.434 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-clean">\n <g transform="matrix(1,0,0,1,1024.0,1024.0)">\n <path d="M75.0013,893.849 L-1030.73,900.993 L-32.1518,-880.838 L1009.54,-880.838 L75.0013,893.849 Z " fill="currentColor" />\n <path d="M-30.8571,780.685 L-845.2,787.828 L-508.893,193.749 L305.26,194.963 L-30.8571,780.685 Z " fill="#ffffff" fill-opacity="1.00" />\n </g>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-location"><path d="M256 64c-65.9 0-119.3 53.7-119.3 120 0 114.6 119.3 264 119.3 264s119.3-149.4 119.3-264c0-66.3-53.4-120-119.3-120zm0 178.2c-31.2 0-56.4-25.4-56.4-56.7 0-31.3 25.3-56.8 56.4-56.8 31.2 0 56.4 25.4 56.4 56.8 0 31.3-25.2 56.7-56.4 56.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-film-outline"><path d="M0 360h400v-336h-400v336zM72 40v48h-56v-48h56zM72 104v48h-56v-48h56zM72 168v48h-56v-48h56zM72 232v48h-56v-48h56zM72 296v48h-56v-48h56zM312 40v144h-224v-144h224zM312 200v144h-224v-144h224zM384 40v48h-56v-48h56zM384 104v48h-56v-48h56zM384 168v48h-56v-48\n h56zM384 232v48h-56v-48h56zM384 296v48h-56v-48h56z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-social-youtube-outline"><path d="M265 96c65.3 0 118.7 1.1 168.1 3.3h1.4c23.1 0 42 22 42 49.1v1.1l.1 1.1c2.3 34 3.4 69.3 3.4 104.9.1 35.6-1.1 70.9-3.4 104.9l-.1 1.1v1.1c0 13.8-4.7 26.6-13.4 36.1-7.8 8.6-18 13.4-28.6 13.4h-1.6c-52.9 2.5-108.8 3.8-166.4 3.8h-10.6.1-10.9c-57.8 0-113.7-1.3-166.2-3.7h-1.6c-10.6 0-20.7-4.8-28.5-13.4-8.6-9.5-13.4-22.3-13.4-36.1v-1.1l-.1-1.1c-2.4-34.1-3.5-69.4-3.3-104.7v-.2c-.1-35.3 1-70.5 3.3-104.6l.1-1.1v-1.1c0-27.2 18.8-49.3 41.9-49.3h1.4c49.5-2.3 102.9-3.3 168.2-3.3H265m0-32.2h-18c-57.6 0-114.2.8-169.6 3.3-40.8 0-73.9 36.3-73.9 81.3C1 184.4-.1 220 0 255.7c-.1 35.7.9 71.3 3.4 107 0 45 33.1 81.6 73.9 81.6 54.8 2.6 110.7 3.8 167.8 3.8h21.6c57.1 0 113-1.2 167.9-3.8 40.9 0 74-36.6 74-81.6 2.4-35.7 3.5-71.4 3.4-107.1.1-35.7-1-71.3-3.4-107.1 0-45-33.1-81.1-74-81.1C379.2 64.8 322.7 64 265 64z"></path><path d="M207 353.8V157.4l145 98.2-145 98.2z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-play"><path d="M128 96v320l256-160L128 96z"></path></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-align-full"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-770.727,738.299 L-770.727,582.085 L769.712,582.085 L769.712,738.299 L-770.727,738.299 Z " /><path d="M-770.727,-534.628 L-770.727,-690.842 L769.712,-690.842 L769.712,-534.628 L-770.727,-534.628 Z " /><path d="M-770.219,-115.563 L-770.219,-271.777 L770.219,-271.777 L770.219,-115.563 L-770.219,-115.563 Z " /><path d="M-770.219,303.503 L-770.219,147.288 L770.219,147.288 L770.219,303.503 L-770.219,303.503 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-align-center"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-770.727,738.299 L-770.727,582.085 L769.712,582.085 L769.712,738.299 L-770.727,738.299 Z " /><path d="M-552.286,-107.697 L-552.286,-263.911 L552.286,-263.911 L552.286,-107.697 L-552.286,-107.697 Z " /><path d="M-467.355,319.234 L-467.355,163.02 L466.34,163.02 L466.34,319.234 L-467.355,319.234 Z " /><path d="M-770.727,-534.628 L-770.727,-690.842 L769.712,-690.842 L769.712,-534.628 L-770.727,-534.628 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-align-left"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-770.727,738.299 L-770.727,582.085 L769.712,582.085 L769.712,738.299 L-770.727,738.299 Z " /><path d="M-770.727,-534.628 L-770.727,-690.842 L769.712,-690.842 L769.712,-534.628 L-770.727,-534.628 Z " /><path d="M-770.219,-115.563 L-770.219,-271.777 L482.839,-271.777 L482.839,-115.563 L-770.219,-115.563 Z " /><path d="M-770.219,303.503 L-770.219,147.288 L122.787,147.288 L122.787,303.503 L-770.219,303.503 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-align-right"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-770.727,738.299 L-770.727,582.085 L769.712,582.085 L769.712,738.299 L-770.727,738.299 Z " /><path d="M-770.727,-534.628 L-770.727,-690.842 L769.712,-690.842 L769.712,-534.628 L-770.727,-534.628 Z " /><path d="M-483.346,-118.081 L-483.346,-274.295 L769.712,-274.295 L769.712,-118.081 L-483.346,-118.081 Z " /><path d="M-123.871,303.503 L-123.871,147.288 L769.136,147.288 L769.136,303.503 L-123.871,303.503 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-indent"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-829.04,-514.33 L-829.04,-670.545 L808.959,-670.545 L808.959,-514.33 L-829.04,-514.33 Z " /><path d="M-829.04,670.545 L-829.04,514.33 L808.959,514.33 L808.959,670.545 L-829.04,670.545 Z " /><path d="M-254.279,-110.244 L-254.279,-266.458 L808.959,-266.458 L808.959,-110.244 L-254.279,-110.244 Z " /><path d="M-254.279,266.458 L-254.279,110.244 L808.959,110.244 L808.959,266.458 L-254.279,266.458 Z " /><path d="M-829.04,-195.117 L-490.958,-1.03508e-14 L-829.04,195.117 L-829.04,-195.117 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-outdent"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-829.04,-514.33 L-829.04,-670.545 L808.959,-670.545 L808.959,-514.33 L-829.04,-514.33 Z " /><path d="M-829.04,670.545 L-829.04,514.33 L808.959,514.33 L808.959,670.545 L-829.04,670.545 Z " /><path d="M-829.04,-110.244 L-829.04,-266.458 L234.198,-266.458 L234.198,-110.244 L-829.04,-110.244 Z " /><path d="M-829.04,266.458 L-829.04,110.244 L234.198,110.244 L234.198,266.458 L-829.04,266.458 Z " /><path d="M808.959,-195.117 L470.877,-1.03508e-14 L808.959,195.117 L808.959,-195.117 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-table"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-660.783,660.783 L660.783,660.783 L660.783,-660.783 L-660.783,-660.783 L-660.783,660.783 Z " fill="none" stroke-width="75.82" stroke="currentColor" stroke-linecap="square" stroke-linejoin="miter" /><path d="M-37.9645,698.933 L37.9645,698.933 L37.9645,-698.569 L-37.9645,-698.569 L-37.9645,698.933 Z " fill="currentColor" fill-opacity="1.00" stroke-width="0.25" stroke="currentColor" stroke-linecap="square" stroke-linejoin="miter" /><path d="M-698.933,-37.7825 L-698.933,38.1465 L698.569,38.1465 L698.569,-37.7825 L-698.933,-37.7825 Z " fill="currentColor" fill-opacity="1.00" stroke-width="0.25" stroke="currentColor" stroke-linecap="square" stroke-linejoin="miter" /></g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-happy"><path d="M256 48C140.563 48 48 141.6 48 256s92.563 208 208 208 208-93.6 208-208S370.401 48 256 48zm0 374.4c-91.518 0-166.404-74.883-166.404-166.4 0-91.518 74.887-166.4 166.404-166.4S422.404 164.482 422.404 256 347.518 422.4 256 422.4zm72.8-187.2c17.683 0 31.201-13.518 31.201-31.2s-13.519-31.2-31.201-31.2c-17.682 0-31.2 13.518-31.2 31.2s13.518 31.2 31.2 31.2zm-145.6 0c17.682 0 31.2-13.518 31.2-31.2s-13.519-31.2-31.2-31.2c-17.683 0-31.201 13.518-31.201 31.2s13.519 31.2 31.201 31.2zM256 370.4c48.883 0 89.436-30.164 106.081-72.801H149.919C166.564 340.236 207.117 370.4 256 370.4z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-create"><path d="M64 368v80h80l235.727-235.729-79.999-79.998L64 368zm377.602-217.602c8.531-8.531 8.531-21.334 0-29.865l-50.135-50.135c-8.531-8.531-21.334-8.531-29.865 0l-39.468 39.469 79.999 79.998 39.469-39.467z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-minus-empty"><path d="M384 265H128v-17h256v17z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-eye"><path d="M256 128c-81.9 0-145.7 48.8-224 128 67.4 67.7 124 128 224 128 99.9 0 173.4-76.4 224-126.6C428.2 198.6 354.8 128 256 128zm0 219.3c-49.4 0-89.6-41-89.6-91.3 0-50.4 40.2-91.3 89.6-91.3s89.6 41 89.6 91.3c0 50.4-40.2 91.3-89.6 91.3z"></path><path d="M256 224c0-7.9 2.9-15.1 7.6-20.7-2.5-.4-5-.6-7.6-.6-28.8 0-52.3 23.9-52.3 53.3s23.5 53.3 52.3 53.3 52.3-23.9 52.3-53.3c0-2.3-.2-4.6-.4-6.9-5.5 4.3-12.3 6.9-19.8 6.9-17.8 0-32.1-14.3-32.1-32z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-reply"><path d="M448 400s-36.8-208-224-208v-80L64 256l160 134.4v-92.3c101.6 0 171 8.9 224 101.9z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-folder-outline">\n <path d="M457 96H215c-2.791 0-4.271-.585-6.094-2.408l-22.501-22.501-.168-.162C181.365 66.333 177.361 64 169 64H57c-13.785 0-25 10.317-25 23v336c0 13.317 11.683 25 25 25h400c12.683 0 23-11.215 23-25V119c0-13.327-9.673-23-23-23zM57 80h112c3.497 0 3.737.189 6.175 2.488l22.417 22.418c4.84 4.84 10.372 7.094 17.408 7.094h242c4.448 0 7 2.552 7 7v42.376a23.885 23.885 0 0 0-8-1.376H56c-2.805 0-5.496.488-8 1.376V87c0-4.323 4.672-7 9-7zm407 343c0 4.328-2.677 9-7 9H57c-4.458 0-9-4.542-9-9V184c0-4.411 3.589-8 8-8h400c4.411 0 8 3.589 8 8v239z"/>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-cloud-outline">\n <path d="M399.3 232.8c0-1.2.2-2.4.2-3.6 0-64.3-52.8-117.2-116.8-117.2-46.1 0-85.8 27.9-104.4 67-8.1-4.1-17.1-6.4-26.8-6.4-29.6 0-54.1 23.7-58.9 52C57.4 236.8 32 268.8 32 308.4c0 49.8 40.1 91.6 89.6 91.6H398c45 0 82-38.9 82-84.3 0-45.6-35.4-82.8-80.7-82.9zm-1.8 150.8l-3.2.4H122.4c-40.9 0-74.2-34.9-74.2-76.1 0-31.9 20.2-58.4 50.2-68.8l8.4-3 1.5-8.8c3.6-21.6 22.1-39.3 43.9-39.3 6.9 0 13.7 1.6 19.9 4.8l13.5 6.8 6.5-13.7c16.6-34.9 52.1-58.2 90.4-58.2 55.3 0 100.9 44.1 100.9 99.7 0 13.3-.2 20.3-.2 20.3l15.2.1c36.7.5 65.6 30.5 65.6 67.4 0 36.9-29.8 68.2-66.5 68.4z"/>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-wrench"><path d="M461.9 114.9l-56.5 56.7-55.1-10-9.9-55.1 56.5-56.7c-12.7-12.7-30.8-18.5-44.2-17.8-13.5.7-42.3 8.3-64.6 32-21.6 22.8-44.3 65.3-24.2 112.5 2.4 5.7 5.1 13.2-2.9 21.2-8.1 8-215 202.8-215 202.8-19.4 16.7-18 47.6-.1 65.6 18.2 17.9 48.9 19 65.6-.3 0 0 193.2-205.8 202.7-215.1 8.5-8.3 16.1-5.5 21.2-2.9 35.6 18.4 86.3 2.4 112.6-23.9 26.3-26.3 31.1-51.7 31.9-64.7.8-12.9-3.7-30-18-44.3zM91.3 443.2c-6.3 6.2-16.5 6.2-22.7 0-6.2-6.3-6.2-16.5 0-22.7 6.3-6.2 16.5-6.2 22.7 0 6.2 6.3 6.2 16.5 0 22.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-more"><path d="M113.7 304C86.2 304 64 282.6 64 256c0-26.5 22.2-48 49.7-48 27.6 0 49.8 21.5 49.8 48 0 26.6-22.2 48-49.8 48zM256 304c-27.5 0-49.8-21.4-49.8-48 0-26.5 22.3-48 49.8-48 27.5 0 49.7 21.5 49.7 48 0 26.6-22.2 48-49.7 48zM398.2 304c-27.5 0-49.8-21.4-49.8-48 0-26.5 22.2-48 49.8-48 27.5 0 49.8 21.5 49.8 48 0 26.6-22.2 48-49.8 48z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-code-working"><circle cx="184.166" cy="256.166" r="24"></circle><circle cx="256.166" cy="256.166" r="24"></circle><circle cx="328.166" cy="256.166" r="24"></circle><g><path d="M168 392a23.929 23.929 0 0 1-16.971-7.029l-112-112c-9.373-9.373-9.373-24.569 0-33.941l112-112c9.373-9.372 24.568-9.372 33.941 0 9.371 9.372 9.371 24.568 0 33.941L89.941 256l95.029 95.029c9.371 9.372 9.371 24.568 0 33.941A23.925 23.925 0 0 1 168 392zM344 392a23.929 23.929 0 0 0 16.971-7.029l112-112c9.373-9.373 9.373-24.569 0-33.941l-112-112c-9.373-9.372-24.568-9.372-33.941 0-9.371 9.372-9.371 24.568 0 33.941L422.059 256l-95.029 95.029c-9.371 9.372-9.371 24.568 0 33.941A23.925 23.925 0 0 0 344 392z"></path></g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-gear"><path d="M416.349 256.046c-.001-21.013 13.143-38.948 31.651-46.062a196.302 196.302 0 0 0-23.664-57.139 49.423 49.423 0 0 1-20.082 4.254c-12.621 0-25.238-4.811-34.871-14.442-14.863-14.863-18.248-36.846-10.18-54.97A196.274 196.274 0 0 0 302.074 64C294.971 82.529 277.027 95.69 256 95.69c-21.025 0-38.969-13.161-46.073-31.69a196.243 196.243 0 0 0-57.128 23.688c8.068 18.122 4.683 40.104-10.181 54.97-9.631 9.631-22.25 14.443-34.871 14.443a49.429 49.429 0 0 1-20.083-4.255A196.273 196.273 0 0 0 64 209.984c18.509 7.112 31.652 25.049 31.652 46.062 0 21.008-13.132 38.936-31.63 46.054a196.318 196.318 0 0 0 23.692 57.128 49.428 49.428 0 0 1 20.032-4.232c12.622 0 25.239 4.812 34.871 14.443 14.841 14.841 18.239 36.781 10.215 54.889a196.257 196.257 0 0 0 57.13 23.673c7.128-18.479 25.046-31.596 46.038-31.596 20.992 0 38.91 13.115 46.037 31.596a196.234 196.234 0 0 0 57.132-23.675c-8.023-18.106-4.626-40.046 10.216-54.887 9.629-9.632 22.248-14.444 34.868-14.444 6.836 0 13.67 1.411 20.033 4.233a196.318 196.318 0 0 0 23.692-57.128c-18.498-7.119-31.629-25.048-31.629-46.054zM256.9 335.9c-44.3 0-80-35.9-80-80 0-44.101 35.7-80 80-80 44.299 0 80 35.899 80 80 0 44.1-35.701 80-80 80z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-arrow-expand"><path d="M274 209.7l63.9-63.8L288 96h128v128l-49.9-49.9-63.8 63.9zM274 302.3l63.9 63.8L288 416h128V288l-49.9 49.9-63.8-63.9zM238 302.3l-63.9 63.8L224 416H96V288l49.9 49.9 63.8-63.9zM238 209.7l-63.9-63.8L224 96H96v128l49.9-49.9 63.8 63.9z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-expand"><path d="M396.795 396.8H320V448h128V320h-51.205zM396.8 115.205V192H448V64H320v51.205zM115.205 115.2H192V64H64v128h51.205zM115.2 396.795V320H64v128h128v-51.205z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-arrow-move"><path d="M480 256l-96-96v76H276V128h76l-96-96-96 96h76v108H128v-76l-96 96 96 96v-76h108v108h-76l96 96 96-96h-76.2l-.4-108.5 108.6.3V352z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-drag"><path d="M0 144h512v32H0zM0 240h512v32H0zM0 336h512v32H0z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-link"><path d="M74.6 256c0-38.3 31.1-69.4 69.4-69.4h88V144h-88c-61.8 0-112 50.2-112 112s50.2 112 112 112h88v-42.6h-88c-38.3 0-69.4-31.1-69.4-69.4zm85.4 22h192v-44H160v44zm208-134h-88v42.6h88c38.3 0 69.4 31.1 69.4 69.4s-31.1 69.4-69.4 69.4h-88V368h88c61.8 0 112-50.2 112-112s-50.2-112-112-112z"/></symbol>\n <symbol viewBox="0 0 512 512" id="ion-contrast"><path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm135.8 359.8C355.5 428 307 448 256 448V64c51 0 99.5 20 135.8 56.2C428 156.5 448 204.7 448 256c0 51.3-20 99.5-56.2 135.8z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-plus-empty"><path d="M384 265H264v119h-17V265H128v-17h119V128h17v120h120v17z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-thin-up"><path d="M349.7 189.8c-3.1 3.1-8 3-11.3 0L264 123.4V408c0 4.4-3.6 8-8 8s-8-3.6-8-8V123.4l-74.4 66.3c-3.4 2.9-8.1 3.2-11.2.1-3.1-3.1-3.3-8.5-.1-11.4 0 0 87-79.2 88-80s2.8-2.4 5.7-2.4 4.9 1.6 5.7 2.4 88 80 88 80c1.5 1.5 2.3 3.6 2.3 5.7s-.8 4.1-2.3 5.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-thin-down"><path d="M349.7 322.2c-3.1-3.1-8-3-11.3 0L264 388.6V104c0-4.4-3.6-8-8-8s-8 3.6-8 8v284.6l-74.4-66.3c-3.4-2.9-8.1-3.2-11.2-.1-3.1 3.1-3.3 8.5-.1 11.4 0 0 87 79.2 88 80s2.8 2.4 5.7 2.4 4.9-1.6 5.7-2.4 88-80 88-80c1.5-1.5 2.3-3.6 2.3-5.7s-.8-4.1-2.3-5.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-thin-left"><path d="M189.8 349.7c3.1-3.1 3-8 0-11.3L123.4 264H408c4.4 0 8-3.6 8-8s-3.6-8-8-8H123.4l66.3-74.4c2.9-3.4 3.2-8.1.1-11.2-3.1-3.1-8.5-3.3-11.4-.1 0 0-79.2 87-80 88S96 253.1 96 256s1.6 4.9 2.4 5.7 80 88 80 88c1.5 1.5 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-thin-right"><path d="M322.2 349.7c-3.1-3.1-3-8 0-11.3l66.4-74.4H104c-4.4 0-8-3.6-8-8s3.6-8 8-8h284.6l-66.3-74.4c-2.9-3.4-3.2-8.1-.1-11.2 3.1-3.1 8.5-3.3 11.4-.1 0 0 79.2 87 80 88s2.4 2.8 2.4 5.7-1.6 4.9-2.4 5.7-80 88-80 88c-1.5 1.5-3.6 2.3-5.7 2.3s-4.1-.8-5.7-2.3z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-close-empty"><path d="M340.2 160l-84.4 84.3-84-83.9-11.8 11.8 84 83.8-84 83.9 11.8 11.7 84-83.8 84.4 84.2 11.8-11.7-84.4-84.3 84.4-84.2z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-more-vertical"><path d="M296 136c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40zm0 240c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40zm0-120c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-quote"><path d="M192 64c-40.646 0-72.483 11.229-94.627 33.373C75.229 119.517 64 151.354 64 192v256h160V192h-96c0-23.056 4.922-39.666 14.627-49.373C152.334 132.922 168.944 128 192 128M416 64c-40.646 0-72.483 11.229-94.627 33.373C299.229 119.517 288 151.354 288 192v256h160V192h-96c0-23.056 4.922-39.666 14.627-49.373C376.334 132.922 392.944 128 416 128"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-code"><path d="M168 392a23.929 23.929 0 0 1-16.971-7.029l-112-112c-9.373-9.373-9.373-24.569 0-33.941l112-112c9.373-9.372 24.568-9.372 33.941 0 9.371 9.372 9.371 24.568 0 33.941L89.941 256l95.029 95.029c9.371 9.373 9.371 24.568 0 33.941A23.925 23.925 0 0 1 168 392zM344 392a23.929 23.929 0 0 0 16.971-7.029l112-112c9.373-9.373 9.373-24.569 0-33.941l-112-112c-9.373-9.372-24.568-9.372-33.941 0-9.371 9.372-9.371 24.568 0 33.941L422.059 256l-95.029 95.029c-9.371 9.373-9.371 24.568 0 33.941A23.925 23.925 0 0 0 344 392z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-camera"><path d="M430.4 147h-67.5l-40.4-40.8s-.2-.2-.3-.2l-.2-.2c-6-6-14.1-9.8-23.3-9.8h-84c-9.8 0-18.5 4.2-24.6 10.9v.1l-39.5 40h-69C63 147 48 161.6 48 180.2v202.1c0 18.6 15 33.7 33.6 33.7h348.8c18.5 0 33.6-15.1 33.6-33.7V180.2c0-18.6-15.1-33.2-33.6-33.2zM256 365.5c-50.9 0-92.4-41.6-92.4-92.6 0-51.1 41.5-92.6 92.4-92.6 51 0 92.4 41.5 92.4 92.6 0 51-41.4 92.6-92.4 92.6zm168.1-165c-7.7 0-14-6.3-14-14.1s6.3-14.1 14-14.1 14 6.3 14 14.1-6.3 14.1-14 14.1z"></path><path d="M256 202.9c-38.6 0-69.8 31.3-69.8 70 0 38.6 31.2 70 69.8 70 38.5 0 69.8-31.3 69.8-70s-31.3-70-69.8-70z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-move"><path d="M475.9 246.2l-79.4-79.4c-5.4-5.4-14.2-5.4-19.6 0l-.2.2c-5.4 5.4-5.4 14.2 0 19.6l54.9 54.9-161.8.5.5-161.8 54.9 54.9c5.4 5.4 14.2 5.4 19.6 0l.2-.2c5.4-5.4 5.4-14.2 0-19.6l-79.4-79.4c-5.4-5.4-14.2-5.4-19.6 0l-79.4 79.4c-5.4 5.4-5.4 14.2 0 19.6l.2.2c5.4 5.4 14.2 5.4 19.6 0l54.9-54.9.5 161.8-161.8-.5 54.9-54.9c5.4-5.4 5.4-14.2 0-19.6l-.2-.2c-5.4-5.4-14.2-5.4-19.6 0l-79.4 79.4c-5.4 5.4-5.4 14.2 0 19.6l79.4 79.4c5.4 5.4 14.2 5.4 19.6 0l.2-.2c5.4-5.4 5.4-14.2 0-19.6L80 270.5l161.8-.5-.5 161.8-54.9-54.9c-5.4-5.4-14.2-5.4-19.6 0l-.2.2c-5.4 5.4-5.4 14.2 0 19.6l79.4 79.4c5.4 5.4 14.2 5.4 19.6 0l79.4-79.4c5.4-5.4 5.4-14.2 0-19.6l-.2-.2c-5.4-5.4-14.2-5.4-19.6 0l-54.9 54.9-.5-161.8 161.8.5-54.9 54.9c-5.4 5.4-5.4 14.2 0 19.6l.2.2c5.4 5.4 14.2 5.4 19.6 0l79.4-79.4c5.5-5.4 5.5-14.2 0-19.6z"/></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-ok">\n <rect x="0" y="0" width="2048.00" height="2048.00" fill="none" />\n <g transform="matrix(1,0,0,1,1024.0,1024.0)">\n <path d="M330.323,493.628 L330.323,398.406 L-330.323,398.406 L-330.323,493.628 L330.323,493.628 Z " fill="currentColor" fill-opacity="1.00" />\n <path d="M230.718,468.568 L328.59,468.568 L328.59,-599.718 L230.718,-599.718 L230.718,468.568 Z " fill="currentColor" fill-opacity="1.00" />\n <path d="M-300.714,376.053 L-373.748,449.088 L-68.5805,754.255 L4.45387,681.221 L-300.714,376.053 Z " fill="currentColor" fill-opacity="1.00" />\n <path d="M-9.9476e-14,216.241 L-73.0344,143.207 L-378.202,448.375 L-305.168,521.409 L-9.9476e-14,216.241 Z " fill="currentColor" fill-opacity="1.00" />\n </g>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-grid"><path d="M160 153.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM288 153.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM416 153.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5z"></path><g><path d="M160 281.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM288 281.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM416 281.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5z"></path></g><g><path d="M160 409.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM288 409.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM416 409.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5z"></path></g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-gear-b"><path d="M448 294.4v-76.8h-42.8c-3.4-14.4-8.9-28-16.1-40.5l29.8-29.7-54.3-54.3-29.1 29.1c-12.6-7.7-26.4-13.5-41.1-17.3V64h-76.8v40.9c-14.7 3.8-28.5 9.7-41.1 17.3l-29.1-29.1-54.3 54.3 29.8 29.7c-7.2 12.5-12.6 26.1-16.1 40.5H64v76.8h44.1c3.8 13.7 9.5 26.6 16.7 38.6l-31.7 31.7 54.3 54.3 32.3-32.3c11.7 6.8 24.5 11.9 37.9 15.4v46h76.8v-46c13.5-3.5 26.2-8.6 37.9-15.4l32.3 32.3 54.3-54.3-31.6-31.7c7.2-11.9 12.9-24.8 16.7-38.6h44zm-192 15.4c-29.7 0-53.7-24.1-53.7-53.8s24-53.8 53.7-53.8 53.8 24.1 53.8 53.8-24.1 53.8-53.8 53.8z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-grid-view-outline"><path d="M448 192v-16H336V64h-16v112H192V64h-16v112H64v16h112v128H64v16h112v112h16V336h128v112h16V336h112v-16H336V192h112zM320 320H192V192h128v128z"></path></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-increase"><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M852.574,595.004 L852.574,507.837 L-852.574,507.837 L-852.574,595.004 L852.574,595.004 Z " /><path d="M852.574,224.232 L852.574,137.066 L-852.574,137.066 L-852.574,224.232 L852.574,224.232 Z " /><path d="M852.574,-134.971 L852.574,-222.138 L-852.574,-222.138 L-852.574,-134.971 L852.574,-134.971 Z " /><path d="M852.574,-505.743 L852.574,-592.909 L-852.574,-592.909 L-852.574,-505.743 L852.574,-505.743 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-decrease"><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M509.832,595.004 L509.832,507.837 L-509.832,507.837 L-509.832,595.004 L509.832,595.004 Z " /><path d="M509.832,224.232 L509.832,137.066 L-509.832,137.066 L-509.832,224.232 L509.832,224.232 Z " /><path d="M509.832,-136.947 L509.832,-224.113 L-509.832,-224.113 L-509.832,-136.947 L509.832,-136.947 Z " /><path d="M509.832,-505.743 L509.832,-592.909 L-509.832,-592.909 L-509.832,-505.743 L509.832,-505.743 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-strike">\n <g transform="matrix(1,0,0,1,1024.0,1024.0)">\n <path d="M298.298,-653.766 C292.151,-624.873 284.005,-605.663 273.862,-596.135 C263.719,-586.607 250.656,-581.842 234.673,-581.842 C220.535,-581.842 196.253,-589.526 161.828,-604.895 C87.4454,-637.475 17.0588,-653.766 -49.3321,-653.766 C-155.68,-653.766 -243.28,-621.339 -312.129,-556.485 C-380.979,-491.631 -415.404,-414.328 -415.404,-324.578 C-415.404,-272.94 -403.724,-225.606 -380.364,-182.575 C-357.005,-139.544 -322.733,-100.201 -277.551,-64.5467 C-232.368,-28.8923 -156.295,18.903 -49.3321,78.8392 C57.631,138.775 123.1,177.964 147.074,196.406 C182.729,223.455 209.008,252.654 225.913,284.005 C242.819,315.357 251.271,346.401 251.271,377.137 C251.271,432.463 228.987,480.412 184.419,520.984 C139.851,561.556 79.1465,581.842 2.30524,581.842 C-64.0856,581.842 -125.098,567.089 -180.731,537.582 C-236.364,508.075 -277.704,471.037 -304.753,426.469 C-331.801,381.901 -353.316,314.742 -369.299,224.991 L-403.417,224.991 L-403.417,653.766 L-369.299,653.766 C-364.996,624.873 -358.388,605.817 -349.474,596.596 C-340.561,587.375 -328.42,582.764 -313.051,582.764 C-297.068,582.764 -259.109,592.446 -199.173,611.81 C-139.236,631.174 -99.74,642.393 -80.6834,645.467 C-48.7174,651 -14.5998,653.766 21.6692,653.766 C137.239,653.766 231.753,619.495 305.214,550.952 C378.674,482.41 415.404,400.804 415.404,306.136 C415.404,256.343 403.878,208.701 380.826,163.211 C357.773,117.721 324.885,78.2244 282.161,44.7216 C239.438,11.2188 159.676,-36.8838 42.8774,-99.5863 C-100.355,-176.428 -191.027,-237.901 -229.141,-284.005 C-255.574,-315.357 -268.791,-350.089 -268.791,-388.202 C-268.791,-437.995 -247.89,-482.41 -206.088,-521.445 C-164.287,-560.48 -111.42,-579.998 -47.4879,-579.998 C9.06727,-579.998 63.7783,-565.552 116.645,-536.66 C169.512,-507.767 210.238,-468.732 238.823,-419.554 C267.408,-370.375 287.233,-304.292 298.298,-221.303 L332.415,-221.303 L332.415,-653.766 L298.298,-653.766 Z " fill="currentColor" fill-opacity="1.00" /><path d="M-530.954,-41.4477 L-530.954,41.4477 L530.954,41.4477 L530.954,-41.4477 L-530.954,-41.4477 Z " fill="currentColor" fill-opacity="1.00" /></g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-undo"><path d="M447.9 368.2c0-16.8 3.6-83.1-48.7-135.7-35.2-35.4-80.3-53.4-143.3-56.2V96L64 224l192 128v-79.8c40 1.1 62.4 9.1 86.7 20 30.9 13.8 55.3 44 75.8 76.6l19.2 31.2H448c0-10.1-.1-22.9-.1-31.8z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-redo"><path d="M64 400h10.3l19.2-31.2c20.5-32.7 44.9-62.8 75.8-76.6 24.4-10.9 46.7-18.9 86.7-20V352l192-128L256 96v80.3c-63 2.8-108.1 20.7-143.3 56.2C60.4 285.2 64 351.5 64 368.2c.1 8.9 0 21.7 0 31.8z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-arrow-dropdown"><path d="M128 192l128 128 128-128z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-social-twitter"><path d="M492 109.5c-17.4 7.7-36 12.9-55.6 15.3 20-12 35.4-31 42.6-53.6-18.7 11.1-39.4 19.2-61.5 23.5C399.8 75.8 374.6 64 346.8 64c-53.5 0-96.8 43.4-96.8 96.9 0 7.6.8 15 2.5 22.1-80.5-4-151.9-42.6-199.6-101.3-8.3 14.3-13.1 31-13.1 48.7 0 33.6 17.2 63.3 43.2 80.7-16-.4-31-4.8-44-12.1v1.2c0 47 33.4 86.1 77.7 95-8.1 2.2-16.7 3.4-25.5 3.4-6.2 0-12.3-.6-18.2-1.8 12.3 38.5 48.1 66.5 90.5 67.3-33.1 26-74.9 41.5-120.3 41.5-7.8 0-15.5-.5-23.1-1.4C62.8 432 113.7 448 168.3 448 346.6 448 444 300.3 444 172.2c0-4.2-.1-8.4-.3-12.5C462.6 146 479 129 492 109.5z"></path></symbol>\n <symbol viewBox="0 0 24 24" id="icon-zoom-in" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <circle cx="10" cy="10" r="7"></circle>\n <line x1="7" y1="10" x2="13" y2="10"></line>\n <line x1="10" y1="7" x2="10" y2="13"></line>\n <line x1="21" y1="21" x2="15" y2="15"></line>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-contract"><path d="M64 371.2h76.795V448H192V320H64v51.2zm76.795-230.4H64V192h128V64h-51.205v76.8zM320 448h51.2v-76.8H448V320H320v128zm51.2-307.2V64H320v128h128v-51.2h-76.8z"></path></symbol>\n \n <symbol viewBox="0 0 24 24" id="icon-lock-off" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <line x1="3" y1="3" x2="21" y2="21" />\n <path d="M19 19a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h4m4 0h2a2 2 0 0 1 2 2v2" />\n <circle cx="12" cy="16" r="1" />\n <path d="M8 11v-3m.712 -3.278a4 4 0 0 1 7.288 2.278v4" />\n </symbol>\n <symbol viewBox="0 0 24 24" id="icon-lock" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <rect x="5" y="11" width="14" height="10" rx="2" />\n <circle cx="12" cy="16" r="1" />\n <path d="M8 11v-4a4 4 0 0 1 8 0v4" />\n </symbol>\n <symbol viewBox="0 0 24 24" id="icon-code" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z"/>\n <polyline points="7 8 3 12 7 16" />\n <polyline points="17 8 21 12 17 16" />\n <line x1="14" y1="4" x2="10" y2="20" />\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-cloud-upload-outline">\n <path d="M193.3 260.4l-11.6-11.6 74.5-74.3 74.5 74.3-11.7 11.6-54.6-54.6v241.8h-16.5V205.8z"/>\n <path d="M399.3 183.6c0-1.2.2-2.4.2-3.6 0-64.3-52.8-116.4-116.8-116.4-46.1 0-85.8 27.1-104.4 66.3-8.1-4.1-17.1-6.4-26.8-6.4-29.6 0-54.1 23.6-58.9 52C57.4 187.6 32 222.2 32 261.8c0 49.7 40.1 90.2 89.6 90.2H213v-16h-90.6c-40.9 0-74.2-33.5-74.2-74.6 0-31.8 20.2-61.2 50.2-71.6l8.4-2.9 1.5-8.8c3.6-21.6 22.1-39.3 43.9-39.3 6.9 0 13.7 1.6 19.9 4.8l13.5 6.8 6.5-13.7c16.6-34.9 52.1-57.4 90.4-57.4 55.3 0 100.9 43.3 100.9 98.9 0 13.3-.2 20.3-.2 20.3l15.2.1c36.6.5 65.6 33.4 65.6 70.3 0 36.8-29.8 66.9-66.5 67.1H297v16h101c45 0 82-37.3 82-82.8s-35.5-85.5-80.7-85.6z"/>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-volume-medium">\n <path d="M270 407.7V104.4L175.3 192H71v128h104.3zm56.3-52.1c20.5-27.8 32.8-62.3 32.8-99.6 0-37.4-12.3-71.8-32.8-99.6l-20.4 15.3c17.4 23.6 27.8 52.7 27.8 84.3 0 31.6-10.4 60.7-27.8 84.3l20.4 15.3zm66.5 46c30-40.7 48-91 48-145.6s-18-104.9-48-145.6l-20.4 15.3c26.9 36.4 43 81.4 43 130.3 0 48.9-16.1 93.8-43 130.3l20.4 15.3z"/>\n </symbol>\n\n <symbol id="icon-list-search" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M15 15m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"></path>\n <path d="M18.5 18.5l2.5 2.5"></path>\n <path d="M4 6h16"></path>\n <path d="M4 12h4"></path>\n <path d="M4 18h4"></path>\n </symbol>\n <symbol id="icon-folder" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2"></path>\n </symbol>\n <symbol id="icon-folder-media" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2"></path>\n\n <path d="M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5"></path>\n <path d="M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4"></path>\n <path d="M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598"></path>\n </symbol>\n\n <symbol id="icon-reload" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1.002 7.935 1.007 9.425 4.747"></path>\n <path d="M20 4v5h-5"></path>\n </symbol>\n <symbol id="icon-devices" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="13" y="8" width="8" height="12" rx="1"></rect>\n <path d="M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"></path>\n <line x1="16" y1="9" x2="18" y2="9"></line>\n </symbol> \n <symbol id="icon-device-desktop" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="3" y="4" width="18" height="12" rx="1"></rect>\n <line x1="7" y1="20" x2="17" y2="20"></line>\n <line x1="9" y1="16" x2="9" y2="20"></line>\n <line x1="15" y1="16" x2="15" y2="20"></line>\n </symbol>\n <symbol id="icon-device-mobile" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="6" y="3" width="12" height="18" rx="2"></rect>\n <line x1="11" y1="4" x2="13" y2="4"></line>\n <line x1="12" y1="17" x2="12" y2="17.01"></line>\n </symbol>\n <symbol id="icon-device-laptop" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <line x1="3" y1="19" x2="21" y2="19"></line>\n <rect x="5" y="6" width="14" height="10" rx="1"></rect>\n </symbol>\n <symbol id="icon-device-tablet" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="5" y="3" width="14" height="18" rx="1"></rect>\n <circle cx="12" cy="17" r="1"></circle>\n </symbol>\n\n <symbol id="icon-eye" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0m13 0c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7"></path>\n </symbol>\n <symbol id="icon-eye-off" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9.88 9.878a3 3 0 1 0 4.243 4.242m.581 -3.42a3.012 3.012 0 0 0 -1.45 -1.426m-3.877 -3.913a9.469 9.469 0 0 1 2.623 -.361c4 0 7.333 2.333 10 7c-.778 1.362 -1.613 2.524 -2.504 3.489m-2.138 1.859c-1.629 1.101 -3.415 1.652 -5.358 1.652c-4 0 -7.333 -2.333 -10 -7c1.374 -2.404 2.924 -4.189 4.652 -5.354m-3.652 -3.646l18 18"></path>\n </symbol>\n\n <symbol id="icon-download" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"></path>\n <path d="M7 11l5 5l5 -5"></path>\n <path d="M12 4l0 12"></path>\n </symbol>\n\n <symbol id="icon-message-search" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M8 9h8"></path>\n <path d="M8 13h5"></path>\n <path d="M12 21l-.5 -.5l-2.5 -2.5h-3a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v4.5"></path>\n <path d="M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"></path>\n <path d="M20.2 20.2l1.8 1.8"></path>\n </symbol>\n \n </defs>\n </svg>'),this.preferences=new Hm(this),(t=>{const e=t.util,i=t.builderStuff,n=new Ti(t),o=new Ei(t),s=t.dom;let r="";t.opts.rowHtmlEditor&&(r=`<button tabindex="-1" title="${e.out("HTML")}" class="row-html">\n <svg class="is-icon-flex" style="margin-right:-3px;width:12px;height:12px;"><use xlink:href="#ion-ios-arrow-left"></use></svg><svg class="is-icon-flex" style="margin-left:-2px;width:12px;height:12px;"><use xlink:href="#ion-ios-arrow-right"></use></svg>\n </button>`);let l="";t.opts.columnHtmlEditor&&(l=`<button tabindex="-1" title="${e.out("HTML")}" class="cell-html">\n <svg class="is-icon-flex" style="margin-right:-3px;width:12px;height:12px;"><use xlink:href="#ion-ios-arrow-left"></use></svg><svg class="is-icon-flex" style="margin-left:-2px;width:12px;height:12px;"><use xlink:href="#ion-ios-arrow-right"></use></svg>\n </button>`);const a=`<div class="is-modal is-modal-content grideditor" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-bar is-draggable">\n <button class="is-modal-close" tabindex="-1" title="${e.out("Close")}">&#10005;</button>\n </div>\n <div style="padding:13px 0 5px 18px;font-size:10px;text-transform:uppercase;letter-spacing:1px;">${e.out("Row")}</div>\n <div style="display:flex;flex-flow:wrap;">\n <button tabindex="-1" title="${e.out("Add")}" class="row-add"><svg class="is-icon-flex" style="width:19px;height:19px;"><use xlink:href="#ion-ios-plus-empty"></use></svg></button>\n <button tabindex="-1" title="${e.out("Duplicate")}" class="row-duplicate" style="display: block;"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-photos-outline"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Up")}" class="row-up" style="display: block;"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-up"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Down")}" class="row-down" style="display: block;"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-down"></use></svg></button>\n ${r}\n <button tabindex="-1" title="${e.out("Delete")}" class="row-remove"><svg class="is-icon-flex" style="width:20px;height:20px;"><use xlink:href="#ion-ios-close-empty"></use></svg></button>\n </div>\n <div style="padding:8px 0 5px 18px;font-size:11px;text-transform:uppercase;letter-spacing:1px;">${e.out("Column")}</div>\n <div style="display:flex;flex-flow:wrap;">\n <button tabindex="-1" title="${e.out("Add")}" class="cell-add"><svg class="is-icon-flex" style="width:19px;height:19px;"><use xlink:href="#ion-ios-plus-empty"></use></svg></button>\n <button tabindex="-1" title="${e.out("Duplicate")}" class="cell-duplicate"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-photos-outline"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Up")}" class="cell-up"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-up"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Down")}" class="cell-down"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-down"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Left")}" class="cell-prev"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-left"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Right")}" class="cell-next"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-right"></use></svg></button>\n <button tabindex="-1" title="${e.out("Increase")}" class="cell-increase"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#icon-increase"></use></svg></button>\n <button tabindex="-1" title="${e.out("Decrease")}" class="cell-decrease"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#icon-decrease"></use></svg></button>\n ${l}\n <button tabindex="-1" title="${e.out("Delete")}" class="cell-remove"><svg class="is-icon-flex" style="width:20px;height:20px;"><use xlink:href="#ion-ios-close-empty"></use></svg></button>\n <button tabindex="-1" title="${e.out("Lock")}" class="cell-locking"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#icon-lock"></use></svg></button>\n <button tabindex="-1" title="${e.out("Column Settings")}" class="cell-settings"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-gear"></use></svg></button>\n \n <div class="is-separator">\n <button tabindex="-1" title="${e.out("Outline")}" class="grid-outline"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-grid-view-outline"></use></svg></button>\n \x3c!--<button tabindex="-1" title="${e.out("Element Tool")}" class="cell-elmtool"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-gear"></use></svg></button>--\x3e\n </div>\n </div>\n </div>`;s.appendHtml(i,a),new Pi({selector:".is-draggable"});const d=document.querySelector(".grideditor");document.addEventListener("click",(t=>{var e=(t=t||window.event).target||t.srcElement;if(s.hasClass(d,"active")){let t=s.parentsHasClass(e,"is-builder"),i=s.parentsHasClass(e,"grideditor"),n=s.parentsHasClass(e,"is-modal"),o=s.parentsHasClass(e,"is-pop"),r=s.parentsHasClass(e,"rte-grideditor")||s.hasClass(e,"rte-grideditor");if(t||i||n||o||r)return void(d.style.display="");d.style.display="none"}}),!1);let c=d.querySelector(".is-modal-close");s.addEventListener(c,"click",(()=>{s.removeClass(d,"active");const e=t.doc.querySelectorAll(t.opts.container);Array.prototype.forEach.call(e,(t=>{t.removeAttribute("grideditor")}))}));const u=d.querySelector(".grid-outline");s.addEventListener(u,"click",(()=>{const e=t.doc.querySelectorAll(t.opts.container);Array.prototype.forEach.call(e,(t=>{t.hasAttribute("gridoutline")?(t.removeAttribute("gridoutline"),s.removeClass(u,"on")):(t.setAttribute("gridoutline",""),s.addClass(u,"on"))}))}));const h=qi(t),p=d.querySelector(".cell-add");s.addEventListener(p,"click",(()=>{h.querySelector(".is-pop-tabs").style.display="flex";const t=p.getBoundingClientRect().top+window.pageYOffset,i=p.getBoundingClientRect().left+window.pageXOffset;e.showPop(h,!1,p);const n=h.offsetWidth;h.style.top=t+"px",h.style.left=i-n-8+"px",s.removeClass(h,"arrow-bottom"),s.removeClass(h,"arrow-left"),s.removeClass(h,"arrow-top"),s.removeClass(h,"center"),s.removeClass(h,"left"),s.addClass(h,"arrow-right"),s.addClass(h,"right"),"left"===h.querySelector(".active").getAttribute("data-value")?h.setAttribute("data-mode","cell-left"):h.setAttribute("data-mode","cell-right")})),c=d.querySelector(".cell-prev"),s.addEventListener(c,"click",(()=>{n.moveColumnPrevious(),e.clearControls()})),c=d.querySelector(".cell-next"),s.addEventListener(c,"click",(()=>{n.moveColumnNext(),e.clearControls()})),c=d.querySelector(".cell-increase"),s.addEventListener(c,"click",(()=>{n.increaseColumn(),e.clearControls()})),c=d.querySelector(".cell-decrease"),s.addEventListener(c,"click",(()=>{n.decreaseColumn(),e.clearControls()})),c=d.querySelector(".cell-up"),s.addEventListener(c,"click",(()=>{n.moveColumnUp(),e.clearControls()})),c=d.querySelector(".cell-down"),s.addEventListener(c,"click",(()=>{n.moveColumnDown(),e.clearControls()})),c=d.querySelector(".cell-duplicate"),s.addEventListener(c,"click",(()=>{n.duplicateColumn(),e.clearControls()})),c=d.querySelector(".cell-remove"),s.addEventListener(c,"click",(()=>{n.removeColumn(),e.clearControls()}));const g=d.querySelector(".cell-html");g&&s.addEventListener(g,"click",(()=>{e.cellSelected()&&o.view("cell",!1,g)}));const m=d.querySelector(".cell-settings");m&&s.addEventListener(m,"click",(()=>{const i=e.cellSelected();if(!i)return;t.colTool.readCellStyles(i),e.saveSelection();const n=document.querySelector(".is-modal.columnsettings");e.showModal(n,!1,(()=>{"flex"===t.builderStuff.querySelector(".is-rte-tool").style.display&&(e.restoreSelection(),m.removeAttribute("data-focus"),m.focus())})),m.setAttribute("data-focus",!0)}));const f=d.querySelector(".cell-locking");f&&s.addEventListener(f,"click",(i=>{let n=e.cellSelected();n&&(n.hasAttribute("data-noedit")?(n.removeAttribute("data-noedit"),n.contentEditable=!0,s.removeClass(f,"on")):(n.setAttribute("data-noedit",""),n.contentEditable=!1,s.addClass(f,"on"),e.clearActiveElement(!0)),t.colTool.showHideLockIndicator(n),t.element.applyBehavior(n),i.preventDefault())}));const b=d.querySelector(".row-add");s.addEventListener(b,"click",(()=>{h.querySelector(".is-pop-tabs").style.display="none";const t=b.getBoundingClientRect().top+window.pageYOffset,i=b.getBoundingClientRect().left+window.pageXOffset;e.showPop(h,!1,b);const n=h.offsetWidth;h.style.top=t+"px",h.style.left=i-n-8+"px",s.removeClass(h,"arrow-bottom"),s.removeClass(h,"arrow-left"),s.removeClass(h,"arrow-top"),s.removeClass(h,"center"),s.removeClass(h,"left"),s.addClass(h,"arrow-right"),s.addClass(h,"right"),h.setAttribute("data-mode","row")})),c=d.querySelector(".row-up"),s.addEventListener(c,"click",(()=>{n.moveRowUp(),e.clearControls()})),c=d.querySelector(".row-down"),s.addEventListener(c,"click",(()=>{n.moveRowDown(),e.clearControls()})),c=d.querySelector(".row-duplicate"),s.addEventListener(c,"click",(()=>{n.duplicateRow(),e.clearControls()})),c=d.querySelector(".row-remove"),s.addEventListener(c,"click",(()=>{n.removeRow(),e.clearControls()}));const v=d.querySelector(".row-html");v&&s.addEventListener(v,"click",(()=>{e.cellSelected()&&o.view("row",!1,v)}))})(this),this.preview=!1;const u=this.doc.querySelectorAll(this.opts.container);Array.prototype.forEach.call(u,(t=>{this.dom.hasClass(t,"preview")&&(this.preview=!0)})),this.preview||this.opts.snippetJSON.snippets.length>0&&Vo(this),this.colTool=new am(this),this._rowTool=new rm(this),this.livePreview=new sf(this),this.mediaPicker=new nf(this);var h=this.opts.onChange;if(this.opts.onChange=()=>{var t=h.apply(this,arguments);return this.activeCol&&this.util.repositionColumnTool(),this.elmTool.repositionElementTool(!0),this.element.image.imageTool.style.display="",this.element.module.moduleTool.style.display="",this.colTool.lockIndicator.style.display="",t},this.elmTool=new Pm(this),this.element=new Pg(this),this.rte=new jm(this),this.tooltip=new Vm(this),this.lightbox=new Xm(this),this.preview||this.applyBehavior(),!this.preview)if(this.opts.plugins.length>0)this.loadPlugins();else if(void 0===this.opts.scriptPath&&""===this.opts.pluginPath);else if(!this.opts.disableConfig){let t=this.opts.scriptPath+"config.js";""!==this.opts.pluginPath&&(t=this.opts.pluginPath+"config.js"),this.loadScript(t).then((()=>{this.opts.plugins.length>0&&this.loadPlugins()}),(()=>{console.log("Fail to load config")}))}this.tabs=new Qm,this.colorPicker=new Fg({lang:this.opts.lang,colors:this.opts.colors}),this.colorClassPicker=new Um({lang:this.opts.lang}),this.ShortcutInfo=new Zm(this),this.opts.isContentBox||null!==localStorage.getItem("_dictation")&&localStorage.removeItem("_dictation"),this.dictation=new cf({},this),this.lib=new rf(this),this.similarity=new pf(this),this.iframe&&(this.win.addEventListener("scroll",this.doWindowScroll=()=>{this.util.hidePops()}),this.win.addEventListener("resize",this.doWindowResize=()=>{this.util.clearActiveCell(),this.util.clearControls()})),document.addEventListener("click",this.doDocumentClick=t=>{let e,i=(t=t||window.event).target||t.srcElement;if(!i)return;i.parentNode&&(e=this.dom.hasClass(i.parentNode,"is-builder"));let n=this.dom.hasClass(i,"is-builder"),o=!1,s=!1,r=!1,a=!1,d=!1,c=!1,u=!1,h=!1,p=!1,g=!1,m=!1,f=!1,b=!1,v=!1,y=!1,x=i;for(;x&&x.tagName&&"BODY"!==x.tagName&&"HTML"!==x.tagName;){if(this.dom.hasClass(x,"is-builder")&&(o=!0),this.dom.hasClass(x,"is-subblock")&&(v=!0),this.dom.hasClass(x,"is-modal")&&(s=!0),(this.dom.hasClass(x,"is-side")||this.dom.hasClass(x,"is-sidebar"))&&(r=!0),this.dom.hasClass(x,"is-pop")&&(a=!0),this.dom.hasClass(x,"is-tool")&&(d=!0),(this.dom.hasClass(x,"is-rte-tool")||this.dom.hasClass(x,"is-elementrte-tool"))&&(c=!0),this.dom.hasClass(x,"is-rte-pop")&&(u=!0),this.dom.hasClass(x,"row-add-initial")&&(h=!0),(this.dom.hasClass(x,"sl-wrapper")||this.dom.hasClass(x,"sl-overlay")||this.dom.hasClass(x,"sl-close"))&&(p=!0),(this.dom.hasClass(x,"is-selectbox")||this.dom.hasClass(x,"is-selectbox-options"))&&(g=!0),this.opts.specialElementClasses)for(let t=0;t<this.opts.specialElementClasses.length;t++)this.dom.hasClass(x,this.opts.specialElementClasses[t])&&(y=!0);"divImageTool"===x.id&&(m=!0),"divImageResizer"===x.id&&(f=!0),this.preserveSelection&&(b=!0),x=x.parentNode}if(!g){let t=document.querySelectorAll(".is-selectbox-options");Array.prototype.forEach.call(t,(t=>{t.style.display="none"}))}let w=!1,S=document.querySelector("#divImageResizer");if(S&&"1"===S.getAttribute("data-resized")&&(w=!0),!w){if(!(s||p||m||f||"img"===i.tagName.toLowerCase())){document.querySelector("#divImageTool").style.display="";let t=document.querySelector("#divImageResizer");t.style.display="none",t.style.top="-10px",t.style.left="-10px",t.style.width="1px",t.style.height="1px",this.moveable&&(this.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none")}if(!(o||v||s||r||a||d||c||u||h||p||b||y)||e&&!h||n){if(!this.dom.getSelected()){document.querySelector(".is-modal.active:not(.is-modal-content)")||(l.clearActiveCell(),l.clearControls(),"auto"!==this.toolbarDisplay&&this.rte.showDefaultToolbar())}this.element.hyperlink.buttonEditor.hide()}if(this.activeLinkButton||this.activeButton||i.closest(".buttoneditor")||i.closest(".link-button-edit")||i.closest(".is-modal")||this.element.hyperlink.buttonEditor.hide(),!a&&!this.dom.parentsHasId(i,"_cbhtml")){const t=document.querySelectorAll(".is-pop");Array.prototype.forEach.call(t,(t=>{this.dom.parentsHasId(t,"_cbhtml")||(t.style.display="")}))}}}),this.iframe&&this.doc.addEventListener("click",this.doDocumentClick),this.doc.addEventListener("mousedown",this.doDocumentMousedown=t=>{var e=(t=t||window.event).target||t.srcElement;this.dom.parentsHasClass(e,"row-handle")&&l.clearControls()}),document.addEventListener("keydown",this.doDocumentKeydown=t=>{90===t.which&&(t.ctrlKey||t.metaKey)&&(t.shiftKey?this.uo.doRedo():t.altKey||this.uo.doUndo()),89===t.which&&t.ctrlKey&&(t.altKey||this.uo.doRedo());(t.ctrlKey||t.metaKey)&&191===t.which&&this.ShortcutInfo.open()}),this.iframe&&this.doc.addEventListener("keydown",this.doDocumentKeydown),document.body.addEventListener("mscontrolselect",(function(t){t.preventDefault()})),window._cb=this,window.applyLargerImage=this.applyLargerImage.bind(this),window.returnUrl=this.returnUrl.bind(this),window.selectFile=this.selectFile.bind(this),window.selectImage=this.selectImage.bind(this),window.selectVideo=this.selectVideo.bind(this),window.selectAsset=this.selectAsset.bind(this),window.assetType=this.assetType.bind(this),window.hideModal=this.hideModal.bind(this),setTimeout((()=>{(null!=localStorage.getItem("_livepreview")||this.opts.livePreviewOpen)&&this.openPreview()}),300)}static run(t={}){return new gf(t)}setZoom(){if(""!==this.opts.page){const t=this.doc.querySelector(this.opts.page);t.style.transform=`scale(${this.opts.zoom})`,this.setZoomOnControl(t)}else{this.doc.querySelectorAll(this.opts.container).forEach((t=>{let e=!1;t.style.transform||(e=!0),e&&(t.style.transition="none"),t.style.transform=`scale(${this.opts.zoom})`,e&&setTimeout((()=>{t.style.transition=""}),300),this.setZoomOnControl(t)}))}}backwardCompatible(){this.builderStuff.querySelector('style[data-rel="css-new"]')||this.builderStuff.insertAdjacentHTML("afterbegin",'\n <style data-rel="css-new">\n \n .row-active .is-col-tool {\n display: flex;\n }\n .is-builder[rowoutline] .row-active .is-col-tool {\n display: none;\n }\n .is-builder[hidecolumntool] .row-active .is-col-tool {\n display: none;\n }\n\n .is-tool.is-col-tool {\n flex-direction: row;\n margin-top: 0px;\n margin-left: -1px;\n }\n .is-tool.is-col-tool button {\n width: 25px;\n height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .is-tool.is-col-tool .cell-add {\n background: #0fcc52;\n }\n .is-tool.is-col-tool .cell-more {\n background: rgba(216, 200, 6, 0.9);\n }\n .is-tool.is-col-tool .cell-remove {\n background: rgba(255, 85, 4, 0.9);\n }\n .is-tool.is-col-tool svg {\n width: 23px;\n height: 23px;\n fill: #fff !important;\n }\n .is-tool.is-col-tool .cell-more svg {\n width: 14px;\n height: 14px;\n }\n\n\n .is-builder[gray] .is-tool.is-col-tool {\n background: rgba(243, 243, 243, 0.9);\n flex-direction: row;\n top:-3px;\n margin-top: 0px;\n margin-left: -1px;\n }\n .is-builder[gray] .is-tool.is-col-tool button {\n width: 27px;\n height: 27px;\n }\n .is-builder[gray] .is-tool.is-col-tool .cell-add {\n background: transparent;\n }\n .is-builder[gray] .is-tool.is-col-tool .cell-more {\n background: transparent;\n }\n .is-builder[gray] .is-tool.is-col-tool .cell-remove {\n background: transparent;\n }\n .is-builder[gray] .is-tool.is-col-tool svg {\n width: 18px;\n height: 18px;\n fill: #000 !important;\n }\n .is-builder[gray] .is-tool.is-col-tool .cell-more svg {\n width: 12px;\n height: 12px;\n }\n\n\n .is-col-tool svg {\n display: initial !important;\n }\n \n \n </style>\n ')}setZoomOnControl(t){t.querySelectorAll(".is-row-tool").forEach((t=>{t.style.transform=`scale(${1/this.opts.zoom})`,t.style.transformOrigin="top"}));t.querySelectorAll(".is-col-tool").forEach((t=>{t.style.transform=`scale(${1/this.opts.zoom})`,t.style.transformOrigin="top left",t.style.marginTop=-27/this.opts.zoom+"px"}));t.querySelectorAll(".is-rowadd-tool button").forEach((t=>{t.style.transform=`scale(${1/this.opts.zoom})`}))}setZoomOnArea(){if(""!==this.opts.page){this.doc.querySelector(this.opts.page).style.transform=`scale(${this.opts.zoom})`}else{this.doc.querySelectorAll(this.opts.container).forEach((t=>{let e=!1;t.style.transform||(e=!0),e&&(t.style.transition="none"),t.style.transform=`scale(${this.opts.zoom})`,e&&setTimeout((()=>{t.style.transition=""}),300)}))}}applyBehavior(){null!==localStorage.getItem("_zoom")&&(this.opts.zoom=localStorage.getItem("_zoom")),this.rte.rteZoomSlider.value=100*this.opts.zoom;const t=this.doc.querySelectorAll(this.opts.container);Array.prototype.forEach.call(t,(t=>{this.applyBehaviorOn(t),this.contentReformatOn(t)})),this.opts.onRender(),this.setZoomOnArea()}contentReformatOn(t){this.opts.useCssClasses&&this.dom.contentReformat(t,this.opts.cssClasses)}applyBehaviorOn(t){const e=this.util;if(this.opts.absolutePath){let e=t.querySelectorAll("a");Array.prototype.forEach.call(e,(t=>{let e=t.href;t.setAttribute("href",e)}));let i=t.querySelectorAll("img");Array.prototype.forEach.call(i,(t=>{let e=t.src;t.setAttribute("src",e)}))}this.dom.addClass(t,"is-builder"),this.preferences.initBuilder(t);if(this.dom.elementChildren(t).forEach((t=>{if(this.dom.hasClass(t,"row-add-initial"))return;(t.style.marginLeft||t.style.marginRight)&&(t.style.border="none"),this._rowTool.render(t);new lm(this).render(t);this.dom.elementChildren(t).forEach((t=>{if(this.dom.hasClass(t,"is-row-tool")||this.dom.hasClass(t,"is-col-tool")||this.dom.hasClass(t,"is-rowadd-tool"))return;"readonly"===t.getAttribute("data-mode")&&(t.setAttribute("data-noedit",""),t.removeAttribute("data-mode")),"readonly-protected"===t.getAttribute("data-mode")&&(t.setAttribute("data-protected",""),t.removeAttribute("data-mode"));let e=!1;t.hasAttribute("data-noedit")&&(e=!0);let i=!1;t.hasAttribute("data-protected")&&(i=!0);let n=!1;if(t.hasAttribute("data-html")&&(n=!0),!n&&!e&&!i){const e=t.innerText.trim();(t.querySelectorAll("p,h1,h2,h3,h4,h5,h6,table,ul,ol,pre,blockquote,code,figcaption,label,legend,button,a,span").length>0||""!==e)&&(t.contentEditable=!0)}this.element.applyBehavior(t),t.getAttribute("data-click")||(t.addEventListener("click",this.handleCellClick.bind(this,t)),t.addEventListener("keydown",this.handleCellKeypress.bind(this)),t.addEventListener("keydown",this.handleCellKeydown.bind(this,t)),t.addEventListener("keyup",this.handleCellKeyup.bind(this,t)),t.addEventListener("paste",this.handleCellPaste.bind(this)),t.setAttribute("data-click",!0))}))})),!t.getAttribute("data-sort")&&!t.hasAttribute("nogrid")){let i=new Co(t,{scroll:!0,group:"shared",animation:300,handle:".row-handle",sort:!0,onChoose:()=>{let t;if(""!==this.opts.page){const e=this.doc.querySelector(this.opts.page);t=this.dom.getScale(e)}else{const e=this.doc.querySelector(".is-builder");t=this.dom.getScale(e)}const e=`\n <style id="css-scale">\n .sortable-drag::before {\n transform: scale(${t});\n }\n </style>\n `;if(this.iframe){const t=this.contentStuff.querySelector("#css-scale");t&&t.parentNode.removeChild(t),this.contentStuff.insertAdjacentHTML("afterbegin",e)}else{const t=this.builderStuff.querySelector("#css-scale");t&&t.parentNode.removeChild(t),this.builderStuff.insertAdjacentHTML("afterbegin",e)}this.sectionDropSetup()},onStart:()=>{this.uo.saveForUndo(),this.elmTool.hide()},onEnd:()=>{this.util.checkEmpty(),this.sortableOnPage&&this.sortableOnPage.destroy()},onAdd:i=>{var n=i.item;if(n.getAttribute("data-id")){let i=n.getAttribute("data-id");const g=this.opts.snippetJSON.snippets.filter((t=>t.id+""===i&&t));var o,s=g[0].html,r=g[0].noedit;o=-1===s.indexOf('"row'),this.opts.emailMode&&(o=!1);var l=this.opts.row,a=this.opts.cols;if(""!==l&&12===a.length&&(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=s.replace(new RegExp("row clearfix","g"),"row")).replace(new RegExp('"row',"g"),'"'+l)).replace(new RegExp("column full","g"),a[11])).replace(new RegExp("column half","g"),a[5])).replace(new RegExp("column third","g"),a[3])).replace(new RegExp("column fourth","g"),a[2])).replace(new RegExp("column fifth","g"),a[1])).replace(new RegExp("column sixth","g"),a[1])).replace(new RegExp("column two-third","g"),a[7])).replace(new RegExp("column two-fourth","g"),a[8])).replace(new RegExp("column two-fifth","g"),a[9])).replace(new RegExp("column two-sixth","g"),a[9])),s=s.replace(/{id}/g,e.makeId()),this.opts.onAdd&&(s=this.opts.onAdd(s)),this.opts.snippetPathReplace.length>0&&""!==this.opts.snippetPathReplace[0]){var d=new RegExp(this.opts.snippetPathReplace[0],"g");s=s.replace(d,this.opts.snippetPathReplace[1]);var c=this.opts.snippetPathReplace[0].replace(/\//g,"%2F"),u=this.opts.snippetPathReplace[1].replace(/\//g,"%2F"),h=new RegExp(c,"g");s=s.replace(h,u)}if(o)s=`<div class="${this.opts.row}"><div class="${this.opts.cols[this.opts.cols.length-1]}"${r?" data-noedit":""}>${s}</div></div>`,n.removeAttribute("draggable"),this.dom.removeClass(n,"snippet-item"),n.outerHTML=s;else{let t=this.dom.createElement("div");t.innerHTML=s;let i=t.querySelectorAll("[data-html]");Array.prototype.forEach.call(i,(t=>{s=(s=(s=decodeURIComponent(t.getAttribute("data-html"))).replace(/{id}/g,e.makeId())).replace(/<script>/g,""+(this.nonce?`<script nonce="${this.nonce}">`:"<script>"));for(var i=1;i<=20;i++)s=s.replace("[%HTML"+i+"%]",void 0===t.getAttribute("data-html-"+i)?"":decodeURIComponent(t.getAttribute("data-html-"+i)));t.innerHTML=s})),s=t.innerHTML,n.removeAttribute("draggable"),this.dom.removeClass(n,"snippet-item"),n.innerHTML="";var p=document.createRange();p.setStart(n,0),n.appendChild(p.createContextualFragment(s)),n.outerHTML=n.innerHTML}this.applyBehaviorOn(t),this.opts.onChange(),this.opts.onRender(),this.elmTool.hide()}}});this.sortableObjects.push(i),t.setAttribute("data-sort",!0)}const i=t.querySelectorAll('a[role="button"]');Array.prototype.forEach.call(i,(e=>{e.parentNode&&e.parentNode.parentNode&&e.parentNode.parentNode.parentNode===t&&(e.outerHTML=`\n <div style="white-space: nowrap;">\n ${e.outerHTML}\n </div>\n `)}));const n=t.querySelectorAll(".is-subblock");Array.prototype.forEach.call(n,(t=>{t.contentEditable=!0})),this.util.checkEmptyOn(t),this.setZoomOnControl(t)}html(t){const e=this.util,i=new Ei(this);if(t);else{const i=this.doc.querySelectorAll(this.opts.container);if(i.length>1){const n=e.cellSelected();t=n?n.parentNode.parentNode:i[0]}else t=i[0];if(""!==this.opts.page){const e=this.doc.querySelector(this.opts.page);e&&(t=e)}}this.cleanHtmlFormatting=!0;let n=i.readHtml(t);return this.cleanHtmlFormatting=!1,n}viewHtmlNormal(){new Ei(this).viewHtmlExternal()}readHtml(t,e,i,n){return new Ei(this).readHtml(t,e,i,n)}fromViewToActual(t){return new Ei(this).fromViewToActual(t)}colorpicker(t,e){return new Fg({onPick:t,color:e,colors:this.opts.colors,animateModal:this.opts.animateModal,elementToAnimate:this.opts.container,lang:this.opts.lang})}gradientpicker(){return new em({gradientcolors:this.opts.gradientcolors,colors:this.opts.colors,animateModal:this.opts.animateModal,elementToAnimate:this.opts.container,lang:this.opts.lang})}simpleColorPicker(t,e){return this.colorClassPicker.open(t,e)}destroy(){if(this.doc.body.classList.remove("data-editor"),document.removeEventListener("click",this.doDocumentClick,!1),document.removeEventListener("keydown",this.doDocumentKeydown,!1),document.removeEventListener("mousedown",this.doDocumentMousedown,!1),document.removeEventListener("click",this.doRteClick,!1),this.doc.removeEventListener("click",this.doHideSnippetHandler,!1),this.iframe&&(this.doc.removeEventListener("click",this.doDocumentClick,!1),this.doc.removeEventListener("keydown",this.doDocumentKeydown,!1),this.doc.removeEventListener("mousedown",this.doDocumentMousedown,!1),this.doc.removeEventListener("click",this.doRteClick,!1),this.win.removeEventListener("scroll",this.doWindowScroll,!1),this.win.removeEventListener("resize",this.doWindowResize,!1)),this.util.clearControls(),!this.util.builderStuff())return;const t=new Ei(this);if(""!==this.opts.page){const t=this.doc.querySelector(this.opts.page);t&&(t.style.transform="")}else{this.doc.querySelectorAll(this.opts.container).forEach((t=>{t.style.transform=""}))}const e=this.doc.querySelectorAll(this.opts.container);Array.prototype.forEach.call(e,(e=>{let i=t.readHtml(e,!1),n=this.doc.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(i))})),Array.prototype.forEach.call(e,(t=>{t.removeAttribute("data-sort"),this.dom.removeClass(t,"is-builder")})),Array.prototype.forEach.call(this.sortableObjects,(t=>{try{t.destroy()}catch(t){}})),this.moveable.destroy(),this.builderStuff.parentNode.removeChild(this.builderStuff),this.builderStuff=null,this.iframe&&(this.contentStuff.parentNode.removeChild(this.contentStuff),this.contentStuff=null)}saveImages(t,e,i){new Wm({page:this.opts.page,container:this.opts.container,customval:this.opts.customval,handler:t,onComplete:e,onBase64Upload:i||null},this).save()}clearFont(){this.rte.clearFont()}applyFont(t,e,i){this.rte.applyFont(t,e,i)}setFont(t,e,i,n){this.rte.setFont(t,e,i,n)}addIcon(t){this.rte.addIcon(t)}applyLargerImage(t){let e=document.querySelectorAll(".form-upload-larger");Array.prototype.forEach.call(e,(e=>{this.dom.hasClass(e,"please-wait")&&(this.dom.removeClass(e,"please-wait"),e.parentNode.parentNode.querySelector('input[type="text"]').value=t,e.parentNode.parentNode.querySelector('input[type="file"]').value="")}))}returnUrl(t){let e=document.querySelectorAll(".form-upload-larger");Array.prototype.forEach.call(e,(e=>{this.dom.hasClass(e,"please-wait")&&(this.dom.removeClass(e,"please-wait"),e.parentNode.parentNode.querySelector('input[type="text"]').value=t,e.parentNode.parentNode.querySelector('input[type="file"]').value="")})),this.opts.assetRefresh=!0}openMediaPicker(t,e="media",i,n){this.mediaPicker.openMediaPicker(t,e,i,n)}openImagePicker(t,e,i){this.colTool.openImagePicker(t,e,i)}openImageAdjust(t,e,i){2===this.opts.imageAdjust?this.colTool.openImageAdjust2(t,e):this.colTool.openImageAdjust(t,e,i)}selectFile(t){this.selectAsset(t)}selectImage(t){this.selectAsset(t)}selectVideo(t){this.selectAsset(t)}selectAsset(t){let e=t.split(".").pop().split("?")[0].split("#")[0];e=e.toLowerCase();let i=!1;if("all"===this.targetAssetType?i=!0:"media"===this.targetAssetType?"jpg"===e||"jpeg"===e||"png"===e||"gif"===e||"webm"===e||"webp"===e||"mp4"===e?i=!0:alert(this.util.out("Please select an image or video file.")):"image"===this.targetAssetType?"jpg"===e||"jpeg"===e||"png"===e||"gif"===e||"webm"===e||"webp"===e?i=!0:alert(this.util.out("Please select an image file.")):"video"===this.targetAssetType?"mp4"===e?i=!0:alert(this.util.out("Please select an mp4 file.")):"audio"===this.targetAssetType&&("mp3"===e?i=!0:alert(this.util.out("Please select an mp3 file."))),i){this.targetInput.value=t,"inpCellLinkSource"===this.targetInput.id&&this.targetCallback();let e=document.querySelector(".is-modal.videoselect.active");e&&this.hideModal(e),e=document.querySelector(".is-modal.imageselect.active"),e&&this.hideModal(e),e=document.querySelector(".is-modal.fileselect.active"),e&&this.hideModal(e),e=document.querySelector(".is-modal.audioselect.active"),e&&this.hideModal(e),e=document.querySelector(".is-modal.mediaselect.active"),e&&this.hideModal(e),e=document.querySelector(".is-modal.otherselect.active"),e&&this.hideModal(e)}}assetType(){return this.targetAssetType}renderSelectAsset(t,e,i){const n="inp_"+this.util.makeId();t.insertAdjacentHTML("afterend",`<input type="hidden" id="${n}">`);const o=t.parentNode.querySelector(`#${n}`);t.addEventListener("click",(()=>{this.openAsset(o,e,t)}));let s=t=>this.util.out(t);const r=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(o,"value",{get:r.get,set:function(t){let n=t.substring(t.lastIndexOf("/")+1).split(".").pop();n=n.toLowerCase();let o=!1;"all"===e?o=!0:"media"===e?"jpg"===n||"jpeg"===n||"png"===n||"gif"===n||"webm"===n||"webp"===n||"mp4"===n?o=!0:alert(s("Please select an image or video file.")):"video"===e?"mp4"===n?o=!0:alert(s("Please select an mp4 file.")):"image"===e?"jpg"===n||"jpeg"===n||"png"===n||"gif"===n||"webm"===n||"webp"===n?o=!0:alert(s("Please select an image file.")):"audio"===e&&("mp3"===n?o=!0:alert(s("Please select an mp3 file."))),o&&i&&i(t),r.set.call(this,t)}})}openOther(t,e,i){if(this.opts.onOtherSelectClick)this.opts.onOtherSelectClick({targetInput:t,theTrigger:i});else{let i,n=this.builderStuff.querySelector(".is-modal.otherselect");i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.otherSelect),this.util.showModal(n),this.targetInput=t,this.targetCallback=null,this.targetAssetType=e}}openAsset(t,e,i){if("media"===e&&(this.opts.onMediaSelectClick||this.opts.onImageSelectClick))this.opts.onMediaSelectClick?this.opts.onMediaSelectClick({targetInput:t,theTrigger:i}):this.opts.onImageSelectClick({targetInput:t,theTrigger:i});else if("video"===e&&this.opts.onVideoSelectClick)this.opts.onVideoSelectClick({targetInput:t,theTrigger:i});else if("image"===e&&this.opts.onImageSelectClick)this.opts.onImageSelectClick({targetInput:t,theTrigger:i});else if("audio"===e&&this.opts.onAudioSelectClick)this.opts.onAudioSelectClick({targetInput:t,theTrigger:i});else if("all"===e&&this.opts.onFileSelectClick)this.opts.onFileSelectClick({targetInput:t,theTrigger:i});else{let i,n;"media"===e?(n=this.builderStuff.querySelector(".is-modal.mediaselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(this.opts.mediaSelect?i.src=this.opts.mediaSelect:this.opts.imageSelect&&(i.src=this.opts.imageSelect))):"video"===e?(n=this.builderStuff.querySelector(".is-modal.videoselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.videoSelect)):"image"===e?(n=this.builderStuff.querySelector(".is-modal.imageselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.imageSelect)):"audio"===e?(n=this.builderStuff.querySelector(".is-modal.audioselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.audioSelect)):"all"===e&&(n=this.builderStuff.querySelector(".is-modal.fileselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.fileSelect)),this.util.showModal(n),this.targetInput=t,this.targetCallback=null,this.targetAssetType=e}}moveRowUp(){this._rowTool.moveRowUp()}moveRowDown(){this._rowTool.moveRowDown()}duplicateRow(){this._rowTool.duplicateRow()}removeRow(){this._rowTool.removeRow()}moveColumnLeft(){this.colTool.moveColumnLeft()}moveColumnRight(){this.colTool.moveColumnRight()}duplicateColumn(){this.colTool.duplicateColumn()}removeColumn(){this.colTool.removeColumn()}moveColumnUp(){this.colTool.moveColumnUp()}moveColumnDown(){this.colTool.moveColumnDown()}formatText(t){this.rte.formatText(t)}formatTextNonToggle(t){this.rte.formatTextNonToggle(t)}LightenDarkenColor(t,e){return this.util.LightenDarkenColor(t,e)}pickColor(t,e){new Fg({colors:this.opts.colors,animateModal:!1,lang:this.opts.lang}).open(t,e)}addSnippet(t,e,i){this.util.addSnippet(t,e,i)}viewSnippets(){this.rte.viewSnippets()}saveForUndo(t){this.uo.saveForUndo(t)}download(t={}){this.export(t,!0)}export(t={},e=!1){let i=this.pageTemplate,n="";this.makeAbsolute=!0,this.shortenOutput=e;let o=this.html();if(this.makeAbsolute=!1,this.shortenOutput=!1,n=i.replace("[%CONTENT%]",o),t.replace&&t.replace.forEach((t=>{n=n.replaceAll(`${t[0]}`,t[1])})),t.path)n=n.replaceAll("[%PATH%]",t.path);else{let t;t=location.href.substring(0,location.href.lastIndexOf("/")),n=n.replaceAll("[%PATH%]",t)}n=this.beautify(n);const s=document.createElement("a");s.href=window.URL.createObjectURL(new Blob([n],{type:"text/plain"})),s.download="page.html",s.click()}beautify(t){return new Ei(this).beautify(t)}openPreview(){this.livePreview.openPreview()}closePreview(){this.livePreview.closePreview()}getActiveModule(){return document.querySelector("[data-module-active]")}getModuleSettings(){let t=document.querySelector("[data-module-active]");return decodeURIComponent(t.getAttribute("data-settings"))}setModuleHtml(t){document.querySelector("#hidContentModuleCode").value=t}setModuleSettings(t){document.querySelector("#hidContentModuleSettings").value=t}makeId(){return this.util.makeId()}setTooltip(t){this.tooltip.setAll(t)}loadPlugins(){if(!this.builderStuff)return;if(void 0===this.opts.scriptPath&&""===this.opts.pluginPath)return;if(this.numOfPlugins=0,"string"==typeof this.opts.plugins[0])return void this.loadPluginsOldWay();const t=this.builderStuff.querySelector(".is-rte-tool"),e=this.builderStuff.querySelector(".rte-more-options"),i=this.builderStuff.querySelector(".is-elementrte-tool"),n=this.builderStuff.querySelector(".elementrte-more-options");let o;for(o=this.opts.plugins.length-1;o>=0;o--){const s=this.opts.plugins[o].name,r=this.opts.plugins[o].showInMainToolbar,l=this.opts.plugins[o].showInElementToolbar;let a=!1;(t.querySelector('[data-plugin="'+s+'"]')||e.querySelector('[data-plugin="'+s+'"]'))&&(a=!0);let d=!1;if((i.querySelector('[data-plugin="'+s+'"]')||n.querySelector('[data-plugin="'+s+'"]'))&&(d=!0),r&&!a){e.querySelectorAll("div:not(.rte-separator)").forEach((t=>{t.insertAdjacentHTML("afterbegin",'<button style="width:46px;" title="button not found" data-plugin="'+s+'"></button>')}))}l&&!d&&n.querySelector("div").insertAdjacentHTML("afterbegin",'<button style="width:46px;" title="button not found" data-plugin="'+s+'"></button>')}for(o=0;o<this.opts.plugins.length;o++){const t=this.opts.plugins[o].name;let e=this.opts.scriptPath+"plugins/"+t+"/plugin.js";""!==this.opts.pluginPath&&(e=this.opts.pluginPath+"plugins/"+t+"/plugin.js"),this.loadScript(e).then((()=>{this.numOfPlugins++,this.numOfPlugins===this.opts.plugins.length&&(this.opts.onPluginsLoaded&&this.opts.onPluginsLoaded(),this.tooltip.setAll(),new Pi({selector:".is-draggable"}))}))}}loadPluginsOldWay(){const t=this.builderStuff.querySelector(".is-rte-tool"),e=this.builderStuff.querySelector(".rte-more-options"),i=this.builderStuff.querySelector(".is-elementrte-tool"),n=this.builderStuff.querySelector(".elementrte-more-options");let o;for(o=this.opts.plugins.length-1;o>=0;o--){const s=this.opts.plugins[o];let r=!1;(t.querySelector('[data-plugin="'+s+'"]')||e.querySelector('[data-plugin="'+s+'"]'))&&(r=!0);let l=!1;(i.querySelector('[data-plugin="'+s+'"]')||n.querySelector('[data-plugin="'+s+'"]'))&&(l=!0),r||e.querySelector("div").insertAdjacentHTML("afterbegin",'<button style="width:46px;" title="button not found" data-plugin="'+this.opts.plugins[o]+'"></button>'),l||n.querySelector("div").insertAdjacentHTML("afterbegin",'<button style="width:46px;" title="button not found" data-plugin="'+this.opts.plugins[o]+'"></button>')}for(o=0;o<this.opts.plugins.length;o++){let t=this.opts.scriptPath+"plugins/"+this.opts.plugins[o]+"/plugin.js";""!==this.opts.pluginPath&&(t=this.opts.pluginPath+"plugins/"+this.opts.plugins[o]+"/plugin.js"),this.loadScript(t).then((()=>{if(this.numOfPlugins++,this.numOfPlugins===this.opts.plugins.length){let t=e.querySelectorAll("[data-plugin]");Array.prototype.forEach.call(t,(t=>{t.outerHTML=""})),t=n.querySelectorAll("[data-plugin]"),Array.prototype.forEach.call(t,(t=>{t.outerHTML=""})),this.opts.onPluginsLoaded&&this.opts.onPluginsLoaded(),this.tooltip.setAll(),new Pi({selector:".is-draggable"})}}))}}addHtml(t){this.dom.appendHtml(this.builderStuff,t)}addCss(t){this.dom.appendHtml(document.head,t)}addButton_OLD(t,e,i,n){if(!this.builderStuff)return;const o=this.builderStuff.querySelector(".is-rte-tool"),s=this.builderStuff.querySelector(".rte-more-options");var r=!1;if(o.querySelector('[data-plugin="'+t+'"]')?o.querySelector('[data-plugin="'+t+'"]').outerHTML=e:s.querySelector('[data-plugin="'+t+'"]')&&(s.querySelector('[data-plugin="'+t+'"]').outerHTML=e,r=!0),!o.querySelector(".rte-more")&&r){o.insertAdjacentHTML("beforeend",`<button title="${this.util.out("More")}" class="rte-more"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#ion-more"></use></svg></button>`);let t=this.rteTool.querySelector("button.rte-more");t&&this.dom.addEventListener(t,"click",(()=>{this.rte.showRteMore()}))}let l=o.querySelector(i);l=l||s.querySelector(i),l&&(l.setAttribute("data-title",l.getAttribute("title")),this.dom.addEventListener(l,"click",(t=>{n(t)})))}addButton(t,e,i,n){if(!this.builderStuff)return;const o=this.builderStuff.querySelector(".is-rte-tool"),s=this.builderStuff.querySelector(".rte-more-options");var r=!1;s.querySelector('[data-plugin="'+t+'"]')&&(r=!0);if(this.builderStuff.querySelectorAll('[data-plugin="'+t+'"]').forEach((t=>{t.outerHTML=e})),!o.querySelector(".rte-more")&&r){o.insertAdjacentHTML("beforeend",`<button title="${this.util.out("More")}" class="rte-more"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#ion-more"></use></svg></button>`);let t=this.rteTool.querySelector("button.rte-more");t&&this.dom.addEventListener(t,"click",(()=>{this.rte.showRteMore()}))}let l=o.querySelectorAll(i);l.forEach((t=>{t.setAttribute("data-title",t.getAttribute("title")),this.dom.addEventListener(t,"click",(t=>{n(t)}))})),l=s.querySelectorAll(i),l.forEach((t=>{t.setAttribute("data-title",t.getAttribute("title")),this.dom.addEventListener(t,"click",(t=>{n(t)}))}))}addButton2(t,e,i,n){if(!this.builderStuff)return;const o=this.builderStuff.querySelector(".is-elementrte-tool"),s=this.builderStuff.querySelector(".elementrte-more-options");var r=!1;if(o.querySelector('[data-plugin="'+t+'"]')?o.querySelector('[data-plugin="'+t+'"]').outerHTML=e:s.querySelector('[data-plugin="'+t+'"]')&&(s.querySelector('[data-plugin="'+t+'"]').outerHTML=e,r=!0),!o.querySelector(".rte-more")&&r){o.insertAdjacentHTML("beforeend",`<button title="${this.util.out("More")}" class="rte-more"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#ion-more"></use></svg></button>`);let t=this.elementRteTool.querySelector("button.rte-more");t&&this.dom.addEventListener(t,"click",(()=>{this.rte.showElementRteMore()}))}let l=o.querySelector(i);l=l||s.querySelector(i),l&&(l.setAttribute("data-title",l.getAttribute("title")),this.dom.addEventListener(l,"click",(t=>{n(t)})))}showModal(t,e,i,n){this.util.showModal(t,e,i,n)}hideModal(t){this.util._hideModal(t)}draggable(t){new Pi({selector:t})}createModal(t,e,i,n,o){let s=this.builderStuff.querySelector(e);return s||(this.builderStuff.appendChild(t),s=this.builderStuff.querySelector(e)),this.showModal(s,i,n,o),new Pi({selector:".is-draggable"}),s}getIcons(){return this.rte.getIcons()}showSidePanel(t){let e=this.builderStuff.querySelectorAll(".is-side");Array.prototype.forEach.call(e,(t=>{this.dom.removeClass(t,"active")})),this.dom.addClass(t,"active")}hideSidePanel(t){this.dom.removeClass(t,"active")}getScriptPath(){return this.opts.scriptPath}getSnippetPath(){return this.opts.snippetPath}out(t){return this.util.out(t)}undo(){this.uo.doUndo()}redo(){this.uo.doRedo()}getScope(){let t;const e=this.doc.querySelectorAll(this.opts.container);if(e.length>1){const i=this.util.cellSelected();t=i?i.parentNode.parentNode:e[0]}else t=e[0];if(""!==this.opts.page){const e=this.doc.querySelector(this.opts.page);e&&(t=e)}return t}saveSelection(){this.util.saveSelection()}restoreSelection(){this.util.restoreSelection()}pasteHtmlAtCaret(t,e){this.util.pasteHtmlAtCaret(t,e)}getScript(t,e){this.loadScript(t).then((()=>{e&&e()}),(()=>{console.log("Fail to load config")}))}getScripts(t,e){let i=0;this.loadScript(t[i]).then((()=>{i=this._helper1(i,t,e)}))}_helper1(t,e,i){if(++t<e.length){return this.loadScript(e[t]).then((()=>{t=this._helper1(t,e,i)})),t}i&&i()}includeJs(t,e){-1===this.filesAdded.indexOf("["+t+"]")?(this.getScript(t,e),this.filesAdded+="["+t+"]"):e&&e()}includeCss(t){if(-1===this.filesAdded.indexOf("["+t+"]")){var e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e),this.filesAdded+="["+t+"]"}}applyStyle(t,e){if(-1===this.filesAdded.indexOf("["+t+"]")){var i=document.createElement("style");i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),this.filesAdded+="["+t+"]"}}viewHtml(t){new Ei(this).view("full",t)}viewPreferences(){this.preferences.view()}viewConfig(){this.preferences.view()}viewZoom(){this.rte.viewZoom()}loadSnippets(t){if(this.preview)return;if(document.querySelector(this.opts.snippetList))return;if(this.isScriptAlreadyIncluded(t))return;const e=document.createElement("script");e.src=t,e.async=!0,e.onload=()=>{this.opts.snippetJSON=window.data_basic,""===this.opts.snippetPath&&(this.opts.snippetPath=window._snippets_path),this.opts.snippetJSON.snippets.length>0&&Vo(this)},document.body.appendChild(e)}isScriptAlreadyIncluded(t){const e=document.getElementsByTagName("script");for(let i=0;i<e.length;i++)if(e[i].getAttribute("src")===t)return!0;return!1}loadHtml(t,e){const i=this.util;if(e);else{const t=this.doc.querySelectorAll(this.opts.container);if(t.length>1){const n=i.cellSelected();e=n?n.parentNode.parentNode:t[0]}else e=t[0];if(""!==this.opts.page){const t=this.doc.querySelector(this.opts.page);t&&(e=t)}}let n=this.doc.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(t)),this.applyBehavior(),this.opts.onChange(),this.opts.onRender(),null!=localStorage.getItem("_livepreview")&&this.livePreview.openPreview()}loadHTML(t){this.loadHtml(t)}setUIColor(t,e){let i=document.querySelector("[data-cb-color]");if(i&&i.setAttribute("data-cb-del",""),e){var n=document.createElement("link");n.rel="stylesheet",n.href=e,n.setAttribute("data-cb-color",""),n.addEventListener("load",(()=>{i=document.querySelector("[data-cb-del]"),i&&i.parentNode.removeChild(i),"dark"===t&&(this.dom.removeClass(document.body,"colored"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"light"),this.dom.addClass(document.body,"dark")),"colored"===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"light"),this.dom.addClass(document.body,"colored")),"colored-dark"===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored"),this.dom.removeClass(document.body,"light"),this.dom.addClass(document.body,"colored-dark")),""===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"colored"),this.dom.removeClass(document.body,"light")),"light"===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"colored"),this.dom.addClass(document.body,"light"));const e=this.util;setTimeout((()=>{e.getUIStyles(),this.setUIColorRefresh(),this.opts.onThemeChange&&this.opts.onThemeChange()}),300)})),document.head.appendChild(n)}else{i=document.querySelector("[data-cb-del]"),i&&i.parentNode.removeChild(i),""===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"colored"),this.dom.removeClass(document.body,"light"));const e=this.util;setTimeout((()=>{e.getUIStyles(),this.setUIColorRefresh(),this.opts.onThemeChange&&this.opts.onThemeChange()}),1e3)}}setUIColorRefresh(){const t=this.util;if(!this.rte||!this.element)return void setTimeout((()=>{this.setUIColorRefresh()}),600);let e=this.rte.rteFontFamilyOptions.querySelector("iframe").contentWindow.document;let i=this.builderStuff.querySelector(".is-modal.pickfontfamily").querySelector("iframe").contentWindow.document,n=this.rte.rteIconOptions.querySelector("iframe").contentWindow.document;""===e.body.innerHTML?(e.open(),this.opts.emailMode?e.write(t.getFontFamilyEmail()):e.write(t.getFontFamilyHTML()),e.close()):this.util.refreshFontFamilyStyle1(),""===i.body.innerHTML?(i.open(),this.opts.emailMode?i.write(t.getFontFamilyEmail(!0)):i.write(t.getFontFamilyHTML(!0)),i.close()):this.util.refreshFontFamilyStyle2(),""===n.body.innerHTML?(n.open(),n.write(this.rte.getIconsHTML()),n.close()):this.rte.refreshIconsStyle(),this.builderStuff.querySelector(".snippets").querySelector("iframe").src="about:blank";let o=document.querySelector(".is-modal.videoselect"),s=document.querySelector(".is-modal.imageselect"),r=document.querySelector(".is-modal.fileselect"),l=document.querySelector(".is-modal.otherselect"),a=o.querySelector("iframe"),d=s.querySelector("iframe"),c=r.querySelector("iframe"),u=l.querySelector("iframe");a.contentWindow.applyParentStyles&&a.contentWindow.applyParentStyles(),d.contentWindow.applyParentStyles&&d.contentWindow.applyParentStyles(),c.contentWindow.applyParentStyles&&c.contentWindow.applyParentStyles(),u.contentWindow.applyParentStyles&&u.contentWindow.applyParentStyles()}openMedia(t){let e="",i=t.getAttribute("data-modal-theme");i||(i="light");const n=t.getAttribute("data-modal-color");if(t.getAttribute("data-modal-url")){e=t.getAttribute("data-modal-url");let o=e.split(".").pop().split("?")[0].split("#")[0];if("jpg"===o||"jpeg"===o||"png"===o||"gif"===o||"webm"===o||"webp"===o)this.lightbox.openImage(e,i,n);else if("mp4"===o)this.lightbox.openVideo(e,"dark",n);else if(-1!==e.toLowerCase().indexOf("youtube.com")||-1!==e.toLowerCase().indexOf("youtube-nocookie.com")||-1!==e.toLowerCase().indexOf("vimeo.com"))this.lightbox.openExternalVideo(e,"dark",n);else{if(0===e.indexOf("#"));else{if(!window.confirm(this.util.out("Do you really want to leave?")))return!1}window.location.href=e}}else t.getAttribute("data-modal-image")&&(e=t.getAttribute("data-modal-image"),this.lightbox.openImage(e,i,n)),t.getAttribute("data-modal-video")&&(e=t.getAttribute("data-modal-video"),this.lightbox.openVideo(e,"dark",n)),t.getAttribute("data-modal-externalvideo")&&(e=t.getAttribute("data-modal-externalvideo"),this.lightbox.openExternalVideo(e,"dark",n))}lightboxOpen(t){this.useLightbox&&(t.hasAttribute("data-noedit")||t.hasAttribute("data-protected"))&&this.dom.hasClass(t,"block-click")&&this.openMedia(t)}handleCellClick(t,e){this.cleanEditing&&(t.parentNode.querySelector(".is-row-tool").style.display="",t.parentNode.querySelector(".is-col-tool").style.display=""),this.lightboxOpen(t);this.util.clearActiveCell(),this.activeCol=t;let i=e.target;this.dom.addClass(t,"cell-active");let n=t.parentNode;this.dom.addClass(n,"row-active");const o=this.doc.querySelectorAll(this.opts.container);Array.prototype.forEach.call(o,(t=>{this.dom.removeClass(t,"builder-active")})),this.dom.addClass(n.parentNode,"builder-active"),this.dom.addClass(this.doc.body,"content-edit"),n.childElementCount-2==1||this.dom.addClass(n,"row-outline"),this.opts.onContentClick&&this.opts.onContentClick(e),this.element.click(t,e),this.colTool.click(t),this.elmTool.click(t,e),this.rte.click(t,e);const s=document.querySelector(".grideditor.active");if(s){const e=s.querySelector(".cell-locking");t.hasAttribute("data-noedit")?this.dom.addClass(e,"on"):this.dom.removeClass(e,"on")}let r=this.dom.getParentElement(i,"a");if(("a"===i.tagName.toLowerCase()||r)&&(t.hasAttribute("data-noedit")||t.hasAttribute("data-protected"))){if("true"===t.getAttribute("contenteditable"))return e.preventDefault(),!1;if("a"===i.tagName.toLowerCase()&&(r=i),this.useLightbox&&this.dom.hasClass(r,"is-lightbox")){let t=r.getAttribute("href");if(!t)return e.preventDefault(),!1;let n=t.split(".").pop().split("?")[0].split("#")[0],o=r.getAttribute("data-modal-theme");o||(o="light");const s=i.getAttribute("data-modal-color");if("jpg"===n||"jpeg"===n||"png"===n||"gif"===n||"webm"===n||"webp"===n)return this.lightbox.openImage(t,o,s),e.preventDefault(),!1;if("mp4"===n)return this.lightbox.openVideo(t,"dark",s),e.preventDefault(),!1;if(-1!==t.toLowerCase().indexOf("youtube.com")||-1!==t.toLowerCase().indexOf("youtube-nocookie.com")||-1!==t.toLowerCase().indexOf("vimeo.com"))return this.lightbox.openExternalVideo(t,"dark",s),e.preventDefault(),!1;if(0===t.indexOf("#"));else{if(!window.confirm(this.util.out("Do you really want to leave?")))return e.preventDefault(),!1}}else{let t=r.getAttribute("href");if(!t)return e.preventDefault(),!1;if(0===t.indexOf("#"));else{if(!window.confirm(this.util.out("Do you really want to leave?")))return e.preventDefault(),!1}}}if(1===t.childElementCount){let e=t.children[0];e&&this.dom.hasClass(e,"spacer")&&(t.contentEditable=!1)}this.colTool.showHideLockIndicator(t);const l=n.querySelector(".is-rowadd-tool").querySelector("button");l.style.marginTop="";const a=Array.from(n.parentNode.children).filter((t=>"div"===t.nodeName.toLowerCase()));if(a&&a.length>0){if(n===a[a.length-1]){const t=n.closest(".is-section");if(t){const e=this.dom.getElementOffset(t);let i=e.top+e.height;const o=this.dom.getElementOffset(n);i-(o.top+o.height)<19&&(l.style.marginTop="-14px")}}}this.opts.enableDragResize&&(this.resize&&this.resize.destroy(),t.classList.contains("noresize")||(this.resize=new tf(t,this),this.resize.enable()))}handleCellKeypress(t){t.ctrlKey||t.metaKey||(null===this.uoTm?(this.uo.saveForUndo(),this.uoTm=setTimeout((()=>{this.uoTm=null}),1e3)):(clearTimeout(this.uoTm),this.uoTm=setTimeout((()=>{this.uoTm=null}),1e3)))}handleCellKeydown(t,e){this.oriLen=t.textContent.length;let i=t.querySelectorAll("span");if(Array.prototype.forEach.call(i,(t=>{t.setAttribute("data-keep","")})),(e.ctrlKey||e.metaKey)&&86===e.which&&this.handleCellPaste(),this.opts.elementSelection&&!this.emailMode&&(e.ctrlKey||e.metaKey)&&65===e.which){let t;try{this.win.getSelection?t=this.win.getSelection().getRangeAt(0).commonAncestorContainer.parentNode:this.doc.selection&&(t=this.doc.selection.createRange().parentElement()),this.dom.hasClass(t.parentNode.parentNode,"is-builder")||this.dom.selectElementContents(t),e.preventDefault()}catch(e){}}if(46===e.keyCode){let t;try{if(window.getSelection?t=window.getSelection().getRangeAt(0).commonAncestorContainer:document.selection&&(t=document.selection.createRange()),"<br>"===t.innerHTML){t.nextElementSibling&&(t.parentNode.removeChild(t),e.preventDefault())}}catch(e){}}if(8===e.keyCode){let t;try{if(window.getSelection?t=window.getSelection().getRangeAt(0).commonAncestorContainer:document.selection&&(t=document.selection.createRange()),""===t.textContent){t.previousElementSibling||e.preventDefault()}}catch(e){}}if(9===e.which&&!e.shiftKey){const t=this.activeCol;if(t)if(t.nextElementSibling&&t.nextElementSibling.hasAttribute("data-click")){const i=t.nextElementSibling;i&&i.click();let n=window.getSelection(),o=this.createRange(i,{count:0});o&&(o.collapse(!1),n.removeAllRanges(),n.addRange(o)),i.firstElementChild&&setTimeout((()=>{i.firstElementChild.click()}),200),e.preventDefault()}else if(t.parentNode.nextElementSibling){const i=t.parentNode.nextElementSibling;if(i){const t=i.firstElementChild;t&&t.click();let n=window.getSelection(),o=this.createRange(t,{count:0});o&&(o.collapse(!1),n.removeAllRanges(),n.addRange(o)),t.firstElementChild&&setTimeout((()=>{t.firstElementChild.click()}),200),e.preventDefault()}}}if(9===e.which&&e.shiftKey){const t=this.activeCol;if(t)if(t.previousElementSibling&&t.previousElementSibling.hasAttribute("data-click")){const i=t.previousElementSibling;i&&i.click(),i.firstElementChild&&i.firstElementChild.click();let n=window.getSelection(),o=this.createRange(i,{count:0});o&&(o.collapse(!1),n.removeAllRanges(),n.addRange(o)),i.firstElementChild&&setTimeout((()=>{i.firstElementChild.click()}),200),e.preventDefault()}else if(t.parentNode.previousElementSibling){const i=t.parentNode.previousElementSibling.querySelectorAll("[data-click]");if(i.length>0){const t=i[i.length-1];t&&t.click(),t.firstElementChild&&t.firstElementChild.click();let n=window.getSelection(),o=this.createRange(t,{count:0});o&&(o.collapse(!1),n.removeAllRanges(),n.addRange(o)),t.firstElementChild&&setTimeout((()=>{t.firstElementChild.click()}),200),e.preventDefault()}}}const n=()=>{let e=t.querySelectorAll("span");Array.prototype.forEach.call(e,(t=>{t.setAttribute("data-keep","")}))},o=e.ctrlKey||e.metaKey;if(o&&66===e.which&&this.opts.useCssClasses&&(this.dom.execCommandToggle("fontWeight","",this.opts.cssClasses),this.opts.onChange(),e.preventDefault(),n()),o&&73===e.which&&this.opts.useCssClasses&&(this.dom.execCommandToggle("fontStyle","",this.opts.cssClasses),this.opts.onChange(),e.preventDefault(),n()),o&&85===e.which&&this.opts.useCssClasses&&(this.dom.execCommandToggle("textUnderline","",this.opts.cssClasses),this.opts.onChange(),e.preventDefault(),n()),o&&83===e.which&&this.opts.useCssClasses&&(this.dom.execCommandToggle("textLinethrough","",this.opts.cssClasses),this.opts.onChange(),e.preventDefault(),n()),o&&221===e.which&&(e.preventDefault(),document.execCommand("indent",!1,null),this.opts.onChange(),e.preventDefault(),n()),o&&219===e.which&&(e.preventDefault(),document.execCommand("outdent",!1,null),this.opts.onChange(),e.preventDefault(),n()),o&&75===e.which&&(this.element.hyperlink.createLink(),e.preventDefault()),o&&80===e.which&&(e.preventDefault(),this.rte.insertImage()),(46===e.which||8===e.which)&&this.activeIcon){if("a"===this.activeIcon.parentNode.tagName.toLowerCase()&&1===this.activeIcon.parentNode.children.length||1===this.activeIcon.parentNode.children.length){let t=this.activeIcon.parentNode,e=t.parentNode;t.parentNode.removeChild(t);this.builderStuff.querySelector("#divLinkTool").style.display="";this.builderStuff.querySelector(".is-element-tool").style.display="",e&&""===e.innerHTML.trim()&&e.parentNode.removeChild(e)}else this.activeIcon.parentNode.removeChild(this.activeIcon);e.preventDefault()}this.cleanEditing&&(this.colTool.columnTool.classList.remove("active"),t.parentNode.querySelector(".is-row-tool").style.display="none",t.parentNode.querySelector(".is-col-tool").style.display="none")}createRange(t,e,i){if(i||((i=document.createRange()).selectNode(t),i.setStart(t,0)),0===e.count)i.setEnd(t,e.count);else if(t&&e.count>0)if(t.nodeType===Node.TEXT_NODE)t.textContent.length<e.count?e.count-=t.textContent.length:(i.setEnd(t,e.count),e.count=0);else for(var n=0;n<t.childNodes.length&&(i=this.createRange(t.childNodes[n],e,i),0!==e.count);n++);return i}handleCellFocus(t){const e=this.activeCol;e?t!==e&&(t.firstElementChild?t.firstElementChild.click():t.click()):t.firstElementChild?t.firstElementChild.click():t.click()}handleCellKeyup(t,e){this.dom.textSelection()&&("38"===e.keyCode||"40"===e.keyCode||"37"===e.keyCode||"39"===e.keyCode)&&this.util.saveSelection();let i=t.querySelectorAll("span");var n;Array.prototype.forEach.call(i,(t=>{t.hasAttribute("data-keep")||(t.outerHTML=t.innerHTML)}));try{this.win.getSelection?n=this.win.getSelection().getRangeAt(0).commonAncestorContainer.parentNode:this.doc.selection&&(n=this.doc.selection.createRange().parentElement())}catch(e){return}if(13===e.keyCode&&!e.shiftKey){"p"!==n.tagName.toLowerCase()&&"div"!==n.tagName.toLowerCase()||this.doc.execCommand("formatBlock",!1,"<p>");let e=t.querySelectorAll("[data-keep]");Array.prototype.forEach.call(e,(t=>{t.removeAttribute("data-keep")}))}this.oriLen!==t.textContent.length&&this.typing(),this.elmTool.hide()}typing(){this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{this.opts.onChange()}),2e3)}handleCellPaste(){this.uo.saveForUndo();const t=this.util;t.saveSelection();let e=this.doc.querySelector("#idContentWord");var i,n;e&&e.parentNode.removeChild(e),this.win.getSelection?i=3===(n=this.win.getSelection().getRangeAt(0).commonAncestorContainer).nodeType?n.parentNode:n:this.doc.selection&&(n=this.doc.selection.createRange(),i=this.doc.selection.createRange().parentElement());const o='<div style="position:absolute;z-index:-1000;top:'+(i.getBoundingClientRect().top+this.win.pageYOffset)+'px;left:-1000px;width:100px;height:100px;overflow:auto;" name="idContentWord" id="idContentWord" contenteditable="true"></div>';this.iframe?this.dom.appendHtml(this.contentStuff,o):this.dom.appendHtml(this.builderStuff,o),e=this.doc.querySelector("#idContentWord"),e.focus(),setTimeout((()=>{try{var e="";let u=this.doc.querySelector("#idContentWord");var i=!1,n=u.innerText;if(!this.opts.disableAutoEmbedVideo){var o=/^http[s]?:\/\/(((www.youtube.com\/watch\?(feature=player_detailpage&)?)v=)|(youtu.be\/))([^#&?]*)/.exec(n),s=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/)|(video\/))?([0-9]+)\/?/.exec(n);if(null!==o||null!==s){if(null!==o&&o.length>=7)n="https://www.youtube.com/embed/"+o[6]+"?rel=0";if(null!==s&&s.length>=7)n="https://player.vimeo.com/video/"+s[6];e='<div class="embed-responsive embed-responsive-16by9"><iframe tabindex="0" width="560" height="315" src="'+n+'" frameborder="0" allowfullscreen=""></iframe></div>',i=!0}}if(!i)if("text"===this.opts.paste){let t=u.querySelectorAll("p,h1,h2,h3,h4,h5,h6");Array.prototype.forEach.call(t,(t=>{t.innerHTML=t.innerHTML+" "})),0===(e=(e=(e=u.innerHTML).replace(/(<([^>]+)>)/gi,"<br>")).replace(/(<br\s*\/?>){3,}/gi,"<br>")).indexOf("<br>")&&(e=e.substring(4)),"<br>"===e.substring(e.length-4)&&(e=e.substring(0,e.length-4)),e=e.trim()}else{e=u.innerHTML,e="html"===this.opts.paste?t.cleanHTML(e,!1):t.cleanHTML(e,!0),u.innerHTML=e;let i=u.querySelectorAll("li");Array.prototype.forEach.call(i,(t=>{t.style.whiteSpace="";const e=t.childNodes;let i=e.length;for(;i--;)"P"===e[i].tagName&&(e[i].outerHTML=e[i].innerHTML)})),e=u.innerHTML}u=this.doc.querySelector("#idContentWord"),u&&u.parentNode.removeChild(u),t.restoreSelection();var r=this.win.getSelection(),l=r.getRangeAt(0);l.extractContents(),l.collapse(!0);var a=l.createContextualFragment(e),d=a.lastChild;if(l.insertNode(a),this.activeCol){this.activeCol.querySelectorAll("h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty,p:empty").forEach((t=>{t.remove()}));let t=this.activeCol.querySelector("p.elm-active,h1.elm-active,h2.elm-active,h3.elm-active,h4.elm-active,h5.elm-active,h6.elm-active");if(t){if(t.querySelectorAll("p,h1,h2,h3,h4,h5,h6").length>0){let e=t.nextElementSibling;if(Array.from(t.childNodes).filter((t=>3===t.nodeType&&t.textContent.trim().length>1)).forEach((t=>{const e=document.createElement("p");t.after(e),e.appendChild(t)})),t.firstElementChild&&1===t.childNodes.length&&"SPAN"===t.firstElementChild.tagName){t.outerHTML=t.firstElementChild.innerHTML,this.activeCol.querySelectorAll("*:empty").forEach((t=>{t.remove()})),e?this.dom.moveCursorToElement(e.previousElementSibling):this.dom.moveCursorToElement(this.activeCol);let i=this.doc.querySelector(".builder-active");return i&&this.applyBehaviorOn(i),this.opts.onChange(),void this.opts.onRender()}t.outerHTML=t.innerHTML,this.activeCol.find("h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty,p:empty").remove(),e?this.dom.moveCursorToElement(e.previousElementSibling):this.dom.moveCursorToElement(this.activeCol);let i=this.doc.querySelector(".builder-active");return i&&this.applyBehaviorOn(i),this.opts.onChange(),void this.opts.onRender()}}}l.setStartAfter(d),l.setEndAfter(d),l.collapse(!1);var c=l.commonAncestorContainer;if(c&&c.parentNode)try{c.parentNode.normalize()}catch(t){}r.removeAllRanges(),r.addRange(l);let h=this.doc.querySelector(".builder-active");h&&this.applyBehaviorOn(h),this.opts.onChange(),this.opts.onRender()}catch(t){let e=this.doc.querySelector("#idContentWord");e&&e.parentNode.removeChild(e)}}),800)}cellSelected(){return this.util.cellSelected()}loadScript(t,e,i=!0,n=!0){return new Promise(((o,s)=>{let r=document.createElement("script");const l=e||document.getElementsByTagName("script")[0];function a(t,e){(e||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=null,r.onreadystatechange=null,r=void 0,e?s():o())}r.async=i,r.defer=n,r.onload=a,r.onreadystatechange=a,r.src=t,l.parentNode.insertBefore(r,l)}))}currentScriptPath(){let t,e;for(var i=document.getElementsByTagName("script"),n=0;n<i.length;n++){var o=i[n].src;t="contentbuilder.js",o.indexOf(t)>-1&&(e=o.substring(0,o.indexOf(t))),t="contentbuilder.min.js",o.indexOf(t)>-1&&(e=o.substring(0,o.indexOf(t)))}return e}sectionDropSetup(){if(this.page){if(".is-wrapper"!==this.page)return;const t=this.doc.querySelector(this.page);this.sortableOnPage=new Co(t,{scroll:!0,group:"shared",direction:"vertical",animation:150,sort:!0,onAdd:t=>{var e=t.item;if(e.querySelector(".is-col-tool")){let t=e.querySelector(".is-row-tool"),i=e.querySelector(".is-col-tool"),n=e.querySelector(".is-rowadd-tool");e.removeChild(t),e.removeChild(i),e.removeChild(n);let o=e.querySelectorAll("[data-click]");return o.forEach((t=>{t.removeAttribute("data-click")})),e.removeAttribute("draggable"),e.classList.remove("row-active"),e.classList.remove("row-outline"),o=e.querySelectorAll(".cell-active"),o.forEach((t=>{t.classList.remove("cell-active")})),o=e.querySelectorAll("*"),o.forEach((t=>{t.style.cursor=""})),e.outerHTML=this.settings.sectionTemplate.replace("[%CONTENT%]",e.outerHTML),void(this.opts.onSectionAdd&&this.opts.onSectionAdd())}if(e.getAttribute("data-id")){let t=e.getAttribute("data-id");const h=this.opts.snippetJSON.snippets.filter((e=>e.id+""===t&&e));var i,n=h[0].html,o=h[0].noedit;i=-1===n.indexOf('"row'),this.opts.emailMode&&(i=!1);var s=this.opts.row,r=this.opts.cols;if(""!==s&&12===r.length&&(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n.replace(new RegExp("row clearfix","g"),"row")).replace(new RegExp('"row',"g"),'"'+s)).replace(new RegExp("column full","g"),r[11])).replace(new RegExp("column half","g"),r[5])).replace(new RegExp("column third","g"),r[3])).replace(new RegExp("column fourth","g"),r[2])).replace(new RegExp("column fifth","g"),r[1])).replace(new RegExp("column sixth","g"),r[1])).replace(new RegExp("column two-third","g"),r[7])).replace(new RegExp("column two-fourth","g"),r[8])).replace(new RegExp("column two-fifth","g"),r[9])).replace(new RegExp("column two-sixth","g"),r[9])),n=n.replace(/{id}/g,this.util.makeId()),this.opts.onAdd&&(n=this.opts.onAdd(n)),this.opts.snippetPathReplace.length>0&&""!==this.opts.snippetPathReplace[0]){var l=new RegExp(this.opts.snippetPathReplace[0],"g");n=n.replace(l,this.opts.snippetPathReplace[1]);var a=this.opts.snippetPathReplace[0].replace(/\//g,"%2F"),d=this.opts.snippetPathReplace[1].replace(/\//g,"%2F"),c=new RegExp(a,"g");n=n.replace(c,d)}if(i)n=`<div class="${this.opts.row}"><div class="${this.opts.cols[this.opts.cols.length-1]}"${o?" data-noedit":""}>${n}</div></div>`,e.removeAttribute("draggable"),this.dom.removeClass(e,"snippet-item"),e.outerHTML=this.settings.sectionTemplate.replace("[%CONTENT%]",n);else{let t=this.dom.createElement("div");t.innerHTML=n;let i=t.querySelectorAll("[data-html]");Array.prototype.forEach.call(i,(t=>{n=(n=(n=decodeURIComponent(t.getAttribute("data-html"))).replace(/{id}/g,this.util.makeId())).replace(/<script>/g,""+(this.nonce?`<script nonce="${this.nonce}">`:"<script>"));for(var e=1;e<=20;e++)n=n.replace("[%HTML"+e+"%]",void 0===t.getAttribute("data-html-"+e)?"":decodeURIComponent(t.getAttribute("data-html-"+e)));t.innerHTML=n})),n=t.innerHTML,e.removeAttribute("draggable"),this.dom.removeClass(e,"snippet-item"),e.innerHTML="";var u=document.createRange();u.setStart(e,0),e.appendChild(u.createContextualFragment(n)),e.outerHTML=this.settings.sectionTemplate.replace("[%CONTENT%]",e.innerHTML)}this.opts.onSectionAdd&&this.opts.onSectionAdd(),this.opts.onChange(),this.opts.onRender()}this.sortableOnPage.destroy()}})}}}return gf}();
420
+ function(t,e){if(!this)throw'Use "new RecordRTCPromisesHandler()"';if(void 0===t)throw'First argument "MediaStream" is required.';var n=this;n.recordRTC=new i(t,e),this.startRecording=function(){return new Promise((function(t,e){try{n.recordRTC.startRecording(),t()}catch(t){e(t)}}))},this.stopRecording=function(){return new Promise((function(t,e){try{n.recordRTC.stopRecording((function(i){n.blob=n.recordRTC.getBlob(),n.blob&&n.blob.size?t(i):e("Empty blob.",n.blob)}))}catch(t){e(t)}}))},this.pauseRecording=function(){return new Promise((function(t,e){try{n.recordRTC.pauseRecording(),t()}catch(t){e(t)}}))},this.resumeRecording=function(){return new Promise((function(t,e){try{n.recordRTC.resumeRecording(),t()}catch(t){e(t)}}))},this.getDataURL=function(t){return new Promise((function(t,e){try{n.recordRTC.getDataURL((function(e){t(e)}))}catch(t){e(t)}}))},this.getBlob=function(){return new Promise((function(t,e){try{t(n.recordRTC.getBlob())}catch(t){e(t)}}))},this.getInternalRecorder=function(){return new Promise((function(t,e){try{t(n.recordRTC.getInternalRecorder())}catch(t){e(t)}}))},this.reset=function(){return new Promise((function(t,e){try{t(n.recordRTC.reset())}catch(t){e(t)}}))},this.destroy=function(){return new Promise((function(t,e){try{t(n.recordRTC.destroy())}catch(t){e(t)}}))},this.getState=function(){return new Promise((function(t,e){try{t(n.recordRTC.getState())}catch(t){e(t)}}))},this.blob=null,this.version="5.6.2"}),void 0!==i&&(i.WebAssemblyRecorder=B)}(lf);var af=lf.exports;const df=new o;class cf{constructor(t={},e){this.opts=Object.assign(this,{send:()=>{},abort:()=>{}},t),this.builder=e;const i=this.builder.util;this.util=i;const n=this.builder.builderStuff;this.builderStuff=n,null===localStorage.getItem("_mic")&&localStorage.setItem("_mic","0"),this.builder.isInProgress=!1;const o=this.builder.commandInfo;let s="";for(const t in o)if(Object.prototype.hasOwnProperty.call(o,t)){const{title:e,list:i,width:n}=o[t];if(this.builder.enableShortCommands){s+=`<h2>${e}</h2>`;for(const t of i)s+=n?`<div role="button" tabindex="0" class="command-item" style="width:${n}">${t}</div>`:`<div role="button" tabindex="0" class="command-item">${t}</div>`}else if("general"===t){s+=`<h2>${e}</h2>`;for(const t of i)s+=n?`<div role="button" tabindex="0" class="command-item" style="width:${n}">${t}</div>`:`<div role="button" tabindex="0" class="command-item">${t}</div>`}}let r=`\n <style>\n .is-modal.commandlist {\n z-index: 10005 !important\n }\n .is-modal.commandlist .is-modal-content {\n max-width:calc(100% - 150px);\n height:calc(100% - 150px);\n padding:0 !important;\n }\n .is-modal.commandlist .is-modal-close {\n position: absolute !important;\n top: 5px;\n right: 15px;\n box-shadow: none !important;\n }\n .is-modal.commandlist .is-modal-close {\n background: transparent !important;\n }\n .is-modal.commandlist .is-modal-close svg {\n width:50px;height:50px;\n }\n .is-modal.commandlist .is-modal-content > div {\n display: flex;\n flex-flow: wrap;\n align-items: flex-start;\n /*align-items: inherits;*/\n justify-content: flex-start;\n padding: 2.2rem;\n box-sizing: border-box;\n overflow-y: auto;\n overflow-x: hidden;\n width: 100%;\n height: 100%;\n }\n .is-modal.commandlist .is-modal-content > div > h2 {\n display: block;\n width: 100%;\n flex: none;\n font-family: "Open Sans", sans-serif;\n font-weight: 300;\n margin-bottom: 30px;\n font-size: 28px;\n }\n .is-modal.commandlist .is-modal-content > div > div {\n margin-right: 2.2rem;\n margin-bottom: 2.2rem;\n display: flex;\n flex: none;\n width: 350px;\n height: auto;\n flex-direction: column;\n justify-content: space-between;\n border-radius: 0.25rem;\n border: 1px solid rgb(156 163 175/.75);\n padding: 1.5rem 2rem;\n box-sizing: border-box;\n letter-spacing: .025em;\n box-shadow: 5px 5px 0px rgb(0 0 0 / 3%);\n font-size: 19px;\n font-weight: 300;\n font-family: sans-serif;\n line-height: 1.3;\n cursor:pointer;\n transition: all 0.3s ease;\n }\n .is-modal.commandlist .is-modal-content > div > div:hover {\n background: rgba(0, 0, 0, 0.03);\n }\n .dark .is-modal.commandlist .is-modal-content > div > div:hover {\n background: rgba(255, 255, 255, 0.05);\n }\n .is-modal.page-command {\n width: 340px !important; \n height: 200px !important; \n top: auto !important; \n bottom: 30px !important; \n left: auto !important; \n right: 30px !important; \n z-index: 10005 !important;\n font-size: 12px;\n }\n .page-command-overlay {\n position: fixed;\n background: rgb(148 148 148 / 22%);\n display: none;\n z-index: 10004;\n justify-content: center;\n align-items:center;\n }\n\n .spinner {\n -webkit-animation: rotator 1.4s linear infinite;\n animation: rotator 1.4s linear infinite;\n }\n @-webkit-keyframes rotator {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(270deg);\n }\n }\n @keyframes rotator {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(270deg);\n }\n }\n .path {\n stroke: #232323; /* #b7b7b7; */\n stroke-dasharray: 187;\n stroke-dashoffset: 0;\n transform-origin: center;\n -webkit-animation: dash 1.4s ease-in-out infinite;\n animation: dash 1.4s ease-in-out infinite;\n }\n @-webkit-keyframes dash {\n 0% {\n stroke-dashoffset: 187;\n }\n 50% {\n stroke-dashoffset: 46.75;\n transform: rotate(135deg);\n }\n 100% {\n stroke-dashoffset: 187;\n transform: rotate(450deg);\n }\n }\n @keyframes dash {\n 0% {\n stroke-dashoffset: 187;\n }\n 50% {\n stroke-dashoffset: 46.75;\n transform: rotate(135deg);\n }\n 100% {\n stroke-dashoffset: 187;\n transform: rotate(450deg);\n }\n }\n </style>\n <div class="is-overlay page-command-overlay">\n <svg class="spinner" width="40px" height="40px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\n <circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle>\n </svg>\n </div>\n <div class="is-modal is-modal-content page-command" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-bar is-draggable" draggable=""> \n <span style="display: flex;\n justify-content: center;\n align-items: center;">\n ${i.out("AI Assistant")}</span>\n <button class="is-modal-close" tabindex="-1" title="${i.out("Close")}">\n <svg class="is-icon-flex"style="width:20px;height:20px"><use xlink:href="#ion-ios-close-empty"></use></svg>\n </button>\n </div>\n <div style="display:flex;flex-direction:column;justify-content:space-between;position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;border-top:transparent 35px solid;overflow-y:hidden;overflow-x:auto;">\n \n <textarea class="inp-command" style="resize:none;width:100%;height:121px;border:none;outline:none;background:transparent;line-height: 1.2;\n font-family: sans-serif;font-weight: 300;font-size: 17px;"></textarea>\n <div style="display:flex">\n <button title="${i.out("Mic")}" class="cmd-enable-dictation classic-secondary" style="width:40px;height:43px;flex:none;padding:0;outline-offset:-2px;">\n <svg class="is-icon-flex" style="width: 18px; height: 18px;"><use xlink:href="#icon-microphone"></use></svg> \n </button>\n <button title="${i.out("Commands")}" class="cmd-command-list classic-secondary" style="width:40px;height:43px;flex:none;padding:0;outline-offset:-2px;">\n <svg class="is-icon-flex" style="width: 18px; height: 18px;"><use xlink:href="#icon-message-search"></use></svg> \n </button>\n <button title="${i.out("Clear")}" class="cmd-clear-command classic-secondary" style="width:40px;height:43px;flex:none;padding:0;outline-offset:-2px;">\n <svg class="is-icon-flex" style="width: 18px; height: 18px;"><use xlink:href="#icon-eraser"></use></svg> \n </button>\n <label for="chkAutoSendCommand" style="margin:0;display:flex;padding-left:10px;padding-right:10px;white-space:nowrap;width:100%;align-items:center;letter-spacing:0"><input id="chkAutoSendCommand" type="checkbox"> <span style="margin-left:3px">${i.out("Auto Send")}</span></label>\n <button title="${i.out("Send")}" class="cmd-send-command classic-primary" style="width:100%;padding-left:5px;padding-right:5px;height:43px;outline-offset:-2px;">Send</button>\n </div>\n </div>\n </div>\n\n <div class="is-modal commandlist" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="false">\n <div class="is-modal-overlay"></div>\n\n <div class="is-modal-content scroll-darker"">\n <button class="is-modal-close" tabindex="-1" title="${i.out("Close")}">\n <svg class="is-icon-flex"><use xlink:href="#ion-ios-close-empty"></use></svg>\n </button>\n <div>\n\n ${s}\n\n </div>\n </div>\n </div>\n `;df.appendHtml(n,r);const l=n.querySelector(".page-command");this.modalCommand=l;const a=n.querySelector(".commandlist");this.modalCommandList=a;const d=n.querySelector(".cmd-enable-dictation"),c=n.querySelector(".cmd-clear-command"),u=n.querySelector("#chkAutoSendCommand"),h=n.querySelector(".cmd-command-list"),p=this.builderStuff.querySelector(".inp-command");null===localStorage.getItem("_sampleshown")&&(p.setAttribute("placeholder",this.builder.commandPlaceholderText),localStorage.setItem("_sampleshown",!0)),this.builder.commandText="",this.builder.autoSendCommand=!1,null!==localStorage.getItem("_dictation")&&"1"===localStorage.getItem("_dictation")&&(this.modalCommand.classList.add("active"),null!==localStorage.getItem("_mic")?"1"===localStorage.getItem("_mic")&&this.startDictation():this.startDictation()),null!==localStorage.getItem("_mic")&&"0"===localStorage.getItem("_mic")&&(d.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',u.parentNode.style.display="none",c.style.marginRight="6px"),null!==localStorage.getItem("_autosendcommand")&&"1"===localStorage.getItem("_autosendcommand")&&(u.checked=!0,this.builder.autoSendCommand=!0,localStorage.setItem("_autosendcommand","1")),this.modalCommand.addEventListener("focus",(()=>{i.saveSelection()})),h.addEventListener("click",(()=>{i.showModal(this.modalCommandList,!1,(()=>{h.removeAttribute("data-focus"),h.focus()}),!1),h.setAttribute("data-focus",!0)}));const g=t=>{this.builderStuff.querySelector(".inp-command").value=t,i.hideModal(this.modalCommandList)};a.querySelectorAll(".command-item").forEach((t=>{t.addEventListener("click",(()=>{g(t.innerText),p.focus()})),t.addEventListener("keydown",(e=>{13!==e.which||e.shiftKey||(e.preventDefault(),e.stopImmediatePropagation(),g(t.innerText),setTimeout((()=>{p.focus()}),300))}))})),d.addEventListener("click",(()=>{this.checkMic()?(this.stopDictation(),d.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',localStorage.setItem("_mic","0"),u.parentNode.style.display="none",c.style.marginRight="6px"):(this.startDictation(),d.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone"></use></svg>',localStorage.setItem("_mic","1"),u.parentNode.style.display="flex",c.style.marginRight="")})),u.addEventListener("change",(()=>{u.checked?(this.builder.autoSendCommand=!0,localStorage.setItem("_autosendcommand","1")):(this.builder.autoSendCommand=!1,localStorage.setItem("_autosendcommand","0"))})),c.addEventListener("click",(()=>{const t=this.builderStuff.querySelector(".inp-command");this.builder.commandText="",t.value="",t.focus()}));const m=n.querySelector(".cmd-send-command");m.addEventListener("click",(async()=>{if(this.builder.isInProgress)return void this.opts.abort();let t=this.modalCommand.querySelector(".inp-command").value;t=t.trim(),""!==t&&this.opts.send(t)})),p.addEventListener("keydown",(t=>{13!==t.keyCode||t.shiftKey||t.preventDefault()})),p.addEventListener("keyup",(t=>{if(13===t.keyCode&&!t.shiftKey)return m.click(),void t.preventDefault();this.builder.commandText=p.value}));this.modalCommand.querySelector(".is-modal-close").addEventListener("click",(()=>{this.modalCommand.classList.remove("active"),this.stopDictation(),localStorage.setItem("_dictation","0")})),this.initialStart=!1}checkMic(){return null===localStorage.getItem("_mic")||"0"!==localStorage.getItem("_mic")}openDictation(){if(this.modalCommand.classList.contains("active"))return void setTimeout((()=>{this.modalCommand.querySelector(".inp-command").focus()}),600);this.modalCommand.classList.add("active");this.modalCommand.querySelector(".inp-command").focus(),localStorage.setItem("_dictation","1");const t=this.builderStuff.querySelector("#chkAutoSendCommand"),e=this.builderStuff.querySelector(".cmd-clear-command");if(!this.checkMic()){return this.builderStuff.querySelector(".cmd-enable-dictation").innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',t.parentNode.style.display="none",void(e.style.marginRight="6px")}t.parentNode.style.display="flex",e.style.marginRight="",this.startDictation()}stopDictation(){this.recognition&&this.recognition.abort(),this.aborted=!0,this.recorder&&this.recorder.stopRecording(),this.localStream&&this.localStream.getAudioTracks().forEach((t=>{t.stop()}))}async startDictation(){if(this.builder.onlineDemo)return setTimeout((()=>{const t=this.builderStuff.querySelector(".cmd-enable-dictation"),e=this.builderStuff.querySelector(".cmd-clear-command"),i=this.builderStuff.querySelector("#chkAutoSendCommand");this.stopDictation(),t.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',localStorage.setItem("_mic","0"),i.parentNode.style.display="none",e.style.marginRight="6px"}),1),void this.util.showMessage(this.util.out("Speech recognition is disabled in this online demo. Please type your command/prompt in the textbox."),!0);if(this.builder.speechTranscribeUrl){this.websocket=new WebSocket(this.builder.speechTranscribeUrl);try{this.localStream=await navigator.mediaDevices.getUserMedia({audio:!0})}catch(t){return setTimeout((()=>{const t=this.builderStuff.querySelector(".cmd-enable-dictation"),e=this.builderStuff.querySelector(".cmd-clear-command"),i=this.builderStuff.querySelector("#chkAutoSendCommand");this.stopDictation(),t.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',localStorage.setItem("_mic","0"),i.parentNode.style.display="none",e.style.marginRight="6px"}),1),void this.util.showMessage(this.util.out("No microphone found. Please activate your microphone and refresh the page."))}const t=16e3;this.recorder=new af(this.localStream,{type:"audio",desiredSampRate:t,numberOfAudioChannels:1,timeSlice:1e3,ondataavailable:t=>{this.websocket.send(t)}});(/constructor/i.test(window.HTMLElement)||"[object SafariRemoteNotification]"===(!window.safari||"undefined"!=typeof safari&&window.safari.pushNotification).toString())&&!this.initialStart&&(this.recorder.stopRecording(),this.initialStart=!0,this.startDictation());let e="";const i=this.modalCommand.querySelector(".inp-command");this.websocket.onmessage=t=>{const n=JSON.parse(t.data);if("can-open-mic"===n.event&&(this.recorder.startRecording(),this.aborted=!1),"transcript-result"===n.event){const t=n.data;if(this.builder.isInProgress||this.aborted)return;e+=" "+t,i.value=e,clearTimeout(this.speechTimeout),this.speechTimeout=setTimeout((()=>{if(this.builder.commandText="",e="",this.builder.autoSendCommand){if(""===i.value.trim())return;this.modalCommand.querySelector(".cmd-send-command").click()}}),this.builder.autoSendDelay)}}}else if("SpeechRecognition"in window||"webkitSpeechRecognition"in window||"mozSpeechRecognition"in window){const t=window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition;this.recognition=new t,this.recognition.continuous=!0,this.recognition.interimResults=!0;let e=this.builder.speechRecognitionLang;this.recognition.lang=e,this.recognition.start(),this.speechTimeout,this.builder.commandText="",this.recognition.onresult=t=>{if(this.builder.isInProgress)return;let e="",i="";for(var n=t.resultIndex;n<t.results.length;++n)t.results[n].isFinal?i+=t.results[n][0].transcript:e+=t.results[n][0].transcript;if(-1!==e.indexOf("send")||-1!==i.indexOf("send")){return void this.modalCommand.querySelector(".cmd-send-command").click()}this.builder.commandText+=i;const o=this.modalCommand.querySelector(".inp-command");o.value=this.builder.commandText,clearTimeout(this.speechTimeout),this.speechTimeout=setTimeout((()=>{if(this.builder.commandText="",this.builder.autoSendCommand){if(""===o.value.trim())return;this.modalCommand.querySelector(".cmd-send-command").click()}}),this.builder.autoSendDelay)},this.recognition.onend=()=>{this.aborted||this.startDictation()},this.recognition.onstart=()=>{this.aborted=!1},this.recognition.onerror=t=>{console.log(t.message)}}else setTimeout((()=>{const t=this.builderStuff.querySelector(".cmd-enable-dictation"),e=this.builderStuff.querySelector(".cmd-clear-command"),i=this.builderStuff.querySelector("#chkAutoSendCommand");this.stopDictation(),t.innerHTML='<svg class="is-icon-flex" style="width:18px; height:18px;"><use xlink:href="#icon-microphone-off"></use></svg>',localStorage.setItem("_mic","0"),i.parentNode.style.display="none",e.style.marginRight="6px"}),1),this.util.showMessage(this.util.out("Speech recognition not supported in this browser."))}startSending(){this.modalCommand.querySelector(".cmd-send-command").innerHTML=`\n <svg class="spinner" width="14px" height="14px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\n <circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle>\n </svg>\n <span style="margin-left:5px">${this.util.out("Abort")}</span>\n `;this.builderStuff.querySelector(".page-command-overlay").style.display="flex",this.builder.isInProgress=!0}finish(){this.builder.isInProgress=!1;this.modalCommand.querySelector(".cmd-send-command").innerText=this.util.out("Send");this.builderStuff.querySelector(".page-command-overlay").style.display="none"}}var uf={compareTwoStrings:hf,findBestMatch:function(t,e){if(!function(t,e){return"string"==typeof t&&(!!Array.isArray(e)&&(!!e.length&&!e.find((function(t){return"string"!=typeof t}))))}(t,e))throw new Error("Bad arguments: First argument should be a string, second should be an array of strings");const i=[];let n=0;for(let o=0;o<e.length;o++){const s=e[o],r=hf(t,s);i.push({target:s,rating:r}),r>i[n].rating&&(n=o)}const o=i[n];return{ratings:i,bestMatch:o,bestMatchIndex:n}}};function hf(t,e){if((t=t.replace(/\s+/g,""))===(e=e.replace(/\s+/g,"")))return 1;if(t.length<2||e.length<2)return 0;let i=new Map;for(let e=0;e<t.length-1;e++){const n=t.substring(e,e+2),o=i.has(n)?i.get(n)+1:1;i.set(n,o)}let n=0;for(let t=0;t<e.length-1;t++){const o=e.substring(t,t+2),s=i.has(o)?i.get(o):0;s>0&&(i.set(o,s-1),n++)}return 2*n/(t.length+e.length-2)}class pf{constructor(t){this.builder=t}check(t){const{commandList:e}=this.builder.settings;let i=0,n="";for(const[o,s]of Object.entries(e)){const e=this.calculate(t,s);e>i&&(i=e,n=o)}return i>=this.builder.similarityThreshold&&n}calculate(t,e){const i=t.toLowerCase();let n=0;for(const t of e){const e=uf.compareTwoStrings(i,t);e>n&&(n=e)}return n}}class gf{constructor(t={}){let e,i,s={page:"",container:".container",row:"",cols:[],colequal:[],colsizes:[],imageQuality:.92,elementSelection:!0,paste:"text",snippetJSON:{snippets:[]},onPreviewOpen:()=>{let t=this.html();localStorage.setItem("preview-html",t)},previewStyle:"top:auto;bottom:50px;left:50px;right:auto;",livePreviewOpen:!1,livePreviewAlwaysReload:!1,livePreviewReloadEvery:30,scriptPath:"",plugins:[],pluginPath:"contentbuilder/",disableConfig:!1,modulePath:"assets/modules/",assetPath:"assets/",fontAssetPath:"assets/fonts/",snippetData:"assets/minimalist-blocks/snippetlist.html",snippetUrl:"assets/minimalist-blocks/content.js",snippetPath:"assets/minimalist-blocks/",snippetPathReplace:[],snippetCategories:[[120,"Basic"],[118,"Article"],[101,"Headline"],[119,"Buttons"],[102,"Photos"],[103,"Profile"],[116,"Contact"],[104,"Products, Services"],[105,"Features"],[108,"Skills"],[109,"Achievements"],[106,"Process"],[107,"Pricing"],[110,"Quotes"],[111,"Partners"],[112,"As Featured On"],[113,"Page Not Found"],[114,"Coming Soon"],[115,"Help, FAQ"]],defaultSnippetCategory:120,snippetHandle:!0,sidePanel:"right",snippetList:"#divSnippetList",onRender:function(){},onChange:function(){},largerImageHandler:"",imageHandler:"",fileHandler:"",mediaHandler:"",videoHandler:"",audioHandler:"",colors:["#ff8f00","#ef6c00","#d84315","#c62828","#58362f","#37474f","#353535","#f9a825","#9e9d24","#558b2f","#ad1457","#6a1b9a","#4527a0","#616161","#00b8c9","#009666","#2e7d32","#0277bd","#1565c0","#283593","#9e9e9e"],builderMode:"",rowTool:"right",rowcolOutline:!0,columnTool:!0,outlineMode:"",toolStyle:"",outlineStyle:"",snippetAddTool:!0,elementTool:!0,elementHighlight:!0,columnHtmlEditor:!0,rowHtmlEditor:!0,htmlSyntaxHighlighting:!0,snippetOpen:!1,toolbar:"top",toolbarDisplay:"auto",shortenHTML:!0,resizeHeight:!1,snippetsSidebarDisplay:"auto",imageEmbed:!0,imageselect:"",fileselect:"",imageSelect:"",fileSelect:"",videoSelect:"",audioSelect:"",mediaSelect:"",selectIcon:'<svg class="is-icon-flex" style="width:16px;height:16px;"><use xlink:href="#icon-folder"></use></svg>',otherSelect:"",otherSelectCaption:"Select Document",otherSelectIcon:'<svg class="is-icon-flex" style="width:16px;height:16px;"><use xlink:href="#icon-list-search"></use></svg>',imageSelectWidth:"1024px",imageSelectHeight:"80vh",fileSelectWidth:"1024px",fileSelectHeight:"80vh",videoSelectWidth:"1024px",videoSelectHeight:"80vh",audioSelectWidth:"1024px",audioSelectHeight:"80vh",mediaSelectWidth:"1024px",mediaSelectHeight:"80vh",otherSelectWidth:"1024px",otherSelectHeight:"80vh",assetRefresh:!1,customTags:[],buttons:["bold","italic","underline","formatting","color","align","textsettings","createLink","tags","|","undo","redo","zoom","livepreview","more"],buttonsMore:["icon","image","|","list","font","formatPara","|","html","preferences"],elementButtons:["left","center","right","full","undo","redo","zoom","livepreview","more"],elementButtonsMore:["|","html","preferences"],iconButtons:["icon","color","textsettings","createLink","|","undo","redo","zoom","livepreview","more"],iconButtonsMore:["|","html","preferences"],lang:[],checkLang:!1,clearPreferences:!1,toolbarAddSnippetButton:!1,animateModal:!0,defaultFontSizes:[16,17,18,19,24,32,48,76,96,120,200,300],fontSizeClassValues:[12,14,15,16,17,18,19,21,24,28,32,35,38,42,46,48,50,54,60,64,68,72,76,80,84,88,92,96,100,104,108,112,116,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,332,336,340,344,348,352,356,360,364,368,372,376,380,384,388,392,396,400],gradientcolors:[["linear-gradient(0deg, rgb(255, 57, 25), rgb(249, 168, 37))"],["linear-gradient(0deg, rgb(255, 57, 25), rgb(255, 104, 15))"],["linear-gradient(0deg, #FF5722, #FF9800)"],["linear-gradient(0deg, #613ca2, rgb(110, 123, 217))"],["linear-gradient(0deg, rgb(65, 70, 206), rgb(236, 78, 130))"],["linear-gradient(0deg, rgb(0, 150, 102), rgb(90, 103, 197))"],["linear-gradient(30deg, rgb(249, 119, 148), rgb(98, 58, 162))"],["linear-gradient(0deg, rgb(223, 70, 137), rgb(90, 103, 197))"],["linear-gradient(0deg, rgb(40, 53, 147), rgb(90, 103, 197))"],["linear-gradient(0deg, rgb(21, 101, 192), rgb(52, 169, 239))"],["linear-gradient(0deg, rgb(32, 149, 219), rgb(139, 109, 230))"],["linear-gradient(0deg, rgb(90, 103, 197), rgb(0, 184, 201))"],["linear-gradient(0deg, rgb(0, 184, 201), rgb(253, 187, 45))"],["linear-gradient(0deg, rgb(255, 208, 100), rgb(239, 98, 159))"],["linear-gradient(0deg, rgb(0, 214, 223), rgb(130, 162, 253))"],["linear-gradient(0deg, rgb(50, 234, 251), rgb(248, 247, 126))"],["linear-gradient(0deg, rgb(141, 221, 255), rgb(255, 227, 255))"],["linear-gradient(0deg, rgb(255, 170, 170), rgb(255, 255, 200))"],["linear-gradient(0deg, rgb(239, 239, 239), rgb(252, 252, 252))"]],elementEditor:!0,customval:"",moduleConfig:[],elementAnimate:!1,framework:"",cellFormat:"",rowFormat:"",emailMode:!1,absolutePath:!1,emailSnippetCategories:[[1,"Logo"],[14,"Call to Action"],[2,"Title"],[3,"Title, Subtitle"],[4,"Info, Title"],[7,"Paragraph"],[6,"Heading"],[8,"Buttons"],[9,"Callouts"],[10,"Images + Caption"],[12,"Images"],[13,"List"],[15,"Pricing"],[16,"Quotes"],[17,"Profile"],[18,"Contact Info"],[19,"Footer"],[20,"Separator"]],defaultEmailSnippetCategory:14,undoRedoStyles:!1,maxEmbedImageWidth:1600,zoom:1,useLightbox:!1,lightboxArrow:!0,imageRenameOnEdit:!0,disableAutoEmbedVideo:!1,deleteConfirm:!1,sectionTemplate:'\n <div class="is-section is-box is-section-100 type-opensans">\n <div class="is-overlay"></div>\n <div class="is-boxes">\n <div class="is-box-centered">\n <div class="is-container is-content-1100 v2 size-17 leading-13">\n [%CONTENT%]\n </div>\n </div>\n </div>\n </div>\n ',colHeight:[300,350,400,450,500,550,600,650,700],maxColumns:6,leadingPreset:[1,1.2,1.4,1.6,1.8,2,2.2],cssClasses:{fontWeight:{thin:"font-thin",extralight:"font-extralight",light:"font-light",normal:"font-normal",medium:"font-medium",semibold:"font-semibold",bold:"font-bold",extrabold:"font-extrabold",black:"font-black",defaultBold:"font-semibold",defaultNormal:"font-light"},fontStyle:{italic:"italic",normal:"not-italic"},textDecoration:{underline:"underline",linethrough:"line-through",normal:"no-underline"},textTransform:{uppercase:"uppercase",lowercase:"lowercase",capitalize:"capitalize",normal:"normal-case"},tracking:{tracking__100:"tracking--100",tracking__075:"tracking--75",tracking__050:"tracking-tighter",tracking__025:"tracking-tight",tracking_000:"tracking-normal",tracking_025:"tracking-wide",tracking_050:"tracking-wider",tracking_075:"tracking-75",tracking_100:"tracking-widest",tracking_125:"tracking-125",tracking_150:"tracking-150",tracking_175:"tracking-175",tracking_200:"tracking-200",tracking_225:"tracking-225",tracking_250:"tracking-250",tracking_275:"tracking-275",tracking_300:"tracking-300",tracking_325:"tracking-325",tracking_350:"tracking-350",tracking_375:"tracking-375",tracking_400:"tracking-400",tracking_425:"tracking-425",tracking_450:"tracking-450",tracking_475:"tracking-475",tracking_500:"tracking-500"},leading:{leading_5:"leading-05",leading_6:"leading-06",leading_7:"leading-07",leading_8:"leading-08",leading_9:"leading-09",leading_10:"leading-none",leading_11:"leading-11",leading_12:"leading-12",leading_125:"leading-tight",leading_13:"leading-13",leading_1375:"leading-snug",leading_14:"leading-14",leading_15:"leading-normal",leading_16:"leading-16",leading_1625:"leading-relaxed",leading_17:"leading-17",leading_18:"leading-18",leading_19:"leading-19",leading_20:"leading-loose",leading_21:"leading-21",leading_22:"leading-22",leading_23:"leading-23",leading_24:"leading-24",leading_25:"leading-25",leading_26:"leading-26",leading_27:"leading-27",leading_28:"leading-28",leading_29:"leading-29",leading_30:"leading-30"},opacity:{opacity_0:"opacity-0",opacity_2:"opacity-2",opacity_4:"opacity-4",opacity_5:"opacity-5",opacity_6:"opacity-6",opacity_8:"opacity-8",opacity_10:"opacity-10",opacity_12:"opacity-12",opacity_15:"opacity-15",opacity_20:"opacity-20",opacity_25:"opacity-25",opacity_30:"opacity-30",opacity_35:"opacity-35",opacity_40:"opacity-40",opacity_45:"opacity-45",opacity_50:"opacity-50",opacity_55:"opacity-55",opacity_60:"opacity-60",opacity_65:"opacity-65",opacity_70:"opacity-70",opacity_75:"opacity-75",opacity_80:"opacity-80",opacity_85:"opacity-85",opacity_90:"opacity-90",opacity_95:"opacity-95",opacity_100:"opacity-100"},padding:{all:{p_0:"p-0",p_1:"p-1",p_2:"p-2",p_3:"p-3",p_4:"p-4",p_5:"p-5",p_6:"p-6",p_7:"p-7",p_8:"p-8",p_9:"p-9",p_10:"p-10",p_11:"p-11",p_12:"p-12",p_14:"p-14",p_16:"p-16",p_20:"p-20"},x:{px_0:"px-0",px_1:"px-1",px_2:"px-2",px_3:"px-3",px_4:"px-4",px_5:"px-5",px_6:"px-6",px_7:"px-7",px_8:"px-8",px_9:"px-9",px_10:"px-10",px_11:"px-11",px_12:"px-12",px_14:"px-14",px_16:"px-16",px_20:"px-20"},y:{py_0:"py-0",py_1:"py-1",py_2:"py-2",py_3:"py-3",py_4:"py-4",py_5:"py-5",py_6:"py-6",py_7:"py-7",py_8:"py-8",py_9:"py-9",py_10:"py-10",py_11:"py-11",py_12:"py-12",py_14:"py-14",py_16:"py-16",py_20:"py-20"},top:{pt_0:"pt-0",pt_1:"pt-1",pt_2:"pt-2",pt_3:"pt-3",pt_4:"pt-4",pt_5:"pt-5",pt_6:"pt-6",pt_7:"pt-7",pt_8:"pt-8",pt_9:"pt-9",pt_10:"pt-10",pt_11:"pt-11",pt_12:"pt-12",pt_14:"pt-14",pt_16:"pt-16",pt_20:"pt-20"},right:{pr_0:"pr-0",pr_1:"pr-1",pr_2:"pr-2",pr_3:"pr-3",pr_4:"pr-4",pr_5:"pr-5",pr_6:"pr-6",pr_7:"pr-7",pr_8:"pr-8",pr_9:"pr-9",pr_10:"pr-10",pr_11:"pr-11",pr_12:"pr-12",pr_14:"pr-14",pr_16:"pr-16",pr_20:"pr-20"},bottom:{pb_0:"pb-0",pb_1:"pb-1",pb_2:"pb-2",pb_3:"pb-3",pb_4:"pb-4",pb_5:"pb-5",pb_6:"pb-6",pb_7:"pb-7",pb_8:"pb-8",pb_9:"pb-9",pb_10:"pb-10",pb_11:"pb-11",pb_12:"pb-12",pb_14:"pb-14",pb_16:"pb-16",pb_20:"pb-20"},left:{pl_0:"pl-0",pl_1:"pl-1",pl_2:"pl-2",pl_3:"pl-3",pl_4:"pl-4",pl_5:"pl-5",pl_6:"pl-6",pl_7:"pl-7",pl_8:"pl-8",pl_9:"pl-9",pl_10:"pl-10",pl_11:"pl-11",pl_12:"pl-12",pl_14:"pl-14",pl_16:"pl-16",pl_20:"pl-20"}},extend:{superscript:"sup",subscript:"sub"},textAlign:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"},display:{flex:"flex",block:"block",inline:"inline",inline_block:"inline-block"},flexDirection:{row:"flex-row",column:"flex-col",row_reverse:"flex-row-reverse",column_reverse:"flex-col-reverse"},flexWrap:{wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},justifyContent:{start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},alignItems:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"}},useCssClasses:!0,useButtonPlugin:!1,enableDragResize:!0,simpleTextSettings:!1,enableColumnsPerLine:!0,isContentBox:!1,sendCommandUrl:"http://localhost:8081/answer",onlineDemo:!1,autoSendDelay:3e3,commandPlaceholderText:"",enableShortCommands:!0,speechRecognitionLang:"en-US",headlineList:["We create simple and effective designs.","Ultimate Experiences With Story, Emotion, And Purpose.","Build Anything Beautifully","With Less Stuff and More Compassion","We're [CompanyName]. Full stack development with a spark of creativity.","Transforming your digital experience with [CompanyName]. Achieve your online goals with our customized solutions.","Revolutionizing web development with [CompanyName]. Unleash your digital potential with our high-performance solutions.","Creative and Inspiring"],shortCommandList:{undo:["undo"],redo:["undo"],increase:["increase","bigger","larger","enlarge"],decrease:["decrease","smaller"],bold:["bold"],italic:["italic"],underline:["underline"],strikethrough:["strikethrough"],superscript:["superscript"],subscript:["subscript"],uppercase:["uppercase"],lowercase:["lowercase"],capitalize:["capitalize"],clean:["clean"]},similarityThreshold:.65,commandList:{select:["select","select first"],select_next:["select next","select after"],select_previous:["select previous","select before"],select_last:["select last"],select_headline:["select headline"],select_paragraph:["select paragraph"],select_button:["select button"],select_space:["select space"],select_image:["select image"],change_font:["change font","change typography","change style"],fade_in:["fade in"],fade_in_slow:["fade in slow"],fade_in_up:["fade in up"],fade_in_up_slow:["fade in up slow"],slide_up:["slide up"],slide_up_slow:["slide up slow"],zoom_in:["zoom in"],zoom_out:["zoom out"],animate_once:["animate once"],always_animate:["always animate"],remove_animation:["remove animation","clear animation","remove fade in","clear fade in","remove slide up","clear slide up","remove zoom in","clear zoom in","remove zoom out","clear zoom out"],add_bg_color:["add background color"],add_bg_image:["add background image","add background"],change_bg_color:["change background color"],change_bg_image:["change background image","change background"],remove_bg_color:["remove background color","clear background color"],remove_bg:["remove background","remove background image","clear background","clear background image"],increase_content_width:["increase content width","enlarge content width"],decrease_content_width:["decrease content width","reduce content width"],clear_content_width:["clear content width","remove content width","make content full","full width content"],make_content_light:["make content white","make content light","make text white","make text light","change content white","change content light","change text white","change text light","change to white content","change to light content","change to white text","change to light text"],make_content_dark:["make content black","make content dark","make text black","make text dark","change content black","change content dark","change text black","change text dark","change to black content","change to dark content","change to black text","change to dark text"],make_section_height_10:["make section height 10"],make_section_height_15:["make section height 15"],make_section_height_20:["make section height 20"],make_section_height_25:["make section height 25"],make_section_height_30:["make section height 30"],make_section_height_40:["make section height 40"],make_section_height_50:["make section height 50"],make_section_height_60:["make section height 60"],make_section_height_70:["make section height 70"],make_section_height_75:["make section height 75"],make_section_height_80:["make section height 80"],make_section_height_85:["make section height 85"],make_section_height_90:["make section height 90"],make_section_height_100:["make section height 100"],make_section_height_auto:["make section height auto"],suggest_headline:["suggest headline","suggest header","suggest title","write headline","write header","write title"],suggest_tagline:["suggest tagline","write tagline"],add_headline:["add headline","add header","add title"],add_paragraph:["add paragraph"],add_image:["add image"],add_youtube:["add youtube"],add_video:["add video"],remove_video:["remove video","clear video"],add_bg_video:["add background video"],remove_bg_video:["remove background video","clear background video"],add_slider:["add slider"],remove_slider:["remove slider","clear slider"],add_bg_slider:["add background slider"],remove_bg_slider:["remove background slider","clear background slider"],add_audio:["add audio","add music","add mp3"],add_map:["add map","add google map"],add_table:["add table"],add_social:["add social"],add_icon:["add icon"],add_button:["add button"],add_2buttons:["add 2 button","add 2 buttons"],add_space:["add space"],position_before:["above","before"],increase_line_height:["increase line height","increase line spacing","increase text spacing","enlarge line height","enlarge line spacing","enlarge text spacing","bigger line height","bigger line spacing","bigger text spacing","make line height bigger","make line spacing bigger","make text spacing bigger"],increase_default_line_height:["increase default line height","increase default line spacing","increase default text spacing","enlarge default line height","enlarge default line spacing","enlarge default text spacing","bigger default line height","bigger default line spacing","bigger default text spacing","make default line height bigger","make default line spacing bigger","make default text spacing bigger"],decrease_line_height:["decrease line height","decrease line spacing","decrease text spacing","reduce line height","reduce line spacing","reduce text spacing","smaller line height","smaller line spacing","smaller text spacing","make line height smaller","make line spacing smaller","make text spacing smaller"],decrease_default_line_height:["decrease default line height","decrease default line spacing","decrease default text spacing","reduce default line height","reduce default line spacing","reduce default text spacing","smaller default line height","smaller default line spacing","smaller default text spacing","make default line height smaller","make default line spacing smaller","make default text spacing smaller"],increase_font_size:["increase font","increase size","increase font size","increase text","increase size","increase text size","enlarge font","enlarge size","enlarge font size","enlarge text","enlarge size","enlarge text size","text bigger","font bigger","size bigger"],decrease_font_size:["decrease font","decrease size","decrease font size","decrease text","decrease size","decrease text size","reduce font","reduce size","reduce font size","reduce text","reduce size","reduce text size","text smaller","font smaller","size smaller"],increase_default_font_size:["increase default font","increase default size","increase default font size","increase default text","increase default size","increase default text size","enlarge default font","enlarge default size","enlarge default font size","enlarge default text","enlarge default text size","default text bigger","default font bigger","default size bigger","increase default content","increase default content size","enlarge default content","enlarge default content size"],decrease_default_font_size:["decrease default font","decrease default size","decrease default font size","decrease default text","decrease default size","decrease default text size","reduce default font","reduce default size","reduce default font size","reduce default text","reduce default text size","default text smaller","default font smaller","default size smaller","decrease default content","decrease default content size","reduce default content","reduce default content size"],clear_font_size:["clear font size","remove font size","clear text size","remove text size","use default font size"],align_left:["align left","align text left","left aligned"],align_center:["align center","align text center","center aligned"],align_right:["align right","align text right","right aligned"],align_full:["align full","align justify","justify","justify text","justify full"],clear_alignment:["clear alignment","remove alignment","clear text alignment","remove text alignment"],make_content_centered:["make content center"],move_content_left:["move content left","place content left"],move_content_center:["move content center","place content center"],move_content_right:["move content right","place content right"],move_content_top:["move content top","place content top"],move_content_middle:["move content middle","place content middle"],move_content_bottom:["move content bottom","place content bottom"],increase_space:["more space","increase space","enlarge space"],decrease_space:["less space","decrease space","reduce space"],move_up:["move up"],move_down:["move down"],move_row_up:["move row up"],move_row_down:["move row down"],duplicate_row:["duplicate row","copy row"],remove_row:["remove row","delete row"],move_col_left:["move left","move column left"],move_col_right:["move right","move column right"],duplicate_col:["duplicate column","copy column"],remove_col:["remove column","delete column"],move_column_up:["move column up"],move_column_down:["move column down"],move_section_up:["move section up"],move_section_down:["move section down"],move_section_top:["move section top"],move_section_bottom:["move section bottom"],duplicate_section:["duplicate section","copy section"],remove_section:["remove section","delete section"],remove_content:["remove content","remove all text","remove all content","delete content","delete all text","delete all content","clear content","clear all text","clear all content"],add_content:["add content","add text"]},commandInfo:{general:{title:"General",list:["Let's redesign the layout to enhance its visual appeal and user experience.","Rewrite all the text to improve the overall copywriting quality.","Can you come up with another rendition of the content or offer an alternative wording?","Can you suggest a captivating headline for us?","Undo","Redo"]},selection:{title:"Selection",list:["Select the headline","Select the next block","Move up","Move down","Duplicate row","Remove row","Move column left","Move column right","Duplicate column","Remove column"]},element:{title:"Element",list:["Add a paragraph","Add an image","Add a youtube","Add a button","Add two buttons","Add a space","Increase the space","Reduce the space"]},text:{title:"Text Formatting",list:["Increase font size","Clear font size","Align center","Align right","Align justify","Clear alignment","Bold","Italic","Underline","Strikethrough","Uppercase","Clean"]}}};if(this.opts=Object.assign(this,s,t),window.data_basic&&(this.opts.snippetJSON=window.data_basic,""===this.opts.snippetPath&&(this.opts.snippetPath=window._snippets_path)),this.opts.snippetDisplay&&("auto"===this.opts.snippetDisplay?this.opts.snippetsSidebarDisplay="auto":this.opts.snippetsSidebarDisplay="always"),""===this.opts.scriptPath&&(this.opts.scriptPath=this.currentScriptPath()),window._txt&&(this.opts.lang=window._txt),this.settings=this.opts,""!==this.opts.imageSelect?this.opts.imageselect=this.opts.imageSelect:""!==this.opts.imageselect&&(this.opts.imageSelect=this.opts.imageselect),""!==this.opts.fileSelect?this.opts.fileselect=this.opts.fileSelect:""!==this.opts.fileselect&&(this.opts.fileSelect=this.opts.fileselect),""!==this.opts.videoSelect?this.opts.videoselect=this.opts.videoSelect:""!==this.opts.videoselect&&(this.opts.videoSelect=this.opts.videoselect),this.opts.onImageUpload||this.opts.onLargerImageUpload||(this.opts.onImageUpload=this.opts.onMediaUpload),this.opts.imageHandler||this.opts.largerImageHandler||(this.opts.imageHandler=this.opts.mediaHandler),""!==this.opts.imageHandler&&(this.opts.largerImageHandler=this.opts.imageHandler),this.opts.onImageUpload&&(this.opts.onLargerImageUpload=this.opts.onImageUpload),this.opts.emailMode&&(this.useButtonPlugin=!0),!this.useButtonPlugin){let t=this.plugins.filter((t=>"buttoneditor"!==t.name));this.plugins=[...t]}if("bootstrap"===this.opts.framework?(this.opts.row="row",this.opts.cols=["col-md-1","col-md-2","col-md-3","col-md-4","col-md-5","col-md-6","col-md-7","col-md-8","col-md-9","col-md-10","col-md-11","col-md-12"],this.opts.colequal=[],this.opts.colsizes=[]):"tailwind"===this.opts.framework?(this.opts.row="flex flex-col md:flex-row",this.opts.cols=["w-full md:w-1/12 px-4","w-full md:w-2/12 px-4","w-full md:w-3/12 px-4","w-full md:w-4/12 px-4","w-full md:w-5/12 px-4","w-full md:w-6/12 px-4","w-full md:w-7/12 px-4","w-full md:w-8/12 px-4","w-full md:w-9/12 px-4","w-full md:w-10/12 px-4","w-full md:w-11/12 px-4","w-full px-4"],this.opts.colequal=[],this.opts.colsizes=[]):"foundation"===this.opts.framework?(this.opts.row="row",this.opts.cols=["large-1 columns","large-2 columns","large-3 columns","large-4 columns","large-5 columns","large-6 columns","large-7 columns","large-8 columns","large-9 columns","large-10 columns","large-11 columns","large-12 columns"],this.opts.colequal=[],this.opts.colsizes=[]):"material"===this.opts.framework?(this.opts.row="mdl-grid",this.opts.cols=["mdl-cell mdl-cell--1-col","mdl-cell mdl-cell--2-col","mdl-cell mdl-cell--3-col","mdl-cell mdl-cell--4-col","mdl-cell mdl-cell--5-col","mdl-cell mdl-cell--6-col","mdl-cell mdl-cell--7-col","mdl-cell mdl-cell--8-col","mdl-cell mdl-cell--9-col","mdl-cell mdl-cell--10-col","mdl-cell mdl-cell--11-col","mdl-cell mdl-cell--12-col"],this.opts.colequal=[],this.opts.colsizes=[]):"uikit"===this.opts.framework?(this.opts.row="",this.opts.cols=[],this.opts.colequal=[],this.opts.colsizes=[],this.opts.cellFormat='<div class="uk-width-1-1"></div>',this.opts.rowFormat='<div class="uk-grid"></div>'):""!==this.opts.row&&this.opts.cols.length>0||""===this.opts.cellFormat&&""===this.opts.rowFormat&&(this.useDefaultGrid=!0,this.opts.row="row",this.opts.cols=["column twelfth","column eleventh","column tenth","column ninth","column eighth","column seventh","column sixth","column fifth","column fourth","column third","column half","column two-third","column two-fourth","column two-fifth","column two-sixth","column"],this.opts.colequal=[["column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth","column twelfth"],["column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh","column eleventh"],["column tenth","column tenth","column tenth","column tenth","column tenth","column tenth","column tenth","column tenth","column tenth","column tenth"],["column ninth","column ninth","column ninth","column ninth","column ninth","column ninth","column ninth","column ninth","column ninth"],["column eighth","column eighth","column eighth","column eighth","column eighth","column eighth","column eighth","column eighth"],["column seventh","column seventh","column seventh","column seventh","column seventh","column seventh","column seventh"],["column sixth","column sixth","column sixth","column sixth","column sixth","column sixth"],["column fifth","column fifth","column fifth","column fifth","column fifth"],["column fourth","column fourth","column fourth","column fourth"],["column third","column third","column third"],["column half","column half"]],this.opts.colsizes=[[["column third","column third","column third"],["column half","column fourth","column fourth"]],[["column sixth","column two-sixth"],["column fifth","column two-fifth"],["column fourth","column two-fourth"],["column third","column two-third"],["column half","column half"],["column two-third","column third"],["column two-fourth","column fourth"],["column two-fifth","column fifth"],["column two-sixth","column sixth"]]]),this.sortableObjects=[],this.iframe){e=this.iframe.contentWindow;let t=this.iframe.contentDocument||this.iframe.contentWindow.document;i=t,this.iframeDocument=t}else e=window,i=document;this.win=e,this.doc=i,this.doc.body.classList.add("data-editor");const r=new o(this);this.dom=r;const l=new n(this);this.util=l,this.pageTemplate||(this.pageTemplate=l.getPageTemplate(this.framework));const a=new of(this);if(this.responsive=a,this.iframe){let t=i.querySelector(".content-stuff");t||(t=document.createElement("div"),t.className="content-stuff is-ui",t.id="_cbhtml",i.body.appendChild(t)),this.contentStuff=t,this.stuff=new ef(this)}this.isTouchSupport=l.isTouchSupport(),this.isIE=l.detectIE(),this.opts.clearPreferences&&l.clearPreferences(),this.uoTm=null,this.uo=new Ai(this),this.cbDom=r,this.autoclean=!1,this.filesAdded="",this.opts.emailMode&&this.applyStyle("emailmode",".is-builder > div {display: block}");let d=document.querySelector("#_cbhtml");var c;d||(d=this.dom.createElement("div"),d.id="_cbhtml",d.className="is-ui",this.dom.appendChild(document.body,d)),this.builderStuff=d,(c=this).dom.appendHtml(c.builderStuff,'<svg width="0" height="0" style="position:absolute;display:none;">\n <defs>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-left"><path d="M352 115.4L331.3 96 160 256l171.3 160 20.7-19.3L201.5 256z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-right"><path d="M160 115.4L180.7 96 352 256 180.7 416 160 396.7 310.5 256z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-plus-outline"><path d="M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm0 398.7c-105.1 0-190.7-85.5-190.7-190.7S150.9 65.3 256 65.3 446.7 150.9 446.7 256 361.1 446.7 256 446.7z"></path><path d="M264.1 128h-16.8v119.9H128v16.8h119.3V384h16.8V264.7H384v-16.8H264.1z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-image"><path d="M368 224c26.5 0 48-21.5 48-48s-21.5-48-48-48-48 21.5-48 48 21.5 48 48 48z"></path><path d="M452 64H60c-15.6 0-28 12.7-28 28.3v327.4c0 15.6 12.4 28.3 28 28.3h392c15.6 0 28-12.7 28-28.3V92.3c0-15.6-12.4-28.3-28-28.3zM348.9 261.7c-3-3.5-7.6-6.2-12.8-6.2-5.1 0-8.7 2.4-12.8 5.7L304.6 277c-3.9 2.8-7 4.7-11.5 4.7-4.3 0-8.2-1.6-11-4.1-1-.9-2.8-2.6-4.3-4.1L224 215.3c-4-4.6-10-7.5-16.7-7.5-6.7 0-12.9 3.3-16.8 7.8L64 368.2V107.7c1-6.8 6.3-11.7 13.1-11.7h357.7c6.9 0 12.5 5.1 12.9 12l.3 260.4-99.1-106.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-photos-outline"><path d="M96 128v320h384V128H96zm368 304H112V144h352v288z"></path><path d="M32 64v320h48v-16H48V80h352v32h16V64z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-settings-strong"><path d="M32 376h283.35c6.186-14.112 20.281-24 36.65-24s30.465 9.888 36.65 24H480v32h-91.35c-6.186 14.112-20.281 24-36.65 24s-30.465-9.888-36.65-24H32M32 240h91.35c6.186-14.112 20.281-24 36.65-24s30.465 9.888 36.65 24H480v32H196.65c-6.186 14.112-20.281 24-36.65 24s-30.465-9.888-36.65-24H32M32 104h283.35c6.186-14.112 20.281-24 36.65-24s30.465 9.888 36.65 24H480v32h-91.35c-6.186 14.112-20.281 24-36.65 24s-30.465-9.888-36.65-24H32"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-settings"><path d="M352 104c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16m0-16c-17.645 0-32 14.355-32 32s14.355 32 32 32 32-14.355 32-32-14.355-32-32-32zM352 376c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16m0-16c-17.645 0-32 14.355-32 32s14.355 32 32 32 32-14.355 32-32-14.355-32-32-32zM160 240c8.837 0 16 7.163 16 16s-7.163 16-16 16-16-7.163-16-16 7.163-16 16-16m0-16c-17.645 0-32 14.355-32 32s14.355 32 32 32 32-14.355 32-32-14.355-32-32-32zM207.32 248H480v16H207.32c.439-2.604.68-5.273.68-8s-.24-5.396-.68-8zM112 256c0 2.727.24 5.396.68 8H32v-16h80.68a47.955 47.955 0 0 0-.68 8zM399.32 384H480v16h-80.68c.439-2.604.68-5.273.68-8s-.24-5.396-.68-8zM304 392c0 2.727.24 5.396.68 8H32v-16h272.68a47.955 47.955 0 0 0-.68 8zM399.32 112H480v16h-80.68c.439-2.604.68-5.273.68-8s-.24-5.396-.68-8zM304.68 112c-.439 2.604-.68 5.273-.68 8s.24 5.396.68 8H32v-16h272.68z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-options"><path d="M32 384h272v32H32zM400 384h80v32h-80zM384 447.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"></path><g><path d="M32 240h80v32H32zM208 240h272v32H208zM192 303.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"></path></g><g><path d="M32 96h272v32H32zM400 96h80v32h-80zM384 159.5c0 17.949-14.327 32.5-32 32.5-17.673 0-32-14.551-32-32.5v-95c0-17.949 14.327-32.5 32-32.5 17.673 0 32 14.551 32 32.5v95z"></path></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-list-number"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-1043.45,1024 C-1039.25,946.283 -1023.18,878.648 -995.249,821.096 C-967.313,763.544 -912.806,711.242 -831.728,664.192 L-710.742,594.247 C-656.55,562.74 -618.532,535.854 -596.687,513.589 C-562.24,478.722 -545.016,438.813 -545.016,393.863 C-545.016,341.352 -560.769,299.658 -592.276,268.781 C-623.783,237.904 -665.792,222.466 -718.304,222.466 C-796.02,222.466 -849.792,251.873 -879.619,310.685 C-895.582,342.192 -904.404,385.882 -906.084,441.754 L-1021.4,441.754 C-1020.14,363.197 -1005.65,299.133 -977.92,249.562 C-928.769,162.183 -842.02,118.494 -717.673,118.494 C-614.331,118.494 -538.82,146.43 -491.139,202.302 C-443.459,258.174 -419.619,320.347 -419.619,388.822 C-419.619,461.078 -445.034,522.831 -495.865,574.082 C-525.272,603.909 -577.993,640.037 -654.03,682.466 L-740.358,730.356 C-781.527,753.041 -813.874,774.676 -837.399,795.26 C-879.408,831.808 -905.874,872.347 -916.797,916.877 L-424.03,916.877 L-424.03,1024 L-1043.45,1024 Z " /><path d="M-922.391,-764.384 L-922.391,-851.343 C-840.474,-859.324 -783.341,-872.662 -750.994,-891.356 C-718.647,-910.05 -694.492,-954.265 -678.529,-1024 L-589.049,-1024 L-589.049,-125.425 L-710.035,-125.425 L-710.035,-764.384 L-922.391,-764.384 Z " /><path d="M-198.618,-510.942 L-198.618,-667.156 L1004.57,-667.156 L1004.57,-510.942 L-198.618,-510.942 Z " /><path d="M-198.618,78.1071 L-198.618,-78.1071 L1004.57,-78.1071 L1004.57,78.1071 L-198.618,78.1071 Z " /><path d="M-179.185,649.354 L-179.185,493.14 L1024,493.14 L1024,649.354 L-179.185,649.354 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-list-bullet"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-379.801,-514.33 L-379.801,-670.545 L914.662,-670.545 L914.662,-514.33 L-379.801,-514.33 Z " /><path d="M-379.801,78.1071 L-379.801,-78.1071 L914.662,-78.1071 L914.662,78.1071 L-379.801,78.1071 Z " /><path d="M-379.801,670.545 L-379.801,514.33 L914.662,514.33 L914.662,670.545 L-379.801,670.545 Z " /><path d="M-929.642,-469.441 L-929.642,-715.434 L-669.092,-715.434 L-669.092,-469.441 L-929.642,-469.441 Z " /><path d="M-929.642,127.109 L-929.642,-118.885 L-669.092,-118.885 L-669.092,127.109 L-929.642,127.109 Z " /><path d="M-929.642,715.434 L-929.642,469.441 L-669.092,469.441 L-669.092,715.434 L-929.642,715.434 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-clean">\n <g transform="matrix(1,0,0,1,1024.0,1024.0)">\n <path d="M75.0013,893.849 L-1030.73,900.993 L-32.1518,-880.838 L1009.54,-880.838 L75.0013,893.849 Z " fill="currentColor" />\n <path d="M-30.8571,780.685 L-845.2,787.828 L-508.893,193.749 L305.26,194.963 L-30.8571,780.685 Z " fill="#ffffff" fill-opacity="1.00" />\n </g>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-location"><path d="M256 64c-65.9 0-119.3 53.7-119.3 120 0 114.6 119.3 264 119.3 264s119.3-149.4 119.3-264c0-66.3-53.4-120-119.3-120zm0 178.2c-31.2 0-56.4-25.4-56.4-56.7 0-31.3 25.3-56.8 56.4-56.8 31.2 0 56.4 25.4 56.4 56.8 0 31.3-25.2 56.7-56.4 56.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-film-outline"><path d="M0 360h400v-336h-400v336zM72 40v48h-56v-48h56zM72 104v48h-56v-48h56zM72 168v48h-56v-48h56zM72 232v48h-56v-48h56zM72 296v48h-56v-48h56zM312 40v144h-224v-144h224zM312 200v144h-224v-144h224zM384 40v48h-56v-48h56zM384 104v48h-56v-48h56zM384 168v48h-56v-48\n h56zM384 232v48h-56v-48h56zM384 296v48h-56v-48h56z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-social-youtube-outline"><path d="M265 96c65.3 0 118.7 1.1 168.1 3.3h1.4c23.1 0 42 22 42 49.1v1.1l.1 1.1c2.3 34 3.4 69.3 3.4 104.9.1 35.6-1.1 70.9-3.4 104.9l-.1 1.1v1.1c0 13.8-4.7 26.6-13.4 36.1-7.8 8.6-18 13.4-28.6 13.4h-1.6c-52.9 2.5-108.8 3.8-166.4 3.8h-10.6.1-10.9c-57.8 0-113.7-1.3-166.2-3.7h-1.6c-10.6 0-20.7-4.8-28.5-13.4-8.6-9.5-13.4-22.3-13.4-36.1v-1.1l-.1-1.1c-2.4-34.1-3.5-69.4-3.3-104.7v-.2c-.1-35.3 1-70.5 3.3-104.6l.1-1.1v-1.1c0-27.2 18.8-49.3 41.9-49.3h1.4c49.5-2.3 102.9-3.3 168.2-3.3H265m0-32.2h-18c-57.6 0-114.2.8-169.6 3.3-40.8 0-73.9 36.3-73.9 81.3C1 184.4-.1 220 0 255.7c-.1 35.7.9 71.3 3.4 107 0 45 33.1 81.6 73.9 81.6 54.8 2.6 110.7 3.8 167.8 3.8h21.6c57.1 0 113-1.2 167.9-3.8 40.9 0 74-36.6 74-81.6 2.4-35.7 3.5-71.4 3.4-107.1.1-35.7-1-71.3-3.4-107.1 0-45-33.1-81.1-74-81.1C379.2 64.8 322.7 64 265 64z"></path><path d="M207 353.8V157.4l145 98.2-145 98.2z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-play"><path d="M128 96v320l256-160L128 96z"></path></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-align-full"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-770.727,738.299 L-770.727,582.085 L769.712,582.085 L769.712,738.299 L-770.727,738.299 Z " /><path d="M-770.727,-534.628 L-770.727,-690.842 L769.712,-690.842 L769.712,-534.628 L-770.727,-534.628 Z " /><path d="M-770.219,-115.563 L-770.219,-271.777 L770.219,-271.777 L770.219,-115.563 L-770.219,-115.563 Z " /><path d="M-770.219,303.503 L-770.219,147.288 L770.219,147.288 L770.219,303.503 L-770.219,303.503 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-align-center"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-770.727,738.299 L-770.727,582.085 L769.712,582.085 L769.712,738.299 L-770.727,738.299 Z " /><path d="M-552.286,-107.697 L-552.286,-263.911 L552.286,-263.911 L552.286,-107.697 L-552.286,-107.697 Z " /><path d="M-467.355,319.234 L-467.355,163.02 L466.34,163.02 L466.34,319.234 L-467.355,319.234 Z " /><path d="M-770.727,-534.628 L-770.727,-690.842 L769.712,-690.842 L769.712,-534.628 L-770.727,-534.628 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-align-left"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-770.727,738.299 L-770.727,582.085 L769.712,582.085 L769.712,738.299 L-770.727,738.299 Z " /><path d="M-770.727,-534.628 L-770.727,-690.842 L769.712,-690.842 L769.712,-534.628 L-770.727,-534.628 Z " /><path d="M-770.219,-115.563 L-770.219,-271.777 L482.839,-271.777 L482.839,-115.563 L-770.219,-115.563 Z " /><path d="M-770.219,303.503 L-770.219,147.288 L122.787,147.288 L122.787,303.503 L-770.219,303.503 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-align-right"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-770.727,738.299 L-770.727,582.085 L769.712,582.085 L769.712,738.299 L-770.727,738.299 Z " /><path d="M-770.727,-534.628 L-770.727,-690.842 L769.712,-690.842 L769.712,-534.628 L-770.727,-534.628 Z " /><path d="M-483.346,-118.081 L-483.346,-274.295 L769.712,-274.295 L769.712,-118.081 L-483.346,-118.081 Z " /><path d="M-123.871,303.503 L-123.871,147.288 L769.136,147.288 L769.136,303.503 L-123.871,303.503 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-indent"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-829.04,-514.33 L-829.04,-670.545 L808.959,-670.545 L808.959,-514.33 L-829.04,-514.33 Z " /><path d="M-829.04,670.545 L-829.04,514.33 L808.959,514.33 L808.959,670.545 L-829.04,670.545 Z " /><path d="M-254.279,-110.244 L-254.279,-266.458 L808.959,-266.458 L808.959,-110.244 L-254.279,-110.244 Z " /><path d="M-254.279,266.458 L-254.279,110.244 L808.959,110.244 L808.959,266.458 L-254.279,266.458 Z " /><path d="M-829.04,-195.117 L-490.958,-1.03508e-14 L-829.04,195.117 L-829.04,-195.117 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-outdent"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-829.04,-514.33 L-829.04,-670.545 L808.959,-670.545 L808.959,-514.33 L-829.04,-514.33 Z " /><path d="M-829.04,670.545 L-829.04,514.33 L808.959,514.33 L808.959,670.545 L-829.04,670.545 Z " /><path d="M-829.04,-110.244 L-829.04,-266.458 L234.198,-266.458 L234.198,-110.244 L-829.04,-110.244 Z " /><path d="M-829.04,266.458 L-829.04,110.244 L234.198,110.244 L234.198,266.458 L-829.04,266.458 Z " /><path d="M808.959,-195.117 L470.877,-1.03508e-14 L808.959,195.117 L808.959,-195.117 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-table"><rect x="0" y="0" width="2048.00" height="2048.00" fill="none" /><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M-660.783,660.783 L660.783,660.783 L660.783,-660.783 L-660.783,-660.783 L-660.783,660.783 Z " fill="none" stroke-width="75.82" stroke="currentColor" stroke-linecap="square" stroke-linejoin="miter" /><path d="M-37.9645,698.933 L37.9645,698.933 L37.9645,-698.569 L-37.9645,-698.569 L-37.9645,698.933 Z " fill="currentColor" fill-opacity="1.00" stroke-width="0.25" stroke="currentColor" stroke-linecap="square" stroke-linejoin="miter" /><path d="M-698.933,-37.7825 L-698.933,38.1465 L698.569,38.1465 L698.569,-37.7825 L-698.933,-37.7825 Z " fill="currentColor" fill-opacity="1.00" stroke-width="0.25" stroke="currentColor" stroke-linecap="square" stroke-linejoin="miter" /></g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-happy"><path d="M256 48C140.563 48 48 141.6 48 256s92.563 208 208 208 208-93.6 208-208S370.401 48 256 48zm0 374.4c-91.518 0-166.404-74.883-166.404-166.4 0-91.518 74.887-166.4 166.404-166.4S422.404 164.482 422.404 256 347.518 422.4 256 422.4zm72.8-187.2c17.683 0 31.201-13.518 31.201-31.2s-13.519-31.2-31.201-31.2c-17.682 0-31.2 13.518-31.2 31.2s13.518 31.2 31.2 31.2zm-145.6 0c17.682 0 31.2-13.518 31.2-31.2s-13.519-31.2-31.2-31.2c-17.683 0-31.201 13.518-31.201 31.2s13.519 31.2 31.201 31.2zM256 370.4c48.883 0 89.436-30.164 106.081-72.801H149.919C166.564 340.236 207.117 370.4 256 370.4z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-create"><path d="M64 368v80h80l235.727-235.729-79.999-79.998L64 368zm377.602-217.602c8.531-8.531 8.531-21.334 0-29.865l-50.135-50.135c-8.531-8.531-21.334-8.531-29.865 0l-39.468 39.469 79.999 79.998 39.469-39.467z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-minus-empty"><path d="M384 265H128v-17h256v17z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-eye"><path d="M256 128c-81.9 0-145.7 48.8-224 128 67.4 67.7 124 128 224 128 99.9 0 173.4-76.4 224-126.6C428.2 198.6 354.8 128 256 128zm0 219.3c-49.4 0-89.6-41-89.6-91.3 0-50.4 40.2-91.3 89.6-91.3s89.6 41 89.6 91.3c0 50.4-40.2 91.3-89.6 91.3z"></path><path d="M256 224c0-7.9 2.9-15.1 7.6-20.7-2.5-.4-5-.6-7.6-.6-28.8 0-52.3 23.9-52.3 53.3s23.5 53.3 52.3 53.3 52.3-23.9 52.3-53.3c0-2.3-.2-4.6-.4-6.9-5.5 4.3-12.3 6.9-19.8 6.9-17.8 0-32.1-14.3-32.1-32z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-reply"><path d="M448 400s-36.8-208-224-208v-80L64 256l160 134.4v-92.3c101.6 0 171 8.9 224 101.9z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-folder-outline">\n <path d="M457 96H215c-2.791 0-4.271-.585-6.094-2.408l-22.501-22.501-.168-.162C181.365 66.333 177.361 64 169 64H57c-13.785 0-25 10.317-25 23v336c0 13.317 11.683 25 25 25h400c12.683 0 23-11.215 23-25V119c0-13.327-9.673-23-23-23zM57 80h112c3.497 0 3.737.189 6.175 2.488l22.417 22.418c4.84 4.84 10.372 7.094 17.408 7.094h242c4.448 0 7 2.552 7 7v42.376a23.885 23.885 0 0 0-8-1.376H56c-2.805 0-5.496.488-8 1.376V87c0-4.323 4.672-7 9-7zm407 343c0 4.328-2.677 9-7 9H57c-4.458 0-9-4.542-9-9V184c0-4.411 3.589-8 8-8h400c4.411 0 8 3.589 8 8v239z"/>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-cloud-outline">\n <path d="M399.3 232.8c0-1.2.2-2.4.2-3.6 0-64.3-52.8-117.2-116.8-117.2-46.1 0-85.8 27.9-104.4 67-8.1-4.1-17.1-6.4-26.8-6.4-29.6 0-54.1 23.7-58.9 52C57.4 236.8 32 268.8 32 308.4c0 49.8 40.1 91.6 89.6 91.6H398c45 0 82-38.9 82-84.3 0-45.6-35.4-82.8-80.7-82.9zm-1.8 150.8l-3.2.4H122.4c-40.9 0-74.2-34.9-74.2-76.1 0-31.9 20.2-58.4 50.2-68.8l8.4-3 1.5-8.8c3.6-21.6 22.1-39.3 43.9-39.3 6.9 0 13.7 1.6 19.9 4.8l13.5 6.8 6.5-13.7c16.6-34.9 52.1-58.2 90.4-58.2 55.3 0 100.9 44.1 100.9 99.7 0 13.3-.2 20.3-.2 20.3l15.2.1c36.7.5 65.6 30.5 65.6 67.4 0 36.9-29.8 68.2-66.5 68.4z"/>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-wrench"><path d="M461.9 114.9l-56.5 56.7-55.1-10-9.9-55.1 56.5-56.7c-12.7-12.7-30.8-18.5-44.2-17.8-13.5.7-42.3 8.3-64.6 32-21.6 22.8-44.3 65.3-24.2 112.5 2.4 5.7 5.1 13.2-2.9 21.2-8.1 8-215 202.8-215 202.8-19.4 16.7-18 47.6-.1 65.6 18.2 17.9 48.9 19 65.6-.3 0 0 193.2-205.8 202.7-215.1 8.5-8.3 16.1-5.5 21.2-2.9 35.6 18.4 86.3 2.4 112.6-23.9 26.3-26.3 31.1-51.7 31.9-64.7.8-12.9-3.7-30-18-44.3zM91.3 443.2c-6.3 6.2-16.5 6.2-22.7 0-6.2-6.3-6.2-16.5 0-22.7 6.3-6.2 16.5-6.2 22.7 0 6.2 6.3 6.2 16.5 0 22.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-more"><path d="M113.7 304C86.2 304 64 282.6 64 256c0-26.5 22.2-48 49.7-48 27.6 0 49.8 21.5 49.8 48 0 26.6-22.2 48-49.8 48zM256 304c-27.5 0-49.8-21.4-49.8-48 0-26.5 22.3-48 49.8-48 27.5 0 49.7 21.5 49.7 48 0 26.6-22.2 48-49.7 48zM398.2 304c-27.5 0-49.8-21.4-49.8-48 0-26.5 22.2-48 49.8-48 27.5 0 49.8 21.5 49.8 48 0 26.6-22.2 48-49.8 48z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-code-working"><circle cx="184.166" cy="256.166" r="24"></circle><circle cx="256.166" cy="256.166" r="24"></circle><circle cx="328.166" cy="256.166" r="24"></circle><g><path d="M168 392a23.929 23.929 0 0 1-16.971-7.029l-112-112c-9.373-9.373-9.373-24.569 0-33.941l112-112c9.373-9.372 24.568-9.372 33.941 0 9.371 9.372 9.371 24.568 0 33.941L89.941 256l95.029 95.029c9.371 9.372 9.371 24.568 0 33.941A23.925 23.925 0 0 1 168 392zM344 392a23.929 23.929 0 0 0 16.971-7.029l112-112c9.373-9.373 9.373-24.569 0-33.941l-112-112c-9.373-9.372-24.568-9.372-33.941 0-9.371 9.372-9.371 24.568 0 33.941L422.059 256l-95.029 95.029c-9.371 9.372-9.371 24.568 0 33.941A23.925 23.925 0 0 0 344 392z"></path></g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-gear"><path d="M416.349 256.046c-.001-21.013 13.143-38.948 31.651-46.062a196.302 196.302 0 0 0-23.664-57.139 49.423 49.423 0 0 1-20.082 4.254c-12.621 0-25.238-4.811-34.871-14.442-14.863-14.863-18.248-36.846-10.18-54.97A196.274 196.274 0 0 0 302.074 64C294.971 82.529 277.027 95.69 256 95.69c-21.025 0-38.969-13.161-46.073-31.69a196.243 196.243 0 0 0-57.128 23.688c8.068 18.122 4.683 40.104-10.181 54.97-9.631 9.631-22.25 14.443-34.871 14.443a49.429 49.429 0 0 1-20.083-4.255A196.273 196.273 0 0 0 64 209.984c18.509 7.112 31.652 25.049 31.652 46.062 0 21.008-13.132 38.936-31.63 46.054a196.318 196.318 0 0 0 23.692 57.128 49.428 49.428 0 0 1 20.032-4.232c12.622 0 25.239 4.812 34.871 14.443 14.841 14.841 18.239 36.781 10.215 54.889a196.257 196.257 0 0 0 57.13 23.673c7.128-18.479 25.046-31.596 46.038-31.596 20.992 0 38.91 13.115 46.037 31.596a196.234 196.234 0 0 0 57.132-23.675c-8.023-18.106-4.626-40.046 10.216-54.887 9.629-9.632 22.248-14.444 34.868-14.444 6.836 0 13.67 1.411 20.033 4.233a196.318 196.318 0 0 0 23.692-57.128c-18.498-7.119-31.629-25.048-31.629-46.054zM256.9 335.9c-44.3 0-80-35.9-80-80 0-44.101 35.7-80 80-80 44.299 0 80 35.899 80 80 0 44.1-35.701 80-80 80z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-arrow-expand"><path d="M274 209.7l63.9-63.8L288 96h128v128l-49.9-49.9-63.8 63.9zM274 302.3l63.9 63.8L288 416h128V288l-49.9 49.9-63.8-63.9zM238 302.3l-63.9 63.8L224 416H96V288l49.9 49.9 63.8-63.9zM238 209.7l-63.9-63.8L224 96H96v128l49.9-49.9 63.8 63.9z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-expand"><path d="M396.795 396.8H320V448h128V320h-51.205zM396.8 115.205V192H448V64H320v51.205zM115.205 115.2H192V64H64v128h51.205zM115.2 396.795V320H64v128h128v-51.205z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-arrow-move"><path d="M480 256l-96-96v76H276V128h76l-96-96-96 96h76v108H128v-76l-96 96 96 96v-76h108v108h-76l96 96 96-96h-76.2l-.4-108.5 108.6.3V352z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-drag"><path d="M0 144h512v32H0zM0 240h512v32H0zM0 336h512v32H0z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-link"><path d="M74.6 256c0-38.3 31.1-69.4 69.4-69.4h88V144h-88c-61.8 0-112 50.2-112 112s50.2 112 112 112h88v-42.6h-88c-38.3 0-69.4-31.1-69.4-69.4zm85.4 22h192v-44H160v44zm208-134h-88v42.6h88c38.3 0 69.4 31.1 69.4 69.4s-31.1 69.4-69.4 69.4h-88V368h88c61.8 0 112-50.2 112-112s-50.2-112-112-112z"/></symbol>\n <symbol viewBox="0 0 512 512" id="ion-contrast"><path d="M256 32C132.3 32 32 132.3 32 256s100.3 224 224 224 224-100.3 224-224S379.7 32 256 32zm135.8 359.8C355.5 428 307 448 256 448V64c51 0 99.5 20 135.8 56.2C428 156.5 448 204.7 448 256c0 51.3-20 99.5-56.2 135.8z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-plus-empty"><path d="M384 265H264v119h-17V265H128v-17h119V128h17v120h120v17z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-thin-up"><path d="M349.7 189.8c-3.1 3.1-8 3-11.3 0L264 123.4V408c0 4.4-3.6 8-8 8s-8-3.6-8-8V123.4l-74.4 66.3c-3.4 2.9-8.1 3.2-11.2.1-3.1-3.1-3.3-8.5-.1-11.4 0 0 87-79.2 88-80s2.8-2.4 5.7-2.4 4.9 1.6 5.7 2.4 88 80 88 80c1.5 1.5 2.3 3.6 2.3 5.7s-.8 4.1-2.3 5.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-thin-down"><path d="M349.7 322.2c-3.1-3.1-8-3-11.3 0L264 388.6V104c0-4.4-3.6-8-8-8s-8 3.6-8 8v284.6l-74.4-66.3c-3.4-2.9-8.1-3.2-11.2-.1-3.1 3.1-3.3 8.5-.1 11.4 0 0 87 79.2 88 80s2.8 2.4 5.7 2.4 4.9-1.6 5.7-2.4 88-80 88-80c1.5-1.5 2.3-3.6 2.3-5.7s-.8-4.1-2.3-5.7z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-thin-left"><path d="M189.8 349.7c3.1-3.1 3-8 0-11.3L123.4 264H408c4.4 0 8-3.6 8-8s-3.6-8-8-8H123.4l66.3-74.4c2.9-3.4 3.2-8.1.1-11.2-3.1-3.1-8.5-3.3-11.4-.1 0 0-79.2 87-80 88S96 253.1 96 256s1.6 4.9 2.4 5.7 80 88 80 88c1.5 1.5 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-arrow-thin-right"><path d="M322.2 349.7c-3.1-3.1-3-8 0-11.3l66.4-74.4H104c-4.4 0-8-3.6-8-8s3.6-8 8-8h284.6l-66.3-74.4c-2.9-3.4-3.2-8.1-.1-11.2 3.1-3.1 8.5-3.3 11.4-.1 0 0 79.2 87 80 88s2.4 2.8 2.4 5.7-1.6 4.9-2.4 5.7-80 88-80 88c-1.5 1.5-3.6 2.3-5.7 2.3s-4.1-.8-5.7-2.3z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-close-empty"><path d="M340.2 160l-84.4 84.3-84-83.9-11.8 11.8 84 83.8-84 83.9 11.8 11.7 84-83.8 84.4 84.2 11.8-11.7-84.4-84.3 84.4-84.2z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-more-vertical"><path d="M296 136c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40zm0 240c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40zm0-120c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-quote"><path d="M192 64c-40.646 0-72.483 11.229-94.627 33.373C75.229 119.517 64 151.354 64 192v256h160V192h-96c0-23.056 4.922-39.666 14.627-49.373C152.334 132.922 168.944 128 192 128M416 64c-40.646 0-72.483 11.229-94.627 33.373C299.229 119.517 288 151.354 288 192v256h160V192h-96c0-23.056 4.922-39.666 14.627-49.373C376.334 132.922 392.944 128 416 128"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-code"><path d="M168 392a23.929 23.929 0 0 1-16.971-7.029l-112-112c-9.373-9.373-9.373-24.569 0-33.941l112-112c9.373-9.372 24.568-9.372 33.941 0 9.371 9.372 9.371 24.568 0 33.941L89.941 256l95.029 95.029c9.371 9.373 9.371 24.568 0 33.941A23.925 23.925 0 0 1 168 392zM344 392a23.929 23.929 0 0 0 16.971-7.029l112-112c9.373-9.373 9.373-24.569 0-33.941l-112-112c-9.373-9.372-24.568-9.372-33.941 0-9.371 9.372-9.371 24.568 0 33.941L422.059 256l-95.029 95.029c-9.371 9.373-9.371 24.568 0 33.941A23.925 23.925 0 0 0 344 392z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-camera"><path d="M430.4 147h-67.5l-40.4-40.8s-.2-.2-.3-.2l-.2-.2c-6-6-14.1-9.8-23.3-9.8h-84c-9.8 0-18.5 4.2-24.6 10.9v.1l-39.5 40h-69C63 147 48 161.6 48 180.2v202.1c0 18.6 15 33.7 33.6 33.7h348.8c18.5 0 33.6-15.1 33.6-33.7V180.2c0-18.6-15.1-33.2-33.6-33.2zM256 365.5c-50.9 0-92.4-41.6-92.4-92.6 0-51.1 41.5-92.6 92.4-92.6 51 0 92.4 41.5 92.4 92.6 0 51-41.4 92.6-92.4 92.6zm168.1-165c-7.7 0-14-6.3-14-14.1s6.3-14.1 14-14.1 14 6.3 14 14.1-6.3 14.1-14 14.1z"></path><path d="M256 202.9c-38.6 0-69.8 31.3-69.8 70 0 38.6 31.2 70 69.8 70 38.5 0 69.8-31.3 69.8-70s-31.3-70-69.8-70z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-move"><path d="M475.9 246.2l-79.4-79.4c-5.4-5.4-14.2-5.4-19.6 0l-.2.2c-5.4 5.4-5.4 14.2 0 19.6l54.9 54.9-161.8.5.5-161.8 54.9 54.9c5.4 5.4 14.2 5.4 19.6 0l.2-.2c5.4-5.4 5.4-14.2 0-19.6l-79.4-79.4c-5.4-5.4-14.2-5.4-19.6 0l-79.4 79.4c-5.4 5.4-5.4 14.2 0 19.6l.2.2c5.4 5.4 14.2 5.4 19.6 0l54.9-54.9.5 161.8-161.8-.5 54.9-54.9c5.4-5.4 5.4-14.2 0-19.6l-.2-.2c-5.4-5.4-14.2-5.4-19.6 0l-79.4 79.4c-5.4 5.4-5.4 14.2 0 19.6l79.4 79.4c5.4 5.4 14.2 5.4 19.6 0l.2-.2c5.4-5.4 5.4-14.2 0-19.6L80 270.5l161.8-.5-.5 161.8-54.9-54.9c-5.4-5.4-14.2-5.4-19.6 0l-.2.2c-5.4 5.4-5.4 14.2 0 19.6l79.4 79.4c5.4 5.4 14.2 5.4 19.6 0l79.4-79.4c5.4-5.4 5.4-14.2 0-19.6l-.2-.2c-5.4-5.4-14.2-5.4-19.6 0l-54.9 54.9-.5-161.8 161.8.5-54.9 54.9c-5.4 5.4-5.4 14.2 0 19.6l.2.2c5.4 5.4 14.2 5.4 19.6 0l79.4-79.4c5.5-5.4 5.5-14.2 0-19.6z"/></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-ok">\n <rect x="0" y="0" width="2048.00" height="2048.00" fill="none" />\n <g transform="matrix(1,0,0,1,1024.0,1024.0)">\n <path d="M330.323,493.628 L330.323,398.406 L-330.323,398.406 L-330.323,493.628 L330.323,493.628 Z " fill="currentColor" fill-opacity="1.00" />\n <path d="M230.718,468.568 L328.59,468.568 L328.59,-599.718 L230.718,-599.718 L230.718,468.568 Z " fill="currentColor" fill-opacity="1.00" />\n <path d="M-300.714,376.053 L-373.748,449.088 L-68.5805,754.255 L4.45387,681.221 L-300.714,376.053 Z " fill="currentColor" fill-opacity="1.00" />\n <path d="M-9.9476e-14,216.241 L-73.0344,143.207 L-378.202,448.375 L-305.168,521.409 L-9.9476e-14,216.241 Z " fill="currentColor" fill-opacity="1.00" />\n </g>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-grid"><path d="M160 153.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM288 153.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM416 153.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5z"></path><g><path d="M160 281.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM288 281.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM416 281.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5z"></path></g><g><path d="M160 409.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM288 409.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5zM416 409.3c0 3.7-3 6.7-6.7 6.7h-50.5c-3.7 0-6.7-3-6.7-6.7v-50.5c0-3.7 3-6.7 6.7-6.7h50.5c3.7 0 6.7 3 6.7 6.7v50.5z"></path></g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-gear-b"><path d="M448 294.4v-76.8h-42.8c-3.4-14.4-8.9-28-16.1-40.5l29.8-29.7-54.3-54.3-29.1 29.1c-12.6-7.7-26.4-13.5-41.1-17.3V64h-76.8v40.9c-14.7 3.8-28.5 9.7-41.1 17.3l-29.1-29.1-54.3 54.3 29.8 29.7c-7.2 12.5-12.6 26.1-16.1 40.5H64v76.8h44.1c3.8 13.7 9.5 26.6 16.7 38.6l-31.7 31.7 54.3 54.3 32.3-32.3c11.7 6.8 24.5 11.9 37.9 15.4v46h76.8v-46c13.5-3.5 26.2-8.6 37.9-15.4l32.3 32.3 54.3-54.3-31.6-31.7c7.2-11.9 12.9-24.8 16.7-38.6h44zm-192 15.4c-29.7 0-53.7-24.1-53.7-53.8s24-53.8 53.7-53.8 53.8 24.1 53.8 53.8-24.1 53.8-53.8 53.8z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-grid-view-outline"><path d="M448 192v-16H336V64h-16v112H192V64h-16v112H64v16h112v128H64v16h112v112h16V336h128v112h16V336h112v-16H336V192h112zM320 320H192V192h128v128z"></path></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-increase"><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M852.574,595.004 L852.574,507.837 L-852.574,507.837 L-852.574,595.004 L852.574,595.004 Z " /><path d="M852.574,224.232 L852.574,137.066 L-852.574,137.066 L-852.574,224.232 L852.574,224.232 Z " /><path d="M852.574,-134.971 L852.574,-222.138 L-852.574,-222.138 L-852.574,-134.971 L852.574,-134.971 Z " /><path d="M852.574,-505.743 L852.574,-592.909 L-852.574,-592.909 L-852.574,-505.743 L852.574,-505.743 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-decrease"><g transform="matrix(1,0,0,1,1024.0,1024.0)"><path d="M509.832,595.004 L509.832,507.837 L-509.832,507.837 L-509.832,595.004 L509.832,595.004 Z " /><path d="M509.832,224.232 L509.832,137.066 L-509.832,137.066 L-509.832,224.232 L509.832,224.232 Z " /><path d="M509.832,-136.947 L509.832,-224.113 L-509.832,-224.113 L-509.832,-136.947 L509.832,-136.947 Z " /><path d="M509.832,-505.743 L509.832,-592.909 L-509.832,-592.909 L-509.832,-505.743 L509.832,-505.743 Z " /></g></symbol>\n <symbol viewBox="0 0 2048.0 2048.0" id="icon-strike">\n <g transform="matrix(1,0,0,1,1024.0,1024.0)">\n <path d="M298.298,-653.766 C292.151,-624.873 284.005,-605.663 273.862,-596.135 C263.719,-586.607 250.656,-581.842 234.673,-581.842 C220.535,-581.842 196.253,-589.526 161.828,-604.895 C87.4454,-637.475 17.0588,-653.766 -49.3321,-653.766 C-155.68,-653.766 -243.28,-621.339 -312.129,-556.485 C-380.979,-491.631 -415.404,-414.328 -415.404,-324.578 C-415.404,-272.94 -403.724,-225.606 -380.364,-182.575 C-357.005,-139.544 -322.733,-100.201 -277.551,-64.5467 C-232.368,-28.8923 -156.295,18.903 -49.3321,78.8392 C57.631,138.775 123.1,177.964 147.074,196.406 C182.729,223.455 209.008,252.654 225.913,284.005 C242.819,315.357 251.271,346.401 251.271,377.137 C251.271,432.463 228.987,480.412 184.419,520.984 C139.851,561.556 79.1465,581.842 2.30524,581.842 C-64.0856,581.842 -125.098,567.089 -180.731,537.582 C-236.364,508.075 -277.704,471.037 -304.753,426.469 C-331.801,381.901 -353.316,314.742 -369.299,224.991 L-403.417,224.991 L-403.417,653.766 L-369.299,653.766 C-364.996,624.873 -358.388,605.817 -349.474,596.596 C-340.561,587.375 -328.42,582.764 -313.051,582.764 C-297.068,582.764 -259.109,592.446 -199.173,611.81 C-139.236,631.174 -99.74,642.393 -80.6834,645.467 C-48.7174,651 -14.5998,653.766 21.6692,653.766 C137.239,653.766 231.753,619.495 305.214,550.952 C378.674,482.41 415.404,400.804 415.404,306.136 C415.404,256.343 403.878,208.701 380.826,163.211 C357.773,117.721 324.885,78.2244 282.161,44.7216 C239.438,11.2188 159.676,-36.8838 42.8774,-99.5863 C-100.355,-176.428 -191.027,-237.901 -229.141,-284.005 C-255.574,-315.357 -268.791,-350.089 -268.791,-388.202 C-268.791,-437.995 -247.89,-482.41 -206.088,-521.445 C-164.287,-560.48 -111.42,-579.998 -47.4879,-579.998 C9.06727,-579.998 63.7783,-565.552 116.645,-536.66 C169.512,-507.767 210.238,-468.732 238.823,-419.554 C267.408,-370.375 287.233,-304.292 298.298,-221.303 L332.415,-221.303 L332.415,-653.766 L298.298,-653.766 Z " fill="currentColor" fill-opacity="1.00" /><path d="M-530.954,-41.4477 L-530.954,41.4477 L530.954,41.4477 L530.954,-41.4477 L-530.954,-41.4477 Z " fill="currentColor" fill-opacity="1.00" /></g></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-undo"><path d="M447.9 368.2c0-16.8 3.6-83.1-48.7-135.7-35.2-35.4-80.3-53.4-143.3-56.2V96L64 224l192 128v-79.8c40 1.1 62.4 9.1 86.7 20 30.9 13.8 55.3 44 75.8 76.6l19.2 31.2H448c0-10.1-.1-22.9-.1-31.8z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-redo"><path d="M64 400h10.3l19.2-31.2c20.5-32.7 44.9-62.8 75.8-76.6 24.4-10.9 46.7-18.9 86.7-20V352l192-128L256 96v80.3c-63 2.8-108.1 20.7-143.3 56.2C60.4 285.2 64 351.5 64 368.2c.1 8.9 0 21.7 0 31.8z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-arrow-dropdown"><path d="M128 192l128 128 128-128z"></path></symbol>\n <symbol viewBox="0 0 512 512" id="ion-social-twitter"><path d="M492 109.5c-17.4 7.7-36 12.9-55.6 15.3 20-12 35.4-31 42.6-53.6-18.7 11.1-39.4 19.2-61.5 23.5C399.8 75.8 374.6 64 346.8 64c-53.5 0-96.8 43.4-96.8 96.9 0 7.6.8 15 2.5 22.1-80.5-4-151.9-42.6-199.6-101.3-8.3 14.3-13.1 31-13.1 48.7 0 33.6 17.2 63.3 43.2 80.7-16-.4-31-4.8-44-12.1v1.2c0 47 33.4 86.1 77.7 95-8.1 2.2-16.7 3.4-25.5 3.4-6.2 0-12.3-.6-18.2-1.8 12.3 38.5 48.1 66.5 90.5 67.3-33.1 26-74.9 41.5-120.3 41.5-7.8 0-15.5-.5-23.1-1.4C62.8 432 113.7 448 168.3 448 346.6 448 444 300.3 444 172.2c0-4.2-.1-8.4-.3-12.5C462.6 146 479 129 492 109.5z"></path></symbol>\n <symbol viewBox="0 0 24 24" id="icon-zoom-in" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <circle cx="10" cy="10" r="7"></circle>\n <line x1="7" y1="10" x2="13" y2="10"></line>\n <line x1="10" y1="7" x2="10" y2="13"></line>\n <line x1="21" y1="21" x2="15" y2="15"></line>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-android-contract"><path d="M64 371.2h76.795V448H192V320H64v51.2zm76.795-230.4H64V192h128V64h-51.205v76.8zM320 448h51.2v-76.8H448V320H320v128zm51.2-307.2V64H320v128h128v-51.2h-76.8z"></path></symbol>\n \n <symbol viewBox="0 0 24 24" id="icon-lock-off" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <line x1="3" y1="3" x2="21" y2="21" />\n <path d="M19 19a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h4m4 0h2a2 2 0 0 1 2 2v2" />\n <circle cx="12" cy="16" r="1" />\n <path d="M8 11v-3m.712 -3.278a4 4 0 0 1 7.288 2.278v4" />\n </symbol>\n <symbol viewBox="0 0 24 24" id="icon-lock" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"/>\n <rect x="5" y="11" width="14" height="10" rx="2" />\n <circle cx="12" cy="16" r="1" />\n <path d="M8 11v-4a4 4 0 0 1 8 0v4" />\n </symbol>\n <symbol viewBox="0 0 24 24" id="icon-code" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z"/>\n <polyline points="7 8 3 12 7 16" />\n <polyline points="17 8 21 12 17 16" />\n <line x1="14" y1="4" x2="10" y2="20" />\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-ios-cloud-upload-outline">\n <path d="M193.3 260.4l-11.6-11.6 74.5-74.3 74.5 74.3-11.7 11.6-54.6-54.6v241.8h-16.5V205.8z"/>\n <path d="M399.3 183.6c0-1.2.2-2.4.2-3.6 0-64.3-52.8-116.4-116.8-116.4-46.1 0-85.8 27.1-104.4 66.3-8.1-4.1-17.1-6.4-26.8-6.4-29.6 0-54.1 23.6-58.9 52C57.4 187.6 32 222.2 32 261.8c0 49.7 40.1 90.2 89.6 90.2H213v-16h-90.6c-40.9 0-74.2-33.5-74.2-74.6 0-31.8 20.2-61.2 50.2-71.6l8.4-2.9 1.5-8.8c3.6-21.6 22.1-39.3 43.9-39.3 6.9 0 13.7 1.6 19.9 4.8l13.5 6.8 6.5-13.7c16.6-34.9 52.1-57.4 90.4-57.4 55.3 0 100.9 43.3 100.9 98.9 0 13.3-.2 20.3-.2 20.3l15.2.1c36.6.5 65.6 33.4 65.6 70.3 0 36.8-29.8 66.9-66.5 67.1H297v16h101c45 0 82-37.3 82-82.8s-35.5-85.5-80.7-85.6z"/>\n </symbol>\n <symbol viewBox="0 0 512 512" id="ion-volume-medium">\n <path d="M270 407.7V104.4L175.3 192H71v128h104.3zm56.3-52.1c20.5-27.8 32.8-62.3 32.8-99.6 0-37.4-12.3-71.8-32.8-99.6l-20.4 15.3c17.4 23.6 27.8 52.7 27.8 84.3 0 31.6-10.4 60.7-27.8 84.3l20.4 15.3zm66.5 46c30-40.7 48-91 48-145.6s-18-104.9-48-145.6l-20.4 15.3c26.9 36.4 43 81.4 43 130.3 0 48.9-16.1 93.8-43 130.3l20.4 15.3z"/>\n </symbol>\n\n <symbol id="icon-list-search" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M15 15m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0"></path>\n <path d="M18.5 18.5l2.5 2.5"></path>\n <path d="M4 6h16"></path>\n <path d="M4 12h4"></path>\n <path d="M4 18h4"></path>\n </symbol>\n <symbol id="icon-folder" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2"></path>\n </symbol>\n <symbol id="icon-folder-media" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-11a2 2 0 0 1 2 -2"></path>\n\n <path d="M12 20h-5a3 3 0 0 1 -3 -3v-10a3 3 0 0 1 3 -3h10a3 3 0 0 1 3 3v5"></path>\n <path d="M4 15l4 -4c.928 -.893 2.072 -.893 3 0l4 4"></path>\n <path d="M14 14l1 -1c.617 -.593 1.328 -.793 2.009 -.598"></path>\n </symbol>\n\n <symbol id="icon-reload" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M19.933 13.041a8 8 0 1 1 -9.925 -8.788c3.899 -1.002 7.935 1.007 9.425 4.747"></path>\n <path d="M20 4v5h-5"></path>\n </symbol>\n <symbol id="icon-devices" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="13" y="8" width="8" height="12" rx="1"></rect>\n <path d="M18 8v-3a1 1 0 0 0 -1 -1h-13a1 1 0 0 0 -1 1v12a1 1 0 0 0 1 1h9"></path>\n <line x1="16" y1="9" x2="18" y2="9"></line>\n </symbol> \n <symbol id="icon-device-desktop" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="3" y="4" width="18" height="12" rx="1"></rect>\n <line x1="7" y1="20" x2="17" y2="20"></line>\n <line x1="9" y1="16" x2="9" y2="20"></line>\n <line x1="15" y1="16" x2="15" y2="20"></line>\n </symbol>\n <symbol id="icon-device-mobile" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="6" y="3" width="12" height="18" rx="2"></rect>\n <line x1="11" y1="4" x2="13" y2="4"></line>\n <line x1="12" y1="17" x2="12" y2="17.01"></line>\n </symbol>\n <symbol id="icon-device-laptop" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <line x1="3" y1="19" x2="21" y2="19"></line>\n <rect x="5" y="6" width="14" height="10" rx="1"></rect>\n </symbol>\n <symbol id="icon-device-tablet" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <rect x="5" y="3" width="14" height="18" rx="1"></rect>\n <circle cx="12" cy="17" r="1"></circle>\n </symbol>\n\n <symbol id="icon-eye" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0m13 0c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7"></path>\n </symbol>\n <symbol id="icon-eye-off" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M9.88 9.878a3 3 0 1 0 4.243 4.242m.581 -3.42a3.012 3.012 0 0 0 -1.45 -1.426m-3.877 -3.913a9.469 9.469 0 0 1 2.623 -.361c4 0 7.333 2.333 10 7c-.778 1.362 -1.613 2.524 -2.504 3.489m-2.138 1.859c-1.629 1.101 -3.415 1.652 -5.358 1.652c-4 0 -7.333 -2.333 -10 -7c1.374 -2.404 2.924 -4.189 4.652 -5.354m-3.652 -3.646l18 18"></path>\n </symbol>\n\n <symbol id="icon-download" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"></path>\n <path d="M7 11l5 5l5 -5"></path>\n <path d="M12 4l0 12"></path>\n </symbol>\n\n <symbol id="icon-message-search" viewBox="0 0 24 24" stroke-width="1" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="none" d="M0 0h24v24H0z" fill="none"></path>\n <path d="M8 9h8"></path>\n <path d="M8 13h5"></path>\n <path d="M12 21l-.5 -.5l-2.5 -2.5h-3a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v4.5"></path>\n <path d="M18 18m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"></path>\n <path d="M20.2 20.2l1.8 1.8"></path>\n </symbol>\n \n </defs>\n </svg>'),this.preferences=new Hm(this),(t=>{const e=t.util,i=t.builderStuff,n=new Ti(t),o=new Ei(t),s=t.dom;let r="";t.opts.rowHtmlEditor&&(r=`<button tabindex="-1" title="${e.out("HTML")}" class="row-html">\n <svg class="is-icon-flex" style="margin-right:-3px;width:12px;height:12px;"><use xlink:href="#ion-ios-arrow-left"></use></svg><svg class="is-icon-flex" style="margin-left:-2px;width:12px;height:12px;"><use xlink:href="#ion-ios-arrow-right"></use></svg>\n </button>`);let l="";t.opts.columnHtmlEditor&&(l=`<button tabindex="-1" title="${e.out("HTML")}" class="cell-html">\n <svg class="is-icon-flex" style="margin-right:-3px;width:12px;height:12px;"><use xlink:href="#ion-ios-arrow-left"></use></svg><svg class="is-icon-flex" style="margin-left:-2px;width:12px;height:12px;"><use xlink:href="#ion-ios-arrow-right"></use></svg>\n </button>`);const a=`<div class="is-modal is-modal-content grideditor" tabindex="-1" role="dialog" aria-modal="true" aria-hidden="true">\n <div class="is-modal-bar is-draggable">\n <button class="is-modal-close" tabindex="-1" title="${e.out("Close")}">&#10005;</button>\n </div>\n <div style="padding:13px 0 5px 18px;font-size:10px;text-transform:uppercase;letter-spacing:1px;">${e.out("Row")}</div>\n <div style="display:flex;flex-flow:wrap;">\n <button tabindex="-1" title="${e.out("Add")}" class="row-add"><svg class="is-icon-flex" style="width:19px;height:19px;"><use xlink:href="#ion-ios-plus-empty"></use></svg></button>\n <button tabindex="-1" title="${e.out("Duplicate")}" class="row-duplicate" style="display: block;"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-photos-outline"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Up")}" class="row-up" style="display: block;"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-up"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Down")}" class="row-down" style="display: block;"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-down"></use></svg></button>\n ${r}\n <button tabindex="-1" title="${e.out("Delete")}" class="row-remove"><svg class="is-icon-flex" style="width:20px;height:20px;"><use xlink:href="#ion-ios-close-empty"></use></svg></button>\n </div>\n <div style="padding:8px 0 5px 18px;font-size:11px;text-transform:uppercase;letter-spacing:1px;">${e.out("Column")}</div>\n <div style="display:flex;flex-flow:wrap;">\n <button tabindex="-1" title="${e.out("Add")}" class="cell-add"><svg class="is-icon-flex" style="width:19px;height:19px;"><use xlink:href="#ion-ios-plus-empty"></use></svg></button>\n <button tabindex="-1" title="${e.out("Duplicate")}" class="cell-duplicate"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-photos-outline"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Up")}" class="cell-up"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-up"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Down")}" class="cell-down"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-down"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Left")}" class="cell-prev"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-left"></use></svg></button>\n <button tabindex="-1" title="${e.out("Move Right")}" class="cell-next"><svg class="is-icon-flex" style="width:15px;height:15px;"><use xlink:href="#ion-ios-arrow-thin-right"></use></svg></button>\n <button tabindex="-1" title="${e.out("Increase")}" class="cell-increase"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#icon-increase"></use></svg></button>\n <button tabindex="-1" title="${e.out("Decrease")}" class="cell-decrease"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#icon-decrease"></use></svg></button>\n ${l}\n <button tabindex="-1" title="${e.out("Delete")}" class="cell-remove"><svg class="is-icon-flex" style="width:20px;height:20px;"><use xlink:href="#ion-ios-close-empty"></use></svg></button>\n <button tabindex="-1" title="${e.out("Lock")}" class="cell-locking"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#icon-lock"></use></svg></button>\n <button tabindex="-1" title="${e.out("Column Settings")}" class="cell-settings"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-gear"></use></svg></button>\n \n <div class="is-separator">\n <button tabindex="-1" title="${e.out("Outline")}" class="grid-outline"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-grid-view-outline"></use></svg></button>\n \x3c!--<button tabindex="-1" title="${e.out("Element Tool")}" class="cell-elmtool"><svg class="is-icon-flex" style="width:12px;height:12px;"><use xlink:href="#ion-ios-gear"></use></svg></button>--\x3e\n </div>\n </div>\n </div>`;s.appendHtml(i,a),new Pi({selector:".is-draggable"});const d=document.querySelector(".grideditor");document.addEventListener("click",(t=>{var e=(t=t||window.event).target||t.srcElement;if(s.hasClass(d,"active")){let t=s.parentsHasClass(e,"is-builder"),i=s.parentsHasClass(e,"grideditor"),n=s.parentsHasClass(e,"is-modal"),o=s.parentsHasClass(e,"is-pop"),r=s.parentsHasClass(e,"rte-grideditor")||s.hasClass(e,"rte-grideditor");if(t||i||n||o||r)return void(d.style.display="");d.style.display="none"}}),!1);let c=d.querySelector(".is-modal-close");s.addEventListener(c,"click",(()=>{s.removeClass(d,"active");const e=t.doc.querySelectorAll(t.opts.container);Array.prototype.forEach.call(e,(t=>{t.removeAttribute("grideditor")}))}));const u=d.querySelector(".grid-outline");s.addEventListener(u,"click",(()=>{const e=t.doc.querySelectorAll(t.opts.container);Array.prototype.forEach.call(e,(t=>{t.hasAttribute("gridoutline")?(t.removeAttribute("gridoutline"),s.removeClass(u,"on")):(t.setAttribute("gridoutline",""),s.addClass(u,"on"))}))}));const h=qi(t),p=d.querySelector(".cell-add");s.addEventListener(p,"click",(()=>{h.querySelector(".is-pop-tabs").style.display="flex";const t=p.getBoundingClientRect().top+window.pageYOffset,i=p.getBoundingClientRect().left+window.pageXOffset;e.showPop(h,!1,p);const n=h.offsetWidth;h.style.top=t+"px",h.style.left=i-n-8+"px",s.removeClass(h,"arrow-bottom"),s.removeClass(h,"arrow-left"),s.removeClass(h,"arrow-top"),s.removeClass(h,"center"),s.removeClass(h,"left"),s.addClass(h,"arrow-right"),s.addClass(h,"right"),"left"===h.querySelector(".active").getAttribute("data-value")?h.setAttribute("data-mode","cell-left"):h.setAttribute("data-mode","cell-right")})),c=d.querySelector(".cell-prev"),s.addEventListener(c,"click",(()=>{n.moveColumnPrevious(),e.clearControls()})),c=d.querySelector(".cell-next"),s.addEventListener(c,"click",(()=>{n.moveColumnNext(),e.clearControls()})),c=d.querySelector(".cell-increase"),s.addEventListener(c,"click",(()=>{n.increaseColumn(),e.clearControls()})),c=d.querySelector(".cell-decrease"),s.addEventListener(c,"click",(()=>{n.decreaseColumn(),e.clearControls()})),c=d.querySelector(".cell-up"),s.addEventListener(c,"click",(()=>{n.moveColumnUp(),e.clearControls()})),c=d.querySelector(".cell-down"),s.addEventListener(c,"click",(()=>{n.moveColumnDown(),e.clearControls()})),c=d.querySelector(".cell-duplicate"),s.addEventListener(c,"click",(()=>{n.duplicateColumn(),e.clearControls()})),c=d.querySelector(".cell-remove"),s.addEventListener(c,"click",(()=>{n.removeColumn(),e.clearControls()}));const g=d.querySelector(".cell-html");g&&s.addEventListener(g,"click",(()=>{e.cellSelected()&&o.view("cell",!1,g)}));const m=d.querySelector(".cell-settings");m&&s.addEventListener(m,"click",(()=>{const i=e.cellSelected();if(!i)return;t.colTool.readCellStyles(i),e.saveSelection();const n=document.querySelector(".is-modal.columnsettings");e.showModal(n,!1,(()=>{"flex"===t.builderStuff.querySelector(".is-rte-tool").style.display&&(e.restoreSelection(),m.removeAttribute("data-focus"),m.focus())})),m.setAttribute("data-focus",!0)}));const f=d.querySelector(".cell-locking");f&&s.addEventListener(f,"click",(i=>{let n=e.cellSelected();n&&(n.hasAttribute("data-noedit")?(n.removeAttribute("data-noedit"),n.contentEditable=!0,s.removeClass(f,"on")):(n.setAttribute("data-noedit",""),n.contentEditable=!1,s.addClass(f,"on"),e.clearActiveElement(!0)),t.colTool.showHideLockIndicator(n),t.element.applyBehavior(n),i.preventDefault())}));const b=d.querySelector(".row-add");s.addEventListener(b,"click",(()=>{h.querySelector(".is-pop-tabs").style.display="none";const t=b.getBoundingClientRect().top+window.pageYOffset,i=b.getBoundingClientRect().left+window.pageXOffset;e.showPop(h,!1,b);const n=h.offsetWidth;h.style.top=t+"px",h.style.left=i-n-8+"px",s.removeClass(h,"arrow-bottom"),s.removeClass(h,"arrow-left"),s.removeClass(h,"arrow-top"),s.removeClass(h,"center"),s.removeClass(h,"left"),s.addClass(h,"arrow-right"),s.addClass(h,"right"),h.setAttribute("data-mode","row")})),c=d.querySelector(".row-up"),s.addEventListener(c,"click",(()=>{n.moveRowUp(),e.clearControls()})),c=d.querySelector(".row-down"),s.addEventListener(c,"click",(()=>{n.moveRowDown(),e.clearControls()})),c=d.querySelector(".row-duplicate"),s.addEventListener(c,"click",(()=>{n.duplicateRow(),e.clearControls()})),c=d.querySelector(".row-remove"),s.addEventListener(c,"click",(()=>{n.removeRow(),e.clearControls()}));const v=d.querySelector(".row-html");v&&s.addEventListener(v,"click",(()=>{e.cellSelected()&&o.view("row",!1,v)}))})(this),this.preview=!1;const u=this.doc.querySelectorAll(this.opts.container);Array.prototype.forEach.call(u,(t=>{this.dom.hasClass(t,"preview")&&(this.preview=!0)})),this.preview||this.opts.snippetJSON.snippets.length>0&&Vo(this),this.colTool=new am(this),this._rowTool=new rm(this),this.livePreview=new sf(this),this.mediaPicker=new nf(this);var h=this.opts.onChange;if(this.opts.onChange=()=>{var t=h.apply(this,arguments);return this.activeCol&&this.util.repositionColumnTool(),this.elmTool.repositionElementTool(!0),this.element.image.imageTool.style.display="",this.element.module.moduleTool.style.display="",this.colTool.lockIndicator.style.display="",t},this.elmTool=new Pm(this),this.element=new Pg(this),this.rte=new jm(this),this.tooltip=new Vm(this),this.lightbox=new Xm(this),this.preview||this.applyBehavior(),!this.preview)if(this.opts.plugins.length>0)this.loadPlugins();else if(void 0===this.opts.scriptPath&&""===this.opts.pluginPath);else if(!this.opts.disableConfig){let t=this.opts.scriptPath+"config.js";""!==this.opts.pluginPath&&(t=this.opts.pluginPath+"config.js"),this.loadScript(t).then((()=>{this.opts.plugins.length>0&&this.loadPlugins()}),(()=>{console.log("Fail to load config")}))}this.tabs=new Qm,this.colorPicker=new Fg({lang:this.opts.lang,colors:this.opts.colors}),this.colorClassPicker=new Um({lang:this.opts.lang}),this.ShortcutInfo=new Zm(this),this.opts.isContentBox||null!==localStorage.getItem("_dictation")&&localStorage.removeItem("_dictation"),this.dictation=new cf({},this),this.lib=new rf(this),this.similarity=new pf(this),this.iframe&&(this.win.addEventListener("scroll",this.doWindowScroll=()=>{this.util.hidePops()}),this.win.addEventListener("resize",this.doWindowResize=()=>{this.util.clearActiveCell(),this.util.clearControls()})),document.addEventListener("click",this.doDocumentClick=t=>{let e,i=(t=t||window.event).target||t.srcElement;if(!i)return;i.parentNode&&(e=this.dom.hasClass(i.parentNode,"is-builder"));let n=this.dom.hasClass(i,"is-builder"),o=!1,s=!1,r=!1,a=!1,d=!1,c=!1,u=!1,h=!1,p=!1,g=!1,m=!1,f=!1,b=!1,v=!1,y=!1,x=i;for(;x&&x.tagName&&"BODY"!==x.tagName&&"HTML"!==x.tagName;){if(this.dom.hasClass(x,"is-builder")&&(o=!0),this.dom.hasClass(x,"is-subblock")&&(v=!0),this.dom.hasClass(x,"is-modal")&&(s=!0),(this.dom.hasClass(x,"is-side")||this.dom.hasClass(x,"is-sidebar"))&&(r=!0),this.dom.hasClass(x,"is-pop")&&(a=!0),this.dom.hasClass(x,"is-tool")&&(d=!0),(this.dom.hasClass(x,"is-rte-tool")||this.dom.hasClass(x,"is-elementrte-tool"))&&(c=!0),this.dom.hasClass(x,"is-rte-pop")&&(u=!0),this.dom.hasClass(x,"row-add-initial")&&(h=!0),(this.dom.hasClass(x,"sl-wrapper")||this.dom.hasClass(x,"sl-overlay")||this.dom.hasClass(x,"sl-close"))&&(p=!0),(this.dom.hasClass(x,"is-selectbox")||this.dom.hasClass(x,"is-selectbox-options"))&&(g=!0),this.opts.specialElementClasses)for(let t=0;t<this.opts.specialElementClasses.length;t++)this.dom.hasClass(x,this.opts.specialElementClasses[t])&&(y=!0);"divImageTool"===x.id&&(m=!0),"divImageResizer"===x.id&&(f=!0),this.preserveSelection&&(b=!0),x=x.parentNode}if(!g){let t=document.querySelectorAll(".is-selectbox-options");Array.prototype.forEach.call(t,(t=>{t.style.display="none"}))}let w=!1,S=document.querySelector("#divImageResizer");if(S&&"1"===S.getAttribute("data-resized")&&(w=!0),!w){if(!(s||p||m||f||"img"===i.tagName.toLowerCase())){document.querySelector("#divImageTool").style.display="";let t=document.querySelector("#divImageResizer");t.style.display="none",t.style.top="-10px",t.style.left="-10px",t.style.width="1px",t.style.height="1px",this.moveable&&(this.moveable.updateRect(),document.querySelector(".moveable-control-box").style.display="none")}if(!(o||v||s||r||a||d||c||u||h||p||b||y)||e&&!h||n){if(!this.dom.getSelected()){document.querySelector(".is-modal.active:not(.is-modal-content)")||(l.clearActiveCell(),l.clearControls(),"auto"!==this.toolbarDisplay&&this.rte.showDefaultToolbar())}this.element.hyperlink.buttonEditor.hide()}if(this.activeLinkButton||this.activeButton||i.closest(".buttoneditor")||i.closest(".link-button-edit")||i.closest(".is-modal")||this.element.hyperlink.buttonEditor.hide(),!a&&!this.dom.parentsHasId(i,"_cbhtml")){const t=document.querySelectorAll(".is-pop");Array.prototype.forEach.call(t,(t=>{this.dom.parentsHasId(t,"_cbhtml")||(t.style.display="")}))}}}),this.iframe&&this.doc.addEventListener("click",this.doDocumentClick),this.doc.addEventListener("mousedown",this.doDocumentMousedown=t=>{var e=(t=t||window.event).target||t.srcElement;this.dom.parentsHasClass(e,"row-handle")&&l.clearControls()}),document.addEventListener("keydown",this.doDocumentKeydown=t=>{90===t.which&&(t.ctrlKey||t.metaKey)&&(t.shiftKey?this.uo.doRedo():t.altKey||this.uo.doUndo()),89===t.which&&t.ctrlKey&&(t.altKey||this.uo.doRedo());(t.ctrlKey||t.metaKey)&&191===t.which&&this.ShortcutInfo.open()}),this.iframe&&this.doc.addEventListener("keydown",this.doDocumentKeydown),document.body.addEventListener("mscontrolselect",(function(t){t.preventDefault()})),window._cb=this,window.applyLargerImage=this.applyLargerImage.bind(this),window.returnUrl=this.returnUrl.bind(this),window.selectFile=this.selectFile.bind(this),window.selectImage=this.selectImage.bind(this),window.selectVideo=this.selectVideo.bind(this),window.selectAsset=this.selectAsset.bind(this),window.assetType=this.assetType.bind(this),window.hideModal=this.hideModal.bind(this),setTimeout((()=>{(null!=localStorage.getItem("_livepreview")||this.opts.livePreviewOpen)&&this.openPreview()}),300)}static run(t={}){return new gf(t)}setZoom(){if(""!==this.opts.page){const t=this.doc.querySelector(this.opts.page);t.style.transform=`scale(${this.opts.zoom})`,this.setZoomOnControl(t)}else{this.doc.querySelectorAll(this.opts.container).forEach((t=>{let e=!1;t.style.transform||(e=!0),e&&(t.style.transition="none"),t.style.transform=`scale(${this.opts.zoom})`,e&&setTimeout((()=>{t.style.transition=""}),300),this.setZoomOnControl(t)}))}}backwardCompatible(){this.builderStuff.querySelector('style[data-rel="css-new"]')||this.builderStuff.insertAdjacentHTML("afterbegin",'\n <style data-rel="css-new">\n \n .row-active .is-col-tool {\n display: flex;\n }\n .is-builder[rowoutline] .row-active .is-col-tool {\n display: none;\n }\n .is-builder[hidecolumntool] .row-active .is-col-tool {\n display: none;\n }\n\n .is-tool.is-col-tool {\n flex-direction: row;\n margin-top: 0px;\n margin-left: -1px;\n }\n .is-tool.is-col-tool button {\n width: 25px;\n height: 25px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .is-tool.is-col-tool .cell-add {\n background: #0fcc52;\n }\n .is-tool.is-col-tool .cell-more {\n background: rgba(216, 200, 6, 0.9);\n }\n .is-tool.is-col-tool .cell-remove {\n background: rgba(255, 85, 4, 0.9);\n }\n .is-tool.is-col-tool svg {\n width: 23px;\n height: 23px;\n fill: #fff !important;\n }\n .is-tool.is-col-tool .cell-more svg {\n width: 14px;\n height: 14px;\n }\n\n\n .is-builder[gray] .is-tool.is-col-tool {\n background: rgba(243, 243, 243, 0.9);\n flex-direction: row;\n top:-3px;\n margin-top: 0px;\n margin-left: -1px;\n }\n .is-builder[gray] .is-tool.is-col-tool button {\n width: 27px;\n height: 27px;\n }\n .is-builder[gray] .is-tool.is-col-tool .cell-add {\n background: transparent;\n }\n .is-builder[gray] .is-tool.is-col-tool .cell-more {\n background: transparent;\n }\n .is-builder[gray] .is-tool.is-col-tool .cell-remove {\n background: transparent;\n }\n .is-builder[gray] .is-tool.is-col-tool svg {\n width: 18px;\n height: 18px;\n fill: #000 !important;\n }\n .is-builder[gray] .is-tool.is-col-tool .cell-more svg {\n width: 12px;\n height: 12px;\n }\n\n\n .is-col-tool svg {\n display: initial !important;\n }\n \n \n </style>\n ')}setZoomOnControl(t){t.querySelectorAll(".is-row-tool").forEach((t=>{t.style.transform=`scale(${1/this.opts.zoom})`,t.style.transformOrigin="top"}));t.querySelectorAll(".is-col-tool").forEach((t=>{t.style.transform=`scale(${1/this.opts.zoom})`,t.style.transformOrigin="top left",t.style.marginTop=-27/this.opts.zoom+"px"}));t.querySelectorAll(".is-rowadd-tool button").forEach((t=>{t.style.transform=`scale(${1/this.opts.zoom})`}))}setZoomOnArea(){if(""!==this.opts.page){this.doc.querySelector(this.opts.page).style.transform=`scale(${this.opts.zoom})`}else{this.doc.querySelectorAll(this.opts.container).forEach((t=>{let e=!1;t.style.transform||(e=!0),e&&(t.style.transition="none"),t.style.transform=`scale(${this.opts.zoom})`,e&&setTimeout((()=>{t.style.transition=""}),300)}))}}applyBehavior(){null!==localStorage.getItem("_zoom")&&(this.opts.zoom=localStorage.getItem("_zoom")),this.rte.rteZoomSlider.value=100*this.opts.zoom;const t=this.doc.querySelectorAll(this.opts.container);Array.prototype.forEach.call(t,(t=>{this.applyBehaviorOn(t),this.contentReformatOn(t)})),this.opts.onRender(),this.setZoomOnArea()}contentReformatOn(t){this.opts.useCssClasses&&this.dom.contentReformat(t,this.opts.cssClasses)}applyBehaviorOn(t){const e=this.util;if(this.opts.absolutePath){let e=t.querySelectorAll("a");Array.prototype.forEach.call(e,(t=>{let e=t.href;t.setAttribute("href",e)}));let i=t.querySelectorAll("img");Array.prototype.forEach.call(i,(t=>{let e=t.src;t.setAttribute("src",e)}))}this.dom.addClass(t,"is-builder"),this.preferences.initBuilder(t);if(this.dom.elementChildren(t).forEach((t=>{if(this.dom.hasClass(t,"row-add-initial"))return;(t.style.marginLeft||t.style.marginRight)&&(t.style.border="none"),this._rowTool.render(t);new lm(this).render(t);this.dom.elementChildren(t).forEach((t=>{if(this.dom.hasClass(t,"is-row-tool")||this.dom.hasClass(t,"is-col-tool")||this.dom.hasClass(t,"is-rowadd-tool"))return;"readonly"===t.getAttribute("data-mode")&&(t.setAttribute("data-noedit",""),t.removeAttribute("data-mode")),"readonly-protected"===t.getAttribute("data-mode")&&(t.setAttribute("data-protected",""),t.removeAttribute("data-mode"));let e=!1;t.hasAttribute("data-noedit")&&(e=!0);let i=!1;t.hasAttribute("data-protected")&&(i=!0);let n=!1;if(t.hasAttribute("data-html")&&(n=!0),!n&&!e&&!i){const e=t.innerText.trim();(t.querySelectorAll("p,h1,h2,h3,h4,h5,h6,table,ul,ol,pre,blockquote,code,figcaption,label,legend,button,a,span").length>0||""!==e)&&(t.contentEditable=!0)}this.element.applyBehavior(t),t.getAttribute("data-click")||(t.addEventListener("click",this.handleCellClick.bind(this,t)),t.addEventListener("keydown",this.handleCellKeypress.bind(this)),t.addEventListener("keydown",this.handleCellKeydown.bind(this,t)),t.addEventListener("keyup",this.handleCellKeyup.bind(this,t)),t.addEventListener("paste",this.handleCellPaste.bind(this)),t.setAttribute("data-click",!0))}))})),!t.getAttribute("data-sort")&&!t.hasAttribute("nogrid")){let i=new Co(t,{scroll:!0,group:"shared",animation:300,handle:".row-handle",sort:!0,onChoose:()=>{let t;if(""!==this.opts.page){const e=this.doc.querySelector(this.opts.page);t=this.dom.getScale(e)}else{const e=this.doc.querySelector(".is-builder");t=this.dom.getScale(e)}const e=`\n <style id="css-scale">\n .sortable-drag::before {\n transform: scale(${t});\n }\n </style>\n `;if(this.iframe){const t=this.contentStuff.querySelector("#css-scale");t&&t.parentNode.removeChild(t),this.contentStuff.insertAdjacentHTML("afterbegin",e)}else{const t=this.builderStuff.querySelector("#css-scale");t&&t.parentNode.removeChild(t),this.builderStuff.insertAdjacentHTML("afterbegin",e)}this.sectionDropSetup()},onStart:()=>{this.uo.saveForUndo(),this.elmTool.hide()},onEnd:()=>{this.util.checkEmpty(),this.sortableOnPage&&this.sortableOnPage.destroy()},onAdd:i=>{var n=i.item;if(n.getAttribute("data-id")){let i=n.getAttribute("data-id");const g=this.opts.snippetJSON.snippets.filter((t=>t.id+""===i&&t));var o,s=g[0].html,r=g[0].noedit;o=-1===s.indexOf('"row'),this.opts.emailMode&&(o=!1);var l=this.opts.row,a=this.opts.cols;if(""!==l&&12===a.length&&(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=(s=s.replace(new RegExp("row clearfix","g"),"row")).replace(new RegExp('"row',"g"),'"'+l)).replace(new RegExp("column full","g"),a[11])).replace(new RegExp("column half","g"),a[5])).replace(new RegExp("column third","g"),a[3])).replace(new RegExp("column fourth","g"),a[2])).replace(new RegExp("column fifth","g"),a[1])).replace(new RegExp("column sixth","g"),a[1])).replace(new RegExp("column two-third","g"),a[7])).replace(new RegExp("column two-fourth","g"),a[8])).replace(new RegExp("column two-fifth","g"),a[9])).replace(new RegExp("column two-sixth","g"),a[9])),s=s.replace(/{id}/g,e.makeId()),this.opts.onAdd&&(s=this.opts.onAdd(s)),this.opts.snippetPathReplace.length>0&&""!==this.opts.snippetPathReplace[0]){var d=new RegExp(this.opts.snippetPathReplace[0],"g");s=s.replace(d,this.opts.snippetPathReplace[1]);var c=this.opts.snippetPathReplace[0].replace(/\//g,"%2F"),u=this.opts.snippetPathReplace[1].replace(/\//g,"%2F"),h=new RegExp(c,"g");s=s.replace(h,u)}if(o)s=`<div class="${this.opts.row}"><div class="${this.opts.cols[this.opts.cols.length-1]}"${r?" data-noedit":""}>${s}</div></div>`,n.removeAttribute("draggable"),this.dom.removeClass(n,"snippet-item"),n.outerHTML=s;else{let t=this.dom.createElement("div");t.innerHTML=s;let i=t.querySelectorAll("[data-html]");Array.prototype.forEach.call(i,(t=>{s=(s=(s=decodeURIComponent(t.getAttribute("data-html"))).replace(/{id}/g,e.makeId())).replace(/<script>/g,""+(this.nonce?`<script nonce="${this.nonce}">`:"<script>"));for(var i=1;i<=20;i++)s=s.replace("[%HTML"+i+"%]",void 0===t.getAttribute("data-html-"+i)?"":decodeURIComponent(t.getAttribute("data-html-"+i)));t.innerHTML=s})),s=t.innerHTML,n.removeAttribute("draggable"),this.dom.removeClass(n,"snippet-item"),n.innerHTML="";var p=document.createRange();p.setStart(n,0),n.appendChild(p.createContextualFragment(s)),n.outerHTML=n.innerHTML}this.applyBehaviorOn(t),this.opts.onChange(),this.opts.onRender(),this.elmTool.hide()}}});this.sortableObjects.push(i),t.setAttribute("data-sort",!0)}const i=t.querySelectorAll('a[role="button"]');Array.prototype.forEach.call(i,(e=>{e.parentNode&&e.parentNode.parentNode&&e.parentNode.parentNode.parentNode===t&&(e.outerHTML=`\n <div style="white-space: nowrap;">\n ${e.outerHTML}\n </div>\n `)}));const n=t.querySelectorAll(".is-subblock");Array.prototype.forEach.call(n,(t=>{t.contentEditable=!0})),this.util.checkEmptyOn(t),this.setZoomOnControl(t)}html(t){const e=this.util,i=new Ei(this);if(t);else{const i=this.doc.querySelectorAll(this.opts.container);if(i.length>1){const n=e.cellSelected();t=n?n.parentNode.parentNode:i[0]}else t=i[0];if(""!==this.opts.page){const e=this.doc.querySelector(this.opts.page);e&&(t=e)}}this.cleanHtmlFormatting=!0;let n=i.readHtml(t);return this.cleanHtmlFormatting=!1,n}viewHtmlNormal(){new Ei(this).viewHtmlExternal()}readHtml(t,e,i,n){return new Ei(this).readHtml(t,e,i,n)}fromViewToActual(t){return new Ei(this).fromViewToActual(t)}colorpicker(t,e){return new Fg({onPick:t,color:e,colors:this.opts.colors,animateModal:this.opts.animateModal,elementToAnimate:this.opts.container,lang:this.opts.lang})}gradientpicker(){return new em({gradientcolors:this.opts.gradientcolors,colors:this.opts.colors,animateModal:this.opts.animateModal,elementToAnimate:this.opts.container,lang:this.opts.lang})}simpleColorPicker(t,e){return this.colorClassPicker.open(t,e)}destroy(){if(this.doc.body.classList.remove("data-editor"),document.removeEventListener("click",this.doDocumentClick,!1),document.removeEventListener("keydown",this.doDocumentKeydown,!1),document.removeEventListener("mousedown",this.doDocumentMousedown,!1),document.removeEventListener("click",this.doRteClick,!1),this.doc.removeEventListener("click",this.doHideSnippetHandler,!1),this.iframe&&(this.doc.removeEventListener("click",this.doDocumentClick,!1),this.doc.removeEventListener("keydown",this.doDocumentKeydown,!1),this.doc.removeEventListener("mousedown",this.doDocumentMousedown,!1),this.doc.removeEventListener("click",this.doRteClick,!1),this.win.removeEventListener("scroll",this.doWindowScroll,!1),this.win.removeEventListener("resize",this.doWindowResize,!1)),this.util.clearControls(),!this.util.builderStuff())return;const t=new Ei(this);if(""!==this.opts.page){const t=this.doc.querySelector(this.opts.page);t&&(t.style.transform="")}else{this.doc.querySelectorAll(this.opts.container).forEach((t=>{t.style.transform=""}))}const e=this.doc.querySelectorAll(this.opts.container);Array.prototype.forEach.call(e,(e=>{let i=t.readHtml(e,!1),n=this.doc.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(i))})),Array.prototype.forEach.call(e,(t=>{t.removeAttribute("data-sort"),this.dom.removeClass(t,"is-builder")})),Array.prototype.forEach.call(this.sortableObjects,(t=>{try{t.destroy()}catch(t){}})),this.moveable.destroy(),this.builderStuff.parentNode.removeChild(this.builderStuff),this.builderStuff=null,this.iframe&&(this.contentStuff.parentNode.removeChild(this.contentStuff),this.contentStuff=null)}saveImages(t,e,i){new Wm({page:this.opts.page,container:this.opts.container,customval:this.opts.customval,handler:t,onComplete:e,onBase64Upload:i||null},this).save()}clearFont(){this.rte.clearFont()}applyFont(t,e,i){this.rte.applyFont(t,e,i)}setFont(t,e,i,n){this.rte.setFont(t,e,i,n)}addIcon(t){this.rte.addIcon(t)}applyLargerImage(t){let e=document.querySelectorAll(".form-upload-larger");Array.prototype.forEach.call(e,(e=>{this.dom.hasClass(e,"please-wait")&&(this.dom.removeClass(e,"please-wait"),e.parentNode.parentNode.querySelector('input[type="text"]').value=t,e.parentNode.parentNode.querySelector('input[type="file"]').value="")}))}returnUrl(t){let e=document.querySelectorAll(".form-upload-larger");Array.prototype.forEach.call(e,(e=>{this.dom.hasClass(e,"please-wait")&&(this.dom.removeClass(e,"please-wait"),e.parentNode.parentNode.querySelector('input[type="text"]').value=t,e.parentNode.parentNode.querySelector('input[type="file"]').value="")})),this.opts.assetRefresh=!0}openMediaPicker(t,e="media",i,n){this.mediaPicker.openMediaPicker(t,e,i,n)}openImagePicker(t,e,i){this.colTool.openImagePicker(t,e,i)}openImageAdjust(t,e,i){2===this.opts.imageAdjust?this.colTool.openImageAdjust2(t,e):this.colTool.openImageAdjust(t,e,i)}selectFile(t){this.selectAsset(t)}selectImage(t){this.selectAsset(t)}selectVideo(t){this.selectAsset(t)}selectAsset(t){let e=t.split(".").pop().split("?")[0].split("#")[0];e=e.toLowerCase();let i=!1;if("all"===this.targetAssetType?i=!0:"media"===this.targetAssetType?"jpg"===e||"jpeg"===e||"png"===e||"gif"===e||"webm"===e||"webp"===e||"mp4"===e?i=!0:alert(this.util.out("Please select an image or video file.")):"image"===this.targetAssetType?"jpg"===e||"jpeg"===e||"png"===e||"gif"===e||"webm"===e||"webp"===e?i=!0:alert(this.util.out("Please select an image file.")):"video"===this.targetAssetType?"mp4"===e?i=!0:alert(this.util.out("Please select an mp4 file.")):"audio"===this.targetAssetType&&("mp3"===e?i=!0:alert(this.util.out("Please select an mp3 file."))),i){this.targetInput.value=t,"inpCellLinkSource"===this.targetInput.id&&this.targetCallback();let e=document.querySelector(".is-modal.videoselect.active");e&&this.hideModal(e),e=document.querySelector(".is-modal.imageselect.active"),e&&this.hideModal(e),e=document.querySelector(".is-modal.fileselect.active"),e&&this.hideModal(e),e=document.querySelector(".is-modal.audioselect.active"),e&&this.hideModal(e),e=document.querySelector(".is-modal.mediaselect.active"),e&&this.hideModal(e),e=document.querySelector(".is-modal.otherselect.active"),e&&this.hideModal(e)}}assetType(){return this.targetAssetType}renderSelectAsset(t,e,i){const n="inp_"+this.util.makeId();t.insertAdjacentHTML("afterend",`<input type="hidden" id="${n}">`);const o=t.parentNode.querySelector(`#${n}`);t.addEventListener("click",(()=>{this.openAsset(o,e,t)}));let s=t=>this.util.out(t);const r=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");Object.defineProperty(o,"value",{get:r.get,set:function(t){let n=t.substring(t.lastIndexOf("/")+1).split(".").pop();n=n.toLowerCase();let o=!1;"all"===e?o=!0:"media"===e?"jpg"===n||"jpeg"===n||"png"===n||"gif"===n||"webm"===n||"webp"===n||"mp4"===n?o=!0:alert(s("Please select an image or video file.")):"video"===e?"mp4"===n?o=!0:alert(s("Please select an mp4 file.")):"image"===e?"jpg"===n||"jpeg"===n||"png"===n||"gif"===n||"webm"===n||"webp"===n?o=!0:alert(s("Please select an image file.")):"audio"===e&&("mp3"===n?o=!0:alert(s("Please select an mp3 file."))),o&&i&&i(t),r.set.call(this,t)}})}openOther(t,e,i){if(this.opts.onOtherSelectClick)this.opts.onOtherSelectClick({targetInput:t,theTrigger:i});else{let i,n=this.builderStuff.querySelector(".is-modal.otherselect");i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.otherSelect),this.util.showModal(n),this.targetInput=t,this.targetCallback=null,this.targetAssetType=e}}openAsset(t,e,i){if("media"===e&&(this.opts.onMediaSelectClick||this.opts.onImageSelectClick))this.opts.onMediaSelectClick?this.opts.onMediaSelectClick({targetInput:t,theTrigger:i}):this.opts.onImageSelectClick({targetInput:t,theTrigger:i});else if("video"===e&&this.opts.onVideoSelectClick)this.opts.onVideoSelectClick({targetInput:t,theTrigger:i});else if("image"===e&&this.opts.onImageSelectClick)this.opts.onImageSelectClick({targetInput:t,theTrigger:i});else if("audio"===e&&this.opts.onAudioSelectClick)this.opts.onAudioSelectClick({targetInput:t,theTrigger:i});else if("all"===e&&this.opts.onFileSelectClick)this.opts.onFileSelectClick({targetInput:t,theTrigger:i});else{let i,n;"media"===e?(n=this.builderStuff.querySelector(".is-modal.mediaselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(this.opts.mediaSelect?i.src=this.opts.mediaSelect:this.opts.imageSelect&&(i.src=this.opts.imageSelect))):"video"===e?(n=this.builderStuff.querySelector(".is-modal.videoselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.videoSelect)):"image"===e?(n=this.builderStuff.querySelector(".is-modal.imageselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.imageSelect)):"audio"===e?(n=this.builderStuff.querySelector(".is-modal.audioselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.audioSelect)):"all"===e&&(n=this.builderStuff.querySelector(".is-modal.fileselect"),i=n.querySelector("iframe"),"about:blank"===i.src&&(i.src=this.opts.fileSelect)),this.util.showModal(n),this.targetInput=t,this.targetCallback=null,this.targetAssetType=e}}moveRowUp(){this._rowTool.moveRowUp()}moveRowDown(){this._rowTool.moveRowDown()}duplicateRow(){this._rowTool.duplicateRow()}removeRow(){this._rowTool.removeRow()}moveColumnLeft(){this.colTool.moveColumnLeft()}moveColumnRight(){this.colTool.moveColumnRight()}duplicateColumn(){this.colTool.duplicateColumn()}removeColumn(){this.colTool.removeColumn()}moveColumnUp(){this.colTool.moveColumnUp()}moveColumnDown(){this.colTool.moveColumnDown()}formatText(t){this.rte.formatText(t)}formatTextNonToggle(t){this.rte.formatTextNonToggle(t)}LightenDarkenColor(t,e){return this.util.LightenDarkenColor(t,e)}pickColor(t,e){new Fg({colors:this.opts.colors,animateModal:!1,lang:this.opts.lang}).open(t,e)}addSnippet(t,e,i){this.util.addSnippet(t,e,i)}viewSnippets(){this.rte.viewSnippets()}saveForUndo(t){this.uo.saveForUndo(t)}download(t={}){this.export(t,!0)}export(t={},e=!1){let i=this.pageTemplate,n="";this.makeAbsolute=!0,this.shortenOutput=e;let o=this.html();if(this.makeAbsolute=!1,this.shortenOutput=!1,n=i.replace("[%CONTENT%]",o),t.replace&&t.replace.forEach((t=>{n=n.replaceAll(`${t[0]}`,t[1])})),t.path)n=n.replaceAll("[%PATH%]",t.path);else{let t;t=location.href.substring(0,location.href.lastIndexOf("/")),n=n.replaceAll("[%PATH%]",t)}n=this.beautify(n);const s=document.createElement("a");s.href=window.URL.createObjectURL(new Blob([n],{type:"text/plain"})),s.download="page.html",s.click()}beautify(t){return new Ei(this).beautify(t)}openPreview(){this.livePreview.openPreview()}closePreview(){this.livePreview.closePreview()}getActiveModule(){return document.querySelector("[data-module-active]")}getModuleSettings(){let t=document.querySelector("[data-module-active]");return decodeURIComponent(t.getAttribute("data-settings"))}setModuleHtml(t){document.querySelector("#hidContentModuleCode").value=t}setModuleSettings(t){document.querySelector("#hidContentModuleSettings").value=t}makeId(){return this.util.makeId()}setTooltip(t){this.tooltip.setAll(t)}loadPlugins(){if(!this.builderStuff)return;if(void 0===this.opts.scriptPath&&""===this.opts.pluginPath)return;if(this.numOfPlugins=0,"string"==typeof this.opts.plugins[0])return void this.loadPluginsOldWay();const t=this.builderStuff.querySelector(".is-rte-tool"),e=this.builderStuff.querySelector(".rte-more-options"),i=this.builderStuff.querySelector(".is-elementrte-tool"),n=this.builderStuff.querySelector(".elementrte-more-options");let o;for(o=this.opts.plugins.length-1;o>=0;o--){const s=this.opts.plugins[o].name,r=this.opts.plugins[o].showInMainToolbar,l=this.opts.plugins[o].showInElementToolbar;let a=!1;(t.querySelector('[data-plugin="'+s+'"]')||e.querySelector('[data-plugin="'+s+'"]'))&&(a=!0);let d=!1;if((i.querySelector('[data-plugin="'+s+'"]')||n.querySelector('[data-plugin="'+s+'"]'))&&(d=!0),r&&!a){e.querySelectorAll("div:not(.rte-separator)").forEach((t=>{t.insertAdjacentHTML("afterbegin",'<button style="width:46px;" title="button not found" data-plugin="'+s+'"></button>')}))}l&&!d&&n.querySelector("div").insertAdjacentHTML("afterbegin",'<button style="width:46px;" title="button not found" data-plugin="'+s+'"></button>')}for(o=0;o<this.opts.plugins.length;o++){const t=this.opts.plugins[o].name;let e=this.opts.scriptPath+"plugins/"+t+"/plugin.js";""!==this.opts.pluginPath&&(e=this.opts.pluginPath+"plugins/"+t+"/plugin.js"),this.loadScript(e).then((()=>{this.numOfPlugins++,this.numOfPlugins===this.opts.plugins.length&&(this.opts.onPluginsLoaded&&this.opts.onPluginsLoaded(),this.tooltip.setAll(),new Pi({selector:".is-draggable"}))}))}}loadPluginsOldWay(){const t=this.builderStuff.querySelector(".is-rte-tool"),e=this.builderStuff.querySelector(".rte-more-options"),i=this.builderStuff.querySelector(".is-elementrte-tool"),n=this.builderStuff.querySelector(".elementrte-more-options");let o;for(o=this.opts.plugins.length-1;o>=0;o--){const s=this.opts.plugins[o];let r=!1;(t.querySelector('[data-plugin="'+s+'"]')||e.querySelector('[data-plugin="'+s+'"]'))&&(r=!0);let l=!1;(i.querySelector('[data-plugin="'+s+'"]')||n.querySelector('[data-plugin="'+s+'"]'))&&(l=!0),r||e.querySelector("div").insertAdjacentHTML("afterbegin",'<button style="width:46px;" title="button not found" data-plugin="'+this.opts.plugins[o]+'"></button>'),l||n.querySelector("div").insertAdjacentHTML("afterbegin",'<button style="width:46px;" title="button not found" data-plugin="'+this.opts.plugins[o]+'"></button>')}for(o=0;o<this.opts.plugins.length;o++){let t=this.opts.scriptPath+"plugins/"+this.opts.plugins[o]+"/plugin.js";""!==this.opts.pluginPath&&(t=this.opts.pluginPath+"plugins/"+this.opts.plugins[o]+"/plugin.js"),this.loadScript(t).then((()=>{if(this.numOfPlugins++,this.numOfPlugins===this.opts.plugins.length){let t=e.querySelectorAll("[data-plugin]");Array.prototype.forEach.call(t,(t=>{t.outerHTML=""})),t=n.querySelectorAll("[data-plugin]"),Array.prototype.forEach.call(t,(t=>{t.outerHTML=""})),this.opts.onPluginsLoaded&&this.opts.onPluginsLoaded(),this.tooltip.setAll(),new Pi({selector:".is-draggable"})}}))}}addHtml(t){this.dom.appendHtml(this.builderStuff,t)}addCss(t){this.dom.appendHtml(document.head,t)}addButton_OLD(t,e,i,n){if(!this.builderStuff)return;const o=this.builderStuff.querySelector(".is-rte-tool"),s=this.builderStuff.querySelector(".rte-more-options");var r=!1;if(o.querySelector('[data-plugin="'+t+'"]')?o.querySelector('[data-plugin="'+t+'"]').outerHTML=e:s.querySelector('[data-plugin="'+t+'"]')&&(s.querySelector('[data-plugin="'+t+'"]').outerHTML=e,r=!0),!o.querySelector(".rte-more")&&r){o.insertAdjacentHTML("beforeend",`<button title="${this.util.out("More")}" class="rte-more"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#ion-more"></use></svg></button>`);let t=this.rteTool.querySelector("button.rte-more");t&&this.dom.addEventListener(t,"click",(()=>{this.rte.showRteMore()}))}let l=o.querySelector(i);l=l||s.querySelector(i),l&&(l.setAttribute("data-title",l.getAttribute("title")),this.dom.addEventListener(l,"click",(t=>{n(t)})))}addButton(t,e,i,n){if(!this.builderStuff)return;const o=this.builderStuff.querySelector(".is-rte-tool"),s=this.builderStuff.querySelector(".rte-more-options");var r=!1;s.querySelector('[data-plugin="'+t+'"]')&&(r=!0);if(this.builderStuff.querySelectorAll('[data-plugin="'+t+'"]').forEach((t=>{t.outerHTML=e})),!o.querySelector(".rte-more")&&r){o.insertAdjacentHTML("beforeend",`<button title="${this.util.out("More")}" class="rte-more"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#ion-more"></use></svg></button>`);let t=this.rteTool.querySelector("button.rte-more");t&&this.dom.addEventListener(t,"click",(()=>{this.rte.showRteMore()}))}let l=o.querySelectorAll(i);l.forEach((t=>{t.setAttribute("data-title",t.getAttribute("title")),this.dom.addEventListener(t,"click",(t=>{n(t)}))})),l=s.querySelectorAll(i),l.forEach((t=>{t.setAttribute("data-title",t.getAttribute("title")),this.dom.addEventListener(t,"click",(t=>{n(t)}))}))}addButton2(t,e,i,n){if(!this.builderStuff)return;const o=this.builderStuff.querySelector(".is-elementrte-tool"),s=this.builderStuff.querySelector(".elementrte-more-options");var r=!1;if(o.querySelector('[data-plugin="'+t+'"]')?o.querySelector('[data-plugin="'+t+'"]').outerHTML=e:s.querySelector('[data-plugin="'+t+'"]')&&(s.querySelector('[data-plugin="'+t+'"]').outerHTML=e,r=!0),!o.querySelector(".rte-more")&&r){o.insertAdjacentHTML("beforeend",`<button title="${this.util.out("More")}" class="rte-more"><svg class="is-icon-flex" style="width:13px;height:13px;"><use xlink:href="#ion-more"></use></svg></button>`);let t=this.elementRteTool.querySelector("button.rte-more");t&&this.dom.addEventListener(t,"click",(()=>{this.rte.showElementRteMore()}))}let l=o.querySelector(i);l=l||s.querySelector(i),l&&(l.setAttribute("data-title",l.getAttribute("title")),this.dom.addEventListener(l,"click",(t=>{n(t)})))}showModal(t,e,i,n){this.util.showModal(t,e,i,n)}hideModal(t){this.util._hideModal(t)}draggable(t){new Pi({selector:t})}createModal(t,e,i,n,o){let s=this.builderStuff.querySelector(e);return s||(this.builderStuff.appendChild(t),s=this.builderStuff.querySelector(e)),this.showModal(s,i,n,o),new Pi({selector:".is-draggable"}),s}getIcons(){return this.rte.getIcons()}showSidePanel(t){let e=this.builderStuff.querySelectorAll(".is-side");Array.prototype.forEach.call(e,(t=>{this.dom.removeClass(t,"active")})),this.dom.addClass(t,"active")}hideSidePanel(t){this.dom.removeClass(t,"active")}getScriptPath(){return this.opts.scriptPath}getSnippetPath(){return this.opts.snippetPath}out(t){return this.util.out(t)}undo(){this.uo.doUndo()}redo(){this.uo.doRedo()}getScope(){let t;const e=this.doc.querySelectorAll(this.opts.container);if(e.length>1){const i=this.util.cellSelected();t=i?i.parentNode.parentNode:e[0]}else t=e[0];if(""!==this.opts.page){const e=this.doc.querySelector(this.opts.page);e&&(t=e)}return t}saveSelection(){this.util.saveSelection()}restoreSelection(){this.util.restoreSelection()}pasteHtmlAtCaret(t,e){this.util.pasteHtmlAtCaret(t,e)}getScript(t,e){this.loadScript(t).then((()=>{e&&e()}),(()=>{console.log("Fail to load config")}))}getScripts(t,e){let i=0;this.loadScript(t[i]).then((()=>{i=this._helper1(i,t,e)}))}_helper1(t,e,i){if(++t<e.length){return this.loadScript(e[t]).then((()=>{t=this._helper1(t,e,i)})),t}i&&i()}includeJs(t,e){-1===this.filesAdded.indexOf("["+t+"]")?(this.getScript(t,e),this.filesAdded+="["+t+"]"):e&&e()}includeCss(t){if(-1===this.filesAdded.indexOf("["+t+"]")){var e=document.createElement("link");e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),document.getElementsByTagName("head")[0].appendChild(e),this.filesAdded+="["+t+"]"}}applyStyle(t,e){if(-1===this.filesAdded.indexOf("["+t+"]")){var i=document.createElement("style");i.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(i),this.filesAdded+="["+t+"]"}}viewHtml(t){new Ei(this).view("full",t)}viewPreferences(){this.preferences.view()}viewConfig(){this.preferences.view()}viewZoom(){this.rte.viewZoom()}loadSnippets(t){if(this.preview)return;if(document.querySelector(this.opts.snippetList))return;if(this.isScriptAlreadyIncluded(t))return;const e=document.createElement("script");e.src=t,e.async=!0,e.onload=()=>{this.opts.snippetJSON=window.data_basic,""===this.opts.snippetPath&&(this.opts.snippetPath=window._snippets_path),this.opts.snippetJSON.snippets.length>0&&Vo(this)},document.body.appendChild(e)}isScriptAlreadyIncluded(t){const e=document.getElementsByTagName("script");for(let i=0;i<e.length;i++)if(e[i].getAttribute("src")===t)return!0;return!1}loadHtml(t,e){const i=this.util;if(e);else{const t=this.doc.querySelectorAll(this.opts.container);if(t.length>1){const n=i.cellSelected();e=n?n.parentNode.parentNode:t[0]}else e=t[0];if(""!==this.opts.page){const t=this.doc.querySelector(this.opts.page);t&&(e=t)}}let n=this.doc.createRange();e.innerHTML="",e.appendChild(n.createContextualFragment(t)),this.applyBehavior(),this.opts.onChange(),this.opts.onRender(),null!=localStorage.getItem("_livepreview")&&this.livePreview.openPreview()}loadHTML(t){this.loadHtml(t)}setUIColor(t,e){let i=document.querySelector("[data-cb-color]");if(i&&i.setAttribute("data-cb-del",""),e){var n=document.createElement("link");n.rel="stylesheet",n.href=e,n.setAttribute("data-cb-color",""),n.addEventListener("load",(()=>{i=document.querySelector("[data-cb-del]"),i&&i.parentNode.removeChild(i),"dark"===t&&(this.dom.removeClass(document.body,"colored"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"light"),this.dom.addClass(document.body,"dark")),"colored"===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"light"),this.dom.addClass(document.body,"colored")),"colored-dark"===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored"),this.dom.removeClass(document.body,"light"),this.dom.addClass(document.body,"colored-dark")),""===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"colored"),this.dom.removeClass(document.body,"light")),"light"===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"colored"),this.dom.addClass(document.body,"light"));const e=this.util;setTimeout((()=>{e.getUIStyles(),this.setUIColorRefresh(),this.opts.onThemeChange&&this.opts.onThemeChange()}),300)})),document.head.appendChild(n)}else{i=document.querySelector("[data-cb-del]"),i&&i.parentNode.removeChild(i),""===t&&(this.dom.removeClass(document.body,"dark"),this.dom.removeClass(document.body,"colored-dark"),this.dom.removeClass(document.body,"colored"),this.dom.removeClass(document.body,"light"));const e=this.util;setTimeout((()=>{e.getUIStyles(),this.setUIColorRefresh(),this.opts.onThemeChange&&this.opts.onThemeChange()}),1e3)}}setUIColorRefresh(){const t=this.util;if(!this.rte||!this.element)return void setTimeout((()=>{this.setUIColorRefresh()}),600);let e=this.rte.rteFontFamilyOptions.querySelector("iframe").contentWindow.document;let i=this.builderStuff.querySelector(".is-modal.pickfontfamily").querySelector("iframe").contentWindow.document,n=this.rte.rteIconOptions.querySelector("iframe").contentWindow.document;""===e.body.innerHTML?(e.open(),this.opts.emailMode?e.write(t.getFontFamilyEmail()):e.write(t.getFontFamilyHTML()),e.close()):this.util.refreshFontFamilyStyle1(),""===i.body.innerHTML?(i.open(),this.opts.emailMode?i.write(t.getFontFamilyEmail(!0)):i.write(t.getFontFamilyHTML(!0)),i.close()):this.util.refreshFontFamilyStyle2(),""===n.body.innerHTML?(n.open(),n.write(this.rte.getIconsHTML()),n.close()):this.rte.refreshIconsStyle(),this.builderStuff.querySelector(".snippets").querySelector("iframe").src="about:blank";let o=document.querySelector(".is-modal.videoselect"),s=document.querySelector(".is-modal.imageselect"),r=document.querySelector(".is-modal.fileselect"),l=document.querySelector(".is-modal.otherselect"),a=o.querySelector("iframe"),d=s.querySelector("iframe"),c=r.querySelector("iframe"),u=l.querySelector("iframe");a.contentWindow.applyParentStyles&&a.contentWindow.applyParentStyles(),d.contentWindow.applyParentStyles&&d.contentWindow.applyParentStyles(),c.contentWindow.applyParentStyles&&c.contentWindow.applyParentStyles(),u.contentWindow.applyParentStyles&&u.contentWindow.applyParentStyles()}openMedia(t){let e="",i=t.getAttribute("data-modal-theme");i||(i="light");const n=t.getAttribute("data-modal-color");if(t.getAttribute("data-modal-url")){e=t.getAttribute("data-modal-url");let o=e.split(".").pop().split("?")[0].split("#")[0];if("jpg"===o||"jpeg"===o||"png"===o||"gif"===o||"webm"===o||"webp"===o)this.lightbox.openImage(e,i,n);else if("mp4"===o)this.lightbox.openVideo(e,"dark",n);else if(-1!==e.toLowerCase().indexOf("youtube.com")||-1!==e.toLowerCase().indexOf("youtube-nocookie.com")||-1!==e.toLowerCase().indexOf("vimeo.com"))this.lightbox.openExternalVideo(e,"dark",n);else{if(0===e.indexOf("#"));else{if(!window.confirm(this.util.out("Do you really want to leave?")))return!1}window.location.href=e}}else t.getAttribute("data-modal-image")&&(e=t.getAttribute("data-modal-image"),this.lightbox.openImage(e,i,n)),t.getAttribute("data-modal-video")&&(e=t.getAttribute("data-modal-video"),this.lightbox.openVideo(e,"dark",n)),t.getAttribute("data-modal-externalvideo")&&(e=t.getAttribute("data-modal-externalvideo"),this.lightbox.openExternalVideo(e,"dark",n))}lightboxOpen(t){this.useLightbox&&(t.hasAttribute("data-noedit")||t.hasAttribute("data-protected"))&&this.dom.hasClass(t,"block-click")&&this.openMedia(t)}handleCellClick(t,e){this.cleanEditing&&(t.parentNode.querySelector(".is-row-tool").style.display="",t.parentNode.querySelector(".is-col-tool").style.display=""),this.lightboxOpen(t);this.util.clearActiveCell(),this.activeCol=t;let i=e.target;this.dom.addClass(t,"cell-active");let n=t.parentNode;this.dom.addClass(n,"row-active");const o=this.doc.querySelectorAll(this.opts.container);Array.prototype.forEach.call(o,(t=>{this.dom.removeClass(t,"builder-active")})),this.dom.addClass(n.parentNode,"builder-active"),this.dom.addClass(this.doc.body,"content-edit"),n.childElementCount-2==1||this.dom.addClass(n,"row-outline"),this.opts.onContentClick&&this.opts.onContentClick(e),this.element.click(t,e),this.colTool.click(t),this.elmTool.click(t,e),this.rte.click(t,e);const s=document.querySelector(".grideditor.active");if(s){const e=s.querySelector(".cell-locking");t.hasAttribute("data-noedit")?this.dom.addClass(e,"on"):this.dom.removeClass(e,"on")}let r=this.dom.getParentElement(i,"a");if(("a"===i.tagName.toLowerCase()||r)&&(t.hasAttribute("data-noedit")||t.hasAttribute("data-protected"))){if("true"===t.getAttribute("contenteditable"))return e.preventDefault(),!1;if("a"===i.tagName.toLowerCase()&&(r=i),this.useLightbox&&this.dom.hasClass(r,"is-lightbox")){let t=r.getAttribute("href");if(!t)return e.preventDefault(),!1;let n=t.split(".").pop().split("?")[0].split("#")[0],o=r.getAttribute("data-modal-theme");o||(o="light");const s=i.getAttribute("data-modal-color");if("jpg"===n||"jpeg"===n||"png"===n||"gif"===n||"webm"===n||"webp"===n)return this.lightbox.openImage(t,o,s),e.preventDefault(),!1;if("mp4"===n)return this.lightbox.openVideo(t,"dark",s),e.preventDefault(),!1;if(-1!==t.toLowerCase().indexOf("youtube.com")||-1!==t.toLowerCase().indexOf("youtube-nocookie.com")||-1!==t.toLowerCase().indexOf("vimeo.com"))return this.lightbox.openExternalVideo(t,"dark",s),e.preventDefault(),!1;if(0===t.indexOf("#"));else{if(!window.confirm(this.util.out("Do you really want to leave?")))return e.preventDefault(),!1}}else{let t=r.getAttribute("href");if(!t)return e.preventDefault(),!1;if(0===t.indexOf("#"));else{if(!window.confirm(this.util.out("Do you really want to leave?")))return e.preventDefault(),!1}}}if(1===t.childElementCount){let e=t.children[0];e&&this.dom.hasClass(e,"spacer")&&(t.contentEditable=!1)}this.colTool.showHideLockIndicator(t);const l=n.querySelector(".is-rowadd-tool").querySelector("button");l.style.marginTop="";const a=Array.from(n.parentNode.children).filter((t=>"div"===t.nodeName.toLowerCase()));if(a&&a.length>0){if(n===a[a.length-1]){const t=n.closest(".is-section");if(t){const e=this.dom.getElementOffset(t);let i=e.top+e.height;const o=this.dom.getElementOffset(n);i-(o.top+o.height)<19&&(l.style.marginTop="-14px")}}}this.opts.enableDragResize&&(this.resize&&this.resize.destroy(),t.classList.contains("noresize")||(this.resize=new tf(t,this),this.resize.enable()))}handleCellKeypress(t){t.ctrlKey||t.metaKey||(null===this.uoTm?(this.uo.saveForUndo(),this.uoTm=setTimeout((()=>{this.uoTm=null}),1e3)):(clearTimeout(this.uoTm),this.uoTm=setTimeout((()=>{this.uoTm=null}),1e3)))}handleCellKeydown(t,e){this.oriLen=t.textContent.length;let i=t.querySelectorAll("span");if(Array.prototype.forEach.call(i,(t=>{t.setAttribute("data-keep","")})),(e.ctrlKey||e.metaKey)&&86===e.which&&this.handleCellPaste(),this.opts.elementSelection&&!this.emailMode&&(e.ctrlKey||e.metaKey)&&65===e.which){let t;try{this.win.getSelection?t=this.win.getSelection().getRangeAt(0).commonAncestorContainer.parentNode:this.doc.selection&&(t=this.doc.selection.createRange().parentElement()),this.dom.hasClass(t.parentNode.parentNode,"is-builder")||this.dom.selectElementContents(t),e.preventDefault()}catch(e){}}if(46===e.keyCode){let t;try{if(window.getSelection?t=window.getSelection().getRangeAt(0).commonAncestorContainer:document.selection&&(t=document.selection.createRange()),"<br>"===t.innerHTML){t.nextElementSibling&&(t.parentNode.removeChild(t),e.preventDefault())}}catch(e){}}if(8===e.keyCode){let t;try{if(window.getSelection?t=window.getSelection().getRangeAt(0).commonAncestorContainer:document.selection&&(t=document.selection.createRange()),""===t.textContent){t.previousElementSibling||e.preventDefault()}}catch(e){}}if(9===e.which&&!e.shiftKey){const t=this.activeCol;if(t)if(t.nextElementSibling&&t.nextElementSibling.hasAttribute("data-click")){const i=t.nextElementSibling;i&&i.click();let n=window.getSelection(),o=this.createRange(i,{count:0});o&&(o.collapse(!1),n.removeAllRanges(),n.addRange(o)),i.firstElementChild&&setTimeout((()=>{i.firstElementChild.click()}),200),e.preventDefault()}else if(t.parentNode.nextElementSibling){const i=t.parentNode.nextElementSibling;if(i){const t=i.firstElementChild;t&&t.click();let n=window.getSelection(),o=this.createRange(t,{count:0});o&&(o.collapse(!1),n.removeAllRanges(),n.addRange(o)),t.firstElementChild&&setTimeout((()=>{t.firstElementChild.click()}),200),e.preventDefault()}}}if(9===e.which&&e.shiftKey){const t=this.activeCol;if(t)if(t.previousElementSibling&&t.previousElementSibling.hasAttribute("data-click")){const i=t.previousElementSibling;i&&i.click(),i.firstElementChild&&i.firstElementChild.click();let n=window.getSelection(),o=this.createRange(i,{count:0});o&&(o.collapse(!1),n.removeAllRanges(),n.addRange(o)),i.firstElementChild&&setTimeout((()=>{i.firstElementChild.click()}),200),e.preventDefault()}else if(t.parentNode.previousElementSibling){const i=t.parentNode.previousElementSibling.querySelectorAll("[data-click]");if(i.length>0){const t=i[i.length-1];t&&t.click(),t.firstElementChild&&t.firstElementChild.click();let n=window.getSelection(),o=this.createRange(t,{count:0});o&&(o.collapse(!1),n.removeAllRanges(),n.addRange(o)),t.firstElementChild&&setTimeout((()=>{t.firstElementChild.click()}),200),e.preventDefault()}}}const n=()=>{let e=t.querySelectorAll("span");Array.prototype.forEach.call(e,(t=>{t.setAttribute("data-keep","")}))},o=e.ctrlKey||e.metaKey;if(o&&66===e.which&&this.opts.useCssClasses&&(this.dom.execCommandToggle("fontWeight","",this.opts.cssClasses),this.opts.onChange(),e.preventDefault(),n()),o&&73===e.which&&this.opts.useCssClasses&&(this.dom.execCommandToggle("fontStyle","",this.opts.cssClasses),this.opts.onChange(),e.preventDefault(),n()),o&&85===e.which&&this.opts.useCssClasses&&(this.dom.execCommandToggle("textUnderline","",this.opts.cssClasses),this.opts.onChange(),e.preventDefault(),n()),o&&83===e.which&&this.opts.useCssClasses&&(this.dom.execCommandToggle("textLinethrough","",this.opts.cssClasses),this.opts.onChange(),e.preventDefault(),n()),o&&221===e.which&&(e.preventDefault(),document.execCommand("indent",!1,null),this.opts.onChange(),e.preventDefault(),n()),o&&219===e.which&&(e.preventDefault(),document.execCommand("outdent",!1,null),this.opts.onChange(),e.preventDefault(),n()),o&&75===e.which&&(this.element.hyperlink.createLink(),e.preventDefault()),o&&80===e.which&&(e.preventDefault(),this.rte.insertImage()),(46===e.which||8===e.which)&&this.activeIcon){if("a"===this.activeIcon.parentNode.tagName.toLowerCase()&&1===this.activeIcon.parentNode.children.length||1===this.activeIcon.parentNode.children.length){let t=this.activeIcon.parentNode,e=t.parentNode;t.parentNode.removeChild(t);this.builderStuff.querySelector("#divLinkTool").style.display="";this.builderStuff.querySelector(".is-element-tool").style.display="",e&&""===e.innerHTML.trim()&&e.parentNode.removeChild(e)}else this.activeIcon.parentNode.removeChild(this.activeIcon);e.preventDefault()}this.cleanEditing&&(this.colTool.columnTool.classList.remove("active"),t.parentNode.querySelector(".is-row-tool").style.display="none",t.parentNode.querySelector(".is-col-tool").style.display="none")}createRange(t,e,i){if(i||((i=document.createRange()).selectNode(t),i.setStart(t,0)),0===e.count)i.setEnd(t,e.count);else if(t&&e.count>0)if(t.nodeType===Node.TEXT_NODE)t.textContent.length<e.count?e.count-=t.textContent.length:(i.setEnd(t,e.count),e.count=0);else for(var n=0;n<t.childNodes.length&&(i=this.createRange(t.childNodes[n],e,i),0!==e.count);n++);return i}handleCellFocus(t){const e=this.activeCol;e?t!==e&&(t.firstElementChild?t.firstElementChild.click():t.click()):t.firstElementChild?t.firstElementChild.click():t.click()}handleCellKeyup(t,e){this.dom.textSelection()&&("38"===e.keyCode||"40"===e.keyCode||"37"===e.keyCode||"39"===e.keyCode)&&this.util.saveSelection();let i=t.querySelectorAll("span");var n;Array.prototype.forEach.call(i,(t=>{t.hasAttribute("data-keep")||(t.outerHTML=t.innerHTML)}));try{this.win.getSelection?n=this.win.getSelection().getRangeAt(0).commonAncestorContainer.parentNode:this.doc.selection&&(n=this.doc.selection.createRange().parentElement())}catch(e){return}if(13===e.keyCode&&!e.shiftKey){"p"!==n.tagName.toLowerCase()&&"div"!==n.tagName.toLowerCase()||this.doc.execCommand("formatBlock",!1,"<p>");let e=t.querySelectorAll("[data-keep]");Array.prototype.forEach.call(e,(t=>{t.removeAttribute("data-keep")}))}this.oriLen!==t.textContent.length&&this.typing(),this.elmTool.hide()}typing(){this.timeoutId&&clearTimeout(this.timeoutId),this.timeoutId=setTimeout((()=>{this.opts.onChange()}),2e3)}handleCellPaste(){this.uo.saveForUndo();const t=this.util;t.saveSelection();let e=this.doc.querySelector("#idContentWord");var i,n;e&&e.parentNode.removeChild(e),this.win.getSelection?i=3===(n=this.win.getSelection().getRangeAt(0).commonAncestorContainer).nodeType?n.parentNode:n:this.doc.selection&&(n=this.doc.selection.createRange(),i=this.doc.selection.createRange().parentElement());const o='<div style="position:absolute;z-index:-1000;top:'+(i.getBoundingClientRect().top+this.win.pageYOffset)+'px;left:-1000px;width:100px;height:100px;overflow:auto;" name="idContentWord" id="idContentWord" contenteditable="true"></div>';this.iframe?this.dom.appendHtml(this.contentStuff,o):this.dom.appendHtml(this.builderStuff,o),e=this.doc.querySelector("#idContentWord"),e.focus(),setTimeout((()=>{try{var e="";let u=this.doc.querySelector("#idContentWord");var i=!1,n=u.innerText;if(!this.opts.disableAutoEmbedVideo){var o=/^http[s]?:\/\/(((www.youtube.com\/watch\?(feature=player_detailpage&)?)v=)|(youtu.be\/))([^#&?]*)/.exec(n),s=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/)|(video\/))?([0-9]+)\/?/.exec(n);if(null!==o||null!==s){if(null!==o&&o.length>=7)n="https://www.youtube.com/embed/"+o[6]+"?rel=0";if(null!==s&&s.length>=7)n="https://player.vimeo.com/video/"+s[6];e='<div class="embed-responsive embed-responsive-16by9"><iframe tabindex="0" width="560" height="315" src="'+n+'" frameborder="0" allowfullscreen=""></iframe></div>',i=!0}}if(!i)if("text"===this.opts.paste){let t=u.querySelectorAll("p,h1,h2,h3,h4,h5,h6");Array.prototype.forEach.call(t,(t=>{t.innerHTML=t.innerHTML+" "})),0===(e=(e=(e=u.innerHTML).replace(/(<([^>]+)>)/gi,"<br>")).replace(/(<br\s*\/?>){3,}/gi,"<br>")).indexOf("<br>")&&(e=e.substring(4)),"<br>"===e.substring(e.length-4)&&(e=e.substring(0,e.length-4)),e=e.trim()}else{e=u.innerHTML,e="html"===this.opts.paste?t.cleanHTML(e,!1):t.cleanHTML(e,!0),u.innerHTML=e;let i=u.querySelectorAll("li");Array.prototype.forEach.call(i,(t=>{t.style.whiteSpace="";const e=t.childNodes;let i=e.length;for(;i--;)"P"===e[i].tagName&&(e[i].outerHTML=e[i].innerHTML)})),e=u.innerHTML}u=this.doc.querySelector("#idContentWord"),u&&u.parentNode.removeChild(u),t.restoreSelection();var r=this.win.getSelection(),l=r.getRangeAt(0);l.extractContents(),l.collapse(!0);var a=l.createContextualFragment(e),d=a.lastChild;if(l.insertNode(a),this.activeCol){this.activeCol.querySelectorAll("h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty,p:empty").forEach((t=>{t.remove()}));let t=this.activeCol.querySelector("p.elm-active,h1.elm-active,h2.elm-active,h3.elm-active,h4.elm-active,h5.elm-active,h6.elm-active");if(t){if(t.querySelectorAll("p,h1,h2,h3,h4,h5,h6").length>0){let e=t.nextElementSibling;if(Array.from(t.childNodes).filter((t=>3===t.nodeType&&t.textContent.trim().length>1)).forEach((t=>{const e=document.createElement("p");t.after(e),e.appendChild(t)})),t.firstElementChild&&1===t.childNodes.length&&"SPAN"===t.firstElementChild.tagName){t.outerHTML=t.firstElementChild.innerHTML,this.activeCol.querySelectorAll("*:empty").forEach((t=>{t.remove()})),e?this.dom.moveCursorToElement(e.previousElementSibling):this.dom.moveCursorToElement(this.activeCol);let i=this.doc.querySelector(".builder-active");return i&&this.applyBehaviorOn(i),this.opts.onChange(),void this.opts.onRender()}t.outerHTML=t.innerHTML,this.activeCol.find("h1:empty,h2:empty,h3:empty,h4:empty,h5:empty,h6:empty,p:empty").remove(),e?this.dom.moveCursorToElement(e.previousElementSibling):this.dom.moveCursorToElement(this.activeCol);let i=this.doc.querySelector(".builder-active");return i&&this.applyBehaviorOn(i),this.opts.onChange(),void this.opts.onRender()}}}l.setStartAfter(d),l.setEndAfter(d),l.collapse(!1);var c=l.commonAncestorContainer;if(c&&c.parentNode)try{c.parentNode.normalize()}catch(t){}r.removeAllRanges(),r.addRange(l);let h=this.doc.querySelector(".builder-active");h&&this.applyBehaviorOn(h),this.opts.onChange(),this.opts.onRender()}catch(t){let e=this.doc.querySelector("#idContentWord");e&&e.parentNode.removeChild(e)}}),800)}cellSelected(){return this.util.cellSelected()}loadScript(t,e,i=!0,n=!0){return new Promise(((o,s)=>{let r=document.createElement("script");const l=e||document.getElementsByTagName("script")[0];function a(t,e){(e||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=null,r.onreadystatechange=null,r=void 0,e?s():o())}r.async=i,r.defer=n,r.onload=a,r.onreadystatechange=a,r.src=t,l.parentNode.insertBefore(r,l)}))}currentScriptPath(){let t,e;for(var i=document.getElementsByTagName("script"),n=0;n<i.length;n++){var o=i[n].src;t="contentbuilder.js",o.indexOf(t)>-1&&(e=o.substring(0,o.indexOf(t))),t="contentbuilder.min.js",o.indexOf(t)>-1&&(e=o.substring(0,o.indexOf(t)))}return e}sectionDropSetup(){if(this.page){if(".is-wrapper"!==this.page)return;const t=this.doc.querySelector(this.page);this.sortableOnPage=new Co(t,{scroll:!0,group:"shared",direction:"vertical",animation:150,sort:!0,onAdd:t=>{var e=t.item;if(e.querySelector(".is-col-tool")){let t=e.querySelector(".is-row-tool"),i=e.querySelector(".is-col-tool"),n=e.querySelector(".is-rowadd-tool");e.removeChild(t),e.removeChild(i),e.removeChild(n);let o=e.querySelectorAll("[data-click]");return o.forEach((t=>{t.removeAttribute("data-click")})),e.removeAttribute("draggable"),e.classList.remove("row-active"),e.classList.remove("row-outline"),o=e.querySelectorAll(".cell-active"),o.forEach((t=>{t.classList.remove("cell-active")})),o=e.querySelectorAll("*"),o.forEach((t=>{t.style.cursor=""})),e.outerHTML=this.settings.sectionTemplate.replace("[%CONTENT%]",e.outerHTML),void(this.opts.onSectionAdd&&this.opts.onSectionAdd())}if(e.getAttribute("data-id")){let t=e.getAttribute("data-id");const h=this.opts.snippetJSON.snippets.filter((e=>e.id+""===t&&e));var i,n=h[0].html,o=h[0].noedit;i=-1===n.indexOf('"row'),this.opts.emailMode&&(i=!1);var s=this.opts.row,r=this.opts.cols;if(""!==s&&12===r.length&&(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=n.replace(new RegExp("row clearfix","g"),"row")).replace(new RegExp('"row',"g"),'"'+s)).replace(new RegExp("column full","g"),r[11])).replace(new RegExp("column half","g"),r[5])).replace(new RegExp("column third","g"),r[3])).replace(new RegExp("column fourth","g"),r[2])).replace(new RegExp("column fifth","g"),r[1])).replace(new RegExp("column sixth","g"),r[1])).replace(new RegExp("column two-third","g"),r[7])).replace(new RegExp("column two-fourth","g"),r[8])).replace(new RegExp("column two-fifth","g"),r[9])).replace(new RegExp("column two-sixth","g"),r[9])),n=n.replace(/{id}/g,this.util.makeId()),this.opts.onAdd&&(n=this.opts.onAdd(n)),this.opts.snippetPathReplace.length>0&&""!==this.opts.snippetPathReplace[0]){var l=new RegExp(this.opts.snippetPathReplace[0],"g");n=n.replace(l,this.opts.snippetPathReplace[1]);var a=this.opts.snippetPathReplace[0].replace(/\//g,"%2F"),d=this.opts.snippetPathReplace[1].replace(/\//g,"%2F"),c=new RegExp(a,"g");n=n.replace(c,d)}if(i)n=`<div class="${this.opts.row}"><div class="${this.opts.cols[this.opts.cols.length-1]}"${o?" data-noedit":""}>${n}</div></div>`,e.removeAttribute("draggable"),this.dom.removeClass(e,"snippet-item"),e.outerHTML=this.settings.sectionTemplate.replace("[%CONTENT%]",n);else{let t=this.dom.createElement("div");t.innerHTML=n;let i=t.querySelectorAll("[data-html]");Array.prototype.forEach.call(i,(t=>{n=(n=(n=decodeURIComponent(t.getAttribute("data-html"))).replace(/{id}/g,this.util.makeId())).replace(/<script>/g,""+(this.nonce?`<script nonce="${this.nonce}">`:"<script>"));for(var e=1;e<=20;e++)n=n.replace("[%HTML"+e+"%]",void 0===t.getAttribute("data-html-"+e)?"":decodeURIComponent(t.getAttribute("data-html-"+e)));t.innerHTML=n})),n=t.innerHTML,e.removeAttribute("draggable"),this.dom.removeClass(e,"snippet-item"),e.innerHTML="";var u=document.createRange();u.setStart(e,0),e.appendChild(u.createContextualFragment(n)),e.outerHTML=this.settings.sectionTemplate.replace("[%CONTENT%]",e.innerHTML)}this.opts.onSectionAdd&&this.opts.onSectionAdd(),this.opts.onChange(),this.opts.onRender()}this.sortableOnPage.destroy()}})}}}return gf}();