HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux aritmodecarnaval.es 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: www-data (33)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/www/torresncgolf/wp-content/plugins/email-subscribers/lite/admin/js/editor.js
/*! For license information please see main.js.LICENSE.txt */
(()=>{var t={109:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>o});var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};const o=function(t,e){void 0===e&&(e={}),function(t,e){var r=t.BlockManager,o=e.category,i=e.blocks,a=e.stylePrefix,s=e.flexGrid,l=e.rowHeight,c=e.addBasicStyle,u="".concat(a,"row"),p="".concat(a,"cell"),d=s?"\n    .".concat(u," {\n      display: flex;\n      justify-content: flex-start;\n      align-items: stretch;\n      flex-wrap: nowrap;\n      padding: 10px;\n    }\n    @media (max-width: 768px) {\n      .").concat(u," {\n        flex-wrap: wrap;\n      }\n    }"):"\n    .".concat(u," {\n      display: table;\n      padding: 10px;\n      width: 100%;\n    }\n    @media (max-width: 768px) {\n      .").concat(a,"cell, .").concat(a,"cell30, .").concat(a,"cell70 {\n        width: 100%;\n        display: block;\n      }\n    }"),f=s?"\n    .".concat(p," {\n      min-height: ").concat(l,"px;\n      flex-grow: 1;\n      flex-basis: 100%;\n    }"):"\n    .".concat(p," {\n      width: 8%;\n      display: table-cell;\n      height: ").concat(l,"px;\n    }"),h="\n  .".concat(a,"cell30 {\n    width: 30%;\n  }"),g="\n  .".concat(a,"cell70 {\n    width: 70%;\n  }"),m={tl:0,tc:0,tr:0,cl:0,cr:0,bl:0,br:0,minDim:1},v=n(n({},m),{cr:1,bc:0,currentUnit:1,minDim:1,step:.2});s&&(v.keyWidth="flex-basis");var y={class:u,"data-gjs-droppable":".".concat(p),"data-gjs-resizable":m,"data-gjs-name":"Row"},b={class:p,"data-gjs-draggable":".".concat(u),"data-gjs-resizable":v,"data-gjs-name":"Cell"};s&&(b["data-gjs-unstylable"]=["width"],b["data-gjs-stylable-require"]=["flex-basis"]);var _=[".".concat(u),".".concat(p)];t.on("selector:add",(function(t){return _.indexOf(t.getFullName())>=0&&t.set("private",1)}));var w=function(t){var e=[];for(var n in t){var r=t[n];r=r instanceof Array||r instanceof Object?JSON.stringify(r):r,e.push("".concat(n,"=").concat("'".concat(r,"'")))}return e.length?" ".concat(e.join(" ")):""},E=function(t){return i.indexOf(t)>=0},x=w(y),C=w(b),T={category:o,select:!0};E("column1")&&r.add("column1",n(n({},T),{label:e.labelColumn1,media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M2 20h20V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1Z"/>\n      </svg>',content:"<div ".concat(x,">\n        <div ").concat(C,"></div>\n      </div>\n      ").concat(c?"<style>\n          ".concat(d,"\n          ").concat(f,"\n        </style>"):"")})),E("column2")&&r.add("column2",n(n({},T),{label:e.labelColumn2,media:'<svg viewBox="0 0 23 24">\n        <path fill="currentColor" d="M2 20h8V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM13 20h8V4h-8v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1Z"/>\n      </svg>',content:"<div ".concat(x,">\n        <div ").concat(C,"></div>\n        <div ").concat(C,"></div>\n      </div>\n      ").concat(c?"<style>\n          ".concat(d,"\n          ").concat(f,"\n        </style>"):"")})),E("column3")&&r.add("column3",n(n({},T),{label:e.labelColumn3,media:'<svg viewBox="0 0 23 24">\n        <path fill="currentColor" d="M2 20h4V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM17 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1ZM9.5 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1Z"/>\n      </svg>',content:"<div ".concat(x,">\n        <div ").concat(C,"></div>\n        <div ").concat(C,"></div>\n        <div ").concat(C,"></div>\n      </div>\n      ").concat(c?"<style>\n          ".concat(d,"\n          ").concat(f,"\n        </style>"):"")})),E("column3-7")&&r.add("column3-7",n(n({},T),{label:e.labelColumn37,media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M2 20h5V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM10 20h12V4H10v16Zm-1 0V4a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H10a1 1 0 0 1-1-1Z"/>\n      </svg>',content:"<div ".concat(x,">\n        <div ").concat(C," style='").concat(s?"flex-basis":"width",": 30%;'></div>\n        <div ").concat(C," style='").concat(s?"flex-basis":"width",": 70%;'></div>\n      </div>\n      ").concat(c?"<style>\n          ".concat(d,"\n          ").concat(f,"\n          ").concat(h,"\n          ").concat(g,"\n        </style>"):"")})),E("text")&&r.add("text",n(n({},T),{activate:!0,label:e.labelText,media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z" />\n      </svg>',content:{type:"text",content:"Insert your text here",style:{padding:"10px"}}})),E("link")&&r.add("link",n(n({},T),{label:e.labelLink,media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" />\n      </svg>',content:{type:"link",content:"Link",style:{color:"#d983a6"}}})),E("image")&&r.add("image",n(n({},T),{activate:!0,label:e.labelImage,media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M21,3H3C2,3 1,4 1,5V19A2,2 0 0,0 3,21H21C22,21 23,20 23,19V5C23,4 22,3 21,3M5,17L8.5,12.5L11,15.5L14.5,11L19,17H5Z" />\n      </svg>',content:{style:{color:"black"},type:"image"}})),E("video")&&r.add("video",n(n({},T),{label:e.labelVideo,media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M10,15L15.19,12L10,9V15M21.56,7.17C21.69,7.64 21.78,8.27 21.84,9.07C21.91,9.87 21.94,10.56 21.94,11.16L22,12C22,14.19 21.84,15.8 21.56,16.83C21.31,17.73 20.73,18.31 19.83,18.56C19.36,18.69 18.5,18.78 17.18,18.84C15.88,18.91 14.69,18.94 13.59,18.94L12,19C7.81,19 5.2,18.84 4.17,18.56C3.27,18.31 2.69,17.73 2.44,16.83C2.31,16.36 2.22,15.73 2.16,14.93C2.09,14.13 2.06,13.44 2.06,12.84L2,12C2,9.81 2.16,8.2 2.44,7.17C2.69,6.27 3.27,5.69 4.17,5.44C4.64,5.31 5.5,5.22 6.82,5.16C8.12,5.09 9.31,5.06 10.41,5.06L12,5C16.19,5 18.8,5.16 19.83,5.44C20.73,5.69 21.31,6.27 21.56,7.17Z" />\n      </svg>',content:{type:"video",src:"img/video2.webm",style:{height:"350px",width:"615px"}}})),E("map")&&r.add("map",n(n({},T),{label:e.labelMap,media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M20.5,3L20.34,3.03L15,5.1L9,3L3.36,4.9C3.15,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21L3.66,20.97L9,18.9L15,21L20.64,19.1C20.85,19.03 21,18.85 21,18.62V3.5A0.5,0.5 0 0,0 20.5,3M10,5.47L14,6.87V18.53L10,17.13V5.47M5,6.46L8,5.45V17.15L5,18.31V6.46M19,17.54L16,18.55V6.86L19,5.7V17.54Z" />\n      </svg>',content:{type:"map",style:{height:"350px"}}}))}(t,r({blocks:["column1","column2","column3","column3-7","text","link","image","video","map"],flexGrid:!1,stylePrefix:"gjs-",addBasicStyle:!0,category:"Basic",labelColumn1:"1 Column",labelColumn2:"2 Columns",labelColumn3:"3 Columns",labelColumn37:"2 Columns 3/7",labelText:"Text",labelLink:"Link",labelImage:"Image",labelVideo:"Video",labelMap:"Map",rowHeight:75},e))};return e})(),t.exports=e()},716:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{var t={480:t=>{var e;window,e=function(){return e=[function(t,e,n){"use strict";var r;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=u(t);return function(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,e?(n=u(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}n.d(e,"f",(function(){return m})),n.d(e,"a",(function(){return v})),n.d(e,"e",(function(){return y})),n.d(e,"b",(function(){return w})),n.d(e,"d",(function(){return E})),n.d(e,"m",(function(){return x})),n.d(e,"i",(function(){return C})),n.d(e,"n",(function(){return T})),n.d(e,"j",(function(){return A})),n.d(e,"k",(function(){return O})),n.d(e,"l",(function(){return S})),n.d(e,"h",(function(){return k})),n.d(e,"g",(function(){return P})),n.d(e,"c",(function(){return D})),(e=r=r||{}).Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype",r.Root,r.Text,r.Directive,r.Comment,r.Script,r.Style,r.Tag,r.CDATA,r.Doctype;var h=function(){function t(){p(this,t),this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return f(t,[{key:"parentNode",get:function(){return this.parent},set:function(t){this.parent=t}},{key:"previousSibling",get:function(){return this.prev},set:function(t){this.prev=t}},{key:"nextSibling",get:function(){return this.next},set:function(t){this.next=t}},{key:"cloneNode",value:function(){return P(this,0<arguments.length&&void 0!==arguments[0]&&arguments[0])}}]),t}(),g=function(){s(e,h);var t=c(e);function e(n){var r;return p(this,e),(r=t.call(this)).data=n,r}return f(e,[{key:"nodeValue",get:function(){return this.data},set:function(t){this.data=t}}]),e}(),m=function(){s(e,g);var t=c(e);function e(){var n;return p(this,e),(n=t.apply(this,arguments)).type=r.Text,n}return f(e,[{key:"nodeType",get:function(){return 3}}]),e}(),v=function(){s(e,g);var t=c(e);function e(){var n;return p(this,e),(n=t.apply(this,arguments)).type=r.Comment,n}return f(e,[{key:"nodeType",get:function(){return 8}}]),e}(),y=function(){s(e,g);var t=c(e);function e(n,o){return p(this,e),(o=t.call(this,o)).name=n,o.type=r.Directive,o}return f(e,[{key:"nodeType",get:function(){return 1}}]),e}(),b=function(){s(e,h);var t=c(e);function e(n){var r;return p(this,e),(r=t.call(this)).children=n,r}return f(e,[{key:"firstChild",get:function(){var t;return null!==(t=this.children[0])&&void 0!==t?t:null}},{key:"lastChild",get:function(){return 0<this.children.length?this.children[this.children.length-1]:null}},{key:"childNodes",get:function(){return this.children},set:function(t){this.children=t}}]),e}(),_=function(){s(e,b);var t=c(e);function e(){var n;return p(this,e),(n=t.apply(this,arguments)).type=r.CDATA,n}return f(e,[{key:"nodeType",get:function(){return 4}}]),e}(),w=function(){s(e,b);var t=c(e);function e(){var n;return p(this,e),(n=t.apply(this,arguments)).type=r.Root,n}return f(e,[{key:"nodeType",get:function(){return 9}}]),e}(),E=function(){s(e,b);var t=c(e);function e(n,o){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"script"===n?r.Script:"style"===n?r.Style:r.Tag;return p(this,e),(i=t.call(this,i)).name=n,i.attribs=o,i.type=a,i}return f(e,[{key:"nodeType",get:function(){return 1}},{key:"tagName",get:function(){return this.name},set:function(t){this.name=t}},{key:"attributes",get:function(){var t=this;return Object.keys(this.attribs).map((function(e){var n;return{name:e,value:t.attribs[e],namespace:null===(n=t["x-attribsNamespace"])||void 0===n?void 0:n[e],prefix:null===(n=t["x-attribsPrefix"])||void 0===n?void 0:n[e]}}))}}]),e}();function x(t){return function(t){return t.type===r.Tag||t.type===r.Script||t.type===r.Style}(t)}function C(t){return t.type===r.CDATA}function T(t){return t.type===r.Text}function A(t){return t.type===r.Comment}function O(t){return t.type===r.Directive}function S(t){return t.type===r.Root}function k(t){return Object.prototype.hasOwnProperty.call(t,"children")}function P(t){var e,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(T(t))e=new m(t.data);else if(A(t))e=new v(t.data);else if(x(t)){var r=n?j(t.children):[],o=new E(t.name,a({},t.attribs),r);r.forEach((function(t){return t.parent=o})),null!=t.namespace&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=a({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=a({},t["x-attribsPrefix"])),e=o}else if(C(t)){r=n?j(t.children):[];var i=new _(r);r.forEach((function(t){return t.parent=i})),e=i}else if(S(t)){var s=n?j(t.children):[],l=new w(s);s.forEach((function(t){return t.parent=l})),t["x-mode"]&&(l["x-mode"]=t["x-mode"]),e=l}else{if(!O(t))throw new Error("Not implemented yet: ".concat(t.type));s=new y(t.name,t.data),null!=t["x-name"]&&(s["x-name"]=t["x-name"],s["x-publicId"]=t["x-publicId"],s["x-systemId"]=t["x-systemId"]),e=s}return e.startIndex=t.startIndex,e.endIndex=t.endIndex,null!=t.sourceCodeLocation&&(e.sourceCodeLocation=t.sourceCodeLocation),e}function j(t){for(var e=t.map((function(t){return P(t,!0)})),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var L={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},D=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.dom=[],this.root=new w(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof n&&(r=n,n=L),"object"===N(e)&&(n=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=n?n:L,this.elementCB=null!=r?r:null}return function(t,e){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"onparserinit",value:function(t){this.parser=t}},{key:"onreset",value:function(){this.dom=[],this.root=new w(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}},{key:"onend",value:function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}},{key:"onerror",value:function(t){this.handleCallback(t)}},{key:"onclosetag",value:function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}},{key:"onopentag",value:function(t,e){var n=this.options.xmlMode?r.Tag:void 0;n=new E(t,e,void 0,n),this.addNode(n),this.tagStack.push(n)}},{key:"ontext",value:function(t){var e=this.lastNode;e&&e.type===r.Text?(e.data+=t,this.options.withEndIndices&&(e.endIndex=this.parser.endIndex)):(t=new m(t),this.addNode(t),this.lastNode=t)}},{key:"oncomment",value:function(t){this.lastNode&&this.lastNode.type===r.Comment?this.lastNode.data+=t:(t=new v(t),this.addNode(t),this.lastNode=t)}},{key:"oncommentend",value:function(){this.lastNode=null}},{key:"oncdatastart",value:function(){var t=new m(""),e=new _([t]);this.addNode(e),t.parent=e,this.lastNode=t}},{key:"oncdataend",value:function(){this.lastNode=null}},{key:"onprocessinginstruction",value:function(t,e){e=new y(t,e),this.addNode(e)}},{key:"handleCallback",value:function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t}},{key:"addNode",value:function(t){var e=this.tagStack[this.tagStack.length-1],n=e.children[e.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),e.children.push(t),n&&((t.prev=n).next=t),t.parent=e,this.lastNode=null}}]),t}()},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(93);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(146),o=n(147),i=n(235);t.exports=function(t){var e=o();return function(){var n,o=r(t);return o=e?(n=r(this).constructor,Reflect.construct(o,arguments,n)):o.apply(this,arguments),i(this,o)}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e),n.d(e,"getOuterHTML",(function(){return a})),n.d(e,"getInnerHTML",(function(){return s})),n.d(e,"getText",(function(){return l})),n.d(e,"textContent",(function(){return c})),n.d(e,"innerText",(function(){return u})),n.d(e,"getChildren",(function(){return p})),n.d(e,"getParent",(function(){return d})),n.d(e,"getSiblings",(function(){return f})),n.d(e,"getAttributeValue",(function(){return h})),n.d(e,"hasAttrib",(function(){return g})),n.d(e,"getName",(function(){return m})),n.d(e,"nextElementSibling",(function(){return v})),n.d(e,"prevElementSibling",(function(){return y})),n.d(e,"removeElement",(function(){return b})),n.d(e,"replaceElement",(function(){return _})),n.d(e,"appendChild",(function(){return w})),n.d(e,"append",(function(){return E})),n.d(e,"prependChild",(function(){return x})),n.d(e,"prepend",(function(){return C})),n.d(e,"filter",(function(){return S})),n.d(e,"find",(function(){return k})),n.d(e,"findOneChild",(function(){return P})),n.d(e,"findOne",(function(){return j})),n.d(e,"existsOne",(function(){return N})),n.d(e,"findAll",(function(){return L})),n.d(e,"testElement",(function(){return F})),n.d(e,"getElements",(function(){return U})),n.d(e,"getElementById",(function(){return H})),n.d(e,"getElementsByTagName",(function(){return V})),n.d(e,"getElementsByTagType",(function(){return q})),n.d(e,"removeSubsets",(function(){return z})),n.d(e,"DocumentPosition",(function(){return D})),n.d(e,"compareDocumentPosition",(function(){return W})),n.d(e,"uniqueSort",(function(){return G})),n.d(e,"getFeed",(function(){return $})),n.d(e,"isTag",(function(){return o.m})),n.d(e,"isCDATA",(function(){return o.i})),n.d(e,"isText",(function(){return o.n})),n.d(e,"isComment",(function(){return o.j})),n.d(e,"isDocument",(function(){return o.l})),n.d(e,"hasChildren",(function(){return o.h}));var r,o=n(0),i=n(92);function a(t,e){return Object(i.a)(t,e)}function s(t,e){return Object(o.h)(t)?t.children.map((function(t){return a(t,e)})).join(""):""}function l(t){return Array.isArray(t)?t.map(l).join(""):Object(o.m)(t)?"br"===t.name?"\n":l(t.children):Object(o.i)(t)?l(t.children):Object(o.n)(t)?t.data:""}function c(t){return Array.isArray(t)?t.map(c).join(""):Object(o.h)(t)&&!Object(o.j)(t)?c(t.children):Object(o.n)(t)?t.data:""}function u(t){return Array.isArray(t)?t.map(u).join(""):Object(o.h)(t)&&(t.type===r.Tag||Object(o.i)(t))?u(t.children):Object(o.n)(t)?t.data:""}function p(t){return Object(o.h)(t)?t.children:[]}function d(t){return t.parent||null}function f(t){var e=d(t);if(null!=e)return p(e);for(var n=[t],r=t.prev,o=t.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=o;)n.push(o),o=o.next;return n}function h(t,e){return null===(t=t.attribs)||void 0===t?void 0:t[e]}function g(t,e){return null!=t.attribs&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&null!=t.attribs[e]}function m(t){return t.name}function v(t){for(var e=t.next;null!==e&&!Object(o.m)(e);)e=e.next;return e}function y(t){for(var e=t.prev;null!==e&&!Object(o.m)(e);)e=e.prev;return e}function b(t){var e;t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent&&(e=t.parent.children).splice(e.lastIndexOf(t),1)}function _(t,e){var n=e.prev=t.prev;n&&(n.next=e),(n=e.next=t.next)&&(n.prev=e),(n=e.parent=t.parent)&&((n=n.children)[n.lastIndexOf(t)]=e,t.parent=null)}function w(t,e){b(e),e.next=null,1<(e.parent=t).children.push(e)?((t=t.children[t.children.length-2]).next=e).prev=t:e.prev=null}function E(t,e){b(e);var n=t.parent,r=t.next;e.next=r,((e.prev=t).next=e).parent=n,r?(r.prev=e,n&&(t=n.children).splice(t.lastIndexOf(r),0,e)):n&&n.children.push(e)}function x(t,e){b(e),e.parent=t,e.prev=null,1!==t.children.unshift(e)?((t=t.children[1]).prev=e).next=t:e.next=null}function C(t,e){b(e);var n,r=t.parent;r&&(n=r.children).splice(n.indexOf(t),0,e),t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,(e.next=t).prev=e}function T(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||A(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e){if(t){if("string"==typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?O(t,e):void 0}}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function S(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1/0;return k(t,e=Array.isArray(e)?e:[e],n,r)}function k(t,e,n,r){var i,a=[],s=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=A(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(e);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(t(l)&&(a.push(l),--r<=0))break;if(n&&Object(o.h)(l)&&0<l.children.length){var c=k(t,l.children,n,r);if(a.push.apply(a,T(c)),(r-=c.length)<=0)break}}}catch(t){s.e(t)}finally{s.f()}return a}function P(t,e){return e.find(t)}function j(t,e){for(var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=null,i=0;i<e.length&&!r;i++){var a=e[i];Object(o.m)(a)&&(t(a)?r=a:n&&0<a.children.length&&(r=j(t,a.children,!0)))}return r}function N(t,e){return e.some((function(e){return Object(o.m)(e)&&(t(e)||0<e.children.length&&N(t,e.children))}))}function L(t,e){for(var n,r=[],i=e.filter(o.m);n=i.shift();){var a=null===(a=n.children)||void 0===a?void 0:a.filter(o.m);a&&0<a.length&&i.unshift.apply(i,T(a)),t(n)&&r.push(n)}return r}(n=r=r||{}).Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype",r.Root,r.Text,r.Directive,r.Comment,r.Script,r.Style,r.Tag,r.CDATA,r.Doctype;var D,I={tag_name:function(t){return"function"==typeof t?function(e){return Object(o.m)(e)&&t(e.name)}:"*"===t?o.m:function(e){return Object(o.m)(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return Object(o.n)(e)&&t(e.data)}:function(e){return Object(o.n)(e)&&e.data===t}}};function R(t,e){return"function"==typeof e?function(n){return Object(o.m)(n)&&e(n.attribs[t])}:function(n){return Object(o.m)(n)&&n.attribs[t]===e}}function M(t,e){return function(n){return t(n)||e(n)}}function B(t){var e=Object.keys(t).map((function(e){var n=t[e];return Object.prototype.hasOwnProperty.call(I,e)?I[e](n):R(e,n)}));return 0===e.length?null:e.reduce(M)}function F(t,e){return!(t=B(t))||t(e)}function U(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1/0;return(t=B(t))?S(t,e,n,r):[]}function H(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];return Array.isArray(e)||(e=[e]),j(R("id",t),e,n)}function V(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1/0;return S(I.tag_name(t),e,n,r)}function q(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1/0;return S(I.tag_type(t),e,n,r)}function z(t){for(var e=t.length;0<=--e;){var n=t[e];if(0<e&&0<=t.lastIndexOf(n,e-1))t.splice(e,1);else for(var r=n.parent;r;r=r.parent)if(t.includes(r)){t.splice(e,1);break}}return t}function W(t,e){var n=[],r=[];if(t===e)return 0;for(var i=Object(o.h)(t)?t:t.parent;i;)n.unshift(i),i=i.parent;for(i=Object(o.h)(e)?e:e.parent;i;)r.unshift(i),i=i.parent;for(var a=Math.min(n.length,r.length),s=0;s<a&&n[s]===r[s];)s++;if(0===s)return D.DISCONNECTED;var l=n[s-1],c=l.children,u=n[s],p=r[s];return c.indexOf(u)>c.indexOf(p)?l===e?D.FOLLOWING|D.CONTAINED_BY:D.FOLLOWING:l===t?D.PRECEDING|D.CONTAINS:D.PRECEDING}function G(t){return(t=t.filter((function(t,e,n){return!n.includes(t,e+1)}))).sort((function(t,e){return(e=W(t,e))&D.PRECEDING?-1:e&D.FOLLOWING?1:0})),t}function Y(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?K(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $(t){return(t=J(nt,t))?("feed"===t.name?function(t){var e=t.children,n={type:"atom",items:V("entry",e).map((function(t){var e=t.children,n={media:Q(e)};return et(n,"id","id",e),et(n,"title","title",e),(t=null===(t=J("link",e))||void 0===t?void 0:t.attribs.href)&&(n.link=t),(t=tt("summary",e)||tt("content",e))&&(n.description=t),(e=tt("updated",e))&&(n.pubDate=new Date(e)),n}))};return et(n,"id","id",e),et(n,"title","title",e),(t=null===(t=J("link",e))||void 0===t?void 0:t.attribs.href)&&(n.link=t),et(n,"description","subtitle",e),(t=tt("updated",e))&&(n.updated=new Date(t)),et(n,"author","email",e,!0),n}:function(t){var e=null!==(n=null===(e=J("channel",t.children))||void 0===e?void 0:e.children)&&void 0!==n?n:[],n={type:t.name.substr(0,3),id:"",items:V("item",t.children).map((function(t){var e=t.children;return et(t={media:Q(e)},"id","guid",e),et(t,"title","title",e),et(t,"link","link",e),et(t,"description","description",e),(e=tt("pubDate",e))&&(t.pubDate=new Date(e)),t}))};return et(n,"title","title",e),et(n,"link","link",e),et(n,"description","description",e),(t=tt("lastBuildDate",e))&&(n.updated=new Date(t)),et(n,"author","managingEditor",e,!0),n})(t):null}(n=D=D||{})[n.DISCONNECTED=1]="DISCONNECTED",n[n.PRECEDING=2]="PRECEDING",n[n.FOLLOWING=4]="FOLLOWING",n[n.CONTAINS=8]="CONTAINS",n[n.CONTAINED_BY=16]="CONTAINED_BY";var X=["url","type","lang"],Z=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Q(t){return V("media:content",t).map((function(t){var e,n=t.attribs,r={medium:n.medium,isDefault:!!n.isDefault},o=Y(X);try{for(o.s();!(e=o.n()).done;){var i=e.value;n[i]&&(r[i]=n[i])}}catch(t){o.e(t)}finally{o.f()}var a,s=Y(Z);try{for(s.s();!(a=s.n()).done;){var l=a.value;n[l]&&(r[l]=parseInt(n[l],10))}}catch(t){s.e(t)}finally{s.f()}return n.expression&&(r.expression=n.expression),r}))}function J(t,e){return V(t,e,!0,1)[0]}function tt(t,e,n){return c(V(t,e,2<arguments.length&&void 0!==n&&n,1)).trim()}function et(t,e,n,r,o){(o=tt(n,r,4<arguments.length&&void 0!==o&&o))&&(t[e]=o)}function nt(t){return"rss"===t||"feed"===t||"rdf:RDF"===t}},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";(function(t){function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(36).default,c=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a="",l=[];H&&"string"==typeof i.skeleton&&(i.skeleton=n(535)("."===i.skeleton.charAt(0)?C.default.resolve(t.cwd(),i.skeleton):i.skeleton));var c={},u={},p={},d=[],f=null,D=null;(H&&i.useMjmlConfigOptions||i.mjmlConfigPath)&&(c=(K=(G=(0,U.readMjmlConfig)(i.mjmlConfigPath)).mjmlConfig).packages,u=K.options,d=K.preprocessors,D=G.componentRootPath,f=G.error,i.useMjmlConfigOptions&&(p=u)),H&&!f&&i.mjmlConfigPath&&(0,U.handleMjmlConfigComponents)(c,D,L.registerComponent);var I,q=void 0!==(Y=(X=s(s(s({},p),i),{},{preprocessors:i.preprocessors?[].concat(r(d),r(i.preprocessors)):d})).beautify)&&Y,z=void 0===($=X.fonts)?{"Open Sans":"https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700","Droid Sans":"https://fonts.googleapis.com/css?family=Droid+Sans:300,400,500,700",Lato:"https://fonts.googleapis.com/css?family=Lato:300,400,500,700",Roboto:"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700",Ubuntu:"https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700"}:$,W=X.keepComments,G=void 0!==(K=X.minify)&&K,Y=(f=void 0===(u=X.minifyOptions)?{}:u,D=void 0!==(c=X.ignoreIncludes)&&c,i=void 0===(p=X.juiceOptions)?{}:p,void 0===(d=X.juicePreserveTags)?null:d),K=void 0===($=X.skeleton)?B.default:$,$=(c=void 0===(u=X.validationLevel)?"soft":u,d=void 0===(p=X.filePath)?".":p,u=void 0===($=X.actualPath)?".":$,void 0!==(p=X.noMigrateWarn)&&p),X=(p=X.preprocessors,void 0===(X=X.presets)?[]:X),Z=s({},L.default),Q=(0,P.assignDependencies)({},P.dependencies),J=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(X);try{for(J.s();!(I=J.n()).done;){var tt=I.value;(0,L.assignComponents)(Z,tt.components),(0,P.assignDependencies)(Q,tt.dependencies)}}catch(e){J.e(e)}finally{J.f()}"string"==typeof e&&(e=(0,k.default)(e,{keepComments:W,components:Z,filePath:d,actualPath:u,preprocessors:p,ignoreIncludes:D})),e=(0,j.handleMjml3)(e,{noMigrateWarn:$});var et,nt,rt={backgroundColor:"",beforeDoctype:"",breakpoint:"480px",classes:{},classesDefault:{},defaultAttributes:{},htmlAttributes:{},fonts:z,inlineStyle:[],headStyle:{},componentsHeadStyle:[],headRaw:[],mediaQueries:{},preview:"",style:[],title:"",forceOWADesktop:"desktop"===(0,w.default)(e,"attributes.owa","mobile"),lang:(0,w.default)(e,"attributes.lang"),dir:(0,w.default)(e,"attributes.dir")},ot={components:Z,dependencies:Q,initializeType:F.initializeType};switch(c){case"skip":break;case"strict":if(0<(l=(0,P.default)(e,ot)).length)throw new V("ValidationError: \n ".concat(l.map((function(t){return t.formattedMessage})).join("\n")),l);break;default:l=(0,P.default)(e,ot)}function it(t,e,n){if(n=2<arguments.length&&void 0!==n?n:_.default,t)return null!==(e=(0,N.initComponent)({name:t.tagName,initialDatas:s(s({},n(t)),{},{context:e})}))?"handler"in e?e.handler():"render"in e?e.render():void 0:void 0}function at(t){return function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=e.attributes,o=e.tagName,i=e.children,a=(0,w.default)(e.attributes,"mj-class","").split(" "),l=(0,v.default)(a,(function(t,e){var n=rt.classes[e];return e={},t["css-class"]&&(0,w.default)(n,"css-class")&&(e={"css-class":"".concat(t["css-class"]," ").concat(n["css-class"])}),s(s(s({},t),n),e)}),{}),c=(a=(0,v.default)(n.split(" "),(function(t,e){return s(s({},t),(0,w.default)(rt.classesDefault,"".concat(e,".").concat(o)))}),{}),(0,w.default)(r,"mj-class",n));return s(s({},e),{},{attributes:s(s(s(s({},rt.defaultAttributes[o]),l),a),(0,y.default)(r,["mj-class"])),globalAttributes:s({},rt.defaultAttributes["mj-all"]),children:(0,b.default)(i,(function(e){return t(e,c)}))})}(t)}if(p=(0,x.default)(e.children,{tagName:"mj-body"}),D=(0,x.default)(e.children,{tagName:"mj-head"}),$=(0,E.default)(e.children,{tagName:"mj-raw"}),z={components:Z,globalData:rt,addMediaQuery:function(t,e){var n=e.parsedWidth;e=e.unit,rt.mediaQueries[t]="{ width:".concat(n).concat(e," !important; max-width: ").concat(n).concat(e,"; }")},addHeadStyle:function(t,e){rt.headStyle[t]=e},addComponentHeadSyle:function(t){rt.componentsHeadStyle.push(t)},setBackgroundColor:function(t){rt.backgroundColor=t},processing:function(t,e){return it(t,e,at)}},c={components:Z,globalData:rt,add:function(t){for(var e,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];if(Array.isArray(rt[t]))(e=rt[t]).push.apply(e,r);else{if(!Object.prototype.hasOwnProperty.call(rt,t))throw Error("An mj-head element add an unkown head attribute : ".concat(t," with params ").concat(Array.isArray(r)?r.join(""):r));1<r.length?(0,m.default)(rt[t][r[0]])?rt[t][r[0]]=s(s({},rt[t][r[0]]),r[1]):rt[t][r[0]]=r[1]:rt[t]=r[0]}}},rt.headRaw=it(D,c),!(a=it(p,z,at)))throw new Error("Malformed MJML. Check that your structure is correct and enclosed in <mjml> tags.");return a=(0,M.default)(a),$.length&&(et=$.filter((function(t){return t.attributes.position&&"file-start"===t.attributes.position}))).length&&(rt.beforeDoctype=et.map((function(t){return t.content})).join("\n")),(0,h.default)(rt.htmlAttributes)||(nt=(0,S.load)(a,{xmlMode:!0,decodeEntities:!1}),(0,g.default)(rt.htmlAttributes,(function(t,e){(0,g.default)(t,(function(t,n){nt(e).each((function(){nt(this).attr(n,t||"")}))}))})),a=nt.root().html()),a=K(s({content:a},rt)),0<rt.inlineStyle.length&&(Y&&(0,g.default)(Y,(function(t,e){T.default.codeBlocks[e]=t})),a=(0,T.default)(a,s({applyStyleTags:!1,extraCss:rt.inlineStyle.join(""),insertPreservedExtraCss:!1,removeStyleTags:!1},i))),a=(0,R.default)(a),q&&(console.warn('"beautify" option is deprecated in mjml-core and only available in mjml cli.'),a=(0,A.html)(a,{indent_size:2,wrap_attributes_indent_size:2,max_preserve_newline:0,preserve_newlines:!1})),G&&(console.warn('"minify" option is deprecated in mjml-core and only available in mjml cli.'),a=(0,O.minify)(a,s({collapseWhitespace:!0,minifyCSS:!1,caseSensitive:!0,removeEmptyAttributes:!0},f))),{html:a,json:e,errors:l}},Object.defineProperty(e,"initComponent",{enumerable:!0,get:function(){return N.initComponent}}),Object.defineProperty(e,"BodyComponent",{enumerable:!0,get:function(){return N.BodyComponent}}),Object.defineProperty(e,"HeadComponent",{enumerable:!0,get:function(){return N.HeadComponent}}),Object.defineProperty(e,"components",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"registerComponent",{enumerable:!0,get:function(){return L.registerComponent}}),Object.defineProperty(e,"assignComponents",{enumerable:!0,get:function(){return L.assignComponents}}),Object.defineProperty(e,"makeLowerBreakpoint",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(e,"suffixCssClasses",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"initializeType",{enumerable:!0,get:function(){return F.initializeType}}),Object.defineProperty(e,"handleMjmlConfig",{enumerable:!0,get:function(){return U.default}});var u=c(n(3)),p=c(n(4)),d=c(n(5)),f=c(n(236)),h=c(n(148)),g=c(n(153)),m=c(n(18)),v=c(n(41)),y=c(n(168)),b=c(n(46)),_=c(n(24)),w=c(n(42)),E=c(n(114)),x=c(n(47)),C=c(n(21)),T=c(n(337)),A=n(179),O=n(352),S=n(232),k=c(n(132)),P=l(n(141)),j=n(497),N=n(499),L=l(n(224)),D=c(n(525)),I=c(n(526)),R=c(n(527)),M=c(n(528)),B=c(n(529)),F=n(27),U=l(n(533)),H=n(534),V=function(t){(0,p.default)(n,t);var e=(0,d.default)(n);function n(t,r){return(0,u.default)(this,n),(t=e.call(this,t)).errors=r,t}return n}((0,f.default)(Error));H&&(0,U.default)(t.cwd(),L.registerComponent)}).call(this,n(14))},function(t,e){t.exports={AT_RULE:"at-rule",AT_RULE_BLOCK:"at-rule-block",AT_RULE_BLOCK_SCOPE:"at-rule-block-scope",COMMENT:"comment",NESTED_BLOCK:"nested-block",NESTED_BLOCK_SCOPE:"nested-block-scope",PROPERTY:"property",PROPERTY_BLOCK:"property-block",PROPERTY_NAME:"property-name",PROPERTY_VALUE:"property-value",RAW:"raw",RULE:"rule",RULE_SCOPE:"rule-scope"}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var o=r(n(341));e.htmlDecodeTree=o.default;var i=r(n(342));e.xmlDecodeTree=i.default;var a=r(n(177));e.decodeCodePoint=a.default;var s,l,c=n(177);function u(t){return function(e,n){for(var r="",o=0,i=0;0<=(i=e.indexOf("&",i));)if(r+=e.slice(o,i),o=i,e.charCodeAt(i+=1)!==s.NUM){for(var c=0,u=1,d=0,f=t[d];i<e.length&&!((d=p(t,f,d+1,e.charCodeAt(i)))<0);i++,u++){var h,g=(f=t[d])&l.VALUE_LENGTH;if(g){if(n&&e.charCodeAt(i)!==s.SEMI||(c=d,u=0),0==(h=(g>>14)-1))break;d+=h}}0!==c&&(r+=1==(h=(t[c]&l.VALUE_LENGTH)>>14)?String.fromCharCode(t[c]&~l.VALUE_LENGTH):2===h?String.fromCharCode(t[c+1]):String.fromCharCode(t[c+1],t[c+2]),o=i-u+1)}else{var m,v=i+1,y=10;for(((m=e.charCodeAt(v))|s.To_LOWER_BIT)===s.LOWER_X&&(y=16,i+=1,v+=1);(m=e.charCodeAt(++i))>=s.ZERO&&m<=s.NINE||16===y&&(m|s.To_LOWER_BIT)>=s.LOWER_A&&(m|s.To_LOWER_BIT)<=s.LOWER_F;);if(v!==i){if(v=e.substring(v,i),v=parseInt(v,y),e.charCodeAt(i)===s.SEMI)i+=1;else if(n)continue;r+=(0,a.default)(v),o=i}}return r+e.slice(o)}}function p(t,e,n,r){var o=(e&l.BRANCH_LENGTH)>>7;if(e&=l.JUMP_TABLE,0==o)return 0!=e&&r===e?n:-1;if(e)return(e=r-e)<0||o<=e?-1:t[n+e]-1;for(var i=n,a=i+o-1;i<=a;){var s=i+a>>>1,c=t[s];if(c<r)i=1+s;else{if(!(r<c))return t[s+o];a=s-1}}return-1}Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}}),(n=s=s||{})[n.NUM=35]="NUM",n[n.SEMI=59]="SEMI",n[n.ZERO=48]="ZERO",n[n.NINE=57]="NINE",n[n.LOWER_A=97]="LOWER_A",n[n.LOWER_F=102]="LOWER_F",n[n.LOWER_X=120]="LOWER_X",n[n.To_LOWER_BIT=32]="To_LOWER_BIT",(n=l=e.BinTrieFlags||(e.BinTrieFlags={}))[n.VALUE_LENGTH=49152]="VALUE_LENGTH",n[n.BRANCH_LENGTH=16256]="BRANCH_LENGTH",n[n.JUMP_TABLE=127]="JUMP_TABLE",e.determineBranch=p;var d=u(o.default),f=u(i.default);e.decodeHTML=function(t){return d(t,!1)},e.decodeHTMLStrict=function(t){return d(t,!0)},e.decodeXML=function(t){return f(t,!0)}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(124);function o(t,e){t.output.push("string"==typeof e?e:e[1])}function i(){return{output:[],store:o}}t.exports={all:function(t){var e=i();return r.all(e,t),e.output.join("")},body:function(t){var e=i();return r.body(e,t),e.output.join("")},property:function(t,e){var n=i();return r.property(n,t,e,!0),n.output.join("")},rules:function(t){var e=i();return r.rules(e,t),e.output.join("")},value:function(t){var e=i();return r.value(e,t),e.output.join("")}}},function(t,e){var n,r;function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}t=t.exports={},function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var s,l=[],c=!1,u=-1;function p(){c&&s&&(c=!1,s.length?l=s.concat(l):u=-1,l.length&&d())}function d(){if(!c){var t=a(p);c=!0;for(var e=l.length;e;){for(s=l,l=[];++u<e;)s&&s[u].run();u=-1,e=l.length}s=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function h(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),1!==l.length||c||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=h,t.addListener=h,t.once=h,t.off=h,t.removeListener=h,t.removeAllListeners=h,t.emit=h,t.prependListener=h,t.prependOnceListener=h,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e){t.exports={ASTERISK:"*",AT:"@",BACK_SLASH:"\\",CARRIAGE_RETURN:"\r",CLOSE_CURLY_BRACKET:"}",CLOSE_ROUND_BRACKET:")",CLOSE_SQUARE_BRACKET:"]",COLON:":",COMMA:",",DOUBLE_QUOTE:'"',EXCLAMATION:"!",FORWARD_SLASH:"/",INTERNAL:"-clean-css-",NEW_LINE_NIX:"\n",OPEN_CURLY_BRACKET:"{",OPEN_ROUND_BRACKET:"(",OPEN_SQUARE_BRACKET:"[",SEMICOLON:";",SINGLE_QUOTE:"'",SPACE:" ",TAB:"\t",UNDERSCORE:"_"}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(150);n="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,n=o||n||Function("return this")(),t.exports=n},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}t.exports=r},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return null!=t&&("object"==e||"function"==e)}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){return null!=t&&"object"==n(t)}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(257),i=n(291),a=n(24),s=n(12),l=n(298);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==r(t)?s(t)?i(t[0],t[1]):o(t):l(t)}},function(t,e){function n(){return console.warn("fs should not be used in browser build"),null}t.exports={parse:n,resolve:n,join:n,dirname:n,isAbsolute:n}},function(t,e,n){"use strict";(function(t){var r=n(339),o=n(340),i=n(176);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(t=null===t?new l(e):t).length=e,t}function l(t,e,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,n);if("number"!=typeof t)return c(this,t,e,n);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}function c(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=d(t,e),t}(t,e,n,r):"string"==typeof e?function(t,e,n){if(!l.isEncoding(n="string"!=typeof n||""===n?"utf8":n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(e,n);return(n=(t=s(t,r)).write(e,n))!==r?t.slice(0,n):t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|f(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||function(t){return t!=t}(e.length)?s(t,0):d(t,e);if("Buffer"===e.type&&i(e.data))return d(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function u(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function p(t,e){if(u(e),t=s(t,e<0?0:0|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|f(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function f(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function h(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var n=(t="string"!=typeof t?""+t:t).length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return k(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return P(t).length;default:if(r)return k(t).length;e=(""+e).toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function m(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,(n=(n=isNaN(n)?o?0:t.length-1:n)<0?t.length+n:n)>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=l.from(e,r)),l.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,o);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,n):v(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,o){var i=1,a=t.length,s=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a/=i=2,s/=2,n/=2}function l(t,e){return 1===i?t[e]:t.readUInt16BE(e*i)}if(o)for(var c=-1,u=n;u<a;u++)if(l(t,u)===l(e,-1===c?0:u-c)){if(u-(c=-1===c?u:c)+1===s)return c*i}else-1!==c&&(u-=u-c),c=-1;else for(u=n=a<n+s?a-s:n;0<=u;u--){for(var p=!0,d=0;d<s;d++)if(l(t,u+d)!==l(e,d)){p=!1;break}if(p)return u}return-1}function y(t,e,n,r){return j(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function b(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i,a,s,l,c=t[o],u=null,p=239<c?4:223<c?3:191<c?2:1;if(o+p<=n)switch(p){case 1:c<128&&(u=c);break;case 2:128==(192&(i=t[o+1]))&&127<(l=(31&c)<<6|63&i)&&(u=l);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&2047<(l=(15&c)<<12|(63&i)<<6|63&a)&&(l<55296||57343<l)&&(u=l);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)&&l<1114112&&(u=l)}null===u?(u=65533,p=1):65535<u&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=p}return function(t){var e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=_));return n}(r)}e.Buffer=l,e.SlowBuffer=function(t){return l.alloc(+(t=+t!=t?0:t))},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return c(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,r){return u(e),e<=0||void 0===n?s(t,e):"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n)}(null,t,e,n)},l.allocUnsafe=function(t){return p(null,t)},l.allocUnsafeSlow=function(t){return p(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);if(void 0===e)for(o=e=0;o<t.length;++o)e+=t[o].length;for(var n=l.allocUnsafe(e),r=0,o=0;o<t.length;++o){var a=t[o];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,r),r+=a.length}return n},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?b(this,0,t):function(t,e,n){var o=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((n=void 0===n||n>this.length?this.length:n)<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,e,n){var r=t.length;(!n||n<0||r<n)&&(n=r);for(var o="",i=e=!e||e<0?0:e;i<n;++i)o+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(t[i]);return o}(this,e,n);case"utf8":case"utf-8":return b(this,e,n);case"ascii":return function(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}(this,e,n);case"latin1":case"binary":return function(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}(this,e,n);case"base64":return function(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),o=!0}}.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,r,o){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),(e=void 0===e?0:e)<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(o<=r&&n<=e)return 0;if(o<=r)return-1;if(n<=e)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=t.slice(e,n),p=0;p<s;++p)if(c[p]!==u[p]){i=c[p],a=u[p];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return m(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return m(this,t,e,n,!1)},l.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||o<n)&&(n=o),0<t.length&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var i=!1;;)switch(r){case"hex":return function(t,e,n,r){n=Number(n)||0;var o=t.length-n;if((!r||o<(r=Number(r)))&&(r=o),(o=e.length)%2!=0)throw new TypeError("Invalid hex string");o/2<r&&(r=o/2);for(var i=0;i<r;++i){var a=parseInt(e.substr(2*i,2),16);if(isNaN(a))return i;t[n+i]=a}return i}(this,t,e,n);case"utf8":case"utf-8":return function(t,e,n,r){return j(k(e,t.length-n),t,n,r)}(this,t,e,n);case"ascii":case"latin1":case"binary":return y(this,t,e,n);case"base64":return function(t,e,n,r){return j(P(e),t,n,r)}(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,n,r){return j(function(t,e){for(var n,r,o=[],i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o.push(r%=256),o.push(n);return o}(e,t.length-n),t,n,r)}(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function w(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(n<t+e)throw new RangeError("Trying to access beyond buffer length")}function E(t,e,n,r,o,i){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<e||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function x(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function C(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function T(t,e,n,r){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function A(t,e,n,r,i){return i||T(t,0,n,4),o.write(t,e,n,r,23,4),n+4}function O(t,e,n,r,i){return i||T(t,0,n,8),o.write(t,e,n,r,52,8),n+8}l.prototype.slice=function(t,e){var n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(o=this.subarray(t,e)).__proto__=l.prototype;else for(var r=e-t,o=new l(r,void 0),i=0;i<r;++i)o[i]=this[i+t];return o},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=this[t+--e],o=1;0<e&&(o*=256);)r+=this[t+--e]*o;return r},l.prototype.readUInt8=function(t,e){return e||w(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||w(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||w(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||w(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||w(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return(o*=128)<=r&&(r-=Math.pow(2,8*e)),r},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||w(t,e,this.length);for(var r=e,o=1,i=this[t+--r];0<r&&(o*=256);)i+=this[t+--r]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*e)),i},l.prototype.readInt8=function(t,e){return e||w(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){return e||w(t,2,this.length),32768&(t=this[t]|this[t+1]<<8)?4294901760|t:t},l.prototype.readInt16BE=function(t,e){return e||w(t,2,this.length),32768&(t=this[t+1]|this[t]<<8)?4294901760|t:t},l.prototype.readInt32LE=function(t,e){return e||w(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||w(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||w(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||w(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||w(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||w(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||E(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,r){t=+t,e|=0,n|=0,r||E(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[e+o]=255&t;0<=--o&&(i*=256);)this[e+o]=t/i&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):C(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):C(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,r){t=+t,e|=0,r||E(this,t,e,n,(r=Math.pow(2,8*n-1))-1,-r);var o=0,i=1,a=0;for(this[e]=255&t;++o<n&&(i*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/i|0)-a&255;return e+n},l.prototype.writeIntBE=function(t,e,n,r){t=+t,e|=0,r||E(this,t,e,n,(r=Math.pow(2,8*n-1))-1,-r);var o=n-1,i=1,a=0;for(this[e+o]=255&t;0<=--o&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i|0)-a&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):C(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||E(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):C(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return A(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return A(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return O(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return O(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,r){if(n=n||0,r||0===r||(r=this.length),e>=t.length&&(e=t.length),(r=0<r&&r<n?n:r)===n)return 0;if(0===t.length||0===this.length)return 0;if((e=e||0)<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var o,i=(r=t.length-e<r-n?t.length-e+n:r)-n;if(this===t&&n<e&&e<r)for(o=i-1;0<=o;--o)t[o+e]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),e);return i},l.prototype.fill=function(t,e,n,r){if("string"==typeof t){var o;if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1!==t.length||(o=t.charCodeAt(0))<256&&(t=o),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;if(e>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(t=t||0))for(s=e;s<n;++s)this[s]=t;else for(var i=l.isBuffer(t)?t:k(new l(t,r).toString()),a=i.length,s=0;s<n-e;++s)this[s+e]=i[s%a];return this};var S=/[^+\/0-9A-Za-z-_]/g;function k(t,e){var n;e=e||1/0;for(var r=t.length,o=null,i=[],a=0;a<r;++a){if(55295<(n=t.charCodeAt(a))&&n<57344){if(!o){if(56319<n){-1<(e-=3)&&i.push(239,191,189);continue}if(a+1===r){-1<(e-=3)&&i.push(239,191,189);continue}o=n;continue}if(n<56320){-1<(e-=3)&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&-1<(e-=3)&&i.push(239,191,189);if(o=null,n<128){if(--e<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function P(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(S,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function j(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n(17))},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var r=n(6),o=n(0);function i(e){return function(n,r,i,s){return"string"==typeof(n=void 0!==t&&t.isBuffer(n)?n.toString():n)?e(n,r,i,s):(s=n,!Array.isArray(s)&&Object(o.l)(s)?s:(a(s,n=new o.b([])),n))}}function a(t,e){var n=Array.isArray(t)?t:[t];e?e.children=n:e=null;for(var o=0;o<n.length;o++){var i=n[o];i.parent&&i.parent.children!==n&&Object(r.removeElement)(i),e?(i.prev=n[o-1]||null,i.next=n[o+1]||null):i.prev=i.next=null,i.parent=e}return e}}).call(this,n(22).Buffer)},function(t,e){t.exports=function(t){return t}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(181).roundingPrecisionFrom,i=n(48),a={Zero:"0",One:"1",Two:"2"},s={};s[a.Zero]={},s[a.One]={cleanupCharsets:!0,normalizeUrls:!0,optimizeBackground:!0,optimizeBorderRadius:!0,optimizeFilter:!0,optimizeFontWeight:!0,optimizeOutline:!0,removeEmpty:!0,removeNegativePaddings:!0,removeQuotes:!0,removeWhitespace:!0,replaceMultipleZeros:!0,replaceTimeUnits:!0,replaceZeroUnits:!0,roundingPrecision:o(void 0),selectorsSortingMethod:"standard",specialComments:"all",tidyAtRules:!0,tidyBlockScopes:!0,tidySelectors:!0,transform:function(){}},s[a.Two]={mergeAdjacentRules:!0,mergeIntoShorthands:!0,mergeMedia:!0,mergeNonAdjacentRules:!0,mergeSemantically:!1,overrideProperties:!0,removeEmpty:!0,reduceNonAdjacentRules:!0,removeDuplicateFontRules:!0,removeDuplicateMediaBlocks:!0,removeDuplicateRules:!0,removeUnusedAtRules:!1,restructureRules:!1,skipProperties:[]};var l="all";function c(t,e){var n,r=i(s[t],{});for(n in r)"boolean"==typeof r[n]&&(r[n]=e);return r}function u(t){switch(t){case"false":case"off":return!1;case"true":case"on":return!0;default:return t}}t.exports={OptimizationLevel:a,optimizationLevelFrom:function(t){var e=i(s,{}),n=a.Zero,p=a.One,d=a.Two;return void 0===t?delete e[d]:"number"==typeof(t="string"==typeof t?parseInt(t):t)&&t===parseInt(d)||("number"==typeof t&&t===parseInt(p)?delete e[d]:"number"==typeof t&&t===parseInt(n)?(delete e[d],delete e[p]):(p in(t="object"==r(t)?function(t){for(var e,n=i(t,{}),r=0;r<=2;r++)(e=""+r)in n&&(void 0===n[e]||!1===n[e])&&delete n[e],e in n&&!0===n[e]&&(n[e]={}),e in n&&"string"==typeof n[e]&&(n[e]=function(t,e){return t.split(";").reduce((function(t,n){n=(r=n.split(":"))[0];var r=u(r[1]);return"*"==n||l==n?t=i(t,c(e,r)):t[n]=r,t}),{})}(n[e],e));return n}(t):t)&&"roundingPrecision"in t[p]&&(t[p].roundingPrecision=o(t[p].roundingPrecision)),d in t&&"skipProperties"in t[d]&&"string"==typeof t[d].skipProperties&&(t[d].skipProperties=t[d].skipProperties.split(",")),(n in t||p in t||d in t)&&(e[n]=i(e[n],t[n])),p in t&&"*"in t[p]&&(e[p]=i(e[p],c(p,u(t[p]["*"]))),delete t[p]["*"]),p in t&&l in t[p]&&(e[p]=i(e[p],c(p,u(t[p].all))),delete t[p].all),p in t||d in t?e[p]=i(e[p],t[p]):delete e[p],d in t&&"*"in t[d]&&(e[d]=i(e[d],c(d,u(t[d]["*"]))),delete t[d]["*"]),d in t&&l in t[d]&&(e[d]=i(e[d],c(d,u(t[d].all))),delete t[d].all),d in t?e[d]=i(e[d],t[d]):delete e[d])),e}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(404),i=n(405);function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=b,e.resolve=function(t,e){return b(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?b(t,!1,!0).resolveObject(e):e},e.format=function(t){return(t=i.isString(t)?b(t):t)instanceof a?t.format():a.prototype.format.call(t)},e.Url=a;var s=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,u=(e=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),["'"].concat(e)),p=["%","/","?",";","#"].concat(u),d=["/","?","#"],f=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(406);function b(t,e,n){if(t&&i.isObject(t)&&t instanceof a)return t;var r=new a;return r.parse(t,e,n),r}a.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+r(t));var a=t.indexOf("?"),l=-1!==a&&a<t.indexOf("#")?"?":"#";(a=t.split(l))[0]=a[0].replace(/\\/g,"/");var b,_,w,E=(E=t=a.join(l)).trim();if(!n&&1===t.split("#").length&&(_=c.exec(E)))return this.path=E,this.href=E,this.pathname=_[1],_[2]?(this.search=_[2],this.query=e?y.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this;if((_=s.exec(E))&&(w=(_=_[0]).toLowerCase(),this.protocol=w,E=E.substr(_.length)),(n||_||E.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(b="//"===E.substr(0,2))||_&&m[_]||(E=E.substr(2),this.slashes=!0)),!m[_]&&(b||_&&!v[_])){for(var x=-1,C=0;C<d.length;C++)-1!==(T=E.indexOf(d[C]))&&(-1===x||T<x)&&(x=T);var T,A;for(-1!==(R=-1===x?E.lastIndexOf("@"):E.lastIndexOf("@",x))&&(M=E.slice(0,R),E=E.slice(R+1),this.auth=decodeURIComponent(M)),x=-1,C=0;C<p.length;C++)-1!==(T=E.indexOf(p[C]))&&(-1===x||T<x)&&(x=T);if(-1===x&&(x=E.length),this.host=E.slice(0,x),E=E.slice(x),this.parseHost(),this.hostname=this.hostname||"",!(A="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1]))for(var O=this.hostname.split(/\./),S=(C=0,O.length);C<S;C++){var k=O[C];if(k&&!k.match(f)){for(var P="",j=0,N=k.length;j<N;j++)127<k.charCodeAt(j)?P+="x":P+=k[j];if(!P.match(f)){var L=O.slice(0,C),D=O.slice(C+1),I=k.match(h);I&&(L.push(I[1]),D.unshift(I[2])),D.length&&(E="/"+D.join(".")+E),this.hostname=L.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),A||(this.hostname=o.toASCII(this.hostname));var R=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+R,this.href+=this.host,A&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==E[0]&&(E="/"+E))}if(!g[w])for(C=0,S=u.length;C<S;C++){var B,F=u[C];-1!==E.indexOf(F)&&((B=encodeURIComponent(F))===F&&(B=escape(F)),E=E.split(F).join(B))}return-1!==(A=E.indexOf("#"))&&(this.hash=E.substr(A),E=E.slice(0,A)),-1!==(A=E.indexOf("?"))?(this.search=E.substr(A),this.query=E.substr(A+1),e&&(this.query=y.parse(this.query)),E=E.slice(0,A)):e&&(this.search="",this.query={}),E&&(this.pathname=E),v[w]&&this.hostname&&!this.pathname&&(this.pathname="/"),(this.pathname||this.search)&&(R=this.pathname||"",w=this.search||"",this.path=R+w),this.href=this.format(),this},a.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";return this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query)),a=this.search||a&&"?"+a||"",e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||v[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o=o||"",r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),e+o+(n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+r},a.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},a.prototype.resolveObject=function(t){i.isString(t)&&((E=new a).parse(t,!1,!0),t=E);for(var e=new a,n=Object.keys(this),r=0;r<n.length;r++){var o=n[r];e[o]=this[o]}if(e.hash=t.hash,""===t.href)return e.href=e.format(),e;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),l=0;l<s.length;l++){var c=s[l];"protocol"!==c&&(e[c]=t[c])}return v[e.protocol]&&e.hostname&&!e.pathname&&(e.path=e.pathname="/"),e.href=e.format(),e}if(t.protocol&&t.protocol!==e.protocol){if(!v[t.protocol]){for(var u=Object.keys(t),p=0;p<u.length;p++){var d=u[p];e[d]=t[d]}return e.href=e.format(),e}if(e.protocol=t.protocol,t.host||m[t.protocol])e.pathname=t.pathname;else{for(var f=(t.pathname||"").split("/");f.length&&!(t.host=f.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==f[0]&&f.unshift(""),f.length<2&&f.unshift(""),e.pathname=f.join("/")}return e.search=t.search,e.query=t.query,e.host=t.host||"",e.auth=t.auth,e.hostname=t.hostname||t.host,e.port=t.port,(e.pathname||e.search)&&(y=e.pathname||"",b=e.search||"",e.path=y+b),e.slashes=e.slashes||t.slashes,e.href=e.format(),e}var h,g=e.pathname&&"/"===e.pathname.charAt(0),y=(E=t.host||t.pathname&&"/"===t.pathname.charAt(0))||g||e.host&&t.pathname,b=y,_=e.pathname&&e.pathname.split("/")||[];if(f=t.pathname&&t.pathname.split("/")||[],(g=e.protocol&&!v[e.protocol])&&(e.hostname="",e.port=null,e.host&&(""===_[0]?_[0]=e.host:_.unshift(e.host)),e.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===f[0]?f[0]=t.host:f.unshift(t.host)),t.host=null),y=y&&(""===f[0]||""===_[0])),E)e.host=(t.host||""===t.host?t:e).host,e.hostname=(t.hostname||""===t.hostname?t:e).hostname,e.search=t.search,e.query=t.query,_=f;else if(f.length)(_=_||[]).pop(),_=_.concat(f),e.search=t.search,e.query=t.query;else if(!i.isNullOrUndefined(t.search))return g&&(e.hostname=e.host=_.shift(),(h=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=h.shift(),e.host=e.hostname=h.shift())),e.search=t.search,e.query=t.query,i.isNull(e.pathname)&&i.isNull(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.href=e.format(),e;if(!_.length)return e.pathname=null,e.search?e.path="/"+e.search:e.path=null,e.href=e.format(),e;for(var w=_.slice(-1)[0],E=(e.host||t.host||1<_.length)&&("."===w||".."===w)||""===w,x=0,C=_.length;0<=C;C--)"."===(w=_[C])?_.splice(C,1):".."===w?(_.splice(C,1),x++):x&&(_.splice(C,1),x--);if(!y&&!b)for(;x--;)_.unshift("..");return!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),E&&"/"!==_.join("/").substr(-1)&&_.push(""),E=""===_[0]||_[0]&&"/"===_[0].charAt(0),g&&(e.hostname=e.host=!E&&_.length?_.shift():"",(h=!!(e.host&&0<e.host.indexOf("@"))&&e.host.split("@"))&&(e.auth=h.shift(),e.host=e.hostname=h.shift())),(y=y||e.host&&_.length)&&!E&&_.unshift(""),_.length?e.pathname=_.join("/"):(e.pathname=null,e.path=null),i.isNull(e.pathname)&&i.isNull(e.search)||(e.path=(e.pathname||"")+(e.search||"")),e.auth=t.auth||e.auth,e.slashes=e.slashes||t.slashes,e.href=e.format(),e},a.prototype.parseHost=function(){var t=this.host,e=l.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.initializeType=e.types=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(47)),s=r(n(514)),l=r(n(516)),c={};e.types=c,n=function(t){if(c[t])return c[t];var e=((0,a.default)(l.default,(function(e){return!!t.match(e.matcher)}))||{}).typeConstructor;if(!e)throw new Error("No type found for ".concat(t));return c[t]=e(t),c[t]},e.initializeType=n,e.default=function(){function t(e){(0,o.default)(this,t),this.value=e}return(0,i.default)(t,[{key:"isValid",value:function(){var t=this;return(0,s.default)(this.matchers,(function(e){return"".concat(t.value).match(e)}))}},{key:"getErrorMessage",value:function(){if(!this.isValid())return(this.constructor.errorMessage||"has invalid value: ".concat(this.value," for type ").concat(this.constructor.name," ")).replace(/\$value/g,this.value)}},{key:"getValue",value:function(){return this.value}}],[{key:"check",value:function(t){return!!t.match(this.constructor.typeChecker)}}]),t}()},function(t,e,n){var r=n(241),o=n(246);t.exports=function(t,e){return e=o(t,e),r(e)?e:void 0}},function(t,e,n){var r=n(39),o=n(242),i=n(243),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":(a&&a in Object(t)?o:i)(t)}},function(t,e,n){var r=n(68),o=n(96);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,e,n){var r=n(155),o=n(94),i=n(30);t.exports=function(t){return(i(t)?r:o)(t)}},function(t,e,n){var r=n(44);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r,o=n(367),i=n(368),a=n(370),s=n(48),l={animation:{canOverride:i.generic.components([i.generic.time,i.generic.timingFunction,i.generic.time,i.property.animationIterationCount,i.property.animationDirection,i.property.animationFillMode,i.property.animationPlayState,i.property.animationName]),components:["animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state","animation-name"],breakUp:o.multiplex(o.animation),defaultValue:"none",restore:a.multiplex(a.withoutDefaults),shorthand:!0,vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-delay":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-direction":{canOverride:i.property.animationDirection,componentOf:["animation"],defaultValue:"normal",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-duration":{canOverride:i.generic.time,componentOf:["animation"],defaultValue:"0s",intoMultiplexMode:"real",keepUnlessDefault:"animation-delay",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-fill-mode":{canOverride:i.property.animationFillMode,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-iteration-count":{canOverride:i.property.animationIterationCount,componentOf:["animation"],defaultValue:"1",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-name":{canOverride:i.property.animationName,componentOf:["animation"],defaultValue:"none",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-play-state":{canOverride:i.property.animationPlayState,componentOf:["animation"],defaultValue:"running",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"animation-timing-function":{canOverride:i.generic.timingFunction,componentOf:["animation"],defaultValue:"ease",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},background:{canOverride:i.generic.components([i.generic.image,i.property.backgroundPosition,i.property.backgroundSize,i.property.backgroundRepeat,i.property.backgroundAttachment,i.property.backgroundOrigin,i.property.backgroundClip,i.generic.color]),components:["background-image","background-position","background-size","background-repeat","background-attachment","background-origin","background-clip","background-color"],breakUp:o.multiplex(o.background),defaultValue:"0 0",restore:a.multiplex(a.background),shortestValue:"0",shorthand:!0},"background-attachment":{canOverride:i.property.backgroundAttachment,componentOf:["background"],defaultValue:"scroll",intoMultiplexMode:"real"},"background-clip":{canOverride:i.property.backgroundClip,componentOf:["background"],defaultValue:"border-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-color":{canOverride:i.generic.color,componentOf:["background"],defaultValue:"transparent",intoMultiplexMode:"real",multiplexLastOnly:!0,nonMergeableValue:"none",shortestValue:"red"},"background-image":{canOverride:i.generic.image,componentOf:["background"],defaultValue:"none",intoMultiplexMode:"default"},"background-origin":{canOverride:i.property.backgroundOrigin,componentOf:["background"],defaultValue:"padding-box",intoMultiplexMode:"real",shortestValue:"border-box"},"background-position":{canOverride:i.property.backgroundPosition,componentOf:["background"],defaultValue:["0","0"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0"},"background-repeat":{canOverride:i.property.backgroundRepeat,componentOf:["background"],defaultValue:["repeat"],doubleValues:!0,intoMultiplexMode:"real"},"background-size":{canOverride:i.property.backgroundSize,componentOf:["background"],defaultValue:["auto"],doubleValues:!0,intoMultiplexMode:"real",shortestValue:"0 0"},bottom:{canOverride:i.property.bottom,defaultValue:"auto"},border:{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-width","border-style","border-color"],defaultValue:"none",overridesShorthands:["border-bottom","border-left","border-right","border-top"],restore:a.withoutDefaults,shorthand:!0,shorthandComponents:!0},"border-bottom":{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-bottom-width","border-bottom-style","border-bottom-color"],defaultValue:"none",restore:a.withoutDefaults,shorthand:!0},"border-bottom-color":{canOverride:i.generic.color,componentOf:["border-bottom","border-color"],defaultValue:"none"},"border-bottom-left-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-right-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-bottom-style":{canOverride:i.property.borderStyle,componentOf:["border-bottom","border-style"],defaultValue:"none"},"border-bottom-width":{canOverride:i.generic.unit,componentOf:["border-bottom","border-width"],defaultValue:"medium",oppositeTo:"border-top-width",shortestValue:"0"},"border-collapse":{canOverride:i.property.borderCollapse,defaultValue:"separate"},"border-color":{breakUp:o.fourValues,canOverride:i.generic.components([i.generic.color,i.generic.color,i.generic.color,i.generic.color]),componentOf:["border"],components:["border-top-color","border-right-color","border-bottom-color","border-left-color"],defaultValue:"none",restore:a.fourValues,shortestValue:"red",shorthand:!0},"border-left":{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-left-width","border-left-style","border-left-color"],defaultValue:"none",restore:a.withoutDefaults,shorthand:!0},"border-left-color":{canOverride:i.generic.color,componentOf:["border-color","border-left"],defaultValue:"none"},"border-left-style":{canOverride:i.property.borderStyle,componentOf:["border-left","border-style"],defaultValue:"none"},"border-left-width":{canOverride:i.generic.unit,componentOf:["border-left","border-width"],defaultValue:"medium",oppositeTo:"border-right-width",shortestValue:"0"},"border-radius":{breakUp:o.borderRadius,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["border-top-left-radius","border-top-right-radius","border-bottom-right-radius","border-bottom-left-radius"],defaultValue:"0",restore:a.borderRadius,shorthand:!0,vendorPrefixes:["-moz-","-o-"]},"border-right":{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-right-width","border-right-style","border-right-color"],defaultValue:"none",restore:a.withoutDefaults,shorthand:!0},"border-right-color":{canOverride:i.generic.color,componentOf:["border-color","border-right"],defaultValue:"none"},"border-right-style":{canOverride:i.property.borderStyle,componentOf:["border-right","border-style"],defaultValue:"none"},"border-right-width":{canOverride:i.generic.unit,componentOf:["border-right","border-width"],defaultValue:"medium",oppositeTo:"border-left-width",shortestValue:"0"},"border-style":{breakUp:o.fourValues,canOverride:i.generic.components([i.property.borderStyle,i.property.borderStyle,i.property.borderStyle,i.property.borderStyle]),componentOf:["border"],components:["border-top-style","border-right-style","border-bottom-style","border-left-style"],defaultValue:"none",restore:a.fourValues,shorthand:!0},"border-top":{breakUp:o.border,canOverride:i.generic.components([i.generic.unit,i.property.borderStyle,i.generic.color]),components:["border-top-width","border-top-style","border-top-color"],defaultValue:"none",restore:a.withoutDefaults,shorthand:!0},"border-top-color":{canOverride:i.generic.color,componentOf:["border-color","border-top"],defaultValue:"none"},"border-top-left-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-right-radius":{canOverride:i.generic.unit,componentOf:["border-radius"],defaultValue:"0",vendorPrefixes:["-moz-","-o-"]},"border-top-style":{canOverride:i.property.borderStyle,componentOf:["border-style","border-top"],defaultValue:"none"},"border-top-width":{canOverride:i.generic.unit,componentOf:["border-top","border-width"],defaultValue:"medium",oppositeTo:"border-bottom-width",shortestValue:"0"},"border-width":{breakUp:o.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),componentOf:["border"],components:["border-top-width","border-right-width","border-bottom-width","border-left-width"],defaultValue:"medium",restore:a.fourValues,shortestValue:"0",shorthand:!0},clear:{canOverride:i.property.clear,defaultValue:"none"},color:{canOverride:i.generic.color,defaultValue:"transparent",shortestValue:"red"},cursor:{canOverride:i.property.cursor,defaultValue:"auto"},display:{canOverride:i.property.display},float:{canOverride:i.property.float,defaultValue:"none"},font:{breakUp:o.font,canOverride:i.generic.components([i.property.fontStyle,i.property.fontVariant,i.property.fontWeight,i.property.fontStretch,i.generic.unit,i.generic.unit,i.property.fontFamily]),components:["font-style","font-variant","font-weight","font-stretch","font-size","line-height","font-family"],restore:a.font,shorthand:!0},"font-family":{canOverride:i.property.fontFamily,defaultValue:"user|agent|specific"},"font-size":{canOverride:i.generic.unit,defaultValue:"medium",shortestValue:"0"},"font-stretch":{canOverride:i.property.fontStretch,defaultValue:"normal"},"font-style":{canOverride:i.property.fontStyle,defaultValue:"normal"},"font-variant":{canOverride:i.property.fontVariant,defaultValue:"normal"},"font-weight":{canOverride:i.property.fontWeight,defaultValue:"normal",shortestValue:"400"},height:{canOverride:i.generic.unit,defaultValue:"auto",shortestValue:"0"},left:{canOverride:i.property.left,defaultValue:"auto"},"line-height":{canOverride:i.generic.unitOrNumber,defaultValue:"normal",shortestValue:"0"},"list-style":{canOverride:i.generic.components([i.property.listStyleType,i.property.listStylePosition,i.property.listStyleImage]),components:["list-style-type","list-style-position","list-style-image"],breakUp:o.listStyle,restore:a.withoutDefaults,defaultValue:"outside",shortestValue:"none",shorthand:!0},"list-style-image":{canOverride:i.generic.image,componentOf:["list-style"],defaultValue:"none"},"list-style-position":{canOverride:i.property.listStylePosition,componentOf:["list-style"],defaultValue:"outside",shortestValue:"inside"},"list-style-type":{canOverride:i.property.listStyleType,componentOf:["list-style"],defaultValue:"decimal|disc",shortestValue:"none"},margin:{breakUp:o.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["margin-top","margin-right","margin-bottom","margin-left"],defaultValue:"0",restore:a.fourValues,shorthand:!0},"margin-bottom":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-top"},"margin-left":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-right"},"margin-right":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-left"},"margin-top":{canOverride:i.generic.unit,componentOf:["margin"],defaultValue:"0",oppositeTo:"margin-bottom"},outline:{canOverride:i.generic.components([i.generic.color,i.property.outlineStyle,i.generic.unit]),components:["outline-color","outline-style","outline-width"],breakUp:o.outline,restore:a.withoutDefaults,defaultValue:"0",shorthand:!0},"outline-color":{canOverride:i.generic.color,componentOf:["outline"],defaultValue:"invert",shortestValue:"red"},"outline-style":{canOverride:i.property.outlineStyle,componentOf:["outline"],defaultValue:"none"},"outline-width":{canOverride:i.generic.unit,componentOf:["outline"],defaultValue:"medium",shortestValue:"0"},overflow:{canOverride:i.property.overflow,defaultValue:"visible"},"overflow-x":{canOverride:i.property.overflow,defaultValue:"visible"},"overflow-y":{canOverride:i.property.overflow,defaultValue:"visible"},padding:{breakUp:o.fourValues,canOverride:i.generic.components([i.generic.unit,i.generic.unit,i.generic.unit,i.generic.unit]),components:["padding-top","padding-right","padding-bottom","padding-left"],defaultValue:"0",restore:a.fourValues,shorthand:!0},"padding-bottom":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-top"},"padding-left":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-right"},"padding-right":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-left"},"padding-top":{canOverride:i.generic.unit,componentOf:["padding"],defaultValue:"0",oppositeTo:"padding-bottom"},position:{canOverride:i.property.position,defaultValue:"static"},right:{canOverride:i.property.right,defaultValue:"auto"},"text-align":{canOverride:i.property.textAlign,defaultValue:"left|right"},"text-decoration":{canOverride:i.property.textDecoration,defaultValue:"none"},"text-overflow":{canOverride:i.property.textOverflow,defaultValue:"none"},"text-shadow":{canOverride:i.property.textShadow,defaultValue:"none"},top:{canOverride:i.property.top,defaultValue:"auto"},transform:{canOverride:i.property.transform,vendorPrefixes:["-moz-","-ms-","-webkit-"]},transition:{breakUp:o.multiplex(o.transition),canOverride:i.generic.components([i.property.transitionProperty,i.generic.time,i.generic.timingFunction,i.generic.time]),components:["transition-property","transition-duration","transition-timing-function","transition-delay"],defaultValue:"none",restore:a.multiplex(a.withoutDefaults),shorthand:!0,vendorPrefixes:["-moz-","-o-","-webkit-"]},"transition-delay":{canOverride:i.generic.time,componentOf:["transition"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"transition-duration":{canOverride:i.generic.time,componentOf:["transition"],defaultValue:"0s",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"transition-property":{canOverride:i.generic.propertyName,componentOf:["transition"],defaultValue:"all",intoMultiplexMode:"placeholder",placeholderValue:"_",vendorPrefixes:["-moz-","-o-","-webkit-"]},"transition-timing-function":{canOverride:i.generic.timingFunction,componentOf:["transition"],defaultValue:"ease",intoMultiplexMode:"real",vendorPrefixes:["-moz-","-o-","-webkit-"]},"vertical-align":{canOverride:i.property.verticalAlign,defaultValue:"baseline"},visibility:{canOverride:i.property.visibility,defaultValue:"visible"},"white-space":{canOverride:i.property.whiteSpace,defaultValue:"normal"},width:{canOverride:i.generic.unit,defaultValue:"auto",shortestValue:"0"},"z-index":{canOverride:i.property.zIndex,defaultValue:"auto"}},c={};for(r in l){var u=l[r];if("vendorPrefixes"in u){for(var p=0;p<u.vendorPrefixes.length;p++){var d=u.vendorPrefixes[p],f=function(t,e){return"componentOf"in(t=s(l[t],{}))&&(t.componentOf=t.componentOf.map((function(t){return e+t}))),"components"in t&&(t.components=t.components.map((function(t){return e+t}))),"keepUnlessDefault"in t&&(t.keepUnlessDefault=e+t.keepUnlessDefault),t}(r,d);delete f.vendorPrefixes,c[d+r]=f}delete u.vendorPrefixes}}t.exports=s(l,c)},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){var n;e&&(t.super_=e,(n=function(){}).prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0===(n=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).parseFloatToInt)||n,n=r.exec(t.toString())[1];return{parsedWidth:((e={default:parseInt,px:parseInt,"%":e?parseInt:parseFloat})[n]||e.default)(t),unit:n||"px"}};var r=/[\d.,]*(\D*)$/;t.exports=e.default},function(t,e,n){var r=n(145).default;function o(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(o=function(t){return t?n:e})(t)}t.exports=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};if((e=o(e))&&e.has(t))return e.get(t);var n,i,a={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&((i=s?Object.getOwnPropertyDescriptor(t,n):null)&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=t[n]);return a.default=t,e&&e.set(t,a),a},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(240),o=n(95),i=n(247),a=n(248),s=n(152),l=n(29),c=n(151),u="[object Map]",p="[object Promise]",d="[object Set]",f="[object WeakMap]",h="[object DataView]",g=c(r),m=c(o),v=c(i),y=c(a),b=c(s);n=l,(r&&n(new r(new ArrayBuffer(1)))!=h||o&&n(new o)!=u||i&&n(i.resolve())!=p||a&&n(new a)!=d||s&&n(new s)!=f)&&(n=function(t){var e=l(t);if(t=(t="[object Object]"==e?t.constructor:void 0)?c(t):"")switch(t){case g:return h;case m:return u;case v:return p;case y:return d;case b:return f}return e}),t.exports=n},function(t,e,n){n=n(16).Symbol,t.exports=n},function(t,e,n){var r=n(71),o=n(55),i=n(256),a=n(12);t.exports=function(t,e){return(a(t)?r:o)(t,i(e))}},function(t,e,n){var r=n(156),o=n(55),i=n(20),a=n(301),s=n(12);t.exports=function(t,e,n){var l=s(t)?r:a,c=arguments.length<3;return l(t,i(e,4),n,c,o)}},function(t,e,n){var r=n(77);t.exports=function(t,e,n){return void 0===(e=null==t?void 0:r(t,e))?n:e}},function(t,e,n){var r=n(12),o=n(104),i=n(167),a=n(45);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(29),i=n(19);t.exports=function(t){return"symbol"==r(t)||i(t)&&"[object Symbol]"==o(t)}},function(t,e,n){var r=n(294);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(57),o=n(20),i=n(330),a=n(12);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},function(t,e,n){n=n(332)(n(333)),t.exports=n},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function t(e,r){var o,i,a,s={};for(o in e)a=e[o],Array.isArray(a)?s[o]=a.slice(0):"object"==n(a)&&null!==a?s[o]=t(a,{}):s[o]=a;for(i in r)a=r[i],i in s&&Array.isArray(a)?s[i]=a.slice(0):i in s&&"object"==n(a)&&null!==a?s[i]=t(s[i],a):s[i]=a;return s}},function(t,e,n){var r=n(122),o=n(15),i=n(10),a={ASTERISK:"*",BACKSLASH:"\\",BANG:"!",BANG_SUFFIX_PATTERN:/!\w+$/,IMPORTANT_TOKEN:"!important",IMPORTANT_TOKEN_PATTERN:new RegExp("!important$","i"),IMPORTANT_WORD:"important",IMPORTANT_WORD_PATTERN:new RegExp("important$","i"),SUFFIX_BANG_PATTERN:/!$/,UNDERSCORE:"_",VARIABLE_REFERENCE_PATTERN:/var\(--.+\)$/};function s(t){var e=function(t){if(t.length<3)return!1;var e=t[t.length-1];return!!a.IMPORTANT_TOKEN_PATTERN.test(e[1])||!(!a.IMPORTANT_WORD_PATTERN.test(e[1])||!a.SUFFIX_BANG_PATTERN.test(t[t.length-2][1]))}(t);e&&function(t){var e=t[t.length-1],n=t[t.length-2];a.IMPORTANT_TOKEN_PATTERN.test(e[1])?e[1]=e[1].replace(a.IMPORTANT_TOKEN_PATTERN,""):(e[1]=e[1].replace(a.IMPORTANT_WORD_PATTERN,""),n[1]=n[1].replace(a.SUFFIX_BANG_PATTERN,"")),0===e[1].length&&t.pop(),0===n[1].length&&t.pop()}(t);var n=function(t){var e=!1,n=t[1][1];return t=t[t.length-1],n[0]==a.UNDERSCORE?e=[r.UNDERSCORE]:n[0]==a.ASTERISK?e=[r.ASTERISK]:t[1][0]==a.BANG&&!t[1].match(a.IMPORTANT_WORD_PATTERN)||0<t[1].indexOf(a.BANG)&&!t[1].match(a.IMPORTANT_WORD_PATTERN)&&a.BANG_SUFFIX_PATTERN.test(t[1])?e=[r.BANG]:0<t[1].indexOf(a.BACKSLASH)&&t[1].indexOf(a.BACKSLASH)==t[1].length-a.BACKSLASH.length-1?e=[r.BACKSLASH,t[1].substring(t[1].indexOf(a.BACKSLASH)+1)]:0===t[1].indexOf(a.BACKSLASH)&&2==t[1].length&&(e=[r.BACKSLASH,t[1].substring(1)]),e}(t);return n[0]==r.ASTERISK||n[0]==r.UNDERSCORE?function(t){t[1][1]=t[1][1].substring(1)}(t):n[0]!=r.BACKSLASH&&n[0]!=r.BANG||function(t,e){var n=t[t.length-1];n[1]=n[1].substring(0,n[1].indexOf(e[0]==r.BACKSLASH?a.BACKSLASH:a.BANG)).trim(),0===n[1].length&&t.pop()}(t,n),{block:t[2]&&t[2][0]==i.PROPERTY_BLOCK,components:[],dirty:!1,hack:n,important:e,name:t[1][1],multiplex:3<t.length&&function(t){for(var e,n=3,r=t.length;n<r;n++)if((e=t[n])[0]==i.PROPERTY_VALUE&&(e[1]==o.COMMA||e[1]==o.FORWARD_SLASH))return!0;return!1}(t),position:0,shorthand:!1,unused:!1,value:t.slice(2)}}t.exports={all:function(t,e,n){for(var r,o=[],l=t.length-1;0<=l;l--)(r=t[l])[0]==i.PROPERTY&&(!e&&function(t){for(var e,n=2,r=t.length;n<r;n++)if((e=t[n])[0]==i.PROPERTY_VALUE&&function(t){return a.VARIABLE_REFERENCE_PATTERN.test(t)}(e[1]))return 1}(r)||n&&-1<n.indexOf(r[1][1])||((r=s(r)).all=t,r.position=l,o.unshift(r)));return o},single:s}},function(t,e,n){"use strict";var r=n(86),o=Object.keys||function(t){var e,n=[];for(e in t)n.push(e);return n};t.exports=u,(t=Object.create(n(61))).inherits=n(34);var i=n(192),a=n(196);t.inherits(u,i);for(var s=o(a.prototype),l=0;l<s.length;l++){var c=s[l];u.prototype[c]||(u.prototype[c]=a.prototype[c])}function u(t){if(!(this instanceof u))return new u(t);i.call(this,t),a.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),u.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},function(t,e){t.exports={}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.line,r=e.tagName,o=e.absoluteFilePath;return{line:n,message:t,tagName:r,formattedMessage:"Line ".concat(n," of ").concat(o).concat(function(t){return(t=t.includedIn)&&t.length?(t=t.slice().reverse().map((function(t){var e=t.line;return t=t.file,"line ".concat(e," of file ").concat(t)})).join(", itself included at "),", included at ".concat(t)):""}(e)," (").concat(r,") — ").concat(t)}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return"\n    ".concat(e?a:r,"\n    ").concat(t,"\n    ").concat(e?l:i,"\n  ")},e.msoConditionalTag=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return"\n    ".concat(e?s:o,"\n    ").concat(t,"\n    ").concat(e?l:i,"\n  ")},e.endNegationConditionalTag=e.startMsoNegationConditionalTag=e.startNegationConditionalTag=e.endConditionalTag=e.startMsoConditionalTag=e.startConditionalTag=void 0;var r="\x3c!--[if mso | IE]>";e.startConditionalTag=r;var o="\x3c!--[if mso]>";e.startMsoConditionalTag=o;var i="<![endif]--\x3e";e.endConditionalTag=i;var a="\x3c!--[if !mso | IE]>\x3c!--\x3e";e.startNegationConditionalTag=a;var s="\x3c!--[if !mso>\x3c!--\x3e";e.startMsoNegationConditionalTag=s;var l="\x3c!--<![endif]--\x3e";e.endNegationConditionalTag=l},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(154);r=n(255)(r),t.exports=r},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=n(t);return!!(e=null==e?9007199254740991:e)&&("number"==o||"symbol"!=o&&r.test(t))&&-1<t&&t%1==0&&t<e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var r=n(106),o=n(107);t.exports=function(t,e,n,i){var a=!n;n=n||{};for(var s=-1,l=e.length;++s<l;){var c=e[s],u=i?i(n[c],t[c],c,n,t):void 0;void 0===u&&(u=t[c]),(a?o:r)(n,c,u)}return n}},function(t,e,n){var r=n(175);t.exports=function(t){var e=r(t);return t=e%1,e==e?t?e-t:e:0}},function(t,e,n){var r=n(122),o=n(15);t.exports=function(t,e){for(var n,i,a,s=t.length-1;0<=s;s--)(n=t[s]).unused||(n.dirty||n.important||n.hack)&&(e?(i=e(n),n.value=i):i=n.value,n.important&&function(t){t.value[t.value.length-1][1]+="!important"}(n),n.hack&&function(t){t.hack[0]==r.UNDERSCORE?t.name="_"+t.name:t.hack[0]==r.ASTERISK?t.name="*"+t.name:t.hack[0]==r.BACKSLASH?t.value[t.value.length-1][1]+="\\"+t.hack[1]:t.hack[0]==r.BANG&&(t.value[t.value.length-1][1]+=o.SPACE+"!ie")}(n),"all"in n&&((a=n.all[n.position])[1][1]=n.name,a.splice(2,a.length-1),Array.prototype.push.apply(a,i)))}},function(t,e,n){(function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===r(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"===n(t)},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===r(t)},e.isObject=function(t){return"object"===n(t)&&null!==t},e.isDate=function(t){return"[object Date]"===r(t)},e.isError=function(t){return"[object Error]"===r(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"===n(t)||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(22).Buffer)},function(t,e){e.getArg=function(t,e,n){if(e in t)return t[e];if(3===arguments.length)return n;throw new Error('"'+e+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(t){return(t=t.match(n))?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}function i(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}function a(t){var n=t,r=o(t);if(r){if(!r.path)return t;n=r.path}t=e.isAbsolute(n);for(var a,s=n.split(/\/+/),l=0,c=s.length-1;0<=c;c--)"."===(a=s[c])?s.splice(c,1):".."===a?l++:0<l&&(""===a?(s.splice(c+1,l),l=0):(s.splice(c,2),l--));return""===(n=s.join("/"))&&(n=t?"/":"."),r?(r.path=n,i(r)):n}function s(t,e){""===t&&(t=".");var n=o(e=""===e?".":e),s=o(t);return s&&(t=s.path||"/"),n&&!n.scheme?(s&&(n.scheme=s.scheme),i(n)):n||e.match(r)?e:!s||s.host||s.path?(e="/"===e.charAt(0)?e:a(t.replace(/\/+$/,"")+"/"+e),s?(s.path=e,i(s)):e):(s.host=e,i(s))}e.urlParse=o,e.urlGenerate=i,e.normalize=a,e.join=s,e.isAbsolute=function(t){return"/"===t.charAt(0)||n.test(t)},e.relative=function(t,e){t=(t=""===t?".":t).replace(/\/$/,"");for(var n=0;0!==e.indexOf(t+"/");){var r=t.lastIndexOf("/");if(r<0)return e;if((t=t.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return e;++n}return Array(n+1).join("../")+e.substr(t.length+1)};var l=!("__proto__"in Object.create(null));function c(t){return t}function u(t){if(t){var e=t.length;if(!(e<9)&&95===t.charCodeAt(e-1)&&95===t.charCodeAt(e-2)&&111===t.charCodeAt(e-3)&&116===t.charCodeAt(e-4)&&111===t.charCodeAt(e-5)&&114===t.charCodeAt(e-6)&&112===t.charCodeAt(e-7)&&95===t.charCodeAt(e-8)&&95===t.charCodeAt(e-9)){for(var n=e-10;0<=n;n--)if(36!==t.charCodeAt(n))return;return 1}}}function p(t,e){return t===e?0:null===t||null!==e&&e<t?1:-1}e.toSetString=l?c:function(t){return u(t)?"$"+t:t},e.fromSetString=l?c:function(t){return u(t)?t.slice(1):t},e.compareByOriginalPositions=function(t,e,n){var r=p(t.source,e.source);return 0!==r||0!=(r=t.originalLine-e.originalLine)||0!=(r=t.originalColumn-e.originalColumn)||n||0!=(r=t.generatedColumn-e.generatedColumn)||0!=(r=t.generatedLine-e.generatedLine)?r:p(t.name,e.name)},e.compareByGeneratedPositionsDeflated=function(t,e,n){var r=t.generatedLine-e.generatedLine;return 0!==r||0!=(r=t.generatedColumn-e.generatedColumn)||n||0!==(r=p(t.source,e.source))||0!=(r=t.originalLine-e.originalLine)||0!=(r=t.originalColumn-e.originalColumn)?r:p(t.name,e.name)},e.compareByGeneratedPositionsInflated=function(t,e){var n=t.generatedLine-e.generatedLine;return 0!==n||0!=(n=t.generatedColumn-e.generatedColumn)||0!==(n=p(t.source,e.source))||0!=(n=t.originalLine-e.originalLine)||0!=(n=t.originalColumn-e.originalColumn)?n:p(t.name,e.name)},e.parseSourceMapInput=function(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))},e.computeSourceURL=function(t,e,n){if(e=e||"",t&&("/"!==t[t.length-1]&&"/"!==e[0]&&(t+="/"),e=t+e),n){if(!(t=o(n)))throw new Error("sourceMapURL could not be parsed");!t.path||0<=(n=t.path.lastIndexOf("/"))&&(t.path=t.path.substring(0,n+1)),e=s(i(t),e)}return a(e)}},function(t,e){t.exports={readFileSync:function(){return console.warn("fs should not be used in browser build"),null}}},function(t,e){var n=/^(\w+:\/\/|\/\/)/;t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(453),o=n(455);t.exports=function(t,e,n){return r(o,t,e,n)}},,function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(29),o=n(18);t.exports=function(t){return!!o(t)&&("[object Function]"==(t=r(t))||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t)}},function(t,e,n){var r=n(249),o=n(19),i=(n=Object.prototype).hasOwnProperty,a=n.propertyIsEnumerable;r=r(function(){return arguments}())?r:function(t){return o(t)&&i.call(t,"callee")&&!a.call(t,"callee")},t.exports=r},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(16),i=n(250),a="object"==r(e)&&e&&!e.nodeType&&e,s=a&&"object"==r(t)&&t&&!t.nodeType&&t;o=(o=s&&s.exports===a?o.Buffer:void 0)?o.isBuffer:void 0,t.exports=o||i}).call(this,n(54)(t))},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(259),o=n(260),i=n(261),a=n(262);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}n=n(263),s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=n,t.exports=s},function(t,e,n){var r=n(74);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){n=n(28)(Object,"create"),t.exports=n},function(t,e,n){var r=n(277);t.exports=function(t,e){return t=t.__data__,r(e)?t["string"==typeof e?"string":"hash"]:t.map}},function(t,e,n){var r=n(43),o=n(32);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e=e||Array(r);++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(18),o=Object.create;function i(){}t.exports=function(t){return r(t)?o?o(t):(i.prototype=t,t=new i,i.prototype=void 0,t):{}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(361).EOL,i=n(48),a={AfterAtRule:"afterAtRule",AfterBlockBegins:"afterBlockBegins",AfterBlockEnds:"afterBlockEnds",AfterComment:"afterComment",AfterProperty:"afterProperty",AfterRuleBegins:"afterRuleBegins",AfterRuleEnds:"afterRuleEnds",BeforeBlockEnds:"beforeBlockEnds",BetweenSelectors:"betweenSelectors"},s={CarriageReturnLineFeed:"\r\n",LineFeed:"\n",System:o},l={AroundSelectorRelation:"aroundSelectorRelation",BeforeBlockBegins:"beforeBlockBegins",BeforeValue:"beforeValue"},c={breaks:u(!1),breakWith:s.System,indentBy:0,indentWith:" ",spaces:p(!1),wrapAt:!1,semicolonAfterLastProperty:!1};function u(t){var e={};return e[a.AfterAtRule]=t,e[a.AfterBlockBegins]=t,e[a.AfterBlockEnds]=t,e[a.AfterComment]=t,e[a.AfterProperty]=t,e[a.AfterRuleBegins]=t,e[a.AfterRuleEnds]=t,e[a.BeforeBlockEnds]=t,e[a.BetweenSelectors]=t,e}function p(t){var e={};return e[l.AroundSelectorRelation]=t,e[l.BeforeBlockBegins]=t,e[l.BeforeValue]=t,e}function d(t){switch(t){case"windows":case"crlf":case s.CarriageReturnLineFeed:return s.CarriageReturnLineFeed;case"unix":case"lf":case s.LineFeed:return s.LineFeed;default:return o}}function f(t){switch(t){case"space":return" ";case"tab":return"\t";default:return t}}t.exports={Breaks:a,Spaces:l,formatFrom:function(t){return void 0!==t&&!1!==t&&("object"==r(t)&&"breakWith"in t&&(t=i(t,{breakWith:d(t.breakWith)})),"object"==r(t)&&"indentBy"in t&&(t=i(t,{indentBy:parseInt(t.indentBy)})),"object"==r(t)&&"indentWith"in t&&(t=i(t,{indentWith:f(t.indentWith)})),"object"==r(t)||"object"==r(t)?i(c,t):"string"==typeof t&&"beautify"==t?i(c,{breaks:u(!0),indentBy:2,spaces:p(!0)}):"string"==typeof t&&"keep-breaks"==t?i(c,{breaks:{afterAtRule:!0,afterBlockBegins:!0,afterBlockEnds:!0,afterComment:!0,afterRuleEnds:!0,beforeBlockEnds:!0}}):"string"==typeof t?i(c,function(t){return t.split(";").reduce((function(t,e){e=(n=e.split(":"))[0];var n=n[1];return"breaks"==e||"spaces"==e?t[e]=function(t){return t.split(",").reduce((function(t,e){e=(n=e.split("="))[0];var n=n[1];return t[e]=function(t){switch(t){case"false":case"off":return!1;case"true":case"on":return!0;default:return t}}(n),t}),{})}(n):"indentBy"==e||"wrapAt"==e?t[e]=parseInt(n):"indentWith"==e?t[e]=f(n):"breakWith"==e&&(t[e]=d(n)),t}),{})}(t)):c)}}},function(t,e){t.exports=function(t){var e=t[0],n=t[1];return(t=t[2])?t+":"+e+":"+n:e+":"+n}},function(t,e,n){var r=n(15),o=n(123),i=/\/deep\//,a=/^::/,s=[":dir",":lang",":not",":nth-child",":nth-last-child",":nth-last-of-type",":nth-of-type"],l=/[>\+~]/,c=[":after",":before",":first-letter",":first-line",":lang"],u=["::after","::before","::first-letter","::first-line"],p="double-quote",d="single-quote",f="root";t.exports=function(t,e,n,h){for(var g,m=o(t,r.COMMA),v=0,y=m.length;v<y;v++)if(0===(g=m[v]).length||function(t){return i.test(t)}(g)||-1<g.indexOf(r.COLON)&&!function(t,e,n,o,i){return function(t,e,n){for(var o,i=0,a=t.length;i<a;i++)if(o=-1<(o=t[i]).indexOf(r.OPEN_ROUND_BRACKET)?o.substring(0,o.indexOf(r.OPEN_ROUND_BRACKET)):o,-1===e.indexOf(o)&&-1===n.indexOf(o))return;return 1}(e,n,o)&&function(t){for(var e,n,o,i=0,a=t.length;i<a;i++){if(e=(o=-1<(n=(e=t[i]).indexOf(r.OPEN_ROUND_BRACKET)))?e.substring(0,n):e,o&&-1==s.indexOf(e))return;if(!o&&-1<s.indexOf(e))return}return 1}(e)&&(e.length<2||!function(t,e){for(var n,o,i,a,s=0,l=0,c=e.length;l<c&&(n=e[l],o=e[l+1]);l++)if(i=t.indexOf(n,s),a=t.indexOf(n,i+1),i+n.length==(s=a)&&(i=-1<n.indexOf(r.OPEN_ROUND_BRACKET)?n.substring(0,n.indexOf(r.OPEN_ROUND_BRACKET)):n,a=-1<o.indexOf(r.OPEN_ROUND_BRACKET)?o.substring(0,o.indexOf(r.OPEN_ROUND_BRACKET)):o,":not"!=i||":not"!=a))return 1}(t,e))&&(e.length<2||i&&function(t){for(var e,n=0,r=0,o=t.length;r<o;r++)if(function(t){return a.test(t)}(e=t[r])?n+=-1<u.indexOf(e)?1:0:n+=-1<c.indexOf(e)?1:0,1<n)return;return 1}(e))}(g,function(t){for(var e,n,o,i,a=[],s=[],c=f,u=0,h=!1,g=!1,m=0,v=t.length;m<v;m++)e=t[m],i=!o&&l.test(e),n=c==p||c==d,o?s.push(e):e==r.DOUBLE_QUOTE&&c==f?(s.push(e),c=p):e==r.DOUBLE_QUOTE&&c==p?(s.push(e),c=f):e==r.SINGLE_QUOTE&&c==f?(s.push(e),c=d):e==r.SINGLE_QUOTE&&c==d?(s.push(e),c=f):n?s.push(e):e==r.OPEN_ROUND_BRACKET?(s.push(e),u++):e==r.CLOSE_ROUND_BRACKET&&1==u&&h?(s.push(e),a.push(s.join("")),u--,h=!(s=[])):e==r.CLOSE_ROUND_BRACKET?(s.push(e),u--):e==r.COLON&&0===u&&h&&!g?(a.push(s.join("")),(s=[]).push(e)):e!=r.COLON||0!==u||g?e==r.SPACE&&0===u&&h||i&&0===u&&h?(a.push(s.join("")),h=!(s=[])):s.push(e):((s=[]).push(e),h=!0),o=e==r.BACK_SLASH,g=e==r.COLON;return 0<s.length&&h&&a.push(s.join("")),a}(g),e,n,h))return!1;return!0}},function(t,e,n){var r=n(366),o=n(371),i=n(125),a=n(126),s=n(49).all,l=n(180),c=n(60),u=n(25).OptimizationLevel;t.exports=function t(e,n,p,d){var f,h,g,m=d.options.level[u.Two],v=s(e,!1,m.skipProperties);for(i(v,d.validator,d.warnings),h=0,g=v.length;h<g;h++)(f=v[h]).block&&t(f.value[0][1],n,p,d);p&&m.mergeIntoShorthands&&r(v,d.validator),n&&m.overrideProperties&&o(v,p,d.options.compatibility,d.validator),c(v,a),l(v)}},function(t,e,n){var r=n(49).single,o=n(10);function i(t){var e=r([o.PROPERTY,[o.PROPERTY_NAME,t.name]]);return e.important=t.important,e.hack=t.hack,e.unused=!1,e}t.exports={deep:function(t){for(var e=i(t),n=t.components.length-1;0<=n;n--){var r=i(t.components[n]);r.value=t.components[n].value.slice(0),e.components.unshift(r)}return e.dirty=!0,e.value=t.value.slice(0),e},shallow:i}},function(t,e,n){var r=n(186),o=n(377),i=/align\-items|box\-align|box\-pack|flex|justify/,a=/^border\-(top|right|bottom|left|color|style|width|radius)/;function s(t,e,n){var s=t[0],h=t[1],g=t[2],m=t[5],v=t[6],y=e[0],b=e[1],_=e[2];return t=e[5],e=e[6],!("font"==s&&"line-height"==y||"font"==y&&"line-height"==s||i.test(s)&&i.test(y)||g==_&&c(s)==c(y)&&l(s)^l(y)||"border"==g&&a.test(_)&&("border"==s||s==_||h!=b&&u(s,y))||"border"==_&&a.test(g)&&("border"==y||y==g||h!=b&&u(s,y))||"border"==g&&"border"==_&&s!=y&&(p(s)&&d(y)||d(s)&&p(y))||!(g!=_||s==y&&g==_&&(h==b||function(t,e){return l(t)&&l(e)&&t.split("-")[1]!=e.split("-")[2]}(h,b))||s!=y&&g==_&&s!=g&&y!=_||s!=y&&g==_&&h==b)&&(!e||!v||f(g)||f(_)||r(t,m,!1))&&o(m,t,n))}function l(t){return/^\-(?:moz|webkit|ms|o)\-/.test(t)}function c(t){return t.replace(/^\-(?:moz|webkit|ms|o)\-/,"")}function u(t,e){return t.split("-").pop()==e.split("-").pop()}function p(t){return"border-top"==t||"border-right"==t||"border-bottom"==t||"border-left"==t}function d(t){return"border-color"==t||"border-style"==t||"border-width"==t}function f(t){return"font"==t||"line-height"==t||"list-style"==t}t.exports={canReorder:function(t,e,n){for(var r=e.length-1;0<=r;r--)for(var o=t.length-1;0<=o;o--)if(!s(t[o],e[r],n))return!1;return!0},canReorderSingle:s}},function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,o)}));default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return e.nextTick((function(){t.apply(null,i)}))}}}:t.exports=e}).call(this,n(14))},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e){var n=/^\/\//;t.exports=function(t){return!n.test(t)}},function(t,e,n){var r=n(79),o=n(18);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=r(t.prototype),i=t.apply(n,e);return o(i)?i:n}}},function(t,e){t.exports=function(t){return null==t}},function(t,e){function n(t){throw(t=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},(t.exports=n.resolve=n).id=91},function(t,e,n){"use strict";(r=f={}).Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype";var r,o=f.Root,i=f.Text,a=f.Directive,s=f.Comment,l=f.Script,c=f.Style,u=f.Tag,p=f.CDATA,d=f.Doctype,f=(new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(t){return t.charCodeAt(0)}))),new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(t){return t.charCodeAt(0)}))));function h(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),r=String.fromCodePoint,(r={})[r.NUM=35]="NUM",r[r.SEMI=59]="SEMI",r[r.ZERO=48]="ZERO",r[r.NINE=57]="NINE",r[r.LOWER_A=97]="LOWER_A",r[r.LOWER_F=102]="LOWER_F",r[r.LOWER_X=120]="LOWER_X",r[r.To_LOWER_BIT=32]="To_LOWER_BIT",(r={})[r.VALUE_LENGTH=49152]="VALUE_LENGTH",r[r.BRANCH_LENGTH=16256]="BRANCH_LENGTH",r[r.JUMP_TABLE=127]="JUMP_TABLE",new Map(h([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(h([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(h([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(h([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var g=/["&'<>$\x80-\uFFFF]/g,m=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),v=null!=String.prototype.codePointAt?function(t,e){return t.codePointAt(e)}:function(t,e){return 55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e)};function y(t){for(var e="",n=0;null!==(i=g.exec(t));){var r=i.index,o=t.charCodeAt(r),i=m.get(o);n=void 0!==i?(e+=t.substring(n,r)+i,r+1):(e+="".concat(t.substring(n,r),"&#x").concat(v(t,r).toString(16),";"),g.lastIndex+=Number(55296==(64512&o)))}return e+t.substr(n)}function b(t,e){return function(n){for(var r,o=0,i="";r=t.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=e.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}b(/[&<>'"]/g,m);var _=b(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),w=b(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]));(f={})[f.XML=0]="XML",f[f.HTML=1]="HTML",(f={})[f.Legacy=0]="Legacy",f[f.Strict=1]="Strict",(f={})[f.UTF8=0]="UTF8",f[f.ASCII=1]="ASCII",f[f.Extensive=2]="Extensive",f[f.Attribute=3]="Attribute",f[f.Text=4]="Text";var E=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(t){return[t.toLowerCase(),t]}))),x=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(t){return[t.toLowerCase(),t]})));function C(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function T(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?C(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var A=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function O(t){return t.replace(/"/g,"&quot;")}var S=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);e.a=function t(e){for(var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=("length"in e?e:[e]),f="",h=0;h<r.length;h++)f+=function(e,n){switch(e.type){case o:return t(e.children,n);case d:case a:return function(t){return"<".concat(t.data,">")}(e);case s:return function(t){return"\x3c!--".concat(t.data,"--\x3e")}(e);case p:return function(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}(e);case l:case c:case u:return function(e,n){"foreign"===n.xmlMode&&(e.name=null!==(o=E.get(e.name))&&void 0!==o?o:e.name,e.parent&&k.has(e.parent.name)&&(n=T(T({},n),{},{xmlMode:!1}))),!n.xmlMode&&P.has(e.name)&&(n=T(T({},n),{},{xmlMode:"foreign"}));var r="<".concat(e.name),o=function(t,e){var n;if(t){var r=!1===(null!==(n=e.encodeEntities)&&void 0!==n?n:e.decodeEntities)?O:e.xmlMode||"utf8"!==e.encodeEntities?y:_;return Object.keys(t).map((function(n){var o,i=null!==(o=t[n])&&void 0!==o?o:"";return"foreign"===e.xmlMode&&(n=null!==(o=x.get(n))&&void 0!==o?o:n),e.emptyAttrs||e.xmlMode||""!==i?"".concat(n,'="').concat(r(i),'"'):n})).join(" ")}}(e.attribs,n);return o&&(r+=" ".concat(o)),0===e.children.length&&(n.xmlMode?!1!==n.selfClosingTags:n.selfClosingTags&&S.has(e.name))?(n.xmlMode||(r+=" "),r+="/>"):(r+=">",0<e.children.length&&(r+=t(e.children,n)),!n.xmlMode&&S.has(e.name)||(r+="</".concat(e.name,">"))),r}(e,n);case i:return function(t,e){var n,r=t.data||"";return!1===(null!==(n=e.encodeEntities)&&void 0!==n?n:e.decodeEntities)||!e.xmlMode&&t.parent&&A.has(t.parent.name)?r:(e.xmlMode||"utf8"!==e.encodeEntities?y:w)(r)}(e,n)}}(r[h],n);return f};var k=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),P=new Set(["svg","math"])},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,n(e,r)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(67),o=n(239),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e,n=[];for(e in Object(t))i.call(t,e)&&"constructor"!=e&&n.push(e);return n}},function(t,e,n){n=n(28)(n(16),"Map"),t.exports=n},function(t,e){t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991}},function(t,e,n){var r=n(251),o=n(98);r=(n=(n=n(99))&&n.isTypedArray)?o(n):r,t.exports=r},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(150),i="object"==r(e)&&e&&!e.nodeType&&e,a=i&&"object"==r(t)&&t&&!t.nodeType&&t,s=a&&a.exports===i&&o.process;o=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}(),t.exports=o}).call(this,n(54)(t))},function(t,e,n){var r=n(72),o=n(264),i=n(265),a=n(266),s=n(267);function l(t){t=this.__data__=new r(t),this.size=t.size}n=n(268),l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=n,t.exports=l},function(t,e,n){var r=n(269),o=n(276),i=n(278),a=n(279);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}n=n(280),s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=n,t.exports=s},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e,n){var r=n(163),o=(n=n(164),Object.prototype.propertyIsEnumerable),i=Object.getOwnPropertySymbols;n=i?function(t){return null==t?[]:(t=Object(t),r(i(t),(function(e){return o.call(t,e)})))}:n,t.exports=n},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(12),i=n(44),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(o(t))return!1;var n=r(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||s.test(t)||!a.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(100),o=n(71),i=n(106),a=n(170),s=n(302),l=n(305),c=n(78),u=n(306),p=n(307),d=n(161),f=n(110),h=n(38),g=n(308),m=n(309),v=n(314),y=n(12),b=n(70),_=n(315),w=n(18),E=n(317),x=n(31),C=n(108),T="[object Arguments]",A="[object Function]",O="[object Object]",S={};S[T]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S[O]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S[A]=S["[object WeakMap]"]=!1,t.exports=function t(e,n,k,P,j,N){var L,D=1&n,I=2&n,R=4&n;if(void 0!==(L=k?j?k(e,P,j,N):k(e):L))return L;if(!w(e))return e;var M=y(e);if(M){if(L=g(e),!D)return c(e,L)}else{var B=h(e);if(P=B==A||"[object GeneratorFunction]"==B,b(e))return l(e,D);if(B==O||B==T||P&&!j){if(L=I||P?{}:v(e),!D)return I?p(e,s(L,e)):u(e,a(L,e))}else{if(!S[B])return j?e:{};L=m(e,B,D)}}if(D=(N=N||new r).get(e))return D;N.set(e,L),E(e)?e.forEach((function(r){L.add(t(r,n,k,r,e,N))})):_(e)&&e.forEach((function(r,o){L.set(o,t(r,n,k,o,e,N))}));var F=M?void 0:(R?I?f:d:I?C:x)(e);return o(F||e,(function(r,o){F&&(r=e[o=r]),i(L,o,t(r,n,k,o,e,N))})),L}},function(t,e,n){var r=n(107),o=n(74),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(169);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(155),o=n(303),i=n(30);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e,n){n=n(149)(Object.getPrototypeOf,Object),t.exports=n},function(t,e,n){var r=n(162),o=n(171),i=n(108);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(160);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(324),o=n(327),i=n(173);t.exports=function(t){return i(o(t,void 0,r),t+"")}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(163),o=n(331),i=n(20),a=n(12);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e){t.exports=function(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e,n){"use strict";var r=n(343),o=n(346);n=n(348),e.Selector=o,e.Property=n,e.extract=function(t){for(var e=0,n=[],r="",o=0,i=t.length;o<i;o++){var a=t.charAt(o);e?("]"!==a&&")"!==a||e--,r+=a):","===a?(n.push(r),r=""):("["!==a&&"("!==a||e++,(r.length||","!==a&&"\n"!==a&&" "!==a)&&(r+=a))}return r.length&&n.push(r),n},e.parseCSS=function(t){for(var e=void 0!==(t=r.parse(t,{position:!0,comments:!0})).stylesheet&&t.stylesheet.rules?t.stylesheet.rules:[],n=[],o=0,i=e.length;o<i;o++)if("rule"==e[o].type)for(var a=e[o],s=a.selectors,l=0,c=s.length;l<c;l++)n.push([s[l],a.declarations]);return n},e.getPreservedText=function(t,e,n){for(var o=void 0!==(t=r.parse(t,{position:!0,comments:!0})).stylesheet&&t.stylesheet.rules?t.stylesheet.rules:[],i=[],a=o.length-1;0<=a;a--)(e.fontFaces&&"font-face"===o[a].type||e.mediaQueries&&"media"===o[a].type||e.keyFrames&&"keyframes"===o[a].type||e.pseudos&&o[a].selectors&&this.matchesPseudo(o[a].selectors[0],n))&&i.unshift(r.stringify({stylesheet:{rules:[o[a]]}},{comments:!1,indentation:"  "})),o[a].position.start;return 0!==i.length&&"\n"+i.join("\n")+"\n"},e.normalizeLineEndings=function(t){return t.replace(/\r\n/g,"\n").replace(/\n/g,"\r\n")},e.matchesPseudo=function(t,e){return e.find((function(e){return-1<t.indexOf(e)}))},e.compareFunc=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t[r]!==e[r])return t[r]>e[r]?1:-1;return t.length-e.length},e.compare=function(t,n){return 1==e.compareFunc(t,n)?t:n},e.getDefaultOptions=function(t){return(t=Object.assign({extraCss:"",insertPreservedExtraCss:!0,applyStyleTags:!0,removeStyleTags:!0,preserveMediaQueries:!0,preserveFontFaces:!0,preserveKeyFrames:!0,preservePseudos:!0,applyWidthAttributes:!0,applyHeightAttributes:!0,applyAttributesTableElements:!0,url:""},t)).webResources=t.webResources||{},t}},function(t,e,n){(function(e){t.exports=function(t){return function(t){var n=[].slice.call(arguments,1);n.unshift("["+t+"]"),e.stderr.write(n.join(" ")+"\n")}.bind(null,t)}}).call(this,n(14))},function(t,e,n){var r;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var n;!function(){"use strict";var t=[function(t,e,n){var r=n(1).Beautifier,o=n(5).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new o}},function(t,e,n){var r=n(2).Output,o=n(3).Token,i=n(4),a=n(5).Options,s=n(7).Tokenizer,l=n(7).line_starters,c=n(7).positionable_operators,u=n(7).TOKEN;function p(t,e){return-1!==e.indexOf(t)}function d(t,e){return t&&t.type===u.RESERVED&&t.text===e}function f(t,e){return t&&t.type===u.RESERVED&&p(t.text,e)}var h=["case","return","do","if","throw","else","await","break","continue","async"],g=function(t){for(var e={},n=0;n<t.length;n++)e[t[n].replace(/-/g,"_")]=t[n];return e}(["before-newline","after-newline","preserve-newline"]),m=[g.before_newline,g.preserve_newline];function v(t,e){e.multiline_frame||"ForInitializer"===e.mode||"Conditional"===e.mode||t.remove_indent(e.start_line_index)}function y(t){return"ArrayLiteral"===t}function b(t){return p(t,["Expression","ForInitializer","Conditional"])}function _(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 a(e)}_.prototype.create_flags=function(t,e){var n=0;return t&&(n=t.indentation_level,!this._output.just_added_newline()&&t.line_indent_level>n&&(n=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new o(u.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:n,alignment:0,line_indent_level:t?t.line_indent_level:n,start_line_index:this._output.get_line_number(),ternary_depth:0}},_.prototype._reset=function(t){var e=t.match(/^[\t ]*/)[0];return this._last_last_text="",this._output=new r(this._options,e),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode("BlockStatement"),e=new s(t,this._options),this._tokens=e.tokenize(),t},_.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&&i.lineBreak.test(t||"")&&(e=t.match(i.lineBreak)[0]));for(var n=this._tokens.next();n;)this.handle_token(n),this._last_last_text=this._flags.last_token.text,this._flags.last_token=n,n=this._tokens.next();return this._output.get_code(e)},_.prototype.handle_token=function(t,e){t.type===u.START_EXPR?this.handle_start_expr(t):t.type===u.END_EXPR?this.handle_end_expr(t):t.type===u.START_BLOCK?this.handle_start_block(t):t.type===u.END_BLOCK?this.handle_end_block(t):t.type===u.WORD||t.type===u.RESERVED?this.handle_word(t):t.type===u.SEMICOLON?this.handle_semicolon(t):t.type===u.STRING?this.handle_string(t):t.type===u.EQUALS?this.handle_equals(t):t.type===u.OPERATOR?this.handle_operator(t):t.type===u.COMMA?this.handle_comma(t):t.type===u.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===u.COMMENT?this.handle_comment(t,e):t.type===u.DOT?this.handle_dot(t):t.type===u.EOF?this.handle_eof(t):(t.type,u.UNKNOWN,this.handle_unknown(t,e))},_.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,r=this._options.keep_array_indentation&&y(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(r)for(var i=0;i<n;i+=1)this.print_newline(0<i,e);else if(this._options.max_preserve_newlines&&n>this._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&1<n){this.print_newline(!1,e);for(var a=1;a<n;a+=1)this.print_newline(!0,e)}};var w=["async","break","continue","return","throw","yield"];_.prototype.allow_wrap_or_preserved_newline=function(t,e){e=void 0!==e&&e,this._output.just_added_newline()||(e=this._options.preserve_newlines&&t.newlines||e,(p(this._flags.last_token.text,c)||p(t.text,c))&&(t=p(this._flags.last_token.text,c)&&p(this._options.operator_position,m)||p(t.text,c),e=e&&t),e?this.print_newline(!1,!0):this._options.wrap_line_length&&(f(this._flags.last_token,w)||this._output.set_wrap_point()))},_.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!==u.OPERATOR||"--"===this._flags.last_token.text||"++"===this._flags.last_token.text))for(var n=this._tokens.peek();!("Statement"!==this._flags.mode||this._flags.if_block&&d(n,"else")||this._flags.do_block);)this.restore_mode();this._output.add_new_line(t)&&(this._flags.multiline_frame=!0)},_.prototype.print_token_line_indentation=function(t){this._output.just_added_newline()&&(this._options.keep_array_indentation&&t.newlines&&("["===t.text||y(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))},_.prototype.print_token=function(t){var e;this._output.raw?this._output.add_raw_token(t):(this._options.comma_first&&t.previous&&t.previous.type===u.COMMA&&this._output.just_added_newline()&&","===this._output.previous_line.last()&&(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))},_.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},_.prototype.deindent=function(){0<this._flags.indentation_level&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(--this._flags.indentation_level,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},_.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)},_.prototype.restore_mode=function(){0<this._flag_store.length&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),"Statement"===this._previous_flags.mode&&v(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},_.prototype.start_of_object_property=function(){return"ObjectLiteral"===this._flags.parent.mode&&"Statement"===this._flags.mode&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"]))},_.prototype.start_of_statement=function(t){return!!(f(this._flags.last_token,["var","let","const"])&&t.type===u.WORD||d(this._flags.last_token,"do")||("ObjectLiteral"!==this._flags.parent.mode||"Statement"!==this._flags.mode)&&f(this._flags.last_token,w)&&!t.newlines||d(this._flags.last_token,"else")&&(!d(t,"if")||t.comments_before)||this._flags.last_token.type===u.END_EXPR&&("ForInitializer"===this._previous_flags.mode||"Conditional"===this._previous_flags.mode)||this._flags.last_token.type===u.WORD&&"BlockStatement"===this._flags.mode&&!this._flags.in_case&&"--"!==t.text&&"++"!==t.text&&"function"!==this._last_last_text&&t.type!==u.WORD&&t.type!==u.RESERVED||"ObjectLiteral"===this._flags.mode&&(":"===this._flags.last_token.text&&0===this._flags.ternary_depth||f(this._flags.last_token,["get","set"])))&&(this.set_mode("Statement"),this.indent(),this.handle_whitespace_and_comments(t,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t,f(t,["do","for","if","while"])),!0)},_.prototype.handle_start_expr=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t);var e,n,r="Expression";if("["===t.text){if(this._flags.last_token.type===u.WORD||")"===this._flags.last_token.text)return f(this._flags.last_token,l)&&(this._output.space_before_token=!0),this.print_token(t),this.set_mode(r),this.indent(),void(this._options.space_in_paren&&(this._output.space_before_token=!0));r="ArrayLiteral",y(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()),p(this._flags.last_token.type,[u.START_EXPR,u.END_EXPR,u.WORD,u.OPERATOR,u.DOT])||(this._output.space_before_token=!0)}else this._flags.last_token.type===u.RESERVED?"for"===this._flags.last_token.text?(this._output.space_before_token=this._options.space_before_conditional,r="ForInitializer"):p(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,r="Conditional"):p(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:!p(this._flags.last_token.text,l)&&"catch"!==this._flags.last_token.text||(this._output.space_before_token=!0):this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):this._flags.last_token.type===u.WORD?(this._output.space_before_token=!1,e=this._tokens.peek(-3),this._options.space_after_named_function&&e&&(n=this._tokens.peek(-4),f(e,["async","function"])||"*"===e.text&&f(n,["async","function"])?this._output.space_before_token=!0:"ObjectLiteral"===this._flags.mode&&("{"!==e.text&&","!==e.text&&("*"!==e.text||"{"!==n.text&&","!==n.text)||(this._output.space_before_token=!0)))):this.allow_wrap_or_preserved_newline(t),(this._flags.last_token.type===u.RESERVED&&("function"===this._flags.last_word||"typeof"===this._flags.last_word)||"*"===this._flags.last_token.text&&(p(this._last_last_text,["function","yield"])||"ObjectLiteral"===this._flags.mode&&p(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===u.START_BLOCK?this.print_newline():this._flags.last_token.type!==u.END_EXPR&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.END_BLOCK&&"."!==this._flags.last_token.text&&this._flags.last_token.type!==u.COMMA||this.allow_wrap_or_preserved_newline(t,t.newlines),this.print_token(t),this.set_mode(r),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},_.prototype.handle_end_expr=function(t){for(;"Statement"===this._flags.mode;)this.restore_mode();this.handle_whitespace_and_comments(t),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(t,"]"===t.text&&y(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type!==u.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(),v(this._output,this._previous_flags),this._flags.do_while&&"Conditional"===this._previous_flags.mode&&(this._previous_flags.mode="Expression",this._flags.do_block=!1,this._flags.do_while=!1)},_.prototype.handle_start_block=function(t){this.handle_whitespace_and_comments(t);var e=this._tokens.peek(),n=this._tokens.peek(1);if("switch"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR?(this.set_mode("BlockStatement"),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode("BlockStatement"):n&&(p(n.text,[":",","])&&p(e.type,[u.STRING,u.WORD,u.RESERVED])||p(e.text,["get","set","..."])&&p(n.type,[u.WORD,u.RESERVED]))?p(this._last_last_text,["class","interface"])?this.set_mode("BlockStatement"):this.set_mode("ObjectLiteral"):this._flags.last_token.type===u.OPERATOR&&"=>"===this._flags.last_token.text||!p(this._flags.last_token.type,[u.EQUALS,u.START_EXPR,u.COMMA,u.OPERATOR])&&!f(this._flags.last_token,["return","throw","import","default"])?this.set_mode("BlockStatement"):this.set_mode("ObjectLiteral"),e=(n=!e.comments_before&&"}"===e.text)&&"function"===this._flags.last_word&&this._flags.last_token.type===u.END_EXPR,this._options.brace_preserve_inline){var r=0,o=null;this._flags.inline_frame=!0;do{if((o=this._tokens.peek((r+=1)-1)).newlines){this._flags.inline_frame=!1;break}}while(o.type!==u.EOF&&(o.type!==u.END_BLOCK||o.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==u.OPERATOR&&(e||this._flags.last_token.type===u.EQUALS||f(this._flags.last_token,h)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!y(this._previous_flags.mode)||this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.COMMA||(this._flags.last_token.type!==u.COMMA&&!this._options.space_in_paren||(this._output.space_before_token=!0),(this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.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!==u.OPERATOR&&this._flags.last_token.type!==u.START_EXPR&&(this._flags.last_token.type!==u.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()},_.prototype.handle_end_block=function(t){for(this.handle_whitespace_and_comments(t);"Statement"===this._flags.mode;)this.restore_mode();var e=this._flags.last_token.type===u.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(y(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)},_.prototype.handle_word=function(t){if(t.type===u.RESERVED&&(p(t.text,["set","get"])&&"ObjectLiteral"!==this._flags.mode||"import"===t.text&&"("===this._tokens.peek().text||p(t.text,["as","from"])&&!this._flags.import_block||"ObjectLiteral"===this._flags.mode&&":"===this._tokens.peek().text)&&(t.type=u.WORD),this.start_of_statement(t)?f(this._flags.last_token,["var","let","const"])&&t.type===u.WORD&&(this._flags.declaration_statement=!0):!t.newlines||b(this._flags.mode)||this._flags.last_token.type===u.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===u.EQUALS||!this._options.preserve_newlines&&f(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(d(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&&d(t,"else"))this._flags.else_block=!0;else{for(;"Statement"===this._flags.mode;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&f(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==u.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!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR&&this._flags.last_token.type!==u.EQUALS&&this._flags.last_token.type!==u.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),d(t,"function"))return(p(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!p(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==u.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD?f(this._flags.last_token,["get","set","new","export"])||f(this._flags.last_token,w)||d(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===u.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:!this._flags.multiline_frame&&(b(this._flags.mode)||y(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===u.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":!f(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):this._flags.last_token.type===u.SEMICOLON&&"BlockStatement"===this._flags.mode?e="NEWLINE":this._flags.last_token.type===u.SEMICOLON&&b(this._flags.mode)?e="SPACE":this._flags.last_token.type===u.STRING?e="NEWLINE":this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||"*"===this._flags.last_token.text&&(p(this._last_last_text,["function","yield"])||"ObjectLiteral"===this._flags.mode&&p(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===u.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===u.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),f(t,l)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),f(t,["else","catch","finally"])?(this._flags.last_token.type!==u.END_BLOCK||"BlockStatement"!==this._previous_flags.mode||"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?f(this._flags.last_token,h)||"declare"===this._flags.last_token.text&&f(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==u.END_EXPR?this._flags.last_token.type===u.START_EXPR&&f(t,["var","let","const"])||":"===this._flags.last_token.text||(d(t,"if")&&d(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):f(t,l)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&y(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!==u.WORD&&t.previous.type!==u.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===u.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&&d(t,"from")&&(this._flags.import_block=!1))},_.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();!("Statement"!==this._flags.mode||this._flags.if_block&&d(e,"else")||this._flags.do_block);)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(t)},_.prototype.handle_string=function(t){t.text.startsWith("`")&&0===t.newlines&&""===t.whitespace_before&&(")"===t.previous.text||this._flags.last_token.type===u.WORD)||(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===u.RESERVED||this._flags.last_token.type===u.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===u.COMMA||this._flags.last_token.type===u.START_EXPR||this._flags.last_token.type===u.EQUALS||this._flags.last_token.type===u.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==u.END_EXPR||"]"!==t.previous.text&&")"!==t.previous.text||0!==t.newlines?this.print_newline():this._output.space_before_token=!0)),this.print_token(t)},_.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},_.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?(b(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)):"ObjectLiteral"===this._flags.mode||"Statement"===this._flags.mode&&"ObjectLiteral"===this._flags.parent.mode?("Statement"===this._flags.mode&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(t)},_.prototype.handle_operator=function(t){var e="*"===t.text&&(f(this._flags.last_token,["function","yield"])||p(this._flags.last_token.type,[u.START_BLOCK,u.COMMA,u.END_BLOCK,u.SEMICOLON])),n=p(t.text,["-","+"])&&(p(this._flags.last_token.type,[u.START_BLOCK,u.START_EXPR,u.EQUALS,u.OPERATOR])||p(this._flags.last_token.text,l)||","===this._flags.last_token.text);if(this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!e),f(this._flags.last_token,h))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==u.DOT)if("::"!==t.text){if(this._flags.last_token.type===u.OPERATOR&&p(this._options.operator_position,m)&&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!==u.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var r=!0,o=!0,i=!1;if(":"===t.text?0===this._flags.ternary_depth?r=!1:(--this._flags.ternary_depth,i=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&p(t.text,c)){var a=":"===t.text,s=a&&i,d=a&&!i;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!d,this.print_token(t),a&&!s||this.allow_wrap_or_preserved_newline(t),void(this._output.space_before_token=!0);case g.after_newline:return this._output.space_before_token=!0,!a||s?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 g.preserve_newline:return d||this.allow_wrap_or_preserved_newline(t),r=!(this._output.just_added_newline()||d),this._output.space_before_token=r,this.print_token(t),void(this._output.space_before_token=!0)}}e?(this.allow_wrap_or_preserved_newline(t),r=!1,o=(e=this._tokens.peek())&&p(e.type,[u.WORD,u.RESERVED])):"..."===t.text?(this.allow_wrap_or_preserved_newline(t),r=this._flags.last_token.type===u.START_BLOCK,o=!1):(p(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==u.COMMA&&this._flags.last_token.type!==u.START_EXPR||this.allow_wrap_or_preserved_newline(t),o=r=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&b(this._flags.mode)&&(r=!0),this._flags.last_token.type===u.RESERVED?r=!0:this._flags.last_token.type===u.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===u.OPERATOR&&(r=p(t.text,["--","-","++","+"])&&p(this._flags.last_token.text,["--","-","++","+"]),p(t.text,["+","-"])&&p(this._flags.last_token.text,["--","++"])&&(o=!0)),("BlockStatement"!==this._flags.mode||this._flags.inline_frame)&&"Statement"!==this._flags.mode||"{"!==this._flags.last_token.text&&";"!==this._flags.last_token.text||this.print_newline()),this._output.space_before_token=this._output.space_before_token||r,this.print_token(t),this._output.space_before_token=o}else this.print_token(t);else this.print_token(t)},_.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)):void(i.newline.test(t.text)||t.newlines?this.print_block_commment(t,e):(this._output.space_before_token=!0,this.print_token(t),this._output.space_before_token=!0))},_.prototype.print_block_commment=function(t,e){var n,r,o,a=function(t){for(var e=[],n=(t=t.replace(i.allLineBreaks,"\n")).indexOf("\n");-1!==n;)e.push(t.substring(0,n)),n=(t=t.substring(n+1)).indexOf("\n");return t.length&&e.push(t),e}(t.text),s=t.whitespace_before,l=s.length;if(this.print_newline(!1,e),this.print_token_line_indentation(t),this._output.add_token(a[0]),this.print_newline(!1,e),1<a.length){for(r=function(t){for(var e=0;e<t.length;e++)if("*"!==t[e].trim().charAt(0))return!1;return!0}(a=a.slice(1)),o=function(t,e){for(var n,r=0,o=t.length;r<o;r++)if((n=t[r])&&0!==n.indexOf(e))return!1;return!0}(a,s),r&&(this._flags.alignment=1),n=0;n<a.length;n++)r?(this.print_token_line_indentation(t),this._output.add_token(function(t){return t.replace(/^\s+/g,"")}(a[n]))):o&&a[n]?(this.print_token_line_indentation(t),this._output.add_token(a[n].substring(l))):(this._output.current_line.set_indent(-1),this._output.add_token(a[n])),this.print_newline(!1,e);this._flags.alignment=0}},_.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)},_.prototype.handle_dot=function(t){this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!0),f(this._flags.last_token,h)?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)},_.prototype.handle_unknown=function(t,e){this.print_token(t),"\n"===t.text[t.text.length-1]&&this.print_newline(!1,e)},_.prototype.handle_eof=function(t){for(;"Statement"===this._flags.mode;)this.restore_mode();this.handle_whitespace_and_comments(t)},t.exports.Beautifier=_},function(t){function e(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 n(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||"",0<t.indent_level&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function r(t,r){this.__indent_cache=new n(t,r),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 e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;0<=e;e--)if(this.__items[e].match(t))return!0;return!1},e.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))},e.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)},e.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},e.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),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.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},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){0<this.__indent_count&&(--this.__indent_count,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){0<this.__wrap_point_indent_count&&--this.__wrap_point_indent_count},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),--this.__character_count},e.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},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return t<0&&(n=0),(n+=t*this.__indent_size)+(e||0)},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t,e=this.__cache.length,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();return e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline(),e=this.__lines.join("\n"),"\n"!==t?e.replace(/[\n]/g,t):e},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return this.next_line.set_indent(t=t||0,e=e||0),1<this.__lines.length?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},r.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},r.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()},r.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(" "))},r.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()},r.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&1<this.__lines.length&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=1<this.__lines.length?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(t,n){for(var r=this.__lines.length-2;0<=r;){var o=this.__lines[r];if(o.is_empty())break;if(0!==o.item(0).indexOf(t)&&o.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},t.exports.Output=r},function(t){t.exports.Token=function(t,e,n,r){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},function(t,e){var n="\\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",r="(?:\\\\u[0-9a-fA-F]{4}|[\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a"+n+"])";e.identifier=new RegExp(r+"(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a\\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\\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"),e.identifierStart=new RegExp(r),e.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|[\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a"+n+"\\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])+"),e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function(t,e,n){var r=n(6).Options,o=["before-newline","after-newline","preserve-newline"];function i(t){r.call(this,t,"js"),"expand-strict"===(t=this.raw_options.brace_style||null)?this.raw_options.brace_style="expand":"collapse-preserve-inline"===t?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 e=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<e.length;n++)"preserve-inline"===e[n]?this.brace_preserve_inline=!0:this.brace_style=e[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",o),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}i.prototype=new r,t.exports.Options=i},function(t){function e(t,e){this.raw_options=n(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 n(t,e){var n,o={};for(n in t=r(t))n!==e&&(o[n]=t[n]);if(e&&t[e])for(n in t[e])o[n]=t[e][n];return o}function r(t){var e,n={};for(e in t)n[e.replace(/-/g,"_")]=t[e];return n}e.prototype._get_array=function(t,e){return e=e||[],"object"===o(t=this.raw_options[t])?null!==t&&"function"==typeof t.concat&&(e=t.concat()):"string"==typeof t&&(e=t.split(/[^a-zA-Z0-9_\/\-]+/)),e},e.prototype._get_boolean=function(t,e){return void 0===(t=this.raw_options[t])?!!e:!!t},e.prototype._get_characters=function(t,e){return e=e||"","string"==typeof(t=this.raw_options[t])?t.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t"):e},e.prototype._get_number=function(t,e){return t=this.raw_options[t],e=parseInt(e,10),isNaN(e)&&(e=0),t=parseInt(t,10),isNaN(t)?e:t},e.prototype._get_selection=function(t,e,n){if(1!==(n=this._get_selection_list(t,e,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]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");if(n=this._get_array(t,n),!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},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=r,t.exports.mergeOpts=n},function(t,e,n){var r=n(8).InputScanner,o=n(9).Tokenizer,i=n(9).TOKEN,a=n(13).Directives,s=n(4),l=n(12).Pattern,c=n(14).TemplatablePattern;function u(t,e){return-1!==e.indexOf(t)}var p={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:i.START,RAW:i.RAW,EOF:i.EOF},d=new a(/\/\*/,/\*\//),f=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,h=/[0-9]/,g=/[^\d\.]/;n=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),i=(i="\\?\\.(?!\\d) "+(i=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |").replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")).replace(/ /g,"|");var m,v=new RegExp(i),y=(i=(a="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",")).concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),new RegExp("^(?:"+i.join("|")+")$"));((i=function(t,e){o.call(this,t,e),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source),t=new l(this._input),e=new c(this._input).read_options(this._options),this.__patterns={template:e,identifier:e.starting_with(s.identifier).matching(s.identifierMatch),number:t.matching(f),punct:t.matching(v),comment:t.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:t.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:t.matching(/<!--/),html_comment_end:t.matching(/-->/),include:t.starting_with(/#include/).until_after(s.lineBreak),shebang:t.starting_with(/#!/).until_after(s.lineBreak),xml:t.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:e.until(/['\\\n\r\u2028\u2029]/),double_quote:e.until(/["\\\n\r\u2028\u2029]/),template_text:e.until(/[`\\$]/),template_expression:e.until(/[`}\\]/)}}).prototype=new o)._is_comment=function(t){return t.type===p.COMMENT||t.type===p.BLOCK_COMMENT||t.type===p.UNKNOWN},i.prototype._is_opening=function(t){return t.type===p.START_BLOCK||t.type===p.START_EXPR},i.prototype._is_closing=function(t,e){return(t.type===p.END_BLOCK||t.type===p.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},i.prototype._reset=function(){m=!1},i.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(p.EOF,""):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(p.UNKNOWN,this._input.next())},i.prototype._read_word=function(t){var e=this.__patterns.identifier.read();return""!==e?(e=e.replace(s.allLineBreaks,"\n"),t.type!==p.DOT&&(t.type!==p.RESERVED||"set"!==t.text&&"get"!==t.text)&&y.test(e)?"in"===e||"of"===e?this._create_token(p.OPERATOR,e):this._create_token(p.RESERVED,e):this._create_token(p.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(p.WORD,e):void 0},i.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(p.START_EXPR,t):")"===t||"]"===t?e=this._create_token(p.END_EXPR,t):"{"===t?e=this._create_token(p.START_BLOCK,t):"}"===t?e=this._create_token(p.END_BLOCK,t):";"===t?e=this._create_token(p.SEMICOLON,t):"."===t&&g.test(this._input.peek(1))?e=this._create_token(p.DOT,t):","===t&&(e=this._create_token(p.COMMA,t)),e&&this._input.next(),e},i.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(p.EQUALS,t):"?."===t?this._create_token(p.DOT,t):this._create_token(p.OPERATOR,t)},i.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(p.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(p.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(h)){for(;n+=t=this._input.next(),this._input.hasNext()&&"#"!==t&&"="!==t;);return"#"===t||("["===this._input.peek()&&"]"===this._input.peek(1)?(n+="[]",this._input.next(),this._input.next()):"{"===this._input.peek()&&"}"===this._input.peek(1)&&(n+="{}",this._input.next(),this._input.next())),this._create_token(p.WORD,n)}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(s.newline);)e+=this._input.next();return m=!0,this._create_token(p.COMMENT,e)}}else if(m&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return m=!1,this._create_token(p.COMMENT,e);return null},i.prototype._read_comment=function(t){var e,n=null;return"/"===t&&(e="","*"===this._input.peek(1)?(e=this.__patterns.block_comment.read(),(t=d.get_directives(e))&&"start"===t.ignore&&(e+=d.readIgnored(this._input)),e=e.replace(s.allLineBreaks,"\n"),(n=this._create_token(p.BLOCK_COMMENT,e)).directives=t):"/"===this._input.peek(1)&&(e=this.__patterns.comment.read(),n=this._create_token(p.COMMENT,e))),n},i.prototype._read_string=function(t){if("`"!==t&&"'"!==t&&'"'!==t)return null;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){for(var e,n="",o=new r(t),i=null;o.hasNext();)if((i=o.match(/([\s]|[^\\]|\\\\)+/g))&&(n+=i[0]),"\\"===o.peek()){if(o.next(),"x"===o.peek())i=o.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==o.peek()){n+="\\",o.hasNext()&&(n+=o.next());continue}i=o.match(/u([0-9A-Fa-f]{4})/g)}if(!i)return t;if(126<(e=parseInt(i[1],16))&&e<=255&&0===i[0].indexOf("x"))return t;n+=0<=e&&e<32?"\\"+i[0]:34===e||39===e||92===e?"\\"+String.fromCharCode(e):String.fromCharCode(e)}return n}(e)),this._input.peek()===t&&(e+=this._input.next()),e=e.replace(s.allLineBreaks,"\n"),this._create_token(p.STRING,e)},i.prototype._allow_regexp_or_xml=function(t){return t.type===p.RESERVED&&u(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===p.END_EXPR&&")"===t.text&&t.opened.previous.type===p.RESERVED&&u(t.opened.previous.text,["if","while","for"])||u(t.type,[p.COMMENT,p.START_EXPR,p.START_BLOCK,p.START,p.END_BLOCK,p.OPERATOR,p.EQUALS,p.EOF,p.SEMICOLON,p.COMMA])},i.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var n=this._input.next(),r=!1,o=!1;this._input.hasNext()&&(r||o||this._input.peek()!==t)&&!this._input.testChar(s.newline);)n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?o=!0:"]"===this._input.peek()&&(o=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(p.STRING,n)}return null},i.prototype._read_xml=function(t,e){if(this._options.e4x&&"<"===t&&this._allow_regexp_or_xml(e)){var n="",r=this.__patterns.xml.read_match();if(r){for(var o=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),i=0===o.indexOf("{"),a=0;r;){var l=!!r[1],c=r[2];if(!r[r.length-1]&&"![CDATA["!==c.slice(0,8)&&(c===o||i&&c.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(l?--a:++a),n+=r[0],a<=0)break;r=this.__patterns.xml.read_match()}return r||(n+=this._input.match(/[\s\S]*/g)[0]),n=n.replace(s.allLineBreaks,"\n"),this._create_token(p.STRING,n)}}return null},i.prototype._read_string_recursive=function(t,e,n){var r,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 i=o.read(),a="";this._input.hasNext();){if((a=this._input.next())===t||!e&&s.newline.test(a)){this._input.back();break}"\\"===a&&this._input.hasNext()?("x"===(r=this._input.peek())||"u"===r?this.has_char_escapes=!0:"\r"===r&&"\n"===this._input.peek(1)&&this._input.next(),a+=this._input.next()):n&&("${"===n&&"$"===a&&"{"===this._input.peek()&&(a+=this._input.next()),n===a&&(a+="`"===t?this._read_string_recursive("}",e,"`"):this._read_string_recursive("`",e,"${"),this._input.hasNext()&&(a+=this._input.next()))),i+=a+=o.read()}return i},t.exports.Tokenizer=i,t.exports.TOKEN=p,t.exports.positionable_operators=n.slice(),t.exports.line_starters=a.slice()},function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0<this.__position&&--this.__position},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__input_length?this.__input.charAt(t):null},n.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(t,e){return e=e||0,0<=(e+=this.__position)&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){return e=this.peek(e),t.lastIndex=0,null!==e&&t.test(e)},n.prototype.match=function(t){return(t=this.__match(t,this.__position))?this.__position+=t[0].length:t=null,t},n.prototype.read=function(t,e,n){var r,o="";return t&&(r=this.match(t))&&(o+=r[0]),!e||!r&&t||(o+=this.readUntil(e,n)),o},n.prototype.readUntil=function(t,e){var n=this.__position;return t.lastIndex=this.__position,(t=t.exec(this.__input))?(n=t.index,e&&(n+=t[0].length)):n=this.__input_length,t=this.__input.substring(this.__position,n),this.__position=n,t},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var r=null;return n=n&&e?"y":"g","string"==typeof t&&""!==t?r=new RegExp(t,n):t&&(r=new RegExp(t.source,n)),r},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position;return t=this.readUntilAfter(t),this.__position=e,t},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var r=n(8).InputScanner,o=n(3).Token,i=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"};(n=function(t,e){this._input=new r(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)}).prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new i,this._reset();for(var e=new o(s.START,""),n=null,r=[],a=new i;e.type!==s.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new i),t.parent=n,this._is_opening(t)?(r.push(n),n=t):n&&this._is_closing(t,n)&&((t.opened=n).closed=t,n=r.pop(),t.parent=n),(t.previous=e).next=t,this.__tokens.add(t),e=t}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},n.prototype._is_comment=function(t){return!1},n.prototype._is_opening=function(t){return!1},n.prototype._is_closing=function(t,e){return!1},n.prototype._create_token=function(t,e){return new o(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=n,t.exports.TOKEN=s},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__tokens_length?this.__tokens[t]:null},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},t.exports.TokenStream=e},function(t,e,n){var r=n(12).Pattern;function o(t,e){r.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=""}(o.prototype=new r).__set_whitespace_patterns=function(t,e){this._match_pattern=this._input.get_regexp("["+(t+="\\t ")+(e+="\\n\\r")+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t,e=this._input.read(this._match_pattern);return" "===e?this.whitespace_before_token=" ":e&&(t=this.__split(this._newline_regexp,e),this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]),e},o.prototype.matching=function(t,e){var n=this._create();return n.__set_whitespace_patterns(t,e),n._update(),n},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(t,e){for(var n=t.lastIndex=0,r=[],o=t.exec(e);o;)r.push(e.substring(n,o.index)),n=o.index+o[0].length,o=t.exec(e);return n<e.length?r.push(e.substring(n,e.length)):r.push(""),r},t.exports.WhitespacePattern=o},function(t){function e(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)}e.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},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.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},e.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},t.exports.Pattern=e},function(t){function e(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")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},function(t,e,n){var r=n(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(t,e){r.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),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)),t=new r(t),this.__patterns={handlebars_comment:t.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:t.starting_with(/{{{/).until_after(/}}}/),handlebars:t.starting_with(/{{/).until_after(/}}/),php:t.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:t.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:t.starting_with(/{%/).until_after(/%}/),django_value:t.starting_with(/{{/).until_after(/}}/),django_comment:t.starting_with(/{#/).until_after(/#}/),smarty:t.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:t.starting_with(/{\*/).until_after(/\*}/),smarty_literal:t.starting_with(/{literal}/).until_after(/{\/literal}/)}}(i.prototype=new r)._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},i.prototype.read_options=function(t){var e,n=this._create();for(e in o)n._disabled[e]=-1===t.templating.indexOf(e);return n._update(),n},i.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},i.prototype.read=function(){for(var t="",e=(t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern),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},i.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("|")+")")},i.prototype._read_template=function(){var t,e="",n=this._input.peek();return"<"===n?(t=this._input.peek(1),this._disabled.php||this._excluded.php||"?"!==t||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==t||(e=e||this.__patterns.erb.read())):"{"===n&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read())),e},t.exports.TemplatablePattern=i}],e={},r=function n(r){var o=e[r];return void 0!==o||(o=e[r]={exports:{}},t[r](o,o.exports,n)),o.exports}(0);n=r}();var i=n;void 0===(r=function(){return{js_beautify:i}}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){var r;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var n;!function(){"use strict";var t=[,,function(t){function e(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 n(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||"",0<t.indent_level&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function r(t,r){this.__indent_cache=new n(t,r),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 e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;0<=e;e--)if(this.__items[e].match(t))return!0;return!1},e.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))},e.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)},e.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},e.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),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.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},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){0<this.__indent_count&&(--this.__indent_count,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){0<this.__wrap_point_indent_count&&--this.__wrap_point_indent_count},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),--this.__character_count},e.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},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return t<0&&(n=0),(n+=t*this.__indent_size)+(e||0)},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t,e=this.__cache.length,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();return e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline(),e=this.__lines.join("\n"),"\n"!==t?e.replace(/[\n]/g,t):e},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return this.next_line.set_indent(t=t||0,e=e||0),1<this.__lines.length?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},r.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},r.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()},r.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(" "))},r.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()},r.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&1<this.__lines.length&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=1<this.__lines.length?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(t,n){for(var r=this.__lines.length-2;0<=r;){var o=this.__lines[r];if(o.is_empty())break;if(0!==o.item(0).indexOf(t)&&o.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},t.exports.Output=r},,,,function(t){function e(t,e){this.raw_options=n(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 n(t,e){var n,o={};for(n in t=r(t))n!==e&&(o[n]=t[n]);if(e&&t[e])for(n in t[e])o[n]=t[e][n];return o}function r(t){var e,n={};for(e in t)n[e.replace(/-/g,"_")]=t[e];return n}e.prototype._get_array=function(t,e){return e=e||[],"object"===o(t=this.raw_options[t])?null!==t&&"function"==typeof t.concat&&(e=t.concat()):"string"==typeof t&&(e=t.split(/[^a-zA-Z0-9_\/\-]+/)),e},e.prototype._get_boolean=function(t,e){return void 0===(t=this.raw_options[t])?!!e:!!t},e.prototype._get_characters=function(t,e){return e=e||"","string"==typeof(t=this.raw_options[t])?t.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t"):e},e.prototype._get_number=function(t,e){return t=this.raw_options[t],e=parseInt(e,10),isNaN(e)&&(e=0),t=parseInt(t,10),isNaN(t)?e:t},e.prototype._get_selection=function(t,e,n){if(1!==(n=this._get_selection_list(t,e,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]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");if(n=this._get_array(t,n),!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},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=r,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0<this.__position&&--this.__position},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__input_length?this.__input.charAt(t):null},n.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(t,e){return e=e||0,0<=(e+=this.__position)&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){return e=this.peek(e),t.lastIndex=0,null!==e&&t.test(e)},n.prototype.match=function(t){return(t=this.__match(t,this.__position))?this.__position+=t[0].length:t=null,t},n.prototype.read=function(t,e,n){var r,o="";return t&&(r=this.match(t))&&(o+=r[0]),!e||!r&&t||(o+=this.readUntil(e,n)),o},n.prototype.readUntil=function(t,e){var n=this.__position;return t.lastIndex=this.__position,(t=t.exec(this.__input))?(n=t.index,e&&(n+=t[0].length)):n=this.__input_length,t=this.__input.substring(this.__position,n),this.__position=n,t},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var r=null;return n=n&&e?"y":"g","string"==typeof t&&""!==t?r=new RegExp(t,n):t&&(r=new RegExp(t.source,n)),r},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position;return t=this.readUntilAfter(t),this.__position=e,t},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},,,,,function(t){function e(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")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},,function(t,e,n){var r=n(16).Beautifier,o=n(17).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new o}},function(t,e,n){var r=n(17).Options,o=n(2).Output,i=n(8).InputScanner,a=new(n(13).Directives)(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,l=/\r\n|[\r\n]/g,c=/\s/,u=/(?:\s|\n)+/g,p=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,d=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(t,e){this._source_text=t||"",this._options=new r(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}}f.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},f.prototype.eatWhitespace=function(t){for(var e=c.test(this._input.peek()),n=0;c.test(this._input.peek());)this._ch=this._input.next(),t&&"\n"===this._ch&&(0===n||n<this._options.max_preserve_newlines)&&(n++,this._output.add_new_line(!0));return e},f.prototype.foundNestedPseudoClass=function(){for(var t=0,e=1,n=this._input.peek(e);n;){if("{"===n)return!0;if("("===n)t+=1;else if(")"===n){if(0===t)return!1;--t}else if(";"===n||"}"===n)return!1;e++,n=this._input.peek(e)}return!1},f.prototype.print_string=function(t){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(t)},f.prototype.preserveSingleSpace=function(t){t&&(this._output.space_before_token=!0)},f.prototype.indent=function(){this._indentLevel++},f.prototype.outdent=function(){0<this._indentLevel&&this._indentLevel--},f.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&&s.test(t||"")&&(e=t.match(s)[0]));var n=(t=t.replace(l,"\n")).match(/^[\t ]*/)[0];this._output=new o(this._options,n),this._input=new i(t),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var r,f,h,g,m=0,v=!1,y=!1,b=!1,_=!1,w=!1,E=this._ch;r=""!==this._input.read(u),f=E,this._ch=this._input.next(),"\\"===this._ch&&this._input.hasNext()&&(this._ch+=this._input.next()),E=this._ch,this._ch;)"/"===this._ch&&"*"===this._input.peek()?(this._output.add_new_line(),this._input.back(),g=this._input.read(p),(h=a.get_directives(g))&&"start"===h.ignore&&(g+=a.readIgnored(this._input)),this.print_string(g),this.eatWhitespace(!0),this._output.add_new_line()):"/"===this._ch&&"/"===this._input.peek()?(this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(d)),this.eatWhitespace(!0)):"@"===this._ch?(this.preserveSingleSpace(r),"{"===this._input.peek()?this.print_string(this._ch+this.eatString("}")):(this.print_string(this._ch),(g=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g)).match(/[ :]$/)&&(g=this.eatString(": ").replace(/\s$/,""),this.print_string(g),this._output.space_before_token=!0),"extend"===(g=g.replace(/\s$/,""))?_=!0:"import"===g&&(w=!0),g in this.NESTED_AT_RULE?(this._nestedLevel+=1,g in this.CONDITIONAL_GROUP_RULE&&(b=!0)):v||0!==m||-1===g.indexOf(":")||(y=!0,this.indent()))):"#"===this._ch&&"{"===this._input.peek()?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString("}"))):"{"===this._ch?(y&&(y=!1,this.outdent()),v=b?(b=!1,this._indentLevel>=this._nestedLevel):this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&v&&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(),"{"===f&&this._output.trim(!0),_=w=!1,y&&(this.outdent(),y=!1),this.print_string(this._ch),v=!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?!v&&!b||this._input.lookBack("&")||this.foundNestedPseudoClass()||this._input.lookBack("(")||_||0!==m?(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(":"),y||(this._output.space_before_token=y=!0,this.eatWhitespace(!0),this.indent())):'"'===this._ch||"'"===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):";"===this._ch?0===m?(y&&(this.outdent(),y=!1),w=_=!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(),m++,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(")")),m&&(m--,this.outdent()))):(this.preserveSingleSpace(r),this.print_string(this._ch),this.eatWhitespace(),m++,this.indent()):")"===this._ch?(m&&(m--,this.outdent()),this.print_string(this._ch)):","===this._ch?(this.print_string(this._ch),this.eatWhitespace(!0),!this._options.selector_separator_newline||y||0!==m||w||_?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||y||0!==m?"]"===this._ch?this.print_string(this._ch):"["===this._ch?(this.preserveSingleSpace(r),this.print_string(this._ch)):"="===this._ch?(this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="")):("!"!==this._ch||this._input.lookBack("\\")?this.preserveSingleSpace(r):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&&c.test(this._ch)&&(this._ch=""));return this._output.get_code(e)},t.exports.Beautifier=f},function(t,e,n){var r=n(6).Options;function o(t){r.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),t=this._get_boolean("space_around_selector_separator"),this.space_around_combinator=this._get_boolean("space_around_combinator")||t;var e=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var n=0;n<e.length;n++)"expand"!==e[n]?this.brace_style="collapse":this.brace_style=e[n]}o.prototype=new r,t.exports.Options=o}],e={},r=function n(r){var o=e[r];return void 0!==o||(o=e[r]={exports:{}},t[r](o,o.exports,n)),o.exports}(15);n=r}();var i=n;void 0===(r=function(){return{css_beautify:i}}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){var r=n(360);function o(t,e){return r(t[1],e[1])}function i(t,e){return t[1]>e[1]?1:-1}t.exports=function(t,e){switch(e){case"natural":return t.sort(o);case"standard":return t.sort(i);case"none":case!1:return t}}},function(t,e,n){var r=n(80).Spaces,o=n(15),i=n(81),a=/[\s"'][iI]\s*\]/,s=/([\d\w])([iI])\]/g,l=/="([a-zA-Z][a-zA-Z\d\-_]+)"([iI])/g,c=/="([a-zA-Z][a-zA-Z\d\-_]+)"(\s|\])/g,u=/^(?:(?:<!--|-->)\s*)+/,p=/='([a-zA-Z][a-zA-Z\d\-_]+)'([iI])/g,d=/='([a-zA-Z][a-zA-Z\d\-_]+)'(\s|\])/g,f=/[>\+~]/,h=/\s/;t.exports=function(t,e,n,g,m){var v=[],y=[];function b(t,e){return m.push("HTML comment '"+e+"' at "+i(t[2][0])+". Removing."),""}for(var _=0,w=t.length;_<w;_++){var E=t[_],x=E[1];!function(t){for(var e,n,r=!1,i=!1,a=0,s=t.length;a<s;a++){if(n=t[a],!e)if(n==o.SINGLE_QUOTE||n==o.DOUBLE_QUOTE)i=!i;else{if(!(i||n!=o.CLOSE_CURLY_BRACKET&&n!=o.EXCLAMATION&&"<"!=n&&n!=o.SEMICOLON)){r=!0;break}if(!i&&0===a&&f.test(n)){r=!0;break}}e=n==o.BACK_SLASH}return r}(x=x.replace(u,b.bind(null,E)))?(x=function(t){return-1==t.indexOf("'")&&-1==t.indexOf('"')?t:t.replace(p,"=$1 $2").replace(d,"=$1$2").replace(l,"=$1 $2").replace(c,"=$1$2")}(x=function(t,e){for(var n,i,l,c,u,p,d,g,m,v,y,b=[],_=0,w=!1,E=!1,x=a.test(t),C=e&&e.spaces[r.AroundSelectorRelation],T=0,A=t.length;T<A;T++){if(i=(n=t[T])==o.NEW_LINE_NIX,l=n==o.NEW_LINE_NIX&&t[T-1]==o.CARRIAGE_RETURN,p=d||g,v=!m&&!c&&0===_&&f.test(n),y=h.test(n),u&&p&&l)b.pop(),b.pop();else if(c&&p&&i)b.pop();else if(c)b.push(n);else if(n!=o.OPEN_SQUARE_BRACKET||p)if(n!=o.CLOSE_SQUARE_BRACKET||p)if(n!=o.OPEN_ROUND_BRACKET||p)if(n!=o.CLOSE_ROUND_BRACKET||p)if(n!=o.SINGLE_QUOTE||p)if(n!=o.DOUBLE_QUOTE||p)if(n==o.SINGLE_QUOTE&&p)b.push(n),d=!1;else if(n==o.DOUBLE_QUOTE&&p)b.push(n),g=!1;else{if(y&&w&&!C)continue;!y&&w&&C?(b.push(o.SPACE),b.push(n)):y&&(m||0<_)&&!p||y&&E&&!p||(l||i)&&(m||0<_)&&p||(v&&E&&!C?(b.pop(),b.push(n)):v&&!E&&C?(b.push(o.SPACE),b.push(n)):y?b.push(o.SPACE):b.push(n))}else b.push(n),g=!0;else b.push(n),d=!0;else b.push(n),_--;else b.push(n),_++;else b.push(n),m=!1;else b.push(n),m=!0;u=c,c=n==o.BACK_SLASH,w=v,E=y}return x?b.join("").replace(s,"$1 $2]"):b.join("")}(x,g)),n&&0<x.indexOf("nav")&&(x=x.replace(/\+nav(\S|$)/,"+ nav$1")),e&&-1<x.indexOf("*+html ")||e&&-1<x.indexOf("*:first-child+html ")||(-1<x.indexOf("*")&&(x=x.replace(/\*([:#\.\[])/g,"$1").replace(/^(\:first\-child)?\+html/,"*$1+html")),-1<y.indexOf(x)||(E[1]=x,y.push(x),v.push(E)))):m.push("Invalid selector '"+E[1]+"' at "+i(E[2][0])+". Ignoring.")}return 1==v.length&&0===v[0][1].length&&(m.push("Empty selector '"+v[0][1]+"' at "+i(v[0][2][0])+". Ignoring."),v=[]),v}},function(t,e){t.exports={ASTERISK:"asterisk",BANG:"bang",BACKSLASH:"backslash",UNDERSCORE:"underscore"}},function(t,e,n){var r=n(15);t.exports=function(t,e){var n,o=r.OPEN_ROUND_BRACKET,i=r.CLOSE_ROUND_BRACKET,a=0,s=0,l=0,c=t.length,u=[];if(-1==t.indexOf(e))return[t];if(-1==t.indexOf(o))return t.split(e);for(;s<c;)t[s]==o?a++:t[s]==i&&a--,0===a&&0<s&&s+1<c&&t[s]==e&&(u.push(t.substring(l,s)),l=s+1),s++;return l<s+1&&((n=t.substring(l))[n.length-1]==e&&(n=n.substring(0,n.length-1)),u.push(n)),u}},function(t,e,n){var r="",o=n(80).Breaks,i=n(80).Spaces,a=n(15),s=n(10);function l(t,e){for(var n=t.store,i=0,s=e.length;i<s;i++)n(t,e[i]),i<s-1&&n(t,function(t){return t.format?a.COMMA+(d(t,o.BetweenSelectors)?t.format.breakWith:r)+t.indentWith:a.COMMA}(t))}function c(t,e){for(var n=function(t){for(var e=t.length-1;0<=e&&t[e][0]==s.COMMENT;e--);return e}(e),r=0,o=e.length;r<o;r++)u(t,e,r,n)}function u(t,e,n,u){var d=t.store,v=e[n],y=v[2],b=(e=y&&y[0]===s.PROPERTY_BLOCK,t.format?!(!t.format.semicolonAfterLastProperty&&!e)||n<u:n<u||e),_=n===u;switch(v[0]){case s.AT_RULE:d(t,v),d(t,m(t,o.AfterProperty,!1));break;case s.AT_RULE_BLOCK:l(t,v[1]),d(t,h(t,o.AfterRuleBegins,!0)),c(t,v[2]),d(t,g(t,o.AfterRuleEnds,!1,_));break;case s.COMMENT:d(t,v);break;case s.PROPERTY:d(t,v[1]),d(t,function(t){return t.format?a.COLON+(f(t,i.BeforeValue)?a.SPACE:r):a.COLON}(t)),y&&p(t,v),d(t,b?m(t,o.AfterProperty,_):r);break;case s.RAW:d(t,v)}}function p(t,e){var n,r,i=t.store;if(e[2][0]==s.PROPERTY_BLOCK)i(t,h(t,o.AfterBlockBegins,!1)),c(t,e[2][1]),i(t,g(t,o.AfterBlockEnds,!1,!0));else for(n=2,r=e.length;n<r;n++)i(t,e[n]),n<r-1&&(function(t){return"filter"==t[1][1]||"-ms-filter"==t[1][1]}(e)||!function(t,e,n){return!t.spaceAfterClosingBrace&&function(t){return"background"==t[1][1]||"transform"==t[1][1]||"src"==t[1][1]}(e)&&function(t,e){return t[e][1][t[e][1].length-1]==a.CLOSE_ROUND_BRACKET}(e,n)||function(t,e){return t[e+1]&&t[e+1][1]==a.FORWARD_SLASH}(e,n)||function(t,e){return t[e][1]==a.FORWARD_SLASH}(e,n)||function(t,e){return t[e+1]&&t[e+1][1]==a.COMMA}(e,n)||function(t,e){return t[e][1]==a.COMMA}(e,n)}(t,e,n))&&i(t,a.SPACE)}function d(t,e){return t.format&&t.format.breaks[e]}function f(t,e){return t.format&&t.format.spaces[e]}function h(t,e,n){return t.format?(t.indentBy+=t.format.indentBy,t.indentWith=t.format.indentWith.repeat(t.indentBy),(n&&f(t,i.BeforeBlockBegins)?a.SPACE:r)+a.OPEN_CURLY_BRACKET+(d(t,e)?t.format.breakWith:r)+t.indentWith):a.OPEN_CURLY_BRACKET}function g(t,e,n,i){return t.format?(t.indentBy-=t.format.indentBy,t.indentWith=t.format.indentWith.repeat(t.indentBy),(d(t,o.AfterProperty)||n&&d(t,o.BeforeBlockEnds)?t.format.breakWith:r)+t.indentWith+a.CLOSE_CURLY_BRACKET+(i?r:(d(t,e)?t.format.breakWith:r)+t.indentWith)):a.CLOSE_CURLY_BRACKET}function m(t,e,n){return t.format?a.SEMICOLON+(n||!d(t,e)?r:t.format.breakWith+t.indentWith):a.SEMICOLON}t.exports={all:function t(e,n){for(var i,a,u=e.store,p=0,f=n.length;p<f;p++)switch(a=p==f-1,(i=n[p])[0]){case s.AT_RULE:u(e,i),u(e,m(e,o.AfterAtRule,a));break;case s.AT_RULE_BLOCK:l(e,i[1]),u(e,h(e,o.AfterRuleBegins,!0)),c(e,i[2]),u(e,g(e,o.AfterRuleEnds,!1,a));break;case s.NESTED_BLOCK:l(e,i[1]),u(e,h(e,o.AfterBlockBegins,!0)),t(e,i[2]),u(e,g(e,o.AfterBlockEnds,!0,a));break;case s.COMMENT:u(e,i),u(e,d(e,o.AfterComment)?e.format.breakWith:r);break;case s.RAW:u(e,i);break;case s.RULE:l(e,i[1]),u(e,h(e,o.AfterRuleBegins,!0)),c(e,i[2]),u(e,g(e,o.AfterRuleEnds,!1,a))}},body:c,property:u,rules:l,value:p}},function(t,e,n){var r=n(33),o=n(184);t.exports=function(t,e,n){for(var i,a,s,l=t.length-1;0<=l;l--){var c=t[l],u=r[c.name];if(u&&u.shorthand){c.shorthand=!0,c.dirty=!0;try{if(c.components=u.breakUp(c,r,e),u.shorthandComponents)for(a=0,s=c.components.length;a<s;a++)(i=c.components[a]).components=r[i.name].breakUp(i,r,e)}catch(t){if(!(t instanceof o))throw t;c.components=[],n.push(t.message)}0<c.components.length?c.multiplex=c.components[0].multiplex:c.unused=!0}}}},function(t,e,n){var r=n(33);t.exports=function(t){var e=r[t.name];return e&&e.shorthand?e.restore(t,r):t.value}},function(t,e,n){var r=n(10),o=n(13).rules,i=n(13).value;t.exports=function t(e){var n,a,s,l,c,u=[];if(e[0]==r.RULE)for(n=!/[\.\+>~]/.test(o(e[1])),l=0,c=e[2].length;l<c;l++)(s=e[2][l])[0]==r.PROPERTY&&0!==(a=s[1][1]).length&&0!==a.indexOf("--")&&(s=i(s,l),u.push([a,s,function(t){return"list-style"==t?t:0<t.indexOf("-radius")?"border-radius":"border-collapse"==t||"border-spacing"==t||"border-image"==t?t:0===t.indexOf("border-")&&/^border\-\w+\-\w+$/.test(t)?t.match(/border\-\w+/)[0]:0===t.indexOf("border-")&&/^border\-\w+$/.test(t)?"border":0===t.indexOf("text-")||"-chrome-"==t?t:t.replace(/^\-\w+\-/,"").match(/([a-zA-Z]+)/)[0].toLowerCase()}(a),e[2][l],a+":"+s,e[1],n]));else if(e[0]==r.NESTED_BLOCK)for(l=0,c=e[2].length;l<c;l++)u=u.concat(t(e[2][l]));return u}},function(t,e,n){var r=n(22),o=r.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a),i(o,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=o(t),void 0!==e?"string"==typeof n?t.fill(e,n):t.fill(e):t.fill(0),t},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){var r=n(21),o=n(26),i=n(64),a=n(88),s="http:";function l(t){return i(t)||o.parse(s+"//"+t).host==t}t.exports=function t(e,n,i){var c,u,p,d,f,h,g=!n;if(0===i.length)return!1;for(n&&!a(e)&&(e=s+e),c=n?o.parse(e).host:e,u=n?e:r.resolve(e),h=0;h<i.length;h++)d="!"==(p=i[h])[0],f=p.substring(1),g=d&&n&&l(f)?g&&!t(e,!0,[f]):!d||n||l(f)?d?g&&!0:"all"==p||(n&&"local"==p?g||!1:!(!n||"remote"!=p)||!(!n&&"remote"==p)&&(!n&&"local"==p||p===c||p===e||!(!n||0!==u.indexOf(p))||!n&&0===u.indexOf(r.resolve(p))||n!=l(f)&&g&&!0)):g&&!t(e,!1,[f]);return g}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports={clone:function t(e){if(e instanceof Object){var n,r=e instanceof Array?[]:{};for(n in e)e.hasOwnProperty(n)&&(r[n]=t(e[n]));return r}return e},isPlainObject:function(t){return!!t&&"object"===r(t)&&t.constructor===Object},shallowMerge:function(t,e){if(t instanceof Object&&e instanceof Object)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}}},function(t,e,n){"use strict";t.exports={join:function(t){return 0<t.length?t.join("/")+"/":""},resolveDotSegments:function(t){var e=[];return t.forEach((function(t){".."!==t?"."!==t&&e.push(t):0<e.length&&e.splice(e.length-1,1)})),e}}},function(t,e,n){"use strict";(function(r){function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],a=void 0===(k=n.addEmptyAttributes)||k,l=void 0===(A=n.components)?{}:A,C=void 0===(k=n.convertBooleans)||k,T=void 0===(A=n.keepComments)||A,A=void 0===(k=n.filePath)?".":k,O=void 0===(k=n.actualPath)?".":k,S=void 0!==(k=n.ignoreIncludes)&&k,k=void 0===(k=n.preprocessors)?[]:k,P=(0,c.default)((0,p.default)((function(t){return t.endingTag})),(0,u.default)((function(t){return t.getTagName()})))(s({},l)),j=r.cwd();if(w&&A)try{j=v.default.lstatSync(A).isDirectory()?A:m.default.dirname(A)}catch(a){throw new Error("Specified filePath does not exist")}var N=null,L=null;function D(t,e){return(0,d.default)(e.children,{tagName:t})}i.length;var I=0,R=[],M={startIndex:0,endIndex:0},B=E(e),F=new g.Parser({onopentag:function(e,r){var a=-1!==P.indexOf(e);if(0<I)a&&(I+=1);else{if(a&&1===(I+=1)&&(M.startIndex=F.startIndex,M.endIndex=F.endIndex),a=(0,f.default)(B,(function(t){return t<=F.startIndex}))+1,"mj-include"===e)return S||!w?void 0:"css"===r.type||"html"===r.type?void function(t,e,n){var r,o=m.default.resolve(j,t);try{r=v.default.readFileSync(o,"utf8")}catch(e){return o={line:n,file:t,absoluteFilePath:m.default.resolve(j,O),parent:L,tagName:"mj-raw",content:"\x3c!-- mj-include fails to read file : ".concat(t," at ").concat(o," --\x3e"),children:[],errors:[{type:"include",params:{file:t,partialPath:o}}]},void L.children.push(o)}"html"!==e.type?(e="inline"===e["css-inline"]?{inline:"inline"}:{},e={line:n,file:t,absoluteFilePath:m.default.resolve(j,O),tagName:"mj-style",content:r,children:[],attributes:e},R.push(e)):(r={line:n,file:t,absoluteFilePath:m.default.resolve(j,O),parent:L,tagName:"mj-raw",content:r},L.children.push(r))}(decodeURIComponent(r.path),r,a):void function(e,r){var i=m.default.resolve(j,e),a=L;if((0,d.default)(L.includedIn,{file:i}))throw new Error("Circular inclusion detected on file : ".concat(i));try{c=v.default.readFileSync(i,"utf8")}catch(a){return e={line:r,file:e,absoluteFilePath:m.default.resolve(j,O),parent:L,tagName:"mj-raw",content:"\x3c!-- mj-include fails to read file : ".concat(e," at ").concat(i," --\x3e"),children:[],errors:[{type:"include",params:{file:e,partialPath:i}}]},void L.children.push(e)}var l,c=-1===c.indexOf("<mjml>")?"<mjml><mj-body>".concat(c,"</mj-body></mjml>"):c;c=t(c,s(s({},n),{},{filePath:i,actualPath:i}),[].concat(o(L.includedIn),[{file:L.absoluteFilePath,line:r}])),i=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:L;return t.map((function(t){return s(s({},t),{},{parent:e})}))},"mjml"===c.tagName&&(r=D("mj-body",c),c=D("mj-head",c),r&&(l=i(r.children),L.children=[].concat(o(L.children),o(l))),c&&((l=D("mj-head",N))||(N.children.push({file:O,absoluteFilePath:m.default.resolve(j,O),parent:N,tagName:"mj-head",children:[],includedIn:[]}),l=D("mj-head",N)),c=i(c.children,l),l.children=[].concat(o(l.children),o(c))),L=a)}(decodeURIComponent(r.path),a);C&&(r=(0,b.default)(r)),r={file:O,absoluteFilePath:w?m.default.resolve(j,O):O,line:a,includedIn:i,parent:L,tagName:e,attributes:r,children:[]},L?L.children.push(r):N=r,L=r}},onclosetag:function(t){var n;-1!==P.indexOf(t)&&(--I||x(M,F)||(n=(n=e.substring(M.endIndex+1,F.endIndex).trim()).substring(0,n.lastIndexOf("</".concat(t))))&&(L.content=n.trim())),0<I||"mj-include"!==t&&(L=L&&L.parent||null)},ontext:function(t){0<I||t&&t.trim()&&L&&(L.content="".concat(L&&L.content||"").concat(t.trim()).trim())},oncomment:function(t){0<I||L&&T&&L.children.push({line:(0,f.default)(B,(function(t){return t<=F.startIndex}))+1,tagName:"mj-raw",content:"\x3c!-- ".concat(t.trim()," --\x3e"),includedIn:i})}},{recognizeCDATA:!0,decodeEntities:!1,recognizeSelfClosing:!0,lowerCaseAttributeNames:!1});if(e=(0,c.default)(k)(e),F.write(e),F.end(),!(0,h.default)(N))throw new Error("Parsing failed. Check your mjml.");return(0,y.default)(N),a&&(0,_.default)(N),R.length&&((a=(0,d.default)(N.children,{tagName:"mj-head"}))?a.children?a.children=[].concat(o(a.children),R):a.children=R:N.children.push({file:A,line:0,tagName:"mj-head",children:R})),N};var c=l(n(133)),u=l(n(483)),p=l(n(140)),d=l(n(47)),f=l(n(484)),h=l(n(18)),g=n(143),m=l(n(21)),v=l(n(63)),y=l(n(485)),b=l(n(486)),_=l(n(488)),w=n(489),E=function(t){for(var e=/\n/gi,n=[0];e.exec(t);)n.push(e.lastIndex);return n},x=function(t,e){return t.startIndex===e.startIndex&&t.endIndex===e.endIndex};t.exports=e.default}).call(this,n(14))},function(t,e,n){var r=n(65)("flow",n(481));r.placeholder=n(51),t.exports=r},function(t,e,n){var r=n(210),o=n(457),i=n(458),a=n(212),s=n(472),l=n(137),c=n(473),u=n(218),p=n(219),d=n(59),f=Math.max;t.exports=function(t,e,n,h,g,m,v,y){var b=2&e;if(!b&&"function"!=typeof t)throw new TypeError("Expected a function");var _,w,E=h?h.length:0;E||(e&=-97,h=g=void 0),v=void 0===v?v:f(d(v),0),y=void 0===y?y:d(y),E-=g?g.length:0,64&e&&(_=h,w=g,h=g=void 0);var x=b?void 0:l(t);return v=[t,e,n,h,g,_,w,m,v,y],x&&c(v,x),t=v[0],e=v[1],n=v[2],h=v[3],g=v[4],!(y=v[9]=void 0===v[9]?b?0:t.length:f(v[9]-E,0))&&24&e&&(e&=-25),n=e&&1!=e?8==e||16==e?i(t,e,y):32!=e&&33!=e||g.length?a.apply(void 0,v):s(t,e,n,h):o(t,e,n),p((x?r:u)(n,v),t,e)}},function(t,e,n){var r=n(79);function o(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}n=n(136),o.prototype=r(n.prototype),t.exports=o.prototype.constructor=o},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(211);n=n(460),t.exports=r?function(t){return r.get(t)}:n},function(t,e,n){var r=n(79);function o(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}n=n(136),o.prototype=r(n.prototype),t.exports=o.prototype.constructor=o},function(t,e){var n="__lodash_placeholder__";t.exports=function(t,e){for(var r=-1,o=t.length,i=0,a=[];++r<o;){var s=t[r];s!==e&&s!==n||(t[r]=n,a[i++]=r)}return a}},function(t,e,n){var r=n(65)("filter",n(114));r.placeholder=n(51),t.exports=r},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(36).default,c=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=e.children,a=e.tagName,l=[],c=n.skipElements||d;if(null==n.dependencies&&console.warn('"dependencies" option should be provided to mjml validator'),!c.includes(a))for(var f=0,h=Object.values(u.default);f<h.length;f++){var g=(0,h[f])(e,s({dependencies:p.default,skipElements:c},n));Array.isArray(g)?l.push.apply(l,r(g)):g&&l.push(g)}if(i&&0<i.length){var m,v=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=o(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(i);try{for(v.s();!(m=v.n()).done;){var y=m.value;l.push.apply(l,r(t(y,n)))}}catch(e){v.e(e)}finally{v.f()}}return l},Object.defineProperty(e,"rulesCollection",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"registerRule",{enumerable:!0,get:function(){return u.registerRule}}),Object.defineProperty(e,"dependencies",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"registerDependencies",{enumerable:!0,get:function(){return p.registerDependencies}}),Object.defineProperty(e,"assignDependencies",{enumerable:!0,get:function(){return p.assignDependencies}}),e.formatValidationError=void 0,c=c(n(52));var u=l(n(490)),p=l(n(496)),d=["mjml"];c=c.default,e.formatValidationError=c},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(74),i=n(30),a=n(56),s=n(18);t.exports=function(t,e,n){if(!s(n))return!1;var l=r(e);return!!("number"==l?i(n)&&a(e,n.length):"string"==l&&e in n)&&o(n[e],t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"Parser",(function(){return x})),n.d(e,"DomHandler",(function(){return C.c})),n.d(e,"parseDocument",(function(){return R})),n.d(e,"parseDOM",(function(){return M})),n.d(e,"createDomStream",(function(){return B})),n.d(e,"Tokenizer",(function(){return d})),n.d(e,"ElementType",(function(){return r})),n.d(e,"getFeed",(function(){return I.getFeed})),n.d(e,"parseFeed",(function(){return F})),n.d(e,"DomUtils",(function(){return I})),n.d(e,"DefaultHandler",(function(){return C.c}));var r={};n.r(r),n.d(r,"ElementType",(function(){return f})),n.d(r,"isTag",(function(){return T})),n.d(r,"Root",(function(){return A})),n.d(r,"Text",(function(){return O})),n.d(r,"Directive",(function(){return S})),n.d(r,"Comment",(function(){return k})),n.d(r,"Script",(function(){return P})),n.d(r,"Style",(function(){return j})),n.d(r,"Tag",(function(){return N})),n.d(r,"CDATA",(function(){return L})),n.d(r,"Doctype",(function(){return D}));var o,i,a,s=n(11);function l(t){return t===o.Space||t===o.NewLine||t===o.Tab||t===o.FormFeed||t===o.CarriageReturn}function c(t){return t===o.Slash||t===o.Gt||l(t)}function u(t){return t>=o.Zero&&t<=o.Nine}(g=o=o||{})[g.Tab=9]="Tab",g[g.NewLine=10]="NewLine",g[g.FormFeed=12]="FormFeed",g[g.CarriageReturn=13]="CarriageReturn",g[g.Space=32]="Space",g[g.ExclamationMark=33]="ExclamationMark",g[g.Num=35]="Num",g[g.Amp=38]="Amp",g[g.SingleQuote=39]="SingleQuote",g[g.DoubleQuote=34]="DoubleQuote",g[g.Dash=45]="Dash",g[g.Slash=47]="Slash",g[g.Zero=48]="Zero",g[g.Nine=57]="Nine",g[g.Semi=59]="Semi",g[g.Lt=60]="Lt",g[g.Eq=61]="Eq",g[g.Gt=62]="Gt",g[g.Questionmark=63]="Questionmark",g[g.UpperA=65]="UpperA",g[g.LowerA=97]="LowerA",g[g.UpperF=70]="UpperF",g[g.LowerF=102]="LowerF",g[g.UpperZ=90]="UpperZ",g[g.LowerZ=122]="LowerZ",g[g.LowerX=120]="LowerX",g[g.OpeningSquareBracket=91]="OpeningSquareBracket",(m=i=i||{})[m.Text=1]="Text",m[m.BeforeTagName=2]="BeforeTagName",m[m.InTagName=3]="InTagName",m[m.InSelfClosingTag=4]="InSelfClosingTag",m[m.BeforeClosingTagName=5]="BeforeClosingTagName",m[m.InClosingTagName=6]="InClosingTagName",m[m.AfterClosingTagName=7]="AfterClosingTagName",m[m.BeforeAttributeName=8]="BeforeAttributeName",m[m.InAttributeName=9]="InAttributeName",m[m.AfterAttributeName=10]="AfterAttributeName",m[m.BeforeAttributeValue=11]="BeforeAttributeValue",m[m.InAttributeValueDq=12]="InAttributeValueDq",m[m.InAttributeValueSq=13]="InAttributeValueSq",m[m.InAttributeValueNq=14]="InAttributeValueNq",m[m.BeforeDeclaration=15]="BeforeDeclaration",m[m.InDeclaration=16]="InDeclaration",m[m.InProcessingInstruction=17]="InProcessingInstruction",m[m.BeforeComment=18]="BeforeComment",m[m.CDATASequence=19]="CDATASequence",m[m.InSpecialComment=20]="InSpecialComment",m[m.InCommentLike=21]="InCommentLike",m[m.BeforeSpecialS=22]="BeforeSpecialS",m[m.SpecialStartSequence=23]="SpecialStartSequence",m[m.InSpecialTag=24]="InSpecialTag",m[m.BeforeEntity=25]="BeforeEntity",m[m.BeforeNumericEntity=26]="BeforeNumericEntity",m[m.InNamedEntity=27]="InNamedEntity",m[m.InNumericEntity=28]="InNumericEntity",m[m.InHexEntity=29]="InHexEntity",(v=a={})[v.NoValue=0]="NoValue",v[v.Unquoted=1]="Unquoted",v[v.Single=2]="Single",v[v.Double=3]="Double";var p={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},d=function(){function t(e,n){var r=void 0!==(r=e.xmlMode)&&r;e=void 0===(e=e.decodeEntities)||e,function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.cbs=n,this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=r,this.decodeEntities=e,this.entityTrie=r?s.xmlDecodeTree:s.htmlDecodeTree}return function(t,e){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"reset",value:function(){this.state=i.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=i.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}},{key:"write",value:function(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}},{key:"end",value:function(){this.running&&this.finish()}},{key:"pause",value:function(){this.running=!1}},{key:"resume",value:function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}},{key:"getIndex",value:function(){return this.index}},{key:"getSectionStart",value:function(){return this.sectionStart}},{key:"stateText",value:function(t){t===o.Lt||!this.decodeEntities&&this.fastForwardTo(o.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=i.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===o.Amp&&(this.state=i.BeforeEntity)}},{key:"stateSpecialStartSequence",value:function(t){var e=this.sequenceIndex===this.currentSequence.length;if(e?c(t):(32|t)===this.currentSequence[this.sequenceIndex]){if(!e)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=i.InTagName,this.stateInTagName(t)}},{key:"stateInSpecialTag",value:function(t){if(this.sequenceIndex===this.currentSequence.length){if(t===o.Gt||l(t)){var e,n=this.index-this.currentSequence.length;return this.sectionStart<n&&(e=this.index,this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=e),this.isSpecial=!1,this.sectionStart=2+n,void this.stateInClosingTagName(t)}this.sequenceIndex=0}(32|t)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===p.TitleEnd?this.decodeEntities&&t===o.Amp&&(this.state=i.BeforeEntity):this.fastForwardTo(o.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(t===o.Lt)}},{key:"stateCDATASequence",value:function(t){t===p.Cdata[this.sequenceIndex]?++this.sequenceIndex===p.Cdata.length&&(this.state=i.InCommentLike,this.currentSequence=p.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=i.InDeclaration,this.stateInDeclaration(t))}},{key:"fastForwardTo",value:function(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}},{key:"stateInCommentLike",value:function(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===p.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=i.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}},{key:"isTagStartChar",value:function(t){return this.xmlMode?!c(t):function(t){return t>=o.LowerA&&t<=o.LowerZ||t>=o.UpperA&&t<=o.UpperZ}(t)}},{key:"startSpecial",value:function(t,e){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=e,this.state=i.SpecialStartSequence}},{key:"stateBeforeTagName",value:function(t){var e;t===o.ExclamationMark?(this.state=i.BeforeDeclaration,this.sectionStart=this.index+1):t===o.Questionmark?(this.state=i.InProcessingInstruction,this.sectionStart=this.index+1):this.isTagStartChar(t)?(e=32|t,this.sectionStart=this.index,this.xmlMode||e!==p.TitleEnd[2]?this.state=this.xmlMode||e!==p.ScriptEnd[2]?i.InTagName:i.BeforeSpecialS:this.startSpecial(p.TitleEnd,3)):t===o.Slash?this.state=i.BeforeClosingTagName:(this.state=i.Text,this.stateText(t))}},{key:"stateInTagName",value:function(t){c(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(t))}},{key:"stateBeforeClosingTagName",value:function(t){l(t)||(t===o.Gt?this.state=i.Text:(this.state=this.isTagStartChar(t)?i.InClosingTagName:i.InSpecialComment,this.sectionStart=this.index))}},{key:"stateInClosingTagName",value:function(t){t!==o.Gt&&!l(t)||(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterClosingTagName,this.stateAfterClosingTagName(t))}},{key:"stateAfterClosingTagName",value:function(t){t!==o.Gt&&!this.fastForwardTo(o.Gt)||(this.state=i.Text,this.sectionStart=this.index+1)}},{key:"stateBeforeAttributeName",value:function(t){t===o.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=i.InSpecialTag,this.sequenceIndex=0):this.state=i.Text,this.baseState=this.state,this.sectionStart=this.index+1):t===o.Slash?this.state=i.InSelfClosingTag:l(t)||(this.state=i.InAttributeName,this.sectionStart=this.index)}},{key:"stateInSelfClosingTag",value:function(t){t===o.Gt?(this.cbs.onselfclosingtag(this.index),this.state=i.Text,this.baseState=i.Text,this.sectionStart=this.index+1,this.isSpecial=!1):l(t)||(this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(t))}},{key:"stateInAttributeName",value:function(t){t!==o.Eq&&!c(t)||(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=i.AfterAttributeName,this.stateAfterAttributeName(t))}},{key:"stateAfterAttributeName",value:function(t){t===o.Eq?this.state=i.BeforeAttributeValue:t===o.Slash||t===o.Gt?(this.cbs.onattribend(a.NoValue,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(t)):l(t)||(this.cbs.onattribend(a.NoValue,this.index),this.state=i.InAttributeName,this.sectionStart=this.index)}},{key:"stateBeforeAttributeValue",value:function(t){t===o.DoubleQuote?(this.state=i.InAttributeValueDq,this.sectionStart=this.index+1):t===o.SingleQuote?(this.state=i.InAttributeValueSq,this.sectionStart=this.index+1):l(t)||(this.sectionStart=this.index,this.state=i.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}},{key:"handleInAttributeValue",value:function(t,e){t===e||!this.decodeEntities&&this.fastForwardTo(e)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(e===o.DoubleQuote?a.Double:a.Single,this.index),this.state=i.BeforeAttributeName):this.decodeEntities&&t===o.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)}},{key:"stateInAttributeValueDoubleQuotes",value:function(t){this.handleInAttributeValue(t,o.DoubleQuote)}},{key:"stateInAttributeValueSingleQuotes",value:function(t){this.handleInAttributeValue(t,o.SingleQuote)}},{key:"stateInAttributeValueNoQuotes",value:function(t){l(t)||t===o.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(a.Unquoted,this.index),this.state=i.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===o.Amp&&(this.baseState=this.state,this.state=i.BeforeEntity)}},{key:"stateBeforeDeclaration",value:function(t){t===o.OpeningSquareBracket?(this.state=i.CDATASequence,this.sequenceIndex=0):this.state=t===o.Dash?i.BeforeComment:i.InDeclaration}},{key:"stateInDeclaration",value:function(t){t!==o.Gt&&!this.fastForwardTo(o.Gt)||(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)}},{key:"stateInProcessingInstruction",value:function(t){t!==o.Gt&&!this.fastForwardTo(o.Gt)||(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=i.Text,this.sectionStart=this.index+1)}},{key:"stateBeforeComment",value:function(t){t===o.Dash?(this.state=i.InCommentLike,this.currentSequence=p.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=i.InDeclaration}},{key:"stateInSpecialComment",value:function(t){t!==o.Gt&&!this.fastForwardTo(o.Gt)||(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=i.Text,this.sectionStart=this.index+1)}},{key:"stateBeforeSpecialS",value:function(t){var e=32|t;e===p.ScriptEnd[3]?this.startSpecial(p.ScriptEnd,4):e===p.StyleEnd[3]?this.startSpecial(p.StyleEnd,4):(this.state=i.InTagName,this.stateInTagName(t))}},{key:"stateBeforeEntity",value:function(t){this.entityExcess=1,this.entityResult=0,t===o.Num?this.state=i.BeforeNumericEntity:t===o.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=i.InNamedEntity,this.stateInNamedEntity(t))}},{key:"stateInNamedEntity",value:function(t){if(this.entityExcess+=1,this.trieIndex=Object(s.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,t),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var e=this.trieCurrent&s.BinTrieFlags.VALUE_LENGTH;e&&(e=(e>>14)-1,this.allowLegacyEntity()||t===o.Semi?((t=this.index-this.entityExcess+1)>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.entityResult=this.trieIndex,this.trieIndex+=e,this.entityExcess=0,this.sectionStart=this.index+1,0==e&&this.emitNamedEntity()):this.trieIndex+=e)}},{key:"emitNamedEntity",value:function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&s.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~s.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},{key:"stateBeforeNumericEntity",value:function(t){(32|t)===o.LowerX?(this.entityExcess++,this.state=i.InHexEntity):(this.state=i.InNumericEntity,this.stateInNumericEntity(t))}},{key:"emitNumericEntity",value:function(t){var e=this.index-this.entityExcess-1;2+e+Number(this.state===i.InHexEntity)!==this.index&&(e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.sectionStart=this.index+Number(t),this.emitCodePoint(Object(s.replaceCodePoint)(this.entityResult))),this.state=this.baseState}},{key:"stateInNumericEntity",value:function(t){t===o.Semi?this.emitNumericEntity(!0):u(t)?(this.entityResult=10*this.entityResult+(t-o.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}},{key:"stateInHexEntity",value:function(t){t===o.Semi?this.emitNumericEntity(!0):u(t)?(this.entityResult=16*this.entityResult+(t-o.Zero),this.entityExcess++):function(t){return t>=o.UpperA&&t<=o.UpperF||t>=o.LowerA&&t<=o.LowerF}(t)?(this.entityResult=16*this.entityResult+((32|t)-o.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}},{key:"allowLegacyEntity",value:function(){return!this.xmlMode&&(this.baseState===i.Text||this.baseState===i.InSpecialTag)}},{key:"cleanup",value:function(){this.running&&this.sectionStart!==this.index&&(this.state===i.Text||this.state===i.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==i.InAttributeValueDq&&this.state!==i.InAttributeValueSq&&this.state!==i.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}},{key:"shouldContinue",value:function(){return this.index<this.buffer.length+this.offset&&this.running}},{key:"parse",value:function(){for(;this.shouldContinue();){var t=this.buffer.charCodeAt(this.index-this.offset);this.state===i.Text?this.stateText(t):this.state===i.SpecialStartSequence?this.stateSpecialStartSequence(t):this.state===i.InSpecialTag?this.stateInSpecialTag(t):this.state===i.CDATASequence?this.stateCDATASequence(t):this.state===i.InAttributeValueDq?this.stateInAttributeValueDoubleQuotes(t):this.state===i.InAttributeName?this.stateInAttributeName(t):this.state===i.InCommentLike?this.stateInCommentLike(t):this.state===i.InSpecialComment?this.stateInSpecialComment(t):this.state===i.BeforeAttributeName?this.stateBeforeAttributeName(t):this.state===i.InTagName?this.stateInTagName(t):this.state===i.InClosingTagName?this.stateInClosingTagName(t):this.state===i.BeforeTagName?this.stateBeforeTagName(t):this.state===i.AfterAttributeName?this.stateAfterAttributeName(t):this.state===i.InAttributeValueSq?this.stateInAttributeValueSingleQuotes(t):this.state===i.BeforeAttributeValue?this.stateBeforeAttributeValue(t):this.state===i.BeforeClosingTagName?this.stateBeforeClosingTagName(t):this.state===i.AfterClosingTagName?this.stateAfterClosingTagName(t):this.state===i.BeforeSpecialS?this.stateBeforeSpecialS(t):this.state===i.InAttributeValueNq?this.stateInAttributeValueNoQuotes(t):this.state===i.InSelfClosingTag?this.stateInSelfClosingTag(t):this.state===i.InDeclaration?this.stateInDeclaration(t):this.state===i.BeforeDeclaration?this.stateBeforeDeclaration(t):this.state===i.BeforeComment?this.stateBeforeComment(t):this.state===i.InProcessingInstruction?this.stateInProcessingInstruction(t):this.state===i.InNamedEntity?this.stateInNamedEntity(t):this.state===i.BeforeEntity?this.stateBeforeEntity(t):this.state===i.InHexEntity?this.stateInHexEntity(t):this.state===i.InNumericEntity?this.stateInNumericEntity(t):this.stateBeforeNumericEntity(t),this.index++}this.cleanup()}},{key:"finish",value:function(){this.state===i.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()}},{key:"handleTrailingData",value:function(){var t=this.buffer.length+this.offset;this.state===i.InCommentLike?this.currentSequence===p.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===i.InNumericEntity&&this.allowLegacyEntity()||this.state===i.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===i.InTagName||this.state===i.BeforeAttributeName||this.state===i.BeforeAttributeValue||this.state===i.AfterAttributeName||this.state===i.InAttributeName||this.state===i.InAttributeValueSq||this.state===i.InAttributeValueDq||this.state===i.InAttributeValueNq||this.state===i.InClosingTagName||this.cbs.ontext(this.sectionStart,t)}},{key:"emitPartial",value:function(t,e){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribdata(t,e):this.cbs.ontext(t,e)}},{key:"emitCodePoint",value:function(t){this.baseState!==i.Text&&this.baseState!==i.InSpecialTag?this.cbs.onattribentity(t):this.cbs.ontextentity(t)}}]),t}();var f,h=new Set(["input","option","optgroup","select","button","datalist","textarea"]),g=(e=new Set(["p"]),new Set(["thead","tbody"])),m=new Set(["dd","dt"]),v=new Set(["rt","rp"]),y=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",e],["h1",e],["h2",e],["h3",e],["h4",e],["h5",e],["h6",e],["select",h],["input",h],["output",h],["button",h],["datalist",h],["textarea",h],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",m],["dt",m],["address",e],["article",e],["aside",e],["blockquote",e],["details",e],["div",e],["dl",e],["fieldset",e],["figcaption",e],["figure",e],["footer",e],["form",e],["header",e],["hr",e],["main",e],["nav",e],["ol",e],["pre",e],["section",e],["table",e],["ul",e],["rt",v],["rp",v],["tbody",g],["tfoot",g]]),b=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),_=new Set(["math","svg"]),w=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),E=/\s|\//,x=function(){function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(e=n.lowerCaseTags)&&void 0!==e?e:!n.xmlMode,this.lowerCaseAttributeNames=null!==(e=n.lowerCaseAttributeNames)&&void 0!==e?e:!n.xmlMode,this.tokenizer=new(null!==(e=n.Tokenizer)&&void 0!==e?e:d)(this.options,this),null!==(e=(n=this.cbs).onparserinit)&&void 0!==e&&e.call(n,this)}return function(t,e){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"ontext",value:function(t,e){var n,r=this.getSlice(t,e);this.endIndex=e-1,null!==(t=(n=this.cbs).ontext)&&void 0!==t&&t.call(n,r),this.startIndex=e}},{key:"ontextentity",value:function(t){var e,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null!==(n=(e=this.cbs).ontext)&&void 0!==n&&n.call(e,Object(s.fromCodePoint)(t)),this.startIndex=r}},{key:"isVoidElement",value:function(t){return!this.options.xmlMode&&b.has(t)}},{key:"onopentagname",value:function(t,e){this.endIndex=e,e=this.getSlice(t,e),this.lowerCaseTagNames&&(e=e.toLowerCase()),this.emitOpenTag(e)}},{key:"emitOpenTag",value:function(t){var e,n,r,o;this.openTagStart=this.startIndex,this.tagname=t;var i=!this.options.xmlMode&&y.get(t);if(i)for(;0<this.stack.length&&i.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null!==(n=(e=this.cbs).onclosetag)&&void 0!==n&&n.call(e,a,!0)}this.isVoidElement(t)||(this.stack.push(t),_.has(t)?this.foreignContext.push(!0):w.has(t)&&this.foreignContext.push(!1)),null!==(o=(r=this.cbs).onopentagname)&&void 0!==o&&o.call(r,t),this.cbs.onopentag&&(this.attribs={})}},{key:"endOpenTag",value:function(t){var e,n;this.startIndex=this.openTagStart,this.attribs&&(null!==(n=(e=this.cbs).onopentag)&&void 0!==n&&n.call(e,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}},{key:"onopentagend",value:function(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}},{key:"onclosetag",value:function(t,e){this.endIndex=e;var n=this.getSlice(t,e);if(this.lowerCaseTagNames&&(n=n.toLowerCase()),(_.has(n)||w.has(n))&&this.foreignContext.pop(),this.isVoidElement(n))this.options.xmlMode||"br"!==n||(null!==(t=(r=this.cbs).onopentagname)&&void 0!==t&&t.call(r,"br"),null!==(r=(t=this.cbs).onopentag)&&void 0!==r&&r.call(t,"br",{},!0),null!==(t=(r=this.cbs).onclosetag)&&void 0!==t&&t.call(r,"br",!1));else{var r=this.stack.lastIndexOf(n);if(-1!==r)if(this.cbs.onclosetag)for(var o=this.stack.length-r;o--;)this.cbs.onclosetag(this.stack.pop(),0!==o);else this.stack.length=r;else this.options.xmlMode||"p"!==n||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=e+1}},{key:"onselfclosingtag",value:function(t){this.endIndex=t,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}},{key:"closeCurrentTag",value:function(t){var e,n,r=this.tagname;this.endOpenTag(t),this.stack[this.stack.length-1]===r&&(null!==(n=(e=this.cbs).onclosetag)&&void 0!==n&&n.call(e,r,!t),this.stack.pop())}},{key:"onattribname",value:function(t,e){this.startIndex=t,e=this.getSlice(t,e),this.attribname=this.lowerCaseAttributeNames?e.toLowerCase():e}},{key:"onattribdata",value:function(t,e){this.attribvalue+=this.getSlice(t,e)}},{key:"onattribentity",value:function(t){this.attribvalue+=Object(s.fromCodePoint)(t)}},{key:"onattribend",value:function(t,e){var n;this.endIndex=e,null!==(e=(n=this.cbs).onattribute)&&void 0!==e&&e.call(n,this.attribname,this.attribvalue,t===a.Double?'"':t===a.Single?"'":t===a.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}},{key:"getInstructionName",value:function(t){var e=(e=t.search(E))<0?t:t.substr(0,e);return this.lowerCaseTagNames?e.toLowerCase():e}},{key:"ondeclaration",value:function(t,e){this.endIndex=e;var n=this.getSlice(t,e);this.cbs.onprocessinginstruction&&(t=this.getInstructionName(n),this.cbs.onprocessinginstruction("!".concat(t),"!".concat(n))),this.startIndex=e+1}},{key:"onprocessinginstruction",value:function(t,e){this.endIndex=e;var n=this.getSlice(t,e);this.cbs.onprocessinginstruction&&(t=this.getInstructionName(n),this.cbs.onprocessinginstruction("?".concat(t),"?".concat(n))),this.startIndex=e+1}},{key:"oncomment",value:function(t,e,n){var r,o;this.endIndex=e,null!==(o=(r=this.cbs).oncomment)&&void 0!==o&&o.call(r,this.getSlice(t,e-n)),null!==(n=(t=this.cbs).oncommentend)&&void 0!==n&&n.call(t),this.startIndex=e+1}},{key:"oncdata",value:function(t,e,n){var r,o;this.endIndex=e,n=this.getSlice(t,e-n),this.options.xmlMode||this.options.recognizeCDATA?(null!==(o=(r=this.cbs).oncdatastart)&&void 0!==o&&o.call(r),null!==(r=(o=this.cbs).ontext)&&void 0!==r&&r.call(o,n),null!==(o=(r=this.cbs).oncdataend)&&void 0!==o&&o.call(r)):(null!==(r=(o=this.cbs).oncomment)&&void 0!==r&&r.call(o,"[CDATA[".concat(n,"]]")),null!==(n=(o=this.cbs).oncommentend)&&void 0!==n&&n.call(o)),this.startIndex=e+1}},{key:"onend",value:function(){var t,e;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;0<n;this.cbs.onclosetag(this.stack[--n],!0));}null!==(e=(t=this.cbs).onend)&&void 0!==e&&e.call(t)}},{key:"reset",value:function(){var t,e;null!==(t=(e=this.cbs).onreset)&&void 0!==t&&t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null!==(e=(t=this.cbs).onparserinit)&&void 0!==e&&e.call(t,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}},{key:"parseComplete",value:function(t){this.reset(),this.end(t)}},{key:"getSlice",value:function(t,e){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(t-this.bufferOffset,e-this.bufferOffset);e-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,e-this.bufferOffset);return n}},{key:"shiftBuffer",value:function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}},{key:"write",value:function(t){var e,n;this.ended?null!==(n=(e=this.cbs).onerror)&&void 0!==n&&n.call(e,new Error(".write() after done!")):(this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++))}},{key:"end",value:function(t){var e,n;this.ended?null!==(n=(e=this.cbs).onerror)&&void 0!==n&&n.call(e,Error(".end() after done!")):(t&&this.write(t),this.ended=!0,this.tokenizer.end())}},{key:"pause",value:function(){this.tokenizer.pause()}},{key:"resume",value:function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}},{key:"parseChunk",value:function(t){this.write(t)}},{key:"done",value:function(t){this.end(t)}}]),t}(),C=n(0);function T(t){return t.type===f.Tag||t.type===f.Script||t.type===f.Style}(g=f=f||{}).Root="root",g.Text="text",g.Directive="directive",g.Comment="comment",g.Script="script",g.Style="style",g.Tag="tag",g.CDATA="cdata",g.Doctype="doctype";var A=f.Root,O=f.Text,S=f.Directive,k=f.Comment,P=f.Script,j=f.Style,N=f.Tag,L=f.CDATA,D=f.Doctype,I=n(6);function R(t,e){var n=new C.c(void 0,e);return new x(n,e).end(t),n.root}function M(t,e){return R(t,e).children}function B(t,e,n){return n=new C.c(t,e,n),new x(n,e)}function F(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{xmlMode:!0};return Object(I.getFeed)(M(t,e))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var r=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);function o(t){for(var n="",o=0;null!==(s=e.xmlReplacer.exec(t));){var i=s.index,a=t.charCodeAt(i),s=r.get(a);o=void 0!==s?(n+=t.substring(o,i)+s,i+1):(n+="".concat(t.substring(o,i),"&#x").concat((0,e.getCodePoint)(t,i).toString(16),";"),e.xmlReplacer.lastIndex+=Number(55296==(64512&a)))}return n+t.substr(o)}function i(t,e){return function(n){for(var r,o=0,i="";r=t.exec(n);)o!==r.index&&(i+=n.substring(o,r.index)),i+=e.get(r[0].charCodeAt(0)),o=r.index+1;return i+n.substring(o)}}e.getCodePoint=null!=String.prototype.codePointAt?function(t,e){return t.codePointAt(e)}:function(t,e){return 55296==(64512&t.charCodeAt(e))?1024*(t.charCodeAt(e)-55296)+t.charCodeAt(e+1)-56320+65536:t.charCodeAt(e)},e.encodeXML=o,e.escape=o,e.escapeUTF8=i(/[&<>'"]/g,r),e.escapeAttribute=i(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),e.escapeText=i(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(94),o=n(38),i=n(69),a=n(12),s=n(30),l=n(70),c=n(67),u=n(97),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||i(t)))return!t.length;var e,n=o(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(e in t)if(p.call(t,e))return!1;return!0}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e="object"==(void 0===e?"undefined":n(e))&&e&&e.Object===Object&&e,t.exports=e}).call(this,n(17))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){n=n(28)(n(16),"WeakMap"),t.exports=n},function(t,e,n){t.exports=n(40)},function(t,e,n){var r=n(252),o=n(31);t.exports=function(t,e){return t&&r(t,e,o)}},function(t,e,n){var r=n(254),o=n(69),i=n(12),a=n(70),s=n(56),l=n(97),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n,u=i(t),p=!u&&o(t),d=!u&&!p&&a(t),f=!u&&!p&&!d&&l(t),h=u||p||d||f,g=h?r(t.length,String):[],m=g.length;for(n in t)!e&&!c.call(t,n)||h&&("length"==n||d&&("offset"==n||"parent"==n)||f&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||s(n,m))||g.push(n);return g}},function(t,e){t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},function(t,e,n){var r=n(281),o=n(19);t.exports=function t(e,n,i,a,s){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,s))}},function(t,e,n){var r=n(282),o=n(159),i=n(285);t.exports=function(t,e,n,a,s,l){var c=1&n,u=t.length;if(u!=(d=e.length)&&!(c&&u<d))return!1;var p=l.get(t),d=l.get(e);if(p&&d)return p==e&&d==t;var f=-1,h=!0,g=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++f<u;){var m,v=t[f],y=e[f];if(void 0!==(m=a?c?a(y,v,f,e,t,l):a(v,y,f,t,e,l):m)){if(m)continue;h=!1;break}if(g){if(!o(e,(function(t,e){if(!i(g,e)&&(v===t||s(v,t,n,a,l)))return g.push(e)}))){h=!1;break}}else if(v!==y&&!s(v,y,n,a,l)){h=!1;break}}return l.delete(t),l.delete(e),h}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){n=n(16).Uint8Array,t.exports=n},function(t,e,n){var r=n(162),o=n(103),i=n(31);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var r=n(102),o=n(12);t.exports=function(t,e,n){return e=e(t),o(t)?e:r(e,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(18);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},function(t,e,n){n=n(292);var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g;n=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(r,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e})),t.exports=n},function(t,e,n){var r=n(57),o=n(105),i=n(319),a=n(43),s=n(58),l=n(323),c=n(112),u=n(110);c=c((function(t,e){var n={};if(null==t)return n;var c=!1;e=r(e,(function(e){return e=a(e,t),c=c||1<e.length,e})),s(t,u(t),n),c&&(n=o(n,7,l));for(var p=e.length;p--;)i(n,e[p]);return n})),t.exports=c},function(t,e,n){var r=n(28);n=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),t.exports=n},function(t,e,n){var r=n(58),o=n(31);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(102),o=n(109),i=n(103);n=n(164),n=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:n,t.exports=n},function(t,e,n){var r=n(29),o=n(109),i=n(19),a=Function.prototype,s=(n=Object.prototype,a.toString),l=n.hasOwnProperty,c=s.call(Object);t.exports=function(t){return!(!i(t)||"[object Object]"!=r(t))&&(null===(t=o(t))||"function"==typeof(t=l.call(t,"constructor")&&t.constructor)&&t instanceof t&&s.call(t)==c)}},function(t,e,n){var r=n(328);r=n(174)(r),t.exports=r},function(t,e){var n=Date.now;t.exports=function(t){var e=0,r=0;return function(){var o=n(),i=16-(o-r);if(r=o,0<i){if(800<=++e)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var r=n(334);t.exports=function(t){return t?(t=r(t))!==1/0&&t!==-1/0?t==t?t:0:17976931348623157e292*(t<0?-1:1):0===t?t:0}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var o=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function i(t){var e;return 55296<=t&&t<=57343||1114111<t?65533:null!==(e=o.get(t))&&void 0!==e?e:t}e.fromCodePoint=null!==(r=String.fromCodePoint)&&void 0!==r?r:function(t){var e="";return 65535<t&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+String.fromCharCode(t)},e.replaceCodePoint=i,e.default=function(t){return(0,e.fromCodePoint)(i(t))}},function(t,e,n){n(117)("lex"),t.exports=function(t){var e,n,r,o,i="",a=0,s=-1,l=0,c=1,u="before-selector",p=[u],d={},f=[],h=["media","keyframes",{name:"-webkit-keyframes",type:"keyframes",prefix:"-webkit-"},{name:"-moz-keyframes",type:"keyframes",prefix:"-moz-"},{name:"-ms-keyframes",type:"keyframes",prefix:"-ms-"},{name:"-o-keyframes",type:"keyframes",prefix:"-o-"},"font-face",{name:"import",state:"before-at-value"},{name:"charset",state:"before-at-value"},"supports","viewport",{name:"namespace",state:"before-at-value"},"document",{name:"-moz-document",type:"document",prefix:"-moz-"},"page"];function g(t){return t?p[p.length-1-t]:u}function m(e){return t[s+(e||1)]}function v(){var t=p.pop();return u=p[p.length-1],t}function y(t){return u=t,p.push(u),p.length}function b(t){var e=u;return p[p.length-1]=u=t,e}function _(e){var n;1==(e||1)?("\n"==t[s]?(c++,a=1):a++,s++):(1<(n=t.slice(s,s+e).split("\n")).length&&(c+=n.length-1,a=1),a+=n[n.length-1].length,s+=e)}function w(){d.end={line:c,col:a},f.push(d),i="",d={}}function E(t){d={type:t,start:{line:c,col:a}}}for(;_(),e=t[s];)switch(e){case" ":switch(g()){case"selector":case"value":case"value-paren":case"at-group":case"at-value":case"comment":case"double-string":case"single-string":i+=e}break;case"\n":case"\t":case"\r":case"\f":switch(g()){case"value":case"value-paren":case"at-group":case"comment":case"single-string":case"double-string":case"selector":i+=e;break;case"at-value":"\n"===e&&(d.value=i.trim(),w(),v())}break;case":":switch(g()){case"name":d.name=i.trim(),i="",b("before-value");break;case"before-selector":i+=e,E("selector"),y("selector");break;case"before-value":b("value"),i+=e;break;default:i+=e}break;case";":switch(g()){case"name":case"before-value":case"value":0<i.trim().length&&(d.value=i.trim(),w()),b("before-name");break;case"value-paren":default:i+=e;break;case"at-value":d.value=i.trim(),w(),v();case"before-name":}break;case"{":switch(g()){case"selector":if("\\"===m(-1)){i+=e;break}d.text=i.trim(),w(),b("before-name"),l+=1;break;case"at-group":switch(d.name=i.trim(),d.type){case"font-face":case"viewport":case"page":y("before-name");break;default:y("before-selector")}w(),l+=1;break;case"name":case"at-rule":d.name=i.trim(),w(),y("before-name"),l+=1;break;case"comment":case"double-string":case"single-string":i+=e;break;case"before-value":b("value"),i+=e}break;case"}":switch(g()){case"before-name":case"name":case"before-value":case"value":i&&(d.value=i.trim()),d.name&&d.value&&w(),E("end"),w(),v(),"at-group"===g()&&(E("at-group-end"),w(),v()),0<l&&--l;break;case"at-group":case"before-selector":case"selector":if("\\"===m(-1)){i+=e;break}0<l&&"at-group"===g(1)&&(E("at-group-end"),w()),1<l&&v(),0<l&&--l;break;case"double-string":case"single-string":case"comment":i+=e}break;case'"':case"'":switch(g()){case"double-string":'"'===e&&"\\"!==m(-1)&&v();break;case"single-string":"'"===e&&"\\"!==m(-1)&&v();break;case"before-at-value":b("at-value"),y('"'===e?"double-string":"single-string");break;case"before-value":b("value"),y('"'===e?"double-string":"single-string");break;case"comment":break;default:"\\"!==m(-1)&&y('"'===e?"double-string":"single-string")}i+=e;break;case"/":switch(g()){case"comment":case"double-string":case"single-string":i+=e;break;case"before-value":case"selector":case"name":case"value":"*"===m(1)?(o=function(e){return 0<(e=t.slice(s).indexOf(e))&&e}("*/"))&&_(o+1):("before-value"==g()&&b("value"),i+=e);break;default:"*"===m(1)?(E("comment"),y("comment"),_()):i+=e}break;case"*":switch(g()){case"comment":"/"===m(1)?(d.text=i,_(),w(),v()):i+=e;break;case"before-selector":i+=e,E("selector"),y("selector");break;case"before-value":b("value"),i+=e;break;default:i+=e}break;case"@":switch(g()){case"comment":case"double-string":case"single-string":i+=e;break;case"before-value":b("value"),i+=e;break;default:for(var x=!1,C=0,T=h.length;!x&&C<T;++C)!function(e){var n=s+1;return e===t.slice(n,n+e.length)}(n=(r=h[C]).name||r)||(x=!0,E(n),y(r.state||"at-group"),_(n.length),r.prefix&&(d.prefix=r.prefix),r.type&&(d.type=r.type));x||(i+=e)}break;case"(":switch(g()){case"value":y("value-paren");break;case"before-value":b("value")}i+=e;break;case")":switch(g()){case"value-paren":v();break;case"before-value":b("value")}i+=e;break;default:switch(g()){case"before-selector":E("selector"),y("selector");break;case"before-name":E("property"),b("name");break;case"before-value":b("value");break;case"before-at-value":b("at-value")}i+=e}return f}},function(t,e,n){"use strict";n=[n(118),n(119),n(351)],void 0===(n=function(t,e,n){function r(e,n){return t.js_beautify(e,n)}return r.js=t.js_beautify,r.css=e.css_beautify,r.html=n.html_beautify,r.js_beautify=t.js_beautify,r.css_beautify=e.css_beautify,r.html_beautify=n.html_beautify,r}.apply(e,n))||(t.exports=n)},function(t,e){t.exports=function(t){for(var e=t.length-1;0<=e;e--){var n=t[e];n.unused&&n.all.splice(n.position,1)}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(48),i=/^\d+$/,a=["*","all"],s="off";function l(t){return{ch:t,cm:t,em:t,ex:t,in:t,mm:t,pc:t,pt:t,px:t,q:t,rem:t,vh:t,vmax:t,vmin:t,vw:t,"%":t}}t.exports={DEFAULT:s,roundingPrecisionFrom:function(t){return o(l(s),function(t){return null==t||"boolean"==typeof t?{}:"number"==typeof t&&-1==t?l(s):"number"==typeof t?l(t):"string"==typeof t&&i.test(t)?l(parseInt(t)):"string"!=typeof t||t!=s?"object"!=r(t)?t.split(",").reduce((function(t,e){e=(n=e.split("="))[0];var n=parseInt(n[1]);return!isNaN(n)&&-1!=n||(n=s),-1<a.indexOf(e)?t=o(t,l(n)):t[e]=n,t}),{}):t:l(s)}(t))}}},function(t,e,n){var r=n(15);t.exports=function(t,e,n){for(var o,i,a=e.value.length,s=n.value.length,l=Math.max(a,s),c=Math.min(a,s)-1,u=0;u<l;u++)if(o=e.value[u]&&e.value[u][1]||o,i=n.value[u]&&n.value[u][1]||i,o!=r.COMMA&&i!=r.COMMA&&!t(o,i,u,u<=c))return!1;return!0}},function(t,e){t.exports=function(t){for(var e=t.value.length-1;0<=e;e--)if("inherit"==t.value[e][1])return!0;return!1}},function(t,e){function n(t){this.name="InvalidPropertyError",this.message=t,this.stack=(new Error).stack}n.prototype=Object.create(Error.prototype),t.exports=n.prototype.constructor=n},function(t,e){var n=/(?:^|\W)(\-\w+\-)/g;function r(t){for(var e,r=[];null!==(e=n.exec(t));)-1==r.indexOf(e[0])&&r.push(e[0]);return r}t.exports={unique:r,same:function(t,e){return r(t).sort().join(",")==r(e).sort().join(",")}}},function(t,e){var n=/\-\-.+$/;function r(t){return t.replace(n,"")}t.exports=function(t,e,n){for(var o,i,a,s,l=0,c=t.length;l<c;l++)for(o=t[l][1],a=0,s=e.length;a<s;a++){if(o==(i=e[a][1]))return!0;if(n&&r(o)==r(i))return!0}return!1}},function(t,e){t.exports=function t(e){for(var n=e.slice(0),r=0,o=n.length;r<o;r++)Array.isArray(n[r])&&(n[r]=t(n[r]));return n}},function(t,e,n){(function(t){var r=n(392),o=n(190),i=n(402),a=n(403),s=n(26),l=e;l.request=function(e,n){e="string"==typeof e?s.parse(e):i(e);var o=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||o,l=e.hostname||e.host,c=e.port;return o=e.path||"/",l&&-1!==l.indexOf(":")&&(l="["+l+"]"),e.url=(l?a+"//"+l:"")+(c?":"+c:"")+o,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{},e=new r(e),n&&e.on("response",n),e},l.get=function(t,e){return(e=l.request(t,e)).end(),e},l.ClientRequest=r,l.IncomingMessage=o.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(17))},function(t,e,n){(function(t){e.fetch=s(t.fetch)&&s(t.ReadableStream),e.writableStream=s(t.WritableStream),e.abortController=s(t.AbortController),e.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),e.blobConstructor=!0}catch(t){}var n;function r(){if(void 0!==n)return n;if(t.XMLHttpRequest){n=new t.XMLHttpRequest;try{n.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){n=null}}else n=null;return n}function o(t){var e=r();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}var i=void 0!==t.ArrayBuffer,a=i&&s(t.ArrayBuffer.prototype.slice);function s(t){return"function"==typeof t}e.arraybuffer=e.fetch||i&&o("arraybuffer"),e.msstream=!e.fetch&&a&&o("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&i&&o("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!r()&&s(r().overrideMimeType),e.vbArray=s(t.VBArray),n=null}).call(this,n(17))},function(t,e,n){(function(t,r,o){var i=n(189),a=n(34),s=n(191),l=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=e.IncomingMessage=function(e,n,a,l){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",(function(){t.nextTick((function(){c.emit("close")}))})),"fetch"===a){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach((function(t,e){c.headers[e.toLowerCase()]=t,c.rawHeaders.push(e,t)})),i.writableStream){a=new WritableStream({write:function(t){return new Promise((function(e,n){c._destroyed?n():c.push(new o(t))?e():c._resumeFetch=e}))},close:function(){r.clearTimeout(l),c._destroyed||c.push(null)},abort:function(t){c._destroyed||c.emit("error",t)}});try{return void n.body.pipeTo(a).catch((function(t){r.clearTimeout(l),c._destroyed||c.emit("error",t)}))}catch(e){}}var u=n.body.getReader();!function t(){u.read().then((function(e){if(!c._destroyed){if(e.done)return r.clearTimeout(l),void c.push(null);c.push(new o(e.value)),t()}})).catch((function(t){r.clearTimeout(l),c._destroyed||c.emit("error",t)}))}()}else c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);e&&("set-cookie"===(t=e[1].toLowerCase())?(void 0===c.headers[t]&&(c.headers[t]=[]),c.headers[t].push(e[2])):void 0!==c.headers[t]?c.headers[t]+=", "+e[2]:c.headers[t]=e[2],c.rawHeaders.push(e[1],e[2]))})),c._charset="x-user-defined",i.overrideMimeType||(!(e=c.rawHeaders["mime-type"])||(e=e.match(/;\s*charset=([^;])(;|$)/))&&(c._charset=e[1].toLowerCase()),c._charset||(c._charset="utf-8"))};a(c,s.Readable),c.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},c.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==l.DONE)break;try{n=new r.VBArray(e.responseBody).toArray()}catch(e){}if(null!==n){t.push(new o(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var i=n.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new o(i.length),s=0;s<i.length;s++)a[s]=255&i.charCodeAt(s);t.push(a)}else t.push(i,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==l.DONE||!e.response)break;n=e.response,t.push(new o(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==l.LOADING||!n)break;t.push(new o(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==l.LOADING)break;var c=new r.MSStreamReader;c.onprogress=function(){c.result.byteLength>t._pos&&(t.push(new o(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){t.push(null)},c.readAsArrayBuffer(n)}t._xhr.readyState===l.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,n(14),n(17),n(22).Buffer)},function(t,e,n){(((e=t.exports=n(192)).Stream=e).Readable=e).Writable=n(196),e.Duplex=n(50),e.Transform=n(198),e.PassThrough=n(400)},function(t,e,n){"use strict";(function(e,r){var o=n(86);t.exports=v;var i,a=n(176);function s(t,e){return t.listeners(e).length}v.ReadableState=m,n(193).EventEmitter;var l=n(194),c=n(128).Buffer,u=e.Uint8Array||function(){},p=Object.create(n(61));p.inherits=n(34),e=n(393);var d,f=void 0,h=(f=e&&e.debuglog?e.debuglog("stream"):function(){},n(394));e=n(195),p.inherits(v,l);var g=["error","close","destroy","pause","resume"];function m(t,e){var r=e instanceof(i=i||n(50));this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark;e=this.objectMode?16:16384,this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d=d||n(197).StringDecoder,this.decoder=new d(t.encoding),this.encoding=t.encoding)}function v(t){if(i=i||n(50),!(this instanceof v))return new v(t);this._readableState=new m(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function y(t,e,n,r,o){var i,a=t._readableState;return null===e?(a.reading=!1,function(t,e){var n;e.ended||(!e.decoder||(n=e.decoder.end())&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length),e.ended=!0,w(t))}(t,a)):(i=o?i:function(t,e){return function(t){return c.isBuffer(t)||t instanceof u}(e)||"string"==typeof e||void 0===e||t.objectMode?void 0:new TypeError("Invalid non-string/buffer chunk")}(a,e))?t.emit("error",i):a.objectMode||e&&0<e.length?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):b(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?b(t,a,e,!1):x(t,a)):b(t,a,e,!1))):r||(a.reading=!1),function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function b(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&w(t)),x(t,e)}function _(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?(e.flowing&&e.length?e.buffer.head.data:e).length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return 8388608<=t?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function w(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(E,t):E(t))}function E(t){f("emit readable"),t.emit("readable"),O(t)}function x(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(C,t,e))}function C(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function T(t){f("readable nexttick read 0"),t.read(0)}function A(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),O(t),e.flowing&&!e.reading&&t.read(0)}function O(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function S(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():(n?function(t,e){var n=e.head,r=1,o=n.data;for(t-=o.length;n=n.next;){var i=n.data,a=t>i.length?i.length:t;if(a===i.length?o+=i:o+=i.slice(0,t),0==(t-=a)){a===i.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=i.slice(a);break}++r}return e.length-=r,o}:function(t,e){var n=c.allocUnsafe(t),r=e.head,o=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var i=r.data,a=t>i.length?i.length:t;if(i.copy(n,n.length-t,0,a),0==(t-=a)){a===i.length?(++o,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=i.slice(a);break}++o}return e.length-=o,n})(t,e),r}(t,e.buffer,e.decoder),n);var n}function k(t){var e=t._readableState;if(0<e.length)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(P,e,t))}function P(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function j(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),v.prototype.destroy=e.destroy,v.prototype._undestroy=e.undestroy,v.prototype._destroy=function(t,e){this.push(null),e(t)},v.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=c.from(t,e),e=""),n=!0),y(this,t,e,!1,n)},v.prototype.unshift=function(t){return y(this,t,null,!0,!1)},v.prototype.isPaused=function(){return!1===this._readableState.flowing},v.prototype.setEncoding=function(t){return d=d||n(197).StringDecoder,this._readableState.decoder=new d(t),this._readableState.encoding=t,this},v.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),(0===e.length&&e.ended?k:w)(this),null;if(0===(t=_(t,e))&&e.ended)return 0===e.length&&k(this),null;var r=e.needReadable;return f("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",r=!0),e.ended||e.reading?f("reading or ended",r=!1):r&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=_(n,e))),null===(r=0<t?S(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&k(this)),null!==r&&this.emit("data",r),r},v.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},v.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}function l(){f("onend"),t.end()}i.pipesCount+=1,f("pipe count=%d opts=%j",i.pipesCount,e),e=e&&!1===e.end||t===r.stdout||t===r.stderr?v:l,i.endEmitted?o.nextTick(e):n.once("end",e),t.on("unpipe",(function e(r,o){f("onunpipe"),r===n&&o&&!1===o.hasUnpiped&&(o.hasUnpiped=!0,f("cleanup"),t.removeListener("close",g),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",h),t.removeListener("unpipe",e),n.removeListener("end",l),n.removeListener("end",v),n.removeListener("data",d),u=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}));var c=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,O(t))}}(n);t.on("drain",c);var u=!1,p=!1;function d(e){f("ondata"),(p=!1)!==t.write(e)||p||((1===i.pipesCount&&i.pipes===t||1<i.pipesCount&&-1!==j(i.pipes,t))&&!u&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function h(e){f("onerror",e),v(),t.removeListener("error",h),0===s(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",m),v()}function m(){f("onfinish"),t.removeListener("close",g),v()}function v(){f("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){"function"==typeof t.prependListener?t.prependListener(e,n):t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",h),t.once("close",g),t.once("finish",m),t.emit("pipe",n),i.flowing||(f("pipe resume"),n.resume()),t},v.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t=t||e.pipes,e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var a=j(e.pipes,t);return-1===a||(e.pipes.splice(a,1),--e.pipesCount,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},v.prototype.addListener=v.prototype.on=function(t,e){return e=l.prototype.on.call(this,t,e),"data"===t?!1!==this._readableState.flowing&&this.resume():"readable"===t&&((t=this._readableState).endEmitted||t.readableListening||(t.readableListening=t.needReadable=!0,t.emittedReadable=!1,t.reading?t.length&&w(this):o.nextTick(T,this))),e},v.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(A,t,e))}(this,t)),this},v.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},v.prototype.wrap=function(t){var e,n=this,r=this._readableState,o=!1;for(e in t.on("end",(function(){var t;f("wrapped end"),!r.decoder||r.ended||(t=r.decoder.end())&&t.length&&n.push(t),n.push(null)})),t.on("data",(function(e){f("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e||(r.objectMode||e&&e.length)&&(n.push(e)||(o=!0,t.pause()))})),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));for(var i=0;i<g.length;i++)t.on(g[i],this.emit.bind(this,g[i]));return this._read=function(e){f("wrapped _read",e),o&&(o=!1,t.resume())},this},Object.defineProperty(v.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),v._fromList=S}).call(this,n(17),n(14))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)},a=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)},s=Number.isNaN||function(t){return t!=t};function l(){l.init.call(this)}t.exports=l,t.exports.once=function(t,e){return new Promise((function(n,r){function o(n){t.removeListener(e,i),r(n)}function i(){"function"==typeof t.removeListener&&t.removeListener("error",o),n([].slice.call(arguments))}v(t,e,i,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&v(t,"error",e,{once:!0})}(t,o)}))},(l.EventEmitter=l).prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t))}function p(t){return void 0===t._maxListeners?l.defaultMaxListeners:t._maxListeners}function d(t,e,n,r){var o,i;return u(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener||n),o=t._events),i=o[e]),void 0===i?(i=o[e]=n,++t._eventsCount):("function"==typeof i?i=o[e]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),0<(n=p(t))&&i.length>n&&!i.warned&&(i.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=i.length,function(t){console&&console.warn&&console.warn(t)}(n))),t}function f(t,e,n){return(e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t={fired:!1,wrapFn:void 0,target:t,type:e,listener:n})).listener=n,t.wrapFn=e}function h(t,e,n){return void 0===(t=t._events)||void 0===(e=t[e])?[]:"function"==typeof e?n?[e.listener||e]:[e]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(e):m(e,e.length)}function g(t){var e=this._events;if(void 0!==e){if("function"==typeof(t=e[t]))return 1;if(void 0!==t)return t.length}return 0}function m(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}function v(t,e,n,o){if("function"==typeof t.on)o.once?t.once(e,n):t.on(e,n);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+r(t));t.addEventListener(e,(function r(i){o.once&&t.removeEventListener(e,r),n(i)}))}}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");c=t}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||s(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},l.prototype.getMaxListeners=function(){return p(this)},l.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r,o="error"===t,a=this._events;if(void 0!==a)o=o&&void 0===a.error;else if(!o)return!1;if(o){if((r=0<e.length?e[0]:r)instanceof Error)throw r;throw(o=new Error("Unhandled error."+(r?" ("+r.message+")":""))).context=r,o}if(void 0===(t=a[t]))return!1;if("function"==typeof t)i(t,this,e);else{var s=t.length,l=m(t,s);for(n=0;n<s;++n)i(l[n],this,e)}return!0},l.prototype.addListener=function(t,e){return d(this,t,e,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(t,e){return d(this,t,e,!0)},l.prototype.once=function(t,e){return u(e),this.on(t,f(this,t,e)),this},l.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,f(this,t,e)),this},l.prototype.removeListener=function(t,e){var n,r,o,i,a;if(u(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(o=-1,i=n.length-1;0<=i;i--)if(n[i]===e||n[i].listener===e){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,n=this._events;if(void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){for(var r,o=Object.keys(n),i=0;i<o.length;++i)"removeListener"!==(r=o[i])&&this.removeAllListeners(r);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;0<=i;i--)this.removeListener(t,e[i]);return this},l.prototype.listeners=function(t){return h(this,t,!0)},l.prototype.rawListeners=function(t){return h(this,t,!1)},l.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return 0<this._eventsCount?a(this._events):[]}},function(t,e,n){t.exports=n(193).EventEmitter},function(t,e,n){"use strict";var r=n(86);function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,t):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}))),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){"use strict";(function(e,r,o){var i=n(86);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var n=t.entry;for(t.entry=null;n;){var r=n.callback;e.pendingcb--,r(void 0),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=m;var s,l=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?r:i.nextTick;m.WritableState=g,(r=Object.create(n(61))).inherits=n(34);var c,u={deprecate:n(398)},p=n(194),d=n(128).Buffer,f=o.Uint8Array||function(){};function h(){}function g(t,e){s=s||n(50);var r=e instanceof s;this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,c=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,u=(this.destroyed=!1)===t.decodeStrings,this.decodeStrings=!u,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,o=n.writecb;(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0})(n),e?function(t,e,n,r,o){--e.pendingcb,n?(i.nextTick(o,r),i.nextTick(E,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(o(r),t._writableState.errorEmitted=!0,t.emit("error",r),E(t,e))}(t,n,r,e,o):((e=_(n))||n.corked||n.bufferProcessing||!n.bufferedRequest||b(t,n),r?l(y,t,n,e,o):y(t,n,e,o))}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function m(t){if(s=s||n(50),!(c.call(m,this)||this instanceof s))return new m(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),p.call(this)}function v(t,e,n,r,o,i,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function y(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),E(t,e)}function b(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r);(r=e.corkedRequestsFree).entry=n;for(var i=0,s=!0;n;)(o[i]=n).isBuf||(s=!1),n=n.next,i+=1;o.allBuffers=s,v(t,e,!0,e.length,o,"",r.finish),e.pendingcb++,e.lastBufferedRequest=null,r.next?(e.corkedRequestsFree=r.next,r.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,u=n.callback;if(v(t,e,!1,e.objectMode?1:l.length,l,c,u),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function _(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),E(t,e)}))}function E(t,e){var n=_(e);return n&&(function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,i.nextTick(w,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}o=n(195),r.inherits(m,p),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(m,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===m&&t&&t._writableState instanceof g}})):c=function(t){return t instanceof this},m.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},m.prototype.write=function(t,e,n){var r=this._writableState,o=!1,a=!r.objectMode&&function(t){return d.isBuffer(t)||t instanceof f}(t);return a&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),e=a?"buffer":e||r.defaultEncoding,"function"!=typeof n&&(n=h),r.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),i.nextTick(e,n)}(this,n):(a||function(t,e,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),i.nextTick(r,a),o=!1),o}(this,r,t,n))&&(r.pendingcb++,o=function(t,e,n,r,o,i){n||r!==(s=function(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e?e:d.from(e,n)}(e,r,o))&&(n=!0,o="buffer",r=s);var a=e.objectMode?1:r.length;e.length+=a;var s,l=e.length<e.highWaterMark;return l||(e.needDrain=!0),e.writing||e.corked?(s=e.lastBufferedRequest,e.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},s?s.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1):v(t,e,!1,a,r,o,i),l}(this,r,a,t,e,n)),o},m.prototype.cork=function(){this._writableState.corked++},m.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||b(this,t))},m.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,e=t=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,E(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),m.prototype.destroy=o.destroy,m.prototype._undestroy=o.undestroy,m.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(14),n(396).setImmediate,n(17))},function(t,e,n){"use strict";var r=n(399).Buffer,o=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=u,this.end=p,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e){return 128!=(192&e[0])?(t.lastNeed=0,"�"):1<t.lastNeed&&1<e.length?128!=(192&e[1])?(t.lastNeed=1,"�"):2<t.lastNeed&&2<e.length&&128!=(192&e[2])?(t.lastNeed=2,"�"):void 0:void 0}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2!=0)return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1);var n=t.toString("utf16le",e);return n&&55296<=(e=n.charCodeAt(n.length-1))&&e<=56319?(this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)):n}function c(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?(t=this.lastTotal-this.lastNeed,e+this.lastChar.toString("utf16le",0,t)):e}function u(t,e){var n=(t.length-e)%3;return 0==n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1==n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function p(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}(e.StringDecoder=i).prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},i.prototype.end=function(t){return t=t&&t.length?this.write(t):"",this.lastNeed?t+"�":t},i.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var o=a(e[r]);return 0<=o?(0<o&&(t.lastNeed=o-1),o):--r<n||-2===o?0:0<=(o=a(e[r]))?(0<o&&(t.lastNeed=o-2),o):!(--r<n||-2===o)&&0<=(o=a(e[r]))?(0<o&&(2===o?o=0:t.lastNeed=o-3),o):0}(this,t,e);return this.lastNeed?(this.lastTotal=n,n=t.length-(n-this.lastNeed),t.copy(this.lastChar,0,n),t.toString("utf8",e,n)):t.toString("utf8",e)},i.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";t.exports=o;var r=n(50);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t),this._transformState={afterTransform:function(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,(n.writecb=null)!=e&&this.push(e),r(t),(t=this._readableState).reading=!1,(t.needReadable||t.length<t.highWaterMark)&&this._read(t.highWaterMark)}.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",i)}function i(){var t=this;"function"==typeof this._flush?this._flush((function(e,n){a(t,e,n)})):a(this,null,null)}function a(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}(t=Object.create(n(61))).inherits=n(34),t.inherits(o,r),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var r=this._transformState;r.writecb=n,r.writechunk=t,r.writeencoding=e,r.transforming||(e=this._readableState,(r.needTransform||e.needReadable||e.length<e.highWaterMark)&&this._read(e.highWaterMark))},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},function(t,e,n){e.SourceMapGenerator=n(200).SourceMapGenerator,e.SourceMapConsumer=n(420).SourceMapConsumer,e.SourceNode=n(423).SourceNode},function(t,e,n){var r=n(201),o=n(62),i=n(202).ArraySet,a=n(419).MappingList;function s(t){this._file=o.getArg(t=t||{},"file",null),this._sourceRoot=o.getArg(t,"sourceRoot",null),this._skipValidation=o.getArg(t,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}s.prototype._version=3,s.fromSourceMap=function(t){var e=t.sourceRoot,n=new s({file:t.file,sourceRoot:e});return t.eachMapping((function(t){var r={generated:{line:t.generatedLine,column:t.generatedColumn}};null!=t.source&&(r.source=t.source,null!=e&&(r.source=o.relative(e,r.source)),r.original={line:t.originalLine,column:t.originalColumn},null!=t.name&&(r.name=t.name)),n.addMapping(r)})),t.sources.forEach((function(r){var i=r;null!==e&&(i=o.relative(e,r)),n._sources.has(i)||n._sources.add(i),null!=(i=t.sourceContentFor(r))&&n.setSourceContent(r,i)})),n},s.prototype.addMapping=function(t){var e=o.getArg(t,"generated"),n=o.getArg(t,"original",null),r=o.getArg(t,"source",null);t=o.getArg(t,"name",null),this._skipValidation||this._validateMapping(e,n,r,t),null!=r&&(r=String(r),this._sources.has(r)||this._sources.add(r)),null!=t&&(t=String(t),this._names.has(t)||this._names.add(t)),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:r,name:t})},s.prototype.setSourceContent=function(t,e){null!=this._sourceRoot&&(t=o.relative(this._sourceRoot,t)),null!=e?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(t)]=e):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(t)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},s.prototype.applySourceMap=function(t,e,n){var r=e;if(null==e){if(null==t.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');r=t.file}var a=this._sourceRoot;null!=a&&(r=o.relative(a,r));var s=new i,l=new i;this._mappings.unsortedForEach((function(e){e.source!==r||null==e.originalLine||null!=(i=t.originalPositionFor({line:e.originalLine,column:e.originalColumn})).source&&(e.source=i.source,null!=n&&(e.source=o.join(n,e.source)),null!=a&&(e.source=o.relative(a,e.source)),e.originalLine=i.line,e.originalColumn=i.column,null!=i.name&&(e.name=i.name));var i=e.source;null==i||s.has(i)||s.add(i),null==(e=e.name)||l.has(e)||l.add(e)}),this),this._sources=s,this._names=l,t.sources.forEach((function(e){var r=t.sourceContentFor(e);null!=r&&(null!=n&&(e=o.join(n,e)),null!=a&&(e=o.relative(a,e)),this.setSourceContent(e,r))}),this)},s.prototype._validateMapping=function(t,e,n,r){if(e&&"number"!=typeof e.line&&"number"!=typeof e.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if((!(t&&"line"in t&&"column"in t&&0<t.line&&0<=t.column)||e||n||r)&&!(t&&"line"in t&&"column"in t&&e&&"line"in e&&"column"in e&&0<t.line&&0<=t.column&&0<e.line&&0<=e.column&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:e,name:r}))},s.prototype._serializeMappings=function(){for(var t,e,n,i=0,a=1,s=0,l=0,c=0,u=0,p="",d=this._mappings.toArray(),f=0,h=d.length;f<h;f++){if(t="",(e=d[f]).generatedLine!==a)for(i=0;e.generatedLine!==a;)t+=";",a++;else if(0<f){if(!o.compareByGeneratedPositionsInflated(e,d[f-1]))continue;t+=","}t+=r.encode(e.generatedColumn-i),i=e.generatedColumn,null!=e.source&&(n=this._sources.indexOf(e.source),t+=r.encode(n-u),u=n,t+=r.encode(e.originalLine-1-l),l=e.originalLine-1,t+=r.encode(e.originalColumn-s),s=e.originalColumn,null!=e.name&&(n=this._names.indexOf(e.name),t+=r.encode(n-c),c=n)),p+=t}return p},s.prototype._generateSourcesContent=function(t,e){return t.map((function(t){return this._sourcesContents?(null!=e&&(t=o.relative(e,t)),t=o.toSetString(t),Object.prototype.hasOwnProperty.call(this._sourcesContents,t)?this._sourcesContents[t]:null):null}),this)},s.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(t.file=this._file),null!=this._sourceRoot&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},s.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=s},function(t,e,n){var r=n(418);e.encode=function(t){for(var e,n="",o=function(t){return t<0?1+(-t<<1):t<<1}(t);e=31&o,0<(o>>>=5)&&(e|=32),n+=r.encode(e),0<o;);return n},e.decode=function(t,e,n){var o,i,a=t.length,s=0,l=0;do{if(a<=e)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(i=r.decode(t.charCodeAt(e++))))throw new Error("Invalid base64 digit: "+t.charAt(e-1))}while(o=!!(32&i),s+=(i&=31)<<l,l+=5,o);n.value=function(t){var e=t>>1;return 1&~t?e:-e}(s),n.rest=e}},function(t,e,n){var r=n(62),o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function a(){this._array=[],this._set=i?new Map:Object.create(null)}a.fromArray=function(t,e){for(var n=new a,r=0,o=t.length;r<o;r++)n.add(t[r],e);return n},a.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(t,e){var n=i?t:r.toSetString(t),a=i?this.has(t):o.call(this._set,n),s=this._array.length;a&&!e||this._array.push(t),a||(i?this._set.set(t,s):this._set[n]=s)},a.prototype.has=function(t){return i?this._set.has(t):(t=r.toSetString(t),o.call(this._set,t))},a.prototype.indexOf=function(t){if(i){var e=this._set.get(t);if(0<=e)return e}else if(e=r.toSetString(t),o.call(this._set,e))return this._set[e];throw new Error('"'+t+'" is not in the set.')},a.prototype.at=function(t){if(0<=t&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)},a.prototype.toArray=function(){return this._array.slice()},e.ArraySet=a},function(t,e,n){var r=n(21);t.exports=function(t,e,n){var o=r.resolve(""),i=(e=r.resolve(o,e),r.dirname(e));return t.sources=t.sources.map((function(t){return r.relative(n,r.resolve(i,t))})),t}},function(t,e,n){var r=n(21),o=n(26);t.exports=function(t,e){var n=r.dirname(e);return t.sources=t.sources.map((function(t){return o.resolve(n,t)})),t}},function(t,e,n){var r=n(123),o=/^\(/,i=/\)$/,a=/^@import/i,s=/['"]\s*/,l=/\s*['"]/,c=/^url\(\s*/i,u=/\s*\)/i;t.exports=function(t){return t=t.replace(a,"").trim().replace(c,"(").replace(u,")").replace(s,"").replace(l,""),[(t=r(t," "))[0].replace(o,"").replace(i,""),t.slice(1).join(" ")]}},function(t,e){t.exports=function(t,e){return("@import "+t+" "+e).trim()}},function(t,e){var n=/^@import/i;t.exports=function(t){return n.test(t)}},function(t,e,n){"use strict";function r(t,e){var n={};return t.forEach((function(t){n[t]=1})),e?function(t){return 1===n[t.toLowerCase()]}:function(t){return 1===n[t]}}e.createMap=r,e.createMapFromString=function(t,e){return r(t.split(/,/),e)}},function(t,e,n){"use strict";t.exports={ABSOLUTE:"absolute",PATH_RELATIVE:"pathRelative",ROOT_RELATIVE:"rootRelative",SHORTEST:"shortest"}},function(t,e,n){var r=n(24),o=n(211);t.exports=o?function(t,e){return o.set(t,e),t}:r},function(t,e,n){n=(n=n(152))&&new n,t.exports=n},function(t,e,n){var r=n(213),o=n(214),i=n(459),a=n(89),s=n(215),l=n(220),c=n(471),u=n(139),p=n(16);t.exports=function t(e,n,d,f,h,g,m,v,y,b){var _=128&n,w=1&n,E=2&n,x=24&n,C=512&n,T=E?void 0:a(e);return function A(){for(var O,S=arguments.length,k=Array(S),P=S;P--;)k[P]=arguments[P];if(x&&(N=l(A),O=i(k,N)),f&&(k=r(k,f,h,x)),g&&(k=o(k,g,m,x)),S-=O,x&&S<b){var j=u(k,N);return s(e,n,t,A.placeholder,d,k,j,v,y,b-S)}var N=w?d:this;return j=E?N[e]:e,S=k.length,v?k=c(k,v):C&&1<S&&k.reverse(),_&&y<S&&(k.length=y),(j=this&&this!==p&&this instanceof A?T||a(j):j).apply(N,k)}}},function(t,e){var n=Math.max;t.exports=function(t,e,r,o){for(var i=-1,a=t.length,s=r.length,l=-1,c=e.length,u=n(a-s,0),p=Array(c+u),d=!o;++l<c;)p[l]=e[l];for(;++i<s;)(d||i<a)&&(p[r[i]]=t[i]);for(;u--;)p[l++]=t[i++];return p}},function(t,e){var n=Math.max;t.exports=function(t,e,r,o){for(var i=-1,a=t.length,s=-1,l=r.length,c=-1,u=e.length,p=n(a-l,0),d=Array(p+u),f=!o;++i<p;)d[i]=t[i];for(var h=i;++c<u;)d[h+c]=e[c];for(;++s<l;)(f||i<a)&&(d[h+r[s]]=t[i++]);return d}},function(t,e,n){var r=n(216),o=n(218),i=n(219);t.exports=function(t,e,n,a,s,l,c,u,p,d){var f=8&e;return e|=f?32:64,4&(e&=~(f?64:32))||(e&=-4),n=n.apply(void 0,d=[t,e,s,f?l:void 0,f?c:void 0,f?void 0:l,f?void 0:c,u,p,d]),r(t)&&o(n,d),n.placeholder=a,i(n,t,e)}},function(t,e,n){var r=n(135),o=n(137),i=n(217),a=n(462);t.exports=function(t){var e=i(t),n=a[e];return"function"==typeof n&&e in r.prototype&&(t===n||!!(n=o(n))&&t===n[0])}},function(t,e,n){var r=n(461),o=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",n=r[e],i=o.call(r,e)?n.length:0;i--;){var a=n[i],s=a.func;if(null==s||s==t)return a.name}return e}},function(t,e,n){var r=n(210);r=n(174)(r),t.exports=r},function(t,e,n){var r=n(464),o=n(465),i=n(173),a=n(466);t.exports=function(t,e,n){return i(t,o(e+="",a(r(e),n)))}},function(t,e){t.exports=function(t){return t.placeholder}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},function(t,e,n){n=n(504)((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),t.exports=n},function(t,e,n){var r=n(45),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);t.exports=function(t){return(t=r(t))&&i.test(t)?t.replace(o,"\\$&"):t}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.assignComponents=s,e.registerComponent=function(t){s(a,[t])},e.default=void 0;var i=o(n(222)),a={};function s(t,e){var n,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return{s:e=function(){},n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;t[a.componentName||(0,i.default)(a.name)]=a}}catch(t){o.e(t)}finally{o.f()}}e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){for(var e="",n=0;n<t;n+=1)e+=Math.floor(16*Math.random()).toString(16);return e},t.exports=e.default},function(t,e,n){var r=n(545),o=n(546),i=n(24);t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{td:{background:this.getAttribute("background-color"),"font-size":this.getAttribute("font-size"),"font-family":this.getAttribute("font-family"),"font-weight":this.getAttribute("font-weight"),"letter-spacing":this.getAttribute("letter-spacing"),"line-height":this.getAttribute("line-height"),color:this.getAttribute("color"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-top":this.getAttribute("padding-top"),padding:this.getAttribute("padding")},table:{width:"100%","border-bottom":this.getAttribute("border")}}}},{key:"renderContent",value:function(){return"\n      <td\n        ".concat(this.htmlAttributes({class:this.getAttribute("css-class"),style:"td"}),"\n      >\n        ").concat(this.getContent(),"\n      </td>\n    ")}},{key:"render",value:function(){return"\n      <div\n        ".concat(this.htmlAttributes({class:"mj-accordion-content"}),"\n      >\n        <table\n          ").concat(this.htmlAttributes({cellspacing:"0",cellpadding:"0",style:"table"}),"\n        >\n          <tbody>\n            <tr>\n              ").concat(this.renderContent(),"\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    ")}}]),n}(n(9).BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-accordion-text"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"allowedAttributes",{"background-color":"color","font-size":"unit(px)","font-family":"string","font-weight":"string","letter-spacing":"unitWithNegative(px,em)","line-height":"unit(px,%,)",color:"color","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}"}),(0,r.default)(n,"defaultAttributes",{"font-size":"13px","line-height":"1",padding:"16px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=n(9),u=r(n(53));c=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{td:{width:"100%","background-color":this.getAttribute("background-color"),color:this.getAttribute("color"),"font-size":this.getAttribute("font-size"),"font-family":this.getAttribute("font-family"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-top":this.getAttribute("padding-top"),padding:this.getAttribute("padding")},table:{width:"100%","border-bottom":this.getAttribute("border")},td2:{padding:"16px",background:this.getAttribute("background-color"),"vertical-align":this.getAttribute("icon-align")},img:{display:"none",width:this.getAttribute("icon-width"),height:this.getAttribute("icon-height")}}}},{key:"renderTitle",value:function(){return"\n      <td\n        ".concat(this.htmlAttributes({class:this.getAttribute("css-class"),style:"td"}),"\n      >\n        ").concat(this.getContent(),"\n      </td>\n    ")}},{key:"renderIcons",value:function(){return(0,u.default)("\n      <td\n        ".concat(this.htmlAttributes({class:"mj-accordion-ico",style:"td2"}),"\n      >\n        <img\n          ").concat(this.htmlAttributes({src:this.getAttribute("icon-wrapped-url"),alt:this.getAttribute("icon-wrapped-alt"),class:"mj-accordion-more",style:"img"}),"\n        />\n        <img\n          ").concat(this.htmlAttributes({src:this.getAttribute("icon-unwrapped-url"),alt:this.getAttribute("icon-unwrapped-alt"),class:"mj-accordion-less",style:"img"}),"\n        />\n      </td>\n    "),!0)}},{key:"render",value:function(){var t=[this.renderTitle(),this.renderIcons()];return t=("right"===this.getAttribute("icon-position")?t:t.reverse()).join("\n"),"\n      <div ".concat(this.htmlAttributes({class:"mj-accordion-title"}),">\n        <table\n          ").concat(this.htmlAttributes({cellspacing:"0",cellpadding:"0",style:"table"}),"\n        >\n          <tbody>\n            <tr>\n              ").concat(t,"\n            </tr>\n          </tbody>\n        </table>\n      </div>\n    ")}}]),n}(c.BodyComponent),e.default=c,(0,l.default)(c,"componentName","mj-accordion-title"),(0,l.default)(c,"endingTag",!0),(0,l.default)(c,"allowedAttributes",{"background-color":"color",color:"color","font-size":"unit(px)","font-family":"string","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}"}),(0,l.default)(c,"defaultAttributes",{"font-size":"13px",padding:"16px"}),t.exports=e.default},function(t,e,n){var r=n(65)("join",n(566));r.placeholder=n(51),t.exports=r},function(t,e,n){var r=n(65)("identity",n(24),n(567));r.placeholder=n(51),t.exports=r},function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||o(t,e)||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.")}()}function o(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function a(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var c=l(n(3)),u=l(n(7)),p=l(n(4)),d=l(n(5)),f=l(n(8)),h=l(n(140)),g=l(n(229)),m=l(n(230)),v=(l=l(n(133)),n(9)),y=(0,l.default)((0,h.default)(m.default),(0,g.default)(" "));g=function(t){(0,p.default)(n,t);var e=(0,d.default)(n);function n(){return(0,c.default)(this,n),e.apply(this,arguments)}return(0,u.default)(n,[{key:"getChildContext",value:function(){var t=this.getBoxWidths().box;return s(s({},this.context),{},{containerWidth:"".concat(t,"px")})}},{key:"getStyles",value:function(){var t=this.context.containerWidth,e=this.isFullWidth(),n=this.getAttribute("background-url")?{background:this.getBackground(),"background-position":this.getBackgroundString(),"background-repeat":this.getAttribute("background-repeat"),"background-size":this.getAttribute("background-size")}:{background:this.getAttribute("background-color"),"background-color":this.getAttribute("background-color")};return{tableFullwidth:s(s({},e?n:{}),{},{width:"100%","border-radius":this.getAttribute("border-radius")}),table:s(s({},e?{}:n),{},{width:"100%","border-radius":this.getAttribute("border-radius")}),td:{border:this.getAttribute("border"),"border-bottom":this.getAttribute("border-bottom"),"border-left":this.getAttribute("border-left"),"border-right":this.getAttribute("border-right"),"border-top":this.getAttribute("border-top"),direction:this.getAttribute("direction"),"font-size":"0px",padding:this.getAttribute("padding"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-top":this.getAttribute("padding-top"),"text-align":this.getAttribute("text-align")},div:s(s({},e?{}:n),{},{margin:"0px auto","border-radius":this.getAttribute("border-radius"),"max-width":t}),innerDiv:{"line-height":"0","font-size":"0"}}}},{key:"getBackground",value:function(){return y([this.getAttribute("background-color")].concat(function(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(this.hasBackground()?["url('".concat(this.getAttribute("background-url"),"')"),this.getBackgroundString(),"/ ".concat(this.getAttribute("background-size")),this.getAttribute("background-repeat")]:[])))}},{key:"getBackgroundString",value:function(){var t=(e=this.getBackgroundPosition()).posX,e=e.posY;return"".concat(t," ").concat(e)}},{key:"getBackgroundPosition",value:function(){var t=(e=this.parseBackgroundPosition()).x,e=e.y;return{posX:this.getAttribute("background-position-x")||t,posY:this.getAttribute("background-position-y")||e}}},{key:"parseBackgroundPosition",value:function(){var t=this.getAttribute("background-position").split(" ");if(1!==t.length)return 2!==t.length?{x:"center",y:"top"}:(e=t[0],t=t[1],["top","bottom"].includes(e)||"center"===e&&["left","right"].includes(t)?{x:t,y:e}:{x:e,y:t});var e=t[0];return["top","bottom"].includes(e)?{x:"center",y:e}:{x:e,y:"center"}}},{key:"hasBackground",value:function(){return null!=this.getAttribute("background-url")}},{key:"isFullWidth",value:function(){return"full-width"===this.getAttribute("full-width")}},{key:"renderBefore",value:function(){var t=this.context.containerWidth,e=this.getAttribute("background-color")?{bgcolor:this.getAttribute("background-color")}:{};return"\n      \x3c!--[if mso | IE]>\n      <table\n        ".concat(this.htmlAttributes(s({align:"center",border:"0",cellpadding:"0",cellspacing:"0",class:(0,v.suffixCssClasses)(this.getAttribute("css-class"),"outlook"),role:"presentation",style:{width:"".concat(t)},width:parseInt(t,10)},e)),'\n      >\n        <tr>\n          <td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;">\n      <![endif]--\x3e\n    ')}},{key:"renderAfter",value:function(){return"\n      \x3c!--[if mso | IE]>\n          </td>\n        </tr>\n      </table>\n      <![endif]--\x3e\n    "}},{key:"renderWrappedChildren",value:function(){var t=this.props.children;return"\n      \x3c!--[if mso | IE]>\n        <tr>\n      <![endif]--\x3e\n      ".concat(this.renderChildren(t,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n          \x3c!--[if mso | IE]>\n            <td\n              ".concat(t.htmlAttributes({align:t.getAttribute("align"),class:(0,v.suffixCssClasses)(t.getAttribute("css-class"),"outlook"),style:"tdOutlook"}),"\n            >\n          <![endif]--\x3e\n            ").concat(t.render(),"\n          \x3c!--[if mso | IE]>\n            </td>\n          <![endif]--\x3e\n    ")}}),"\n\n      \x3c!--[if mso | IE]>\n        </tr>\n      <![endif]--\x3e\n    ")}},{key:"renderWithBackground",value:function(t){function e(t){return/^\d+(\.\d+)?%$/.test(t)}var n=this,o=this.isFullWidth(),i=this.context.containerWidth,a={},l=(d=this.getBackgroundPosition()).posX,c=d.posY;switch(l){case"left":l="0%";break;case"center":l="50%";break;case"right":l="100%";break;default:e(l)||(l="50%")}switch(c){case"top":c="0%";break;case"center":c="50%";break;case"bottom":c="100%";break;default:e(c)||(c="0%")}var u=r(["x","y"].map((function(t){var r="x"===t,o="repeat"===n.getAttribute("background-repeat"),i=r?l:c,a=r?l:c;return e(i)?(t=i.match(/^(\d+(\.\d+)?)%$/)[1],t=parseInt(t,10)/100,a=i=o?t:(100*t-50)/100):i=a=o?r?"0.5":"0":r?"0":"-0.5",[a,i]}),this),2),p=(f=r(u[0],2))[0],d=f[1],f=(u=(f=r(u[1],2))[0],f[1]);"cover"===this.getAttribute("background-size")||"contain"===this.getAttribute("background-size")?a={size:"1,1",aspect:"cover"===this.getAttribute("background-size")?"atleast":"atmost"}:"auto"!==this.getAttribute("background-size")&&(a=1===(h=this.getAttribute("background-size").split(" ")).length?{size:this.getAttribute("background-size"),aspect:"atmost"}:{size:h.join(",")});var h="no-repeat"===this.getAttribute("background-repeat")?"frame":"tile";return"auto"===this.getAttribute("background-size")&&(h="tile",d=p=.5,f=u=0),"\n      \x3c!--[if mso | IE]>\n        <v:rect ".concat(this.htmlAttributes({style:o?{"mso-width-percent":"1000"}:{width:i},"xmlns:v":"urn:schemas-microsoft-com:vml",fill:"true",stroke:"false"}),">\n        <v:fill ").concat(this.htmlAttributes(s({origin:"".concat(p,", ").concat(u),position:"".concat(d,", ").concat(f),src:this.getAttribute("background-url"),color:this.getAttribute("background-color"),type:h},a)),' />\n        <v:textbox style="mso-fit-shape-to-text:true" inset="0,0,0,0">\n      <![endif]--\x3e\n          ').concat(t,"\n        \x3c!--[if mso | IE]>\n        </v:textbox>\n      </v:rect>\n    <![endif]--\x3e\n    ")}},{key:"renderSection",value:function(){var t=this.hasBackground();return"\n      <div ".concat(this.htmlAttributes({class:this.isFullWidth()?null:this.getAttribute("css-class"),style:"div"}),">\n        ").concat(t?"<div ".concat(this.htmlAttributes({style:"innerDiv"}),">"):"","\n        <table\n          ").concat(this.htmlAttributes({align:"center",background:this.isFullWidth()?null:this.getAttribute("background-url"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table"}),"\n        >\n          <tbody>\n            <tr>\n              <td\n                ").concat(this.htmlAttributes({style:"td"}),'\n              >\n                \x3c!--[if mso | IE]>\n                  <table role="presentation" border="0" cellpadding="0" cellspacing="0">\n                <![endif]--\x3e\n                  ').concat(this.renderWrappedChildren(),"\n                \x3c!--[if mso | IE]>\n                  </table>\n                <![endif]--\x3e\n              </td>\n            </tr>\n          </tbody>\n        </table>\n        ").concat(t?"</div>":"","\n      </div>\n    ")}},{key:"renderFullWidth",value:function(){var t=this.hasBackground()?this.renderWithBackground("\n        ".concat(this.renderBefore(),"\n        ").concat(this.renderSection(),"\n        ").concat(this.renderAfter(),"\n      ")):"\n        ".concat(this.renderBefore(),"\n        ").concat(this.renderSection(),"\n        ").concat(this.renderAfter(),"\n      ");return"\n      <table\n        ".concat(this.htmlAttributes({align:"center",class:this.getAttribute("css-class"),background:this.getAttribute("background-url"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"tableFullwidth"}),"\n      >\n        <tbody>\n          <tr>\n            <td>\n              ").concat(t,"\n            </td>\n          </tr>\n        </tbody>\n      </table>\n    ")}},{key:"renderSimple",value:function(){var t=this.renderSection();return"\n      ".concat(this.renderBefore(),"\n      ").concat(this.hasBackground()?this.renderWithBackground(t):t,"\n      ").concat(this.renderAfter(),"\n    ")}},{key:"render",value:function(){return this.isFullWidth()?this.renderFullWidth():this.renderSimple()}}]),n}(v.BodyComponent),e.default=g,(0,f.default)(g,"componentName","mj-section"),(0,f.default)(g,"allowedAttributes",{"background-color":"color","background-url":"string","background-repeat":"enum(repeat,no-repeat)","background-size":"string","background-position":"string","background-position-x":"string","background-position-y":"string",border:"string","border-bottom":"string","border-left":"string","border-radius":"string","border-right":"string","border-top":"string",direction:"enum(ltr,rtl)","full-width":"enum(full-width,false,)",padding:"unit(px,%){1,4}","padding-top":"unit(px,%)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","text-align":"enum(left,center,right)","text-padding":"unit(px,%){1,4}"}),(0,f.default)(g,"defaultAttributes",{"background-repeat":"repeat","background-size":"auto","background-position":"top center",direction:"ltr",padding:"20px 0","text-align":"center","text-padding":"4px 4px 4px 0"}),t.exports=e.default},function(t,e,n){"use strict";n.r(e),n.d(e,"load",(function(){return Ii})),n.d(e,"html",(function(){return _})),n.d(e,"xml",(function(){return w})),n.d(e,"text",(function(){return E})),n.d(e,"contains",(function(){return Ri})),n.d(e,"merge",(function(){return Mi})),n.d(e,"parseHTML",(function(){return Bi})),n.d(e,"root",(function(){return Fi}));var r={};n.r(r),n.d(r,"html",(function(){return _})),n.d(r,"xml",(function(){return w})),n.d(r,"text",(function(){return E})),n.d(r,"parseHTML",(function(){return x})),n.d(r,"root",(function(){return C})),n.d(r,"contains",(function(){return T})),n.d(r,"merge",(function(){return A}));var o={};n.r(o),n.d(o,"attr",(function(){return W})),n.d(o,"prop",(function(){return K})),n.d(o,"data",(function(){return Z})),n.d(o,"val",(function(){return Q})),n.d(o,"removeAttr",(function(){return et})),n.d(o,"hasClass",(function(){return nt})),n.d(o,"addClass",(function(){return rt})),n.d(o,"removeClass",(function(){return ot})),n.d(o,"toggleClass",(function(){return it}));var i={};n.r(i),n.d(i,"find",(function(){return Be})),n.d(i,"parent",(function(){return qe})),n.d(i,"parents",(function(){return ze})),n.d(i,"parentsUntil",(function(){return We})),n.d(i,"closest",(function(){return Ge})),n.d(i,"next",(function(){return Ye})),n.d(i,"nextAll",(function(){return Ke})),n.d(i,"nextUntil",(function(){return $e})),n.d(i,"prev",(function(){return Xe})),n.d(i,"prevAll",(function(){return Ze})),n.d(i,"prevUntil",(function(){return Qe})),n.d(i,"siblings",(function(){return Je})),n.d(i,"children",(function(){return tn})),n.d(i,"contents",(function(){return en})),n.d(i,"each",(function(){return nn})),n.d(i,"map",(function(){return rn})),n.d(i,"filter",(function(){return an})),n.d(i,"filterArray",(function(){return sn})),n.d(i,"is",(function(){return ln})),n.d(i,"not",(function(){return cn})),n.d(i,"has",(function(){return un})),n.d(i,"first",(function(){return pn})),n.d(i,"last",(function(){return dn})),n.d(i,"eq",(function(){return fn})),n.d(i,"get",(function(){return hn})),n.d(i,"toArray",(function(){return gn})),n.d(i,"index",(function(){return mn})),n.d(i,"slice",(function(){return vn})),n.d(i,"end",(function(){return yn})),n.d(i,"add",(function(){return bn})),n.d(i,"addBack",(function(){return _n}));var a={};n.r(a),n.d(a,"_makeDomArray",(function(){return Tn})),n.d(a,"appendTo",(function(){return Sn})),n.d(a,"prependTo",(function(){return kn})),n.d(a,"append",(function(){return Pn})),n.d(a,"prepend",(function(){return jn})),n.d(a,"wrap",(function(){return Ln})),n.d(a,"wrapInner",(function(){return Dn})),n.d(a,"unwrap",(function(){return In})),n.d(a,"wrapAll",(function(){return Rn})),n.d(a,"after",(function(){return Mn})),n.d(a,"insertAfter",(function(){return Bn})),n.d(a,"before",(function(){return Fn})),n.d(a,"insertBefore",(function(){return Un})),n.d(a,"remove",(function(){return Hn})),n.d(a,"replaceWith",(function(){return Vn})),n.d(a,"empty",(function(){return qn})),n.d(a,"html",(function(){return zn})),n.d(a,"toString",(function(){return Wn})),n.d(a,"text",(function(){return Gn})),n.d(a,"clone",(function(){return Yn}));var s={};n.r(s),n.d(s,"css",(function(){return Xn}));var l={};n.r(l),n.d(l,"serialize",(function(){return er})),n.d(l,"serializeArray",(function(){return nr}));var c={};function u(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.r(c),n.d(c,"NS",(function(){return yr})),n.d(c,"ATTRS",(function(){return br})),n.d(c,"DOCUMENT_MODE",(function(){return _r})),n.d(c,"TAG_NAMES",(function(){return wr})),n.d(c,"TAG_ID",(function(){return Er})),n.d(c,"getTagID",(function(){return Ar})),n.d(c,"SPECIAL_ELEMENTS",(function(){return Sr})),n.d(c,"isNumberedHeader",(function(){return kr})),n.d(c,"hasUnescapedText",(function(){return jr}));var d={xml:!1,decodeEntities:!0},f={_useHtmlParser2:!0,xmlMode:!0};function h(t){return null!=t&&t.xml?"boolean"==typeof t.xml?f:p(p({},f),t.xml):null!=t?t:void 0}var g=n(6);function m(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function v(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e,n){return t?t(null!=e?e:t._root.children,null,void 0,n).toString():""}function _(t,e){return b(this,function(t){return!("object"!==y(t)||null==t||"length"in t||"type"in t)}(t)?void(e=t):t,v(v(v({},d),null==this?void 0:this._options),h(null!=e?e:{})))}function w(t){return b(this,t,v(v({},this._options),{},{xmlMode:!0}))}function E(t){for(var e=t||(this?this.root():[]),n="",r=0;r<e.length;r++)n+=Object(g.textContent)(e[r]);return n}function x(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"boolean"==typeof e&&e;return t&&"string"==typeof t?("boolean"==typeof e&&(n=e),t=this.load(t,d,!1),n||t("script").remove(),t.root()[0].children.slice()):null}function C(){return this(this._root)}function T(t,e){if(e===t)return!1;for(var n=e;n&&n!==n.parent;)if((n=n.parent)===t)return!0;return!1}function A(t,e){if(O(t)&&O(e)){for(var n=t.length,r=+e.length,o=0;o<r;o++)t[n++]=e[o];return t.length=n,t}}function O(t){if(Array.isArray(t))return 1;if("object"===y(t)&&Object.prototype.hasOwnProperty.call(t,"length")&&"number"==typeof t.length&&!(t.length<0)){for(var e=0;e<t.length;e++)if(!(e in t))return;return 1}}var S,k=n(0);function P(t){return null!=t.cheerio}function j(t,e){for(var n=t.length,r=0;r<n;r++)e(t[r],r);return t}function N(t){t="length"in t?Array.prototype.map.call(t,(function(t){return Object(k.g)(t,!0)})):[Object(k.g)(t,!0)];var e=new k.b(t);return t.forEach((function(t){t.parent=e})),t}function L(t){var e=t.indexOf("<");if(!(e<0||e>t.length-3)){var n=t.charCodeAt(e+1);return(n>=S.LowerA&&n<=S.LowerZ||n>=S.UpperA&&n<=S.UpperZ||n===S.Exclamation)&&t.includes(">",e+2)}}function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}(fe=S=S||{})[fe.LowerA=97]="LowerA",fe[fe.LowerZ=122]="LowerZ",fe[fe.UpperA=65]="UpperA",fe[fe.UpperZ=90]="UpperZ",fe[fe.Exclamation=33]="Exclamation";var I,R,M=Object.prototype.hasOwnProperty,B=/\s+/,F="data-",U={null:null,true:!0,false:!1},H=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,V=/^{[^]*}$|^\[[^]*]$/;function q(t,e,n){var r;if(t&&Object(k.m)(t))return null!==(r=t.attribs)&&void 0!==r||(t.attribs={}),e?M.call(t.attribs,e)?!n&&H.test(e)?e:t.attribs[e]:"option"===t.name&&"value"===e?E(t.children):"input"!==t.name||"radio"!==t.attribs.type&&"checkbox"!==t.attribs.type||"value"!==e?void 0:"on":t.attribs}function z(t,e,n){null===n?J(t,e):t.attribs[e]="".concat(n)}function W(t,e){if("object"!==D(t)&&void 0===e)return 1<arguments.length?this:q(this[0],t,this.options.xmlMode);if("function"!=typeof e)return j(this,(function(n){Object(k.m)(n)&&("object"===D(t)?Object.keys(t).forEach((function(e){var r=t[e];z(n,e,r)})):z(n,t,e))}));if("string"!=typeof t)throw new Error("Bad combination of arguments.");return j(this,(function(n,r){Object(k.m)(n)&&z(n,t,e.call(n,r,n.attribs[t]))}))}function G(t,e,n){return e in t?t[e]:!n&&H.test(e)?void 0!==q(t,e,!1):q(t,e,n)}function Y(t,e,n,r){e in t?t[e]=n:z(t,e,!r&&H.test(e)?n?"":null:"".concat(n))}function K(t,e){var n=this;if("string"==typeof t&&void 0===e){var r=this[0];if(!r||!Object(k.m)(r))return;switch(t){case"style":var o=this.css(),i=Object.keys(o);return i.forEach((function(t,e){o[e]=t})),o.length=i.length,o;case"tagName":case"nodeName":return r.name.toUpperCase();case"href":case"src":return i=null===(i=r.attribs)||void 0===i?void 0:i[t],"undefined"==typeof URL||("href"!==t||"a"!==r.tagName&&"link"!==r.name)&&("src"!==t||"img"!==r.tagName&&"iframe"!==r.tagName&&"audio"!==r.tagName&&"video"!==r.tagName&&"source"!==r.tagName)||void 0===i||!this.options.baseURI?i:new URL(i,this.options.baseURI).href;case"innerText":return Object(g.innerText)(r);case"textContent":return Object(g.textContent)(r);case"outerHTML":return this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return G(r,t,this.options.xmlMode)}}if("object"===D(t)||void 0!==e){if("function"!=typeof e)return j(this,(function(r){Object(k.m)(r)&&("object"===D(t)?Object.keys(t).forEach((function(e){var o=t[e];Y(r,e,o,n.options.xmlMode)})):Y(r,t,e,n.options.xmlMode))}));if("object"===D(t))throw new Error("Bad combination of arguments.");return j(this,(function(r,o){Object(k.m)(r)&&Y(r,t,e.call(r,o,G(r,t,n.options.xmlMode)),n.options.xmlMode)}))}}function $(t,e,n){var r=t;null!==(t=r.data)&&void 0!==t||(r.data={}),"object"===D(e)?Object.assign(r.data,e):"string"==typeof e&&void 0!==n&&(r.data[e]=n)}function X(t,e){for(var n,r,o=null==e?(n=Object.keys(t.attribs).filter((function(t){return t.startsWith(F)}))).map((function(t){return function(t){return t.replace(/[_.-](\w|$)/g,(function(t,e){return e.toUpperCase()}))}(t.slice(F.length))})):(n=[F+function(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()}(e)],[e]),i=0;i<n.length;++i){var a=n[i],s=o[i];if(M.call(t.attribs,a)&&!M.call(t.data,s)){if(r=t.attribs[a],M.call(U,r))r=U[r];else if(r===String(Number(r)))r=Number(r);else if(V.test(r))try{r=JSON.parse(r)}catch(t){}t.data[s]=r}}return null==e?t.data:r}function Z(t,e){var n=this[0];if(n&&Object(k.m)(n)){var r=n;return null!==(n=r.data)&&void 0!==n||(r.data={}),t?"object"===D(t)||void 0!==e?(j(this,(function(n){Object(k.m)(n)&&("object"===D(t)?$(n,t):$(n,t,e))})),this):M.call(r.data,t)?r.data[t]:X(r,t):X(r)}}function Q(t){var e=0===arguments.length,n=this[0];if(!n||!Object(k.m)(n))return e?void 0:this;switch(n.name){case"textarea":return this.text(t);case"select":var r=this.find("option:selected");if(e)return this.attr("multiple")?r.toArray().map((function(t){return E(t.children)})):r.attr("value");if(null==this.attr("multiple")&&"object"===D(t))return this;this.find("option").removeAttr("selected");for(var o="object"!==D(t)?[t]:t,i=0;i<o.length;i++)this.find('option[value="'.concat(o[i],'"]')).attr("selected","");return this;case"input":case"option":return e?this.attr("value"):this.attr("value",t)}}function J(t,e){t.attribs&&M.call(t.attribs,e)&&delete t.attribs[e]}function tt(t){return t?t.trim().split(B):[]}function et(t){for(var e=this,n=tt(t),r=function(t){j(e,(function(e){Object(k.m)(e)&&J(e,n[t])}))},o=0;o<n.length;o++)r(o);return this}function nt(t){return this.toArray().some((function(e){var n=Object(k.m)(e)&&e.attribs.class,r=-1;if(n&&t.length)for(;-1<(r=n.indexOf(t,r+1));){var o=r+t.length;if((0===r||B.test(n[r-1]))&&(o===n.length||B.test(n[o])))return!0}return!1}))}function rt(t){if("function"==typeof t)return j(this,(function(e,n){var r;Object(k.m)(e)&&(r=e.attribs.class||"",rt.call([e],t.call(e,n,r)))}));if(!t||"string"!=typeof t)return this;for(var e=t.split(B),n=this.length,r=0;r<n;r++){var o=this[r];if(Object(k.m)(o)){var i=q(o,"class",!1);if(i){for(var a=" ".concat(i," "),s=0;s<e.length;s++){var l="".concat(e[s]," ");a.includes(" ".concat(l))||(a+=l)}z(o,"class",a.trim())}else z(o,"class",e.join(" ").trim())}}return this}function ot(t){if("function"==typeof t)return j(this,(function(e,n){Object(k.m)(e)&&ot.call([e],t.call(e,n,e.attribs.class||""))}));var e=tt(t),n=e.length,r=0===arguments.length;return j(this,(function(t){if(Object(k.m)(t))if(r)t.attribs.class="";else{for(var o=tt(t.attribs.class),i=!1,a=0;a<n;a++){var s=o.indexOf(e[a]);0<=s&&(o.splice(s,1),i=!0,a--)}i&&(t.attribs.class=o.join(" "))}}))}function it(t,e){if("function"==typeof t)return j(this,(function(n,r){Object(k.m)(n)&&it.call([n],t.call(n,r,n.attribs.class||"",e),e)}));if(!t||"string"!=typeof t)return this;for(var n=t.split(B),r=n.length,o="boolean"==typeof e?e?1:-1:0,i=this.length,a=0;a<i;a++){var s=this[a];if(Object(k.m)(s)){for(var l=tt(s.attribs.class),c=0;c<r;c++){var u=l.indexOf(n[c]);0<=o&&u<0?l.push(n[c]):o<=0&&0<=u&&l.splice(u,1)}s.attribs.class=l.join(" ")}}return this}function at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}(Ve=I=I||{}).Attribute="attribute",Ve.Pseudo="pseudo",Ve.PseudoElement="pseudo-element",Ve.Tag="tag",Ve.Universal="universal",Ve.Adjacent="adjacent",Ve.Child="child",Ve.Descendant="descendant",Ve.Parent="parent",Ve.Sibling="sibling",Ve.ColumnCombinator="column-combinator",(fe=R=R||{}).Any="any",fe.Element="element",fe.End="end",fe.Equals="equals",fe.Exists="exists",fe.Hyphen="hyphen",fe.Not="not",fe.Start="start";var st=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,lt=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,ct=new Map([[126,R.Element],[94,R.Start],[36,R.End],[42,R.Any],[33,R.Not],[124,R.Hyphen]]),ut=new Set(["has","not","matches","is","where","host","host-context"]);function pt(t){switch(t.type){case I.Adjacent:case I.Child:case I.Descendant:case I.Parent:case I.Sibling:case I.ColumnCombinator:return!0;default:return!1}}var dt=new Set(["contains","icontains"]);function ft(t,e,n){var r=parseInt(e,16)-65536;return r!=r||n?e:r<0?String.fromCharCode(65536+r):String.fromCharCode(r>>10|55296,1023&r|56320)}function ht(t){return t.replace(lt,ft)}function gt(t){return 39===t||34===t}function mt(t){return 32===t||9===t||10===t||12===t||13===t}function vt(t){var e=[],n=function t(e,n,r){var o=[];function i(t){if(!(e=n.slice(r+t).match(st)))throw new Error("Expected name, found ".concat(n.slice(r)));var e=(e=function(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,r,o=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(n=e.next()).done)&&(o.push(n.value),1!==o.length);i=!0);}catch(t){a=!0,r=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw r}}return o}}(t)||function(t){if(t){if("string"==typeof t)return at(t,1);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?at(t,1):void 0}}(t)||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.")}()}(e))[0];return r+=t+e.length,ht(e)}function a(t){for(r+=t;r<n.length&&mt(n.charCodeAt(r));)r++}function s(){for(var t=r+=1,e=1;0<e&&r<n.length;r++)40!==n.charCodeAt(r)||l(r)?41!==n.charCodeAt(r)||l(r)||e--:e++;if(e)throw new Error("Parenthesis not matched");return ht(n.slice(t,r-1))}function l(t){for(var e=0;92===n.charCodeAt(--t);)e++;return!(1&~e)}function c(){if(0<o.length&&pt(o[o.length-1]))throw new Error("Did not expect successive traversals.")}function u(t){0<o.length&&o[o.length-1].type===I.Descendant?o[o.length-1].type=t:(c(),o.push({type:t}))}function p(t,e){o.push({type:I.Attribute,name:t,action:e,value:i(1),namespace:null,ignoreCase:"quirks"})}function d(){if(o.length&&o[o.length-1].type===I.Descendant&&o.pop(),0===o.length)throw new Error("Empty sub-selector");e.push(o)}if(a(0),n.length===r)return r;t:for(;r<n.length;){var f=n.charCodeAt(r);switch(f){case 32:case 9:case 10:case 12:case 13:0!==o.length&&o[0].type===I.Descendant||(c(),o.push({type:I.Descendant})),a(1);break;case 62:u(I.Child),a(1);break;case 60:u(I.Parent),a(1);break;case 126:u(I.Sibling),a(1);break;case 43:u(I.Adjacent),a(1);break;case 46:p("class",R.Element);break;case 35:p("id",R.Equals);break;case 91:a(1);var h=void 0,g=null;124===n.charCodeAt(r)?h=i(1):n.startsWith("*|",r)?(g="*",h=i(2)):(h=i(0),124===n.charCodeAt(r)&&61!==n.charCodeAt(r+1)&&(g=h,h=i(1))),a(0);var m=R.Exists;if(y=ct.get(n.charCodeAt(r))){if(m=y,61!==n.charCodeAt(r+1))throw new Error("Expected `=`");a(2)}else 61===n.charCodeAt(r)&&(m=R.Equals,a(1));var v="",y=null;if("exists"!==m){if(gt(n.charCodeAt(r))){for(var b=n.charCodeAt(r),_=r+1;_<n.length&&(n.charCodeAt(_)!==b||l(_));)_+=1;if(n.charCodeAt(_)!==b)throw new Error("Attribute value didn't end");v=ht(n.slice(r+1,_)),r=_+1}else{for(var w=r;r<n.length&&(!mt(n.charCodeAt(r))&&93!==n.charCodeAt(r)||l(r));)r+=1;v=ht(n.slice(w,r))}a(0),115==(w=32|n.charCodeAt(r))?(y=!1,a(1)):105==w&&(y=!0,a(1))}if(93!==n.charCodeAt(r))throw new Error("Attribute selector didn't terminate");r+=1,g={type:I.Attribute,name:h,action:m,value:v,namespace:g,ignoreCase:y},o.push(g);break;case 58:if(58===n.charCodeAt(r+1)){o.push({type:I.PseudoElement,name:i(2).toLowerCase(),data:40===n.charCodeAt(r)?s():null});continue}y=i(1).toLowerCase();var E=null;if(40===n.charCodeAt(r))if(ut.has(y)){if(gt(n.charCodeAt(r+1)))throw new Error("Pseudo-selector ".concat(y," cannot be quoted"));if(r=t(E=[],n,r+1),41!==n.charCodeAt(r))throw new Error("Missing closing parenthesis in :".concat(y," (").concat(n,")"));r+=1}else E=s(),!dt.has(y)||(g=E.charCodeAt(0))===E.charCodeAt(E.length-1)&&gt(g)&&(E=E.slice(1,-1)),E=ht(E);o.push({type:I.Pseudo,name:y,data:E});break;case 44:d(),o=[],a(1);break;default:if(n.startsWith("/*",r)){if((E=n.indexOf("*/",r+2))<0)throw new Error("Comment was not terminated");r=E+2,0===o.length&&a(0);break}var x=null,C=void 0;if(42===f)r+=1,C="*";else if(124===f){if(C="",124===n.charCodeAt(r+1)){u(I.ColumnCombinator),a(2);break}}else{if(!st.test(n.slice(r)))break t;C=i(0)}124===n.charCodeAt(r)&&124!==n.charCodeAt(r+1)&&(x=C,42===n.charCodeAt(r+1)?(C="*",r+=2):C=i(1)),o.push("*"===C?{type:I.Universal,namespace:x}:{type:I.Tag,name:C,namespace:x})}}return d(),r}(e,"".concat(t),0);if(n<t.length)throw new Error("Unmatched selector: ".concat(t.slice(n)));return e}var yt=n(2),bt=n.n(yt);function _t(t){return function(t){if(Array.isArray(t))return wt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return wt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Et=new Map([[I.Universal,50],[I.Tag,30],[I.Attribute,1],[I.Pseudo,0]]);function xt(t){return!Et.has(t.type)}var Ct=new Map([[R.Exists,10],[R.Equals,8],[R.Not,7],[R.Start,6],[R.End,6],[R.Any,5]]);function Tt(t){for(var e=t.map(At),n=1;n<t.length;n++){var r=e[n];if(!(r<0))for(var o=n-1;0<=o&&r<e[o];o--){var i=t[o+1];t[o+1]=t[o],t[o]=i,e[o+1]=e[o],e[o]=r}}}function At(t){var e,n=null!==(e=Et.get(t.type))&&void 0!==e?e:-1;return t.type===I.Attribute?(n=null!==(e=Ct.get(t.action))&&void 0!==e?e:4,t.action===R.Equals&&"id"===t.name&&(n=9),t.ignoreCase&&(n>>=1)):t.type===I.Pseudo&&(t.data?"has"===t.name||"contains"===t.name?n=0:Array.isArray(t.data)?(n=Math.min.apply(Math,_t(t.data.map((function(t){return Math.min.apply(Math,_t(t.map(At)))})))))<0&&(n=0):n=2:n=3),n}var Ot=/[-[\]{}()*+?.,\\^$|#\s]/g;function St(t){return t.replace(Ot,"\\$&")}var kt=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Pt(t,e){return"boolean"==typeof t.ignoreCase?t.ignoreCase:"quirks"===t.ignoreCase?e.quirksMode:!e.xmlMode&&kt.has(t.name)}var jt={equals:function(t,e,n){var r=n.adapter,o=e.name,i=e.value;return Pt(e,n)?(i=i.toLowerCase(),function(e){var n=r.getAttributeValue(e,o);return null!=n&&n.length===i.length&&n.toLowerCase()===i&&t(e)}):function(e){return r.getAttributeValue(e,o)===i&&t(e)}},hyphen:function(t,e,n){var r=n.adapter,o=e.name,i=e.value,a=i.length;return Pt(e,n)?(i=i.toLowerCase(),function(e){var n=r.getAttributeValue(e,o);return null!=n&&(n.length===a||"-"===n.charAt(a))&&n.substr(0,a).toLowerCase()===i&&t(e)}):function(e){var n=r.getAttributeValue(e,o);return null!=n&&(n.length===a||"-"===n.charAt(a))&&n.substr(0,a)===i&&t(e)}},element:function(t,e,n){var r=n.adapter,o=e.name,i=e.value;if(/\s/.test(i))return bt.a.falseFunc;var a=new RegExp("(?:^|\\s)".concat(St(i),"(?:$|\\s)"),Pt(e,n)?"i":"");return function(e){var n=r.getAttributeValue(e,o);return null!=n&&n.length>=i.length&&a.test(n)&&t(e)}},exists:function(t,e,n){var r=e.name,o=n.adapter;return function(e){return o.hasAttrib(e,r)&&t(e)}},start:function(t,e,n){var r=n.adapter,o=e.name,i=e.value,a=i.length;return 0===a?bt.a.falseFunc:Pt(e,n)?(i=i.toLowerCase(),function(e){var n=r.getAttributeValue(e,o);return null!=n&&n.length>=a&&n.substr(0,a).toLowerCase()===i&&t(e)}):function(e){var n;return!(null===(n=r.getAttributeValue(e,o))||void 0===n||!n.startsWith(i))&&t(e)}},end:function(t,e,n){var r=n.adapter,o=e.name,i=e.value,a=-i.length;return 0==a?bt.a.falseFunc:Pt(e,n)?(i=i.toLowerCase(),function(e){var n;return(null===(n=r.getAttributeValue(e,o))||void 0===n?void 0:n.substr(a).toLowerCase())===i&&t(e)}):function(e){var n;return!(null===(n=r.getAttributeValue(e,o))||void 0===n||!n.endsWith(i))&&t(e)}},any:function(t,e,n){var r=n.adapter,o=e.name,i=e.value;if(""===i)return bt.a.falseFunc;if(Pt(e,n)){var a=new RegExp(St(i),"i");return function(e){var n=r.getAttributeValue(e,o);return null!=n&&n.length>=i.length&&a.test(n)&&t(e)}}return function(e){var n;return!(null===(n=r.getAttributeValue(e,o))||void 0===n||!n.includes(i))&&t(e)}},not:function(t,e,n){var r=n.adapter,o=e.name,i=e.value;return""===i?function(e){return!!r.getAttributeValue(e,o)&&t(e)}:Pt(e,n)?(i=i.toLowerCase(),function(e){var n=r.getAttributeValue(e,o);return(null==n||n.length!==i.length||n.toLowerCase()!==i)&&t(e)}):function(e){return r.getAttributeValue(e,o)!==i&&t(e)}}},Nt=new Set([9,10,12,13,32]),Lt="0".charCodeAt(0),Dt="9".charCodeAt(0);function It(t){return function(t){var e=t[0],n=t[1]-1;if(n<0&&e<=0)return bt.a.falseFunc;if(-1===e)return function(t){return t<=n};if(0===e)return function(t){return t===n};if(1===e)return n<0?bt.a.trueFunc:function(t){return n<=t};var r=Math.abs(e),o=(n%r+r)%r;return 1<e?function(t){return n<=t&&t%r==o}:function(t){return t<=n&&t%r==o}}(function(t){if("even"===(t=t.trim().toLowerCase()))return[2,0];if("odd"===t)return[2,1];var e=0,n=0,r=i(),o=a();if(e<t.length&&"n"===t.charAt(e)&&(e++,n=r*(null!=o?o:1),s(),e<t.length?(r=i(),s(),o=a()):r=o=0),null===o||e<t.length)throw new Error("n-th rule couldn't be parsed ('".concat(t,"')"));return[n,r*o];function i(){return"-"===t.charAt(e)?(e++,-1):("+"===t.charAt(e)&&e++,1)}function a(){for(var n=e,r=0;e<t.length&&t.charCodeAt(e)>=Lt&&t.charCodeAt(e)<=Dt;)r=10*r+(t.charCodeAt(e)-Lt),e++;return e===n?null:r}function s(){for(;e<t.length&&Nt.has(t.charCodeAt(e));)e++}}(t))}function Rt(t,e){return function(n){var r=e.getParent(n);return null!=r&&e.isTag(r)&&t(n)}}var Mt={contains:function(t,e,n){var r=n.adapter;return function(n){return t(n)&&r.getText(n).includes(e)}},icontains:function(t,e,n){var r=n.adapter,o=e.toLowerCase();return function(e){return t(e)&&r.getText(e).toLowerCase().includes(o)}},"nth-child":function(t,e,n){var r=n.adapter,o=n.equals,i=It(e);return i===bt.a.falseFunc?bt.a.falseFunc:i===bt.a.trueFunc?Rt(t,r):function(e){for(var n=r.getSiblings(e),a=0,s=0;s<n.length&&!o(e,n[s]);s++)r.isTag(n[s])&&a++;return i(a)&&t(e)}},"nth-last-child":function(t,e,n){var r=n.adapter,o=n.equals,i=It(e);return i===bt.a.falseFunc?bt.a.falseFunc:i===bt.a.trueFunc?Rt(t,r):function(e){for(var n=r.getSiblings(e),a=0,s=n.length-1;0<=s&&!o(e,n[s]);s--)r.isTag(n[s])&&a++;return i(a)&&t(e)}},"nth-of-type":function(t,e,n){var r=n.adapter,o=n.equals,i=It(e);return i===bt.a.falseFunc?bt.a.falseFunc:i===bt.a.trueFunc?Rt(t,r):function(e){for(var n=r.getSiblings(e),a=0,s=0;s<n.length;s++){var l=n[s];if(o(e,l))break;r.isTag(l)&&r.getName(l)===r.getName(e)&&a++}return i(a)&&t(e)}},"nth-last-of-type":function(t,e,n){var r=n.adapter,o=n.equals,i=It(e);return i===bt.a.falseFunc?bt.a.falseFunc:i===bt.a.trueFunc?Rt(t,r):function(e){for(var n=r.getSiblings(e),a=0,s=n.length-1;0<=s;s--){var l=n[s];if(o(e,l))break;r.isTag(l)&&r.getName(l)===r.getName(e)&&a++}return i(a)&&t(e)}},root:function(t,e,n){var r=n.adapter;return function(e){var n=r.getParent(e);return(null==n||!r.isTag(n))&&t(e)}},scope:function(t,e,n,r){var o=n.equals;return r&&0!==r.length?1===r.length?function(e){return o(r[0],e)&&t(e)}:function(e){return r.includes(e)&&t(e)}:Mt.root(t,e,n)},hover:Bt("isHovered"),visited:Bt("isVisited"),active:Bt("isActive")};function Bt(t){return function(e,n,r){var o=r.adapter[t];return"function"!=typeof o?bt.a.falseFunc:function(t){return o(t)&&e(t)}}}var Ft={empty:function(t,e){var n=e.adapter;return!n.getChildren(t).some((function(t){return n.isTag(t)||""!==n.getText(t)}))},"first-child":function(t,e){var n,r=e.adapter;return e=e.equals,r.prevElementSibling?null==r.prevElementSibling(t):null!=(n=r.getSiblings(t).find((function(t){return r.isTag(t)})))&&e(t,n)},"last-child":function(t,e){for(var n=e.adapter,r=e.equals,o=n.getSiblings(t),i=o.length-1;0<=i;i--){if(r(t,o[i]))return!0;if(n.isTag(o[i]))break}return!1},"first-of-type":function(t,e){for(var n=e.adapter,r=e.equals,o=n.getSiblings(t),i=n.getName(t),a=0;a<o.length;a++){var s=o[a];if(r(t,s))return!0;if(n.isTag(s)&&n.getName(s)===i)break}return!1},"last-of-type":function(t,e){for(var n=e.adapter,r=e.equals,o=n.getSiblings(t),i=n.getName(t),a=o.length-1;0<=a;a--){var s=o[a];if(r(t,s))return!0;if(n.isTag(s)&&n.getName(s)===i)break}return!1},"only-of-type":function(t,e){var n=e.adapter,r=e.equals,o=n.getName(t);return n.getSiblings(t).every((function(e){return r(t,e)||!n.isTag(e)||n.getName(e)!==o}))},"only-child":function(t,e){var n=e.adapter,r=e.equals;return n.getSiblings(t).every((function(e){return r(t,e)||!n.isTag(e)}))}};function Ut(t,e,n,r){if(null===n){if(t.length>r)throw new Error("Pseudo-class :".concat(e," requires an argument"))}else if(t.length===r)throw new Error("Pseudo-class :".concat(e," doesn't have any arguments"))}var Ht={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:":is(\n        :is(button, input, select, textarea, optgroup, option)[disabled],\n        optgroup[disabled] > option,\n        fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n    )",enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};function Vt(t){return function(t){if(Array.isArray(t))return qt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return qt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?qt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var zt={};function Wt(t,e){return t===bt.a.falseFunc?bt.a.falseFunc:function(n){return e.isTag(n)&&t(n)}}function Gt(t,e){var n=e.getSiblings(t);return n.length<=1||(t=n.indexOf(t))<0||t===n.length-1?[]:n.slice(t+1).filter(e.isTag)}function Yt(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var Kt={is:Ve=function(t,e,n,r,o){var i=o(e,Yt(n),r);return i===bt.a.trueFunc?t:i===bt.a.falseFunc?bt.a.falseFunc:function(e){return i(e)&&t(e)}},matches:Ve,where:Ve,not:function(t,e,n,r,o){var i=o(e,Yt(n),r);return i===bt.a.falseFunc?t:i===bt.a.trueFunc?bt.a.falseFunc:function(e){return!i(e)&&t(e)}},has:function(t,e,n,r,o){var i=n.adapter;(n=Yt(n)).relativeSelector=!0;var a=e.some((function(t){return t.some(xt)}))?[zt]:void 0;if((n=o(e,n,a))===bt.a.falseFunc)return bt.a.falseFunc;var s=Wt(n,i);if(a&&n!==bt.a.trueFunc){var l=void 0!==(n=n.shouldTestNextSiblings)&&n;return function(e){if(!t(e))return!1;a[0]=e;var n=i.getChildren(e);return n=l?[].concat(Vt(n),Vt(Gt(e,i))):n,i.existsOne(s,n)}}return function(e){return t(e)&&i.existsOne(s,i.getChildren(e))}}};function $t(t,e){return(t=e.getParent(t))&&e.isTag(t)?t:null}function Xt(t,e){if(t){if("string"==typeof t)return Zt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zt(t,e):void 0}}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Qt(t,e,n){return re("string"==typeof t?vt(t):t,e,n)}function Jt(t){return t.type===I.Pseudo&&("scope"===t.name||Array.isArray(t.data)&&t.data.some((function(t){return t.some(Jt)})))}var te={type:I.Descendant},ee={type:"_flexibleDescendant"},ne={type:I.Pseudo,name:"scope",data:null};function re(t,e,n){var r;t.forEach(Tt),n=null!==(r=e.context)&&void 0!==r?r:n;var o=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(!1!==e.relativeSelector)!function(t,e,n){var r,o=e.adapter,i=!(null==n||!n.every((function(t){var e=o.isTag(t)&&o.getParent(t);return t===zt||e&&o.isTag(e)}))),a=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Xt(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(!(0<s.length&&xt(s[0])&&s[0].type!==I.Descendant)){if(!i||s.some(Jt))continue;s.unshift(te)}s.unshift(ne)}}catch(t){a.e(t)}finally{a.f()}}(t,e,i);else if(t.some((function(t){return 0<t.length&&xt(t[0])})))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");var a=!1;return(t=t.map((function(t){var n,r;return 2<=t.length&&(n=(r=function(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,r,o=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(n=e.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(t){a=!0,r=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw r}}return o}}(t)||Xt(t,2)||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.")}()}(t))[0],r=r[1],n.type!==I.Pseudo||"scope"!==n.name||(o&&r.type===I.Descendant?t[1]=ee:r.type!==I.Adjacent&&r.type!==I.Sibling||(a=!0))),function(t,e,n){return t.reduce((function(t,r){return t===bt.a.falseFunc?bt.a.falseFunc:function(t,e,n,r,o){var i=n.adapter,a=n.equals;switch(e.type){case I.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case I.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case I.Attribute:if(null!=e.namespace)throw new Error("Namespaced attributes are not yet supported by css-select");return n.xmlMode&&!n.lowerCaseAttributeNames||(e.name=e.name.toLowerCase()),jt[e.action](t,e,n);case I.Pseudo:return function(t,e,n,r,o){var i=e.name,a=e.data;if(Array.isArray(a)){if(!(i in Kt))throw new Error("Unknown pseudo-class :".concat(i,"(").concat(a,")"));return Kt[i](t,a,n,r,o)}var s=null===(e=n.pseudos)||void 0===e?void 0:e[i];if("string"==typeof(e="string"==typeof s?s:Ht[i])){if(null!=a)throw new Error("Pseudo ".concat(i," doesn't have any arguments"));return e=vt(e),Kt.is(t,e,n,r,o)}if("function"==typeof s)return Ut(s,i,a,1),function(e){return s(e,a)&&t(e)};if(i in Mt)return Mt[i](t,a,n,r);if(i in Ft){var l=Ft[i];return Ut(l,i,a,2),function(e){return l(e,n,a)&&t(e)}}throw new Error("Unknown pseudo-class :".concat(i))}(t,e,n,r,o);case I.Tag:if(null!=e.namespace)throw new Error("Namespaced tag names are not yet supported by css-select");var s=e.name;return n.xmlMode&&!n.lowerCaseTags||(s=s.toLowerCase()),function(e){return i.getName(e)===s&&t(e)};case I.Descendant:if(!1===n.cacheResults||"undefined"==typeof WeakSet)return function(e){for(var n=e;n=$t(n,i);)if(t(n))return!0;return!1};var l=new WeakSet;return function(e){for(var n=e;n=$t(n,i);)if(!l.has(n)){if(i.isTag(n)&&t(n))return!0;l.add(n)}return!1};case"_flexibleDescendant":return function(e){var n=e;do{if(t(n))return!0}while(n=$t(n,i));return!1};case I.Parent:return function(e){return i.getChildren(e).some((function(e){return i.isTag(e)&&t(e)}))};case I.Child:return function(e){return null!=(e=i.getParent(e))&&i.isTag(e)&&t(e)};case I.Sibling:return function(e){for(var n=i.getSiblings(e),r=0;r<n.length;r++){var o=n[r];if(a(e,o))break;if(i.isTag(o)&&t(o))return!0}return!1};case I.Adjacent:return i.prevElementSibling?function(e){return null!=(e=i.prevElementSibling(e))&&t(e)}:function(e){for(var n,r=i.getSiblings(e),o=0;o<r.length;o++){var s=r[o];if(a(e,s))break;i.isTag(s)&&(n=s)}return!!n&&t(n)};case I.Universal:if(null!=e.namespace&&"*"!==e.namespace)throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}(t,r,e,n,re)}),null!==(t=e.rootFunc)&&void 0!==t?t:bt.a.trueFunc)}(t,e,i)})).reduce(oe,bt.a.falseFunc)).shouldTestNextSiblings=a,t}function oe(t,e){return e===bt.a.falseFunc||t===bt.a.trueFunc?t:t===bt.a.falseFunc||e===bt.a.trueFunc?e:function(n){return t(n)||e(n)}}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var ae=function(t,e){return t===e},se={adapter:g,equals:ae};function le(t){var e=null!=t?t:se;return null!==(t=e.adapter)&&void 0!==t||(e.adapter=g),null!==(t=e.equals)&&void 0!==t||(e.equals=null!==(t=null===(t=e.adapter)||void 0===t?void 0:t.equals)&&void 0!==t?t:ae),e}function ce(t){return function(e,n,r){return n=le(n),t(e,n,r)}}ce((function(t,e,n){return Wt(Qt(t,e,n),e.adapter)})),ce(Qt);var ue=ce(re);function pe(t){return function(e,n,r){return r=le(r),"function"!=typeof e&&(e=Qt(e,r,n)),n=de(n,r.adapter,e.shouldTestNextSiblings),t(e,n,r)}}function de(t,e,n){return 2<arguments.length&&void 0!==n&&n&&(t=function(t,e){for(var n=Array.isArray(t)?t.slice(0):[t],r=n.length,o=0;o<r;o++){var i=Gt(n[o],e);n.push.apply(n,function(t){return function(t){if(Array.isArray(t))return ie(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ie(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(i))}return n}(t,e)),Array.isArray(t)?e.removeSubsets(t):e.getChildren(t)}var fe=pe((function(t,e,n){return t!==bt.a.falseFunc&&e&&0!==e.length?n.adapter.findAll(t,e):[]}));pe((function(t,e,n){return t!==bt.a.falseFunc&&e&&0!==e.length?n.adapter.findOne(t,e):null}));var he=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function ge(t){return"pseudo"===t.type&&(!!he.has(t.name)||!("not"!==t.name||!Array.isArray(t.data))&&t.data.some((function(t){return t.some(ge)})))}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ve(t){var e,n=[],r=[],o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return me(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(t);try{for(o.s();!(e=o.n()).done;){var i=e.value;(i.some(ge)?n:r).push(i)}}catch(t){o.e(t)}finally{o.f()}return[r,n]}function ye(t){return function(t){if(Array.isArray(t))return xe(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Ee(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function be(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function _e(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?be(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):be(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function we(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,e)||Ee(t,e)||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.")}()}function Ee(t,e){if(t){if("string"==typeof t)return xe(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xe(t,e):void 0}}function xe(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ce={type:I.Universal,namespace:null},Te={type:I.Pseudo,name:"scope",data:null};function Ae(t,e,n){return Oe([t],e,2<arguments.length&&void 0!==n?n:{})}function Oe(t,e,n){var r=2<arguments.length&&void 0!==n?n:{};return"function"==typeof e?t.some(e):(e=(n=we(ve(vt(e)),2))[0],n=n[1],0<e.length&&t.some(ue(e,r))||n.some((function(e){return 0<Pe(e,t,r).length})))}function Se(t,e,n){return n=2<arguments.length&&void 0!==n?n:{},ke(vt(t),e,n)}function ke(t,e,n){if(0===e.length)return[];var r,o=we(ve(t),2),i=(t=o[0],o[1]);if(t.length){if(t=De(e,t,n),0===i.length)return t;t.length&&(r=new Set(t))}for(var a=0;a<i.length&&(null==r?void 0:r.size)!==e.length;a++){var s=i[a];if(0===(r?e.filter((function(t){return g.isTag(t)&&!r.has(t)})):e).length)break;if((s=Pe(s,e,n)).length)if(r)s.forEach((function(t){return r.add(t)}));else{if(a===i.length-1)return s;r=new Set(s)}}return void 0!==r?r.size===e.length?e:e.filter((function(t){return r.has(t)})):[]}function Pe(t,e,n){if(t.some(pt)){var r=null!==(o=n.root)&&void 0!==o?o:function(t){for(;t.parent;)t=t.parent;return t}(e[0]),o=_e(_e({},n),{},{context:e,relativeSelector:!1});return t.push(Te),je(r,t,o,!0,e.length)}return je(e,t,n,!1,e.length)}function je(t,e,n,r,o){var i=e.findIndex(ge),a=e.slice(0,i),s=e[i],l=e.length-1===i?o:1/0;if(0===(l=function(t,e,n){var r=null!=e?parseInt(e,10):NaN;switch(t){case"first":return 1;case"nth":case"eq":return isFinite(r)?0<=r?r+1:1/0:0;case"lt":return isFinite(r)?0<=r?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}(s.name,s.data,l)))return[];l=(0!==a.length||Array.isArray(t)?0===a.length?(Array.isArray(t)?t:[t]).filter(g.isTag):r||a.some(pt)?Ne(t,[a],n,l):De(t,[a],n):g.getChildren(t).filter(g.isTag)).slice(0,l);var c=function(t,e,n,r){var o="string"==typeof n?parseInt(n,10):NaN;switch(t){case"first":case"lt":return e;case"last":return 0<e.length?[e[e.length-1]]:e;case"nth":case"eq":return isFinite(o)&&Math.abs(o)<e.length?[o<0?e[e.length+o]:e[o]]:[];case"gt":return isFinite(o)?e.slice(o+1):[];case"even":return e.filter((function(t,e){return e%2==0}));case"odd":return e.filter((function(t,e){return e%2==1}));case"not":var i=new Set(ke(n,e,r));return e.filter((function(t){return!i.has(t)}))}}(s.name,l,s.data,n);return 0===c.length||e.length===i+1?c:((e=(s=e.slice(i+1)).some(pt))?(pt(s[0])&&((i=s[0].type)!==I.Sibling&&i!==I.Adjacent||(c=de(c,g,!0)),s.unshift(Ce)),n=_e(_e({},n),{},{relativeSelector:!1,rootFunc:function(t){return c.includes(t)}})):n.rootFunc&&n.rootFunc!==yt.trueFunc&&(n=_e(_e({},n),{},{rootFunc:yt.trueFunc})),s.some(ge)?je(c,s,n,!1,o):e?Ne(c,[s],n,o):De(c,[s],n))}function Ne(t,e,n,r){return Le(t,ue(e,n,t),r)}function Le(t,e,n){return n=2<arguments.length&&void 0!==n?n:1/0,t=de(t,g,e.shouldTestNextSiblings),g.find((function(t){return g.isTag(t)&&e(t)}),t,!0,n)}function De(t,e,n){return 0===(t=(Array.isArray(t)?t:[t]).filter(g.isTag)).length||(n=ue(e,n))===yt.trueFunc?t:t.filter(n)}function Ie(t){return function(t){if(Array.isArray(t))return Re(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Me=/^\s*[~+]/;function Be(t){if(!t)return this._make([]);var e=this.toArray();if("string"!=typeof t){var n=P(t)?t.toArray():[t];return this._make(n.filter((function(t){return e.some((function(e){return T(e,t)}))})))}var r=Me.test(t)?e:this.children().toArray();return n={context:e,root:null===(n=this._root)||void 0===n?void 0:n[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode},this._make(function(t,e,n,r){var o=2<arguments.length&&void 0!==n?n:{},i=3<arguments.length&&void 0!==r?r:1/0;return"function"==typeof t?Le(e,t):(t=(r=we(ve(vt(t)),2))[0],r=r[1].map((function(t){return je(e,t,o,!0,i)})),t.length&&r.push(Ne(e,t,o,i)),0===r.length?[]:1===r.length?r[0]:g.uniqueSort(r.reduce((function(t,e){return[].concat(ye(t),ye(e))}))))}(t,r,n))}function Fe(t){return function(e){for(var n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return function(n){var o=t(e,this);return n&&(o=sn(o,n,this.options.xmlMode,null===(n=this._root)||void 0===n?void 0:n[0])),this._make(1<this.length&&1<o.length?r.reduce((function(t,e){return e(t)}),o):o)}}}function Ue(t){for(var e=null,n=arguments.length,r=new Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Fe((function(t,n){var r=[];return j(n,(function(n){for(var o;(o=t(n))&&(null==e||!e(o,r.length));n=o)r.push(o)})),r})).apply(void 0,[t].concat(r));return function(t,n){var r=this;return e="string"==typeof t?function(e){return Ae(e,t,r.options)}:t?on(t):null,n=i.call(this,n),e=null,n}}function He(t){return Array.from(new Set(t))}var Ve=Fe((function(t,e){for(var n,r=[],o=0;o<e.length;o++){var i=t(e[o]);r.push(i)}return(n=new Array).concat.apply(n,r)})),qe=(fe=Fe((function(t,e){for(var n=[],r=0;r<e.length;r++){var o=t(e[r]);null!==o&&n.push(o)}return n})))((function(t){return(t=t.parent)&&!Object(k.l)(t)?t:null}),He),ze=Ve((function(t){for(var e=[];t.parent&&!Object(k.l)(t.parent);)e.push(t.parent),t=t.parent;return e}),g.uniqueSort,(function(t){return t.reverse()})),We=Ue((function(t){return(t=t.parent)&&!Object(k.l)(t)?t:null}),g.uniqueSort,(function(t){return t.reverse()}));function Ge(t){var e,n=[];if(!t)return this._make(n);var r={xmlMode:this.options.xmlMode,root:null===(e=this._root)||void 0===e?void 0:e[0]},o="string"==typeof t?function(e){return Ae(e,t,r)}:on(t);return j(this,(function(t){for(;t&&Object(k.m)(t);){if(o(t,0)){n.includes(t)||n.push(t);break}t=t.parent}})),this._make(n)}var Ye=fe((function(t){return Object(g.nextElementSibling)(t)})),Ke=Ve((function(t){for(var e=[];t.next;)t=t.next,Object(k.m)(t)&&e.push(t);return e}),He),$e=Ue((function(t){return Object(g.nextElementSibling)(t)}),He),Xe=fe((function(t){return Object(g.prevElementSibling)(t)})),Ze=Ve((function(t){for(var e=[];t.prev;)t=t.prev,Object(k.m)(t)&&e.push(t);return e}),He),Qe=Ue((function(t){return Object(g.prevElementSibling)(t)}),He),Je=Ve((function(t){return Object(g.getSiblings)(t).filter((function(e){return Object(k.m)(e)&&e!==t}))}),g.uniqueSort),tn=Ve((function(t){return Object(g.getChildren)(t).filter(k.m)}),He);function en(){var t=this.toArray().reduce((function(t,e){return Object(k.h)(e)?t.concat(e.children):t}),[]);return this._make(t)}function nn(t){for(var e=0,n=this.length;e<n&&!1!==t.call(this[e],e,this[e]);)++e;return this}function rn(t){for(var e=[],n=0;n<this.length;n++){var r=this[n];null!=(r=t.call(r,n,r))&&(e=e.concat(r))}return this._make(e)}function on(t){return"function"==typeof t?function(e,n){return t.call(e,n,e)}:P(t)?function(e){return Array.prototype.includes.call(t,e)}:function(e){return t===e}}function an(t){return this._make(sn(this.toArray(),t,this.options.xmlMode,null===(t=this._root)||void 0===t?void 0:t[0]))}function sn(t,e,n,r){return"string"==typeof e?Se(e,t,{xmlMode:n,root:r}):t.filter(on(e))}function ln(t){var e=this.toArray();return"string"==typeof t?Oe(e.filter(k.m),t,this.options):!!t&&e.some(on(t))}function cn(t){var e,n,r=this.toArray();return r="string"==typeof t?(e=new Set(Se(t,r,this.options)),r.filter((function(t){return!e.has(t)}))):(n=on(t),r.filter((function(t,e){return!n(t,e)}))),this._make(r)}function un(t){var e=this;return this.filter("string"==typeof t?":has(".concat(t,")"):function(n,r){return 0<e._make(r).find(t).length})}function pn(){return 1<this.length?this._make(this[0]):this}function dn(){return 0<this.length?this._make(this[this.length-1]):this}function fn(t){return 0==(t=+t)&&this.length<=1?this:(t<0&&(t=this.length+t),this._make(null!==(t=this[t])&&void 0!==t?t:[]))}function hn(t){return null==t?this.toArray():this[t<0?this.length+t:t]}function gn(){return Array.prototype.slice.call(this)}function mn(t){var e;return t=null==t?(e=this.parent().children(),this[0]):"string"==typeof t?(e=this._make(t),this[0]):(e=this,P(t)?t[0]:t),Array.prototype.indexOf.call(e,t)}function vn(t,e){return this._make(Array.prototype.slice.call(this,t,e))}function yn(){var t;return null!==(t=this.prevObject)&&void 0!==t?t:this._make([])}function bn(t,e){return e=this._make(t,e),e=Object(g.uniqueSort)([].concat(Ie(this.get()),Ie(e.get()))),this._make(e)}function _n(t){return this.prevObject?this.add(t?this.prevObject.filter(t):this.prevObject):this}var wn=n(23);function En(t){return function(t){if(Array.isArray(t))return Cn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||xn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(t,e){if(t){if("string"==typeof t)return Cn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cn(t,e):void 0}}function Cn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Tn(t,e){var n=this;return null==t?[]:P(t)?e?N(t.get()):t.get():Array.isArray(t)?t.reduce((function(t,r){return t.concat(n._makeDomArray(r,e))}),[]):"string"==typeof t?this._parse(t,this.options,!1,null).children:e?N([t]):[t]}function An(t){return function(){for(var e=this,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=this.length-1;return j(this,(function(n,o){var a;Object(k.h)(n)&&(a="function"==typeof r[0]?r[0].call(n,o,e._render(n.children)):r,o=e._makeDomArray(a,o<i),t(o,n.children,n))}))}}function On(t,e,n,r,o){for(var i,a=[e,n].concat(En(r)),s=0===e?null:t[e-1],l=e+n>=t.length?null:t[e+n],c=0;c<r.length;++c){var u,p=r[c],d=p.parent;!d||-1<(u=d.children.indexOf(p))&&(d.children.splice(u,1),o===d&&u<e&&a[0]--),p.parent=o,p.prev&&(p.prev.next=null!==(i=p.next)&&void 0!==i?i:null),p.next&&(p.next.prev=null!==(i=p.prev)&&void 0!==i?i:null),p.prev=0===c?s:r[c-1],p.next=c===r.length-1?l:r[c+1]}return s&&(s.next=r[0]),l&&(l.prev=r[r.length-1]),t.splice.apply(t,En(a))}function Sn(t){return(P(t)?t:this._make(t)).append(this),this}function kn(t){return(P(t)?t:this._make(t)).prepend(this),this}var Pn=An((function(t,e,n){On(e,e.length,0,t,n)})),jn=An((function(t,e,n){On(e,0,0,t,n)}));function Nn(t){return function(e){for(var n=this.length-1,r=this.parents().last(),o=0;o<this.length;o++){var i=this[o],a="function"==typeof e?e.call(i,o,i):"string"!=typeof e||L(e)?e:r.find(e).clone();if((a=function(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,r,o=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(n=e.next()).done)&&(o.push(n.value),1!==o.length);i=!0);}catch(t){a=!0,r=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw r}}return o}}(t)||xn(t,1)||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.")}()}(this._makeDomArray(a,o<n))[0])&&Object(k.h)(a)){for(var s=a,l=0;l<s.children.length;){var c=s.children[l];Object(k.m)(c)?(s=c,l=0):l++}t(i,s,[a])}}return this}}var Ln=Nn((function(t,e,n){var r,o,i=t.parent;i&&(o=(r=i.children).indexOf(t),Object(wn.b)([t],e),On(r,o,0,n,i))})),Dn=Nn((function(t,e,n){Object(k.h)(t)&&(Object(wn.b)(t.children,e),Object(wn.b)(n,t))}));function In(t){var e=this;return this.parent(t).not("body").each((function(t,n){e._make(n).replaceWith(n.children)})),this}function Rn(t){var e=this[0];if(e){for(var n,r=this._make("function"==typeof t?t.call(e,0,e):t).insertBefore(e),o=0;o<r.length;o++)"tag"===r[o].type&&(n=r[o]);for(var i=0;n&&i<n.children.length;){var a=n.children[i];"tag"===a.type?(n=a,i=0):i++}n&&this._make(n).append(this)}return this}function Mn(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=this.length-1;return j(this,(function(e,r){var i,a,s=e.parent;Object(k.h)(e)&&s&&((a=(i=s.children).indexOf(e))<0||(e="function"==typeof n[0]?n[0].call(e,r,t._render(e.children)):n,On(i,a+1,0,t._makeDomArray(e,r<o),s)))}))}function Bn(t){var e=this;"string"==typeof t&&(t=this._make(t)),this.remove();var n=[];return this._makeDomArray(t).forEach((function(t){var r,o=e.clone().toArray(),i=t.parent;i&&((t=(r=i.children).indexOf(t))<0||(On(r,t+1,0,o,i),n.push.apply(n,En(o))))})),this._make(n)}function Fn(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=this.length-1;return j(this,(function(e,r){var i,a,s=e.parent;Object(k.h)(e)&&s&&((a=(i=s.children).indexOf(e))<0||(e="function"==typeof n[0]?n[0].call(e,r,t._render(e.children)):n,On(i,a,0,t._makeDomArray(e,r<o),s)))}))}function Un(t){var e=this;t=this._make(t),this.remove();var n=[];return j(t,(function(t){var r,o=e.clone().toArray(),i=t.parent;i&&((t=(r=i.children).indexOf(t))<0||(On(r,t,0,o,i),n.push.apply(n,En(o))))})),this._make(n)}function Hn(t){return j(t?this.filter(t):this,(function(t){Object(g.removeElement)(t),t.prev=t.next=t.parent=null})),this}function Vn(t){var e=this;return j(this,(function(n,r){var o,i,a=n.parent;a&&(o=a.children,i="function"==typeof t?t.call(n,r,n):t,r=e._makeDomArray(i),Object(wn.b)(r,null),i=o.indexOf(n),On(o,i,1,r,a),r.includes(n)||(n.parent=n.prev=n.next=null))}))}function qn(){return j(this,(function(t){Object(k.h)(t)&&(t.children.forEach((function(t){t.next=t.prev=t.parent=null})),t.children.length=0)}))}function zn(t){var e=this;if(void 0!==t)return j(this,(function(n){var r;Object(k.h)(n)&&(n.children.forEach((function(t){t.next=t.prev=t.parent=null})),r=P(t)?t.toArray():e._parse("".concat(t),e.options,!1,n).children,Object(wn.b)(r,n))}));var n=this[0];return n&&Object(k.h)(n)?this._render(n.children):null}function Wn(){return this._render(this)}function Gn(t){var e=this;return void 0===t?E(this):j(this,"function"==typeof t?function(n,r){return e._make(n).text(t.call(n,r,E([n])))}:function(e){var n;Object(k.h)(e)&&(e.children.forEach((function(t){t.next=t.prev=t.parent=null})),n=new k.f("".concat(t)),Object(wn.b)(n,e))})}function Yn(){return this._make(N(this.get()))}function Kn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $n(t){return($n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Xn(t,e){return null!=t&&null!=e||"object"===$n(t)&&!Array.isArray(t)?j(this,(function(n,r){Object(k.m)(n)&&function t(e,n,r,o){var i;"string"==typeof n?(i=Zn(e),""===(r="function"==typeof r?r.call(e,o,i[n]):r)?delete i[n]:null!=r&&(i[n]=r),e.attribs.style=function(t){return Object.keys(t).reduce((function(e,n){return"".concat(e).concat(e?" ":"").concat(n,": ").concat(t[n],";")}),"")}(i)):"object"===$n(n)&&Object.keys(n).forEach((function(r,o){t(e,r,n[r],o)}))}(n,t,e,r)})):0!==this.length?Zn(this[0],t):void 0}function Zn(t,e){if(t&&Object(k.m)(t)){var n=function(t){if(!(t=(t||"").trim()))return{};var e,n,r={},o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Kn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Kn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}(t.split(";"));try{for(o.s();!(n=o.n()).done;){var i,a=n.value,s=a.indexOf(":");s<1||s===a.length-1?0<(i=a.trimEnd()).length&&void 0!==e&&(r[e]+=";".concat(i)):r[e=a.slice(0,s).trim()]=a.slice(s+1).trim()}}catch(t){o.e(t)}finally{o.f()}return r}(t.attribs.style);if("string"==typeof e)return n[e];if(Array.isArray(e)){var r={};return e.forEach((function(t){null!=n[t]&&(r[t]=n[t])})),r}return n}}var Qn="input,select,textarea,keygen",Jn=/%20/g,tr=/\r?\n/g;function er(){return this.serializeArray().map((function(t){return"".concat(encodeURIComponent(t.name),"=").concat(encodeURIComponent(t.value))})).join("&").replace(Jn,"+")}function nr(){var t=this;return this.map((function(e,n){var r=t._make(n);return(Object(k.m)(n)&&"form"===n.name?r.find(Qn):r.filter(Qn)).toArray()})).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((function(e,n){var r=(n=t._make(n)).attr("name");return n=null!==(n=n.val())&&void 0!==n?n:"",Array.isArray(n)?n.map((function(t){return{name:r,value:t.replace(tr,"\r\n")}})):{name:r,value:n.replace(tr,"\r\n")}})).toArray()}function rr(t,e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,rr),this.length=0,this.options=n,this._root=e,t){for(var r=0;r<t.length;r++)this[r]=t[r];this.length=t.length}}function or(t){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ir(t,e){return(ir=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ar(t){return(ar=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function sr(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function lr(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?sr(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}rr.prototype.cheerio="[cheerio object]",rr.prototype.splice=Array.prototype.splice,rr.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator],Object.assign(rr.prototype,o,i,a,s,l);var cr,ur,pr=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);function dr(t){return 55296<=t&&t<=57343}function fr(t){return 32!==t&&10!==t&&13!==t&&9!==t&&12!==t&&1<=t&&t<=31||127<=t&&t<=159}function hr(t){return 64976<=t&&t<=65007||pr.has(t)}(l=cr=cr||{})[l.EOF=-1]="EOF",l[l.NULL=0]="NULL",l[l.TABULATION=9]="TABULATION",l[l.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",l[l.LINE_FEED=10]="LINE_FEED",l[l.FORM_FEED=12]="FORM_FEED",l[l.SPACE=32]="SPACE",l[l.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",l[l.QUOTATION_MARK=34]="QUOTATION_MARK",l[l.NUMBER_SIGN=35]="NUMBER_SIGN",l[l.AMPERSAND=38]="AMPERSAND",l[l.APOSTROPHE=39]="APOSTROPHE",l[l.HYPHEN_MINUS=45]="HYPHEN_MINUS",l[l.SOLIDUS=47]="SOLIDUS",l[l.DIGIT_0=48]="DIGIT_0",l[l.DIGIT_9=57]="DIGIT_9",l[l.SEMICOLON=59]="SEMICOLON",l[l.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",l[l.EQUALS_SIGN=61]="EQUALS_SIGN",l[l.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",l[l.QUESTION_MARK=63]="QUESTION_MARK",l[l.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",l[l.LATIN_CAPITAL_F=70]="LATIN_CAPITAL_F",l[l.LATIN_CAPITAL_X=88]="LATIN_CAPITAL_X",l[l.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",l[l.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",l[l.GRAVE_ACCENT=96]="GRAVE_ACCENT",l[l.LATIN_SMALL_A=97]="LATIN_SMALL_A",l[l.LATIN_SMALL_F=102]="LATIN_SMALL_F",l[l.LATIN_SMALL_X=120]="LATIN_SMALL_X",l[l.LATIN_SMALL_Z=122]="LATIN_SMALL_Z",l[l.REPLACEMENT_CHARACTER=65533]="REPLACEMENT_CHARACTER",(l=ur=ur||{}).controlCharacterInInputStream="control-character-in-input-stream",l.noncharacterInInputStream="noncharacter-in-input-stream",l.surrogateInInputStream="surrogate-in-input-stream",l.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",l.endTagWithAttributes="end-tag-with-attributes",l.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",l.unexpectedSolidusInTag="unexpected-solidus-in-tag",l.unexpectedNullCharacter="unexpected-null-character",l.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",l.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",l.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",l.missingEndTagName="missing-end-tag-name",l.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",l.unknownNamedCharacterReference="unknown-named-character-reference",l.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",l.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",l.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",l.eofBeforeTagName="eof-before-tag-name",l.eofInTag="eof-in-tag",l.missingAttributeValue="missing-attribute-value",l.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",l.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",l.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",l.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",l.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",l.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",l.missingDoctypePublicIdentifier="missing-doctype-public-identifier",l.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",l.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",l.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",l.cdataInHtmlContent="cdata-in-html-content",l.incorrectlyOpenedComment="incorrectly-opened-comment",l.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",l.eofInDoctype="eof-in-doctype",l.nestedComment="nested-comment",l.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",l.eofInComment="eof-in-comment",l.incorrectlyClosedComment="incorrectly-closed-comment",l.eofInCdata="eof-in-cdata",l.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",l.nullCharacterReference="null-character-reference",l.surrogateCharacterReference="surrogate-character-reference",l.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",l.controlCharacterReference="control-character-reference",l.noncharacterCharacterReference="noncharacter-character-reference",l.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",l.missingDoctypeName="missing-doctype-name",l.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",l.duplicateAttribute="duplicate-attribute",l.nonConformingDoctype="non-conforming-doctype",l.missingDoctype="missing-doctype",l.misplacedDoctype="misplaced-doctype",l.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",l.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",l.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",l.openElementsLeftAfterEof="open-elements-left-after-eof",l.abandonedHeadElementChild="abandoned-head-element-child",l.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",l.nestedNoscriptInHead="nested-noscript-in-head",l.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";var gr,mr=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}return function(t,e){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"col",get:function(){return this.pos-this.lineStartPos+Number(this.lastGapPos!==this.pos)}},{key:"offset",get:function(){return this.droppedBufferSize+this.pos}},{key:"getError",value:function(t){var e=this.line,n=this.col,r=this.offset;return{code:t,startLine:e,endLine:e,startCol:n,endCol:n,startOffset:r,endOffset:r}}},{key:"_err",value:function(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t)))}},{key:"_addGap",value:function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}},{key:"_processSurrogate",value:function(t){if(this.pos!==this.html.length-1){var e=this.html.charCodeAt(this.pos+1);if(function(t){return 56320<=t&&t<=57343}(e))return this.pos++,this._addGap(),function(t,e){return 1024*(t-55296)+9216+e}(t,e)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,cr.EOF;return this._err(ur.surrogateInInputStream),t}},{key:"willDropParsedChunk",value:function(){return this.pos>this.bufferWaterline}},{key:"dropParsedChunk",value:function(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}},{key:"write",value:function(t,e){0<this.html.length?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=e}},{key:"insertHtmlAtCurrentPos",value:function(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}},{key:"startsWith",value:function(t,e){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(e)return this.html.startsWith(t,this.pos);for(var n=0;n<t.length;n++)if((32|this.html.charCodeAt(this.pos+n))!==t.charCodeAt(n))return!1;return!0}},{key:"peek",value:function(t){return(t=this.pos+t)>=this.html.length?(this.endOfChunkHit=!this.lastChunkWritten,cr.EOF):(t=this.html.charCodeAt(t))===cr.CARRIAGE_RETURN?cr.LINE_FEED:t}},{key:"advance",value:function(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,cr.EOF;var t=this.html.charCodeAt(this.pos);return t===cr.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,cr.LINE_FEED):t===cr.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,dr(t)&&(t=this._processSurrogate(t)),null===this.handler.onParseError||31<t&&t<127||t===cr.LINE_FEED||t===cr.CARRIAGE_RETURN||159<t&&t<64976||this._checkForProblematicCharacters(t),t)}},{key:"_checkForProblematicCharacters",value:function(t){fr(t)?this._err(ur.controlCharacterInInputStream):hr(t)&&this._err(ur.noncharacterInInputStream)}},{key:"retreat",value:function(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}]),t}();function vr(t,e){for(var n=t.attrs.length-1;0<=n;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null}(l=gr=gr||{})[l.CHARACTER=0]="CHARACTER",l[l.NULL_CHARACTER=1]="NULL_CHARACTER",l[l.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",l[l.START_TAG=3]="START_TAG",l[l.END_TAG=4]="END_TAG",l[l.COMMENT=5]="COMMENT",l[l.DOCTYPE=6]="DOCTYPE",l[l.EOF=7]="EOF",l[l.HIBERNATION=8]="HIBERNATION";var yr,br,_r,wr,Er,xr=n(11);function Cr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}(l=yr=yr||{}).HTML="http://www.w3.org/1999/xhtml",l.MATHML="http://www.w3.org/1998/Math/MathML",l.SVG="http://www.w3.org/2000/svg",l.XLINK="http://www.w3.org/1999/xlink",l.XML="http://www.w3.org/XML/1998/namespace",l.XMLNS="http://www.w3.org/2000/xmlns/",(l=br=br||{}).TYPE="type",l.ACTION="action",l.ENCODING="encoding",l.PROMPT="prompt",l.NAME="name",l.COLOR="color",l.FACE="face",l.SIZE="size",(l=_r=_r||{}).NO_QUIRKS="no-quirks",l.QUIRKS="quirks",l.LIMITED_QUIRKS="limited-quirks",(l=wr=wr||{}).A="a",l.ADDRESS="address",l.ANNOTATION_XML="annotation-xml",l.APPLET="applet",l.AREA="area",l.ARTICLE="article",l.ASIDE="aside",l.B="b",l.BASE="base",l.BASEFONT="basefont",l.BGSOUND="bgsound",l.BIG="big",l.BLOCKQUOTE="blockquote",l.BODY="body",l.BR="br",l.BUTTON="button",l.CAPTION="caption",l.CENTER="center",l.CODE="code",l.COL="col",l.COLGROUP="colgroup",l.DD="dd",l.DESC="desc",l.DETAILS="details",l.DIALOG="dialog",l.DIR="dir",l.DIV="div",l.DL="dl",l.DT="dt",l.EM="em",l.EMBED="embed",l.FIELDSET="fieldset",l.FIGCAPTION="figcaption",l.FIGURE="figure",l.FONT="font",l.FOOTER="footer",l.FOREIGN_OBJECT="foreignObject",l.FORM="form",l.FRAME="frame",l.FRAMESET="frameset",l.H1="h1",l.H2="h2",l.H3="h3",l.H4="h4",l.H5="h5",l.H6="h6",l.HEAD="head",l.HEADER="header",l.HGROUP="hgroup",l.HR="hr",l.HTML="html",l.I="i",l.IMG="img",l.IMAGE="image",l.INPUT="input",l.IFRAME="iframe",l.KEYGEN="keygen",l.LABEL="label",l.LI="li",l.LINK="link",l.LISTING="listing",l.MAIN="main",l.MALIGNMARK="malignmark",l.MARQUEE="marquee",l.MATH="math",l.MENU="menu",l.META="meta",l.MGLYPH="mglyph",l.MI="mi",l.MO="mo",l.MN="mn",l.MS="ms",l.MTEXT="mtext",l.NAV="nav",l.NOBR="nobr",l.NOFRAMES="noframes",l.NOEMBED="noembed",l.NOSCRIPT="noscript",l.OBJECT="object",l.OL="ol",l.OPTGROUP="optgroup",l.OPTION="option",l.P="p",l.PARAM="param",l.PLAINTEXT="plaintext",l.PRE="pre",l.RB="rb",l.RP="rp",l.RT="rt",l.RTC="rtc",l.RUBY="ruby",l.S="s",l.SCRIPT="script",l.SECTION="section",l.SELECT="select",l.SOURCE="source",l.SMALL="small",l.SPAN="span",l.STRIKE="strike",l.STRONG="strong",l.STYLE="style",l.SUB="sub",l.SUMMARY="summary",l.SUP="sup",l.TABLE="table",l.TBODY="tbody",l.TEMPLATE="template",l.TEXTAREA="textarea",l.TFOOT="tfoot",l.TD="td",l.TH="th",l.THEAD="thead",l.TITLE="title",l.TR="tr",l.TRACK="track",l.TT="tt",l.U="u",l.UL="ul",l.SVG="svg",l.VAR="var",l.WBR="wbr",l.XMP="xmp",(l=Er=Er||{})[l.UNKNOWN=0]="UNKNOWN",l[l.A=1]="A",l[l.ADDRESS=2]="ADDRESS",l[l.ANNOTATION_XML=3]="ANNOTATION_XML",l[l.APPLET=4]="APPLET",l[l.AREA=5]="AREA",l[l.ARTICLE=6]="ARTICLE",l[l.ASIDE=7]="ASIDE",l[l.B=8]="B",l[l.BASE=9]="BASE",l[l.BASEFONT=10]="BASEFONT",l[l.BGSOUND=11]="BGSOUND",l[l.BIG=12]="BIG",l[l.BLOCKQUOTE=13]="BLOCKQUOTE",l[l.BODY=14]="BODY",l[l.BR=15]="BR",l[l.BUTTON=16]="BUTTON",l[l.CAPTION=17]="CAPTION",l[l.CENTER=18]="CENTER",l[l.CODE=19]="CODE",l[l.COL=20]="COL",l[l.COLGROUP=21]="COLGROUP",l[l.DD=22]="DD",l[l.DESC=23]="DESC",l[l.DETAILS=24]="DETAILS",l[l.DIALOG=25]="DIALOG",l[l.DIR=26]="DIR",l[l.DIV=27]="DIV",l[l.DL=28]="DL",l[l.DT=29]="DT",l[l.EM=30]="EM",l[l.EMBED=31]="EMBED",l[l.FIELDSET=32]="FIELDSET",l[l.FIGCAPTION=33]="FIGCAPTION",l[l.FIGURE=34]="FIGURE",l[l.FONT=35]="FONT",l[l.FOOTER=36]="FOOTER",l[l.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",l[l.FORM=38]="FORM",l[l.FRAME=39]="FRAME",l[l.FRAMESET=40]="FRAMESET",l[l.H1=41]="H1",l[l.H2=42]="H2",l[l.H3=43]="H3",l[l.H4=44]="H4",l[l.H5=45]="H5",l[l.H6=46]="H6",l[l.HEAD=47]="HEAD",l[l.HEADER=48]="HEADER",l[l.HGROUP=49]="HGROUP",l[l.HR=50]="HR",l[l.HTML=51]="HTML",l[l.I=52]="I",l[l.IMG=53]="IMG",l[l.IMAGE=54]="IMAGE",l[l.INPUT=55]="INPUT",l[l.IFRAME=56]="IFRAME",l[l.KEYGEN=57]="KEYGEN",l[l.LABEL=58]="LABEL",l[l.LI=59]="LI",l[l.LINK=60]="LINK",l[l.LISTING=61]="LISTING",l[l.MAIN=62]="MAIN",l[l.MALIGNMARK=63]="MALIGNMARK",l[l.MARQUEE=64]="MARQUEE",l[l.MATH=65]="MATH",l[l.MENU=66]="MENU",l[l.META=67]="META",l[l.MGLYPH=68]="MGLYPH",l[l.MI=69]="MI",l[l.MO=70]="MO",l[l.MN=71]="MN",l[l.MS=72]="MS",l[l.MTEXT=73]="MTEXT",l[l.NAV=74]="NAV",l[l.NOBR=75]="NOBR",l[l.NOFRAMES=76]="NOFRAMES",l[l.NOEMBED=77]="NOEMBED",l[l.NOSCRIPT=78]="NOSCRIPT",l[l.OBJECT=79]="OBJECT",l[l.OL=80]="OL",l[l.OPTGROUP=81]="OPTGROUP",l[l.OPTION=82]="OPTION",l[l.P=83]="P",l[l.PARAM=84]="PARAM",l[l.PLAINTEXT=85]="PLAINTEXT",l[l.PRE=86]="PRE",l[l.RB=87]="RB",l[l.RP=88]="RP",l[l.RT=89]="RT",l[l.RTC=90]="RTC",l[l.RUBY=91]="RUBY",l[l.S=92]="S",l[l.SCRIPT=93]="SCRIPT",l[l.SECTION=94]="SECTION",l[l.SELECT=95]="SELECT",l[l.SOURCE=96]="SOURCE",l[l.SMALL=97]="SMALL",l[l.SPAN=98]="SPAN",l[l.STRIKE=99]="STRIKE",l[l.STRONG=100]="STRONG",l[l.STYLE=101]="STYLE",l[l.SUB=102]="SUB",l[l.SUMMARY=103]="SUMMARY",l[l.SUP=104]="SUP",l[l.TABLE=105]="TABLE",l[l.TBODY=106]="TBODY",l[l.TEMPLATE=107]="TEMPLATE",l[l.TEXTAREA=108]="TEXTAREA",l[l.TFOOT=109]="TFOOT",l[l.TD=110]="TD",l[l.TH=111]="TH",l[l.THEAD=112]="THEAD",l[l.TITLE=113]="TITLE",l[l.TR=114]="TR",l[l.TRACK=115]="TRACK",l[l.TT=116]="TT",l[l.U=117]="U",l[l.UL=118]="UL",l[l.SVG=119]="SVG",l[l.VAR=120]="VAR",l[l.WBR=121]="WBR",l[l.XMP=122]="XMP";var Tr=new Map([[wr.A,Er.A],[wr.ADDRESS,Er.ADDRESS],[wr.ANNOTATION_XML,Er.ANNOTATION_XML],[wr.APPLET,Er.APPLET],[wr.AREA,Er.AREA],[wr.ARTICLE,Er.ARTICLE],[wr.ASIDE,Er.ASIDE],[wr.B,Er.B],[wr.BASE,Er.BASE],[wr.BASEFONT,Er.BASEFONT],[wr.BGSOUND,Er.BGSOUND],[wr.BIG,Er.BIG],[wr.BLOCKQUOTE,Er.BLOCKQUOTE],[wr.BODY,Er.BODY],[wr.BR,Er.BR],[wr.BUTTON,Er.BUTTON],[wr.CAPTION,Er.CAPTION],[wr.CENTER,Er.CENTER],[wr.CODE,Er.CODE],[wr.COL,Er.COL],[wr.COLGROUP,Er.COLGROUP],[wr.DD,Er.DD],[wr.DESC,Er.DESC],[wr.DETAILS,Er.DETAILS],[wr.DIALOG,Er.DIALOG],[wr.DIR,Er.DIR],[wr.DIV,Er.DIV],[wr.DL,Er.DL],[wr.DT,Er.DT],[wr.EM,Er.EM],[wr.EMBED,Er.EMBED],[wr.FIELDSET,Er.FIELDSET],[wr.FIGCAPTION,Er.FIGCAPTION],[wr.FIGURE,Er.FIGURE],[wr.FONT,Er.FONT],[wr.FOOTER,Er.FOOTER],[wr.FOREIGN_OBJECT,Er.FOREIGN_OBJECT],[wr.FORM,Er.FORM],[wr.FRAME,Er.FRAME],[wr.FRAMESET,Er.FRAMESET],[wr.H1,Er.H1],[wr.H2,Er.H2],[wr.H3,Er.H3],[wr.H4,Er.H4],[wr.H5,Er.H5],[wr.H6,Er.H6],[wr.HEAD,Er.HEAD],[wr.HEADER,Er.HEADER],[wr.HGROUP,Er.HGROUP],[wr.HR,Er.HR],[wr.HTML,Er.HTML],[wr.I,Er.I],[wr.IMG,Er.IMG],[wr.IMAGE,Er.IMAGE],[wr.INPUT,Er.INPUT],[wr.IFRAME,Er.IFRAME],[wr.KEYGEN,Er.KEYGEN],[wr.LABEL,Er.LABEL],[wr.LI,Er.LI],[wr.LINK,Er.LINK],[wr.LISTING,Er.LISTING],[wr.MAIN,Er.MAIN],[wr.MALIGNMARK,Er.MALIGNMARK],[wr.MARQUEE,Er.MARQUEE],[wr.MATH,Er.MATH],[wr.MENU,Er.MENU],[wr.META,Er.META],[wr.MGLYPH,Er.MGLYPH],[wr.MI,Er.MI],[wr.MO,Er.MO],[wr.MN,Er.MN],[wr.MS,Er.MS],[wr.MTEXT,Er.MTEXT],[wr.NAV,Er.NAV],[wr.NOBR,Er.NOBR],[wr.NOFRAMES,Er.NOFRAMES],[wr.NOEMBED,Er.NOEMBED],[wr.NOSCRIPT,Er.NOSCRIPT],[wr.OBJECT,Er.OBJECT],[wr.OL,Er.OL],[wr.OPTGROUP,Er.OPTGROUP],[wr.OPTION,Er.OPTION],[wr.P,Er.P],[wr.PARAM,Er.PARAM],[wr.PLAINTEXT,Er.PLAINTEXT],[wr.PRE,Er.PRE],[wr.RB,Er.RB],[wr.RP,Er.RP],[wr.RT,Er.RT],[wr.RTC,Er.RTC],[wr.RUBY,Er.RUBY],[wr.S,Er.S],[wr.SCRIPT,Er.SCRIPT],[wr.SECTION,Er.SECTION],[wr.SELECT,Er.SELECT],[wr.SOURCE,Er.SOURCE],[wr.SMALL,Er.SMALL],[wr.SPAN,Er.SPAN],[wr.STRIKE,Er.STRIKE],[wr.STRONG,Er.STRONG],[wr.STYLE,Er.STYLE],[wr.SUB,Er.SUB],[wr.SUMMARY,Er.SUMMARY],[wr.SUP,Er.SUP],[wr.TABLE,Er.TABLE],[wr.TBODY,Er.TBODY],[wr.TEMPLATE,Er.TEMPLATE],[wr.TEXTAREA,Er.TEXTAREA],[wr.TFOOT,Er.TFOOT],[wr.TD,Er.TD],[wr.TH,Er.TH],[wr.THEAD,Er.THEAD],[wr.TITLE,Er.TITLE],[wr.TR,Er.TR],[wr.TRACK,Er.TRACK],[wr.TT,Er.TT],[wr.U,Er.U],[wr.UL,Er.UL],[wr.SVG,Er.SVG],[wr.VAR,Er.VAR],[wr.WBR,Er.WBR],[wr.XMP,Er.XMP]]);function Ar(t){return null!==(t=Tr.get(t))&&void 0!==t?t:Er.UNKNOWN}var Or=Er,Sr=(Cr(l={},yr.HTML,new Set([Or.ADDRESS,Or.APPLET,Or.AREA,Or.ARTICLE,Or.ASIDE,Or.BASE,Or.BASEFONT,Or.BGSOUND,Or.BLOCKQUOTE,Or.BODY,Or.BR,Or.BUTTON,Or.CAPTION,Or.CENTER,Or.COL,Or.COLGROUP,Or.DD,Or.DETAILS,Or.DIR,Or.DIV,Or.DL,Or.DT,Or.EMBED,Or.FIELDSET,Or.FIGCAPTION,Or.FIGURE,Or.FOOTER,Or.FORM,Or.FRAME,Or.FRAMESET,Or.H1,Or.H2,Or.H3,Or.H4,Or.H5,Or.H6,Or.HEAD,Or.HEADER,Or.HGROUP,Or.HR,Or.HTML,Or.IFRAME,Or.IMG,Or.INPUT,Or.LI,Or.LINK,Or.LISTING,Or.MAIN,Or.MARQUEE,Or.MENU,Or.META,Or.NAV,Or.NOEMBED,Or.NOFRAMES,Or.NOSCRIPT,Or.OBJECT,Or.OL,Or.P,Or.PARAM,Or.PLAINTEXT,Or.PRE,Or.SCRIPT,Or.SECTION,Or.SELECT,Or.SOURCE,Or.STYLE,Or.SUMMARY,Or.TABLE,Or.TBODY,Or.TD,Or.TEMPLATE,Or.TEXTAREA,Or.TFOOT,Or.TH,Or.THEAD,Or.TITLE,Or.TR,Or.TRACK,Or.UL,Or.WBR,Or.XMP])),Cr(l,yr.MATHML,new Set([Or.MI,Or.MO,Or.MN,Or.MS,Or.MTEXT,Or.ANNOTATION_XML])),Cr(l,yr.SVG,new Set([Or.TITLE,Or.FOREIGN_OBJECT,Or.DESC])),Cr(l,yr.XLINK,new Set),Cr(l,yr.XML,new Set),Cr(l,yr.XMLNS,new Set),l);function kr(t){return t===Or.H1||t===Or.H2||t===Or.H3||t===Or.H4||t===Or.H5||t===Or.H6}var Pr=new Set([wr.STYLE,wr.SCRIPT,wr.XMP,wr.IFRAME,wr.NOEMBED,wr.NOFRAMES,wr.PLAINTEXT]);function jr(t,e){return Pr.has(t)||e&&t===wr.NOSCRIPT}var Nr,Lr=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);(l=Nr=Nr||{})[l.DATA=0]="DATA",l[l.RCDATA=1]="RCDATA",l[l.RAWTEXT=2]="RAWTEXT",l[l.SCRIPT_DATA=3]="SCRIPT_DATA",l[l.PLAINTEXT=4]="PLAINTEXT",l[l.TAG_OPEN=5]="TAG_OPEN",l[l.END_TAG_OPEN=6]="END_TAG_OPEN",l[l.TAG_NAME=7]="TAG_NAME",l[l.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",l[l.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",l[l.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",l[l.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",l[l.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",l[l.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",l[l.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",l[l.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",l[l.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",l[l.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",l[l.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",l[l.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",l[l.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",l[l.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",l[l.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",l[l.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",l[l.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",l[l.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",l[l.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",l[l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",l[l.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",l[l.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",l[l.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",l[l.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",l[l.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",l[l.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",l[l.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",l[l.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",l[l.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",l[l.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",l[l.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",l[l.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",l[l.BOGUS_COMMENT=40]="BOGUS_COMMENT",l[l.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",l[l.COMMENT_START=42]="COMMENT_START",l[l.COMMENT_START_DASH=43]="COMMENT_START_DASH",l[l.COMMENT=44]="COMMENT",l[l.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",l[l.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",l[l.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",l[l.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",l[l.COMMENT_END_DASH=49]="COMMENT_END_DASH",l[l.COMMENT_END=50]="COMMENT_END",l[l.COMMENT_END_BANG=51]="COMMENT_END_BANG",l[l.DOCTYPE=52]="DOCTYPE",l[l.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",l[l.DOCTYPE_NAME=54]="DOCTYPE_NAME",l[l.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",l[l.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",l[l.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",l[l.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",l[l.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",l[l.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",l[l.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",l[l.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",l[l.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",l[l.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",l[l.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",l[l.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",l[l.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",l[l.CDATA_SECTION=68]="CDATA_SECTION",l[l.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",l[l.CDATA_SECTION_END=70]="CDATA_SECTION_END",l[l.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",l[l.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",l[l.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",l[l.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",l[l.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",l[l.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",l[l.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",l[l.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END";var Dr={DATA:Nr.DATA,RCDATA:Nr.RCDATA,RAWTEXT:Nr.RAWTEXT,SCRIPT_DATA:Nr.SCRIPT_DATA,PLAINTEXT:Nr.PLAINTEXT,CDATA_SECTION:Nr.CDATA_SECTION};function Ir(t){return t>=cr.DIGIT_0&&t<=cr.DIGIT_9}function Rr(t){return t>=cr.LATIN_CAPITAL_A&&t<=cr.LATIN_CAPITAL_Z}function Mr(t){return function(t){return t>=cr.LATIN_SMALL_A&&t<=cr.LATIN_SMALL_Z}(t)||Rr(t)}function Br(t){return Mr(t)||Ir(t)}function Fr(t){return t>=cr.LATIN_CAPITAL_A&&t<=cr.LATIN_CAPITAL_F}function Ur(t){return t>=cr.LATIN_SMALL_A&&t<=cr.LATIN_SMALL_F}function Hr(t){return t===cr.SPACE||t===cr.LINE_FEED||t===cr.TABULATION||t===cr.FORM_FEED}function Vr(t){return Hr(t)||t===cr.SOLIDUS||t===cr.GREATER_THAN_SIGN}var qr=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.options=e,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=Nr.DATA,this.returnState=Nr.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new mr(n),this.currentLocation=this.getCurrentLocation(-1)}return function(t,e){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"_err",value:function(t){var e,n;null!==(n=(e=this.handler).onParseError)&&void 0!==n&&n.call(e,this.preprocessor.getError(t))}},{key:"getCurrentLocation",value:function(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}},{key:"_runParsingLoop",value:function(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;var t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}},{key:"pause",value:function(){this.paused=!0}},{key:"resume",value:function(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,this.inLoop||(this._runParsingLoop(),this.paused||null!=t&&t())}},{key:"write",value:function(t,e,n){this.active=!0,this.preprocessor.write(t,e),this._runParsingLoop(),this.paused||null!=n&&n()}},{key:"insertHtmlAtCurrentPos",value:function(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}},{key:"_ensureHibernation",value:function(){return!(!this.preprocessor.endOfChunkHit||(this._unconsume(this.consumedAfterSnapshot),this.active=!1))}},{key:"_consume",value:function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}},{key:"_unconsume",value:function(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}},{key:"_reconsumeInState",value:function(t,e){this.state=t,this._callState(e)}},{key:"_advanceBy",value:function(t){this.consumedAfterSnapshot+=t;for(var e=0;e<t;e++)this.preprocessor.advance()}},{key:"_consumeSequenceIfMatch",value:function(t,e){return!!this.preprocessor.startsWith(t,e)&&(this._advanceBy(t.length-1),!0)}},{key:"_createStartTagToken",value:function(){this.currentToken={type:gr.START_TAG,tagName:"",tagID:Er.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}},{key:"_createEndTagToken",value:function(){this.currentToken={type:gr.END_TAG,tagName:"",tagID:Er.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}},{key:"_createCommentToken",value:function(t){this.currentToken={type:gr.COMMENT,data:"",location:this.getCurrentLocation(t)}}},{key:"_createDoctypeToken",value:function(t){this.currentToken={type:gr.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}},{key:"_createCharacterToken",value:function(t,e){this.currentCharacterToken={type:t,chars:e,location:this.currentLocation}}},{key:"_createAttr",value:function(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}},{key:"_leaveAttrName",value:function(){var t,e=this.currentToken;null===vr(e,this.currentAttr.name)?(e.attrs.push(this.currentAttr),e.location&&this.currentLocation&&((null!==(e=(t=e.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(ur.duplicateAttribute)}},{key:"_leaveAttrValue",value:function(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}},{key:"prepareToken",value:function(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}},{key:"emitCurrentTagToken",value:function(){var t=this.currentToken;this.prepareToken(t),t.tagID=Ar(t.tagName),t.type===gr.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(0<t.attrs.length&&this._err(ur.endTagWithAttributes),t.selfClosing&&this._err(ur.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}},{key:"emitCurrentComment",value:function(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}},{key:"emitCurrentDoctype",value:function(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}},{key:"_emitCurrentCharacterToken",value:function(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case gr.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case gr.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case gr.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}},{key:"_emitEOFToken",value:function(){var t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:gr.EOF,location:t}),this.active=!1}},{key:"_appendCharToCurrentCharacterToken",value:function(t,e){if(this.currentCharacterToken){if(this.currentCharacterToken.type===t)return void(this.currentCharacterToken.chars+=e);this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(t,e)}},{key:"_emitCodePoint",value:function(t){var e=Hr(t)?gr.WHITESPACE_CHARACTER:t===cr.NULL?gr.NULL_CHARACTER:gr.CHARACTER;this._appendCharToCurrentCharacterToken(e,String.fromCodePoint(t))}},{key:"_emitChars",value:function(t){this._appendCharToCurrentCharacterToken(gr.CHARACTER,t)}},{key:"_matchNamedCharacterReference",value:function(t){for(var e=null,n=0,r=!1,o=0,i=xr.htmlDecodeTree[0];0<=o&&!((o=Object(xr.determineBranch)(xr.htmlDecodeTree,i,o+1,t))<0);t=this._consume()){n+=1;var a=(i=xr.htmlDecodeTree[o])&xr.BinTrieFlags.VALUE_LENGTH;if(a&&(a=(a>>14)-1,t!==cr.SEMICOLON&&this._isCharacterReferenceInAttribute()&&function(t){return t===cr.EQUALS_SIGN||Br(t)}(this.preprocessor.peek(1))?(e=[cr.AMPERSAND],o+=a):(e=0==a?[xr.htmlDecodeTree[o]&~xr.BinTrieFlags.VALUE_LENGTH]:1==a?[xr.htmlDecodeTree[++o]]:[xr.htmlDecodeTree[++o],xr.htmlDecodeTree[++o]],n=0,r=t!==cr.SEMICOLON),0==a)){this._consume();break}}return this._unconsume(n),r&&!this.preprocessor.endOfChunkHit&&this._err(ur.missingSemicolonAfterCharacterReference),this._unconsume(1),e}},{key:"_isCharacterReferenceInAttribute",value:function(){return this.returnState===Nr.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===Nr.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===Nr.ATTRIBUTE_VALUE_UNQUOTED}},{key:"_flushCodePointConsumedAsCharacterReference",value:function(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}},{key:"_callState",value:function(t){switch(this.state){case Nr.DATA:this._stateData(t);break;case Nr.RCDATA:this._stateRcdata(t);break;case Nr.RAWTEXT:this._stateRawtext(t);break;case Nr.SCRIPT_DATA:this._stateScriptData(t);break;case Nr.PLAINTEXT:this._statePlaintext(t);break;case Nr.TAG_OPEN:this._stateTagOpen(t);break;case Nr.END_TAG_OPEN:this._stateEndTagOpen(t);break;case Nr.TAG_NAME:this._stateTagName(t);break;case Nr.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(t);break;case Nr.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(t);break;case Nr.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(t);break;case Nr.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(t);break;case Nr.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(t);break;case Nr.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(t);break;case Nr.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(t);break;case Nr.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(t);break;case Nr.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(t);break;case Nr.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(t);break;case Nr.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(t);break;case Nr.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(t);break;case Nr.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(t);break;case Nr.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(t);break;case Nr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(t);break;case Nr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(t);break;case Nr.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscapeStart(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(t);break;case Nr.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(t);break;case Nr.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(t);break;case Nr.ATTRIBUTE_NAME:this._stateAttributeName(t);break;case Nr.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(t);break;case Nr.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(t);break;case Nr.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(t);break;case Nr.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(t);break;case Nr.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(t);break;case Nr.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(t);break;case Nr.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(t);break;case Nr.BOGUS_COMMENT:this._stateBogusComment(t);break;case Nr.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(t);break;case Nr.COMMENT_START:this._stateCommentStart(t);break;case Nr.COMMENT_START_DASH:this._stateCommentStartDash(t);break;case Nr.COMMENT:this._stateComment(t);break;case Nr.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(t);break;case Nr.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(t);break;case Nr.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(t);break;case Nr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(t);break;case Nr.COMMENT_END_DASH:this._stateCommentEndDash(t);break;case Nr.COMMENT_END:this._stateCommentEnd(t);break;case Nr.COMMENT_END_BANG:this._stateCommentEndBang(t);break;case Nr.DOCTYPE:this._stateDoctype(t);break;case Nr.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(t);break;case Nr.DOCTYPE_NAME:this._stateDoctypeName(t);break;case Nr.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(t);break;case Nr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(t);break;case Nr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(t);break;case Nr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(t);break;case Nr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(t);break;case Nr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(t);break;case Nr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break;case Nr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(t);break;case Nr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(t);break;case Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(t);break;case Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(t);break;case Nr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(t);break;case Nr.BOGUS_DOCTYPE:this._stateBogusDoctype(t);break;case Nr.CDATA_SECTION:this._stateCdataSection(t);break;case Nr.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(t);break;case Nr.CDATA_SECTION_END:this._stateCdataSectionEnd(t);break;case Nr.CHARACTER_REFERENCE:this._stateCharacterReference(t);break;case Nr.NAMED_CHARACTER_REFERENCE:this._stateNamedCharacterReference(t);break;case Nr.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(t);break;case Nr.NUMERIC_CHARACTER_REFERENCE:this._stateNumericCharacterReference(t);break;case Nr.HEXADEMICAL_CHARACTER_REFERENCE_START:this._stateHexademicalCharacterReferenceStart(t);break;case Nr.HEXADEMICAL_CHARACTER_REFERENCE:this._stateHexademicalCharacterReference(t);break;case Nr.DECIMAL_CHARACTER_REFERENCE:this._stateDecimalCharacterReference(t);break;case Nr.NUMERIC_CHARACTER_REFERENCE_END:this._stateNumericCharacterReferenceEnd(t);break;default:throw new Error("Unknown state")}}},{key:"_stateData",value:function(t){switch(t){case cr.LESS_THAN_SIGN:this.state=Nr.TAG_OPEN;break;case cr.AMPERSAND:this.returnState=Nr.DATA,this.state=Nr.CHARACTER_REFERENCE;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitCodePoint(t);break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateRcdata",value:function(t){switch(t){case cr.AMPERSAND:this.returnState=Nr.RCDATA,this.state=Nr.CHARACTER_REFERENCE;break;case cr.LESS_THAN_SIGN:this.state=Nr.RCDATA_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("�");break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateRawtext",value:function(t){switch(t){case cr.LESS_THAN_SIGN:this.state=Nr.RAWTEXT_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("�");break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateScriptData",value:function(t){switch(t){case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("�");break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_statePlaintext",value:function(t){switch(t){case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("�");break;case cr.EOF:this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateTagOpen",value:function(t){if(Mr(t))this._createStartTagToken(),this.state=Nr.TAG_NAME,this._stateTagName(t);else switch(t){case cr.EXCLAMATION_MARK:this.state=Nr.MARKUP_DECLARATION_OPEN;break;case cr.SOLIDUS:this.state=Nr.END_TAG_OPEN;break;case cr.QUESTION_MARK:this._err(ur.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=Nr.BOGUS_COMMENT,this._stateBogusComment(t);break;case cr.EOF:this._err(ur.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(ur.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=Nr.DATA,this._stateData(t)}}},{key:"_stateEndTagOpen",value:function(t){if(Mr(t))this._createEndTagToken(),this.state=Nr.TAG_NAME,this._stateTagName(t);else switch(t){case cr.GREATER_THAN_SIGN:this._err(ur.missingEndTagName),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(ur.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=Nr.BOGUS_COMMENT,this._stateBogusComment(t)}}},{key:"_stateTagName",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BEFORE_ATTRIBUTE_NAME;break;case cr.SOLIDUS:this.state=Nr.SELF_CLOSING_START_TAG;break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.tagName+="�";break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:e.tagName+=String.fromCodePoint(Rr(t)?t+32:t)}}},{key:"_stateRcdataLessThanSign",value:function(t){t===cr.SOLIDUS?this.state=Nr.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=Nr.RCDATA,this._stateRcdata(t))}},{key:"_stateRcdataEndTagOpen",value:function(t){Mr(t)?(this.state=Nr.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=Nr.RCDATA,this._stateRcdata(t))}},{key:"handleSpecialEndTag",value:function(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=Nr.BEFORE_ATTRIBUTE_NAME,!1;case cr.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=Nr.SELF_CLOSING_START_TAG,!1;case cr.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=Nr.DATA,!1;default:return!this._ensureHibernation()}}},{key:"_stateRcdataEndTagName",value:function(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Nr.RCDATA,this._stateRcdata(t))}},{key:"_stateRawtextLessThanSign",value:function(t){t===cr.SOLIDUS?this.state=Nr.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=Nr.RAWTEXT,this._stateRawtext(t))}},{key:"_stateRawtextEndTagOpen",value:function(t){Mr(t)?(this.state=Nr.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=Nr.RAWTEXT,this._stateRawtext(t))}},{key:"_stateRawtextEndTagName",value:function(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Nr.RAWTEXT,this._stateRawtext(t))}},{key:"_stateScriptDataLessThanSign",value:function(t){switch(t){case cr.SOLIDUS:this.state=Nr.SCRIPT_DATA_END_TAG_OPEN;break;case cr.EXCLAMATION_MARK:this.state=Nr.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=Nr.SCRIPT_DATA,this._stateScriptData(t)}}},{key:"_stateScriptDataEndTagOpen",value:function(t){Mr(t)?(this.state=Nr.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=Nr.SCRIPT_DATA,this._stateScriptData(t))}},{key:"_stateScriptDataEndTagName",value:function(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Nr.SCRIPT_DATA,this._stateScriptData(t))}},{key:"_stateScriptDataEscapeStart",value:function(t){t===cr.HYPHEN_MINUS?(this.state=Nr.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=Nr.SCRIPT_DATA,this._stateScriptData(t))}},{key:"_stateScriptDataEscapeStartDash",value:function(t){t===cr.HYPHEN_MINUS?(this.state=Nr.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=Nr.SCRIPT_DATA,this._stateScriptData(t))}},{key:"_stateScriptDataEscaped",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("�");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateScriptDataEscapedDash",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.state=Nr.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}},{key:"_stateScriptDataEscapedDashDash",value:function(t){switch(t){case cr.HYPHEN_MINUS:this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case cr.GREATER_THAN_SIGN:this.state=Nr.SCRIPT_DATA,this._emitChars(">");break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.state=Nr.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nr.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}},{key:"_stateScriptDataEscapedLessThanSign",value:function(t){t===cr.SOLIDUS?this.state=Nr.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Mr(t)?(this._emitChars("<"),this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=Nr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}},{key:"_stateScriptDataEscapedEndTagOpen",value:function(t){Mr(t)?(this.state=Nr.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=Nr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}},{key:"_stateScriptDataEscapedEndTagName",value:function(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=Nr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}},{key:"_stateScriptDataDoubleEscapeStart",value:function(t){if(this.preprocessor.startsWith("script",!1)&&Vr(this.preprocessor.peek(6))){this._emitCodePoint(t);for(var e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=Nr.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}},{key:"_stateScriptDataDoubleEscaped",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._emitChars("�");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateScriptDataDoubleEscapedDash",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}},{key:"_stateScriptDataDoubleEscapedDashDash",value:function(t){switch(t){case cr.HYPHEN_MINUS:this._emitChars("-");break;case cr.LESS_THAN_SIGN:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case cr.GREATER_THAN_SIGN:this.state=Nr.SCRIPT_DATA,this._emitChars(">");break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case cr.EOF:this._err(ur.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}},{key:"_stateScriptDataDoubleEscapedLessThanSign",value:function(t){t===cr.SOLIDUS?(this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}},{key:"_stateScriptDataDoubleEscapeEnd",value:function(t){if(this.preprocessor.startsWith("script",!1)&&Vr(this.preprocessor.peek(6))){this._emitCodePoint(t);for(var e=0;e<6;e++)this._emitCodePoint(this._consume());this.state=Nr.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=Nr.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}},{key:"_stateBeforeAttributeName",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.SOLIDUS:case cr.GREATER_THAN_SIGN:case cr.EOF:this.state=Nr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case cr.EQUALS_SIGN:this._err(ur.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=Nr.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=Nr.ATTRIBUTE_NAME,this._stateAttributeName(t)}}},{key:"_stateAttributeName",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:case cr.SOLIDUS:case cr.GREATER_THAN_SIGN:case cr.EOF:this._leaveAttrName(),this.state=Nr.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break;case cr.EQUALS_SIGN:this._leaveAttrName(),this.state=Nr.BEFORE_ATTRIBUTE_VALUE;break;case cr.QUOTATION_MARK:case cr.APOSTROPHE:case cr.LESS_THAN_SIGN:this._err(ur.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(Rr(t)?t+32:t)}}},{key:"_stateAfterAttributeName",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.SOLIDUS:this.state=Nr.SELF_CLOSING_START_TAG;break;case cr.EQUALS_SIGN:this.state=Nr.BEFORE_ATTRIBUTE_VALUE;break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=Nr.ATTRIBUTE_NAME,this._stateAttributeName(t)}}},{key:"_stateBeforeAttributeValue",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.QUOTATION_MARK:this.state=Nr.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case cr.APOSTROPHE:this.state=Nr.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingAttributeValue),this.state=Nr.DATA,this.emitCurrentTagToken();break;default:this.state=Nr.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}},{key:"_stateAttributeValueDoubleQuoted",value:function(t){switch(t){case cr.QUOTATION_MARK:this.state=Nr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case cr.AMPERSAND:this.returnState=Nr.ATTRIBUTE_VALUE_DOUBLE_QUOTED,this.state=Nr.CHARACTER_REFERENCE;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.currentAttr.value+="�";break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}},{key:"_stateAttributeValueSingleQuoted",value:function(t){switch(t){case cr.APOSTROPHE:this.state=Nr.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case cr.AMPERSAND:this.returnState=Nr.ATTRIBUTE_VALUE_SINGLE_QUOTED,this.state=Nr.CHARACTER_REFERENCE;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.currentAttr.value+="�";break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}},{key:"_stateAttributeValueUnquoted",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this._leaveAttrValue(),this.state=Nr.BEFORE_ATTRIBUTE_NAME;break;case cr.AMPERSAND:this.returnState=Nr.ATTRIBUTE_VALUE_UNQUOTED,this.state=Nr.CHARACTER_REFERENCE;break;case cr.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this.currentAttr.value+="�";break;case cr.QUOTATION_MARK:case cr.APOSTROPHE:case cr.LESS_THAN_SIGN:case cr.EQUALS_SIGN:case cr.GRAVE_ACCENT:this._err(ur.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(t)}}},{key:"_stateAfterAttributeValueQuoted",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this._leaveAttrValue(),this.state=Nr.BEFORE_ATTRIBUTE_NAME;break;case cr.SOLIDUS:this._leaveAttrValue(),this.state=Nr.SELF_CLOSING_START_TAG;break;case cr.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this._err(ur.missingWhitespaceBetweenAttributes),this.state=Nr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}},{key:"_stateSelfClosingStartTag",value:function(t){switch(t){case cr.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=Nr.DATA,this.emitCurrentTagToken();break;case cr.EOF:this._err(ur.eofInTag),this._emitEOFToken();break;default:this._err(ur.unexpectedSolidusInTag),this.state=Nr.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}},{key:"_stateBogusComment",value:function(t){var e=this.currentToken;switch(t){case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentComment(e);break;case cr.EOF:this.emitCurrentComment(e),this._emitEOFToken();break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.data+="�";break;default:e.data+=String.fromCodePoint(t)}}},{key:"_stateMarkupDeclarationOpen",value:function(t){this._consumeSequenceIfMatch("--",!0)?(this._createCommentToken(3),this.state=Nr.COMMENT_START):this._consumeSequenceIfMatch("doctype",!1)?(this.currentLocation=this.getCurrentLocation(8),this.state=Nr.DOCTYPE):this._consumeSequenceIfMatch("[CDATA[",!0)?this.inForeignNode?this.state=Nr.CDATA_SECTION:(this._err(ur.cdataInHtmlContent),this._createCommentToken(8),this.currentToken.data="[CDATA[",this.state=Nr.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ur.incorrectlyOpenedComment),this._createCommentToken(2),this.state=Nr.BOGUS_COMMENT,this._stateBogusComment(t))}},{key:"_stateCommentStart",value:function(t){switch(t){case cr.HYPHEN_MINUS:this.state=Nr.COMMENT_START_DASH;break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptClosingOfEmptyComment),this.state=Nr.DATA;var e=this.currentToken;this.emitCurrentComment(e);break;default:this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateCommentStartDash",value:function(t){var e=this.currentToken;switch(t){case cr.HYPHEN_MINUS:this.state=Nr.COMMENT_END;break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptClosingOfEmptyComment),this.state=Nr.DATA,this.emitCurrentComment(e);break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="-",this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateComment",value:function(t){var e=this.currentToken;switch(t){case cr.HYPHEN_MINUS:this.state=Nr.COMMENT_END_DASH;break;case cr.LESS_THAN_SIGN:e.data+="<",this.state=Nr.COMMENT_LESS_THAN_SIGN;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.data+="�";break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+=String.fromCodePoint(t)}}},{key:"_stateCommentLessThanSign",value:function(t){var e=this.currentToken;switch(t){case cr.EXCLAMATION_MARK:e.data+="!",this.state=Nr.COMMENT_LESS_THAN_SIGN_BANG;break;case cr.LESS_THAN_SIGN:e.data+="<";break;default:this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateCommentLessThanSignBang",value:function(t){t===cr.HYPHEN_MINUS?this.state=Nr.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=Nr.COMMENT,this._stateComment(t))}},{key:"_stateCommentLessThanSignBangDash",value:function(t){t===cr.HYPHEN_MINUS?this.state=Nr.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=Nr.COMMENT_END_DASH,this._stateCommentEndDash(t))}},{key:"_stateCommentLessThanSignBangDashDash",value:function(t){t!==cr.GREATER_THAN_SIGN&&t!==cr.EOF&&this._err(ur.nestedComment),this.state=Nr.COMMENT_END,this._stateCommentEnd(t)}},{key:"_stateCommentEndDash",value:function(t){var e=this.currentToken;switch(t){case cr.HYPHEN_MINUS:this.state=Nr.COMMENT_END;break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="-",this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateCommentEnd",value:function(t){var e=this.currentToken;switch(t){case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentComment(e);break;case cr.EXCLAMATION_MARK:this.state=Nr.COMMENT_END_BANG;break;case cr.HYPHEN_MINUS:e.data+="-";break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="--",this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateCommentEndBang",value:function(t){var e=this.currentToken;switch(t){case cr.HYPHEN_MINUS:e.data+="--!",this.state=Nr.COMMENT_END_DASH;break;case cr.GREATER_THAN_SIGN:this._err(ur.incorrectlyClosedComment),this.state=Nr.DATA,this.emitCurrentComment(e);break;case cr.EOF:this._err(ur.eofInComment),this.emitCurrentComment(e),this._emitEOFToken();break;default:e.data+="--!",this.state=Nr.COMMENT,this._stateComment(t)}}},{key:"_stateDoctype",value:function(t){switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BEFORE_DOCTYPE_NAME;break;case cr.GREATER_THAN_SIGN:this.state=Nr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break;case cr.EOF:this._err(ur.eofInDoctype),this._createDoctypeToken(null);var e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingWhitespaceBeforeDoctypeName),this.state=Nr.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}},{key:"_stateBeforeDoctypeName",value:function(t){if(Rr(t))this._createDoctypeToken(String.fromCharCode(t+32)),this.state=Nr.DOCTYPE_NAME;else switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.NULL:this._err(ur.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=Nr.DOCTYPE_NAME;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypeName),this._createDoctypeToken(null);var e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),this._createDoctypeToken(null),(e=this.currentToken).forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=Nr.DOCTYPE_NAME}}},{key:"_stateDoctypeName",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.AFTER_DOCTYPE_NAME;break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.name+="�";break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.name+=String.fromCodePoint(Rr(t)?t+32:t)}}},{key:"_stateAfterDoctypeName",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._consumeSequenceIfMatch("public",!1)?this.state=Nr.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch("system",!1)?this.state=Nr.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ur.invalidCharacterSequenceAfterDoctypeName),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}},{key:"_stateAfterDoctypePublicKeyword",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case cr.QUOTATION_MARK:this._err(ur.missingWhitespaceAfterDoctypePublicKeyword),e.publicId="",this.state=Nr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:this._err(ur.missingWhitespaceAfterDoctypePublicKeyword),e.publicId="",this.state=Nr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypePublicIdentifier),e.forceQuirks=!0,this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypePublicIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateBeforeDoctypePublicIdentifier",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.QUOTATION_MARK:e.publicId="",this.state=Nr.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:e.publicId="",this.state=Nr.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypePublicIdentifier),e.forceQuirks=!0,this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypePublicIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateDoctypePublicIdentifierDoubleQuoted",value:function(t){var e=this.currentToken;switch(t){case cr.QUOTATION_MARK:this.state=Nr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.publicId+="�";break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptDoctypePublicIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.publicId+=String.fromCodePoint(t)}}},{key:"_stateDoctypePublicIdentifierSingleQuoted",value:function(t){var e=this.currentToken;switch(t){case cr.APOSTROPHE:this.state=Nr.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.publicId+="�";break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptDoctypePublicIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.publicId+=String.fromCodePoint(t)}}},{key:"_stateAfterDoctypePublicIdentifier",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case cr.GREATER_THAN_SIGN:this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.QUOTATION_MARK:this._err(ur.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:this._err(ur.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateBetweenDoctypePublicAndSystemIdentifiers",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.QUOTATION_MARK:e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateAfterDoctypeSystemKeyword",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:this.state=Nr.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case cr.QUOTATION_MARK:this._err(ur.missingWhitespaceAfterDoctypeSystemKeyword),e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:this._err(ur.missingWhitespaceAfterDoctypeSystemKeyword),e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateBeforeDoctypeSystemIdentifier",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.QUOTATION_MARK:e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case cr.APOSTROPHE:e.systemId="",this.state=Nr.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case cr.GREATER_THAN_SIGN:this._err(ur.missingDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.DATA,this.emitCurrentDoctype(e);break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.missingQuoteBeforeDoctypeSystemIdentifier),e.forceQuirks=!0,this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateDoctypeSystemIdentifierDoubleQuoted",value:function(t){var e=this.currentToken;switch(t){case cr.QUOTATION_MARK:this.state=Nr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.systemId+="�";break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptDoctypeSystemIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.systemId+=String.fromCodePoint(t)}}},{key:"_stateDoctypeSystemIdentifierSingleQuoted",value:function(t){var e=this.currentToken;switch(t){case cr.APOSTROPHE:this.state=Nr.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case cr.NULL:this._err(ur.unexpectedNullCharacter),e.systemId+="�";break;case cr.GREATER_THAN_SIGN:this._err(ur.abruptDoctypeSystemIdentifier),e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:e.systemId+=String.fromCodePoint(t)}}},{key:"_stateAfterDoctypeSystemIdentifier",value:function(t){var e=this.currentToken;switch(t){case cr.SPACE:case cr.LINE_FEED:case cr.TABULATION:case cr.FORM_FEED:break;case cr.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.EOF:this._err(ur.eofInDoctype),e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break;default:this._err(ur.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=Nr.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}},{key:"_stateBogusDoctype",value:function(t){var e=this.currentToken;switch(t){case cr.GREATER_THAN_SIGN:this.emitCurrentDoctype(e),this.state=Nr.DATA;break;case cr.NULL:this._err(ur.unexpectedNullCharacter);break;case cr.EOF:this.emitCurrentDoctype(e),this._emitEOFToken()}}},{key:"_stateCdataSection",value:function(t){switch(t){case cr.RIGHT_SQUARE_BRACKET:this.state=Nr.CDATA_SECTION_BRACKET;break;case cr.EOF:this._err(ur.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(t)}}},{key:"_stateCdataSectionBracket",value:function(t){t===cr.RIGHT_SQUARE_BRACKET?this.state=Nr.CDATA_SECTION_END:(this._emitChars("]"),this.state=Nr.CDATA_SECTION,this._stateCdataSection(t))}},{key:"_stateCdataSectionEnd",value:function(t){switch(t){case cr.GREATER_THAN_SIGN:this.state=Nr.DATA;break;case cr.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=Nr.CDATA_SECTION,this._stateCdataSection(t)}}},{key:"_stateCharacterReference",value:function(t){t===cr.NUMBER_SIGN?this.state=Nr.NUMERIC_CHARACTER_REFERENCE:Br(t)?(this.state=Nr.NAMED_CHARACTER_REFERENCE,this._stateNamedCharacterReference(t)):(this._flushCodePointConsumedAsCharacterReference(cr.AMPERSAND),this._reconsumeInState(this.returnState,t))}},{key:"_stateNamedCharacterReference",value:function(t){var e=this._matchNamedCharacterReference(t);if(!this._ensureHibernation())if(e){for(var n=0;n<e.length;n++)this._flushCodePointConsumedAsCharacterReference(e[n]);this.state=this.returnState}else this._flushCodePointConsumedAsCharacterReference(cr.AMPERSAND),this.state=Nr.AMBIGUOUS_AMPERSAND}},{key:"_stateAmbiguousAmpersand",value:function(t){Br(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===cr.SEMICOLON&&this._err(ur.unknownNamedCharacterReference),this._reconsumeInState(this.returnState,t))}},{key:"_stateNumericCharacterReference",value:function(t){this.charRefCode=0,t===cr.LATIN_SMALL_X||t===cr.LATIN_CAPITAL_X?this.state=Nr.HEXADEMICAL_CHARACTER_REFERENCE_START:Ir(t)?(this.state=Nr.DECIMAL_CHARACTER_REFERENCE,this._stateDecimalCharacterReference(t)):(this._err(ur.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(cr.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(cr.NUMBER_SIGN),this._reconsumeInState(this.returnState,t))}},{key:"_stateHexademicalCharacterReferenceStart",value:function(t){!function(t){return Ir(t)||Fr(t)||Ur(t)}(t)?(this._err(ur.absenceOfDigitsInNumericCharacterReference),this._flushCodePointConsumedAsCharacterReference(cr.AMPERSAND),this._flushCodePointConsumedAsCharacterReference(cr.NUMBER_SIGN),this._unconsume(2),this.state=this.returnState):(this.state=Nr.HEXADEMICAL_CHARACTER_REFERENCE,this._stateHexademicalCharacterReference(t))}},{key:"_stateHexademicalCharacterReference",value:function(t){Fr(t)?this.charRefCode=16*this.charRefCode+t-55:Ur(t)?this.charRefCode=16*this.charRefCode+t-87:Ir(t)?this.charRefCode=16*this.charRefCode+t-48:t===cr.SEMICOLON?this.state=Nr.NUMERIC_CHARACTER_REFERENCE_END:(this._err(ur.missingSemicolonAfterCharacterReference),this.state=Nr.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}},{key:"_stateDecimalCharacterReference",value:function(t){Ir(t)?this.charRefCode=10*this.charRefCode+t-48:t===cr.SEMICOLON?this.state=Nr.NUMERIC_CHARACTER_REFERENCE_END:(this._err(ur.missingSemicolonAfterCharacterReference),this.state=Nr.NUMERIC_CHARACTER_REFERENCE_END,this._stateNumericCharacterReferenceEnd(t))}},{key:"_stateNumericCharacterReferenceEnd",value:function(t){var e;this.charRefCode===cr.NULL?(this._err(ur.nullCharacterReference),this.charRefCode=cr.REPLACEMENT_CHARACTER):1114111<this.charRefCode?(this._err(ur.characterReferenceOutsideUnicodeRange),this.charRefCode=cr.REPLACEMENT_CHARACTER):dr(this.charRefCode)?(this._err(ur.surrogateCharacterReference),this.charRefCode=cr.REPLACEMENT_CHARACTER):hr(this.charRefCode)?this._err(ur.noncharacterCharacterReference):!fr(this.charRefCode)&&this.charRefCode!==cr.CARRIAGE_RETURN||(this._err(ur.controlCharacterReference),void 0!==(e=Lr.get(this.charRefCode))&&(this.charRefCode=e)),this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}]),t}();function zr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Wr,Gr=new Set([Er.DD,Er.DT,Er.LI,Er.OPTGROUP,Er.OPTION,Er.P,Er.RB,Er.RP,Er.RT,Er.RTC]),Yr=new Set([].concat(function(t){return function(t){if(Array.isArray(t))return zr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return zr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Gr),[Er.CAPTION,Er.COLGROUP,Er.TBODY,Er.TD,Er.TFOOT,Er.TH,Er.THEAD,Er.TR])),Kr=new Map([[Er.APPLET,yr.HTML],[Er.CAPTION,yr.HTML],[Er.HTML,yr.HTML],[Er.MARQUEE,yr.HTML],[Er.OBJECT,yr.HTML],[Er.TABLE,yr.HTML],[Er.TD,yr.HTML],[Er.TEMPLATE,yr.HTML],[Er.TH,yr.HTML],[Er.ANNOTATION_XML,yr.MATHML],[Er.MI,yr.MATHML],[Er.MN,yr.MATHML],[Er.MO,yr.MATHML],[Er.MS,yr.MATHML],[Er.MTEXT,yr.MATHML],[Er.DESC,yr.SVG],[Er.FOREIGN_OBJECT,yr.SVG],[Er.TITLE,yr.SVG]]),$r=[Er.H1,Er.H2,Er.H3,Er.H4,Er.H5,Er.H6],Xr=[Er.TR,Er.TEMPLATE,Er.HTML],Zr=[Er.TBODY,Er.TFOOT,Er.THEAD,Er.TEMPLATE,Er.HTML],Qr=[Er.TABLE,Er.TEMPLATE,Er.HTML],Jr=[Er.TD,Er.TH],to=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=Er.UNKNOWN,this.current=e}return function(t,e){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"currentTmplContentOrNode",get:function(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}},{key:"_indexOf",value:function(t){return this.items.lastIndexOf(t,this.stackTop)}},{key:"_isInTemplate",value:function(){return this.currentTagId===Er.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===yr.HTML}},{key:"_updateCurrentElement",value:function(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}},{key:"push",value:function(t,e){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=e,this.currentTagId=e,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,e,!0)}},{key:"pop",value:function(){var t=this.current;0<this.tmplCount&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}},{key:"replace",value:function(t,e){t=this._indexOf(t),this.items[t]=e,t===this.stackTop&&(this.current=e)}},{key:"insertAfter",value:function(t,e,n){t=this._indexOf(t)+1,this.items.splice(t,0,e),this.tagIDs.splice(t,0,n),this.stackTop++,t===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,t===this.stackTop)}},{key:"popUntilTagNamePopped",value:function(t){for(var e=this.stackTop+1;0<(e=this.tagIDs.lastIndexOf(t,e-1))&&this.treeAdapter.getNamespaceURI(this.items[e])!==yr.HTML;);this.shortenToLength(e<0?0:e)}},{key:"shortenToLength",value:function(t){for(;this.stackTop>=t;){var e=this.current;0<this.tmplCount&&this._isInTemplate()&&--this.tmplCount,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,this.stackTop<t)}}},{key:"popUntilElementPopped",value:function(t){t=this._indexOf(t),this.shortenToLength(t<0?0:t)}},{key:"popUntilPopped",value:function(t,e){e=this._indexOfTagNames(t,e),this.shortenToLength(e<0?0:e)}},{key:"popUntilNumberedHeaderPopped",value:function(){this.popUntilPopped($r,yr.HTML)}},{key:"popUntilTableCellPopped",value:function(){this.popUntilPopped(Jr,yr.HTML)}},{key:"popAllUpToHtmlElement",value:function(){this.tmplCount=0,this.shortenToLength(1)}},{key:"_indexOfTagNames",value:function(t,e){for(var n=this.stackTop;0<=n;n--)if(t.includes(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===e)return n;return-1}},{key:"clearBackTo",value:function(t,e){e=this._indexOfTagNames(t,e),this.shortenToLength(e+1)}},{key:"clearBackToTableContext",value:function(){this.clearBackTo(Qr,yr.HTML)}},{key:"clearBackToTableBodyContext",value:function(){this.clearBackTo(Zr,yr.HTML)}},{key:"clearBackToTableRowContext",value:function(){this.clearBackTo(Xr,yr.HTML)}},{key:"remove",value:function(t){var e=this._indexOf(t);0<=e&&(e===this.stackTop?this.pop():(this.items.splice(e,1),this.tagIDs.splice(e,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}},{key:"tryPeekProperlyNestedBodyElement",value:function(){return 1<=this.stackTop&&this.tagIDs[1]===Er.BODY?this.items[1]:null}},{key:"contains",value:function(t){return-1<this._indexOf(t)}},{key:"getCommonAncestor",value:function(t){return 0<=(t=this._indexOf(t)-1)?this.items[t]:null}},{key:"isRootHtmlElementCurrent",value:function(){return 0===this.stackTop&&this.tagIDs[0]===Er.HTML}},{key:"hasInScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===yr.HTML)return!0;if(Kr.get(n)===r)return!1}return!0}},{key:"hasNumberedHeaderInScope",value:function(){for(var t=this.stackTop;0<=t;t--){var e=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(kr(e)&&n===yr.HTML)return!0;if(Kr.get(e)===n)return!1}return!0}},{key:"hasInListItemScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===yr.HTML)return!0;if((n===Er.UL||n===Er.OL)&&r===yr.HTML||Kr.get(n)===r)return!1}return!0}},{key:"hasInButtonScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===yr.HTML)return!0;if(n===Er.BUTTON&&r===yr.HTML||Kr.get(n)===r)return!1}return!0}},{key:"hasInTableScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===yr.HTML){if(n===t)return!0;if(n===Er.TABLE||n===Er.TEMPLATE||n===Er.HTML)return!1}}return!0}},{key:"hasTableBodyContextInTableScope",value:function(){for(var t=this.stackTop;0<=t;t--){var e=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===yr.HTML){if(e===Er.TBODY||e===Er.THEAD||e===Er.TFOOT)return!0;if(e===Er.TABLE||e===Er.HTML)return!1}}return!0}},{key:"hasInSelectScope",value:function(t){for(var e=this.stackTop;0<=e;e--){var n=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===yr.HTML){if(n===t)return!0;if(n!==Er.OPTION&&n!==Er.OPTGROUP)return!1}}return!0}},{key:"generateImpliedEndTags",value:function(){for(;Gr.has(this.currentTagId);)this.pop()}},{key:"generateImpliedEndTagsThoroughly",value:function(){for(;Yr.has(this.currentTagId);)this.pop()}},{key:"generateImpliedEndTagsWithExclusion",value:function(t){for(;this.currentTagId!==t&&Yr.has(this.currentTagId);)this.pop()}}]),t}();(l=Wr={})[l.Marker=0]="Marker",l[l.Element=1]="Element";var eo={type:Wr.Marker},no=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.treeAdapter=e,this.entries=[],this.bookmark=null}return function(t,e){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(t,[{key:"_getNoahArkConditionCandidates",value:function(t,e){for(var n=[],r=e.length,o=this.treeAdapter.getTagName(t),i=this.treeAdapter.getNamespaceURI(t),a=0;a<this.entries.length;a++){var s=this.entries[a];if(s.type===Wr.Marker)break;s=s.element,this.treeAdapter.getTagName(s)!==o||this.treeAdapter.getNamespaceURI(s)!==i||(s=this.treeAdapter.getAttrList(s)).length===r&&n.push({idx:a,attrs:s})}return n}},{key:"_ensureNoahArkCondition",value:function(t){if(!(this.entries.length<3)){var e=this.treeAdapter.getAttrList(t),n=this._getNoahArkConditionCandidates(t,e);if(!(n.length<3))for(var r=new Map(e.map((function(t){return[t.name,t.value]}))),o=0,i=0;i<n.length;i++){var a=n[i];a.attrs.every((function(t){return r.get(t.name)===t.value}))&&3<=(o+=1)&&this.entries.splice(a.idx,1)}}}},{key:"insertMarker",value:function(){this.entries.unshift(eo)}},{key:"pushElement",value:function(t,e){this._ensureNoahArkCondition(t),this.entries.unshift({type:Wr.Element,element:t,token:e})}},{key:"insertElementAfterBookmark",value:function(t,e){var n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:Wr.Element,element:t,token:e})}},{key:"removeEntry",value:function(t){0<=(t=this.entries.indexOf(t))&&this.entries.splice(t,1)}},{key:"clearToLastMarker",value:function(){var t=this.entries.indexOf(eo);0<=t?this.entries.splice(0,t+1):this.entries.length=0}},{key:"getElementEntryInScopeWithTagName",value:function(t){var e=this,n=this.entries.find((function(n){return n.type===Wr.Marker||e.treeAdapter.getTagName(n.element)===t}));return n&&n.type===Wr.Element?n:null}},{key:"getElementEntry",value:function(t){return this.entries.find((function(e){return e.type===Wr.Element&&e.element===t}))}}]),t}();function ro(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function oo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ro(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function io(t){return{nodeName:"#text",value:t,parentNode:null}}var ao={createDocument:function(){return{nodeName:"#document",mode:_r.NO_QUIRKS,childNodes:[]}},createDocumentFragment:function(){return{nodeName:"#document-fragment",childNodes:[]}},createElement:function(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode:function(t){return{nodeName:"#comment",data:t,parentNode:null}},appendChild:function(t,e){t.childNodes.push(e),e.parentNode=t},insertBefore:function(t,e,n){n=t.childNodes.indexOf(n),t.childNodes.splice(n,0,e),e.parentNode=t},setTemplateContent:function(t,e){t.content=e},getTemplateContent:function(t){return t.content},setDocumentType:function(t,e,n,r){var o=t.childNodes.find((function(t){return"#documentType"===t.nodeName}));o?(o.name=e,o.publicId=n,o.systemId=r):ao.appendChild(t,{nodeName:"#documentType",name:e,publicId:n,systemId:r,parentNode:null})},setDocumentMode:function(t,e){t.mode=e},getDocumentMode:function(t){return t.mode},detachNode:function(t){var e;t.parentNode&&(e=t.parentNode.childNodes.indexOf(t),t.parentNode.childNodes.splice(e,1),t.parentNode=null)},insertText:function(t,e){if(0<t.childNodes.length){var n=t.childNodes[t.childNodes.length-1];if(ao.isTextNode(n))return void(n.value+=e)}ao.appendChild(t,io(e))},insertTextBefore:function(t,e,n){var r=t.childNodes[t.childNodes.indexOf(n)-1];r&&ao.isTextNode(r)?r.value+=e:ao.insertBefore(t,io(e),n)},adoptAttributes:function(t,e){for(var n=new Set(t.attrs.map((function(t){return t.name}))),r=0;r<e.length;r++)n.has(e[r].name)||t.attrs.push(e[r])},getFirstChild:function(t){return t.childNodes[0]},getChildNodes:function(t){return t.childNodes},getParentNode:function(t){return t.parentNode},getAttrList:function(t){return t.attrs},getTagName:function(t){return t.tagName},getNamespaceURI:function(t){return t.namespaceURI},getTextNodeContent:function(t){return t.value},getCommentNodeContent:function(t){return t.data},getDocumentTypeNodeName:function(t){return t.name},getDocumentTypeNodePublicId:function(t){return t.publicId},getDocumentTypeNodeSystemId:function(t){return t.systemId},isTextNode:function(t){return"#text"===t.nodeName},isCommentNode:function(t){return"#comment"===t.nodeName},isDocumentTypeNode:function(t){return"#documentType"===t.nodeName},isElementNode:function(t){return Object.prototype.hasOwnProperty.call(t,"tagName")},setNodeSourceCodeLocation:function(t,e){t.sourceCodeLocation=e},getNodeSourceCodeLocation:function(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation:function(t,e){t.sourceCodeLocation=oo(oo({},t.sourceCodeLocation),e)}},so=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],lo=[].concat(so,["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),co=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),uo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],po=[].concat(uo,["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function fo(t,e){return e.some((function(e){return t.startsWith(e)}))}var ho,go=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(t){return[t.toLowerCase(),t]}))),mo=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:yr.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:yr.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:yr.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:yr.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:yr.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:yr.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:yr.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:yr.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:yr.XML}],["xml:space",{prefix:"xml",name:"space",namespace:yr.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:yr.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:yr.XMLNS}]]),vo=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(t){return[t.toLowerCase(),t]}))),yo=new Set([Er.B,Er.BIG,Er.BLOCKQUOTE,Er.BODY,Er.BR,Er.CENTER,Er.CODE,Er.DD,Er.DIV,Er.DL,Er.DT,Er.EM,Er.EMBED,Er.H1,Er.H2,Er.H3,Er.H4,Er.H5,Er.H6,Er.HEAD,Er.HR,Er.I,Er.IMG,Er.LI,Er.LISTING,Er.MENU,Er.META,Er.NOBR,Er.OL,Er.P,Er.PRE,Er.RUBY,Er.S,Er.SMALL,Er.SPAN,Er.STRONG,Er.STRIKE,Er.SUB,Er.SUP,Er.TABLE,Er.TT,Er.U,Er.UL,Er.VAR]);function bo(t){for(var e=0;e<t.attrs.length;e++)if("definitionurl"===t.attrs[e].name){t.attrs[e].name="definitionURL";break}}function _o(t){for(var e=0;e<t.attrs.length;e++){var n=go.get(t.attrs[e].name);null!=n&&(t.attrs[e].name=n)}}function wo(t){for(var e=0;e<t.attrs.length;e++){var n=mo.get(t.attrs[e].name);n&&(t.attrs[e].prefix=n.prefix,t.attrs[e].name=n.name,t.attrs[e].namespace=n.namespace)}}function Eo(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function xo(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Eo(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Eo(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Co(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(l=ho=ho||{})[l.INITIAL=0]="INITIAL",l[l.BEFORE_HTML=1]="BEFORE_HTML",l[l.BEFORE_HEAD=2]="BEFORE_HEAD",l[l.IN_HEAD=3]="IN_HEAD",l[l.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",l[l.AFTER_HEAD=5]="AFTER_HEAD",l[l.IN_BODY=6]="IN_BODY",l[l.TEXT=7]="TEXT",l[l.IN_TABLE=8]="IN_TABLE",l[l.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",l[l.IN_CAPTION=10]="IN_CAPTION",l[l.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",l[l.IN_TABLE_BODY=12]="IN_TABLE_BODY",l[l.IN_ROW=13]="IN_ROW",l[l.IN_CELL=14]="IN_CELL",l[l.IN_SELECT=15]="IN_SELECT",l[l.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",l[l.IN_TEMPLATE=17]="IN_TEMPLATE",l[l.AFTER_BODY=18]="AFTER_BODY",l[l.IN_FRAMESET=19]="IN_FRAMESET",l[l.AFTER_FRAMESET=20]="AFTER_FRAMESET",l[l.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",l[l.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";var To={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Ao=new Set([Er.TABLE,Er.TBODY,Er.TFOOT,Er.THEAD,Er.TR]),Oo={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:ao,onParseError:null},So=function(){function t(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.fragmentContext=r,this.scriptHandler=o,this.currentToken=null,this.stopped=!1,this.insertionMode=ho.INITIAL,this.originalInsertionMode=ho.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=xo(xo({},Oo),e),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=null!=n?n:this.treeAdapter.createDocument(),this.tokenizer=new qr(this.options,this),this.activeFormattingElements=new no(this.treeAdapter),this.fragmentContextID=r?Ar(this.treeAdapter.getTagName(r)):Er.UNKNOWN,this._setContextModes(null!=r?r:this.document,this.fragmentContextID),this.openElements=new to(this.document,this.treeAdapter,this)}return function(t,e,n){e&&Co(t.prototype,e),n&&Co(t,n)}(t,[{key:"getFragment",value:function(){var t=this.treeAdapter.getFirstChild(this.document),e=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,e),e}},{key:"_err",value:function(t,e,n){this.onParseError&&(t={code:e,startLine:(t=null!==(t=t.location)&&void 0!==t?t:To).startLine,startCol:t.startCol,startOffset:t.startOffset,endLine:n?t.startLine:t.endLine,endCol:n?t.startCol:t.endCol,endOffset:n?t.startOffset:t.endOffset},this.onParseError(t))}},{key:"onItemPush",value:function(t,e,n){var r,o;null!==(o=(r=this.treeAdapter).onItemPush)&&void 0!==o&&o.call(r,t),n&&0<this.openElements.stackTop&&this._setContextModes(t,e)}},{key:"onItemPop",value:function(t,e){var n,r,o,i;this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),null!==(r=(n=this.treeAdapter).onItemPop)&&void 0!==r&&r.call(n,t,this.openElements.current),e&&(i=0===this.openElements.stackTop&&this.fragmentContext?(o=this.fragmentContext,this.fragmentContextID):(o=(i=this.openElements).current,i.currentTagId),this._setContextModes(o,i))}},{key:"_setContextModes",value:function(t,e){var n=t===this.document||this.treeAdapter.getNamespaceURI(t)===yr.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&!this._isIntegrationPoint(e,t)}},{key:"_switchToTextParsing",value:function(t,e){this._insertElement(t,yr.HTML),this.tokenizer.state=e,this.originalInsertionMode=this.insertionMode,this.insertionMode=ho.TEXT}},{key:"switchToPlaintextParsing",value:function(){this.insertionMode=ho.TEXT,this.originalInsertionMode=ho.IN_BODY,this.tokenizer.state=Dr.PLAINTEXT}},{key:"_getAdjustedCurrentElement",value:function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}},{key:"_findFormInFragmentContext",value:function(){for(var t=this.fragmentContext;t;){if(this.treeAdapter.getTagName(t)===wr.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}},{key:"_initTokenizerForFragmentParsing",value:function(){if(this.fragmentContext&&this.treeAdapter.getNamespaceURI(this.fragmentContext)===yr.HTML)switch(this.fragmentContextID){case Er.TITLE:case Er.TEXTAREA:this.tokenizer.state=Dr.RCDATA;break;case Er.STYLE:case Er.XMP:case Er.IFRAME:case Er.NOEMBED:case Er.NOFRAMES:case Er.NOSCRIPT:this.tokenizer.state=Dr.RAWTEXT;break;case Er.SCRIPT:this.tokenizer.state=Dr.SCRIPT_DATA;break;case Er.PLAINTEXT:this.tokenizer.state=Dr.PLAINTEXT}}},{key:"_setDocumentType",value:function(t){var e=this,n=t.name||"",r=t.publicId||"",o=t.systemId||"";this.treeAdapter.setDocumentType(this.document,n,r,o),!t.location||(o=this.treeAdapter.getChildNodes(this.document).find((function(t){return e.treeAdapter.isDocumentTypeNode(t)})))&&this.treeAdapter.setNodeSourceCodeLocation(o,t.location)}},{key:"_attachElementToTree",value:function(t,e){var n;this.options.sourceCodeLocationInfo&&(n=e&&xo(xo({},e),{},{startTag:e}),this.treeAdapter.setNodeSourceCodeLocation(t,n)),this._shouldFosterParentOnInsertion()?this._fosterParentElement(t):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.appendChild(n,t))}},{key:"_appendElement",value:function(t,e){e=this.treeAdapter.createElement(t.tagName,e,t.attrs),this._attachElementToTree(e,t.location)}},{key:"_insertElement",value:function(t,e){e=this.treeAdapter.createElement(t.tagName,e,t.attrs),this._attachElementToTree(e,t.location),this.openElements.push(e,t.tagID)}},{key:"_insertFakeElement",value:function(t,e){t=this.treeAdapter.createElement(t,yr.HTML,[]),this._attachElementToTree(t,null),this.openElements.push(t,e)}},{key:"_insertTemplate",value:function(t){var e=this.treeAdapter.createElement(t.tagName,yr.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(e,n),this._attachElementToTree(e,t.location),this.openElements.push(e,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}},{key:"_insertFakeRootElement",value:function(){var t=this.treeAdapter.createElement(wr.HTML,yr.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,Er.HTML)}},{key:"_appendCommentNode",value:function(t,e){var n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(e,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,t.location)}},{key:"_insertCharacters",value:function(t){var e,n,r,o;this._shouldFosterParentOnInsertion()?(e=(r=this._findFosterParentingLocation()).parent,(o=r.beforeElement)?this.treeAdapter.insertTextBefore(e,t.chars,o):this.treeAdapter.insertText(e,t.chars)):(e=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(e,t.chars)),t.location&&(n=this.treeAdapter.getChildNodes(e),r=o?n.lastIndexOf(o):n.length,e=n[r-1],this.treeAdapter.getNodeSourceCodeLocation(e)?(n=(o=t.location).endLine,r=o.endCol,o=o.endOffset,this.treeAdapter.updateNodeSourceCodeLocation(e,{endLine:n,endCol:r,endOffset:o})):this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,t.location))}},{key:"_adoptNodes",value:function(t,e){for(var n=this.treeAdapter.getFirstChild(t);n;n=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(e,n)}},{key:"_setEndLocation",value:function(t,e){var n,r;this.treeAdapter.getNodeSourceCodeLocation(t)&&e.location&&(r=e.location,n=this.treeAdapter.getTagName(t),r=e.type===gr.END_TAG&&n===e.tagName?{endTag:xo({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset},this.treeAdapter.updateNodeSourceCodeLocation(t,r))}},{key:"shouldProcessStartTagTokenInForeignContent",value:function(t){return!!this.currentNotInHTML&&(n=0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,this.fragmentContextID):(e=(n=this.openElements).current,n.currentTagId),(t.tagID!==Er.SVG||this.treeAdapter.getTagName(e)!==wr.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(e)!==yr.MATHML)&&(this.tokenizer.inForeignNode||(t.tagID===Er.MGLYPH||t.tagID===Er.MALIGNMARK)&&!this._isIntegrationPoint(n,e,yr.HTML)));var e,n}},{key:"_processToken",value:function(t){switch(t.type){case gr.CHARACTER:this.onCharacter(t);break;case gr.NULL_CHARACTER:this.onNullCharacter(t);break;case gr.COMMENT:this.onComment(t);break;case gr.DOCTYPE:this.onDoctype(t);break;case gr.START_TAG:this._processStartTag(t);break;case gr.END_TAG:this.onEndTag(t);break;case gr.EOF:this.onEof(t);break;case gr.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(t)}}},{key:"_isIntegrationPoint",value:function(t,e,n){return function(t,e,n,r){return(!r||r===yr.HTML)&&function(t,e,n){if(e===yr.MATHML&&t===Er.ANNOTATION_XML)for(var r=0;r<n.length;r++)if(n[r].name===br.ENCODING){var o=n[r].value.toLowerCase();return"text/html"===o||"application/xhtml+xml"===o}return e===yr.SVG&&(t===Er.FOREIGN_OBJECT||t===Er.DESC||t===Er.TITLE)}(t,e,n)||(!r||r===yr.MATHML)&&function(t,e){return e===yr.MATHML&&(t===Er.MI||t===Er.MO||t===Er.MN||t===Er.MS||t===Er.MTEXT)}(t,e)}(t,this.treeAdapter.getNamespaceURI(e),this.treeAdapter.getAttrList(e),n)}},{key:"_reconstructActiveFormattingElements",value:function(){var t=this,e=this.activeFormattingElements.entries.length;if(e)for(var n=this.activeFormattingElements.entries.findIndex((function(e){return e.type===Wr.Marker||t.openElements.contains(e.element)})),r=n<0?e-1:n-1;0<=r;r--){var o=this.activeFormattingElements.entries[r];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}},{key:"_closeTableCell",value:function(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ho.IN_ROW}},{key:"_closePElement",value:function(){this.openElements.generateImpliedEndTagsWithExclusion(Er.P),this.openElements.popUntilTagNamePopped(Er.P)}},{key:"_resetInsertionMode",value:function(){for(var t=this.openElements.stackTop;0<=t;t--)switch(0===t&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case Er.TR:return void(this.insertionMode=ho.IN_ROW);case Er.TBODY:case Er.THEAD:case Er.TFOOT:return void(this.insertionMode=ho.IN_TABLE_BODY);case Er.CAPTION:return void(this.insertionMode=ho.IN_CAPTION);case Er.COLGROUP:return void(this.insertionMode=ho.IN_COLUMN_GROUP);case Er.TABLE:return void(this.insertionMode=ho.IN_TABLE);case Er.BODY:return void(this.insertionMode=ho.IN_BODY);case Er.FRAMESET:return void(this.insertionMode=ho.IN_FRAMESET);case Er.SELECT:return void this._resetInsertionModeForSelect(t);case Er.TEMPLATE:return void(this.insertionMode=this.tmplInsertionModeStack[0]);case Er.HTML:return void(this.insertionMode=this.headElement?ho.AFTER_HEAD:ho.BEFORE_HEAD);case Er.TD:case Er.TH:if(0<t)return void(this.insertionMode=ho.IN_CELL);break;case Er.HEAD:if(0<t)return void(this.insertionMode=ho.IN_HEAD)}this.insertionMode=ho.IN_BODY}},{key:"_resetInsertionModeForSelect",value:function(t){if(0<t)for(var e=t-1;0<e;e--){var n=this.openElements.tagIDs[e];if(n===Er.TEMPLATE)break;if(n===Er.TABLE)return void(this.insertionMode=ho.IN_SELECT_IN_TABLE)}this.insertionMode=ho.IN_SELECT}},{key:"_isElementCausesFosterParenting",value:function(t){return Ao.has(t)}},{key:"_shouldFosterParentOnInsertion",value:function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}},{key:"_findFosterParentingLocation",value:function(){for(var t=this.openElements.stackTop;0<=t;t--){var e=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case Er.TEMPLATE:if(this.treeAdapter.getNamespaceURI(e)===yr.HTML)return{parent:this.treeAdapter.getTemplateContent(e),beforeElement:null};break;case Er.TABLE:var n=this.treeAdapter.getParentNode(e);return n?{parent:n,beforeElement:e}:{parent:this.openElements.items[t-1],beforeElement:null}}}return{parent:this.openElements.items[0],beforeElement:null}}},{key:"_fosterParentElement",value:function(t){var e=this._findFosterParentingLocation();e.beforeElement?this.treeAdapter.insertBefore(e.parent,t,e.beforeElement):this.treeAdapter.appendChild(e.parent,t)}},{key:"_isSpecialElement",value:function(t,e){return t=this.treeAdapter.getNamespaceURI(t),Sr[t].has(e)}},{key:"onCharacter",value:function(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(t,e){t._insertCharacters(e),t.framesetOk=!1}(this,t);else switch(this.insertionMode){case ho.INITIAL:No(this,t);break;case ho.BEFORE_HTML:Lo(this,t);break;case ho.BEFORE_HEAD:Do(this,t);break;case ho.IN_HEAD:Mo(this,t);break;case ho.IN_HEAD_NO_SCRIPT:Bo(this,t);break;case ho.AFTER_HEAD:Fo(this,t);break;case ho.IN_BODY:case ho.IN_CAPTION:case ho.IN_CELL:case ho.IN_TEMPLATE:Vo(this,t);break;case ho.TEXT:case ho.IN_SELECT:case ho.IN_SELECT_IN_TABLE:this._insertCharacters(t);break;case ho.IN_TABLE:case ho.IN_TABLE_BODY:case ho.IN_ROW:Zo(this,t);break;case ho.IN_TABLE_TEXT:ni(this,t);break;case ho.IN_COLUMN_GROUP:ai(this,t);break;case ho.AFTER_BODY:gi(this,t);break;case ho.AFTER_AFTER_BODY:mi(this,t)}}},{key:"onNullCharacter",value:function(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode)!function(t,e){e.chars="�",t._insertCharacters(e)}(this,t);else switch(this.insertionMode){case ho.INITIAL:No(this,t);break;case ho.BEFORE_HTML:Lo(this,t);break;case ho.BEFORE_HEAD:Do(this,t);break;case ho.IN_HEAD:Mo(this,t);break;case ho.IN_HEAD_NO_SCRIPT:Bo(this,t);break;case ho.AFTER_HEAD:Fo(this,t);break;case ho.TEXT:this._insertCharacters(t);break;case ho.IN_TABLE:case ho.IN_TABLE_BODY:case ho.IN_ROW:Zo(this,t);break;case ho.IN_COLUMN_GROUP:ai(this,t);break;case ho.AFTER_BODY:gi(this,t);break;case ho.AFTER_AFTER_BODY:mi(this,t)}}},{key:"onComment",value:function(t){if(this.skipNextNewLine=!1,this.currentNotInHTML)Po(this,t);else switch(this.insertionMode){case ho.INITIAL:case ho.BEFORE_HTML:case ho.BEFORE_HEAD:case ho.IN_HEAD:case ho.IN_HEAD_NO_SCRIPT:case ho.AFTER_HEAD:case ho.IN_BODY:case ho.IN_TABLE:case ho.IN_CAPTION:case ho.IN_COLUMN_GROUP:case ho.IN_TABLE_BODY:case ho.IN_ROW:case ho.IN_CELL:case ho.IN_SELECT:case ho.IN_SELECT_IN_TABLE:case ho.IN_TEMPLATE:case ho.IN_FRAMESET:case ho.AFTER_FRAMESET:Po(this,t);break;case ho.IN_TABLE_TEXT:ri(this,t);break;case ho.AFTER_BODY:!function(t,e){t._appendCommentNode(e,t.openElements.items[0])}(this,t);break;case ho.AFTER_AFTER_BODY:case ho.AFTER_AFTER_FRAMESET:!function(t,e){t._appendCommentNode(e,t.document)}(this,t)}}},{key:"onDoctype",value:function(t){switch(this.skipNextNewLine=!1,this.insertionMode){case ho.INITIAL:!function(t,e){t._setDocumentType(e);var n=e.forceQuirks?_r.QUIRKS:function(t){if("html"!==t.name)return _r.QUIRKS;var e=t.systemId;if(e&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===e.toLowerCase())return _r.QUIRKS;if(null!==(t=t.publicId)){if(t=t.toLowerCase(),co.has(t))return _r.QUIRKS;if(fo(t,null===e?lo:so))return _r.QUIRKS;if(fo(t,null===e?uo:po))return _r.LIMITED_QUIRKS}return _r.NO_QUIRKS}(e);!function(t){return"html"===t.name&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)}(e)&&t._err(e,ur.nonConformingDoctype),t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=ho.BEFORE_HTML}(this,t);break;case ho.BEFORE_HEAD:case ho.IN_HEAD:case ho.IN_HEAD_NO_SCRIPT:case ho.AFTER_HEAD:this._err(t,ur.misplacedDoctype);break;case ho.IN_TABLE_TEXT:ri(this,t)}}},{key:"onStartTag",value:function(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ur.nonVoidHtmlElementStartTagWithTrailingSolidus)}},{key:"_processStartTag",value:function(t){this.shouldProcessStartTagTokenInForeignContent(t)?function(t,e){var n;!function(t){var e=t.tagID;return e===Er.FONT&&t.attrs.some((function(t){return(t=t.name)===br.COLOR||t===br.SIZE||t===br.FACE}))||yo.has(e)}(e)?(n=t._getAdjustedCurrentElement(),(n=t.treeAdapter.getNamespaceURI(n))===yr.MATHML?bo(e):n===yr.SVG&&(function(t){var e=vo.get(t.tagName);null!=e&&(t.tagName=e,t.tagID=Ar(t.tagName))}(e),_o(e)),wo(e),e.selfClosing?t._appendElement(e,n):t._insertElement(e,n),e.ackSelfClosing=!0):(vi(t),t._startTagOutsideForeignContent(e))}(this,t):this._startTagOutsideForeignContent(t)}},{key:"_startTagOutsideForeignContent",value:function(t){switch(this.insertionMode){case ho.INITIAL:No(this,t);break;case ho.BEFORE_HTML:!function(t,e){e.tagID===Er.HTML?(t._insertElement(e,yr.HTML),t.insertionMode=ho.BEFORE_HEAD):Lo(t,e)}(this,t);break;case ho.BEFORE_HEAD:!function(t,e){switch(e.tagID){case Er.HTML:Yo(t,e);break;case Er.HEAD:t._insertElement(e,yr.HTML),t.headElement=t.openElements.current,t.insertionMode=ho.IN_HEAD;break;default:Do(t,e)}}(this,t);break;case ho.IN_HEAD:Io(this,t);break;case ho.IN_HEAD_NO_SCRIPT:!function(t,e){switch(e.tagID){case Er.HTML:Yo(t,e);break;case Er.BASEFONT:case Er.BGSOUND:case Er.HEAD:case Er.LINK:case Er.META:case Er.NOFRAMES:case Er.STYLE:Io(t,e);break;case Er.NOSCRIPT:t._err(e,ur.nestedNoscriptInHead);break;default:Bo(t,e)}}(this,t);break;case ho.AFTER_HEAD:!function(t,e){switch(e.tagID){case Er.HTML:Yo(t,e);break;case Er.BODY:t._insertElement(e,yr.HTML),t.framesetOk=!1,t.insertionMode=ho.IN_BODY;break;case Er.FRAMESET:t._insertElement(e,yr.HTML),t.insertionMode=ho.IN_FRAMESET;break;case Er.BASE:case Er.BASEFONT:case Er.BGSOUND:case Er.LINK:case Er.META:case Er.NOFRAMES:case Er.SCRIPT:case Er.STYLE:case Er.TEMPLATE:case Er.TITLE:t._err(e,ur.abandonedHeadElementChild),t.openElements.push(t.headElement,Er.HEAD),Io(t,e),t.openElements.remove(t.headElement);break;case Er.HEAD:t._err(e,ur.misplacedStartTagForHeadElement);break;default:Fo(t,e)}}(this,t);break;case ho.IN_BODY:Yo(this,t);break;case ho.IN_TABLE:Qo(this,t);break;case ho.IN_TABLE_TEXT:ri(this,t);break;case ho.IN_CAPTION:!function(t,e){var n=e.tagID;oi.has(n)?t.openElements.hasInTableScope(Er.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Er.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=ho.IN_TABLE,Qo(t,e)):Yo(t,e)}(this,t);break;case ho.IN_COLUMN_GROUP:ii(this,t);break;case ho.IN_TABLE_BODY:si(this,t);break;case ho.IN_ROW:ci(this,t);break;case ho.IN_CELL:!function(t,e){var n=e.tagID;oi.has(n)?(t.openElements.hasInTableScope(Er.TD)||t.openElements.hasInTableScope(Er.TH))&&(t._closeTableCell(),ci(t,e)):Yo(t,e)}(this,t);break;case ho.IN_SELECT:pi(this,t);break;case ho.IN_SELECT_IN_TABLE:!function(t,e){var n=e.tagID;n===Er.CAPTION||n===Er.TABLE||n===Er.TBODY||n===Er.TFOOT||n===Er.THEAD||n===Er.TR||n===Er.TD||n===Er.TH?(t.openElements.popUntilTagNamePopped(Er.SELECT),t._resetInsertionMode(),t._processStartTag(e)):pi(t,e)}(this,t);break;case ho.IN_TEMPLATE:!function(t,e){switch(e.tagID){case Er.BASE:case Er.BASEFONT:case Er.BGSOUND:case Er.LINK:case Er.META:case Er.NOFRAMES:case Er.SCRIPT:case Er.STYLE:case Er.TEMPLATE:case Er.TITLE:Io(t,e);break;case Er.CAPTION:case Er.COLGROUP:case Er.TBODY:case Er.TFOOT:case Er.THEAD:t.tmplInsertionModeStack[0]=ho.IN_TABLE,t.insertionMode=ho.IN_TABLE,Qo(t,e);break;case Er.COL:t.tmplInsertionModeStack[0]=ho.IN_COLUMN_GROUP,t.insertionMode=ho.IN_COLUMN_GROUP,ii(t,e);break;case Er.TR:t.tmplInsertionModeStack[0]=ho.IN_TABLE_BODY,t.insertionMode=ho.IN_TABLE_BODY,si(t,e);break;case Er.TD:case Er.TH:t.tmplInsertionModeStack[0]=ho.IN_ROW,t.insertionMode=ho.IN_ROW,ci(t,e);break;default:t.tmplInsertionModeStack[0]=ho.IN_BODY,t.insertionMode=ho.IN_BODY,Yo(t,e)}}(this,t);break;case ho.AFTER_BODY:!function(t,e){(e.tagID===Er.HTML?Yo:gi)(t,e)}(this,t);break;case ho.IN_FRAMESET:!function(t,e){switch(e.tagID){case Er.HTML:Yo(t,e);break;case Er.FRAMESET:t._insertElement(e,yr.HTML);break;case Er.FRAME:t._appendElement(e,yr.HTML),e.ackSelfClosing=!0;break;case Er.NOFRAMES:Io(t,e)}}(this,t);break;case ho.AFTER_FRAMESET:!function(t,e){switch(e.tagID){case Er.HTML:Yo(t,e);break;case Er.NOFRAMES:Io(t,e)}}(this,t);break;case ho.AFTER_AFTER_BODY:!function(t,e){(e.tagID===Er.HTML?Yo:mi)(t,e)}(this,t);break;case ho.AFTER_AFTER_FRAMESET:!function(t,e){switch(e.tagID){case Er.HTML:Yo(t,e);break;case Er.NOFRAMES:Io(t,e)}}(this,t)}}},{key:"onEndTag",value:function(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?function(t,e){if(e.tagID!==Er.P&&e.tagID!==Er.BR)for(var n=t.openElements.stackTop;0<n;n--){var r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===yr.HTML){t._endTagOutsideForeignContent(e);break}if((r=t.treeAdapter.getTagName(r)).toLowerCase()===e.tagName){e.tagName=r,t.openElements.shortenToLength(n);break}}else vi(t),t._endTagOutsideForeignContent(e)}(this,t):this._endTagOutsideForeignContent(t)}},{key:"_endTagOutsideForeignContent",value:function(t){switch(this.insertionMode){case ho.INITIAL:No(this,t);break;case ho.BEFORE_HTML:!function(t,e){var n=e.tagID;n!==Er.HTML&&n!==Er.HEAD&&n!==Er.BODY&&n!==Er.BR||Lo(t,e)}(this,t);break;case ho.BEFORE_HEAD:!function(t,e){var n=e.tagID;n===Er.HEAD||n===Er.BODY||n===Er.HTML||n===Er.BR?Do(t,e):t._err(e,ur.endTagWithoutMatchingOpenElement)}(this,t);break;case ho.IN_HEAD:!function(t,e){switch(e.tagID){case Er.HEAD:t.openElements.pop(),t.insertionMode=ho.AFTER_HEAD;break;case Er.BODY:case Er.BR:case Er.HTML:Mo(t,e);break;case Er.TEMPLATE:Ro(t,e);break;default:t._err(e,ur.endTagWithoutMatchingOpenElement)}}(this,t);break;case ho.IN_HEAD_NO_SCRIPT:!function(t,e){switch(e.tagID){case Er.NOSCRIPT:t.openElements.pop(),t.insertionMode=ho.IN_HEAD;break;case Er.BR:Bo(t,e);break;default:t._err(e,ur.endTagWithoutMatchingOpenElement)}}(this,t);break;case ho.AFTER_HEAD:!function(t,e){switch(e.tagID){case Er.BODY:case Er.HTML:case Er.BR:Fo(t,e);break;case Er.TEMPLATE:Ro(t,e);break;default:t._err(e,ur.endTagWithoutMatchingOpenElement)}}(this,t);break;case ho.IN_BODY:$o(this,t);break;case ho.TEXT:!function(t,e){var n;e.tagID===Er.SCRIPT&&null!==(n=t.scriptHandler)&&void 0!==n&&n.call(t,t.openElements.current),t.openElements.pop(),t.insertionMode=t.originalInsertionMode}(this,t);break;case ho.IN_TABLE:Jo(this,t);break;case ho.IN_TABLE_TEXT:ri(this,t);break;case ho.IN_CAPTION:!function(t,e){var n=e.tagID;switch(n){case Er.CAPTION:case Er.TABLE:t.openElements.hasInTableScope(Er.CAPTION)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Er.CAPTION),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=ho.IN_TABLE,n===Er.TABLE&&Jo(t,e));break;case Er.BODY:case Er.COL:case Er.COLGROUP:case Er.HTML:case Er.TBODY:case Er.TD:case Er.TFOOT:case Er.TH:case Er.THEAD:case Er.TR:break;default:$o(t,e)}}(this,t);break;case ho.IN_COLUMN_GROUP:!function(t,e){switch(e.tagID){case Er.COLGROUP:t.openElements.currentTagId===Er.COLGROUP&&(t.openElements.pop(),t.insertionMode=ho.IN_TABLE);break;case Er.TEMPLATE:Ro(t,e);break;case Er.COL:break;default:ai(t,e)}}(this,t);break;case ho.IN_TABLE_BODY:li(this,t);break;case ho.IN_ROW:ui(this,t);break;case ho.IN_CELL:!function(t,e){var n=e.tagID;switch(n){case Er.TD:case Er.TH:t.openElements.hasInTableScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker(),t.insertionMode=ho.IN_ROW);break;case Er.TABLE:case Er.TBODY:case Er.TFOOT:case Er.THEAD:case Er.TR:t.openElements.hasInTableScope(n)&&(t._closeTableCell(),ui(t,e));break;case Er.BODY:case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.HTML:break;default:$o(t,e)}}(this,t);break;case ho.IN_SELECT:di(this,t);break;case ho.IN_SELECT_IN_TABLE:!function(t,e){var n=e.tagID;n===Er.CAPTION||n===Er.TABLE||n===Er.TBODY||n===Er.TFOOT||n===Er.THEAD||n===Er.TR||n===Er.TD||n===Er.TH?t.openElements.hasInTableScope(n)&&(t.openElements.popUntilTagNamePopped(Er.SELECT),t._resetInsertionMode(),t.onEndTag(e)):di(t,e)}(this,t);break;case ho.IN_TEMPLATE:!function(t,e){e.tagID===Er.TEMPLATE&&Ro(t,e)}(this,t);break;case ho.AFTER_BODY:hi(this,t);break;case ho.IN_FRAMESET:!function(t,e){e.tagID!==Er.FRAMESET||t.openElements.isRootHtmlElementCurrent()||(t.openElements.pop(),t.fragmentContext||t.openElements.currentTagId===Er.FRAMESET||(t.insertionMode=ho.AFTER_FRAMESET))}(this,t);break;case ho.AFTER_FRAMESET:!function(t,e){e.tagID===Er.HTML&&(t.insertionMode=ho.AFTER_AFTER_FRAMESET)}(this,t);break;case ho.AFTER_AFTER_BODY:mi(this,t)}}},{key:"onEof",value:function(t){switch(this.insertionMode){case ho.INITIAL:No(this,t);break;case ho.BEFORE_HTML:Lo(this,t);break;case ho.BEFORE_HEAD:Do(this,t);break;case ho.IN_HEAD:Mo(this,t);break;case ho.IN_HEAD_NO_SCRIPT:Bo(this,t);break;case ho.AFTER_HEAD:Fo(this,t);break;case ho.IN_BODY:case ho.IN_TABLE:case ho.IN_CAPTION:case ho.IN_COLUMN_GROUP:case ho.IN_TABLE_BODY:case ho.IN_ROW:case ho.IN_CELL:case ho.IN_SELECT:case ho.IN_SELECT_IN_TABLE:Xo(this,t);break;case ho.TEXT:!function(t,e){t._err(e,ur.eofInElementThatCanContainOnlyText),t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t.onEof(e)}(this,t);break;case ho.IN_TABLE_TEXT:ri(this,t);break;case ho.IN_TEMPLATE:fi(this,t);break;case ho.AFTER_BODY:case ho.IN_FRAMESET:case ho.AFTER_FRAMESET:case ho.AFTER_AFTER_BODY:case ho.AFTER_AFTER_FRAMESET:jo(this,t)}}},{key:"onWhitespaceCharacter",value:function(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===cr.LINE_FEED)){if(1===t.chars.length)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode)this._insertCharacters(t);else switch(this.insertionMode){case ho.IN_HEAD:case ho.IN_HEAD_NO_SCRIPT:case ho.AFTER_HEAD:case ho.TEXT:case ho.IN_COLUMN_GROUP:case ho.IN_SELECT:case ho.IN_SELECT_IN_TABLE:case ho.IN_FRAMESET:case ho.AFTER_FRAMESET:this._insertCharacters(t);break;case ho.IN_BODY:case ho.IN_CAPTION:case ho.IN_CELL:case ho.IN_TEMPLATE:case ho.AFTER_BODY:case ho.AFTER_AFTER_BODY:case ho.AFTER_AFTER_FRAMESET:Ho(this,t);break;case ho.IN_TABLE:case ho.IN_TABLE_BODY:case ho.IN_ROW:Zo(this,t);break;case ho.IN_TABLE_TEXT:ei(this,t)}}}],[{key:"parse",value:function(t,e){return(e=new this(e)).tokenizer.write(t,!0),e.document}},{key:"getFragmentParser",value:function(t,e){var n=xo(xo({},Oo),e);return null!=t||(t=n.treeAdapter.createElement(wr.TEMPLATE,yr.HTML,[])),e=n.treeAdapter.createElement("documentmock",yr.HTML,[]),(t=new this(n,e,t)).fragmentContextID===Er.TEMPLATE&&t.tmplInsertionModeStack.unshift(ho.IN_TEMPLATE),t._initTokenizerForFragmentParsing(),t._insertFakeRootElement(),t._resetInsertionMode(),t._findFormInFragmentContext(),t}}]),t}();function ko(t,e){for(var n=0;n<8;n++){var r=function(t,e){var n=t.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return n?t.openElements.contains(n.element)?t.openElements.hasInScope(e.tagID)||(n=null):(t.activeFormattingElements.removeEntry(n),n=null):Ko(t,e),n}(t,e);if(!r)break;var o=function(t,e){for(var n=null,r=t.openElements.stackTop;0<=r;r--){var o=t.openElements.items[r];if(o===e.element)break;t._isSpecialElement(o,t.openElements.tagIDs[r])&&(n=o)}return n||(t.openElements.shortenToLength(r<0?0:r),t.activeFormattingElements.removeEntry(e)),n}(t,r);if(!o)break;t.activeFormattingElements.bookmark=r;var i=function(t,e,n){for(var r=e,o=0,i=t.openElements.getCommonAncestor(e);i!==n;o++,i=a){var a=t.openElements.getCommonAncestor(i),s=t.activeFormattingElements.getElementEntry(i),l=s&&3<=o;!s||l?(l&&t.activeFormattingElements.removeEntry(s),t.openElements.remove(i)):(i=function(t,e){var n=t.treeAdapter.getNamespaceURI(e.element);return n=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs),t.openElements.replace(e.element,n),e.element=n}(t,s),r===e&&(t.activeFormattingElements.bookmark=s),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(i,r),r=i)}return r}(t,o,r.element),a=t.openElements.getCommonAncestor(r.element);t.treeAdapter.detachNode(i),a&&function(t,e,n){var r,o=Ar(t.treeAdapter.getTagName(e));t._isElementCausesFosterParenting(o)?t._fosterParentElement(n):(r=t.treeAdapter.getNamespaceURI(e),o===Er.TEMPLATE&&r===yr.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n))}(t,a,i),function(t,e,n){var r=t.treeAdapter.getNamespaceURI(n.element),o=n.token;r=t.treeAdapter.createElement(o.tagName,r,o.attrs),t._adoptNodes(e,r),t.treeAdapter.appendChild(e,r),t.activeFormattingElements.insertElementAfterBookmark(r,o),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,r,o.tagID)}(t,o,r)}}function Po(t,e){t._appendCommentNode(e,t.openElements.currentTmplContentOrNode)}function jo(t,e){if(t.stopped=!0,e.location){for(var n,r,o=t.fragmentContext?0:2,i=t.openElements.stackTop;o<=i;i--)t._setEndLocation(t.openElements.items[i],e);!t.fragmentContext&&0<=t.openElements.stackTop&&(r=t.openElements.items[0],(n=t.treeAdapter.getNodeSourceCodeLocation(r))&&!n.endTag&&(t._setEndLocation(r,e),1<=t.openElements.stackTop&&(n=t.openElements.items[1],(r=t.treeAdapter.getNodeSourceCodeLocation(n))&&!r.endTag&&t._setEndLocation(n,e))))}}function No(t,e){t._err(e,ur.missingDoctype,!0),t.treeAdapter.setDocumentMode(t.document,_r.QUIRKS),t.insertionMode=ho.BEFORE_HTML,t._processToken(e)}function Lo(t,e){t._insertFakeRootElement(),t.insertionMode=ho.BEFORE_HEAD,t._processToken(e)}function Do(t,e){t._insertFakeElement(wr.HEAD,Er.HEAD),t.headElement=t.openElements.current,t.insertionMode=ho.IN_HEAD,t._processToken(e)}function Io(t,e){switch(e.tagID){case Er.HTML:Yo(t,e);break;case Er.BASE:case Er.BASEFONT:case Er.BGSOUND:case Er.LINK:case Er.META:t._appendElement(e,yr.HTML),e.ackSelfClosing=!0;break;case Er.TITLE:t._switchToTextParsing(e,Dr.RCDATA);break;case Er.NOSCRIPT:t.options.scriptingEnabled?t._switchToTextParsing(e,Dr.RAWTEXT):(t._insertElement(e,yr.HTML),t.insertionMode=ho.IN_HEAD_NO_SCRIPT);break;case Er.NOFRAMES:case Er.STYLE:t._switchToTextParsing(e,Dr.RAWTEXT);break;case Er.SCRIPT:t._switchToTextParsing(e,Dr.SCRIPT_DATA);break;case Er.TEMPLATE:t._insertTemplate(e),t.activeFormattingElements.insertMarker(),t.framesetOk=!1,t.insertionMode=ho.IN_TEMPLATE,t.tmplInsertionModeStack.unshift(ho.IN_TEMPLATE);break;case Er.HEAD:t._err(e,ur.misplacedStartTagForHeadElement);break;default:Mo(t,e)}}function Ro(t,e){0<t.openElements.tmplCount?(t.openElements.generateImpliedEndTagsThoroughly(),t.openElements.currentTagId!==Er.TEMPLATE&&t._err(e,ur.closingOfElementWithOpenChildElements),t.openElements.popUntilTagNamePopped(Er.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode()):t._err(e,ur.endTagWithoutMatchingOpenElement)}function Mo(t,e){t.openElements.pop(),t.insertionMode=ho.AFTER_HEAD,t._processToken(e)}function Bo(t,e){var n=e.type===gr.EOF?ur.openElementsLeftAfterEof:ur.disallowedContentInNoscriptInHead;t._err(e,n),t.openElements.pop(),t.insertionMode=ho.IN_HEAD,t._processToken(e)}function Fo(t,e){t._insertFakeElement(wr.BODY,Er.BODY),t.insertionMode=ho.IN_BODY,Uo(t,e)}function Uo(t,e){switch(e.type){case gr.CHARACTER:Vo(t,e);break;case gr.WHITESPACE_CHARACTER:Ho(t,e);break;case gr.COMMENT:Po(t,e);break;case gr.START_TAG:Yo(t,e);break;case gr.END_TAG:$o(t,e);break;case gr.EOF:Xo(t,e)}}function Ho(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function Vo(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function qo(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,yr.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}function zo(t){return null!=(t=vr(t,br.TYPE))&&"hidden"===t.toLowerCase()}function Wo(t,e){t._switchToTextParsing(e,Dr.RAWTEXT)}function Go(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML)}function Yo(t,e){switch(e.tagID){case Er.I:case Er.S:case Er.B:case Er.U:case Er.EM:case Er.TT:case Er.BIG:case Er.CODE:case Er.FONT:case Er.SMALL:case Er.STRIKE:case Er.STRONG:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case Er.A:!function(t,e){var n=t.activeFormattingElements.getElementEntryInScopeWithTagName(wr.A);n&&(ko(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case Er.H1:case Er.H2:case Er.H3:case Er.H4:case Er.H5:case Er.H6:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),kr(t.openElements.currentTagId)&&t.openElements.pop(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.P:case Er.DL:case Er.OL:case Er.UL:case Er.DIV:case Er.DIR:case Er.NAV:case Er.MAIN:case Er.MENU:case Er.ASIDE:case Er.CENTER:case Er.FIGURE:case Er.FOOTER:case Er.HEADER:case Er.HGROUP:case Er.DIALOG:case Er.DETAILS:case Er.ADDRESS:case Er.ARTICLE:case Er.SECTION:case Er.SUMMARY:case Er.FIELDSET:case Er.BLOCKQUOTE:case Er.FIGCAPTION:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.LI:case Er.DD:case Er.DT:!function(t,e){t.framesetOk=!1;for(var n=e.tagID,r=t.openElements.stackTop;0<=r;r--){var o=t.openElements.tagIDs[r];if(n===Er.LI&&o===Er.LI||(n===Er.DD||n===Er.DT)&&(o===Er.DD||o===Er.DT)){t.openElements.generateImpliedEndTagsWithExclusion(o),t.openElements.popUntilTagNamePopped(o);break}if(o!==Er.ADDRESS&&o!==Er.DIV&&o!==Er.P&&t._isSpecialElement(t.openElements.items[r],o))break}t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.BR:case Er.IMG:case Er.WBR:case Er.AREA:case Er.EMBED:case Er.KEYGEN:qo(t,e);break;case Er.HR:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._appendElement(e,yr.HTML),t.framesetOk=!1,e.ackSelfClosing=!0}(t,e);break;case Er.RB:case Er.RTC:!function(t,e){t.openElements.hasInScope(Er.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.RT:case Er.RP:!function(t,e){t.openElements.hasInScope(Er.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(Er.RTC),t._insertElement(e,yr.HTML)}(t,e);break;case Er.PRE:case Er.LISTING:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}(t,e);break;case Er.XMP:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,Dr.RAWTEXT)}(t,e);break;case Er.SVG:!function(t,e){t._reconstructActiveFormattingElements(),_o(e),wo(e),e.selfClosing?t._appendElement(e,yr.SVG):t._insertElement(e,yr.SVG),e.ackSelfClosing=!0}(t,e);break;case Er.HTML:!function(t,e){0===t.openElements.tmplCount&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}(t,e);break;case Er.BASE:case Er.LINK:case Er.META:case Er.STYLE:case Er.TITLE:case Er.SCRIPT:case Er.BGSOUND:case Er.BASEFONT:case Er.TEMPLATE:Io(t,e);break;case Er.BODY:!function(t,e){var n=t.openElements.tryPeekProperlyNestedBodyElement();n&&0===t.openElements.tmplCount&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}(t,e);break;case Er.FORM:!function(t,e){var n=0<t.openElements.tmplCount;t.formElement&&!n||(t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML),n||(t.formElement=t.openElements.current))}(t,e);break;case Er.NOBR:!function(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(Er.NOBR)&&(ko(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,yr.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e);break;case Er.MATH:!function(t,e){t._reconstructActiveFormattingElements(),bo(e),wo(e),e.selfClosing?t._appendElement(e,yr.MATHML):t._insertElement(e,yr.MATHML),e.ackSelfClosing=!0}(t,e);break;case Er.TABLE:!function(t,e){t.treeAdapter.getDocumentMode(t.document)!==_r.QUIRKS&&t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML),t.framesetOk=!1,t.insertionMode=ho.IN_TABLE}(t,e);break;case Er.INPUT:!function(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,yr.HTML),zo(e)||(t.framesetOk=!1),e.ackSelfClosing=!0}(t,e);break;case Er.PARAM:case Er.TRACK:case Er.SOURCE:!function(t,e){t._appendElement(e,yr.HTML),e.ackSelfClosing=!0}(t,e);break;case Er.IMAGE:!function(t,e){e.tagName=wr.IMG,e.tagID=Er.IMG,qo(t,e)}(t,e);break;case Er.BUTTON:!function(t,e){t.openElements.hasInScope(Er.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(Er.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.framesetOk=!1}(t,e);break;case Er.APPLET:case Er.OBJECT:case Er.MARQUEE:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}(t,e);break;case Er.IFRAME:!function(t,e){t.framesetOk=!1,t._switchToTextParsing(e,Dr.RAWTEXT)}(t,e);break;case Er.SELECT:!function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML),t.framesetOk=!1,t.insertionMode=t.insertionMode===ho.IN_TABLE||t.insertionMode===ho.IN_CAPTION||t.insertionMode===ho.IN_TABLE_BODY||t.insertionMode===ho.IN_ROW||t.insertionMode===ho.IN_CELL?ho.IN_SELECT_IN_TABLE:ho.IN_SELECT}(t,e);break;case Er.OPTION:case Er.OPTGROUP:!function(t,e){t.openElements.currentTagId===Er.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,yr.HTML)}(t,e);break;case Er.NOEMBED:Wo(t,e);break;case Er.FRAMESET:!function(t,e){var n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,yr.HTML),t.insertionMode=ho.IN_FRAMESET)}(t,e);break;case Er.TEXTAREA:!function(t,e){t._insertElement(e,yr.HTML),t.skipNextNewLine=!0,t.tokenizer.state=Dr.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=ho.TEXT}(t,e);break;case Er.NOSCRIPT:(t.options.scriptingEnabled?Wo:Go)(t,e);break;case Er.PLAINTEXT:!function(t,e){t.openElements.hasInButtonScope(Er.P)&&t._closePElement(),t._insertElement(e,yr.HTML),t.tokenizer.state=Dr.PLAINTEXT}(t,e);break;case Er.COL:case Er.TH:case Er.TD:case Er.TR:case Er.HEAD:case Er.FRAME:case Er.TBODY:case Er.TFOOT:case Er.THEAD:case Er.CAPTION:case Er.COLGROUP:break;default:Go(t,e)}}function Ko(t,e){for(var n=e.tagName,r=e.tagID,o=t.openElements.stackTop;0<o;o--){var i=t.openElements.items[o],a=t.openElements.tagIDs[o];if(r===a&&(r!==Er.UNKNOWN||t.treeAdapter.getTagName(i)===n)){t.openElements.generateImpliedEndTagsWithExclusion(r),t.openElements.stackTop>=o&&t.openElements.shortenToLength(o);break}if(t._isSpecialElement(i,a))break}}function $o(t,e){switch(e.tagID){case Er.A:case Er.B:case Er.I:case Er.S:case Er.U:case Er.EM:case Er.TT:case Er.BIG:case Er.CODE:case Er.FONT:case Er.NOBR:case Er.SMALL:case Er.STRIKE:case Er.STRONG:ko(t,e);break;case Er.P:!function(t){t.openElements.hasInButtonScope(Er.P)||t._insertFakeElement(wr.P,Er.P),t._closePElement()}(t);break;case Er.DL:case Er.UL:case Er.OL:case Er.DIR:case Er.DIV:case Er.NAV:case Er.PRE:case Er.MAIN:case Er.MENU:case Er.ASIDE:case Er.BUTTON:case Er.CENTER:case Er.FIGURE:case Er.FOOTER:case Er.HEADER:case Er.HGROUP:case Er.DIALOG:case Er.ADDRESS:case Er.ARTICLE:case Er.DETAILS:case Er.SECTION:case Er.SUMMARY:case Er.LISTING:case Er.FIELDSET:case Er.BLOCKQUOTE:case Er.FIGCAPTION:!function(t,e){e=e.tagID,t.openElements.hasInScope(e)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(e))}(t,e);break;case Er.LI:!function(t){t.openElements.hasInListItemScope(Er.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(Er.LI),t.openElements.popUntilTagNamePopped(Er.LI))}(t);break;case Er.DD:case Er.DT:!function(t,e){e=e.tagID,t.openElements.hasInScope(e)&&(t.openElements.generateImpliedEndTagsWithExclusion(e),t.openElements.popUntilTagNamePopped(e))}(t,e);break;case Er.H1:case Er.H2:case Er.H3:case Er.H4:case Er.H5:case Er.H6:!function(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}(t);break;case Er.BR:!function(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(wr.BR,Er.BR),t.openElements.pop(),t.framesetOk=!1}(t);break;case Er.BODY:!function(t,e){var n;t.openElements.hasInScope(Er.BODY)&&(t.insertionMode=ho.AFTER_BODY,!t.options.sourceCodeLocationInfo||(n=t.openElements.tryPeekProperlyNestedBodyElement())&&t._setEndLocation(n,e))}(t,e);break;case Er.HTML:!function(t,e){t.openElements.hasInScope(Er.BODY)&&(t.insertionMode=ho.AFTER_BODY,hi(t,e))}(t,e);break;case Er.FORM:!function(t){var e=0<t.openElements.tmplCount,n=t.formElement;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(Er.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(Er.FORM):n&&t.openElements.remove(n))}(t);break;case Er.APPLET:case Er.OBJECT:case Er.MARQUEE:!function(t,e){e=e.tagID,t.openElements.hasInScope(e)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(e),t.activeFormattingElements.clearToLastMarker())}(t,e);break;case Er.TEMPLATE:Ro(t,e);break;default:Ko(t,e)}}function Xo(t,e){(0<t.tmplInsertionModeStack.length?fi:jo)(t,e)}function Zo(t,e){if(Ao.has(t.openElements.currentTagId))switch(t.pendingCharacterTokens.length=0,t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=ho.IN_TABLE_TEXT,e.type){case gr.CHARACTER:ni(t,e);break;case gr.WHITESPACE_CHARACTER:ei(t,e)}else ti(t,e)}function Qo(t,e){switch(e.tagID){case Er.TD:case Er.TH:case Er.TR:!function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(wr.TBODY,Er.TBODY),t.insertionMode=ho.IN_TABLE_BODY,si(t,e)}(t,e);break;case Er.STYLE:case Er.SCRIPT:case Er.TEMPLATE:Io(t,e);break;case Er.COL:!function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(wr.COLGROUP,Er.COLGROUP),t.insertionMode=ho.IN_COLUMN_GROUP,ii(t,e)}(t,e);break;case Er.FORM:!function(t,e){t.formElement||0!==t.openElements.tmplCount||(t._insertElement(e,yr.HTML),t.formElement=t.openElements.current,t.openElements.pop())}(t,e);break;case Er.TABLE:!function(t,e){t.openElements.hasInTableScope(Er.TABLE)&&(t.openElements.popUntilTagNamePopped(Er.TABLE),t._resetInsertionMode(),t._processStartTag(e))}(t,e);break;case Er.TBODY:case Er.TFOOT:case Er.THEAD:!function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,yr.HTML),t.insertionMode=ho.IN_TABLE_BODY}(t,e);break;case Er.INPUT:!function(t,e){zo(e)?t._appendElement(e,yr.HTML):ti(t,e),e.ackSelfClosing=!0}(t,e);break;case Er.CAPTION:!function(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,yr.HTML),t.insertionMode=ho.IN_CAPTION}(t,e);break;case Er.COLGROUP:!function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,yr.HTML),t.insertionMode=ho.IN_COLUMN_GROUP}(t,e);break;default:ti(t,e)}}function Jo(t,e){switch(e.tagID){case Er.TABLE:t.openElements.hasInTableScope(Er.TABLE)&&(t.openElements.popUntilTagNamePopped(Er.TABLE),t._resetInsertionMode());break;case Er.TEMPLATE:Ro(t,e);break;case Er.BODY:case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.HTML:case Er.TBODY:case Er.TD:case Er.TFOOT:case Er.TH:case Er.THEAD:case Er.TR:break;default:ti(t,e)}}function ti(t,e){var n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,Uo(t,e),t.fosterParentingEnabled=n}function ei(t,e){t.pendingCharacterTokens.push(e)}function ni(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0}function ri(t,e){var n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n<t.pendingCharacterTokens.length;n++)ti(t,t.pendingCharacterTokens[n]);else for(;n<t.pendingCharacterTokens.length;n++)t._insertCharacters(t.pendingCharacterTokens[n]);t.insertionMode=t.originalInsertionMode,t._processToken(e)}var oi=new Set([Er.CAPTION,Er.COL,Er.COLGROUP,Er.TBODY,Er.TD,Er.TFOOT,Er.TH,Er.THEAD,Er.TR]);function ii(t,e){switch(e.tagID){case Er.HTML:Yo(t,e);break;case Er.COL:t._appendElement(e,yr.HTML),e.ackSelfClosing=!0;break;case Er.TEMPLATE:Io(t,e);break;default:ai(t,e)}}function ai(t,e){t.openElements.currentTagId===Er.COLGROUP&&(t.openElements.pop(),t.insertionMode=ho.IN_TABLE,t._processToken(e))}function si(t,e){switch(e.tagID){case Er.TR:t.openElements.clearBackToTableBodyContext(),t._insertElement(e,yr.HTML),t.insertionMode=ho.IN_ROW;break;case Er.TH:case Er.TD:t.openElements.clearBackToTableBodyContext(),t._insertFakeElement(wr.TR,Er.TR),t.insertionMode=ho.IN_ROW,ci(t,e);break;case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.TBODY:case Er.TFOOT:case Er.THEAD:t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=ho.IN_TABLE,Qo(t,e));break;default:Qo(t,e)}}function li(t,e){var n=e.tagID;switch(e.tagID){case Er.TBODY:case Er.TFOOT:case Er.THEAD:t.openElements.hasInTableScope(n)&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=ho.IN_TABLE);break;case Er.TABLE:t.openElements.hasTableBodyContextInTableScope()&&(t.openElements.clearBackToTableBodyContext(),t.openElements.pop(),t.insertionMode=ho.IN_TABLE,Jo(t,e));break;case Er.BODY:case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.HTML:case Er.TD:case Er.TH:case Er.TR:break;default:Jo(t,e)}}function ci(t,e){switch(e.tagID){case Er.TH:case Er.TD:t.openElements.clearBackToTableRowContext(),t._insertElement(e,yr.HTML),t.insertionMode=ho.IN_CELL,t.activeFormattingElements.insertMarker();break;case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.TBODY:case Er.TFOOT:case Er.THEAD:case Er.TR:t.openElements.hasInTableScope(Er.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=ho.IN_TABLE_BODY,si(t,e));break;default:Qo(t,e)}}function ui(t,e){switch(e.tagID){case Er.TR:t.openElements.hasInTableScope(Er.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=ho.IN_TABLE_BODY);break;case Er.TABLE:t.openElements.hasInTableScope(Er.TR)&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=ho.IN_TABLE_BODY,li(t,e));break;case Er.TBODY:case Er.TFOOT:case Er.THEAD:(t.openElements.hasInTableScope(e.tagID)||t.openElements.hasInTableScope(Er.TR))&&(t.openElements.clearBackToTableRowContext(),t.openElements.pop(),t.insertionMode=ho.IN_TABLE_BODY,li(t,e));break;case Er.BODY:case Er.CAPTION:case Er.COL:case Er.COLGROUP:case Er.HTML:case Er.TD:case Er.TH:break;default:Jo(t,e)}}function pi(t,e){switch(e.tagID){case Er.HTML:Yo(t,e);break;case Er.OPTION:t.openElements.currentTagId===Er.OPTION&&t.openElements.pop(),t._insertElement(e,yr.HTML);break;case Er.OPTGROUP:t.openElements.currentTagId===Er.OPTION&&t.openElements.pop(),t.openElements.currentTagId===Er.OPTGROUP&&t.openElements.pop(),t._insertElement(e,yr.HTML);break;case Er.INPUT:case Er.KEYGEN:case Er.TEXTAREA:case Er.SELECT:t.openElements.hasInSelectScope(Er.SELECT)&&(t.openElements.popUntilTagNamePopped(Er.SELECT),t._resetInsertionMode(),e.tagID!==Er.SELECT&&t._processStartTag(e));break;case Er.SCRIPT:case Er.TEMPLATE:Io(t,e)}}function di(t,e){switch(e.tagID){case Er.OPTGROUP:0<t.openElements.stackTop&&t.openElements.currentTagId===Er.OPTION&&t.openElements.tagIDs[t.openElements.stackTop-1]===Er.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagId===Er.OPTGROUP&&t.openElements.pop();break;case Er.OPTION:t.openElements.currentTagId===Er.OPTION&&t.openElements.pop();break;case Er.SELECT:t.openElements.hasInSelectScope(Er.SELECT)&&(t.openElements.popUntilTagNamePopped(Er.SELECT),t._resetInsertionMode());break;case Er.TEMPLATE:Ro(t,e)}}function fi(t,e){0<t.openElements.tmplCount?(t.openElements.popUntilTagNamePopped(Er.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t.tmplInsertionModeStack.shift(),t._resetInsertionMode(),t.onEof(e)):jo(t,e)}function hi(t,e){var n,r;e.tagID===Er.HTML?(t.fragmentContext||(t.insertionMode=ho.AFTER_AFTER_BODY),t.options.sourceCodeLocationInfo&&t.openElements.tagIDs[0]===Er.HTML&&(t._setEndLocation(t.openElements.items[0],e),!(r=t.openElements.items[1])||null!==(n=t.treeAdapter.getNodeSourceCodeLocation(r))&&void 0!==n&&n.endTag||t._setEndLocation(r,e))):gi(t,e)}function gi(t,e){t.insertionMode=ho.IN_BODY,Uo(t,e)}function mi(t,e){t.insertionMode=ho.IN_BODY,Uo(t,e)}function vi(t){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==yr.HTML&&!t._isIntegrationPoint(t.openElements.currentTagId,t.openElements.current);)t.openElements.pop()}var yi=n(144);function bi(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return _i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return{s:e=function(){},n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){a=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(a)throw o}}}}function _i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wi(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function Ei(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wi(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wi(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var xi=new Set([wr.AREA,wr.BASE,wr.BASEFONT,wr.BGSOUND,wr.BR,wr.COL,wr.EMBED,wr.FRAME,wr.HR,wr.IMG,wr.INPUT,wr.KEYGEN,wr.LINK,wr.META,wr.PARAM,wr.SOURCE,wr.TRACK,wr.WBR]),Ci={treeAdapter:ao,scriptingEnabled:!0};function Ti(t,e){return e.treeAdapter.isElementNode(t)?function(t,e){var n=e.treeAdapter.getTagName(t);return"<".concat(n).concat(function(t,e){var n,r="",o=bi((e=e.treeAdapter).getAttrList(t));try{for(o.s();!(n=o.n()).done;){var i=n.value;if(r+=" ",i.namespace)switch(i.namespace){case yr.XML:r+="xml:".concat(i.name);break;case yr.XMLNS:"xmlns"!==i.name&&(r+="xmlns:"),r+=i.name;break;case yr.XLINK:r+="xlink:".concat(i.name);break;default:r+="".concat(i.prefix,":").concat(i.name)}else r+=i.name;r+='="'.concat(Object(yi.escapeAttribute)(i.value),'"')}}catch(t){o.e(t)}finally{o.f()}return r}(t,e),">").concat(function(t,e){return e.treeAdapter.isElementNode(t)&&e.treeAdapter.getNamespaceURI(t)===yr.HTML&&xi.has(e.treeAdapter.getTagName(t))}(t,e)?"":"".concat(function(t,e){var n="";if(t=e.treeAdapter.isElementNode(t)&&e.treeAdapter.getTagName(t)===wr.TEMPLATE&&e.treeAdapter.getNamespaceURI(t)===yr.HTML?e.treeAdapter.getTemplateContent(t):t,t=e.treeAdapter.getChildNodes(t)){var r,o=bi(t);try{for(o.s();!(r=o.n()).done;)n+=Ti(r.value,e)}catch(t){o.e(t)}finally{o.f()}}return n}(t,e),"</").concat(n,">"))}(t,e):e.treeAdapter.isTextNode(t)?function(t,e){var n=e.treeAdapter,r=n.getTextNodeContent(t),o=n.getParentNode(t);return(t=o&&n.isElementNode(o)&&n.getTagName(o))&&n.getNamespaceURI(o)===yr.HTML&&jr(t,e.scriptingEnabled)?r:Object(yi.escapeText)(r)}(t,e):e.treeAdapter.isCommentNode(t)?function(t,e){return e=e.treeAdapter,"\x3c!--".concat(e.getCommentNodeContent(t),"--\x3e")}(t,e):e.treeAdapter.isDocumentTypeNode(t)?function(t,e){return e=e.treeAdapter,"<!DOCTYPE ".concat(e.getDocumentTypeNodeName(t),">")}(t,e):""}function Ai(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function Oi(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ai(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ai(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Si(t){return new k.f(t)}function ki(t){var e=t.includes('"')?"'":'"';return e+t+e}var Pi={isCommentNode:k.j,isElementNode:k.m,isTextNode:k.n,createDocument:function(){var t=new k.b([]);return t["x-mode"]=c.DOCUMENT_MODE.NO_QUIRKS,t},createDocumentFragment:function(){return new k.b([])},createElement:function(t,e,n){for(var r=Object.create(null),o=Object.create(null),i=Object.create(null),a=0;a<n.length;a++){var s=n[a].name;r[s]=n[a].value,o[s]=n[a].namespace,i[s]=n[a].prefix}return(t=new k.d(t,r,[])).namespace=e,t["x-attribsNamespace"]=o,t["x-attribsPrefix"]=i,t},createCommentNode:function(t){return new k.a(t)},appendChild:function(t,e){var n=t.children[t.children.length-1];n&&((n.next=e).prev=n),t.children.push(e),e.parent=t},insertBefore:function(t,e,n){var r=t.children.indexOf(n),o=n.prev;o&&((o.next=e).prev=o),(n.prev=e).next=n,t.children.splice(r,0,e),e.parent=t},setTemplateContent:function(t,e){Pi.appendChild(t,e)},getTemplateContent:function(t){return t.children[0]},setDocumentType:function(t,e,n,r){var o=function(t,e,n){var r="!DOCTYPE ";return t&&(r+=t),e?r+=" PUBLIC ".concat(ki(e)):n&&(r+=" SYSTEM"),n&&(r+=" ".concat(ki(n))),r}(e,n,r),i=t.children.find((function(t){return Object(k.k)(t)&&"!doctype"===t.name}));i?i.data=null!=o?o:null:(i=new k.e("!doctype",o),Pi.appendChild(t,i)),i["x-name"]=null!=e?e:void 0,i["x-publicId"]=null!=n?n:void 0,i["x-systemId"]=null!=r?r:void 0},setDocumentMode:function(t,e){t["x-mode"]=e},getDocumentMode:function(t){return t["x-mode"]},detachNode:function(t){var e,n,r;t.parent&&(e=t.parent.children.indexOf(t),n=t.prev,r=t.next,t.prev=null,t.next=null,n&&(n.next=r),r&&(r.prev=n),t.parent.children.splice(e,1),t.parent=null)},insertText:function(t,e){var n=t.children[t.children.length-1];n&&Object(k.n)(n)?n.data+=e:Pi.appendChild(t,Si(e))},insertTextBefore:function(t,e,n){var r=t.children[t.children.indexOf(n)-1];r&&Object(k.n)(r)?r.data+=e:Pi.insertBefore(t,Si(e),n)},adoptAttributes:function(t,e){for(var n=0;n<e.length;n++){var r=e[n].name;void 0===t.attribs[r]&&(t.attribs[r]=e[n].value,t["x-attribsNamespace"][r]=e[n].namespace,t["x-attribsPrefix"][r]=e[n].prefix)}},getFirstChild:function(t){return t.children[0]},getChildNodes:function(t){return t.children},getParentNode:function(t){return t.parent},getAttrList:function(t){return t.attributes},getTagName:function(t){return t.name},getNamespaceURI:function(t){return t.namespace},getTextNodeContent:function(t){return t.data},getCommentNodeContent:function(t){return t.data},getDocumentTypeNodeName:function(t){return null!==(t=t["x-name"])&&void 0!==t?t:""},getDocumentTypeNodePublicId:function(t){return null!==(t=t["x-publicId"])&&void 0!==t?t:""},getDocumentTypeNodeSystemId:function(t){return null!==(t=t["x-systemId"])&&void 0!==t?t:""},isDocumentTypeNode:function(t){return Object(k.k)(t)&&"!doctype"===t.name},setNodeSourceCodeLocation:function(t,e){e&&(t.startIndex=e.startOffset,t.endIndex=e.endOffset),t.sourceCodeLocation=e},getNodeSourceCodeLocation:function(t){return t.sourceCodeLocation},updateNodeSourceCodeLocation:function(t,e){null!=e.endOffset&&(t.endIndex=e.endOffset),t.sourceCodeLocation=Oi(Oi({},t.sourceCodeLocation),e)}};function ji(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Ni={treeAdapter:Pi},Li=n(92),Di=n(143),Ii=function(t){return function e(n,o){var i=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];if(null==n)throw new Error("cheerio.load() expects a string");var a=lr(lr({},d),h(o)),s=t(n,a,i,null),l=function(){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ir(t,e)}(n,rr);var e=function(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ar(t);return function(t,e){return!e||"object"!==or(e)&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(t):e}(this,e?(n=ar(this).constructor,Reflect.construct(r,arguments,n)):r.apply(this,arguments))}}(n);function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),e.apply(this,arguments)}return function(t,e){e&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e)}(n,[{key:"_make",value:function(t,e){return(e=c(t,e)).prevObject=this,e}},{key:"_parse",value:function(e,n,r,o){return t(e,n,r,o)}},{key:"_render",value:function(t){return function(t,e){return e.xmlMode||e._useHtmlParser2?Object(Li.a)(t,e):function(t){for(var e=("length"in t?t:[t]),n=0;n<e.length;n+=1){var r,o=e[n];Object(k.l)(o)&&(r=Array.prototype.splice).call.apply(r,[e,n,1].concat(function(t){return function(t){if(Array.isArray(t))return ji(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ji(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ji(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(o.children)))}for(var i="",a=0;a<e.length;a+=1)i+=function(t,e){return Ti(t,Ei(Ei({},Ci),e))}(e[a],Ni);return i}(t)}(t,this.options)}}]),n}();function c(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:s,o=3<arguments.length?arguments[3]:void 0;if(e&&P(e))return e;var i=lr(lr({},a),h(o)),c="string"==typeof r?[t(r,i,!1,null)]:"length"in r?r:[r];if((o=P(c)?c:new l(c,null,i))._root=o,!e)return new l(void 0,o,i);if(r="string"==typeof e&&L(e)?t(e,i,!1,null).children:function(t){return t.name||"root"===t.type||"text"===t.type||"comment"===t.type}(e)?[e]:Array.isArray(e)?e:void 0,c=new l(r,o,i),r)return c;if("string"!=typeof e)throw new Error("Unexpected type of selector");return(o=n?"string"==typeof n?L(n)?new l([t(n,i,!1,null)],o,i):(e="".concat(n," ").concat(e),o):P(n)?n:new l(Array.isArray(n)?n:[n],o,i):o)?o.find(e):c}return Object.assign(c,r,{load:e,_root:s,_options:a,fn:l.prototype,prototype:l.prototype}),c}}(Object(wn.a)((function(t,e,n,r){return e.xmlMode||e._useHtmlParser2?Object(Di.parseDocument)(t,e):function(t,e,n,r){return e={scriptingEnabled:"boolean"!=typeof e.scriptingEnabled||e.scriptingEnabled,treeAdapter:Pi,sourceCodeLocationInfo:e.sourceCodeLocationInfo},n?function(t,e){return So.parse(t,e)}(t,e):function(t,e,n){return"string"==typeof t&&(n=e,e=t,t=null),(n=So.getFragmentParser(t,n)).tokenizer.write(e,!0),n.getFragment()}(r,t,e)}(t,e,n,r)}))),Ri=(e.default=Ii([]),T),Mi=A,Bi=x,Fi=C},function(t,e,n){t.exports=n(234)},function(t,e,n){"use strict";var r=n(1).default,o=n(36).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(9));o=n(141),n=r(n(536)),(0,i.assignComponents)(i.components,n.default.components),(0,o.assignDependencies)(o.dependencies,n.default.dependencies),i=i.default,e.default=i,t.exports=e.default},function(t,e,n){var r=n(145).default,o=n(37);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?o(t):e},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(146),o=n(93),i=n(237),a=n(238);function s(e){var n="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!i(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return a(t,arguments,r(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)},t.exports.default=t.exports,t.exports.__esModule=!0,s(e)}t.exports=s,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(93),o=n(147);function i(e,n,a){return o()?t.exports=i=Reflect.construct:t.exports=i=function(t,e,n){var o=[null];return o.push.apply(o,e),o=new(Function.bind.apply(t,o)),n&&r(o,n.prototype),o},t.exports.default=t.exports,t.exports.__esModule=!0,i.apply(null,arguments)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n=n(149)(Object.keys,Object),t.exports=n},function(t,e,n){n=n(28)(n(16),"DataView"),t.exports=n},function(t,e,n){var r=n(68),o=n(244),i=n(18),a=n(151),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=(n=Object.prototype,l=l.toString,n=n.hasOwnProperty,RegExp("^"+l.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"));t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?c:s).test(a(t))}},function(t,e,n){var r=n(39),o=(n=Object.prototype).hasOwnProperty,i=n.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{var r=!(t[a]=void 0)}catch(t){}var s=i.call(t);return r&&(e?t[a]=n:delete t[a]),s}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){n=n(245);var r=(n=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!r&&r in t}},function(t,e,n){n=n(16)["__core-js_shared__"],t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){n=n(28)(n(16),"Promise"),t.exports=n},function(t,e,n){n=n(28)(n(16),"Set"),t.exports=n},function(t,e,n){var r=n(29),o=n(19);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(29),o=n(96),i=n(19),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e,n){n=n(253)(),t.exports=n},function(t,e){t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++o];if(!1===n(i[l],l,i))break}return e}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(30);t.exports=function(t,e){return function(n,o){if(null==n)return n;if(!r(n))return t(n,o);for(var i=n.length,a=e?i:-1,s=Object(n);(e?a--:++a<i)&&!1!==o(s[a],a,s););return n}}},function(t,e,n){var r=n(24);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(258),o=n(290),i=n(166);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},function(t,e,n){var r=n(100),o=n(157);t.exports=function(t,e,n,i){var a=n.length,s=a,l=!i;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=n[a])[0],p=t[u],d=c[1];if(l&&c[2]){if(void 0===p&&!(u in t))return!1}else{var f,h=new r;if(!(void 0===(f=i?i(p,d,u,t,e,h):f)?o(d,p,3,i,h):f))return!1}}return!0}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(73),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__;return!((t=r(e,t))<0||(t==e.length-1?e.pop():o.call(e,t,1),--this.size,0))}},function(t,e,n){var r=n(73);t.exports=function(t){var e=this.__data__;return(t=r(e,t))<0?void 0:e[t][1]}},function(t,e,n){var r=n(73);t.exports=function(t){return-1<r(this.__data__,t)}},function(t,e,n){var r=n(73);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(72);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__;return t=e.delete(t),this.size=e.size,t}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(72),o=n(95),i=n(101);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(270),o=n(72),i=n(95);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(271),o=n(272),i=n(273),a=n(274);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}n=n(275),s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=n,t.exports=s},function(t,e,n){var r=n(75);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){return t=this.has(t)&&delete this.__data__[t],this.size-=t?1:0,t}},function(t,e,n){var r=n(75),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(75),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(75);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(76);t.exports=function(t){return t=r(this,t).delete(t),this.size-=t?1:0,t}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(t){var e=n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(76);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(76);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(76);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t,e,n){var r=n(100),o=n(158),i=n(286),a=n(289),s=n(38),l=n(12),c=n(70),u=n(97),p="[object Arguments]",d="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,g,m,v){var y=l(t),b=l(e),_=y?d:s(t),w=b?d:s(e),E=(_=_==p?f:_)==f;if(b=(w=w==p?f:w)==f,(w=_==w)&&c(t)){if(!c(e))return!1;E=!(y=!0)}return w&&!E?(v=v||new r,y||u(t)?o(t,e,n,g,m,v):i(t,e,_,n,g,m,v)):1&n||(E=E&&h.call(t,"__wrapped__"),b=b&&h.call(e,"__wrapped__"),!E&&!b)?!!w&&(v=v||new r,a(t,e,n,g,m,v)):m(E?t.value():t,b?e.value():e,n,g,v=v||new r)}},function(t,e,n){var r=n(101),o=n(283);function i(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}n=n(284),i.prototype.add=i.prototype.push=o,i.prototype.has=n,t.exports=i},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(39),o=n(160),i=n(74),a=n(158),s=n(287),l=n(288),c=(r=r?r.prototype:void 0)?r.valueOf:void 0;t.exports=function(t,e,n,r,u,p,d){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var f=s;case"[object Set]":if(f=f||l,t.size!=e.size&&!(1&r))return!1;var h=d.get(t);return h?h==e:(r|=2,d.set(t,e),f=a(f(t),f(e),r,u,p,d),d.delete(t),f);case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},function(t,e,n){var r=n(161),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,s){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var p=u;p--;){var d=c[p];if(!(l?d in e:o.call(e,d)))return!1}var f=s.get(t),h=s.get(e);if(f&&h)return f==e&&h==t;var g=!0;s.set(t,e),s.set(e,t);for(var m=l;++p<u;){var v,y=t[d=c[p]],b=e[d];if(!(void 0===(v=i?l?i(b,y,d,e,t,s):i(y,b,d,t,e,s):v)?y===b||a(y,b,n,i,s):v)){g=!1;break}m=m||"constructor"==d}return!g||m||(f=t.constructor)!=(h=e.constructor)&&"constructor"in t&&"constructor"in e&&!("function"==typeof f&&f instanceof f&&"function"==typeof h&&h instanceof h)&&(g=!1),s.delete(t),s.delete(e),g}},function(t,e,n){var r=n(165),o=n(31);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},function(t,e,n){var r=n(157),o=n(42),i=n(295),a=n(104),s=n(165),l=n(166),c=n(32);t.exports=function(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},function(t,e,n){var r=n(293);t.exports=function(t){var e=(t=r(t,(function(t){return 500===e.size&&e.clear(),t}))).cache;return t}},function(t,e,n){var r=n(101);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");function n(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;return i.has(o)?i.get(o):(r=t.apply(this,r),n.cache=i.set(o,r)||i,r)}return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},function(t,e,n){var r=n(39),o=n(57),i=n(12),a=n(44),s=(r=r?r.prototype:void 0)?r.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return s?s.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},function(t,e,n){var r=n(296),o=n(297);t.exports=function(t,e){return null!=t&&o(t,e,r)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(43),o=n(69),i=n(12),a=n(56),s=n(96),l=n(32);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,p=!1;++c<u;){var d=l(e[c]);if(!(p=null!=t&&n(t,d)))break;t=t[d]}return p||++c!=u?p:!!(u=null==t?0:t.length)&&s(u)&&a(d,u)&&(i(t)||o(t))}},function(t,e,n){var r=n(299),o=n(300),i=n(104),a=n(32);t.exports=function(t){return i(t)?r(a(t)):o(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(77);t.exports=function(t){return function(e){return r(e,t)}}},function(t,e){t.exports=function(t,e,n,r,o){return o(t,(function(t,o,i){n=r?(r=!1,t):e(n,t,o,i)})),n}},function(t,e,n){var r=n(58),o=n(108);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(18),o=n(67),i=n(304),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e,n=o(t),s=[];for(e in t)("constructor"!=e||!n&&a.call(t,e))&&s.push(e);return s}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){(function(t){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(16),i="object"==r(e)&&e&&!e.nodeType&&e,a=i&&"object"==r(t)&&t&&!t.nodeType&&t,s=(o=a&&a.exports===i?o.Buffer:void 0)?o.allocUnsafe:void 0;t.exports=function(t,e){return e?t.slice():(e=t.length,e=s?s(e):new t.constructor(e),t.copy(e),e)}}).call(this,n(54)(t))},function(t,e,n){var r=n(58),o=n(103);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(58),o=n(171);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&n.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t,e,n){var r=n(111),o=n(310),i=n(311),a=n(312),s=n(313);t.exports=function(t,e,n){var l=t.constructor;switch(e){case"[object ArrayBuffer]":return r(t);case"[object Boolean]":case"[object Date]":return new l(+t);case"[object DataView]":return o(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(t);case"[object RegExp]":return i(t);case"[object Symbol]":return a(t)}}},function(t,e,n){var r=n(111);t.exports=function(t,e){return e=e?r(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=(n=(n=n(39))?n.prototype:void 0)?n.valueOf:void 0;t.exports=function(t){return r?Object(r.call(t)):{}}},function(t,e,n){var r=n(111);t.exports=function(t,e){return e=e?r(t.buffer):t.buffer,new t.constructor(e,t.byteOffset,t.length)}},function(t,e,n){var r=n(79),o=n(109),i=n(67);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(316),o=n(98);r=(n=(n=n(99))&&n.isMap)?o(n):r,t.exports=r},function(t,e,n){var r=n(38),o=n(19);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(318),o=n(98);r=(n=(n=n(99))&&n.isSet)?o(n):r,t.exports=r},function(t,e,n){var r=n(38),o=n(19);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},function(t,e,n){var r=n(43),o=n(320),i=n(321),a=n(32);t.exports=function(t,e){return e=r(e,t),null==(t=i(t,e))||delete t[a(o(e))]}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){var r=n(77),o=n(322);t.exports=function(t,e){return e.length<2?t:r(t,o(e,0,-1))}},function(t,e){t.exports=function(t,e,n){var r=-1,o=t.length;(n=o<n?o:n)<0&&(n+=o),o=n<(e=e<0?o<-e?0:o+e:e)?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},function(t,e,n){var r=n(172);t.exports=function(t){return r(t)?void 0:t}},function(t,e,n){var r=n(325);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e,n){var r=n(102),o=n(326);t.exports=function t(e,n,i,a,s){var l=-1,c=e.length;for(i=i||o,s=s||[];++l<c;){var u=e[l];0<n&&i(u)?1<n?t(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(t,e,n){var r=n(39),o=n(69),i=n(12),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(113),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),l=Array(s);++a<s;)l[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=n(l),r(t,this,c)}}},function(t,e,n){var r=n(329),o=n(169);n=n(24),t.exports=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:n},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,n){var r=n(55),o=n(30);t.exports=function(t,e){var n=-1,i=o(t)?Array(t.length):[];return r(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}},function(t,e,n){var r=n(55);t.exports=function(t,e){var n=[];return r(t,(function(t,r,o){e(t,r,o)&&n.push(t)})),n}},function(t,e,n){var r=n(20),o=n(30),i=n(31);t.exports=function(t){return function(e,n,a){var s,l=Object(e);return o(e)||(s=r(n,3),e=i(e),n=function(t){return s(l[t],t,l)}),-1<(a=t(e,n,a))?l[s?e[a]:a]:void 0}}},function(t,e,n){var r=n(115),o=n(20),i=n(59),a=Math.max;t.exports=function(t,e,n){var s=null==t?0:t.length;return s?((n=null==n?0:i(n))<0&&(n=a(s+n,0)),r(t,o(e,3),n)):-1}},function(t,e,n){var r=n(335),o=n(18),i=n(44),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)&&(e="function"==typeof t.valueOf?t.valueOf():t,t=o(e)?e+"":e),"string"!=typeof t)return 0===t?t:+t;t=r(t);var e=s.test(t);return e||l.test(t)?c(t.slice(2),e?2:8):a.test(t)?NaN:+t}},function(t,e,n){var r=n(336),o=/^\s+/;t.exports=function(t){return t&&t.slice(0,r(t)+1).replace(o,"")}},function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},function(t,e,n){"use strict";var r=n(338),o=n(349)((function(t,e){return r(t,{xmlMode:e&&e.xmlMode},i,[e])})),i=function(t,e){return o.juiceDocument(t,e)};o.inlineContent=function(t,e,n){return r(t,{xmlMode:n&&n.xmlMode},o.inlineDocument,[e,n])},o.codeBlocks=r.codeBlocks,t.exports=o},function(t,e,n){"use strict";var r=n(232);n(116),t.exports=function(e,n,o,i){var a=function(){var e=[];return{encodeEntities:function(n){var r=t.exports.codeBlocks;return Object.keys(r).forEach((function(t){t=new RegExp(r[t].start+"([\\S\\s]*?)"+r[t].end,"g"),n=n.replace(t,(function(t,n){return e.push(t),"JUICE_CODE_BLOCK_"+(e.length-1)+"_"}))})),n},decodeEntities:function(t){for(var n=0;n<e.length;n++){var r=new RegExp("JUICE_CODE_BLOCK_"+n+'_(="")?',"gi");t=t.replace(r,(function(){return e[n]}))}return t}}}(),s=function(t,e,n){return e=Object.assign({decodeEntities:!1,_useHtmlParser2:!0},e),t=n(t),r.load(t,e)}(e,n,a.encodeEntities);return(e=[s]).push.apply(e,i),s=o.apply(void 0,e)||s,n&&n.xmlMode?a.decodeEntities(s.xml()):a.decodeEntities(s.html())},t.exports.codeBlocks={EJS:{start:"<%",end:"%>"},HBS:{start:"{{",end:"}}"}}},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t);return 3*((t=e[0])+(e=e[1]))/4-e},e.toByteArray=function(t){for(var e,n=(r=l(t))[0],r=r[1],a=new i(function(t,e,n){return 3*(e+n)/4-n}(0,n,r)),s=0,c=0<r?n-4:n,u=0;u<c;u+=4)e=o[t.charCodeAt(u)]<<18|o[t.charCodeAt(u+1)]<<12|o[t.charCodeAt(u+2)]<<6|o[t.charCodeAt(u+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=255&e;return 2===r&&(e=o[t.charCodeAt(u)]<<2|o[t.charCodeAt(u+1)]>>4,a[s++]=255&e),1===r&&(e=o[t.charCodeAt(u)]<<10|o[t.charCodeAt(u+1)]<<4|o[t.charCodeAt(u+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e),a},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(function(t,e,n){for(var o,i=[],a=e;a<n;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(function(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}(o));return i.join("")}(t,a,s<a+16383?s:a+16383));return 1==o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2==o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");return[t=-1===(t=t.indexOf("="))?e:t,t===e?0:4-t%4]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,c=l>>1,u=-7,p=n?o-1:0,d=n?-1:1;for(n=t[e+p],p+=d,i=n&(1<<-u)-1,n>>=-u,u+=s;0<u;i=256*i+t[e+p],p+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;0<u;a=256*a+t[e+p],p+=d,u-=8);if(0===i)i=1-c;else{if(i===l)return a?NaN:1/0*(n?-1:1);a+=Math.pow(2,r),i-=c}return(n?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,l=8*i-o-1,c=(1<<l)-1,u=c>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,f=r?1:-1;for(i=e<0||0===e&&1/e<0?1:0,e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(e+=1<=a+u?p/r:p*Math.pow(2,1-u))*r&&(a++,r/=2),c<=a+u?(s=0,a=c):1<=a+u?(s=(e*r-1)*Math.pow(2,o),a+=u):(s=e*Math.pow(2,u-1)*Math.pow(2,o),a=0));8<=o;t[n+d]=255&s,d+=f,s/=256,o-=8);for(a=a<<o|s,l+=o;0<l;t[n+d]=255&a,d+=f,a/=256,l-=8);t[n+d-f]|=128*i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(t){return t.charCodeAt(0)})))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(t){return t.charCodeAt(0)})))},function(t,e,n){t.exports={lex:n(178),parse:n(344),stringify:n(345)}},function(t,e,n){n(117)("parse");var r,o,i,a,s=n(178);function l(t,e){var n;e=e||{};for(var r=["type","name","value"],o={},a=0;a<r.length;++a)t[n=r[a]]&&(o[n]=e[n]||t[n]);for(r=Object.keys(e),a=0;a<r.length;++a)o[n=r[a]]||(o[n]=e[n]);return i&&(o.position={start:t.start,end:t.end}),o}function c(){return a.shift()}function u(t){switch(t.type){case"property":case"charset":case"import":case"namespace":return function(t){return l(t)}(t);case"selector":return function(t){return l(t,{type:"rule",selectors:t.text.split(",").map((function(t){return t.trim()})),declarations:d()})}(t);case"at-group-end":return void--o;case"media":case"keyframes":case"font-face":case"supports":case"viewport":case"document":case"page":return function(t){o+=1;var e={};switch(t.type){case"font-face":case"viewport":e.declarations=d();break;case"page":e.prefix=t.prefix,e.declarations=d();break;default:e.prefix=t.prefix,e.rules=p((function(){return o}))}return l(t,e)}(t);case"comment":if(r)return function(t){return l(t,{text:t.text})}(t)}}function p(t){for(var e,n,r=[];(n=c())&&t&&t(n);)(e=u(n))&&r.push(e);return n&&"end"!==n.type&&a.unshift(n),r}function d(){return p((function(t){return"property"===t.type||"comment"===t.type}))}t.exports=function(t,e){r=!!(e=e||{}).comments,i=!!e.position,o=0,a=Array.isArray(t)?t.slice():s(t);for(var n,l=[];n=c();)(n=u(n))&&l.push(n);return{type:"stylesheet",stylesheet:{rules:l}}}},function(t,e,n){var r,o,i,a,s,l;function c(t){if(!t)return o?"":Array(a).join(i||"");a+=t}function u(t){return r?"/*"+(t.text||"")+"*/"+s:""}function p(t){var e;return t.selectors?e=t.selectors.join(","+s):(e="@"+t.type,e+=t.name?" "+t.name:""),c()+e+l+f(t)+s}function d(t,e){return t.reduce((function(t,n){return(n=("comment"===n.type?u:e)(n))&&t.push(n),t}),[])}function f(t,e){var n=t.declarations,r=h;return t.rules&&(n=t.rules,r=p),"{"+(n=(n=function(t,e){return t?(c(1),e=d(t,e),c(-1),e.length?e.join(s):""):""}(n,r))&&s+n+(e?"":s))+c()+"}"}function h(t){if("property"===t.type)return function(t){var e=t.name?t.name+":"+l:"";return c()+e+t.value+";"}(t)}function g(t){switch(t.type){case"rule":return p(t);case"media":case"keyframes":case"font-face":case"supports":case"viewport":case"document":case"page":return function(t){var e="",n=t.prefix||"";t.name&&(e=" "+t.name);var r="page"!==t.type;return"@"+n+t.type+e+l+f(t,r)+s}(t);case"comment":return u(t);case"import":case"charset":case"namespace":return function(t){return"@"+t.type+" "+t.value+";"+s}(t)}}n(117)("stringify"),t.exports=function(t,e){return i=(e=e||{}).indentation||"",o=!!e.compress,r=!!e.comments,a=1,o?s=l="":(s="\n",l=" "),d(t.stylesheet.rules,g).join("\n").trim()}},function(t,e,n){"use strict";var r=n(347);function o(t,e){this.text=t,this.spec=void 0,this.styleAttribute=e||!1}function i(t){try{return r(t)[0]}catch(t){return[]}}(t.exports=o).prototype.parsed=function(){return this.tokens||(this.tokens=i(this.text)),this.tokens},o.prototype.specificity=function(){var t=this.styleAttribute;return this.spec||(this.spec=function e(n,r){for(var o=r||i(n),a=[t?1:0,0,0,0],s=[],l=0;l<o.length;l++){var c=o[l],u=c.pseudos;if(c.id&&a[1]++,c.attributes&&(a[2]+=c.attributes.length),c.classList&&(a[2]+=c.classList.length),c.tag&&"*"!==c.tag&&a[3]++,u){a[3]+=u.length;for(var p=0;p<u.length;p++)"not"===u[p].name&&(s.push(u[p].value),a[3]--)}}for(var d=s.length;d--;)for(var f=e(s[d]),h=4;h--;)a[h]+=f[h];return a}(this.text,this.parsed())),this.spec}},function(t,e,n){"use strict";function r(t){return(t+"").replace(a,"\\$1")}function o(t){return(t+"").replace(s,"")}function i(t){this.combinator=t||" ",this.tag="*"}var a=/([-.*+?^${}()|[\]\/\\])/g,s=/\\/g,l=RegExp("^(?:\\s*(,)\\s*|\\s*(<combinator>+)\\s*|(\\s+)|(<unicode>+|\\*)|\\#(<unicode>+)|\\.(<unicode>+)|\\[\\s*(<unicode1>+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(<unicode>+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(/<combinator>/,"["+r(">+~`!@$%^&={}\\;</")+"]").replace(/<unicode>/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(/<unicode1>/g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])"));function c(){this.length=0}function u(t,e,n,a,s,l,u,p,d,f,h,g,m,v,y,b){var _,w;return(e||!this.length)&&(_=this[this.length++]=new c,e)||(_=_||this[this.length-1],w=(w=n||a||!_.length?_[_.length++]=new i(n):w)||_[_.length-1],s?w.tag=o(s):l?w.id=o(l):u?(s=o(u),(l=w.classes||(w.classes={}))[s]||(l[s]=r(u),(u=w.classList||(w.classList=[])).push(s),u.sort())):m?(b=b||y,(w.pseudos||(w.pseudos=[])).push({type:1==g.length?"class":"element",name:o(m),escapedName:r(m),value:b?o(b):null,escapedValue:b?r(b):null})):p&&(h=h?r(h):null,(w.attributes||(w.attributes=[])).push({operator:d,name:o(p),escapedName:r(p),value:h?o(h):null,escapedValue:h?r(h):null}))),""}function p(t){this.length=0;for(var e,n=this,r=t;t;){if((e=t.replace(l,(function(){return u.apply(n,arguments)})))===t)throw new Error(r+" is an invalid expression");t=e}}i.prototype.toString=function(){if(!this.raw){var t,e,n="";if(n+=this.tag||"*",this.id&&(n+="#"+this.id),this.classes&&(n+="."+this.classList.join(".")),this.attributes)for(t=0;e=this.attributes[t++];)n+="["+e.name+(e.operator?e.operator+'"'+e.value+'"':"")+"]";if(this.pseudos)for(t=0;e=this.pseudos[t++];)n+=":"+e.name,e.value&&(n+="("+e.value+")");this.raw=n}return this.raw},c.prototype.toString=function(){if(!this.raw){for(var t,e="",n=0;t=this[n++];)1!==n&&(e+=" ")," "!==t.combinator&&(e+=t.combinator+" "),e+=t;this.raw=e}return this.raw},p.prototype.toString=function(){if(!this.raw){for(var t,e=[],n=0;t=this[n++];)e.push(t);this.raw=e.join(", ")}return this.raw};var d={};t.exports=function(t){return null==t?null:(t=(""+t).replace(/^\s+|\s+$/g,""),d[t]||(d[t]=new p(t)))}},function(t,e,n){"use strict";t.exports=o;var r=n(116);function o(t,e,n,r,o){this.prop=t,this.value=e,this.selector=n,this.priority=r||0,this.additionalPriority=o||[]}o.prototype.compareFunc=function(t){var e=[];e.push.apply(e,this.selector.specificity()),e.push.apply(e,this.additionalPriority),e[0]+=this.priority;var n=[];return n.push.apply(n,t.selector.specificity()),n.push.apply(n,t.additionalPriority),n[0]+=t.priority,r.compareFunc(e,n)},o.prototype.compare=function(t){return 1===this.compareFunc(t)?this:t},o.prototype.toString=function(){return this.prop+": "+this.value.replace(/['"]+/g,"")+";"}},function(t,e,n){"use strict";var r=n(116),o=n(350);t.exports=function(t){function e(e,a,s){s=s||{};var l=r.parseCSS(a),c=[],u="style",p={};function d(r,o){if(r.name){var i=r.name.toUpperCase();if(-1<t[o+"Elements"].indexOf(i))for(var a in r.styleProps)if(r.styleProps[a].prop===o){var l=r.styleProps[a].value;if((l=s.preserveImportant?n(l):l).match(/(px|auto)/))return a=l.replace("px",""),e(r).attr(o,a),0;if(-1<t.tableElements.indexOf(i)&&l.match(/\%/))return e(r).attr(o,l),0}}}s.styleAttributeName&&(u=s.styleAttributeName),l.forEach((function(o){var a=o[0],l=o[1],d=new r.Selector(a),f=d.parsed();if(f){for(var h,g,m=function(t){if(0!==t.length){var e=t[t.length-1].pseudos;if(e)for(var n=0;n<e.length;n++)if(i(e[n]))return e[n].name}}(f),v=0;v<f.length;++v){var y=f[v];if(y.pseudos)for(var b=0;b<y.pseudos.length;++b){var _=y.pseudos[b];if(0<=t.ignoredPseudos.indexOf(_.name))return}}m&&(o=(h=f[f.length-1]).pseudos,h.pseudos=function(t){return t.filter((function(t){return!i(t)}))}(h.pseudos),a=f.toString(),h.pseudos=o);try{g=e(a)}catch(o){return}g.each((function(){var o,i,a=this;function f(e,o){for(var i,l,c,u,d=0,f=e.length;d<f;d++)"property"==e[d].type&&(i=e[d].name,l=e[d].value,"counter-reset"===i&&function(t,e){for(var n=e.split(/\s+/),r=0;r<n.length;r++){var o=n[r],i=parseInt(n[r+1],10);isNaN(i)?t.counterProps[o]=p[o]=0:t.counterProps[o]=p[n[r++]]=i}}(a,l),"counter-increment"===i&&function(t,e){for(var n=e.split(/\s+/),r=0;r<n.length;r++){var o,i=n[r];void 0!==t.counterProps[i]&&(o=parseInt(n[r+1],10),isNaN(o)?t.counterProps[i]=p[i]+=1:t.counterProps[i]=p[n[r++]]+=o)}}(a,l),(c=null!==l.match(/!important$/))&&!s.preserveImportant&&(l=n(l)),u=[e[d].position.start.line,e[d].position.start.col],c=new r.Property(i,l,o,c?2:0,u),u=a.styleProps[i],t.excludedProperties.indexOf(i)<0&&(u&&u.compare(c)===c||!u)&&(u&&u.selector!==o?delete a.styleProps[i]:u&&(c.nextProp=u),a.styleProps[i]=c))}a.name&&0<=t.nonVisualElements.indexOf(a.name.toUpperCase())||(m&&((i=a[o="pseudo"+m])||((i=a[o]=e("<span />").get(0)).pseudoElementType=m,i.pseudoElementParent=a,i.counterProps=a.counterProps,a[o]=i),a=i),a.styleProps||(a.styleProps={},e(a).attr(u)&&(i="* { "+e(a).attr(u)+" } ",f(r.parseCSS(i)[0][1],new r.Selector("<style>",!0))),c.push(a)),a.counterProps||(a.counterProps=a.parent&&a.parent.counterProps?Object.create(a.parent.counterProps):{}),f(l,d))}))}})),c.forEach((function(t){Object.keys(t.styleProps).length;var n=[];Object.keys(t.styleProps).forEach((function(e){for(var r=t.styleProps[e];void 0!==r;)n.push(r),r=r.nextProp})),n.sort((function(t,e){return t.compareFunc(e)}));var r=n.filter((function(t){return"content"!==t.prop})).map((function(t){return t.prop+": "+t.value.replace(/["]/g,"'")+";"})).join(" ");r&&e(t).attr(u,r)})),s.inlinePseudoElements&&c.forEach((function(t){var n;t.pseudoElementType&&t.styleProps.content&&((n=function(t){var e=t.styleProps.content.value;if("none"===e||"normal"===e)return"";var n=e.match(/^\s*url\s*\(\s*(.*?)\s*\)\s*$/i);if(n)return{img:n[1].replace(/^['"]|['"]$/g,"")};for(var r,i,a=[],s=e.split(/['"]/),l=0;l<s.length;l++)""!==s[l]&&((i=s[l].match(/var\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i))?(r=function(t,e){for(;t;){if(e in t.styleProps)return t.styleProps[e].value;t=t.pseudoElementParent||t.parent}}(t,i[1])||i[2],a.push(r.replace(/^['"]|['"]$/g,""))):(i=s[l].match(/counter\s*\(\s*(.*?)\s*(,\s*(.*?)\s*)?\s*\)/i))&&i[1]in t.counterProps?(r=t.counterProps[i[1]],a.push(function(t,e){switch(e){case"lower-roman":return o.romanize(t).toLowerCase();case"upper-roman":return o.romanize(t);case"lower-latin":case"lower-alpha":return o.alphanumeric(t).toLowerCase();case"upper-latin":case"upper-alpha":return o.alphanumeric(t);default:return t.toString()}}(r,i[3]))):(i=s[l].match(/attr\s*\(\s*(.*?)\s*\)/i))?(i=i[1],a.push((t.pseudoElementParent||t).attribs[i])):a.push(s[l]));return(e=a.join("")).replace(/\\/g,"")}(t)).img?(t.name="img",e(t).attr("src",n.img)):e(t).text(n),n=t.pseudoElementParent,"before"===t.pseudoElementType?e(n).prepend(t):e(n).append(t))})),s.applyWidthAttributes&&c.forEach((function(t){d(t,"width")})),s.applyHeightAttributes&&c.forEach((function(t){d(t,"height")})),s.applyAttributesTableElements&&c.forEach((function(r){if(r.name){var o,i=r.name.toUpperCase(),a=Object.keys(t.styleToAttribute);if(-1<t.tableElements.indexOf(i))for(var l in r.styleProps)-1<a.indexOf(r.styleProps[l].prop)&&(o=t.styleToAttribute[r.styleProps[l].prop],l=r.styleProps[l].value,s.preserveImportant&&(l=n(l)),"background"===o&&(l=function(t){return 0!==t.indexOf("url(")?t:t.replace(/^url\((["'])?([^"']+)\1\)$/,"$2")}(l)),/(linear|radial)-gradient\(/i.test(l)||e(r).attr(o,l))}})),s.insertPreservedExtraCss&&s.extraCss&&(a=r.getPreservedText(s.extraCss,{mediaQueries:s.preserveMediaQueries,fontFaces:s.preserveFontFaces,keyFrames:s.preserveKeyFrames}))&&(!(l=null)!==s.insertPreservedExtraCss?l=e(s.insertPreservedExtraCss):(l=(l=e("head")).length?l:e("body")).length||(l=e.root()),l.first().append("<style>"+a+"</style>"))}function n(t){return t.replace(/\s*!important$/,"")}function i(t){return"before"===t.name||"after"===t.name}return t.ignoredPseudos=["hover","active","focus","visited","link"],t.widthElements=["TABLE","TD","TH","IMG"],t.heightElements=["TABLE","TD","TH","IMG"],t.tableElements=["TABLE","TH","TR","TD","CAPTION","COLGROUP","COL","THEAD","TBODY","TFOOT"],t.nonVisualElements=["HEAD","TITLE","BASE","LINK","STYLE","META","SCRIPT","NOSCRIPT"],t.styleToAttribute={"background-color":"bgcolor","background-image":"background","text-align":"align","vertical-align":"valign"},t.excludedProperties=[],t.juiceDocument=function(n,o){var i=function(e,n){return function(e,n){var o,i,a=[];return e("style").each((function(){var s,l=!!(i=this).childNodes;1===(o=l?i.childNodes:i.children).length?(o=o[0].data,n.applyStyleTags&&void 0===e(i).attr("data-embed")&&a.push(o),n.removeStyleTags&&void 0===e(i).attr("data-embed")&&(s=l?i.childNodes[0].nodeValue:i.children[0].data,(s=r.getPreservedText(s,{mediaQueries:n.preserveMediaQueries,fontFaces:n.preserveFontFaces,keyFrames:n.preserveKeyFrames,pseudos:n.preservePseudos},t.ignoredPseudos))?l?i.childNodes[0].nodeValue=s:i.children[0].data=s:e(i).remove()),e(i).removeAttr("data-embed")):n.removeStyleTags&&e(i).remove()})),a}(e,n).join("\n")}(n,o=r.getDefaultOptions(o));return e(n,i+="\n"+o.extraCss,o),n},t.inlineDocument=e,t}},function(t,e,n){"use strict";e.romanize=function(t){if(isNaN(t))return NaN;for(var e=String(+t).split(""),n=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],r="",o=3;o--;)r=(n[+e.pop()+10*o]||"")+r;return Array(+e.join("")+1).join("M")+r},e.alphanumeric=function(t){for(var e,n="";0<t;)e=(t-1)%26,n=String.fromCharCode(65+e)+n,t=(t-e)/26|0;return n||void 0}},function(t,e,n){var r;function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var i;!function(){"use strict";var t=[,,function(t){function e(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 n(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||"",0<t.indent_level&&(e=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=e,this.__base_string_length=e.length}function r(t,r){this.__indent_cache=new n(t,r),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 e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var e=this.__items.length-1;0<=e;e--)if(this.__items[e].match(t))return!0;return!1},e.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))},e.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)},e.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},e.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),!0}return!1},e.prototype.is_empty=function(){return 0===this.__items.length},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.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},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){0<this.__indent_count&&(--this.__indent_count,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){0<this.__wrap_point_indent_count&&--this.__wrap_point_indent_count},e.prototype.trim=function(){for(;" "===this.last();)this.__items.pop(),--this.__character_count},e.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},n.prototype.get_indent_size=function(t,e){var n=this.__base_string_length;return t<0&&(n=0),(n+=t*this.__indent_size)+(e||0)},n.prototype.get_indent_string=function(t,e){var n=this.__base_string;return e=e||0,t<0&&(t=0,n=""),e+=t*this.__indent_size,this.__ensure_cache(e),n+this.__cache[e]},n.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},n.prototype.__add_column=function(){var t,e=this.__cache.length,n="";this.__indent_size&&e>=this.__indent_size&&(e-=(t=Math.floor(e/this.__indent_size))*this.__indent_size,n=new Array(t+1).join(this.__indent_string)),e&&(n+=new Array(e+1).join(" ")),this.__cache.push(n)},r.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},r.prototype.get_line_number=function(){return this.__lines.length},r.prototype.get_indent_string=function(t,e){return this.__indent_cache.get_indent_string(t,e)},r.prototype.get_indent_size=function(t,e){return this.__indent_cache.get_indent_size(t,e)},r.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},r.prototype.add_new_line=function(t){return!(this.is_empty()||!t&&this.just_added_newline()||(this.raw||this.__add_outputline(),0))},r.prototype.get_code=function(t){this.trim(!0);var e=this.current_line.pop();return e&&("\n"===e[e.length-1]&&(e=e.replace(/\n+$/g,"")),this.current_line.push(e)),this._end_with_newline&&this.__add_outputline(),e=this.__lines.join("\n"),"\n"!==t?e.replace(/[\n]/g,t):e},r.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},r.prototype.set_indent=function(t,e){return this.next_line.set_indent(t=t||0,e=e||0),1<this.__lines.length?(this.current_line.set_indent(t,e),!0):(this.current_line.set_indent(),!1)},r.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},r.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()},r.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(" "))},r.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()},r.prototype.trim=function(t){for(t=void 0!==t&&t,this.current_line.trim();t&&1<this.__lines.length&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=1<this.__lines.length?this.__lines[this.__lines.length-2]:null},r.prototype.just_added_newline=function(){return this.current_line.is_empty()},r.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},r.prototype.ensure_empty_line_above=function(t,n){for(var r=this.__lines.length-2;0<=r;){var o=this.__lines[r];if(o.is_empty())break;if(0!==o.item(0).indexOf(t)&&o.item(-1)!==n){this.__lines.splice(r+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}r--}},t.exports.Output=r},function(t){t.exports.Token=function(t,e,n,r){this.type=t,this.text=e,this.comments_before=null,this.newlines=n||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}},,,function(t){function e(t,e){this.raw_options=n(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 n(t,e){var n,o={};for(n in t=r(t))n!==e&&(o[n]=t[n]);if(e&&t[e])for(n in t[e])o[n]=t[e][n];return o}function r(t){var e,n={};for(e in t)n[e.replace(/-/g,"_")]=t[e];return n}e.prototype._get_array=function(t,e){return e=e||[],"object"===o(t=this.raw_options[t])?null!==t&&"function"==typeof t.concat&&(e=t.concat()):"string"==typeof t&&(e=t.split(/[^a-zA-Z0-9_\/\-]+/)),e},e.prototype._get_boolean=function(t,e){return void 0===(t=this.raw_options[t])?!!e:!!t},e.prototype._get_characters=function(t,e){return e=e||"","string"==typeof(t=this.raw_options[t])?t.replace(/\\r/,"\r").replace(/\\n/,"\n").replace(/\\t/,"\t"):e},e.prototype._get_number=function(t,e){return t=this.raw_options[t],e=parseInt(e,10),isNaN(e)&&(e=0),t=parseInt(t,10),isNaN(t)?e:t},e.prototype._get_selection=function(t,e,n){if(1!==(n=this._get_selection_list(t,e,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]},e.prototype._get_selection_list=function(t,e,n){if(!e||0===e.length)throw new Error("Selection list cannot be empty.");if(n=n||[e[0]],!this._is_valid_selection(n,e))throw new Error("Invalid Default Value!");if(n=this._get_array(t,n),!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},e.prototype._is_valid_selection=function(t,e){return t.length&&e.length&&!t.some((function(t){return-1===e.indexOf(t)}))},t.exports.Options=e,t.exports.normalizeOpts=r,t.exports.mergeOpts=n},,function(t){var e=RegExp.prototype.hasOwnProperty("sticky");function n(t){this.__input=t||"",this.__input_length=this.__input.length,this.__position=0}n.prototype.restart=function(){this.__position=0},n.prototype.back=function(){0<this.__position&&--this.__position},n.prototype.hasNext=function(){return this.__position<this.__input_length},n.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__input.charAt(this.__position),this.__position+=1),t},n.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__input_length?this.__input.charAt(t):null},n.prototype.__match=function(t,n){t.lastIndex=n;var r=t.exec(this.__input);return!r||e&&t.sticky||r.index!==n&&(r=null),r},n.prototype.test=function(t,e){return e=e||0,0<=(e+=this.__position)&&e<this.__input_length&&!!this.__match(t,e)},n.prototype.testChar=function(t,e){return e=this.peek(e),t.lastIndex=0,null!==e&&t.test(e)},n.prototype.match=function(t){return(t=this.__match(t,this.__position))?this.__position+=t[0].length:t=null,t},n.prototype.read=function(t,e,n){var r,o="";return t&&(r=this.match(t))&&(o+=r[0]),!e||!r&&t||(o+=this.readUntil(e,n)),o},n.prototype.readUntil=function(t,e){var n=this.__position;return t.lastIndex=this.__position,(t=t.exec(this.__input))?(n=t.index,e&&(n+=t[0].length)):n=this.__input_length,t=this.__input.substring(this.__position,n),this.__position=n,t},n.prototype.readUntilAfter=function(t){return this.readUntil(t,!0)},n.prototype.get_regexp=function(t,n){var r=null;return n=n&&e?"y":"g","string"==typeof t&&""!==t?r=new RegExp(t,n):t&&(r=new RegExp(t.source,n)),r},n.prototype.get_literal_regexp=function(t){return RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},n.prototype.peekUntilAfter=function(t){var e=this.__position;return t=this.readUntilAfter(t),this.__position=e,t},n.prototype.lookBack=function(t){var e=this.__position-1;return e>=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var r=n(8).InputScanner,o=n(3).Token,i=n(10).TokenStream,a=n(11).WhitespacePattern,s={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"};(n=function(t,e){this._input=new r(t),this._options=e||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new a(this._input)}).prototype.tokenize=function(){var t;this._input.restart(),this.__tokens=new i,this._reset();for(var e=new o(s.START,""),n=null,r=[],a=new i;e.type!==s.EOF;){for(t=this._get_next_token(e,n);this._is_comment(t);)a.add(t),t=this._get_next_token(e,n);a.isEmpty()||(t.comments_before=a,a=new i),t.parent=n,this._is_opening(t)?(r.push(n),n=t):n&&this._is_closing(t,n)&&((t.opened=n).closed=t,n=r.pop(),t.parent=n),(t.previous=e).next=t,this.__tokens.add(t),e=t}return this.__tokens},n.prototype._is_first_token=function(){return this.__tokens.isEmpty()},n.prototype._reset=function(){},n.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.read(/.+/g);return n?this._create_token(s.RAW,n):this._create_token(s.EOF,"")},n.prototype._is_comment=function(t){return!1},n.prototype._is_opening=function(t){return!1},n.prototype._is_closing=function(t,e){return!1},n.prototype._create_token=function(t,e){return new o(t,e,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token)},n.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},t.exports.Tokenizer=n,t.exports.TOKEN=s},function(t){function e(t){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=t}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return 0===this.__tokens_length},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var t=null;return this.hasNext()&&(t=this.__tokens[this.__position],this.__position+=1),t},e.prototype.peek=function(t){return t=t||0,0<=(t+=this.__position)&&t<this.__tokens_length?this.__tokens[t]:null},e.prototype.add=function(t){this.__parent_token&&(t.parent=this.__parent_token),this.__tokens.push(t),this.__tokens_length+=1},t.exports.TokenStream=e},function(t,e,n){var r=n(12).Pattern;function o(t,e){r.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=""}(o.prototype=new r).__set_whitespace_patterns=function(t,e){this._match_pattern=this._input.get_regexp("["+(t+="\\t ")+(e+="\\n\\r")+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+e+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var t,e=this._input.read(this._match_pattern);return" "===e?this.whitespace_before_token=" ":e&&(t=this.__split(this._newline_regexp,e),this.newline_count=t.length-1,this.whitespace_before_token=t[this.newline_count]),e},o.prototype.matching=function(t,e){var n=this._create();return n.__set_whitespace_patterns(t,e),n._update(),n},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(t,e){for(var n=t.lastIndex=0,r=[],o=t.exec(e);o;)r.push(e.substring(n,o.index)),n=o.index+o[0].length,o=t.exec(e);return n<e.length?r.push(e.substring(n,e.length)):r.push(""),r},t.exports.WhitespacePattern=o},function(t){function e(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)}e.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},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.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},e.prototype.until=function(t){var e=this._create();return e._until_after=!1,e._until_pattern=this._input.get_regexp(t),e._update(),e},e.prototype.starting_with=function(t){var e=this._create();return e._starting_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype.matching=function(t){var e=this._create();return e._match_pattern=this._input.get_regexp(t,!0),e._update(),e},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},t.exports.Pattern=e},function(t){function e(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")}e.prototype.get_directives=function(t){if(!t.match(this.__directives_block_pattern))return null;var e={};this.__directive_pattern.lastIndex=0;for(var n=this.__directive_pattern.exec(t);n;)e[n[1]]=n[2],n=this.__directive_pattern.exec(t);return e},e.prototype.readIgnored=function(t){return t.readUntilAfter(this.__directives_end_ignore_pattern)},t.exports.Directives=e},function(t,e,n){var r=n(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function i(t,e){r.call(this,t,e),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),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)),t=new r(t),this.__patterns={handlebars_comment:t.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:t.starting_with(/{{{/).until_after(/}}}/),handlebars:t.starting_with(/{{/).until_after(/}}/),php:t.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:t.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:t.starting_with(/{%/).until_after(/%}/),django_value:t.starting_with(/{{/).until_after(/}}/),django_comment:t.starting_with(/{#/).until_after(/#}/),smarty:t.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:t.starting_with(/{\*/).until_after(/\*}/),smarty_literal:t.starting_with(/{literal}/).until_after(/{\/literal}/)}}(i.prototype=new r)._create=function(){return new i(this._input,this)},i.prototype._update=function(){this.__set_templated_pattern()},i.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},i.prototype.read_options=function(t){var e,n=this._create();for(e in o)n._disabled[e]=-1===t.templating.indexOf(e);return n._update(),n},i.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},i.prototype.read=function(){for(var t="",e=(t=this._match_pattern?this._input.read(this._starting_pattern):this._input.read(this._starting_pattern,this.__template_pattern),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},i.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("|")+")")},i.prototype._read_template=function(){var t,e="",n=this._input.peek();return"<"===n?(t=this._input.peek(1),this._disabled.php||this._excluded.php||"?"!==t||(e=e||this.__patterns.php.read()),this._disabled.erb||this._excluded.erb||"%"!==t||(e=e||this.__patterns.erb.read())):"{"===n&&(this._disabled.handlebars||this._excluded.handlebars||(e=(e=(e=e||this.__patterns.handlebars_comment.read())||this.__patterns.handlebars_unescaped.read())||this.__patterns.handlebars.read()),this._disabled.django||(this._excluded.django||this._excluded.handlebars||(e=e||this.__patterns.django_value.read()),this._excluded.django||(e=(e=e||this.__patterns.django_comment.read())||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(e=(e=(e=e||this.__patterns.smarty_comment.read())||this.__patterns.smarty_literal.read())||this.__patterns.smarty.read())),e},t.exports.TemplatablePattern=i},,,,function(t,e,n){var r=n(19).Beautifier,o=n(20).Options;t.exports=function(t,e,n,o){return new r(t,e,n,o).beautify()},t.exports.defaultOptions=function(){return new o}},function(t,e,n){function r(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 i(t,e)}var o=n(20).Options,i=n(2).Output,a=n(21).Tokenizer,s=n(21).TOKEN,l=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g;function u(t,e){return-1!==e.indexOf(t)}function p(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function d(t){this._printer=t,this._current_frame=null}function f(t,e,n,r){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null,e=new o(e,"html"),this._options=e,this._is_wrap_attributes_force="force"===this._options.wrap_attributes.substr(0,5),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,8),this._is_wrap_attributes_preserve_aligned="preserve-aligned"===this._options.wrap_attributes}r.prototype.current_line_has_match=function(t){return this._output.current_line.has_match(t)},r.prototype.set_space_before_token=function(t,e){this._output.space_before_token=t,this._output.non_breaking_space=e},r.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},r.prototype.add_raw_token=function(t){this._output.add_raw_token(t)},r.prototype.print_preserved_newlines=function(t){var e=0;t.type!==s.TEXT&&t.previous.type!==s.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 n=0;n<e;n++)this.print_newline(0<n);return 0!==e},r.prototype.traverse_whitespace=function(t){return!(!t.whitespace_before&&!t.newlines||(this.print_preserved_newlines(t)||(this._output.space_before_token=!0),0))},r.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},r.prototype.print_newline=function(t){this._output.add_new_line(t)},r.prototype.print_token=function(t){t.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(t.text))},r.prototype.indent=function(){this.indent_level++},r.prototype.get_full_indent=function(t){return(t=this.indent_level+(t||0))<1?"":this._output.get_indent_string(t)},d.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},d.prototype.record_tag=function(t){t=new p(this._current_frame,t,this._printer.indent_level),this._current_frame=t},d.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},d.prototype._get_frame=function(t,e){for(var n=this._current_frame;n&&-1===t.indexOf(n.tag);){if(e&&-1!==e.indexOf(n.tag)){n=null;break}n=n.parent}return n},d.prototype.try_pop=function(t,e){return e=this._get_frame([t],e),this._try_pop_frame(e)},d.prototype.indent_to_tag=function(t){(t=this._get_frame(t))&&(this._printer.indent_level=t.indent_level)},f.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&&l.test(t)&&(e=t.match(l)[0]));var n=(t=t.replace(c,"\n")).match(/^[\t ]*/)[0],o={text:"",type:""},i=new h,u=new r(this._options,n),p=new a(t,this._options).tokenize();this._tag_stack=new d(u);for(var f=null,g=p.next();g.type!==s.EOF;)g.type===s.TAG_OPEN||g.type===s.COMMENT?i=f=this._handle_tag_open(u,g,i,o):g.type===s.ATTRIBUTE||g.type===s.EQUALS||g.type===s.VALUE||g.type===s.TEXT&&!i.tag_complete?f=this._handle_inside_tag(u,g,i,p):g.type===s.TAG_CLOSE?f=this._handle_tag_close(u,g,i):g.type===s.TEXT?f=this._handle_text(u,g,i):u.add_raw_token(g),o=f,g=p.next();return u._output.get_code(e)},f.prototype._handle_tag_close=function(t,e,n){var r={text:e.text,type:e.type};return t.alignment_size=0,n.tag_complete=!0,t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted?t.add_raw_token(e):("<"===n.tag_start_char&&(t.set_space_before_token("/"===e.text[0],!0),this._is_wrap_attributes_force_expand_multiline&&n.has_wrapped_attrs&&t.print_newline(!1)),t.print_token(e)),!n.indent_content||n.is_unformatted||n.is_content_unformatted||(t.indent(),n.indent_content=!1),n.is_inline_element||n.is_unformatted||n.is_content_unformatted||t.set_wrap_point(),r},f.prototype._handle_inside_tag=function(t,e,n,r){var o=n.has_wrapped_attrs,i={text:e.text,type:e.type};if(t.set_space_before_token(e.newlines||""!==e.whitespace_before,!0),n.is_unformatted)t.add_raw_token(e);else if("{"===n.tag_start_char&&e.type===s.TEXT)t.print_preserved_newlines(e)?(e.newlines=0,t.add_raw_token(e)):t.print_token(e);else{if(e.type===s.ATTRIBUTE?(t.set_space_before_token(!0),n.attr_count+=1):(e.type===s.EQUALS||e.type===s.VALUE&&e.previous.type===s.EQUALS)&&t.set_space_before_token(!1),e.type===s.ATTRIBUTE&&"<"===n.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 a=1<n.attr_count;if(this._is_wrap_attributes_force_expand_multiline&&1===n.attr_count){var l,c=!0,u=0;do{if((l=r.peek(u)).type===s.ATTRIBUTE){c=!1;break}}while((u+=1)<4&&l.type!==s.EOF&&l.type!==s.TAG_CLOSE);a=!c}a&&(t.print_newline(!1),o=!0)}t.print_token(e),o=o||t.previous_token_wrapped(),n.has_wrapped_attrs=o}return i},f.prototype._handle_text=function(t,e,n){var r={text:e.text,type:"TK_CONTENT"};return n.custom_beautifier_name?this._print_custom_beatifier_text(t,e,n):n.is_unformatted||n.is_content_unformatted?t.add_raw_token(e):(t.traverse_whitespace(e),t.print_token(e)),r},f.prototype._print_custom_beatifier_text=function(t,e,n){var r=this;if(""!==e.text){var o,i,a=e.text,s=1,l="",c="";if("javascript"===n.custom_beautifier_name&&"function"==typeof this._js_beautify?o=this._js_beautify:"css"===n.custom_beautifier_name&&"function"==typeof this._css_beautify?o=this._css_beautify:"html"===n.custom_beautifier_name&&(o=function(t,e){return new f(t,e,r._js_beautify,r._css_beautify).beautify()}),"keep"===this._options.indent_scripts?s=0:"separate"===this._options.indent_scripts&&(s=-t.indent_level),s=t.get_full_indent(s),a=a.replace(/\n[ \t]*$/,""),"html"!==n.custom_beautifier_name&&"<"===a[0]&&a.match(/^(<!--|<!\[CDATA\[)/)){if(!(n=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(a)))return void t.add_raw_token(e);l=s+n[1]+"\n",a=n[4],n[5]&&(c=s+n[5]),a=a.replace(/\n[ \t]*$/,""),(n[2]||-1!==n[3].indexOf("\n"))&&(n=n[3].match(/[ \t]+$/))&&(e.whitespace_before=n[0])}a=a&&(o?((i=function(){this.eol="\n"}).prototype=this._options.raw_options,o(s+a,new i)):s+(a=(i=e.whitespace_before)?a.replace(new RegExp("\n("+i+")?","g"),"\n"):a).replace(/\n/g,"\n"+s)),l&&(a=a?l+a+"\n"+c:l+c),t.print_newline(!1),a&&(e.text=a,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},f.prototype._handle_tag_open=function(t,e,n,r){var o=this._get_tag_open_token(e);return!n.is_unformatted&&!n.is_content_unformatted||n.is_empty_element||e.type!==s.TAG_OPEN||0!==e.text.indexOf("</")?(t.traverse_whitespace(e),this._set_tag_position(t,e,o,n,r),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 h=function(t,e){var n;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?(n=e.text.match(/^<([^\s>]*)/),this.tag_check=n?n[1]:""):(n=e.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=n?n[1]:"","{{#>"===e.text&&">"===this.tag_check&&null!==e.next&&(this.tag_check=e.next.text)),this.tag_check=this.tag_check.toLowerCase(),e.type===s.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};f.prototype._get_tag_open_token=function(t){return(t=new h(this._tag_stack.get_parser_token(),t)).alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||u(t.tag_check,this._options.void_elements),t.is_empty_element=t.tag_complete||t.is_start_tag&&t.is_end_tag,t.is_unformatted=!t.tag_complete&&u(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&u(t.tag_check,this._options.content_unformatted),t.is_inline_element=u(t.tag_name,this._options.inline)||"{"===t.tag_start_char,t},f.prototype._set_tag_position=function(t,e,n,r,o){n.is_empty_element||(n.is_end_tag?n.start_tag_token=this._tag_stack.try_pop(n.tag_name):(this._do_optional_end_element(n)&&(n.is_inline_element||t.print_newline(!1)),this._tag_stack.record_tag(n),"script"!==n.tag_name&&"style"!==n.tag_name||n.is_unformatted||n.is_content_unformatted||(n.custom_beautifier_name=function(t,e){var n=null,r=null;return e.closed?("script"===t?n="text/javascript":"style"===t&&(n="text/css"),-1<(n=function(t){for(var e=null,n=t.next;n.type!==s.EOF&&t.closed!==n;){if(n.type===s.ATTRIBUTE&&"type"===n.text){n.next&&n.next.type===s.EQUALS&&n.next.next&&n.next.next.type===s.VALUE&&(e=n.next.next.text);break}n=n.next}return e}(e)||n).search("text/css")?r="css":-1<n.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)?r="javascript":-1<n.search(/(text|application|dojo)\/(x-)?(html)/)?r="html":-1<n.search(/test\/null/)&&(r="null"),r):null}(n.tag_check,e)))),u(n.tag_check,this._options.extra_liners)&&(t.print_newline(!1),t._output.just_added_blankline()||t.print_newline(!0)),n.is_empty_element?("{"===n.tag_start_char&&"else"===n.tag_check&&(this._tag_stack.indent_to_tag(["if","unless","each"]),n.indent_content=!0,t.current_line_has_match(/{{#if/)||t.print_newline(!1)),"!--"===n.tag_name&&o.type===s.TAG_CLOSE&&r.is_end_tag&&-1===n.text.indexOf("\n")||(n.is_inline_element||n.is_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))):n.is_end_tag?(e=!1,e=(e=n.start_tag_token&&n.start_tag_token.multiline_content)||!n.is_inline_element&&!(r.is_inline_element||r.is_unformatted)&&!(o.type===s.TAG_CLOSE&&n.start_tag_token===r)&&"TK_CONTENT"!==o.type,(e=!n.is_content_unformatted&&!n.is_unformatted&&e)&&t.print_newline(!1)):(n.indent_content=!n.custom_beautifier_name,"<"===n.tag_start_char&&("html"===n.tag_name?n.indent_content=this._options.indent_inner_html:"head"===n.tag_name?n.indent_content=this._options.indent_head_inner_html:"body"===n.tag_name&&(n.indent_content=this._options.indent_body_inner_html)),n.is_inline_element||n.is_unformatted||"TK_CONTENT"===o.type&&!n.is_content_unformatted||t.print_newline(!1),this._calcluate_parent_multiline(t,n))},f.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 g=["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"],m=["a","audio","del","ins","map","noscript","video"];f.prototype._do_optional_end_element=function(t){var e,n=null;if(!t.is_empty_element&&t.is_start_tag&&t.parent)return"body"===t.tag_name?n=n||this._tag_stack.try_pop("head"):"li"===t.tag_name?n=n||this._tag_stack.try_pop("li",["ol","ul"]):"dd"===t.tag_name||"dt"===t.tag_name?n=(n=n||this._tag_stack.try_pop("dt",["dl"]))||this._tag_stack.try_pop("dd",["dl"]):"p"===t.parent.tag_name&&-1!==g.indexOf(t.tag_name)?(e=t.parent.parent)&&-1!==m.indexOf(e.tag_name)||(n=n||this._tag_stack.try_pop("p")):"rp"===t.tag_name||"rt"===t.tag_name?n=(n=n||this._tag_stack.try_pop("rt",["ruby","rtc"]))||this._tag_stack.try_pop("rp",["ruby","rtc"]):"optgroup"===t.tag_name?n=n||this._tag_stack.try_pop("optgroup",["select"]):"option"===t.tag_name?n=n||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):"colgroup"===t.tag_name?n=n||this._tag_stack.try_pop("caption",["table"]):"thead"===t.tag_name?n=(n=n||this._tag_stack.try_pop("caption",["table"]))||this._tag_stack.try_pop("colgroup",["table"]):"tbody"===t.tag_name||"tfoot"===t.tag_name?n=(n=(n=(n=n||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?n=(n=(n=n||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||(n=(n=n||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]))||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"])),t.parent=this._tag_stack.get_parser_token(),n},t.exports.Beautifier=f},function(t,e,n){var r=n(6).Options;function o(t){r.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"])}o.prototype=new r,t.exports.Options=o},function(t,e,n){var r=n(9).Tokenizer,o=n(9).TOKEN,i=n(13).Directives,a=n(14).TemplatablePattern,s=n(12).Pattern,l={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:o.START,RAW:o.RAW,EOF:o.EOF},c=new i(/<\!--/,/-->/);((i=function(t,e){r.call(this,t,e),this._current_tag_name="",t=new a(this._input).read_options(this._options),e=new s(this._input),this.__patterns={word:t.until(/[\n\r\t <]/),single_quote:t.until_after(/'/),double_quote:t.until_after(/"/),attribute:t.until(/[\n\r\t =>]|\/>/),element_name:t.until(/[\n\r\t >\/]/),handlebars_comment:e.starting_with(/{{!--/).until_after(/--}}/),handlebars:e.starting_with(/{{/).until_after(/}}/),handlebars_open:e.until(/[\n\r\t }]/),handlebars_raw_close:e.until(/}}/),comment:e.starting_with(/<!--/).until_after(/-->/),cdata:e.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:e.starting_with(/<!\[/).until_after(/]>/),processing:e.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&&(t=this._input.get_literal_regexp(this._options.unformatted_content_delimiter),this.__patterns.unformatted_content_delimiter=e.matching(t).until_after(t))}).prototype=new r)._is_comment=function(t){return!1},i.prototype._is_opening=function(t){return t.type===l.TAG_OPEN},i.prototype._is_closing=function(t,e){return t.type===l.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},i.prototype._reset=function(){this._current_tag_name=""},i.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(l.EOF,""):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(l.UNKNOWN,this._input.next())},i.prototype._read_comment_or_cdata=function(t){var e=null,n=null,r=null;return"<"===t&&("!"===this._input.peek(1)&&((n=this.__patterns.comment.read())?(r=c.get_directives(n))&&"start"===r.ignore&&(n+=c.readIgnored(this._input)):n=this.__patterns.cdata.read()),n&&((e=this._create_token(l.COMMENT,n)).directives=r)),e},i.prototype._read_processing=function(t){var e=null,n=null;return"<"!==t||(n="!"===(t=this._input.peek(1))||"?"===t?(n=this.__patterns.conditional_comment.read())||this.__patterns.processing.read():n)&&((e=this._create_token(l.COMMENT,n)).directives=null),e},i.prototype._read_open=function(t,e){var n=null,r=null;return e||"<"===t&&(n=this._input.next(),"/"===this._input.peek()&&(n+=this._input.next()),n+=this.__patterns.element_name.read(),r=this._create_token(l.TAG_OPEN,n)),r},i.prototype._read_open_handlebars=function(t,e){var n=null,r=null;return e||this._options.indent_handlebars&&"{"===t&&"{"===this._input.peek(1)&&(r="!"===this._input.peek(2)?(n=(n=this.__patterns.handlebars_comment.read())||this.__patterns.handlebars.read(),this._create_token(l.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),this._create_token(l.TAG_OPEN,n))),r},i.prototype._read_close=function(t,e){var n=null,r=null;return e&&("<"===e.text[0]&&(">"===t||"/"===t&&">"===this._input.peek(1))?(n=this._input.next(),"/"===t&&(n+=this._input.next()),r=this._create_token(l.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(l.TAG_CLOSE,"}}"))),r},i.prototype._read_attribute=function(t,e,n){var r=null;return n&&"<"===n.text[0]&&("="===t?r=this._create_token(l.EQUALS,this._input.next()):'"'===t||"'"===t?(n=this._input.next(),n+=('"'===t?this.__patterns.double_quote:this.__patterns.single_quote).read(),r=this._create_token(l.VALUE,n)):(n=this.__patterns.attribute.read())&&(r=e.type===l.EQUALS?this._create_token(l.VALUE,n):this._create_token(l.ATTRIBUTE,n))),r},i.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))},i.prototype._read_raw_content=function(t,e,n){var r="";if(n&&"{"===n.text[0])r=this.__patterns.handlebars_raw_close.read();else if(e.type===l.TAG_CLOSE&&"<"===e.opened.text[0]&&"/"!==e.text[0])if("script"===(e=e.opened.text.substr(1).toLowerCase())||"style"===e){if(t=this._read_comment_or_cdata(t))return t.type=l.TEXT,t;r=this._input.readUntil(new RegExp("</"+e+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(e)&&(r=this._input.readUntil(new RegExp("</"+e+"[\\n\\r\\t ]*?>","ig")));return r?this._create_token(l.TEXT,r):null},i.prototype._read_content_word=function(t){var e="";if(e=(e=this._options.unformatted_content_delimiter&&t===this._options.unformatted_content_delimiter[0]?this.__patterns.unformatted_content_delimiter.read():e)||this.__patterns.word.read())return this._create_token(l.TEXT,e)},t.exports.Tokenizer=i,t.exports.TOKEN=l}],e={},n=function n(r){var o=e[r];return void 0!==o||(o=e[r]={exports:{}},t[r](o,o.exports,n)),o.exports}(18);i=n}();var a=i;r=[n,n(118),n(119)],void 0===(r=function(t){var e=n(118),r=n(119);return{html_beautify:function(t,n){return a(t,n,e.js_beautify,r.css_beautify)}}}.apply(e,r))||(t.exports=r)}()},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(353),i=n(435).decode,a=n(436).HTMLParser,s=n(437),l=n(451),c=n(452),u=n(208);function p(t){return t&&t.replace(/^[ \n\r\t\f]+/,"").replace(/[ \n\r\t\f]+$/,"")}function d(t){return t&&t.replace(/[ \n\r\t\f\xA0]+/g,(function(t){return"\t"===t?"\t":t.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}))}function f(t,e,n,r,o){var i="",a="";return e.preserveLineBreaks&&(t=t.replace(/^[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*/,(function(){return i="\n",""})).replace(/[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*$/,(function(){return a="\n",""}))),n&&(t=t.replace(/^[ \n\r\t\f\xA0]+/,(function(t){var n=!i&&e.conservativeCollapse;return n&&"\t"===t?"\t":t.replace(/^[^\xA0]+/,"").replace(/(\xA0+)[^\xA0]+/g,"$1 ")||(n?" ":"")}))),r&&(t=t.replace(/[ \n\r\t\f\xA0]+$/,(function(t){var n=!a&&e.conservativeCollapse;return n&&"\t"===t?"\t":t.replace(/[^\xA0]+(\xA0+)/g," $1").replace(/[^\xA0]+$/,"")||(n?" ":"")}))),o&&(t=d(t)),i+t+a}var h=(n=u.createMapFromString)("a,abbr,acronym,b,bdi,bdo,big,button,cite,code,del,dfn,em,font,i,ins,kbd,label,mark,math,nobr,object,q,rp,rt,rtc,ruby,s,samp,select,small,span,strike,strong,sub,sup,svg,textarea,time,tt,u,var"),g=n("a,abbr,acronym,b,big,del,em,font,i,ins,kbd,mark,nobr,rp,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var"),m=n("comment,img,input,wbr");function v(t,e,n,r){var o=e&&!m(e);o&&!r.collapseInlineTagWhitespace&&(o="/"===e.charAt(0)?!h(e.slice(1)):!g(e));var i=n&&!m(n);return f(t,r,o,i=i&&!r.collapseInlineTagWhitespace?"/"===n.charAt(0)?!g(n.slice(1)):!h(n):i,e&&n)}function y(t,e){for(var n=t.length;n--;)if(t[n].name.toLowerCase()===e)return 1}var b=u.createMap(["text/javascript","text/ecmascript","text/jscript","application/javascript","application/x-javascript","application/ecmascript"]);function _(t){return""===(t=p(t.split(/;/,2)[0]).toLowerCase())||b(t)}function w(t){return""===(t=p(t).toLowerCase())||"text/css"===t}function E(t,e){if("style"===t){for(var n=0,r=e.length;n<r;n++)if("type"===e[n].name.toLowerCase())return w(e[n].value);return 1}}var x=n("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),C=n("true,false");function T(t,e,n){if("link"===t)for(var r=0,o=e.length;r<o;r++)if("rel"===e[r].name&&e[r].value===n)return 1}var A=n("img,source");function O(t){return"/* clean-css ignore:start */"+t+"/* clean-css ignore:end */"}function S(t,e){switch(e){case"inline":return"*{"+t+"}";case"media":return"@media "+t+"{a{top:0}}";default:return t}}var k=n("html,head,body,colgroup,tbody"),P=n("html,head,body,li,dt,dd,p,rb,rt,rtc,rp,optgroup,option,colgroup,caption,thead,tbody,tfoot,tr,td,th"),j=n("meta,link,script,style,template,noscript"),N=n("dt,dd"),L=n("address,article,aside,blockquote,details,div,dl,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,hr,main,menu,nav,ol,p,pre,section,table,ul"),D=n("a,audio,del,ins,map,noscript,video"),I=n("rb,rt,rtc,rp"),R=n("rb,rtc,rp"),M=n("option,optgroup"),B=n("tbody,tfoot"),F=n("thead,tbody,tfoot"),U=n("td,th"),H=n("html,head,body"),V=n("html,body"),q=n("head,colgroup,caption"),z=n("dt,thead"),W=n("a,abbr,acronym,address,applet,area,article,aside,audio,b,base,basefont,bdi,bdo,bgsound,big,blink,blockquote,body,br,button,canvas,caption,center,cite,code,col,colgroup,command,content,data,datalist,dd,del,details,dfn,dialog,dir,div,dl,dt,element,em,embed,fieldset,figcaption,figure,font,footer,form,frame,frameset,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,i,iframe,image,img,input,ins,isindex,kbd,keygen,label,legend,li,link,listing,main,map,mark,marquee,menu,menuitem,meta,meter,multicol,nav,nobr,noembed,noframes,noscript,object,ol,optgroup,option,output,p,param,picture,plaintext,pre,progress,q,rb,rp,rt,rtc,ruby,s,samp,script,section,select,shadow,small,source,spacer,span,strike,strong,style,sub,summary,sup,table,tbody,td,template,textarea,tfoot,th,thead,time,title,tr,track,tt,u,ul,var,video,wbr,xmp"),G=new RegExp("^(?:class|id|style|title|lang|dir|on(?:focus|blur|change|click|dblclick|mouse(?:down|up|over|move|out)|key(?:press|down|up)))$");function Y(t,e){for(var n=e.length-1;0<=n;n--)if(e[n].name===t)return 1}function K(t){return!/^(?:script|style|pre|textarea)$/.test(t)}function $(t){return!/^(?:pre|textarea)$/.test(t)}function X(t,e,n,r){var o=r.name(t.name),a=t.value;if(r.decodeEntities&&a&&(a=i(a,{isAttributeValue:!0})),!(r.removeRedundantAttributes&&function(t,e,n,r){return n=n?p(n.toLowerCase()):"","script"===t&&"language"===e&&"javascript"===n||"form"===t&&"method"===e&&"get"===n||"input"===t&&"type"===e&&"text"===n||"script"===t&&"charset"===e&&!y(r,"src")||"a"===t&&"name"===e&&y(r,"id")||"area"===t&&"shape"===e&&"rect"===n}(n,o,a,e)||r.removeScriptTypeAttributes&&"script"===n&&"type"===o&&_(a)||r.removeStyleLinkTypeAttributes&&("style"===n||"link"===n)&&"type"===o&&w(a)||(a=a&&function(t,e,n,r,o){if(function(t,e){var n=e.customEventAttributes;if(!n)return/^on[a-z]{3,}$/.test(t);for(var r=n.length;r--;)if(n[r].test(t))return 1}(e,r))return n=p(n).replace(/^javascript:\s*/i,""),r.minifyJS(n,!0);if("class"===e)return n=p(n),r.sortClassName?r.sortClassName(n):d(n);if(function(t,e){return/^(?:a|area|link|base)$/.test(e)&&"href"===t||"img"===e&&/^(?:src|longdesc|usemap)$/.test(t)||"object"===e&&/^(?:classid|codebase|data|usemap)$/.test(t)||"q"===e&&"cite"===t||"blockquote"===e&&"cite"===t||("ins"===e||"del"===e)&&"cite"===t||"form"===e&&"action"===t||"input"===e&&("src"===t||"usemap"===t)||"head"===e&&"profile"===t||"script"===e&&("src"===t||"for"===t)}(e,t))return n=p(n),T(t,o,"canonical")?n:r.minifyURLs(n);if(function(t,e){return/^(?:a|area|object|button)$/.test(e)&&"tabindex"===t||"input"===e&&("maxlength"===t||"tabindex"===t)||"select"===e&&("size"===t||"tabindex"===t)||"textarea"===e&&/^(?:rows|cols|tabindex)$/.test(t)||"colgroup"===e&&"span"===t||"col"===e&&"span"===t||("th"===e||"td"===e)&&("rowspan"===t||"colspan"===t)}(e,t))return p(n);if("style"===e)return(n=p(n))&&(/;$/.test(n)&&!/&#?[0-9a-zA-Z]+;$/.test(n)&&(n=n.replace(/\s*;$/,";")),n=r.minifyCSS(n,"inline")),n;if(function(t,e){return"srcset"===t&&A(e)}(e,t))n=p(n).split(/\s+,\s*|\s*,\s+/).map((function(t){var e=t,n="",o=t.match(/\s+([1-9][0-9]*w|[0-9]+(?:\.[0-9]+)?x)$/);return o&&(e=e.slice(0,-o[0].length),t=+o[1].slice(0,-1),o=o[1].slice(-1),1==t&&"x"===o||(n=" "+t+o)),r.minifyURLs(e)+n})).join(", ");else if(function(t,e){if("meta"===t)for(var n=0,r=e.length;n<r;n++)if("name"===e[n].name&&"viewport"===e[n].value)return 1}(t,o)&&"content"===e)n=n.replace(/\s+/g,"").replace(/[0-9]+\.[0-9]+/g,(function(t){return(+t).toString()}));else{if(function(t,e){if("meta"===t)for(var n=0,r=e.length;n<r;n++)if("http-equiv"===e[n].name.toLowerCase()&&"content-security-policy"===e[n].value.toLowerCase())return 1}(t,o)&&"content"===e.toLowerCase())return d(n);if(r.customAttrCollapse&&r.customAttrCollapse.test(e))n=n.replace(/\n+|\r+|\s{2,}/g,"");else if("script"===t&&"type"===e)n=p(n.replace(/\s*;\s*/g,";"));else if(function(t,e,n){return"media"===n&&(T(t,e,"stylesheet")||E(t,e))}(t,o,e))return n=p(n),r.minifyCSS(n,"media")}return n}(n,o,a,r,e),r.removeEmptyAttributes&&function(t,e,n,r){return(!n||/^\s*$/.test(n))&&("function"==typeof r.removeEmptyAttributes?r.removeEmptyAttributes(e,t):"input"===t&&"value"===e||G.test(e))}(n,o,a,r))))return{attr:t,name:o,value:a=r.decodeEntities&&a?a.replace(/&(#?[0-9a-zA-Z]+;)/g,"&amp;$1"):a}}function Z(t){return t}function Q(t){for(var e;e=Math.random().toString(36).replace(/^0\.[0-9]*/,""),~t.indexOf(e););return e}var J=n("script,style");function tt(t,e,n){e.collapseWhitespace&&(t=f(t,e,!0,!0));var r,s,c,u,m,y=[],b="",w="",T=[],A=[],G=[],et="",nt="",rt=[],ot=[];t=t.replace(/<!-- htmlmin:ignore -->([\s\S]*?)<!-- htmlmin:ignore -->/g,(function(n,r){c||(c=Q(t),o=new RegExp("^"+c+"([0-9]+)$"),e.ignoreCustomComments?e.ignoreCustomComments=e.ignoreCustomComments.slice():e.ignoreCustomComments=[],e.ignoreCustomComments.push(o));var o="\x3c!--"+c+rt.length+"--\x3e";return rt.push(r),o}));var it=e.ignoreCustomFragments.map((function(t){return t.source}));function at(t,n){return e.canTrimWhitespace(t,n,$)}function st(){for(var t=y.length-1;0<t&&!/^<[^/!]/.test(y[t]);)t--;y.length=Math.max(0,t)}function lt(){for(var t=y.length-1;0<t&&!/^<\//.test(y[t]);)t--;y.length=Math.max(0,t)}function ct(t,n){for(var r=null;0<=t&&at(r);t--){var o=y[t],i=o.match(/^<\/([\w:-]+)>$/);if(i)r=i[1];else if(/>$/.test(o)||(y[t]=v(o,null,n,e)))break}}function ut(t){var e,n=y.length-1;1<y.length&&(e=y[y.length-1],/^(?:<!|$)/.test(e)&&-1===e.indexOf(c)&&n--),ct(n,t)}return it.length&&(it=new RegExp("\\s*(?:"+it.join("|")+")+\\s*","g"),t=t.replace(it,(function(n){var r,i;u||(u=Q(t),m=new RegExp("(\\s*)"+u+"([0-9]+)"+u+"(\\s*)","g"),e.minifyCSS&&(e.minifyCSS=(i=e.minifyCSS,function(t,e){t=t.replace(m,(function(t,e,n){var r=ot[+n];return r[1]+u+n+u+r[2]}));var n=[];return(new o).minify(S(t,e)).warnings.forEach((function(e){(e=m.exec(e))&&(e=u+e[2]+u,t=t.replace(e,O(e)),n.push(e))})),t=i(t,e),n.forEach((function(e){t=t.replace(O(e),e)})),t})),e.minifyJS&&(e.minifyJS=(r=e.minifyJS,function(t,e){return r(t.replace(m,(function(t,e,n){var r=ot[+n];return r[1]+u+n+u+r[2]})),e)})));var a=u+ot.length+u;return ot.push(/^(\s*)[\s\S]*?(\s*)$/.exec(n)),"\t"+a+"\t"}))),(e.sortAttributes&&"function"!=typeof e.sortAttributes||e.sortClassName&&"function"!=typeof e.sortClassName)&&function(t,e,n,r){var o=e.sortAttributes&&Object.create(null),i=e.sortClassName&&new l;function s(t){return t.map((function(t){return e.name(t.name)}))}function c(t,e){return!e||-1===t.indexOf(e)}function u(t){return c(t,n)&&c(t,r)}var d,f=e.log;if(e.log=Z,e.sortAttributes=!1,e.sortClassName=!1,function t(n){var r,c;new a(n,{start:function(t,n){o&&(o[t]||(o[t]=new l),o[t].add(s(n).filter(u)));for(var a=0,d=n.length;a<d;a++){var f=n[a];i&&f.value&&"class"===e.name(f.name)?i.add(p(f.value).split(/[ \t\n\f\r]+/).filter(u)):e.processScripts&&"type"===f.name.toLowerCase()&&(r=t,c=f.value)}},end:function(){r=""},chars:function(n){e.processScripts&&J(r)&&-1<e.processScripts.indexOf(c)&&t(n)}})}(tt(t,e)),e.log=f,o){var h,g=Object.create(null);for(h in o)g[h]=o[h].createSorter();e.sortAttributes=function(t,e){var n,r=g[t];r&&(n=Object.create(null),(t=s(e)).forEach((function(t,r){(n[t]||(n[t]=[])).push(e[r])})),r.sort(t).forEach((function(t,r){e[r]=n[t].shift()})))}}i&&(d=i.createSorter(),e.sortClassName=function(t){return d.sort(t.split(/[ \n\f\r]+/)).join(" ")})}(t,e,c,u),new a(t,{partialMarkup:n,continueOnParseError:e.continueOnParseError,customAttrAssign:e.customAttrAssign,customAttrSurround:e.customAttrSurround,html5:e.html5,start:function(t,n,o,i,a){"svg"===t.toLowerCase()&&((e=Object.create(e)).caseSensitive=!0,e.keepClosingSlash=!0,e.name=Z),t=e.name(t),g(r=w=t)||(b=""),s=!1,T=n;var l,c=e.removeOptionalTags;c&&((l=W(t))&&function(t,e){switch(t){case"html":case"head":return 1;case"body":return!j(e);case"colgroup":return"col"===e;case"tbody":return"tr"===e}}(et,t)&&st(),et="",l&&function(t,e){switch(t){case"html":case"head":case"body":case"colgroup":case"caption":return 1;case"li":case"optgroup":case"tr":return e===t;case"dt":case"dd":return N(e);case"p":return L(e);case"rb":case"rt":case"rp":return I(e);case"rtc":return R(e);case"option":return M(e);case"thead":case"tbody":return B(e);case"tfoot":return"tbody"===e;case"td":case"th":return U(e)}}(nt,t)&&(lt(),c=!function(t,e){switch(e){case"colgroup":return"colgroup"===t;case"tbody":return F(t)}}(nt,t)),nt=""),e.collapseWhitespace&&(A.length||ut(t),o||(at(t,n)&&!A.length||A.push(t),function(t,n){return e.canCollapseWhitespace(t,n,K)}(t,n)&&!G.length||G.push(t)));var p=i&&e.keepClosingSlash;y.push("<"+t),e.sortAttributes&&e.sortAttributes(t,n);for(var d=[],f=n.length,h=!0;0<=--f;){var m=X(n[f],n,t,e);m&&(d.unshift(function(t,e,n,r,o){var i,a,s=t.name,l=t.value,c=t.attr;return t=c.quote,void 0===l||n.removeAttributeQuotes&&!~l.indexOf(o)&&function(t){return/^[^ \t\n\f\r"'`=<>]+$/.test(t)}(l)?a=!r||e||/\/$/.test(l)?l+" ":l:(n.preventAttributesEscaping||(l='"'==(t=void 0===n.quoteCharacter?(l.match(/'/g)||[]).length<(l.match(/"/g)||[]).length?"'":'"':"'"===n.quoteCharacter?"'":'"')?l.replace(/"/g,"&#34;"):l.replace(/'/g,"&#39;")),a=t+l+t,r||n.removeTagWhitespace||(a+=" ")),void 0===l||n.collapseBooleanAttributes&&function(t,e){return x(t)||"draggable"===t&&!C(e)}(s.toLowerCase(),l.toLowerCase())?(i=s,r||(i+=" ")):i=s+c.customAssign+a,c.customOpen+i+c.customClose}(m,p,e,h,u)),h=!1)}0<d.length?(y.push(" "),y.push.apply(y,d)):c&&k(t)&&(et=t),y.push(y.pop()+(p?"/":"")+">"),a&&!e.includeAutoGeneratedTags&&(st(),et="")},end:function(t,n,o){t=(e="svg"===t.toLowerCase()?Object.getPrototypeOf(e):e).name(t),e.collapseWhitespace&&(A.length?t===A[A.length-1]&&A.pop():ut("/"+t),G.length&&t===G[G.length-1]&&G.pop());var i=!1;t===w&&(w="",i=!s),e.removeOptionalTags&&(i&&H(et)&&st(),et="",!W(t)||!nt||z(nt)||"p"===nt&&D(t)||lt(),nt=P(t)?t:""),e.removeEmptyElements&&i&&function(t,e){switch(t){case"textarea":return;case"audio":case"script":case"video":if(Y("src",e))return;break;case"iframe":if(Y("src",e)||Y("srcdoc",e))return;break;case"object":if(Y("data",e))return;break;case"applet":if(Y("code",e))return}return 1}(t,n)?(st(),nt=et=""):(o&&!e.includeAutoGeneratedTags?nt="":y.push("</"+t+">"),r="/"+t,h(t)?i&&(b+="|"):b="")},chars:function(t,n,o){if(n=""===n?"comment":n,o=""===o?"comment":o,e.decodeEntities&&t&&!J(w)&&(t=i(t)),e.collapseWhitespace){if(!A.length){var a;if("comment"!==n||-1===(a=y[y.length-1]).indexOf(c)&&(a||(n=r),1<y.length&&(!a||!e.conservativeCollapse&&/ $/.test(b))&&(a=y.length-2,y[a]=y[a].replace(/\s+$/,(function(e){return t=e+t,""})))),n)if("/nobr"===n||"wbr"===n){if(/^\s/.test(t)){for(var l=y.length-1;0<l&&0!==y[l].lastIndexOf("<"+n);)l--;ct(l-1,"br")}}else g("/"===n.charAt(0)?n.slice(1):n)&&(t=f(t,e,/(?:^|\s)$/.test(b)));!(t=n||o?v(t,n,o,e):f(t,e,!0,!0))&&/\s$/.test(b)&&n&&"/"===n.charAt(0)&&ct(y.length-1,o)}G.length||"html"===o||n&&o||(t=f(t,e,!1,!1,!0))}e.processScripts&&J(w)&&(t=function(t,e,n){for(var r=0,o=n.length;r<o;r++)if("type"===n[r].name.toLowerCase()&&-1<e.processScripts.indexOf(n[r].value))return tt(t,e);return t}(t,e,T)),function(t,e){if("script"===t){for(var n=0,r=e.length;n<r;n++)if("type"===e[n].name.toLowerCase())return _(e[n].value);return 1}}(w,T)&&(t=e.minifyJS(t)),E(w,T)&&(t=e.minifyCSS(t)),e.removeOptionalTags&&t&&("html"!==et&&("body"!==et||/^\s/.test(t))||st(),et="",(V(nt)||q(nt)&&!/^\s/.test(t))&&lt(),nt=""),r=/^\s*$/.test(t)?n:"comment",e.decodeEntities&&t&&!J(w)&&(t=t.replace(/&((?:Iacute|aacute|uacute|plusmn|Otilde|otilde|agrave|Agrave|Yacute|yacute|Oslash|oslash|atilde|Atilde|brvbar|ccedil|Ccedil|Ograve|curren|divide|eacute|Eacute|ograve|Oacute|egrave|Egrave|Ugrave|frac12|frac14|frac34|ugrave|oacute|iacute|Ntilde|ntilde|Uacute|middot|igrave|Igrave|iquest|Aacute|cedil|laquo|micro|iexcl|Icirc|icirc|acirc|Ucirc|Ecirc|ocirc|Ocirc|ecirc|ucirc|Aring|aring|AElig|aelig|acute|pound|raquo|Acirc|times|THORN|szlig|thorn|COPY|auml|ordf|ordm|Uuml|macr|uuml|Auml|ouml|Ouml|para|nbsp|euml|quot|QUOT|Euml|yuml|cent|sect|copy|sup1|sup2|sup3|iuml|Iuml|ETH|shy|reg|not|yen|amp|AMP|REG|uml|eth|deg|gt|GT|LT|lt)(?!;)|(?:#?[0-9a-zA-Z]+;))/g,"&amp$1").replace(/</g,"&lt;")),m&&e.collapseWhitespace&&A.length&&(t=t.replace(m,(function(t,e,n){return ot[+n][0]}))),b+=t,t&&(s=!0),y.push(t)},comment:function(t,n){var r=n?"<!":"\x3c!--";n=n?">":"--\x3e",t=function(t){return/^\[if\s[^\]]+]|\[endif]$/.test(t)}(t)?r+function(t,e){return e.processConditionalComments?t.replace(/^(\[if\s[^\]]+]>)([\s\S]*?)(<!\[endif])$/,(function(t,n,r,o){return n+tt(r,e,!0)+o})):t}(t,e)+n:e.removeComments?function(t,e){for(var n=0,r=e.ignoreCustomComments.length;n<r;n++)if(e.ignoreCustomComments[n].test(t))return 1}(t,e)?"\x3c!--"+t+"--\x3e":"":r+t+n,e.removeOptionalTags&&t&&(nt=et=""),y.push(t)},doctype:function(t){y.push(e.useShortDoctype?"<!doctype"+(e.removeTagWhitespace?"":" ")+"html>":d(t))}}),e.removeOptionalTags&&(H(et)&&st(),nt&&!z(nt)&&lt()),e.collapseWhitespace&&ut("br"),function(t,e,n,r){var o,i=e.maxLineLength;if(i){for(var a="",s=[];t.length;){var l=a.length,c=t[0].indexOf("\n");c<0?a+=r(n(t.shift())):(a+=r(n(t[0].slice(0,c))),t[0]=t[0].slice(c+1)),0<l&&a.length>i?(s.push(a.slice(0,l)),a=a.slice(l)):0<=c&&(s.push(a),a="")}a&&s.push(a),o=s.join("\n")}else o=r(n(t.join("")));return e.collapseWhitespace?f(o,e,!0,!0):o}(y,e,m?function(t){return t.replace(m,(function(t,n,r,o){return r=ot[+r][0],e.collapseWhitespace?("\t"!==n&&(r=n+r),"\t"!==o&&(r+=o),f(r,{preserveLineBreaks:e.preserveLineBreaks,conservativeCollapse:!e.trimCustomFragments},/^[ \n\r\t\f]/.test(r),/[ \n\r\t\f]$/.test(r))):r}))}:Z,c?function(t){return t.replace(new RegExp("\x3c!--"+c+"([0-9]+)--\x3e","g"),(function(t,e){return rt[+e]}))}:Z)}e.minify=function(t,e){var n=Date.now();return t=tt(t,e=function(t){var e={name:function(t){return t.toLowerCase()},canCollapseWhitespace:K,canTrimWhitespace:$,html5:!0,ignoreCustomComments:[/^!/],ignoreCustomFragments:[/<%[\s\S]*?%>/,/<\?[\s\S]*?\?>/],includeAutoGeneratedTags:!0,log:Z,minifyCSS:Z,minifyJS:Z,minifyURLs:Z};return Object.keys(t).forEach((function(n){var i=t[n];"caseSensitive"===n?i&&(e.name=Z):"log"===n?"function"==typeof i&&(e.log=i):"minifyCSS"===n&&"function"!=typeof i?i&&("object"!==r(i)&&(i={}),e.minifyCSS=function(t,n){t=t.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,(function(t,n,r,o,i){return n+r+e.minifyURLs(o)+r+i}));var r=new o(i).minify(S(t,n));return 0<r.errors.length?(r.errors.forEach(e.log),t):function(t,e){var n;switch(e){case"inline":n=t.match(/^\*\{([\s\S]*)\}$/);break;case"media":n=t.match(/^@media ([\s\S]*?)\s*{[\s\S]*}$/)}return n?n[1]:t}(r.styles,n)}):"minifyJS"===n&&"function"!=typeof i?i&&(((i="object"!==r(i)?{}:i).parse||(i.parse={})).bare_returns=!1,e.minifyJS=function(t,n){var r=(r=t.match(/^\s*<!--.*/))?t.slice(r[0].length).replace(/\n\s*-->\s*$/,""):t;return i.parse.bare_returns=n,(r=c.minify(r,i)).error?(e.log(r.error),t):r.code.replace(/;$/,"")}):"minifyURLs"===n&&"function"!=typeof i?i&&("string"==typeof i?i={site:i}:"object"!==r(i)&&(i={}),e.minifyURLs=function(t){try{return s.relate(t,i)}catch(n){return e.log(n),t}}):e[n]=i})),e}(e||{})),e.log("minified in: "+(Date.now()-n)+"ms"),t}},function(t,e,n){t.exports=n(354)},function(t,e,n){(function(e){var r=n(355),o=n(356),i=n(364),a=n(388),s=n(389),l=n(390),c=n(80).formatFrom,u=n(412),p=n(413),d=n(414),f=n(25).OptimizationLevel,h=n(25).optimizationLevelFrom,g=n(415),m=n(416),v=n(417),y=n(424),b=n(433),_=n(434),w=t.exports=function(t){this.options={compatibility:s((t=t||{}).compatibility),fetch:l(t.fetch),format:c(t.format),inline:u(t.inline),inlineRequest:p(t.inlineRequest),inlineTimeout:d(t.inlineTimeout),level:h(t.level),rebase:g(t.rebase),rebaseTo:m(t.rebaseTo),returnPromise:!!t.returnPromise,sourceMap:!!t.sourceMap,sourceMapInlineSources:!!t.sourceMapInlineSources}};function E(t,n,s,l){var c="function"!=typeof s?s:null,u="function"==typeof l?l:"function"==typeof s?s:null,p={stats:{efficiency:0,minifiedSize:0,originalSize:0,startedAt:Date.now(),timeSpent:0},cache:{specificity:{}},errors:[],inlinedStylesheets:[],inputSourceMapTracker:v(),localOnly:!u,options:n,source:null,sourcesContent:{},validator:a(n.compatibility),warnings:[]};return c&&p.inputSourceMapTracker.track(void 0,c),function(t){return t?function(t){return t()}:e.nextTick}(p.localOnly)((function(){return y(t,p,(function(t){return t=function(t,e){return t.stats=function(t,e){var n=Date.now()-e.stats.startedAt;return delete e.stats.startedAt,e.stats.timeSpent=n,e.stats.efficiency=1-t.length/e.stats.originalSize,e.stats.minifiedSize=t.length,e.stats}(t.styles,e),t.errors=e.errors,t.inlinedStylesheets=e.inlinedStylesheets,t.warnings=e.warnings,t}((p.options.sourceMap?_:b)(function(t,e){var n=r(t,e);return n=f.One in e.options.level?o(t,e):t,f.Two in e.options.level?i(t,e,!0):n}(t,p),p),p),u?u(0<p.errors.length?p.errors:null,t):t}))}))}w.process=function(t,e){var n=e.to;return delete e.to,new w(Object.assign({returnPromise:!0,rebaseTo:n},e)).minify(t).then((function(t){return{css:t.styles}}))},w.prototype.minify=function(t,e,n){var r=this.options;return r.returnPromise?new Promise((function(n,o){E(t,r,e,(function(t,e){return t?o(t):n(e)}))})):E(t,r,e,n)}}).call(this,n(14))},function(t,e){t.exports=function(t){return t}},function(t,e,n){var r=n(357),o=n(358),i=n(359),a=n(120),s=n(121),l=n(362),c=n(363),u=n(122),p=n(180),d=n(60),f=n(49).all,h=n(25).OptimizationLevel,g=n(10),m=n(15),v=n(81),y=n(123),b=n(13).rules,_="ignore-property",w="@charset",E=new RegExp("^"+w,"i"),x=n(181).DEFAULT,C=/(?:^|\s|\()(-?\d+)px/,T=/^(\-?[\d\.]+)(m?s)$/,A=/[0-9a-f]/i,O=/^(?:\-chrome\-|\-[\w\-]+\w|\w[\w\-]+\w|\-\-\S+)$/,S=/^@import/i,k=/^('.*'|".*")$/,P=/^['"][a-zA-Z][a-zA-Z\d\-_]+['"]$/,j=/^url\(/i,N=/^local\(/i,L=/^--\S+$/;function D(t){return t&&"-"==t[1][0]&&parseFloat(t[1])<0}function I(t,e,n){var a,s,l,c,w,E,x=n.options,S=x.level[h.One],M=f(e,!0);t:for(var B=0,F=M.length;B<F;B++)if(s=(a=M[B]).name,O.test(s)||(E=a.all[a.position],n.warnings.push("Invalid property name '"+s+"' at "+v(E[1][2][0])+". Ignoring."),a.unused=!0),0===a.value.length&&(E=a.all[a.position],n.warnings.push("Empty property '"+s+"' at "+v(E[1][2][0])+". Ignoring."),a.unused=!0),a.hack&&((a.hack[0]==u.ASTERISK||a.hack[0]==u.UNDERSCORE)&&!x.compatibility.properties.iePrefixHack||a.hack[0]==u.BACKSLASH&&!x.compatibility.properties.ieSuffixHack||a.hack[0]==u.BANG&&!x.compatibility.properties.ieBangHack)&&(a.unused=!0),S.removeNegativePaddings&&0===s.indexOf("padding")&&(D(a.value[0])||D(a.value[1])||D(a.value[2])||D(a.value[3]))&&(a.unused=!0),!x.compatibility.properties.ieFilters&&function(t){return("filter"==t.name||"-ms-filter"==t.name)&&(-1<(t=t.value[0][1]).indexOf("progid")||0===t.indexOf("alpha")||0===t.indexOf("chroma"))}(a)&&(a.unused=!0),!a.unused)if(a.block)I(t,a.value[0][1],n);else if(!L.test(s)){for(var U=0,H=a.value.length;U<H;U++){if(l=a.value[U][0],w=function(t){return j.test(t)}(c=a.value[U][1]),l==g.PROPERTY_BLOCK){a.unused=!0,n.warnings.push("Invalid value token at "+v(c[0][1][2][0])+". Ignoring.");break}if(w&&!n.validator.isUrl(c)){a.unused=!0,n.warnings.push("Broken URL '"+c+"' at "+v(a.value[U][2][0])+". Ignoring.");break}if(w?(c=S.normalizeUrls?function(t){return t.replace(j,"url(").replace(/\\?\n|\\?\r\n/g,"")}(c):c,c=x.compatibility.properties.urlQuotes?c:function(t){return!/^url\(['"].+['"]\)$/.test(t)||/^url\(['"].*[\*\s\(\)'"].*['"]\)$/.test(t)||/^url\(['"]data:[^;]+;charset/.test(t)?t:t.replace(/["']/g,"")}(c)):function(t){return k.test(t)}(c)||function(t){return N.test(t)}(c)?c=S.removeQuotes?function(t,e){return"content"==t||-1<t.indexOf("font-variation-settings")||-1<t.indexOf("font-feature-settings")||"grid"==t||-1<t.indexOf("grid-")||!P.test(e)?e:e.substring(1,e.length-1)}(s,c):c:(c=function(t,e,n){return C.test(e)?e.replace(C,(function(t,e){var r,o=parseInt(e);return 0===o?t:(n.properties.shorterLengthUnits&&n.units.pt&&3*o%4==0&&(r=3*o/4+"pt"),n.properties.shorterLengthUnits&&n.units.pc&&o%16==0&&(r=o/16+"pc"),(r=(r=n.properties.shorterLengthUnits&&n.units.in&&o%96==0?o/96+"in":r)&&t.substring(0,t.indexOf(e))+r)&&r.length<t.length?r:t)})):e}(0,c=function(t,e,n){return n.enabled&&-1!==e.indexOf(".")?e.replace(n.decimalPointMatcher,"$1$2$3").replace(n.zeroMatcher,(function(t,e,r,o){var i=n.units[o].multiplier;return e=parseInt(e),e=isNaN(e)?0:e,r=parseFloat(r),Math.round((e+r)*i)/i+o})):e}(0,c=S.removeWhitespace?function(t,e){return-1<t.indexOf("filter")||-1==e.indexOf(" ")||0===e.indexOf("expression")||-1<e.indexOf(m.SINGLE_QUOTE)||-1<e.indexOf(m.DOUBLE_QUOTE)?e:(e=-1<(e=e.replace(/\s+/g," ")).indexOf("calc")?e.replace(/\) ?\/ ?/g,")/ "):e).replace(/(\(;?)\s+/g,"$1").replace(/\s+(;?\))/g,"$1").replace(/, /g,",")}(s,c):c,x.precision),x.compatibility),c=S.replaceTimeUnits?function(t,e){return T.test(e)?e.replace(T,(function(t,e,n){var r;return"ms"==n?r=parseInt(e)/1e3+"s":"s"==n&&(r=1e3*parseFloat(e)+"ms"),r.length<t.length?r:t})):e}(0,c):c,c=S.replaceZeroUnits?function(t,e){return-1==e.indexOf("0")?e:(e=-1<e.indexOf("-")?e.replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2").replace(/([^\w\d\-]|^)\-0([^\.]|$)/g,"$10$2"):e).replace(/(^|\s)0+([1-9])/g,"$1$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/(^|\D)\.0+(\D|$)/g,"$10$2").replace(/\.([1-9]*)0+(\D|$)/g,(function(t,e,n){return(0<e.length?".":"")+e+n})).replace(/(^|\D)0\.(\d)/g,"$1.$2")}(0,c):c,x.compatibility.properties.zeroUnits&&(c=function(t,e,n){return/^(?:\-moz\-calc|\-webkit\-calc|calc|rgb|hsl|rgba|hsla)\(/.test(e)||"flex"==t||"-ms-flex"==t||"-webkit-flex"==t||"flex-basis"==t||"-webkit-flex-basis"==t||0<e.indexOf("%")&&("height"==t||"max-height"==t||"width"==t||"max-width"==t)?e:e.replace(n,"$10$2").replace(n,"$10$2")}(s,c=function(t,e){return-1==e.indexOf("0deg")?e:e.replace(/\(0deg\)/g,"(0)")}(0,c),x.unitsRegexp)),x.compatibility.properties.colors&&(c=function(t,e,n){return e.match(/#|rgb|hsl/gi)&&(e=e.replace(/(rgb|hsl)a?\((\-?\d+),(\-?\d+\%?),(\-?\d+\%?),(0*[1-9]+[0-9]*(\.?\d*)?)\)/gi,(function(t,e,n,r,o,i){return 1<=parseInt(i,10)?e+"("+[n,r,o].join(",")+")":t})).replace(/rgb\((\-?\d+),(\-?\d+),(\-?\d+)\)/gi,(function(t,e,n,r){return i(e,n,r)})).replace(/hsl\((-?\d+),(-?\d+)%?,(-?\d+)%?\)/gi,(function(t,e,n,r){return o(e,n,r)})).replace(/(^|[^='"])#([0-9a-f]{6})/gi,(function(t,e,n,r,o){return(r=o[r+t.length])&&A.test(r)?t:(n[0]==n[1]&&n[2]==n[3]&&n[4]==n[5]?e+"#"+n[0]+n[2]+n[4]:e+"#"+n).toLowerCase()})).replace(/(^|[^='"])#([0-9a-f]{3})/gi,(function(t,e,n){return e+"#"+n.toLowerCase()})).replace(/(rgb|rgba|hsl|hsla)\(([^\)]+)\)/gi,(function(t,e,n){var r=n.split(","),o=e&&e.toLowerCase();return"hsl"==o&&3==r.length||"hsla"==o&&4==r.length||"rgb"==o&&3===r.length&&0<n.indexOf("%")||"rgba"==o&&4==r.length&&0<n.indexOf("%")?(-1==r[1].indexOf("%")&&(r[1]+="%"),-1==r[2].indexOf("%")&&(r[2]+="%"),e+"("+r.join(",")+")"):t})),n.colors.opacity&&-1==t.indexOf("background")&&(e=e.replace(/(?:rgba|hsla)\(0,0%?,0%?,0\)/g,(function(t){return-1<y(e,",").pop().indexOf("gradient(")?t:"transparent"})))),r(e)}(s,c,x.compatibility))),(c=function(t,e,n,r){return void 0===(n=r(t,e,b(n)))?e:!1===n?_:n}(s,c,t,S.transform))===_){a.unused=!0;continue t}a.value[U][1]=c}S.replaceMultipleZeros&&function(t){var e,n=t.value;(e=4==n.length&&"0"===n[0][1]&&"0"===n[1][1]&&"0"===n[2][1]&&"0"===n[3][1]?-1<t.name.indexOf("box-shadow")?2:1:e)&&(t.value.splice(e),t.dirty=!0)}(a),"background"==s&&S.optimizeBackground?function(t){1==(t=t.value).length&&"none"==t[0][1]&&(t[0][1]="0 0"),1==t.length&&"transparent"==t[0][1]&&(t[0][1]="0 0")}(a):0===s.indexOf("border")&&0<s.indexOf("radius")&&S.optimizeBorderRadius?function(t){var e,n=t.value;3==n.length&&"/"==n[1][1]&&n[0][1]==n[2][1]?e=1:5==n.length&&"/"==n[2][1]&&n[0][1]==n[3][1]&&n[1][1]==n[4][1]?e=2:7==n.length&&"/"==n[3][1]&&n[0][1]==n[4][1]&&n[1][1]==n[5][1]&&n[2][1]==n[6][1]?e=3:9==n.length&&"/"==n[4][1]&&n[0][1]==n[5][1]&&n[1][1]==n[6][1]&&n[2][1]==n[7][1]&&n[3][1]==n[8][1]&&(e=4),e&&(t.value.splice(e),t.dirty=!0)}(a):"filter"==s&&S.optimizeFilter&&x.compatibility.properties.ieFilters?function(t){1==t.value.length&&(t.value[0][1]=t.value[0][1].replace(/progid:DXImageTransform\.Microsoft\.(Alpha|Chroma)(\W)/,(function(t,e,n){return e.toLowerCase()+n}))),t.value[0][1]=t.value[0][1].replace(/,(\S)/g,", $1").replace(/ ?= ?/g,"=")}(a):"font-weight"==s&&S.optimizeFontWeight?function(t){var e=t.value[0][1];"normal"==e?e="400":"bold"==e&&(e="700"),t.value[0][1]=e}(a):"outline"==s&&S.optimizeOutline&&function(t){1==(t=t.value).length&&"none"==t[0][1]&&(t[0][1]="0")}(a)}d(M),p(M),function(t,e){for(var n,r=0;r<t.length;r++)(n=t[r])[0]==g.COMMENT&&(R(n,e),0===n[1].length&&(t.splice(r,1),r--))}(e,x)}function R(t,e){t[1][2]==m.EXCLAMATION&&("all"==e.level[h.One].specialComments||e.commentsKept<e.level[h.One].specialComments)?e.commentsKept++:t[1]=[]}t.exports=function t(e,n){var r=n.options,o=r.level[h.One],i=r.compatibility.selectors.ie7Hack,u=r.compatibility.selectors.adjacentSpace,p=r.compatibility.properties.spaceAfterClosingBrace,d=r.format,f=!1,m=!1;r.unitsRegexp=r.unitsRegexp||function(t){var e=["px","em","ex","cm","mm","in","pt","pc","%"];return["ch","rem","vh","vm","vmax","vmin","vw"].forEach((function(n){t.compatibility.units[n]&&e.push(n)})),new RegExp("(^|\\s|\\(|,)0(?:"+e.join("|")+")(\\W|$)","g")}(r),r.precision=r.precision||function(t){var e,n,r={matcher:null,units:{}},o=[];for(e in t)(n=t[e])!=x&&(r.units[e]={},r.units[e].value=n,r.units[e].multiplier=Math.pow(10,n),o.push(e));return 0<o.length&&(r.enabled=!0,r.decimalPointMatcher=new RegExp("(\\d)\\.($|"+o.join("|")+")($|W)","g"),r.zeroMatcher=new RegExp("(\\d*)(\\.\\d+)("+o.join("|")+")","g")),r}(o.roundingPrecision),r.commentsKept=r.commentsKept||0;for(var v=0,y=e.length;v<y;v++){var b=e[v];switch(b[0]){case g.AT_RULE:b[1]=function(t){return S.test(t[1])}(b)&&m?"":b[1],b[1]=o.tidyAtRules?c(b[1]):b[1],f=!0;break;case g.AT_RULE_BLOCK:I(b[1],b[2],n),m=!0;break;case g.NESTED_BLOCK:b[1]=o.tidyBlockScopes?l(b[1],p):b[1],t(b[2],n),m=!0;break;case g.COMMENT:R(b,r);break;case g.RULE:b[1]=o.tidySelectors?s(b[1],!i,u,d,n.warnings):b[1],b[1]=1<b[1].length?a(b[1],o.selectorsSortingMethod):b[1],I(b[1],b[2],n),m=!0}(b[0]==g.COMMENT&&0===b[1].length||o.removeEmpty&&(0===b[1].length||b[2]&&0===b[2].length))&&(e.splice(v,1),v--,y--)}return o.cleanupCharsets&&f&&function(t){for(var e=!1,n=0,r=t.length;n<r;n++){var o=t[n];o[0]==g.AT_RULE&&E.test(o[1])&&(e||-1==o[1].indexOf(w)?(t.splice(n,1),n--,r--):(e=!0,t.splice(n,1),t.unshift([g.AT_RULE,o[1].replace(E,w)])))}}(e),e}},function(t,e){var n,r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},o={},i={};for(n in r){var a=r[n];n.length<a.length?i[a]=n:o[n]=a}var s=new RegExp("(^| |,|\\))("+Object.keys(o).join("|")+")( |,|\\)|$)","ig"),l=new RegExp("("+Object.keys(i).join("|")+")([^a-f0-9]|$)","ig");function c(t,e,n,r){return e+o[n.toLowerCase()]+r}function u(t,e,n){return i[e.toLowerCase()]+n}t.exports=function(t){var e=-1<t.indexOf("#"),n=t.replace(s,c);return n!=t&&(n=n.replace(s,c)),e?n.replace(l,u):n}},function(t,e){function n(t,e,n){return n<0&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}t.exports=function(t,e,r){return e=(t=function(t,e,r){var o,i,a;return(t%=360)<0&&(t+=360),t=~~t/360,e<0?e=0:100<e&&(e=100),r<0?r=0:100<r&&(r=100),r=~~r/100,0==(e=~~e/100)?o=i=a=r:(o=n(e=2*r-(r=r<.5?r*(1+e):r+e-r*e),r,t+1/3),i=n(e,r,t),a=n(e,r,t-1/3)),[~~(255*o),~~(255*i),~~(255*a)]}(t,e,r))[0].toString(16),r=t[1].toString(16),t=t[2].toString(16),"#"+(1==e.length?"0":"")+e+(1==r.length?"0":"")+r+(1==t.length?"0":"")+t}},function(t,e){t.exports=function(t,e,n){return"#"+("00000"+(Math.max(0,Math.min(parseInt(t),255))<<16|Math.max(0,Math.min(parseInt(e),255))<<8|Math.max(0,Math.min(parseInt(n),255))).toString(16)).slice(-6)}},function(t,e){var n=/([0-9]+)/;function r(t){return""+parseInt(t)==t?parseInt(t):t}t.exports=function(t,e){for(var o,i,a=(""+t).split(n).map(r),s=(""+e).split(n).map(r),l=0,c=Math.min(a.length,s.length);l<c;l++)if((o=a[l])!=(i=s[l]))return i<o?1:-1;return a.length>s.length?1:a.length==s.length?0:-1}},function(t,e){e.endianness=function(){return"LE"},e.hostname=function(){return"undefined"!=typeof location?location.hostname:""},e.loadavg=function(){return[]},e.uptime=function(){return 0},e.freemem=function(){return Number.MAX_VALUE},e.totalmem=function(){return Number.MAX_VALUE},e.cpus=function(){return[]},e.type=function(){return"Browser"},e.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},e.networkInterfaces=e.getNetworkInterfaces=function(){return{}},e.arch=function(){return"javascript"},e.platform=function(){return"browser"},e.tmpdir=e.tmpDir=function(){return"/tmp"},e.EOL="\n",e.homedir=function(){return"/"}},function(t,e){var n=/^@media\W/;t.exports=function(t,e){for(var r,o=t.length-1;0<=o;o--)r=!e&&n.test(t[o][1]),t[o][1]=t[o][1].replace(/\n|\r\n/g," ").replace(/\s+/g," ").replace(/(,|:|\() /g,"$1").replace(/ \)/g,")").replace(/'([a-zA-Z][a-zA-Z\d\-_]+)'/,"$1").replace(/"([a-zA-Z][a-zA-Z\d\-_]+)"/,"$1").replace(r?/\) /g:null,")");return t}},function(t,e){t.exports=function(t){return t.replace(/\s+/g," ").replace(/url\(\s+/g,"url(").replace(/\s+\)/g,")").trim()}},function(t,e,n){var r=n(365),o=n(376),i=n(379),a=n(380),s=n(381),l=n(382),c=n(383),u=n(384),p=n(385),d=n(386),f=n(83),h=n(25).OptimizationLevel,g=n(10);t.exports=function t(e,n,m){var v,y,b=n.options.level[h.Two];if(function(e,n){for(var r=0,o=e.length;r<o;r++){var i,a=e[r];a[0]==g.NESTED_BLOCK&&(i=/@(-moz-|-o-|-webkit-)?keyframes/.test(a[1][0][1]),t(a[2],n,!i))}}(e,n),function t(e,n){for(var r=0,o=e.length;r<o;r++){var i=e[r];switch(i[0]){case g.RULE:f(i[2],!0,!0,n);break;case g.NESTED_BLOCK:t(i[2],n)}}}(e,n),b.removeDuplicateRules&&u(e,n),b.mergeAdjacentRules&&r(e,n),b.reduceNonAdjacentRules&&s(e,n),b.mergeNonAdjacentRules&&"body"!=b.mergeNonAdjacentRules&&a(e,n),b.mergeNonAdjacentRules&&"selector"!=b.mergeNonAdjacentRules&&i(e,n),b.restructureRules&&b.mergeAdjacentRules&&m&&(d(e,n),r(e,n)),b.restructureRules&&!b.mergeAdjacentRules&&m&&d(e,n),b.removeDuplicateFontRules&&l(e,n),b.removeDuplicateMediaBlocks&&c(e,n),b.removeUnusedAtRules&&p(e,n),b.mergeMedia)for(y=(v=o(e,n)).length-1;0<=y;y--)t(v[y][2],n,!1);return b.removeEmpty&&function t(e){for(var n=0,r=e.length;n<r;n++){var o=e[n],i=!1;switch(o[0]){case g.RULE:i=0===o[1].length||0===o[2].length;break;case g.NESTED_BLOCK:t(o[2]),i=0===o[2].length;break;case g.AT_RULE:i=0===o[1].length;break;case g.AT_RULE_BLOCK:i=0===o[2].length}i&&(e.splice(n,1),n--,r--)}}(e),e}},function(t,e,n){var r=n(82),o=n(83),i=n(120),a=n(121),s=n(25).OptimizationLevel,l=n(13).body,c=n(13).rules,u=n(10);t.exports=function(t,e){for(var n=[null,[],[]],p=e.options,d=p.compatibility.selectors.adjacentSpace,f=p.level[s.One].selectorsSortingMethod,h=p.compatibility.selectors.mergeablePseudoClasses,g=p.compatibility.selectors.mergeablePseudoElements,m=p.compatibility.selectors.mergeLimit,v=p.compatibility.selectors.multiplePseudoMerging,y=0,b=t.length;y<b;y++){var _=t[y];_[0]==u.RULE?n[0]==u.RULE&&c(_[1])==c(n[1])?(Array.prototype.push.apply(n[2],_[2]),o(n[2],!0,!0,e),_[2]=[]):n[0]==u.RULE&&l(_[2])==l(n[2])&&r(c(_[1]),h,g,v)&&r(c(n[1]),h,g,v)&&n[1].length<m?(n[1]=a(n[1].concat(_[1]),!1,d,!1,e.warnings),n[1]=1<n.length?i(n[1],f):n[1],_[2]=[]):n=_:n=[null,[],[]]}}},function(t,e,n){var r=n(182),o=n(183),i=n(125),a=n(33),s=n(84).deep,l=n(126),c=n(60),u=n(49).single,p=n(13).body,d=n(10);function f(t,e,n,f){var g,m,v,y=t[e];for(g in n)void 0!==y&&g==y.name||(m=a[g],v=n[g],y&&function(t,e,n){var r,o=a[e],i=a[n.name];if("overridesShorthands"in o&&-1<o.overridesShorthands.indexOf(n.name))return 1;if(i&&"componentOf"in i)for(r in t[e])if(-1<i.componentOf.indexOf(r))return 1}(n,g,y)?delete n[g]:m.components.length>Object.keys(v).length||!function(t){var e,n;for(n in t){if(void 0!==e&&t[n].important!=e)return 1;e=t[n].important}}(v)&&function(t,e,n){var o,s,l,c,p=a[e],f=(e=[d.PROPERTY,[d.PROPERTY_NAME,e],[d.PROPERTY_VALUE,p.defaultValue]],u(e));for(i([f],n,[]),l=0,c=p.components.length;l<c;l++)if(o=t[p.components[l]],s=a[o.name].canOverride,!r(s.bind(null,n),f.components[l],o))return;return 1}(v,g,f)&&function(t){var e,n,r,o=null;for(e in t)if(r=t[e],"restore"in(n=a[e])){if(c([r.all[r.position]],l),r=n.restore(r,a).length,null!==o&&r!==o)return;o=r}return 1}(v)&&(function(t){var e,n,r=null;for(e in t){if(n=o(t[e]),null!==r&&r!==n)return 1;r=n}}(v)?function(t,e,n,r){var f,g,m,v=function(t,e,n){var r,p,f,g,m=[],v={},y={},b=a[e],_=(e=[d.PROPERTY,[d.PROPERTY_NAME,e],[d.PROPERTY_VALUE,b.defaultValue]],u(e));for(i([_],n,[]),f=0,g=b.components.length;f<g;f++)r=t[b.components[f]],o(r)?(p=r.all[r.position].slice(0,2),Array.prototype.push.apply(p,r.value),m.push(p),(p=s(r)).value=function(t,e){return"oppositeTo"in(e=a[e])?t[e.oppositeTo].value:[[d.PROPERTY_VALUE,e.defaultValue]]}(t,p.name),_.components[f]=p,v[r.name]=s(r)):((p=s(r)).all=r.all,_.components[f]=p,y[r.name]=r);return n=h(y,1),e[1].push(n),c([_],l),e=e.slice(0,2),Array.prototype.push.apply(e,_.value),m.unshift(e),[m,_,v]}(e,n,r),y=function(t,e,n){var r,l,c,p,f=[],g={},m={},v=a[e],y=[d.PROPERTY,[d.PROPERTY_NAME,e],[d.PROPERTY_VALUE,"inherit"]];for(e=u(y),i([e],n,[]),c=0,p=v.components.length;c<p;c++)r=t[v.components[c]],o(r)?g[r.name]=r:(l=r.all[r.position].slice(0,2),Array.prototype.push.apply(l,r.value),f.push(l),m[r.name]=s(r));return n=h(g,1),y[1].push(n),n=h(g,2),y[2].push(n),f.unshift(y),[f,e,m]}(e,n,r),b=v[0],_=(n=y[0],(r=p(b).length<p(n).length)?b:n),w=(n=(r?v:y)[1],(r?v:y)[2]),E=e[Object.keys(e)[0]].all;for(f in n.position=E.length,n.shorthand=!0,n.dirty=!0,n.all=E,n.all.push(_[0]),t.push(n),e)(m=e[f]).unused=!0,m.name in w&&(g=w[m.name],m=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n][1][1]==e)return t[n]}(_,f),g.position=E.length,g.all=E,g.all.push(m),t.push(g))}:function(t,e,n,r){var o,l=a[n],c=(n=[d.PROPERTY,[d.PROPERTY_NAME,n],[d.PROPERTY_VALUE,l.defaultValue]],u(n));c.shorthand=!0,c.dirty=!0,i([c],r,[]);for(var p,f=0,g=l.components.length;f<g;f++){var m=e[l.components[f]];c.components[f]=s(m),c.important=m.important,o=m.all}for(p in e)e[p].unused=!0;r=h(e,1),n[1].push(r),r=h(e,2),n[2].push(r),c.position=o.length,c.all=o,c.all.push(n),t.push(c)})(t,v,g,f))}function h(t,e){var n,r,o=[];for(r in t)n=(n=(n=t[r]).all[n.position])[e][n[e].length-1],Array.prototype.push.apply(o,n);return o.sort(g)}function g(t,e){var n=t[0],r=e[0];return t=t[1],e=e[1],n<r||n===r&&t<e?-1:1}t.exports=function(t,e){var n,r,o,i,s,l,c,u={};if(!(t.length<3)){for(i=0,s=t.length;i<s;i++)if(o=t[i],n=a[o.name],!o.unused&&!o.hack&&!o.block&&(f(t,i,u,e),n&&n.componentOf))for(l=0,c=n.componentOf.length;l<c;l++)u[r=n.componentOf[l]]=u[r]||{},u[r][o.name]=o;f(t,i,u,e)}}},function(t,e,n){var r=n(184),o=n(49).single,i=n(10),a=n(15),s=n(81);function l(t){for(var e=0,n=t.length;e<n;e++)if("inherit"==t[e][1])return 1}function c(t,e,n){return(n=n[t]).doubleValues&&2==n.defaultValue.length?o([i.PROPERTY,[i.PROPERTY_NAME,t],[i.PROPERTY_VALUE,n.defaultValue[0]],[i.PROPERTY_VALUE,n.defaultValue[1]]]):n.doubleValues&&1==n.defaultValue.length?o([i.PROPERTY,[i.PROPERTY_NAME,t],[i.PROPERTY_VALUE,n.defaultValue[0]]]):o([i.PROPERTY,[i.PROPERTY_NAME,t],[i.PROPERTY_VALUE,n.defaultValue]])}function u(t,e){var n=e[t.name].components,r=[],a=t.value;if(a.length<1)return[];a.length<2&&(a[1]=a[0].slice(0)),a.length<3&&(a[2]=a[0].slice(0)),a.length<4&&(a[3]=a[1].slice(0));for(var s=n.length-1;0<=s;s--){var l=o([i.PROPERTY,[i.PROPERTY_NAME,n[s]]]);l.value=[a[s]],r.unshift(l)}return r}function p(t,e,n){for(var r,o,i,a,s=e[t.name],l=[c(s.components[0],0,e),c(s.components[1],0,e),c(s.components[2],0,e)],u=0;u<3;u++){var p=l[u];0<p.name.indexOf("color")?r=p:0<p.name.indexOf("style")?o=p:i=p}return 1==t.value.length&&"inherit"==t.value[0][1]||3==t.value.length&&"inherit"==t.value[0][1]&&"inherit"==t.value[1][1]&&"inherit"==t.value[2][1]?r.value=o.value=i.value=[t.value[0]]:(0<(t=t.value.slice(0)).length&&(a=1<(a=t.filter(function(t){return function(e){return"inherit"!=e[1]&&(t.isWidth(e[1])||t.isUnit(e[1])&&!t.isDynamicUnit(e[1]))&&!t.isStyleKeyword(e[1])&&!t.isColorFunction(e[1])}}(n))).length&&("none"==a[0][1]||"auto"==a[0][1])?a[1]:a[0])&&(i.value=[a],t.splice(t.indexOf(a),1)),0<t.length&&(a=t.filter(function(t){return function(e){return"inherit"!=e[1]&&t.isStyleKeyword(e[1])&&!t.isColorFunction(e[1])}}(n))[0])&&(o.value=[a],t.splice(t.indexOf(a),1)),0<t.length&&(a=t.filter(function(t){return function(e){return"invert"==e[1]||t.isColor(e[1])||t.isPrefixed(e[1])}}(n))[0])&&(r.value=[a],t.splice(t.indexOf(a),1))),l}t.exports={animation:function(t,e,n){var o,i,a,u=c(t.name+"-duration",0,e),p=c(t.name+"-timing-function",0,e),d=c(t.name+"-delay",0,e),f=c(t.name+"-iteration-count",0,e),h=c(t.name+"-direction",0,e),g=c(t.name+"-fill-mode",0,e),m=c(t.name+"-play-state",0,e),v=c(t.name+"-name",0,e),y=(e=[u,p,d,f,h,g,m,v],t.value),b=!1,_=!1,w=!1,E=!1,x=!1,C=!1,T=!1,A=!1;if(1==t.value.length&&"inherit"==t.value[0][1])return u.value=p.value=d.value=f.value=h.value=g.value=m.value=v.value=t.value,e;if(1<y.length&&l(y))throw new r("Invalid animation values at "+s(y[0][2][0])+". Ignoring.");for(i=0,a=y.length;i<a;i++)if(o=y[i],n.isTime(o[1])&&!b)u.value=[o],b=!0;else if(n.isTime(o[1])&&!w)d.value=[o],w=!0;else if(!n.isGlobal(o[1])&&!n.isTimingFunction(o[1])||_)if(!n.isAnimationIterationCountKeyword(o[1])&&!n.isPositiveNumber(o[1])||E)if(n.isAnimationDirectionKeyword(o[1])&&!x)h.value=[o],x=!0;else if(n.isAnimationFillModeKeyword(o[1])&&!C)g.value=[o],C=!0;else if(n.isAnimationPlayStateKeyword(o[1])&&!T)m.value=[o],T=!0;else{if(!n.isAnimationNameKeyword(o[1])&&!n.isIdentifier(o[1])||A)throw new r("Invalid animation value at "+s(o[2][0])+". Ignoring.");v.value=[o],A=!0}else f.value=[o],E=!0;else p.value=[o],_=!0;return e},background:function(t,e,n){var o=c("background-image",0,e),i=c("background-position",0,e),l=c("background-size",0,e),u=c("background-repeat",0,e),p=c("background-attachment",0,e),d=c("background-origin",0,e),f=c("background-clip",0,e),h=c("background-color",0,e),g=[o,i,l,u,p,d,f,h],m=t.value,v=!1,y=!1,b=!1,_=!1,w=!1;if(1==t.value.length&&"inherit"==t.value[0][1])return h.value=o.value=u.value=i.value=l.value=d.value=f.value=t.value,g;if(1==t.value.length&&"0 0"==t.value[0][1])return g;for(var E=m.length-1;0<=E;E--){var x,C=m[E];n.isBackgroundAttachmentKeyword(C[1])?(p.value=[C],w=!0):n.isBackgroundClipKeyword(C[1])||n.isBackgroundOriginKeyword(C[1])?(y?(d.value=[C],b=!0):(f.value=[C],y=!0),w=!0):n.isBackgroundRepeatKeyword(C[1])?(_?u.value.unshift(C):(u.value=[C],_=!0),w=!0):n.isBackgroundPositionKeyword(C[1])||n.isBackgroundSizeKeyword(C[1])||n.isUnit(C[1])||n.isDynamicUnit(C[1])?(0<E?(x=m[E-1])[1]==a.FORWARD_SLASH?l.value=[C]:1<E&&m[E-2][1]==a.FORWARD_SLASH?(l.value=[x,C],E-=2):(v||(i.value=[]),i.value.unshift(C),v=!0):(v||(i.value=[]),i.value.unshift(C),v=!0),w=!0):h.value[0][1]!=e[h.name].defaultValue&&"none"!=h.value[0][1]||!n.isColor(C[1])&&!n.isPrefixed(C[1])?(n.isUrl(C[1])||n.isFunction(C[1]))&&(o.value=[C],w=!0):(h.value=[C],w=!0)}if(y&&!b&&(d.value=f.value.slice(0)),!w)throw new r("Invalid background value at "+s(m[0][2][0])+". Ignoring.");return g},border:p,borderRadius:function(t,e){for(var n=t.value,o=-1,i=0,l=n.length;i<l;i++)if(n[i][1]==a.FORWARD_SLASH){o=i;break}if(0===o||o===n.length-1)throw new r("Invalid border-radius value at "+s(n[0][2][0])+". Ignoring.");var p=c(t.name,0,e);p.value=-1<o?n.slice(0,o):n.slice(0),p.components=u(p,e);var d=c(t.name,0,e);d.value=-1<o?n.slice(o+1):n.slice(0),d.components=u(d,e);for(var f=0;f<4;f++)p.components[f].multiplex=!0,p.components[f].value=p.components[f].value.concat(d.components[f].value);return p.components},font:function(t,e,n){var o,i,u,p,d=c("font-style",0,e),f=c("font-variant",0,e),h=c("font-weight",0,e),g=c("font-stretch",0,e),m=c("font-size",0,e),v=c("line-height",0,e),y=c("font-family",0,e),b=[d,f,h,g,m,v,y],_=t.value,w=0,E=!1,x=!1,C=!1,T=!1,A=(e=!1,!1);if(!_[w])throw new r("Missing font values at "+s(t.all[t.position][1][2][0])+". Ignoring.");if(1==_.length&&"inherit"==_[0][1])return d.value=f.value=h.value=g.value=m.value=v.value=y.value=_,b;if(1==_.length&&(n.isFontKeyword(_[0][1])||n.isGlobal(_[0][1])||n.isPrefixed(_[0][1])))return _[0][1]=a.INTERNAL+_[0][1],d.value=f.value=h.value=g.value=m.value=v.value=y.value=_,b;if(_.length<2||!function(t,e){for(var n,r=0,o=t.length;r<o;r++)if(n=t[r],e.isFontSizeKeyword(n[1])||e.isUnit(n[1])&&!e.isDynamicUnit(n[1])||e.isFunction(n[1]))return 1}(_,n)||!function(t,e){for(var n,r=0,o=t.length;r<o;r++)if(n=t[r],e.isIdentifier(n[1]))return 1}(_,n))throw new r("Invalid font values at "+s(t.all[t.position][1][2][0])+". Ignoring.");if(1<_.length&&l(_))throw new r("Invalid font values at "+s(_[0][2][0])+". Ignoring.");for(;w<4;){if(o=n.isFontStretchKeyword(_[w][1])||n.isGlobal(_[w][1]),i=n.isFontStyleKeyword(_[w][1])||n.isGlobal(_[w][1]),u=n.isFontVariantKeyword(_[w][1])||n.isGlobal(_[w][1]),p=n.isFontWeightKeyword(_[w][1])||n.isGlobal(_[w][1]),i&&!x)d.value=[_[w]],x=!0;else if(u&&!C)f.value=[_[w]],C=!0;else if(p&&!T)h.value=[_[w]],T=!0;else{if(!o||E){if(i&&x||u&&C||p&&T||o&&E)throw new r("Invalid font style / variant / weight / stretch value at "+s(_[0][2][0])+". Ignoring.");break}g.value=[_[w]],E=!0}w++}if(!(n.isFontSizeKeyword(_[w][1])||n.isUnit(_[w][1])&&!n.isDynamicUnit(_[w][1])))throw new r("Missing font size at "+s(_[0][2][0])+". Ignoring.");if(m.value=[_[w]],e=!0,!_[++w])throw new r("Missing font family at "+s(_[0][2][0])+". Ignoring.");for(e&&_[w]&&_[w][1]==a.FORWARD_SLASH&&_[w+1]&&(n.isLineHeightKeyword(_[w+1][1])||n.isUnit(_[w+1][1])||n.isNumber(_[w+1][1]))&&(v.value=[_[w+1]],w++,w++),y.value=[];_[w];)A=_[w][1]!=a.COMMA&&(A?y.value[y.value.length-1][1]+=a.SPACE+_[w][1]:y.value.push(_[w]),!0),w++;if(0===y.value.length)throw new r("Missing font family at "+s(_[0][2][0])+". Ignoring.");return b},fourValues:u,listStyle:function(t,e,n){var r=c("list-style-type",0,e),o=c("list-style-position",0,e),i=c("list-style-image",0,e);if(e=[r,o,i],1==t.value.length&&"inherit"==t.value[0][1])return r.value=o.value=i.value=[t.value[0]],e;var a=t.value.slice(0),s=a.length,l=0;for(l=0,s=a.length;l<s;l++)if(n.isUrl(a[l][1])||"0"==a[l][1]){i.value=[a[l]],a.splice(l,1);break}for(l=0,s=a.length;l<s;l++)if(n.isListStylePositionKeyword(a[l][1])){o.value=[a[l]],a.splice(l,1);break}return 0<a.length&&(n.isListStyleTypeKeyword(a[0][1])||n.isIdentifier(a[0][1]))&&(r.value=[a[0]]),e},multiplex:function(t){return function(e,n,r){for(var o,s,l=[],u=e.value,p=0,d=u.length;p<d;p++)","==u[p][1]&&l.push(p);if(0===l.length)return t(e,n,r);var f=[];for(p=0,d=l.length;p<=d;p++){var h=0===p?0:l[p-1]+1,g=p<d?l[p]:u.length,m=c(e.name,0,n);m.value=u.slice(h,g),f.push(t(m,n,r))}var v=f[0];for(p=0,d=v.length;p<d;p++)for(v[p].multiplex=!0,o=1,s=f.length;o<s;o++)v[p].value.push([i.PROPERTY_VALUE,a.COMMA]),Array.prototype.push.apply(v[p].value,f[o][p].value);return v}},outline:p,transition:function(t,e,n){var o,i,a,u=c(t.name+"-property",0,e),p=c(t.name+"-duration",0,e),d=c(t.name+"-timing-function",0,e),f=c(t.name+"-delay",0,e),h=(e=[u,p,d,f],t.value),g=!1,m=!1,v=!1,y=!1;if(1==t.value.length&&"inherit"==t.value[0][1])return u.value=p.value=d.value=f.value=t.value,e;if(1<h.length&&l(h))throw new r("Invalid animation values at "+s(h[0][2][0])+". Ignoring.");for(i=0,a=h.length;i<a;i++)if(o=h[i],n.isTime(o[1])&&!g)p.value=[o],g=!0;else if(n.isTime(o[1])&&!m)f.value=[o],m=!0;else if(!n.isGlobal(o[1])&&!n.isTimingFunction(o[1])||y){if(!n.isIdentifier(o[1])||v)throw new r("Invalid animation value at "+s(o[2][0])+". Ignoring.");u.value=[o],v=!0}else d.value=[o],y=!0;return e}}},function(t,e,n){var r=n(369);function o(t){return function(e,n,o){return!(!r(e,n,o,0,!0)&&!e.isKeyword(t)(o))&&(!(!e.isVariable(n)||!e.isVariable(o))||e.isKeyword(t)(o))}}function i(t){return function(e,n,o){return!!(r(e,n,o,0,!0)||e.isKeyword(t)(o)||e.isGlobal(o))&&(!(!e.isVariable(n)||!e.isVariable(o))||e.isKeyword(t)(o)||e.isGlobal(o))}}function a(t,e,n){return!!function(t,e,n){return t.isFunction(e)&&t.isFunction(n)&&e.substring(0,e.indexOf("("))===n.substring(0,n.indexOf("("))}(t,e,n)||e===n}function s(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isUnit(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(t.isUnit(e)&&!t.isUnit(n))&&(!!t.isUnit(n)||!t.isUnit(e)&&(!(!t.isFunction(e)||t.isPrefixed(e)||!t.isFunction(n)||t.isPrefixed(n))||a(t,e,n))))}function l(t){var e=i(t);return function(t,n,r){return s(t,n,r)||e(t,n,r)}}t.exports={generic:{color:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isColor(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(!t.colorOpacity&&(t.isRgbColor(e)||t.isHslColor(e)))&&!(!t.colorOpacity&&(t.isRgbColor(n)||t.isHslColor(n)))&&(!(!t.isColor(e)||!t.isColor(n))||a(t,e,n)))},components:function(t){return function(e,n,r,o){return t[o](e,n,r)}},image:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isImage(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!!t.isImage(n)||!t.isImage(e)&&a(t,e,n))},propertyName:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isIdentifier(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isIdentifier(n))},time:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isTime(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(t.isTime(e)&&!t.isTime(n))&&(!!t.isTime(n)||!t.isTime(e)&&(!(!t.isFunction(e)||t.isPrefixed(e)||!t.isFunction(n)||t.isPrefixed(n))||a(t,e,n))))},timingFunction:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isTimingFunction(n)||t.isGlobal(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isTimingFunction(n)||t.isGlobal(n))},unit:s,unitOrNumber:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isUnit(n)||t.isNumber(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!((t.isUnit(e)||t.isNumber(e))&&!t.isUnit(n)&&!t.isNumber(n))&&(!(!t.isUnit(n)&&!t.isNumber(n))||!t.isUnit(e)&&!t.isNumber(e)&&(!(!t.isFunction(e)||t.isPrefixed(e)||!t.isFunction(n)||t.isPrefixed(n))||a(t,e,n))))}},property:{animationDirection:i("animation-direction"),animationFillMode:o("animation-fill-mode"),animationIterationCount:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isAnimationIterationCountKeyword(n)||t.isPositiveNumber(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isAnimationIterationCountKeyword(n)||t.isPositiveNumber(n))},animationName:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isAnimationNameKeyword(n)||t.isIdentifier(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isAnimationNameKeyword(n)||t.isIdentifier(n))},animationPlayState:i("animation-play-state"),backgroundAttachment:o("background-attachment"),backgroundClip:i("background-clip"),backgroundOrigin:o("background-origin"),backgroundPosition:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isBackgroundPositionKeyword(n)||t.isGlobal(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(!t.isBackgroundPositionKeyword(n)&&!t.isGlobal(n))||s(t,e,n))},backgroundRepeat:o("background-repeat"),backgroundSize:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isBackgroundSizeKeyword(n)||t.isGlobal(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||!(!t.isBackgroundSizeKeyword(n)&&!t.isGlobal(n))||s(t,e,n))},bottom:l("bottom"),borderCollapse:o("border-collapse"),borderStyle:i("*-style"),clear:i("clear"),cursor:i("cursor"),display:i("display"),float:i("float"),left:l("left"),fontFamily:function(t,e,n){return r(t,e,n,0,!0)},fontStretch:i("font-stretch"),fontStyle:i("font-style"),fontVariant:i("font-variant"),fontWeight:i("font-weight"),listStyleType:i("list-style-type"),listStylePosition:i("list-style-position"),outlineStyle:i("*-style"),overflow:i("overflow"),position:i("position"),right:l("right"),textAlign:i("text-align"),textDecoration:i("text-decoration"),textOverflow:i("text-overflow"),textShadow:function(t,e,n){return!!(r(t,e,n,0,!0)||t.isUnit(n)||t.isColor(n)||t.isGlobal(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isUnit(n)||t.isColor(n)||t.isGlobal(n))},top:l("top"),transform:a,verticalAlign:l("vertical-align"),visibility:i("visibility"),whiteSpace:i("white-space"),zIndex:function(t,e,n){return!(!r(t,e,n,0,!0)&&!t.isZIndex(n))&&(!(!t.isVariable(e)||!t.isVariable(n))||t.isZIndex(n))}}}},function(t,e,n){var r=n(185).same;t.exports=function(t,e,n,o,i){return!(!r(e,n)||i&&t.isVariable(e)!==t.isVariable(n))}},function(t,e,n){var r=n(84).shallow,o=n(10),i=n(15);function a(t){for(var e=0,n=t.length;e<n;e++){var r=t[e][1];if("inherit"!=r&&r!=i.COMMA&&r!=i.FORWARD_SLASH)return}return 1}function s(t){var e=(r=t.components)[0].value[0],n=r[1].value[0],r=(t=r[2].value[0],r[3].value[0]);return e[1]==n[1]&&e[1]==t[1]&&e[1]==r[1]?[e]:e[1]==t[1]&&n[1]==r[1]?[e,n]:n[1]==r[1]?[e,n,t]:[e,n,t,r]}t.exports={background:function(t,e,n){var r=t.components,s=[];function l(t){Array.prototype.unshift.apply(s,t.value)}function c(t){var n=e[t.name];return n.doubleValues&&1==n.defaultValue.length?t.value[0][1]==n.defaultValue[0]&&(!t.value[1]||t.value[1][1]==n.defaultValue[0]):n.doubleValues&&1!=n.defaultValue.length?t.value[0][1]==n.defaultValue[0]&&(t.value[1]||t.value[0])[1]==n.defaultValue[1]:t.value[0][1]==n.defaultValue}for(var u=r.length-1;0<=u;u--){var p,d,f,h,g=r[u],m=c(g);"background-clip"==g.name?(f=c(h=r[u-1]),d=!(p=g.value[0][1]==h.value[0][1])&&(f&&!m||!f&&!m||!f&&m&&g.value[0][1]!=h.value[0][1]),p?l(h):d&&(l(g),l(h)),u--):"background-size"==g.name?(d=!(p=!(h=c(f=r[u-1]))&&m)&&(h&&!m||!h&&!m),p?l(f):d?(l(g),s.unshift([o.PROPERTY_VALUE,i.FORWARD_SLASH]),l(f)):1==f.value.length&&l(f),u--):m||e[g.name].multiplexLastOnly&&!n||l(g)}return 0===s.length&&1==t.value.length&&"0"==t.value[0][1]&&s.push(t.value[0]),0===s.length&&s.push([o.PROPERTY_VALUE,e[t.name].defaultValue]),a(s)?[s[0]]:s},borderRadius:function(t,e){if(t.multiplex){for(var n=r(t),a=r(t),l=0;l<4;l++){var c=t.components[l],u=r(t);u.value=[c.value[0]],n.components.push(u),(u=r(t)).value=[c.value[1]||c.value[0]],a.components.push(u)}var p=s(n),d=s(a);return p.length!=d.length||p[0][1]!=d[0][1]||1<p.length&&p[1][1]!=d[1][1]||2<p.length&&p[2][1]!=d[2][1]||3<p.length&&p[3][1]!=d[3][1]?p.concat([[o.PROPERTY_VALUE,i.FORWARD_SLASH]]).concat(d):p}return s(t)},font:function(t,e){var n,r=t.components,s=[],l=0,c=0;if(0===t.value[0][1].indexOf(i.INTERNAL))return t.value[0][1]=t.value[0][1].substring(i.INTERNAL.length),t.value;for(;l<4;)(n=r[l]).value[0][1]!=e[n.name].defaultValue&&Array.prototype.push.apply(s,n.value),l++;for(Array.prototype.push.apply(s,r[l].value),r[++l].value[0][1]!=e[r[l].name].defaultValue&&(Array.prototype.push.apply(s,[[o.PROPERTY_VALUE,i.FORWARD_SLASH]]),Array.prototype.push.apply(s,r[l].value)),l++;r[l].value[c];)s.push(r[l].value[c]),r[l].value[c+1]&&s.push([o.PROPERTY_VALUE,i.COMMA]),c++;return a(s)?[s[0]]:s},fourValues:s,multiplex:function(t){return function(e,n){if(!e.multiplex)return t(e,n,!0);for(var a=0,s=[],l={},c=0,u=e.components[0].value.length;c<u;c++)e.components[0].value[c][1]==i.COMMA&&a++;for(c=0;c<=a;c++){for(var p=r(e),d=0,f=e.components.length;d<f;d++){var h=e.components[d],g=r(h);p.components.push(g);for(var m=l[g.name]||0,v=h.value.length;m<v;m++){if(h.value[m][1]==i.COMMA){l[g.name]=m+1;break}g.value.push(h.value[m])}}var y=t(p,n,c==a);Array.prototype.push.apply(s,y),c<a&&s.push([o.PROPERTY_VALUE,i.COMMA])}return s}},withoutDefaults:function(t,e){for(var n=t.components,r=[],i=n.length-1;0<=i;i--){var s=n[i],l=e[s.name];(s.value[0][1]!=l.defaultValue||"keepUnlessDefault"in l&&!function(t,e,n){for(var r,o=0,i=t.length;o<i;o++)if((r=t[o]).name==n&&r.value[0][1]==e[n].defaultValue)return 1}(n,e,l.keepUnlessDefault))&&r.unshift(s.value[0])}return 0===r.length&&r.push([o.PROPERTY_VALUE,e[t.name].defaultValue]),a(r)?[r[0]]:r}}},function(t,e,n){var r=n(183),o=n(182),i=n(372),a=n(373),s=n(374),l=n(375),c=n(185).same,u=n(33),p=n(84).deep,d=n(126),f=n(84).shallow,h=n(60),g=n(10),m=n(15),v=n(13).property;function y(t,e){e.unused=!0,w(e,x(t)),t.value=e.value}function b(t,e){e.unused=!0,t.multiplex=!0,t.value=e.value}function _(t,e){(e.multiplex?b:t.multiplex?y:function(t,e){e.unused=!0,t.value=e.value})(t,e)}function w(t,e){t.multiplex=!0,(u[t.name].shorthand?function(t,e){for(var n,r=0,o=t.components.length;r<o;r++)(n=t.components[r]).multiplex||E(n,e)}:E)(t,e)}function E(t,e){for(var n,r=u[t.name],o="real"==r.intoMultiplexMode,i="real"==r.intoMultiplexMode?t.value.slice(0):"placeholder"==r.intoMultiplexMode?r.placeholderValue:r.defaultValue,a=x(t),s=i.length;a<e;a++)if(t.value.push([g.PROPERTY_VALUE,m.COMMA]),Array.isArray(i))for(n=0;n<s;n++)t.value.push(o?i[n]:[g.PROPERTY_VALUE,i[n]]);else t.value.push(o?i:[g.PROPERTY_VALUE,i])}function x(t){for(var e=0,n=0,r=t.value.length;n<r;n++)t.value[n][1]==m.COMMA&&e++;return e+1}function C(t){return t=[g.PROPERTY,[g.PROPERTY_NAME,t.name]].concat(t.value),v([t],0).length}function T(t,e){for(var n=0,r=t.components.length;n<r;n++)if(!A(e.isUrl,t.components[n])&&A(e.isFunction,t.components[n]))return 1}function A(t,e){for(var n=0,r=e.value.length;n<r;n++)if(e.value[n][1]!=m.COMMA&&t(e.value[n][1]))return 1}function O(t){return t.name in u}t.exports=function(t,e,n,v){var E,S,k,P,j,N,L,D,I,R,M,B;t:for(L=t.length-1;0<=L;L--)if(O(E=t[L])&&!E.block){H=u[E.name].canOverride;e:for(D=L-1;0<=D;D--)if(O(S=t[D])&&!S.block&&!S.unused&&!E.unused&&(!S.hack||E.hack||E.important)&&(S.hack||S.important||!E.hack)&&(S.important!=E.important||S.hack[0]==E.hack[0])&&!(S.important==E.important&&(S.hack[0]!=E.hack[0]||S.hack[1]&&S.hack[1]!=E.hack[1])||r(E)||function(t,e){return!t.multiplex&&("background"==t.name||"background-image"==t.name)&&e.multiplex&&("background"==e.name||"background-image"==e.name)&&function(t){for(var e=function(t){for(var e=[],n=0,r=[],o=t.length;n<o;n++){var i=t[n];i[1]==m.COMMA?(e.push(r),r=[]):r.push(i)}return e.push(r),e}(t),n=0,r=e.length;n<r;n++)if(1==e[n].length&&"none"==e[n][0][1])return 1}(e.value)}(S,E)))if(E.shorthand&&a(E,S))!E.important&&S.important||c([S],E.components)&&(!A(v.isFunction,S)&&T(E,v)||(s(E)?(B=i(E,S),H=u[S.name].canOverride,o(H.bind(null,v),S,B)&&(S.unused=!0)):S.unused=!0));else if(E.shorthand&&l(E,S)){if((E.important||!S.important)&&c([S],E.components)&&(A(v.isFunction,S)||!T(E,v))){for(I=(k=S.shorthand?S.components:[S]).length-1;0<=I;I--)if(P=k[I],j=i(E,P),H=u[P.name].canOverride,!o(H.bind(null,v),S,j))continue e;S.unused=!0}}else if(e&&S.shorthand&&!E.shorthand&&a(S,E,!0))E.important&&!S.important||(E.important||!S.important?function(t,e,n){for(var r=0,o=e;0<=o&&(t[o].name!=n||t[o].unused||r++,!(1<r));o--);return 1<r}(t,L-1,S.name)||T(S,v)||s(S)&&(B=i(S,E),o(H.bind(null,v),B,E)&&(R=!n.properties.backgroundClipMerging&&-1<B.name.indexOf("background-clip")||!n.properties.backgroundOriginMerging&&-1<B.name.indexOf("background-origin")||!n.properties.backgroundSizeMerging&&-1<B.name.indexOf("background-size"),M=u[E.name].nonMergeableValue===E.value[0][1],R||M||!n.properties.merging&&function(t,e){for(var n=0;n<t.components.length;n++){var r=t.components[n],i=u[r.name],a=i&&i.canOverride||a.sameValue,s=f(r);if(s.value=[[g.PROPERTY_VALUE,i.defaultValue]],!o(a.bind(null,e),s,r))return 1}}(S,v)||B.value[0][1]!=E.value[0][1]&&(r(S)||r(E))||function(t,e){if(!(!t.multiplex&&!e.multiplex||t.multiplex&&e.multiplex)){var n,r=t.multiplex?t:e,o=t.multiplex?e:t;return e=p(r),h([e],d),r=p(o),h([r],d),o=C(e)+1+C(r),t.multiplex?y(n=i(e,r),r):(n=i(r,e),w(r,x(e)),b(n,e)),h([r],d),o<=C(r)}}(S,E)||(!S.multiplex&&E.multiplex&&w(S,x(E)),_(B,E),S.dirty=!0))):E.unused=!0);else if(e&&S.shorthand&&E.shorthand&&S.name==E.name){if(S.multiplex||!E.multiplex){if(!E.important&&S.important){E.unused=!0;continue t}if(!E.important||S.important)if(s(E)){for(I=S.components.length-1;0<=I;I--){var F=S.components[I],U=E.components[I],H=u[F.name].canOverride;if(!o(H.bind(null,v),F,U))continue t}!function(t,e){e.unused=!0;for(var n=0,r=t.components.length;n<r;n++)_(t.components[n],e.components[n],t.multiplex)}(S,E),S.dirty=!0}else S.unused=!0;else S.unused=!0}}else if(e&&S.shorthand&&E.shorthand&&a(S,E))!S.important&&E.important||(B=i(S,E),H=u[E.name].canOverride,o(H.bind(null,v),B,E)&&(!S.important||E.important?1<u[E.name].restore(E,u).length||(_(B=i(S,E),E),E.dirty=!0):E.unused=!0));else if(S.name==E.name){if(N=!0,E.shorthand)for(I=E.components.length-1;0<=I&&N;I--)P=S.components[I],j=E.components[I],H=u[j.name].canOverride,N=N&&o(H.bind(null,v),P,j);else H=u[E.name].canOverride,N=o(H.bind(null,v),S,E);S.important&&!E.important&&N?E.unused=!0:(!S.important&&E.important&&N||N)&&(S.unused=!0)}}}},function(t,e,n){var r=n(33);function o(t,e){return t.components.filter(e)[0]}t.exports=function(t,e){return o(t,e=function(t){return function(e){return t.name===e.name}}(e))||function(t,e){var n,i,a;if(r[t.name].shorthandComponents)for(i=0,a=t.components.length;i<a;i++)if(n=o(t.components[i],e))return n}(t,e)}},function(t,e,n){var r=n(33);function o(t,e){return"components"in(t=r[t.name])&&-1<t.components.indexOf(e.name)}t.exports=function(t,e,n){return o(t,e)||!n&&!!r[t.name].shorthandComponents&&function(t,e){return t.components.some((function(t){return o(t,e)}))}(t,e)}},function(t,e,n){var r=n(15);t.exports=function(t){return"font"!=t.name||-1==t.value[0][1].indexOf(r.INTERNAL)}},function(t,e,n){var r=n(33);t.exports=function(t,e){return t.name in r&&"overridesShorthands"in r[t.name]&&-1<r[t.name].overridesShorthands.indexOf(e.name)}},function(t,e,n){var r=n(85).canReorder,o=n(85).canReorderSingle,i=n(127),a=n(186),s=n(13).rules,l=n(25).OptimizationLevel,c=n(10);t.exports=function(t,e){for(var n,u=e.options.level[l.Two].mergeSemantically,p=e.cache.specificity,d={},f=[],h=t.length-1;0<=h;h--){var g,m=t[h];m[0]==c.NESTED_BLOCK&&((m=d[g=s(m[1])])||(d[g]=m=[]),m.push(h))}for(n in d){var v=d[n];t:for(var y=v.length-1;0<y;y--){var b=v[y],_=t[b],w=v[y-1],E=t[w];e:for(var x=1;-1<=x;x-=2){for(var C=1==x,T=C?b+1:w-1,A=C?w:b,O=C?1:-1,S=C?_:E,k=C?E:_,P=i(S);T!=A;){var j=i(t[T]);if(T+=O,!(u&&function(t,e,n){for(var r,i,s,l,c,u,p=0,d=t.length;p<d;p++)for(i=(r=t[p])[5],c=0,u=e.length;c<u;c++)if(l=(s=e[c])[5],a(i,l,!0)&&!o(r,s,n))return;return 1}(P,j,p)||r(P,j,p)))continue e}k[2]=C?S[2].concat(k[2]):k[2].concat(S[2]),S[2]=[],f.push(k);continue t}}}return f}},function(t,e,n){var r=n(378);function o(t,e){var n;return t in e||(e[t]=n=r(t)),n||e[t]}t.exports=function(t,e,n){for(var r,i,a,s,l=0,c=t.length;l<c;l++)for(r=o(t[l][1],n),a=0,s=e.length;a<s;a++)if(i=o(e[a][1],n),r[0]===i[0]&&r[1]===i[1]&&r[2]===i[2])return!0;return!1}},function(t,e,n){var r=n(15),o=/[a-zA-Z]/,i=/[\s,\(>~\+]/;t.exports=function(t){for(var e,n,a,s,l,c=[0,0,0],u=0,p=!1,d=!1,f=0,h=t.length;f<h;f++){if(e=t[f],!n)if(e!=r.SINGLE_QUOTE||s||a)if(e==r.SINGLE_QUOTE&&!s&&a)a=!1;else if(e!=r.DOUBLE_QUOTE||s||a)if(e==r.DOUBLE_QUOTE&&s&&!a)s=!1;else{if(a||s)continue;0<u&&!p||(e==r.OPEN_ROUND_BRACKET?u++:e==r.CLOSE_ROUND_BRACKET&&1==u?(u--,p=!1):e==r.CLOSE_ROUND_BRACKET?u--:"#"==e?c[0]++:"."==e||e==r.OPEN_SQUARE_BRACKET?c[1]++:":"!=e||d||function(t,e){return t.indexOf(":not(",e)===e}(t,f)?":"==e?p=!0:(0===f||l)&&o.test(e)&&c[2]++:(c[1]++,p=!1))}else s=!0;else a=!0;d=":"==e,l=!(n=e==r.BACK_SLASH)&&i.test(e)}return c}},function(t,e,n){var r=n(82),o=n(120),i=n(121),a=n(25).OptimizationLevel,s=n(13).body,l=n(13).rules,c=n(10);function u(t){return t.replace(/--[^ ,>\+~:]+/g,"")}t.exports=function(t,e){for(var n=e.options,p=n.level[a.Two].mergeSemantically,d=n.compatibility.selectors.adjacentSpace,f=n.level[a.One].selectorsSortingMethod,h=n.compatibility.selectors.mergeablePseudoClasses,g=n.compatibility.selectors.mergeablePseudoElements,m=n.compatibility.selectors.multiplePseudoMerging,v={},y=t.length-1;0<=y;y--){var b,_,w=t[y];w[0]==c.RULE&&(0<w[2].length&&!p&&function(t){return/\.|\*| :/.test(t)}(l(w[1]))&&(v={}),0<w[2].length&&p&&function(t){return-1<(t=l(t[1])).indexOf("__")||-1<t.indexOf("--")}(w)&&function(t,e){var n,r=u(l(t[1]));for(n in e){var o=e[n];(-1<(o=u(l(o[1]))).indexOf(r)||-1<r.indexOf(o))&&delete e[n]}}(w,v),(_=v[b=s(w[2])])&&r(l(w[1]),h,g,m)&&r(l(_[1]),h,g,m)&&(0<w[2].length?(w[1]=i(_[1].concat(w[1]),!1,d,!1,e.warnings),w[1]=1<w[1].length?o(w[1],f):w[1]):w[1]=_[1].concat(w[1]),_[2]=[],v[b]=null),v[s(w[2])]=w)}}},function(t,e,n){var r=n(85).canReorder,o=n(127),i=n(83),a=n(13).rules,s=n(10);t.exports=function(t,e){for(var n,l=e.cache.specificity,c={},u=[],p=t.length-1;0<=p;p--)t[p][0]==s.RULE&&0!==t[p][2].length&&(c[n=a(t[p][1])]=[p].concat(c[n]||[]),2==c[n].length&&u.push(n));for(p=u.length-1;0<=p;p--){var d=c[u[p]];t:for(var f=d.length-1;0<f;f--){var h=d[f-1],g=t[h],m=d[f],v=t[m];e:for(var y=1;-1<=y;y-=2){for(var b=1==y,_=b?h+1:m-1,w=b?m:h,E=b?1:-1,x=b?g:v,C=b?v:g,T=o(x);_!=w;){var A=o(t[_]);if(_+=E,!(A=b?r(T,A,l):r(A,T,l))&&!b)continue t;if(!A&&b)continue e}b?(Array.prototype.push.apply(x[2],C[2]),C[2]=x[2]):Array.prototype.push.apply(C[2],x[2]),i(C[2],!0,!0,e),x[2]=[]}}}}},function(t,e,n){var r=n(82),o=n(83),i=n(187),a=n(10),s=n(13).body,l=n(13).rules;function c(t,e,n,r,a){for(var s,l,c=[],u=[],p=[],d=e.length-1;0<=d;d--)n.filterOut(d,c)||(l=t[s=e[d].where],l=i(l[2]),c=c.concat(l),u.push(l),p.push(s));o(c,!0,!1,a);for(var f,h=p.length,g=c.length-1,m=h-1;0<=m;)(0===m||c[g]&&-1<u[m].indexOf(c[g]))&&-1<g?g--:(f=c.splice(g+1),n.callback(t[p[m]],f,h,m),m--)}t.exports=function(t,e){for(var n=e.options,o=n.compatibility.selectors.mergeablePseudoClasses,i=n.compatibility.selectors.mergeablePseudoElements,u=n.compatibility.selectors.multiplePseudoMerging,p={},d=[],f=t.length-1;0<=f;f--){var h=t[f];if(h[0]==a.RULE&&0!==h[2].length)for(var g=l(h[1]),m=1<h[1].length&&r(g,o,i,u),v=function(t){for(var e=[],n=0;n<t.length;n++)e.push([t[n][1]]);return e}(h[1]),y=m?[g].concat(v):[g],b=0,_=y.length;b<_;b++){var w=y[b];p[w]?d.push(w):p[w]=[],p[w].push({where:f,list:v,isPartial:m&&0<b,isComplex:m&&0===b})}}!function(t,e,n,r,o){function i(t,e){return u[t].isPartial&&0===e.length}function a(t,e,n,r){u[n-r-1].isPartial||(t[2]=e)}for(var s=0,l=e.length;s<l;s++){var u=n[e[s]];c(t,u,{filterOut:i,callback:a},0,o)}}(t,d,p,0,e),function(t,e,n,o){var i=n.compatibility.selectors.mergeablePseudoClasses,a=n.compatibility.selectors.mergeablePseudoElements,l=n.compatibility.selectors.multiplePseudoMerging,u={};function p(t){return u.data[t].where<u.intoPosition}function d(t,e,n,r){0===r&&u.reducedBodies.push(e)}t:for(var f in e){var h=e[f];if(h[0].isComplex){var g=h[h.length-1].where,m=t[g],v=[],y=r(f,i,a,l)?h[0].list:[f];u.intoPosition=g,u.reducedBodies=v;for(var b,_=0,w=y.length;_<w;_++){if((b=e[b=y[_]]).length<2)continue t;if(c(t,u.data=b,{filterOut:p,callback:d},0,o),s(v[v.length-1])!=s(v[0]))continue t}m[2]=v[0]}}}(t,p,n,e)}},function(t,e,n){var r=n(10),o=n(13).all;t.exports=function(t){for(var e,n,i=[],a=0,s=t.length;a<s;a++)(e=t[a])[0]!=r.AT_RULE_BLOCK&&"@font-face"!=e[1][0][1]||(n=o([e]),-1<i.indexOf(n)?e[2]=[]:i.push(n))}},function(t,e,n){var r=n(10),o=n(13).all,i=n(13).rules;t.exports=function(t){for(var e,n,a,s={},l=0,c=t.length;l<c;l++)(n=t[l])[0]==r.NESTED_BLOCK&&((e=s[a=i(n[1])+"%"+o(n[2])])&&(e[2]=[]),s[a]=n)}},function(t,e,n){var r=n(10),o=n(13).body,i=n(13).rules;t.exports=function(t){for(var e,n,a={},s=[],l=0,c=t.length;l<c;l++)(e=t[l])[0]==r.RULE&&(a[u=i(e[1])]&&1==a[u].length?s.push(u):a[u]=a[u]||[],a[u].push(l));for(l=0,c=s.length;l<c;l++)for(var u,p=[],d=a[u=s[l]].length-1;0<=d;d--)e=t[a[u][d]],n=o(e[2]),-1<p.indexOf(n)?e[2]=[]:p.push(n)}},function(t,e,n){var r=n(125),o=n(49).single,i=n(60),a=n(10),s=/^(\-moz\-|\-o\-|\-webkit\-)?animation-name$/,l=/^(\-moz\-|\-o\-|\-webkit\-)?animation$/,c=/^@(\-moz\-|\-o\-|\-webkit\-)?keyframes /,u=/\s{0,31}!important$/,p=/^(['"]?)(.*)\1$/;function d(t){return t.replace(p,"$2").replace(u,"")}function f(t,e,n,r){for(var o,i,s,l={},c=0,u=t.length;c<u;c++)e(t[c],l);if(0!==Object.keys(l).length)for(o in function t(e,n,r,o){for(var i=n(r),s=0,l=e.length;s<l;s++)switch(e[s][0]){case a.RULE:i(e[s],o);break;case a.NESTED_BLOCK:t(e[s][2],n,r,o)}}(t,n,l,r),l)for(c=0,u=(i=l[o]).length;c<u;c++)(s=i[c])[s[0]==a.AT_RULE?1:2]=[]}function h(t,e){var n;t[0]==a.AT_RULE_BLOCK&&0===t[1][0][1].indexOf("@counter-style")&&(e[n=t[1][0][1].split(" ")[1]]=e[n]||[],e[n].push(t))}function g(t){return function(e,n){for(var a,s,l=0,c=e[2].length;l<c;l++)"list-style"==(a=e[2][l])[1][1]&&(s=o(a),r([s],n.validator,n.warnings),s.components[0].value[0][1]in t&&delete t[a[2][1]],i([s])),"list-style-type"==a[1][1]&&a[2][1]in t&&delete t[a[2][1]]}}function m(t,e){var n,r,o;if(t[0]==a.AT_RULE_BLOCK&&"@font-face"==t[1][0][1])for(r=0,o=t[2].length;r<o;r++)if("font-family"==(n=t[2][r])[1][1]){e[n=d(n[2][1].toLowerCase())]=e[n]||[],e[n].push(t);break}}function v(t){return function(e,n){for(var a,s,l,c,u,p,f=0,h=e[2].length;f<h;f++){if("font"==(a=e[2][f])[1][1]){for(s=o(a),r([s],n.validator,n.warnings),u=0,p=(l=s.components[6]).value.length;u<p;u++)(c=d(l.value[u][1].toLowerCase()))in t&&delete t[c];i([s])}if("font-family"==a[1][1])for(u=2,p=a.length;u<p;u++)(c=d(a[u][1].toLowerCase()))in t&&delete t[c]}}}function y(t,e){var n;t[0]==a.NESTED_BLOCK&&c.test(t[1][0][1])&&(e[n=t[1][0][1].split(" ")[1]]=e[n]||[],e[n].push(t))}function b(t){return function(e,n){for(var a,c,u,p,d,f=0,h=e[2].length;f<h;f++){if(a=e[2][f],l.test(a[1][1])){for(c=o(a),r([c],n.validator,n.warnings),p=0,d=(u=c.components[7]).value.length;p<d;p++)u.value[p][1]in t&&delete t[u.value[p][1]];i([c])}if(s.test(a[1][1]))for(p=2,d=a.length;p<d;p++)a[p][1]in t&&delete t[a[p][1]]}}}function _(t,e){var n;t[0]==a.AT_RULE&&0===t[1].indexOf("@namespace")&&(e[n=t[1].split(" ")[1]]=e[n]||[],e[n].push(t))}function w(t){var e=new RegExp(Object.keys(t).join("\\||")+"\\|","g");return function(n){for(var r,o,i,a,s=0,l=n[1].length;s<l;s++)for(i=0,a=(r=n[1][s][1].match(e)).length;i<a;i++)(o=r[i].substring(0,r[i].length-1))in t&&delete t[o]}}t.exports=function(t,e){f(t,h,g,e),f(t,m,v,e),f(t,y,b,e),f(t,_,w,e)}},function(t,e,n){var r=n(85).canReorderSingle,o=n(127),i=n(82),a=n(387),s=n(10),l=n(187),c=n(13).body,u=n(13).rules;function p(t,e){return e<t?1:-1}t.exports=function(t,e){var n=e.options,d=n.compatibility.selectors.mergeablePseudoClasses,f=n.compatibility.selectors.mergeablePseudoElements,h=n.compatibility.selectors.mergeLimit,g=n.compatibility.selectors.multiplePseudoMerging,m=e.cache.specificity,v={},y=[],b={},_=[];function w(t){for(var e=[],n=[],r=t.length-1;0<=r;r--)i(u(t[r][1]),d,f,g)&&(n.unshift(t[r]),0<t[r][2].length&&-1==e.indexOf(t[r])&&e.push(t[r]));return 1<e.length?n:[]}function E(t,e){return t[1]>e[1]?1:t[1]==e[1]?0:-1}function x(t,e,n){return function t(e,n,r,o){var i=[[e,function(t,e,n){for(var r=0,o=t.length-1;0<=o;o--)r+=t[o][2].length>n?u(t[o][1]).length:-1;return r-(t.length-1)*e+1}(e,n,r)]];if(2<e.length&&0<o)for(var a=e.length-1;0<=a;a--){var s=Array.prototype.slice.call(e,0);s.splice(a,1),i=i.concat(t(s,n,r,o-1))}return i}(t,e,n,1).sort(E)}function C(e,n,r,o){for(var i=[],a=o.length-1;0<=a;a--)for(var l=o[a],u=l[2].length-1;0<=u;u--)for(var p=l[2][u],d=0,f=n.length;d<f;d++){var h=n[d],g=p[1][1],m=h[0];if(h=h[4],g==m&&c([p])==h){l[2].splice(u,1);break}}for(a=n.length-1;0<=a;a--)i.unshift(n[a][3]);r=[s.RULE,r,i],t.splice(e,0,r)}function T(t,e){var n=e[4];(n=v[n])&&1<n.length&&!function(t,e){var n,r=[],o=[],i=(e=e[4],w(v[e]));if(!(i.length<2)){t:for(var a in v){for(var s=v[a],l=i.length-1;0<=l;l--)if(-1==s.indexOf(i[l]))continue t;r.push(a)}if(!(r.length<2)){for(l=r.length-1;0<=l;l--)for(n=y.length-1;0<=n;n--)if(y[n][4]==r[l]){o.unshift([y[n],i]);break}return A(t,o)}}}(t,e)&&function(t,e){var n=e[0],r=e[1],o=e[4],i=(r=n.length+r.length+1,[]),s=[];if(!((o=w(v[o])).length<2)){var l=(r=x(o,r,1))[0];if(0<l[1])return function(t,e,n){for(var r=n.length-1;0<=r;r--){var o=function(t,e){var n=function(t){for(var e=[],n=0,r=t.length;n<r;n++)e.push(u(t[n][1]));return e.join("%")}(e);return b[n]=b[n]||[],b[n].push([t,e]),n}(e,n[r][0]);if(1<b[o].length&&A(t,b[o])){!function(t){var e,n=t.split("%"),r=[];for(e in b)for(var o=e.split("%"),i=o.length-1;0<=i;i--)if(-1<n.indexOf(o[i])){r.push(e);break}for(i=r.length-1;0<=i;i--)delete b[r[i]]}(o);break}}}(t,e,r);for(var c=l[0].length-1;0<=c;c--)i=l[0][c][1].concat(i),s.unshift(l[0][c]);C(t,[e],i=a(i),s)}}(t,e)}function A(t,e){for(var n=0,r=[],o=e.length-1;0<=o;o--)n+=(c=e[o][0])[4].length+(0<o?1:0),r.push(c);var i=x(e[0][1],n,r.length)[0];if(0<i[1])return!1;var s=[],l=[];for(o=i[0].length-1;0<=o;o--)s=i[0][o][1].concat(s),l.unshift(i[0][o]);for(C(t,r,s=a(s),l),o=r.length-1;0<=o;o--){var c=r[o],u=y.indexOf(c);delete v[c[4]],-1<u&&-1==_.indexOf(u)&&_.push(u)}return!0}for(var O=t.length-1;0<=O;O--){var S,k,P,j=t[O];if(j[0]==s.RULE)S=!0;else{if(j[0]!=s.NESTED_BLOCK)continue;S=!1}for(var N=y.length,L=o(j),D=(_=[],[]),I=L.length-1;0<=I;I--)for(F=I-1;0<=F;F--)if(!r(L[I],L[F],m)){D.push(I);break}for(I=L.length-1;0<=I;I--){for(var R,M=L[I],B=!1,F=0;F<N;F++){var U=y[F];-1==_.indexOf(F)&&(!r(M,U,m)&&!function(t,e,n){return t[0]==e[0]&&(e=e[4],(e=v[e])&&-1<e.indexOf(n))}(M,U,j)||v[U[4]]&&v[U[4]].length===h)&&(T(O+1,U),-1==_.indexOf(F)&&(_.push(F),delete v[U[4]])),B||(B=M[0]==U[0]&&M[1]==U[1])&&(P=F)}!S||-1<D.indexOf(I)||(R=M[4],B&&y[P][5].length+M[5].length>h?(T(O+1,y[P]),y.splice(P,1),B=!(v[R]=[j])):(v[R]=v[R]||[],v[R].push(j)),B?y[P]=function(t,e){return(t=l(t))[5]=t[5].concat(e[5]),t}(y[P],M):y.push(M))}for(I=0,k=(_=_.sort(p)).length;I<k;I++){var H=_[I]-I;y.splice(H,1)}}for(var V=t[0]&&t[0][0]==s.AT_RULE&&0===t[0][1].indexOf("@charset")?1:0;V<t.length-1;V++){var q=t[V][0]===s.AT_RULE&&0===t[V][1].indexOf("@import"),z=t[V][0]===s.COMMENT;if(!q&&!z)break}for(O=0;O<y.length;O++)T(V,y[O])}},function(t,e){function n(t,e){return t[1]>e[1]?1:-1}t.exports=function(t){for(var e=[],r=[],o=0,i=t.length;o<i;o++){var a=t[o];-1==r.indexOf(a[1])&&(r.push(a[1]),e.push(a))}return e.sort(n)}},function(t,e){var n=new RegExp("^(\\-moz\\-|\\-webkit\\-)?calc\\([^\\)]+\\)$","i"),r=/[0-9]/,o=new RegExp("^(var\\(\\-\\-[^\\)]+\\)|[A-Z]+(\\-|[A-Z]|[0-9])+\\(.*?\\)|\\-(\\-|[A-Z]|[0-9])+\\(.*?\\))$","i"),i=/^hsl\(\s{0,31}[\-\.]?\d+\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+%\s{0,31}\)|hsla\(\s{0,31}[\-\.]?\d+\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+%\s{0,31},\s{0,31}\.?\d+\s{0,31}\)$/i,a=/^(\-[a-z0-9_][a-z0-9\-_]*|[a-z][a-z0-9\-_]*)$/i,s=/^[a-z]+$/i,l=/^-([a-z0-9]|-)*$/i,c=/^rgb\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31}\)|rgba\(\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\d]{1,3}\s{0,31},\s{0,31}[\.\d]+\s{0,31}\)$/i,u=/^(cubic\-bezier|steps)\([^\)]+\)$/,p=["ms","s"],d=/^url\([\s\S]+\)$/i,f=new RegExp("^var\\(\\-\\-[^\\)]+\\)$","i"),h=/^#[0-9a-f]{8}$/i,g=/^#[0-9a-f]{4}$/i,m=/^#[0-9a-f]{6}$/i,v=/^#[0-9a-f]{3}$/i,y={"^":["inherit","initial","unset"],"*-style":["auto","dashed","dotted","double","groove","hidden","inset","none","outset","ridge","solid"],"*-timing-function":["ease","ease-in","ease-in-out","ease-out","linear","step-end","step-start"],"animation-direction":["alternate","alternate-reverse","normal","reverse"],"animation-fill-mode":["backwards","both","forwards","none"],"animation-iteration-count":["infinite"],"animation-name":["none"],"animation-play-state":["paused","running"],"background-attachment":["fixed","inherit","local","scroll"],"background-clip":["border-box","content-box","inherit","padding-box","text"],"background-origin":["border-box","content-box","inherit","padding-box"],"background-position":["bottom","center","left","right","top"],"background-repeat":["no-repeat","inherit","repeat","repeat-x","repeat-y","round","space"],"background-size":["auto","cover","contain"],"border-collapse":["collapse","inherit","separate"],bottom:["auto"],clear:["both","left","none","right"],color:["transparent"],cursor:["all-scroll","auto","col-resize","crosshair","default","e-resize","help","move","n-resize","ne-resize","no-drop","not-allowed","nw-resize","pointer","progress","row-resize","s-resize","se-resize","sw-resize","text","vertical-text","w-resize","wait"],display:["block","inline","inline-block","inline-table","list-item","none","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group"],float:["left","none","right"],left:["auto"],font:["caption","icon","menu","message-box","small-caption","status-bar","unset"],"font-size":["large","larger","medium","small","smaller","x-large","x-small","xx-large","xx-small"],"font-stretch":["condensed","expanded","extra-condensed","extra-expanded","normal","semi-condensed","semi-expanded","ultra-condensed","ultra-expanded"],"font-style":["italic","normal","oblique"],"font-variant":["normal","small-caps"],"font-weight":["100","200","300","400","500","600","700","800","900","bold","bolder","lighter","normal"],"line-height":["normal"],"list-style-position":["inside","outside"],"list-style-type":["armenian","circle","decimal","decimal-leading-zero","disc","decimal|disc","georgian","lower-alpha","lower-greek","lower-latin","lower-roman","none","square","upper-alpha","upper-latin","upper-roman"],overflow:["auto","hidden","scroll","visible"],position:["absolute","fixed","relative","static"],right:["auto"],"text-align":["center","justify","left","left|right","right"],"text-decoration":["line-through","none","overline","underline"],"text-overflow":["clip","ellipsis"],top:["auto"],"vertical-align":["baseline","bottom","middle","sub","super","text-bottom","text-top","top"],visibility:["collapse","hidden","visible"],"white-space":["normal","nowrap","pre"],width:["inherit","initial","medium","thick","thin"]},b=["%","ch","cm","em","ex","in","mm","pc","pt","px","rem","vh","vm","vmax","vmin","vw"];function _(t){return"auto"!=t&&(O("color")(t)||function(t){return v.test(t)||g.test(t)||m.test(t)||h.test(t)}(t)||w(t)||function(t){return s.test(t)}(t))}function w(t){return k(t)||C(t)}function E(t){return n.test(t)}function x(t){return o.test(t)}function C(t){return i.test(t)}function T(t){return a.test(t)}function A(t){return"none"==t||"inherit"==t||D(t)}function O(t){return function(e){return-1<y[t].indexOf(e)}}function S(t){return R(t)==t.length}function k(t){return c.test(t)}function P(t){return l.test(t)}function j(t){return S(t)&&0<=parseFloat(t)}function N(t){return f.test(t)}function L(t){var e=R(t);return e==t.length&&0===parseInt(t)||-1<e&&-1<p.indexOf(t.slice(e+1))}function D(t){return d.test(t)}function I(t){return"auto"==t||S(t)||O("^")(t)}function R(t){for(var e,n=!1,o=!1,i=0,a=t.length;i<a;i++)if(e=t[i],0!==i||"+"!=e&&"-"!=e){if(0<i&&o&&("+"==e||"-"==e))return i-1;if("."!=e||n){if("."==e&&n)return i-1;if(!r.test(e))return i-1}else n=!0}else o=!0;return i}t.exports=function(t){var e=b.slice(0).filter((function(e){return!(e in t.units)||!0===t.units[e]}));return{colorOpacity:t.colors.opacity,isAnimationDirectionKeyword:O("animation-direction"),isAnimationFillModeKeyword:O("animation-fill-mode"),isAnimationIterationCountKeyword:O("animation-iteration-count"),isAnimationNameKeyword:O("animation-name"),isAnimationPlayStateKeyword:O("animation-play-state"),isTimingFunction:function(){var t=O("*-timing-function");return function(e){return t(e)||u.test(e)}}(),isBackgroundAttachmentKeyword:O("background-attachment"),isBackgroundClipKeyword:O("background-clip"),isBackgroundOriginKeyword:O("background-origin"),isBackgroundPositionKeyword:O("background-position"),isBackgroundRepeatKeyword:O("background-repeat"),isBackgroundSizeKeyword:O("background-size"),isColor:_,isColorFunction:w,isDynamicUnit:E,isFontKeyword:O("font"),isFontSizeKeyword:O("font-size"),isFontStretchKeyword:O("font-stretch"),isFontStyleKeyword:O("font-style"),isFontVariantKeyword:O("font-variant"),isFontWeightKeyword:O("font-weight"),isFunction:x,isGlobal:O("^"),isHslColor:C,isIdentifier:T,isImage:A,isKeyword:O,isLineHeightKeyword:O("line-height"),isListStylePositionKeyword:O("list-style-position"),isListStyleTypeKeyword:O("list-style-type"),isNumber:S,isPrefixed:P,isPositiveNumber:j,isRgbColor:k,isStyleKeyword:O("*-style"),isTime:L,isUnit:function(t,e){var n=R(e);return n==e.length&&0===parseInt(e)||-1<n&&-1<t.indexOf(e.slice(n+1))||"auto"==e||"inherit"==e}.bind(null,e),isUrl:D,isVariable:N,isWidth:O("width"),isZIndex:I}}},function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var r={"*":{colors:{opacity:!0},properties:{backgroundClipMerging:!0,backgroundOriginMerging:!0,backgroundSizeMerging:!0,colors:!0,ieBangHack:!1,ieFilters:!1,iePrefixHack:!1,ieSuffixHack:!1,merging:!0,shorterLengthUnits:!1,spaceAfterClosingBrace:!0,urlQuotes:!1,zeroUnits:!0},selectors:{adjacentSpace:!1,ie7Hack:!1,mergeablePseudoClasses:[":active",":after",":before",":empty",":checked",":disabled",":empty",":enabled",":first-child",":first-letter",":first-line",":first-of-type",":focus",":hover",":lang",":last-child",":last-of-type",":link",":not",":nth-child",":nth-last-child",":nth-last-of-type",":nth-of-type",":only-child",":only-of-type",":root",":target",":visited"],mergeablePseudoElements:["::after","::before","::first-letter","::first-line"],mergeLimit:8191,multiplePseudoMerging:!0},units:{ch:!0,in:!0,pc:!0,pt:!0,rem:!0,vh:!0,vm:!0,vmax:!0,vmin:!0,vw:!0}}};function o(t,e){for(var r in t){var i=t[r];"object"!==n(i)||Array.isArray(i)?e[r]=r in e?e[r]:i:e[r]=o(i,e[r]||{})}return e}r.ie11=r["*"],r.ie10=r["*"],r.ie9=o(r["*"],{properties:{ieFilters:!0,ieSuffixHack:!0}}),r.ie8=o(r.ie9,{colors:{opacity:!1},properties:{backgroundClipMerging:!1,backgroundOriginMerging:!1,backgroundSizeMerging:!1,iePrefixHack:!0,merging:!1},selectors:{mergeablePseudoClasses:[":after",":before",":first-child",":first-letter",":focus",":hover",":visited"],mergeablePseudoElements:[]},units:{ch:!1,rem:!1,vh:!1,vm:!1,vmax:!1,vmin:!1,vw:!1}}),r.ie7=o(r.ie8,{properties:{ieBangHack:!0},selectors:{ie7Hack:!0,mergeablePseudoClasses:[":first-child",":first-letter",":hover",":visited"]}}),t.exports=function(t){return o(r["*"],function(t){if("object"==n(t))return t;if(!/[,\+\-]/.test(t))return r[t]||r["*"];var e=t.split(","),i=e[0]in r?r[e.shift()]:r["*"];return t={},e.forEach((function(e){var n="+"==e[0],r=(e=(r=e.substring(1).split("."))[0],r[1]);t[e]=t[e]||{},t[e][r]=n})),o(i,t)}(t))}},function(t,e,n){var r=n(391);t.exports=function(t){return t||r}},function(t,e,n){var r=n(188),o=n(409),i=n(26),a=n(410),s=n(411),l=n(48);t.exports=function t(e,n,c,u){var p=n.protocol||n.hostname,d=!1,f=l(i.parse(e),n||{});void 0!==n.hostname&&(f.protocol=n.protocol||"http:",f.path=f.href),(0,(p&&!s(p)||a(e)?r:o).get)(f,(function(r){var o=[];if(!d)return r.statusCode<200||399<r.statusCode?u(r.statusCode,null):299<r.statusCode?t(i.resolve(e,r.headers.location),n,c,u):(r.on("data",(function(t){o.push(t.toString())})),void r.on("end",(function(){var t=o.join("");u(null,t)})))})).on("error",(function(t){d||(d=!0,u(t.message,null))})).on("timeout",(function(){d||(d=!0,u("timeout",null))})).setTimeout(c)}},function(t,e,n){(function(e,r,o){var i=n(189),a=n(34),s=n(190),l=n(191),c=n(401),u=s.IncomingMessage,p=s.readyStates;a(s=t.exports=function(t){var n,r=this;l.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){r.setHeader(e,t.headers[e])}));var o=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!i.abortController)n=!(o=!1);else if("prefer-streaming"===t.mode)n=!1;else if("allow-wrong-content-type"===t.mode)n=!i.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(t,e){return i.fetch&&e?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&t?"arraybuffer":i.vbArray&&t?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))},l.Writable),s.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===d.indexOf(n)&&(this._headers[n]={name:t,value:e})},s.prototype.getHeader=function(t){return(t=this._headers[t.toLowerCase()])?t.value:null},s.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},s.prototype._onFinish=function(){var t=this;if(!t._destroyed){var n=t._opts,a=t._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=i.arraybuffer?c(e.concat(t._body)):i.blobConstructor?new r.Blob(t._body.map((function(t){return c(t)})),{type:(a["content-type"]||{}).value||""}):e.concat(t._body).toString());var l=[];if(Object.keys(a).forEach((function(t){var e=a[t].name;t=a[t].value,Array.isArray(t)?t.forEach((function(t){l.push([e,t])})):l.push([e,t])})),"fetch"===t._mode){var u,d=null;i.abortController&&(d=(u=new AbortController).signal,t._fetchAbortController=u,"requestTimeout"in n&&0!==n.requestTimeout&&(t._fetchTimer=r.setTimeout((function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()}),n.requestTimeout))),r.fetch(t._opts.url,{method:t._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:d}).then((function(e){t._fetchResponse=e,t._connect()}),(function(e){r.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)}))}else{var f=t._xhr=new r.XMLHttpRequest;try{f.open(t._opts.method,t._opts.url,!0)}catch(n){return void o.nextTick((function(){t.emit("error",n)}))}"responseType"in f&&(f.responseType=t._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!n.withCredentials),"text"===t._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(f.timeout=n.requestTimeout,f.ontimeout=function(){t.emit("requestTimeout")}),l.forEach((function(t){f.setRequestHeader(t[0],t[1])})),t._response=null,f.onreadystatechange=function(){switch(f.readyState){case p.LOADING:case p.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(f.onprogress=function(){t._onXHRProgress()}),f.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{f.send(s)}catch(n){return void o.nextTick((function(){t.emit("error",n)}))}}}},s.prototype._onXHRProgress=function(){!function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return}}(this._xhr)||this._destroyed||(this._response||this._connect(),this._response._onXHRProgress())},s.prototype._connect=function(){var t=this;t._destroyed||(t._response=new u(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",(function(e){t.emit("error",e)})),t.emit("response",t._response))},s.prototype._write=function(t,e,n){this._body.push(t),n()},s.prototype.abort=s.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},s.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),l.Writable.prototype.end.call(this,t,e,n)},s.prototype.flushHeaders=function(){},s.prototype.setTimeout=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var d=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(22).Buffer,n(17),n(14))},function(t,e){},function(t,e,n){"use strict";var r=n(128).Buffer,o=n(395);function i(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),this.head=null,this.tail=null,this.length=0}t.exports=(i.prototype.push=function(t){t={data:t,next:null},0<this.length?this.tail.next=t:this.head=t,this.tail=t,++this.length},i.prototype.unshift=function(t){t={data:t,next:this.head},0===this.length&&(this.tail=t),this.head=t,++this.length},i.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},i.prototype.clear=function(){this.head=this.tail=null,this.length=0},i.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},i.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e=r.allocUnsafe(t>>>0),n=this.head,o=0;n;)!function(t,e,n){t.copy(e,n)}(n.data,e,o),o+=n.data.length,n=n.next;return e},i),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(397),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(17))},function(t,e,n){(function(t,e){!function(t){"use strict";var n,r,o,i,a,s;function l(t){delete r[t]}function c(t){if(o)setTimeout(c,0,t);else{var e=r[t];if(e){o=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{l(t),o=!1}}}}t.setImmediate||(n=1,o=!(r={}),i=t.document,s=(s=Object.getPrototypeOf&&Object.getPrototypeOf(t))&&s.setTimeout?s:t,("[object process]"==={}.toString.call(t.process)?function(){a=function(t){e.nextTick((function(){c(t)}))}}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){function e(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(n)&&c(+e.data.slice(n.length))}var n="setImmediate$"+Math.random()+"$";t.addEventListener?t.addEventListener("message",e,!1):t.attachEvent("onmessage",e),a=function(e){t.postMessage(n+e,"*")}}:t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){c(t.data)},a=function(e){t.port2.postMessage(e)}}:i&&"onreadystatechange"in i.createElement("script")?function(){var t=i.documentElement;a=function(e){var n=i.createElement("script");n.onreadystatechange=function(){c(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}:function(){a=function(t){setTimeout(c,0,t)}})(),s.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),o=0;o<e.length;o++)e[o]=arguments[o+1];return r[n]={callback:t,args:e},a(n),n++},s.clearImmediate=l)}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(17),n(14))},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return}catch(t){return}return null!=(t=e.localStorage[t])&&"true"===String(t).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,n(17))},function(t,e,n){var r=n(22),o=r.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=o(t),void 0!==e?"string"==typeof n?t.fill(e,n):t.fill(e):t.fill(0),t},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){"use strict";t.exports=o;var r=n(198);function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}(t=Object.create(n(61))).inherits=n(34),t.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){var r=n(22).Buffer;t.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(r.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,o=0;o<n;o++)e[o]=t[o];return e.buffer}throw new Error("Argument must be a Buffer")}},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r,o=arguments[e];for(r in o)n.call(o,r)&&(t[r]=o[r])}return t};var n=Object.prototype.hasOwnProperty},function(t,e){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(t,e,n){(function(t,r){var o;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(a){var s="object"==i(e)&&e&&!e.nodeType&&e,l="object"==i(t)&&t&&!t.nodeType&&t,c="object"==(void 0===r?"undefined":i(r))&&r;c.global!==c&&c.window!==c&&c.self!==c||(a=c);var u,p,d=2147483647,f=36,h=/^xn--/,g=/[^\x20-\x7E]/,m=/[\x2E\u3002\uFF0E\uFF61]/g,v={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=Math.floor,b=String.fromCharCode;function _(t){throw new RangeError(v[t])}function w(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function E(t,e){var n=t.split("@"),r="";return 1<n.length&&(r=n[0]+"@",t=n[1]),r+w((t=t.replace(m,".")).split("."),e).join(".")}function x(t){for(var e,n,r=[],o=0,i=t.length;o<i;)55296<=(e=t.charCodeAt(o++))&&e<=56319&&o<i?56320==(64512&(n=t.charCodeAt(o++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--):r.push(e);return r}function C(t){return w(t,(function(t){var e="";return 65535<t&&(e+=b((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+b(t)})).join("")}function T(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function A(t,e,n){var r=0;for(t=n?y(t/700):t>>1,t+=y(t/e);455<t;r+=f)t=y(t/35);return y(r+36*t/(t+38))}function O(t){var e,n,r,o,i,a,s,l=[],c=t.length,u=0,p=128,h=72,g=t.lastIndexOf("-");for(g<0&&(g=0),n=0;n<g;++n)128<=t.charCodeAt(n)&&_("not-basic"),l.push(t.charCodeAt(n));for(r=0<g?g+1:0;r<c;){for(o=u,i=1,a=f;c<=r&&_("invalid-input"),s=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:f}(t.charCodeAt(r++)),(f<=s||s>y((d-u)/i))&&_("overflow"),u+=s*i,!(s<(s=a<=h?1:h+26<=a?26:a-h));a+=f)i>y(d/(s=f-s))&&_("overflow"),i*=s;h=A(u-o,e=l.length+1,0==o),y(u/e)>d-p&&_("overflow"),p+=y(u/e),u%=e,l.splice(u++,0,p)}return C(l)}function S(t){for(var e,n,r,o,i,a,s,l,c,u,p=[],h=(t=x(t)).length,g=128,m=72,v=e=0;v<h;++v)(s=t[v])<128&&p.push(b(s));for(n=r=p.length,r&&p.push("-");n<h;){for(o=d,v=0;v<h;++v)g<=(s=t[v])&&s<o&&(o=s);for(o-g>y((d-e)/(l=n+1))&&_("overflow"),e+=(o-g)*l,g=o,v=0;v<h;++v)if((s=t[v])<g&&++e>d&&_("overflow"),s==g){for(i=e,a=f;!(i<(c=a<=m?1:m+26<=a?26:a-m));a+=f)p.push(b(T(c+(u=i-c)%(c=f-c),0))),i=y(u/c);p.push(b(T(i,0))),m=A(e,l,n==r),e=0,++n}++e,++g}return p.join("")}if(u={version:"1.4.1",ucs2:{decode:x,encode:C},decode:O,encode:S,toASCII:function(t){return E(t,(function(t){return g.test(t)?"xn--"+S(t):t}))},toUnicode:function(t){return E(t,(function(t){return h.test(t)?O(t.slice(4).toLowerCase()):t}))}},"object"==i(n(87))&&n(87))void 0===(o=function(){return u}.call(e,n,e,t))||(t.exports=o);else if(s&&l)if(t.exports==s)l.exports=u;else for(p in u)u.hasOwnProperty(p)&&(s[p]=u[p]);else a.punycode=u}(this)}).call(this,n(54)(t),n(17))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"===r(t)&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(407),e.encode=e.stringify=n(408)},function(t,e,n){"use strict";t.exports=function(t,e,n,o){n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(e=e||"&"),e=1e3,o&&"number"==typeof o.maxKeys&&(e=o.maxKeys);var s=t.length;0<e&&e<s&&(s=e);for(var l=0;l<s;++l){var c,u=0<=(u=(p=t[l].replace(a,"%20")).indexOf(n))?(c=p.substr(0,u),p.substr(u+1)):(c=p,""),p=decodeURIComponent(c);u=decodeURIComponent(u),function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(i,p)?r(i[p])?i[p].push(u):i[p]=[i[p],u]:i[p]=u}return i};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){switch(r(t)){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}t.exports=function(t,e,n,l){return e=e||"&",n=n||"=","object"===r(t=null===t?void 0:t)?a(s(t),(function(r){var s=encodeURIComponent(o(r))+n;return i(t[r])?a(t[r],(function(t){return s+encodeURIComponent(o(t))})).join(e):s+encodeURIComponent(o(t[r]))})).join(e):l?encodeURIComponent(o(l))+n+encodeURIComponent(o(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function a(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var s=Object.keys||function(t){var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n}},function(t,e,n){var r,o=n(188),i=n(26),a=t.exports;for(r in o)o.hasOwnProperty(r)&&(a[r]=o[r]);function s(t){if((t="string"==typeof t?i.parse(t):t).protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}a.request=function(t,e){return t=s(t),o.request.call(this,t,e)},a.get=function(t,e){return t=s(t),o.get.call(this,t,e)}},function(t,e){var n=/^http:\/\//;t.exports=function(t){return n.test(t)}},function(t,e){var n=/^https:\/\//;t.exports=function(t){return n.test(t)}},function(t,e){t.exports=function(t){return Array.isArray(t)?t:!1===t?["none"]:void 0===t?["local"]:t.split(",")}},function(t,e,n){(function(e){var r=n(26),o=n(48);t.exports=function(t){return o(function(t){return t?{hostname:r.parse(t).hostname,port:parseInt(r.parse(t).port)}:{}}(e.env.HTTP_PROXY||e.env.http_proxy),t||{})}}).call(this,n(14))},function(t,e){t.exports=function(t){return t||5e3}},function(t,e){t.exports=function(t){return void 0===t||!!t}},function(t,e,n){(function(e){var r=n(21);t.exports=function(t){return t?r.resolve(t):e.cwd()}}).call(this,n(14))},function(t,e,n){var r=n(199).SourceMapConsumer;t.exports=function(){var t={};return{all:function(t){return t}.bind(null,t),isTracking:function(t,e){return e in t}.bind(null,t),originalPositionFor:function t(e,n,r,o){for(var i,a=n[0],s=n[1],l=n[2],c={line:a,column:s+r};!i&&c.column>s;)c.column--,i=e[l].originalPositionFor(c);return!i||i.column<0?n:null===i.line&&1<a&&0<o?t(e,[a-1,s,l],r,o-1):null!==i.line?function(t){return[t.line,t.column,t.source]}(i):n}.bind(null,t),track:function(t,e,n){t[e]=new r(n)}.bind(null,t)}}},function(t,e){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(t){if(0<=t&&t<n.length)return n[t];throw new TypeError("Must be between 0 and 63: "+t)},e.decode=function(t){return 65<=t&&t<=90?t-65:97<=t&&t<=122?t-97+26:48<=t&&t<=57?t-48+52:43==t?62:47==t?63:-1}},function(t,e,n){var r=n(62);function o(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}o.prototype.unsortedForEach=function(t,e){this._array.forEach(t,e)},o.prototype.add=function(t){!function(t,e){var n=t.generatedLine,o=e.generatedLine,i=t.generatedColumn,a=e.generatedColumn;return n<o||o==n&&i<=a||r.compareByGeneratedPositionsInflated(t,e)<=0}(this._last,t)?this._sorted=!1:this._last=t,this._array.push(t)},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=o},function(t,e,n){var r=n(62),o=n(421),i=n(202).ArraySet,a=n(201),s=n(422).quickSort;function l(t,e){var n=t;return new(null!=(n="string"==typeof t?r.parseSourceMapInput(t):n).sections?p:c)(n,e)}function c(t,e){var n=t;"string"==typeof t&&(n=r.parseSourceMapInput(t));var o=r.getArg(n,"version"),a=r.getArg(n,"sources"),s=r.getArg(n,"names",[]),l=r.getArg(n,"sourceRoot",null),c=r.getArg(n,"sourcesContent",null);if(t=r.getArg(n,"mappings"),n=r.getArg(n,"file",null),o!=this._version)throw new Error("Unsupported version: "+o);l=l&&r.normalize(l),a=a.map(String).map(r.normalize).map((function(t){return l&&r.isAbsolute(l)&&r.isAbsolute(t)?r.relative(l,t):t})),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map((function(t){return r.computeSourceURL(l,t,e)})),this.sourceRoot=l,this.sourcesContent=c,this._mappings=t,this._sourceMapURL=e,this.file=n}function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function p(t,e){var n=t;if("string"==typeof t&&(n=r.parseSourceMapInput(t)),t=r.getArg(n,"version"),n=r.getArg(n,"sections"),t!=this._version)throw new Error("Unsupported version: "+t);this._sources=new i,this._names=new i;var o={line:-1,column:0};this._sections=n.map((function(t){if(t.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(t,"offset"),i=r.getArg(n,"line"),a=r.getArg(n,"column");if(i<o.line||i===o.line&&a<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=n,{generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:new l(r.getArg(t,"map"),e)}}))}l.fromSourceMap=function(t,e){return c.fromSourceMap(t,e)},l.prototype._version=3,l.prototype.__generatedMappings=null,Object.defineProperty(l.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),l.prototype.__originalMappings=null,Object.defineProperty(l.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),l.prototype._charIsMappingSeparator=function(t,e){return";"===(e=t.charAt(e))||","===e},l.prototype._parseMappings=function(t,e){throw new Error("Subclasses must implement _parseMappings")},l.GENERATED_ORDER=1,l.ORIGINAL_ORDER=2,l.GREATEST_LOWER_BOUND=1,l.LEAST_UPPER_BOUND=2,l.prototype.eachMapping=function(t,e,n){var o;switch(e=e||null,n||l.GENERATED_ORDER){case l.GENERATED_ORDER:o=this._generatedMappings;break;case l.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var i=this.sourceRoot;o.map((function(t){var e=null===t.source?null:this._sources.at(t.source);return{source:r.computeSourceURL(i,e,this._sourceMapURL),generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:null===t.name?null:this._names.at(t.name)}}),this).forEach(t,e)},l.prototype.allGeneratedPositionsFor=function(t){var e=r.getArg(t,"line"),n={source:r.getArg(t,"source"),originalLine:e,originalColumn:r.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(0<=a){var s=this._originalMappings[a];if(void 0===t.column)for(var l=s.originalLine;s&&s.originalLine===l;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var c=s.originalColumn;s&&s.originalLine===e&&s.originalColumn==c;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return i},e.SourceMapConsumer=l,(c.prototype=Object.create(l.prototype)).consumer=l,c.prototype._findSourceIndex=function(t){var e,n=t;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(e=0;e<this._absoluteSources.length;++e)if(this._absoluteSources[e]==t)return e;return-1},c.fromSourceMap=function(t,e){var n=Object.create(c.prototype),o=n._names=i.fromArray(t._names.toArray(),!0),a=n._sources=i.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=e,n._absoluteSources=n._sources.toArray().map((function(t){return r.computeSourceURL(n.sourceRoot,t,e)}));for(var l=t._mappings.toArray().slice(),p=n.__generatedMappings=[],d=n.__originalMappings=[],f=0,h=l.length;f<h;f++){var g=l[f],m=new u;m.generatedLine=g.generatedLine,m.generatedColumn=g.generatedColumn,g.source&&(m.source=a.indexOf(g.source),m.originalLine=g.originalLine,m.originalColumn=g.originalColumn,g.name&&(m.name=o.indexOf(g.name)),d.push(m)),p.push(m)}return s(n.__originalMappings,r.compareByOriginalPositions),n},c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),c.prototype._parseMappings=function(t,e){for(var n,o,i,l,c=1,p=0,d=0,f=0,h=0,g=0,m=t.length,v=0,y={},b={},_=[],w=[];v<m;)if(";"===t.charAt(v))c++,v++,p=0;else if(","===t.charAt(v))v++;else{for((n=new u).generatedLine=c,l=v;l<m&&!this._charIsMappingSeparator(t,l);l++);if(i=y[o=t.slice(v,l)])v+=o.length;else{for(i=[];v<l;)a.decode(t,v,b),v=b.rest,i.push(b.value);if(2===i.length)throw new Error("Found a source, but no line and column");if(3===i.length)throw new Error("Found a source and line, but no column");y[o]=i}n.generatedColumn=p+i[0],p=n.generatedColumn,1<i.length&&(n.source=h+i[1],h+=i[1],n.originalLine=d+i[2],d=n.originalLine,n.originalLine+=1,n.originalColumn=f+i[3],f=n.originalColumn,4<i.length&&(n.name=g+i[4],g+=i[4])),w.push(n),"number"==typeof n.originalLine&&_.push(n)}s(w,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,s(_,r.compareByOriginalPositions),this.__originalMappings=_},c.prototype._findMapping=function(t,e,n,r,i,a){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[r]);return o.search(t,e,i,a)},c.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var e=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(e.generatedLine===n.generatedLine){e.lastGeneratedColumn=n.generatedColumn-1;continue}}e.lastGeneratedColumn=1/0}},c.prototype.originalPositionFor=function(t){var e={generatedLine:r.getArg(t,"line"),generatedColumn:r.getArg(t,"column")},n=this._findMapping(e,this._generatedMappings,"generatedLine","generatedColumn",r.compareByGeneratedPositionsDeflated,r.getArg(t,"bias",l.GREATEST_LOWER_BOUND));return 0<=n&&(t=this._generatedMappings[n]).generatedLine===e.generatedLine?(null!==(n=r.getArg(t,"source",null))&&(n=this._sources.at(n),n=r.computeSourceURL(this.sourceRoot,n,this._sourceMapURL)),null!==(e=r.getArg(t,"name",null))&&(e=this._names.at(e)),{source:n,line:r.getArg(t,"originalLine",null),column:r.getArg(t,"originalColumn",null),name:e}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(t){return null==t}))},c.prototype.sourceContentFor=function(t,e){if(!this.sourcesContent)return null;if(0<=(o=this._findSourceIndex(t)))return this.sourcesContent[o];var n,o=t;if(null!=this.sourceRoot&&(o=r.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){if(t=o.replace(/^file:\/\//,""),"file"==n.scheme&&this._sources.has(t))return this.sourcesContent[this._sources.indexOf(t)];if((!n.path||"/"==n.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(e)return null;throw new Error('"'+o+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(t){var e=r.getArg(t,"source");return(e=this._findSourceIndex(e))<0?{line:null,column:null,lastColumn:null}:(e={source:e,originalLine:r.getArg(t,"line"),originalColumn:r.getArg(t,"column")},0<=(t=this._findMapping(e,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(t,"bias",l.GREATEST_LOWER_BOUND)))&&(t=this._originalMappings[t]).source===e.source?{line:r.getArg(t,"generatedLine",null),column:r.getArg(t,"generatedColumn",null),lastColumn:r.getArg(t,"lastGeneratedColumn",null)}:{line:null,column:null,lastColumn:null})},e.BasicSourceMapConsumer=c,(p.prototype=Object.create(l.prototype)).constructor=l,p.prototype._version=3,Object.defineProperty(p.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var n=0;n<this._sections[e].consumer.sources.length;n++)t.push(this._sections[e].consumer.sources[n]);return t}}),p.prototype.originalPositionFor=function(t){var e={generatedLine:r.getArg(t,"line"),generatedColumn:r.getArg(t,"column")},n=o.search(e,this._sections,(function(t,e){return t.generatedLine-e.generatedOffset.generatedLine||t.generatedColumn-e.generatedOffset.generatedColumn}));return(n=this._sections[n])?n.consumer.originalPositionFor({line:e.generatedLine-(n.generatedOffset.generatedLine-1),column:e.generatedColumn-(n.generatedOffset.generatedLine===e.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}},p.prototype.hasContentsOfAllSources=function(){return this._sections.every((function(t){return t.consumer.hasContentsOfAllSources()}))},p.prototype.sourceContentFor=function(t,e){for(var n=0;n<this._sections.length;n++){var r=this._sections[n].consumer.sourceContentFor(t,!0);if(r)return r}if(e)return null;throw new Error('"'+t+'" is not in the SourceMap.')},p.prototype.generatedPositionFor=function(t){for(var e=0;e<this._sections.length;e++){var n=this._sections[e];if(-1!==n.consumer._findSourceIndex(r.getArg(t,"source"))){var o=n.consumer.generatedPositionFor(t);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},p.prototype._parseMappings=function(t,e){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,a=0;a<i.length;a++){var l=i[a],c=o.consumer._sources.at(l.source);c=r.computeSourceURL(o.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;l.name&&(u=o.consumer._names.at(l.name),this._names.add(u),u=this._names.indexOf(u)),u={source:c,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:u},this.__generatedMappings.push(u),"number"==typeof u.originalLine&&this.__originalMappings.push(u)}s(this.__generatedMappings,r.compareByGeneratedPositionsDeflated),s(this.__originalMappings,r.compareByOriginalPositions)},e.IndexedSourceMapConsumer=p},function(t,e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(t,n,r,o){if(0===n.length)return-1;var i=function t(n,r,o,i,a,s){var l=Math.floor((r-n)/2)+n,c=a(o,i[l],!0);return 0===c?l:0<c?1<r-l?t(l,r,o,i,a,s):s==e.LEAST_UPPER_BOUND?r<i.length?r:-1:l:1<l-n?t(n,l,o,i,a,s):s==e.LEAST_UPPER_BOUND?l:n<0?-1:n}(-1,n.length,t,n,r,o||e.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;0<=i-1&&0===r(n[i],n[i-1],!0);)--i;return i}},function(t,e){function n(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}e.quickSort=function(t,e){!function t(e,r,o,i){if(o<i){var a=o-1;n(e,function(t,e){return Math.round(t+Math.random()*(e-t))}(o,i),i);for(var s=e[i],l=o;l<i;l++)r(e[l],s)<=0&&n(e,a+=1,l);n(e,a+1,l);var c=a+1;t(e,r,o,c-1),t(e,r,c+1,i)}}(t,e,0,t.length-1)}},function(t,e,n){var r=n(200).SourceMapGenerator,o=n(62),i=/(\r?\n)/,a="$$$isSourceNode$$$";function s(t,e,n,r,o){this.children=[],this.sourceContents={},this.line=null==t?null:t,this.column=null==e?null:e,this.source=null==n?null:n,this.name=null==o?null:o,this[a]=!0,null!=r&&this.add(r)}s.fromStringWithSourceMap=function(t,e,n){function r(){return t()+(t()||"");function t(){return c<l.length?l[c++]:void 0}}var a=new s,l=t.split(i),c=0,u=1,p=0,d=null;return e.eachMapping((function(t){if(null!==d){if(!(u<t.generatedLine)){var e=(n=l[c]||"").substr(0,t.generatedColumn-p);return l[c]=n.substr(t.generatedColumn-p),p=t.generatedColumn,f(d,e),void(d=t)}f(d,r()),u++,p=0}for(;u<t.generatedLine;)a.add(r()),u++;var n;p<t.generatedColumn&&(n=l[c]||"",a.add(n.substr(0,t.generatedColumn)),l[c]=n.substr(t.generatedColumn),p=t.generatedColumn),d=t}),this),c<l.length&&(d&&f(d,r()),a.add(l.splice(c).join(""))),e.sources.forEach((function(t){var r=e.sourceContentFor(t);null!=r&&(null!=n&&(t=o.join(n,t)),a.setSourceContent(t,r))})),a;function f(t,e){var r;null===t||void 0===t.source?a.add(e):(r=n?o.join(n,t.source):t.source,a.add(new s(t.originalLine,t.originalColumn,r,e,t.name)))}},s.prototype.add=function(t){if(Array.isArray(t))t.forEach((function(t){this.add(t)}),this);else{if(!t[a]&&"string"!=typeof t)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);t&&this.children.push(t)}return this},s.prototype.prepend=function(t){if(Array.isArray(t))for(var e=t.length-1;0<=e;e--)this.prepend(t[e]);else{if(!t[a]&&"string"!=typeof t)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);this.children.unshift(t)}return this},s.prototype.walk=function(t){for(var e,n=0,r=this.children.length;n<r;n++)(e=this.children[n])[a]?e.walk(t):""!==e&&t(e,{source:this.source,line:this.line,column:this.column,name:this.name})},s.prototype.join=function(t){var e,n,r=this.children.length;if(0<r){for(e=[],n=0;n<r-1;n++)e.push(this.children[n]),e.push(t);e.push(this.children[n]),this.children=e}return this},s.prototype.replaceRight=function(t,e){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(t,e):"string"==typeof n?this.children[this.children.length-1]=n.replace(t,e):this.children.push("".replace(t,e)),this},s.prototype.setSourceContent=function(t,e){this.sourceContents[o.toSetString(t)]=e},s.prototype.walkSourceContents=function(t){for(var e=0,n=this.children.length;e<n;e++)this.children[e][a]&&this.children[e].walkSourceContents(t);var r=Object.keys(this.sourceContents);for(e=0,n=r.length;e<n;e++)t(o.fromSetString(r[e]),this.sourceContents[r[e]])},s.prototype.toString=function(){var t="";return this.walk((function(e){t+=e})),t},s.prototype.toStringWithSourceMap=function(t){var e={code:"",line:1,column:0},n=new r(t),o=!1,i=null,a=null,s=null,l=null;return this.walk((function(t,r){e.code+=t,null!==r.source&&null!==r.line&&null!==r.column?(i===r.source&&a===r.line&&s===r.column&&l===r.name||n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:e.line,column:e.column},name:r.name}),i=r.source,a=r.line,s=r.column,l=r.name,o=!0):o&&(n.addMapping({generated:{line:e.line,column:e.column}}),i=null,o=!1);for(var c=0,u=t.length;c<u;c++)10===t.charCodeAt(c)?(e.line++,e.column=0,c+1===u?(i=null,o=!1):o&&n.addMapping({source:r.source,original:{line:r.line,column:r.column},generated:{line:e.line,column:e.column},name:r.name})):e.column++})),this.walkSourceContents((function(t,e){n.setSourceContent(t,e)})),{code:e.code,map:n}},e.SourceNode=s},function(t,e,n){(function(e,r){function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=n(63),a=n(21),s=n(425),l=n(205),c=n(129),u=n(428),p=n(429),d=n(430),f=n(203),h=n(204),g=n(206),m=n(432),v=n(10),y=n(15),b=n(88),_=n(207),w=n(64);function E(t,e,n){return e.source=void 0,e.sourcesContent[void 0]=t,e.stats.originalSize+=t.length,A(t,e,{inline:e.options.inline},n)}function x(t,e,n){var r,o,i;for(r in t)i=t[r],o=C(r),n.push(T(o)),e.sourcesContent[o]=i.styles,i.sourceMap&&function(t,e,n){t="string"==typeof t?JSON.parse(t):t,t=w(e)?h(t,e):f(t,e||"uri:unknown",n.options.rebaseTo),n.inputSourceMapTracker.track(e,t)}(i.sourceMap,o,e);return n}function C(t){var e=a.resolve("");return w(t)?t:(t=a.isAbsolute(t)?t:a.resolve(t),t=a.relative(e,t),p(t))}function T(t){return g("url("+t+")","")+y.SEMICOLON}function A(t,e,n,o){var s={};return e.source?w(e.source)?(s.fromBase=e.source,s.toBase=e.source):(a.isAbsolute(e.source)?s.fromBase=a.dirname(e.source):s.fromBase=a.dirname(a.resolve(e.source)),s.toBase=e.options.rebaseTo):(s.fromBase=a.resolve(""),s.toBase=e.options.rebaseTo),t=m(t,e),t=d(t,e.options.rebase,e.validator,s),function(t){return 1!=t.length||"none"!=t[0]}(n.inline)?function(t,e,n,o){return function t(e){for(var n,o=0,s=e.sourceTokens.length;o<s;o++){if((n=e.sourceTokens[o])[0]==v.AT_RULE&&_(n[1]))return e.sourceTokens.splice(0,o),function(e,n){var o=(s=l(e[1]))[0],s=s[1];return e=e[2],(w(o)?function(e,n,o,i){var a=c(e,!0,i.inline),s=e,l=e in i.externalContext.sourcesContent,u=!b(e);return-1<i.inlinedStylesheets.indexOf(e)?(i.warnings.push('Ignoring remote @import of "'+e+'" as it has already been imported.'),i.sourceTokens=i.sourceTokens.slice(1),t(i)):i.localOnly&&i.afterContent?(i.warnings.push('Ignoring remote @import of "'+e+'" as no callback given and after other content.'),i.sourceTokens=i.sourceTokens.slice(1),t(i)):u?(i.warnings.push('Skipping remote @import of "'+e+'" as no protocol given.'),i.outputTokens=i.outputTokens.concat(i.sourceTokens.slice(0,1)),i.sourceTokens=i.sourceTokens.slice(1),t(i)):i.localOnly&&!l?(i.warnings.push('Skipping remote @import of "'+e+'" as no callback given.'),i.outputTokens=i.outputTokens.concat(i.sourceTokens.slice(0,1)),i.sourceTokens=i.sourceTokens.slice(1),t(i)):!a&&i.afterContent?(i.warnings.push('Ignoring remote @import of "'+e+'" as resource is not allowed and after other content.'),i.sourceTokens=i.sourceTokens.slice(1),t(i)):a?(i.inlinedStylesheets.push(e),l?p(null,i.externalContext.sourcesContent[e]):i.fetch(e,i.inlineRequest,i.inlineTimeout,p)):(i.warnings.push('Skipping remote @import of "'+e+'" as resource is not allowed.'),i.outputTokens=i.outputTokens.concat(i.sourceTokens.slice(0,1)),i.sourceTokens=i.sourceTokens.slice(1),t(i));function p(a,l){return a?(i.errors.push('Broken @import declaration of "'+e+'" - '+a),r.nextTick((function(){i.outputTokens=i.outputTokens.concat(i.sourceTokens.slice(0,1)),i.sourceTokens=i.sourceTokens.slice(1),t(i)}))):(i.inline=i.externalContext.options.inline,i.isRemote=!0,i.externalContext.source=s,i.externalContext.sourcesContent[e]=l,i.externalContext.stats.originalSize+=l.length,A(l,i.externalContext,i,(function(e){return e=O(e,n,o),i.outputTokens=i.outputTokens.concat(e),i.sourceTokens=i.sourceTokens.slice(1),t(i)})))}}:function(e,n,r,o){var s=a.resolve(""),l=a.isAbsolute(e)?a.resolve(s,"/"==e[0]?e.substring(1):e):a.resolve(o.rebaseTo,e),u=a.relative(s,l),d=c(e,!1,o.inline);if(u=(s=p(u))in o.externalContext.sourcesContent,-1<o.inlinedStylesheets.indexOf(l))o.warnings.push('Ignoring local @import of "'+e+'" as it has already been imported.');else if(u||i.existsSync(l)&&i.statSync(l).isFile())if(!d&&o.afterContent)o.warnings.push('Ignoring local @import of "'+e+'" as resource is not allowed and after other content.');else if(o.afterContent)o.warnings.push('Ignoring local @import of "'+e+'" as after other content.');else{if(d)return u=u?o.externalContext.sourcesContent[s]:i.readFileSync(l,"utf-8"),o.inlinedStylesheets.push(l),o.inline=o.externalContext.options.inline,o.externalContext.source=s,o.externalContext.sourcesContent[s]=u,o.externalContext.stats.originalSize+=u.length,A(u,o.externalContext,o,(function(e){return e=O(e,n,r),o.outputTokens=o.outputTokens.concat(e),o.sourceTokens=o.sourceTokens.slice(1),t(o)}));o.warnings.push('Skipping local @import of "'+e+'" as resource is not allowed.'),o.outputTokens=o.outputTokens.concat(o.sourceTokens.slice(0,1))}else o.errors.push('Ignoring local @import of "'+e+'" as resource is missing.');return o.sourceTokens=o.sourceTokens.slice(1),t(o)})(o,s,e,n)}(n,e);n[0]==v.AT_RULE||n[0]==v.COMMENT?e.outputTokens.push(n):(e.outputTokens.push(n),e.afterContent=!0)}return e.sourceTokens=[],e.callback(e.outputTokens)}({afterContent:!1,callback:o,errors:e.errors,externalContext:e,fetch:e.options.fetch,inlinedStylesheets:n.inlinedStylesheets||e.inlinedStylesheets,inline:n.inline,inlineRequest:e.options.inlineRequest,inlineTimeout:e.options.inlineTimeout,isRemote:n.isRemote||!1,localOnly:e.localOnly,outputTokens:[],rebaseTo:e.options.rebaseTo,sourceTokens:t,warnings:e.warnings})}(t,e,n,o):o(t)}function O(t,e,n){return e?[[v.NESTED_BLOCK,[[v.NESTED_BLOCK_SCOPE,"@media "+e,n]],t]]:t}t.exports=function(t,n,r){return function(t,n,r){return"string"==typeof t?E(t,n,r):e.isBuffer(t)?E(t.toString(),n,r):Array.isArray(t)?function(t,e,n){return A(t.reduce((function(t,n){return"string"==typeof n?function(t,e){return e.push(T(C(t))),e}(n,t):x(n,e,t)}),[]).join(""),e,{inline:["all"]},n)}(t,n,r):"object"==o(t)?function(t,e,n){return A(x(t,e,[]).join(""),e,{inline:["all"]},n)}(t,n,r):void 0}(t,n,(function(t){return s(t,n,(function(){return u(n,(function(){return r(t)}))}))}))}}).call(this,n(22).Buffer,n(14))},function(t,e,n){(function(e,r){var o=n(63),i=n(21),a=n(129),s=n(426),l=n(203),c=n(204),u=n(10),p=n(88),d=n(427),f=n(64),h=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function g(t){return(t=(t[0]==u.AT_RULE||t[0]==u.COMMENT?t:t[1][0])[2][0])[2]}function m(t,e){for(var n=t[1],r=t[2],o=[],i=0,a=r.length;i<a;i++)o.push(e.originalPositionFor(r[i],n.length));t[2]=o}t.exports=function(t,n,v){var y={callback:v,fetch:n.options.fetch,index:0,inline:n.options.inline,inlineRequest:n.options.inlineRequest,inlineTimeout:n.options.inlineTimeout,inputSourceMapTracker:n.inputSourceMapTracker,localOnly:n.localOnly,processedTokens:[],rebaseTo:n.options.rebaseTo,sourceTokens:t,warnings:n.warnings};return n.options.sourceMap&&0<t.length?function t(n){for(var v,y,b=[],_=g(n.sourceTokens[0]),w=n.sourceTokens.length;n.index<w;n.index++)if((v=g(y=n.sourceTokens[n.index]))!=_&&(b=[],_=v),b.push(y),n.processedTokens.push(y),y[0]==u.COMMENT&&h.test(y[1]))return function(n,g,v,y){return function(t,n,u){var g,m,v=h.exec(t)[1];return d(v)?(g=function(t){var n=(o=s(t))[2]?o[2].split(/[=;]/)[2]:"us-ascii",o="utf8"==(t=o[3]?o[3].split(";")[1]:"utf8")?e.unescape(o[4]):o[4];return(t=new r(o,t)).charset=n,JSON.parse(t.toString())}(v),u(g)):f(v)?function(t,e,n){var r=a(t,!0,e.inline),o=!p(t);return e.localOnly?(e.warnings.push('Cannot fetch remote resource from "'+t+'" as no callback given.'),n(null)):o?(e.warnings.push('Cannot fetch "'+t+'" as no protocol given.'),n(null)):r?void e.fetch(t,e.inlineRequest,e.inlineTimeout,(function(r,o){return r?(e.warnings.push('Missing source map at "'+t+'" - '+r),n(null)):void n(o)})):(e.warnings.push('Cannot fetch "'+t+'" as resource is not allowed.'),n(null))}(v,n,(function(t){t?(t=JSON.parse(t),m=c(t,v),u(m)):u(null)})):(g=function(t,e){var n=a(t,!1,e.inline);return o.existsSync(t)&&o.statSync(t).isFile()?n?(t=o.readFileSync(t,"utf-8"),JSON.parse(t)):(e.warnings.push('Cannot fetch "'+t+'" as resource is not allowed.'),null):(e.warnings.push('Ignoring local source map at "'+t+'" as resource is missing.'),null)}(t=i.resolve(n.rebaseTo,v),n))?(m=l(g,t,n.rebaseTo),u(m)):u(null)}(n,y,(function(e){return e&&(y.inputSourceMapTracker.track(g,e),function t(e,n){for(var r,o=0,i=e.length;o<i;o++)switch((r=e[o])[0]){case u.AT_RULE:m(r,n);break;case u.AT_RULE_BLOCK:t(r[1],n),t(r[2],n);break;case u.AT_RULE_BLOCK_SCOPE:m(r,n);break;case u.NESTED_BLOCK:t(r[1],n),t(r[2],n);break;case u.NESTED_BLOCK_SCOPE:case u.COMMENT:m(r,n);break;case u.PROPERTY:t(r,n);break;case u.PROPERTY_BLOCK:t(r[1],n);break;case u.PROPERTY_NAME:case u.PROPERTY_VALUE:m(r,n);break;case u.RULE:t(r[1],n),t(r[2],n);break;case u.RULE_SCOPE:m(r,n)}return e}(v,y.inputSourceMapTracker)),y.index++,t(y)}))}(y[1],v,b,n);return n.callback(n.processedTokens)}(y):v(t)}}).call(this,n(17),n(22).Buffer)},function(t,e){var n=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=function(t){return n.exec(t)}},function(t,e){var n=/^data:(\S*?)?(;charset=[^;]+)?(;[^,]+?)?,(.+)/;t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(63),o=n(21),i=n(129),a=n(88),s=n(64);t.exports=function(t,e){var n={callback:e,fetch:t.options.fetch,index:0,inline:t.options.inline,inlineRequest:t.options.inlineRequest,inlineTimeout:t.options.inlineTimeout,localOnly:t.localOnly,rebaseTo:t.options.rebaseTo,sourcesContent:t.sourcesContent,uriToSource:function(t){var e,n,r,o,i,a={};for(r in t)for(o=0,i=(e=t[r]).sources.length;o<i;o++)n=e.sources[o],r=e.sourceContentFor(n,!0),a[n]=r;return a}(t.inputSourceMapTracker.all()),warnings:t.warnings};return t.options.sourceMap&&t.options.sourceMapInlineSources?function t(e){for(var n,l,c=Object.keys(e.uriToSource),u=c.length;e.index<u;e.index++){if(n=c[e.index],!(l=e.uriToSource[n]))return function(e,n){var l;return s(e)?function(t,e,n){var r=i(t,!0,e.inline),o=!a(t);return e.localOnly?(e.warnings.push('Cannot fetch remote resource from "'+t+'" as no callback given.'),n(null)):o?(e.warnings.push('Cannot fetch "'+t+'" as no protocol given.'),n(null)):r?void e.fetch(t,e.inlineRequest,e.inlineTimeout,(function(r,o){r&&e.warnings.push('Missing original source at "'+t+'" - '+r),n(o)})):(e.warnings.push('Cannot fetch "'+t+'" as resource is not allowed.'),n(null))}(e,n,(function(r){return n.index++,n.sourcesContent[e]=r,t(n)})):(l=function(t,e){var n=i(t,!1,e.inline);return t=o.resolve(e.rebaseTo,t),r.existsSync(t)&&r.statSync(t).isFile()?n?r.readFileSync(t,"utf8"):(e.warnings.push('Cannot fetch "'+t+'" as resource is not allowed.'),null):(e.warnings.push('Ignoring local source map at "'+t+'" as resource is missing.'),null)}(e,n),n.index++,n.sourcesContent[e]=l,t(n))}(n,e);e.sourcesContent[n]=l}return e.callback()}(n):e()}},function(t,e){var n=/\\/g;t.exports=function(t){return t.replace(n,"/")}},function(t,e,n){var r=n(205),o=n(206),i=n(431),a=n(10),s=n(207),l=/^\/\*# sourceMappingURL=(\S+) \*\/$/;function c(t,e,n){var a;s(t[1])&&(a=r(t[1]),n=i(a[0],n),a=a[1],t[1]=o(n,a))}function u(t,e,n){for(var r,o,a,s,l=0,c=t.length;l<c;l++)for(a=2,s=(r=t[l]).length;a<s;a++)o=r[a][1],e.isUrl(o)&&(r[a][1]=i(o,n))}t.exports=function(t,e,n,r){return(e?function t(e,n,r){for(var o,s=0,p=e.length;s<p;s++)switch((o=e[s])[0]){case a.AT_RULE:c(o,0,r);break;case a.AT_RULE_BLOCK:u(o[2],n,r);break;case a.COMMENT:!function(t,e){var n=l.exec(t[1]);n&&-1===n[1].indexOf("data:")&&(t[1]=t[1].replace(n[1],i(n[1],e,!0)))}(o,r);break;case a.NESTED_BLOCK:t(o[2],n,r);break;case a.RULE:u(o[2],n,r)}return e}:function(t,e,n){for(var r,o=0,i=t.length;o<i;o++)(r=t[o])[0]===a.AT_RULE&&c(r,0,n);return t})(t,n,r)}},function(t,e,n){(function(e){var r=n(21),o=n(26),i=/^["']/,a=/["']$/,s=/[\(\)]/,l=/^url\(/i,c=/\)$/,u=/\s/,p="win32"==e.platform;function d(t,e){return!e||function(t){return r.isAbsolute(t)}(t)&&!f(e.toBase)||f(t)||function(t){return"#"==t[0]}(t)||function(t){return/^\w+:\w+/.test(t)}(t)?t:function(t){return 0===t.indexOf("data:")}(t)?"'"+t+"'":f(e.toBase)?o.resolve(e.toBase,t):e.absolute?h(function(t,e){return r.resolve(r.join(e.fromBase||"",t)).replace(e.toBase,"")}(t,e)):h(function(t,e){return r.relative(e.toBase,r.join(e.fromBase||"",t))}(t,e))}function f(t){return/^[^:]+?:\/\//.test(t)||0===t.indexOf("//")}function h(t){return p?t.replace(/\\/g,"/"):t}t.exports=function(t,e,n){t=(r=t.replace(l,"").replace(c,"").trim()).replace(i,"").replace(a,"").trim();var r="'"==r[0]||'"'==r[0]?r[0]:function(t){return-1<t.indexOf("'")?'"':-1<t.indexOf('"')||function(t){return u.test(t)}(t)||function(t){return s.test(t)}(t)?"'":""}(t);return n?d(t,e):"url("+r+d(t,e)+r+")"}}).call(this,n(14))},function(t,e,n){var r=n(15),o=n(10),i=n(81),a="block",s="comment",l="double-quote",c="rule",u="single-quote",p=["@charset","@import"],d=["@-moz-document","@document","@-moz-keyframes","@-ms-keyframes","@-o-keyframes","@-webkit-keyframes","@keyframes","@media","@supports"],f=/\/\* clean\-css ignore:end \*\/$/,h=/^\/\* clean\-css ignore:start \*\//,g=["@bottom-center","@bottom-left","@bottom-left-corner","@bottom-right","@bottom-right-corner","@left-bottom","@left-middle","@left-top","@right-bottom","@right-middle","@right-top","@top-center","@top-left","@top-left-corner","@top-right","@top-right-corner"],m=["@footnote","@footnotes","@left","@page-float-bottom","@page-float-top","@right"],v=/^\[\s{0,31}\d+\s{0,31}\]$/,y=/[\s\(]/,b=/[\s|\}]*$/;function _(t,e,n,r){var o=t[2];return n.inputSourceMapTracker.isTracking(o)?n.inputSourceMapTracker.originalPositionFor(t,e.length,r):t}function w(t){var e=t[0]==r.AT||t[0]==r.UNDERSCORE;return t=t.join("").split(y)[0],e&&-1<d.indexOf(t)?o.NESTED_BLOCK:e&&-1<p.indexOf(t)?o.AT_RULE:e?o.AT_RULE_BLOCK:o.RULE}function E(t){return t==o.RULE?o.RULE_SCOPE:t==o.NESTED_BLOCK?o.NESTED_BLOCK_SCOPE:t==o.AT_RULE_BLOCK?o.AT_RULE_BLOCK_SCOPE:void 0}t.exports=function(t,e){return function t(e,n,p,d){for(var y,x,C,T,A,O,S,k=[],P=k,j=[],N=[],L=p.level,D=[],I=[],R=[],M=0,B=!1,F=!1,U=!1,H=!1,V=!1,q=p.position;q.index<e.length;q.index++){var z=e[q.index],W=L==u||L==l,G=z==r.SPACE||z==r.TAB,Y=z==r.NEW_LINE_NIX,K=z==r.NEW_LINE_NIX&&e[q.index-1]==r.CARRIAGE_RETURN,$=z==r.CARRIAGE_RETURN&&e[q.index+1]&&e[q.index+1]!=r.NEW_LINE_NIX,X=!F&&L!=s&&!W&&z==r.ASTERISK&&e[q.index-1]==r.FORWARD_SLASH,Z=!B&&!W&&z==r.FORWARD_SLASH&&e[q.index-1]==r.ASTERISK,Q=L==s&&Z,J=(M=Math.max(M,0),0===I.length?[q.line,q.column,q.source]:J);if(O)I.push(z);else if(Q||L!=s)if(X||Q||!U)if(X&&(L==a||L==c)&&1<I.length)N.push(J),I.push(z),R.push(I.slice(0,I.length-2)),I=I.slice(I.length-2),J=[q.line,q.column-1,q.source],D.push(L),L=s;else if(X)D.push(L),L=s,I.push(z);else if(Q&&function(t){return h.test(t.join("")+r.FORWARD_SLASH)}(I))T=I.join("").trim()+z,y=[o.COMMENT,T,[_(J,T,n)]],P.push(y),U=!0,J=N.pop()||null,I=R.pop()||[];else if(Q&&function(t){return f.test(t.join("")+r.FORWARD_SLASH)}(I))S=(T=I.join("")+z).lastIndexOf(r.FORWARD_SLASH+r.ASTERISK),A=T.substring(0,S),y=[o.RAW,A,[_(J,A,n)]],P.push(y),A=T.substring(S),J=[q.line,q.column-A.length+1,q.source],y=[o.COMMENT,A,[_(J,A,n)]],P.push(y),U=!1,L=D.pop(),J=N.pop()||null,I=R.pop()||[];else if(Q)T=I.join("").trim()+z,y=[o.COMMENT,T,[_(J,T,n)]],P.push(y),L=D.pop(),J=N.pop()||null,I=R.pop()||[];else if(Z&&e[q.index+1]!=r.ASTERISK)n.warnings.push("Unexpected '*/' at "+i([q.line,q.column,q.source])+"."),I=[];else if(z!=r.SINGLE_QUOTE||W)if(z==r.SINGLE_QUOTE&&L==u)L=D.pop(),I.push(z);else if(z!=r.DOUBLE_QUOTE||W)if(z==r.DOUBLE_QUOTE&&L==l)L=D.pop(),I.push(z);else if(!X&&!Q&&z!=r.CLOSE_ROUND_BRACKET&&z!=r.OPEN_ROUND_BRACKET&&L!=s&&!W&&0<M)I.push(z);else if(z!=r.OPEN_ROUND_BRACKET||W||L==s||H)if(z!=r.CLOSE_ROUND_BRACKET||W||L==s||H)if(z==r.SEMICOLON&&L==a&&I[0]==r.AT)T=I.join("").trim(),k.push([o.AT_RULE,T,[_(J,T,n)]]),I=[];else if(z==r.COMMA&&L==a&&x)T=I.join("").trim(),x[1].push([E(x[0]),T,[_(J,T,n,x[1].length)]]),I=[];else if(z==r.COMMA&&L==a&&w(I)==o.AT_RULE)I.push(z);else if(z==r.COMMA&&L==a)x=[w(I),[],[]],T=I.join("").trim(),x[1].push([E(x[0]),T,[_(J,T,n,0)]]),I=[];else if(z==r.OPEN_CURLY_BRACKET&&L==a&&x&&x[0]==o.NESTED_BLOCK)T=I.join("").trim(),x[1].push([o.NESTED_BLOCK_SCOPE,T,[_(J,T,n)]]),k.push(x),D.push(L),q.column++,q.index++,I=[],x[2]=t(e,n,p,!0),x=null;else if(z==r.OPEN_CURLY_BRACKET&&L==a&&w(I)==o.NESTED_BLOCK)T=I.join("").trim(),(x=x||[o.NESTED_BLOCK,[],[]])[1].push([o.NESTED_BLOCK_SCOPE,T,[_(J,T,n)]]),k.push(x),D.push(L),q.column++,q.index++,I=[],x[2]=t(e,n,p,!0),x=null;else if(z==r.OPEN_CURLY_BRACKET&&L==a)T=I.join("").trim(),(x=x||[w(I),[],[]])[1].push([E(x[0]),T,[_(J,T,n,x[1].length)]]),P=x[2],k.push(x),D.push(L),L=c,I=[];else if(z==r.OPEN_CURLY_BRACKET&&L==c&&H)j.push(x),x=[o.PROPERTY_BLOCK,[]],C.push(x),P=x[1],D.push(L),L=c,H=!1;else if(z==r.OPEN_CURLY_BRACKET&&L==c&&function(t){return t=t.join("").trim(),-1<g.indexOf(t)||-1<m.indexOf(t)}(I))T=I.join("").trim(),j.push(x),(x=[o.AT_RULE_BLOCK,[],[]])[1].push([o.AT_RULE_BLOCK_SCOPE,T,[_(J,T,n)]]),P.push(x),P=x[2],D.push(L),L=c,I=[];else if(z!=r.COLON||L!=c||H){if(z==r.SEMICOLON&&L==c&&C&&0<j.length&&0<I.length&&I[0]==r.AT)T=I.join("").trim(),x[1].push([o.AT_RULE,T,[_(J,T,n)]]),I=[];else if(z==r.SEMICOLON&&L==c&&C&&0<I.length)T=I.join("").trim(),C.push([o.PROPERTY_VALUE,T,[_(J,T,n)]]),C=null,H=!1,I=[];else if(z==r.SEMICOLON&&L==c&&C&&0===I.length)C=null,H=!1;else if(z==r.SEMICOLON&&L==c&&0<I.length&&I[0]==r.AT)T=I.join(""),P.push([o.AT_RULE,T,[_(J,T,n)]]),H=!1,I=[];else if(z==r.SEMICOLON&&L==c&&V)V=!1,I=[];else if(z!=r.SEMICOLON||L!=c||0!==I.length)if(z==r.CLOSE_CURLY_BRACKET&&L==c&&C&&H&&0<I.length&&0<j.length)T=I.join(""),C.push([o.PROPERTY_VALUE,T,[_(J,T,n)]]),C=null,P=(x=j.pop())[2],L=D.pop(),H=!1,I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&C&&0<I.length&&I[0]==r.AT&&0<j.length)T=I.join(""),x[1].push([o.AT_RULE,T,[_(J,T,n)]]),C=null,P=(x=j.pop())[2],L=D.pop(),H=!1,I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&C&&0<j.length)C=null,P=(x=j.pop())[2],L=D.pop(),H=!1;else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&C&&0<I.length)T=I.join(""),C.push([o.PROPERTY_VALUE,T,[_(J,T,n)]]),C=null,x=j.pop(),P=k,L=D.pop(),H=!1,I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&0<I.length&&I[0]==r.AT)x=C=null,T=I.join("").trim(),P.push([o.AT_RULE,T,[_(J,T,n)]]),P=k,L=D.pop(),H=!1,I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c&&D[D.length-1]==c)C=null,P=(x=j.pop())[2],L=D.pop(),V=!(H=!1),I=[];else if(z==r.CLOSE_CURLY_BRACKET&&L==c)x=C=null,P=k,L=D.pop(),H=!1;else if(z==r.CLOSE_CURLY_BRACKET&&L==a&&!d&&q.index<=e.length-1)n.warnings.push("Unexpected '}' at "+i([q.line,q.column,q.source])+"."),I.push(z);else{if(z==r.CLOSE_CURLY_BRACKET&&L==a)break;z==r.OPEN_ROUND_BRACKET&&L==c&&H?(I.push(z),M++):z==r.CLOSE_ROUND_BRACKET&&L==c&&H&&1==M?(I.push(z),T=I.join("").trim(),C.push([o.PROPERTY_VALUE,T,[_(J,T,n)]]),M--,I=[]):z==r.CLOSE_ROUND_BRACKET&&L==c&&H?(I.push(z),M--):z==r.FORWARD_SLASH&&e[q.index+1]!=r.ASTERISK&&L==c&&H&&0<I.length?(T=I.join("").trim(),C.push([o.PROPERTY_VALUE,T,[_(J,T,n)]]),C.push([o.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),I=[]):z==r.FORWARD_SLASH&&e[q.index+1]!=r.ASTERISK&&L==c&&H?(C.push([o.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),I=[]):z==r.COMMA&&L==c&&H&&0<I.length?(T=I.join("").trim(),C.push([o.PROPERTY_VALUE,T,[_(J,T,n)]]),C.push([o.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),I=[]):z==r.COMMA&&L==c&&H?(C.push([o.PROPERTY_VALUE,z,[[q.line,q.column,q.source]]]),I=[]):z==r.CLOSE_SQUARE_BRACKET&&C&&1<C.length&&0<I.length&&function(t){return v.test(t.join("")+r.CLOSE_SQUARE_BRACKET)}(I)?(I.push(z),T=I.join("").trim(),C[C.length-1][1]+=T,I=[]):(G||Y&&!K)&&L==c&&H&&C&&0<I.length||K&&L==c&&H&&C&&1<I.length?(T=I.join("").trim(),C.push([o.PROPERTY_VALUE,T,[_(J,T,n)]]),I=[]):K&&L==c&&H?I=[]:1==I.length&&K?I.pop():!(0<I.length)&&(G||Y||K||$)||I.push(z)}}else T=I.join("").trim(),C=[o.PROPERTY,[o.PROPERTY_NAME,T,[_(J,T,n)]]],P.push(C),H=!0,I=[];else I.push(z),M--;else I.push(z),M++;else D.push(L),L=l,I.push(z);else D.push(L),L=u,I.push(z);else I.push(z);else I.push(z);O=!O&&z==r.BACK_SLASH,B=X,F=Q,q.line=K||Y||$?q.line+1:q.line,q.column=K||Y||$?0:q.column+1}return H&&n.warnings.push("Missing '}' at "+i([q.line,q.column,q.source])+"."),H&&0<I.length&&(T=I.join("").replace(b,""),C.push([o.PROPERTY_VALUE,T,[_(J,T,n)]]),I=[]),0<I.length&&n.warnings.push("Invalid character(s) '"+I.join("")+"' at "+i(J)+". Ignoring."),k}(t,e,{level:a,position:{source:e.source||void 0,line:1,column:0,index:0}},!1)}},function(t,e,n){var r=n(124).all;function o(t,e){e="string"==typeof e?e:e[1],(0,t.wrap)(t,e),a(t,e),t.output.push(e)}function i(t,e){t.column+e.length>t.format.wrapAt&&(a(t,t.format.breakWith),t.output.push(t.format.breakWith))}function a(t,e){e=e.split("\n"),t.line+=e.length-1,t.column=1<e.length?0:t.column+e.pop().length}t.exports=function(t,e){return e={column:0,format:e.options.format,indentBy:0,indentWith:"",line:1,output:[],spaceAfterClosingBrace:e.options.compatibility.properties.spaceAfterClosingBrace,store:o,wrap:e.options.format.wrapAt?i:function(){}},r(e,t),{styles:e.output.join("")}}},function(t,e,n){(function(e){var r=n(199).SourceMapGenerator,o=n(124).all,i=n(64),a="win32"==e.platform,s=/\//g;function l(t,e){var n="string"==typeof e,r=n?e:e[1];e=n?null:e[2],(0,t.wrap)(t,r),u(t,r,e),t.output.push(r)}function c(t,e){t.column+e.length>t.format.wrapAt&&(u(t,t.format.breakWith,!1),t.output.push(t.format.breakWith))}function u(t,e,n){e=e.split("\n"),n&&function(t,e){for(var n=0,r=e.length;n<r;n++)!function(t,e){var n=e[0],r=e[1],o=e[2],l=o;e=l||"$stdin",a&&l&&!i(l)&&(e=l.replace(s,"\\")),t.outputMap.addMapping({generated:{line:t.line,column:t.column},source:e,original:{line:n,column:r}}),t.inlineSources&&o in t.sourcesContent&&t.outputMap.setSourceContent(e,t.sourcesContent[o])}(t,e[n])}(t,n),t.line+=e.length-1,t.column=1<e.length?0:t.column+e.pop().length}t.exports=function(t,e){return e={column:0,format:e.options.format,indentBy:0,indentWith:"",inlineSources:e.options.sourceMapInlineSources,line:1,output:[],outputMap:new r,sourcesContent:e.sourcesContent,spaceAfterClosingBrace:e.options.compatibility.properties.spaceAfterClosingBrace,store:l,wrap:e.options.format.wrapAt?c:function(){}},o(e,t),{sourceMap:e.outputMap,styles:e.output.join("")}}}).call(this,n(14))},function(t,e,n){(function(t,r){var o;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(a){var s="object"==i(e)&&e,l="object"==i(t)&&t&&t.exports==s&&t,c="object"==(void 0===r?"undefined":i(r))&&r;function u(t,e){return j.call(t,e)}function p(t,e){if(!t)return e;var n,r={};for(n in e)r[n]=(u(t,n)?t:e)[n];return r}function d(t,e){var n="";return 55296<=t&&t<=57343||1114111<t?(e&&N("character reference outside the permissible Unicode range"),"�"):u(S,t)?(e&&N("disallowed character reference"),S[t]):(e&&function(t,e){for(var n=-1,r=t.length;++n<r;)if(t[n]==e)return 1}(k,t)&&N("disallowed character reference"),65535<t&&(n+=P((t-=65536)>>>10&1023|55296),t=56320|1023&t),n+P(t))}function f(t){return"&#x"+t.toString(16).toUpperCase()+";"}function h(t){return"&#"+t+";"}function g(t,e){function n(t){return a(t.charCodeAt(0))}(e=p(e,g.options)).strict&&C.test(t)&&N("forbidden code point");var r=e.encodeEverything,o=e.useNamedReferences,i=e.allowUnsafeSymbols,a=e.decimal?h:f;return r?(t=t.replace(v,(function(t){return o&&u(_,t)?"&"+_[t]+";":n(t)})),o&&(t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),o&&(t=t.replace(b,(function(t){return"&"+_[t]+";"})))):o?t=(t=(t=i?t:t.replace(w,(function(t){return"&"+_[t]+";"}))).replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(b,(function(t){return"&"+_[t]+";"})):i||(t=t.replace(w,n)),t.replace(m,(function(t){var e=t.charCodeAt(0);return t=t.charCodeAt(1),a(1024*(e-55296)+t-56320+65536)})).replace(y,n)}c.global!==c&&c.window!==c||(a=c);var m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,v=/[\x01-\x7F]/g,y=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,b=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,_={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","°":"deg","©":"copy","®":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78",𝒶:"ascr",𝕒:"aopf",𝔞:"afr",𝔸:"Aopf",𝔄:"Afr",𝒜:"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig",𝒷:"bscr",𝕓:"bopf",𝔟:"bfr",𝔹:"Bopf",ℬ:"Bscr",𝔅:"Bfr",𝔠:"cfr",𝒸:"cscr",𝕔:"copf",ℭ:"Cfr",𝒞:"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare",𝔡:"dfr",ⅆ:"dd",𝕕:"dopf",𝒹:"dscr",𝒟:"Dscr",𝔇:"Dfr",ⅅ:"DD",𝔻:"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr",𝔢:"efr",𝕖:"eopf",ℰ:"Escr",𝔈:"Efr",𝔼:"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr",𝔣:"ffr",𝕗:"fopf",𝒻:"fscr",𝔉:"Ffr",𝔽:"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr",𝕘:"gopf",𝔤:"gfr",𝒢:"Gscr",𝔾:"Gopf",𝔊:"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil",𝔥:"hfr",ℎ:"planckh",𝒽:"hscr",𝕙:"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok",𝕚:"iopf",𝔦:"ifr",𝒾:"iscr",ⅈ:"ii",𝕀:"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath",𝒿:"jscr",𝕛:"jopf",𝔧:"jfr",𝒥:"Jscr",𝔍:"Jfr",𝕁:"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath",𝕜:"kopf",𝓀:"kscr",𝔨:"kfr",𝒦:"Kscr",𝕂:"Kopf",𝔎:"Kfr",ķ:"kcedil",Ķ:"Kcedil",𝔩:"lfr",𝓁:"lscr",ℓ:"ell",𝕝:"lopf",ℒ:"Lscr",𝔏:"Lfr",𝕃:"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot",𝔪:"mfr",𝕞:"mopf",𝓂:"mscr",𝔐:"Mfr",𝕄:"Mopf",ℳ:"Mscr",𝔫:"nfr",𝕟:"nopf",𝓃:"nscr",ℕ:"Nopf",𝒩:"Nscr",𝔑:"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG",𝕠:"oopf",𝔬:"ofr",ℴ:"oscr",𝒪:"Oscr",𝔒:"Ofr",𝕆:"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig",𝔭:"pfr",𝓅:"pscr",𝕡:"popf",ℙ:"Popf",𝔓:"Pfr",𝒫:"Pscr",𝕢:"qopf",𝔮:"qfr",𝓆:"qscr",𝒬:"Qscr",𝔔:"Qfr",ℚ:"Qopf",ĸ:"kgreen",𝔯:"rfr",𝕣:"ropf",𝓇:"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil",𝕤:"sopf",𝓈:"sscr",𝔰:"sfr",𝕊:"Sopf",𝔖:"Sfr",𝒮:"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig",𝔱:"tfr",𝓉:"tscr",𝕥:"topf",𝒯:"Tscr",𝔗:"Tfr",𝕋:"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok",𝓊:"uscr",𝕦:"uopf",𝔲:"ufr",𝕌:"Uopf",𝔘:"Ufr",𝒰:"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr",𝔳:"vfr",𝕧:"vopf",𝓋:"vscr",𝔙:"Vfr",𝕍:"Vopf",𝒱:"Vscr",𝕨:"wopf",𝓌:"wscr",𝔴:"wfr",𝒲:"Wscr",𝕎:"Wopf",𝔚:"Wfr",ŵ:"wcirc",Ŵ:"Wcirc",𝔵:"xfr",𝓍:"xscr",𝕩:"xopf",𝕏:"Xopf",𝔛:"Xfr",𝒳:"Xscr",𝔶:"yfr",𝓎:"yscr",𝕪:"yopf",𝒴:"Yscr",𝔜:"Yfr",𝕐:"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml",𝓏:"zscr",𝔷:"zfr",𝕫:"zopf",ℨ:"Zfr",ℤ:"Zopf",𝒵:"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},w=/["&'<>`]/g,E={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},x=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,C=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,T=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,A={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},O={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},S={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},k=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],P=String.fromCharCode,j={}.hasOwnProperty,N=function(t){throw Error("Parse error: "+t)};(c=function t(e,n){var r=(n=p(n,t.options)).strict;return r&&x.test(e)&&N("malformed character reference"),e.replace(T,(function(t,e,o,i,a,s,l,c,u){var p,f,h;return e?A[h=e]:o?(h=o,i&&n.isAttributeValue?(r&&"="==i&&N("`&` did not start a character reference"),t):(r&&N("named character reference was not terminated by a semicolon"),O[h]+(i||""))):a?(f=a,p=s,r&&!p&&N("character reference was not terminated by a semicolon"),d(f=parseInt(f,10),r)):l?(p=c,r&&!p&&N("character reference was not terminated by a semicolon"),d(f=parseInt(l,16),r)):(r&&N("named character reference was not terminated by a semicolon"),t)}))}).options={isAttributeValue:!(g.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1}),strict:!1};var L={version:"1.2.0",encode:g,decode:c,escape:function(t){return t.replace(w,(function(t){return E[t]}))},unescape:c};if("object"==i(n(87))&&n(87))void 0===(o=function(){return L}.call(e,n,e,t))||(t.exports=o);else if(s&&!s.nodeType)if(l)l.exports=L;else for(var D in L)u(L,D)&&(s[D]=L[D]);else a.he=L}(this)}).call(this,n(54)(t),n(17))},function(t,e,n){"use strict";var r=n(208).createMapFromString,o=/([^\s"'<>/=]+)/,i=[/=/],a=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^ \t\n\f\r"'`=<>]+)/.source],s=(n="((?:"+(n="["+(n="A-Za-z\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u0131\\u0134-\\u013E\\u0141-\\u0148\\u014A-\\u017E\\u0180-\\u01C3\\u01CD-\\u01F0\\u01F4\\u01F5\\u01FA-\\u0217\\u0250-\\u02A8\\u02BB-\\u02C1\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03CE\\u03D0-\\u03D6\\u03DA\\u03DC\\u03DE\\u03E0\\u03E2-\\u03F3\\u0401-\\u040C\\u040E-\\u044F\\u0451-\\u045C\\u045E-\\u0481\\u0490-\\u04C4\\u04C7\\u04C8\\u04CB\\u04CC\\u04D0-\\u04EB\\u04EE-\\u04F5\\u04F8\\u04F9\\u0531-\\u0556\\u0559\\u0561-\\u0586\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u063A\\u0641-\\u064A\\u0671-\\u06B7\\u06BA-\\u06BE\\u06C0-\\u06CE\\u06D0-\\u06D3\\u06D5\\u06E5\\u06E6\\u0905-\\u0939\\u093D\\u0958-\\u0961\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\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-\\u0A8B\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AE0\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B36-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB5\\u0BB7-\\u0BB9\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D60\\u0D61\\u0E01-\\u0E2E\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E45\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD\\u0EAE\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0F40-\\u0F47\\u0F49-\\u0F69\\u10A0-\\u10C5\\u10D0-\\u10F6\\u1100\\u1102\\u1103\\u1105-\\u1107\\u1109\\u110B\\u110C\\u110E-\\u1112\\u113C\\u113E\\u1140\\u114C\\u114E\\u1150\\u1154\\u1155\\u1159\\u115F-\\u1161\\u1163\\u1165\\u1167\\u1169\\u116D\\u116E\\u1172\\u1173\\u1175\\u119E\\u11A8\\u11AB\\u11AE\\u11AF\\u11B7\\u11B8\\u11BA\\u11BC-\\u11C2\\u11EB\\u11F0\\u11F9\\u1E00-\\u1E9B\\u1EA0-\\u1EF9\\u1F00-\\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\\u2126\\u212A\\u212B\\u212E\\u2180-\\u2182\\u3007\\u3021-\\u3029\\u3041-\\u3094\\u30A1-\\u30FA\\u3105-\\u312C\\u4E00-\\u9FA5\\uAC00-\\uD7A3")+"_]["+n+"0-9\\u0660-\\u0669\\u06F0-\\u06F9\\u0966-\\u096F\\u09E6-\\u09EF\\u0A66-\\u0A6F\\u0AE6-\\u0AEF\\u0B66-\\u0B6F\\u0BE7-\\u0BEF\\u0C66-\\u0C6F\\u0CE6-\\u0CEF\\u0D66-\\u0D6F\\u0E50-\\u0E59\\u0ED0-\\u0ED9\\u0F20-\\u0F29\\.\\-_\\u0300-\\u0345\\u0360\\u0361\\u0483-\\u0486\\u0591-\\u05A1\\u05A3-\\u05B9\\u05BB-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u064B-\\u0652\\u0670\\u06D6-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0901-\\u0903\\u093C\\u093E-\\u094D\\u0951-\\u0954\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u0A02\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A70\\u0A71\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B43\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B82\\u0B83\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C01-\\u0C03\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C82\\u0C83\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D43\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86-\\u0F8B\\u0F90-\\u0F95\\u0F97\\u0F99-\\u0FAD\\u0FB1-\\u0FB7\\u0FB9\\u20D0-\\u20DC\\u20E1\\u302A-\\u302F\\u3099\\u309A\\xB7\\u02D0\\u02D1\\u0387\\u0640\\u0E46\\u0EC6\\u3005\\u3031-\\u3035\\u309D\\u309E\\u30FC-\\u30FE]*")+"\\:)?"+n+")",new RegExp("^<"+n)),l=/^\s*(\/?)>/,c=new RegExp("^<\\/"+n+"[^>]*>"),u=/^<!DOCTYPE\s?[^>]+>/i,p=!1;"x".replace(/x(.)?/g,(function(t,e){p=""===e}));var d=r("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),f=r("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,noscript,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,svg,textarea,tt,u,var",!0),h=r("colgroup,dd,dt,li,option,p,td,tfoot,th,thead,tr,source",!0),g=r("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected",!0),m=r("script,style",!0),v=r("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,ol,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track,ul",!0),y={};function b(t,e){for(var n,r,b,_,w=[],E=function(t){var e=o.source+"(?:\\s*("+function(t){return i.concat(t.customAttrAssign||[]).map((function(t){return"(?:"+t.source+")"})).join("|")}(t)+")[ \\t\\n\\f\\r]*(?:"+a.join("|")+"))?";if(t.customAttrSurround){for(var n=[],r=t.customAttrSurround.length-1;0<=r;r--)n[r]="(?:("+t.customAttrSurround[r][0].source+")\\s*"+e+"\\s*("+t.customAttrSurround[r][1].source+"))";n.push("(?:"+e+")"),e="(?:"+n.join("|")+")"}return new RegExp("^\\s*"+e)}(e);t;){if(r=t,n&&m(n)){var x=n.toLowerCase(),C=y[x]||(y[x]=new RegExp("([\\s\\S]*?)</"+x+"[^>]*>","i"));t=t.replace(C,(function(t,n){return"script"!==x&&"style"!==x&&"noscript"!==x&&(n=n.replace(/<!--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),e.chars&&e.chars(n),""})),P("</"+x+">",x)}else{if(0===(A=t.indexOf("<"))){if(/^<!--/.test(t)&&0<=(C=t.indexOf("--\x3e"))){e.comment&&e.comment(t.substring(4,C)),t=t.substring(C+3),b="";continue}if(/^<!\[/.test(t)){var T=t.indexOf("]>");if(0<=T){e.comment&&e.comment(t.substring(2,T+1),!0),t=t.substring(T+2),b="";continue}}if(T=t.match(u)){e.doctype&&e.doctype(T[0]),t=t.substring(T[0].length),b="";continue}if(T=t.match(c)){t=t.substring(T[0].length),T[0].replace(c,P),b="/"+T[1].toLowerCase();continue}if(T=O(t)){t=T.rest,function(t){var r=t.tagName,o=t.unarySlash;if(e.html5&&("p"===n&&v(r)?P("",n):"tbody"===r?S("thead"):"tfoot"===r&&(S("tbody")||S("thead")),"col"===r&&k("colgroup")<0&&(n="colgroup",w.push({tag:n,attrs:[]}),e.start&&e.start(n,[],!1,""))),!e.html5&&!f(r))for(;n&&f(n);)P("",n);h(r)&&n===r&&P("",r);var i=d(r)||"html"===r&&"head"===n||!!o;t=t.attrs.map((function(t){var n,r,o,i,a,s;function l(e){return a=t[e],void 0!==(r=t[e+1])?'"':void 0!==(r=t[e+2])?"'":(void 0===(r=t[e+3])&&g(n)&&(r=n),"")}p&&-1===t[0].indexOf('""')&&(""===t[3]&&delete t[3],""===t[4]&&delete t[4],""===t[5]&&delete t[5]);var c=1;if(e.customAttrSurround)for(var u=0,d=e.customAttrSurround.length;u<d;u++,c+=7)if(n=t[c+1]){s=l(c+2),o=t[c],i=t[c+6];break}return!n&&(n=t[c])&&(s=l(c+1)),{name:n,value:r,customAssign:a||"=",customOpen:o||"",customClose:i||"",quote:s||""}})),i||(w.push({tag:r,attrs:t}),n=r,o=""),e.start&&e.start(r,t,i,o)}(T),b=T.tagName.toLowerCase();continue}e.continueOnParseError&&(A=t.indexOf("<",1))}var A=(A=O(t=0<=A?(_=t.substring(0,A),t.substring(A)):(_=t,"")))?A.tagName:(A=t.match(c))?"/"+A[1]:"";e.chars&&e.chars(_,b,A),b=""}if(t===r)throw new Error("Parse Error: "+t)}function O(t){var e=t.match(s);if(e){var n,r,o={tagName:e[1],attrs:[]};for(t=t.slice(e[0].length);!(n=t.match(l))&&(r=t.match(E));)t=t.slice(r[0].length),o.attrs.push(r);if(n)return o.unarySlash=n[1],o.rest=t.slice(n[0].length),o}}function S(t){return 0<=k(t)&&(P("",t),1)}function k(t){for(var e=t.toLowerCase(),n=w.length-1;0<=n&&w[n].tag.toLowerCase()!==e;n--);return n}function P(t,r){var o=r?k(r):0;if(0<=o){for(var i=w.length-1;o<=i;i--)e.end&&e.end(w[i].tag,w[i].attrs,o<i||!t);w.length=o,n=o&&w[o-1].tag}else"br"===r.toLowerCase()?e.start&&e.start(r,[],!0,""):"p"===r.toLowerCase()&&(e.start&&e.start(r,[],!1,"",!0),e.end&&e.end(r,[]))}e.partialMarkup||P()}e.HTMLParser=b,e.HTMLtoXML=function(t){var e="";return b(t,{start:function(t,n,r){e+="<"+t;for(var o=0,i=n.length;o<i;o++)e+=" "+n[o].name+'="'+(n[o].value||"").replace(/"/g,"&#34;")+'"';e+=(r?"/":"")+">"},end:function(t){e+="</"+t+">"},chars:function(t){e+=t},comment:function(t){e+="\x3c!--"+t+"--\x3e"},ignore:function(t){e+=t}}),e},e.HTMLtoDOM=function(t,e){var n={html:!0,head:!0,body:!0,title:!0},r={link:"head",base:"head"};e?e=e.ownerDocument||e.getOwnerDocument&&e.getOwnerDocument()||e:"undefined"!=typeof DOMDocument?e=new DOMDocument:"undefined"!=typeof document&&document.implementation&&document.implementation.createDocument?e=document.implementation.createDocument("","",null):"undefined"!=typeof ActiveX&&(e=new ActiveXObject("Msxml.DOMDocument"));var o,i,a=[];if(e.documentElement||e.getDocumentElement&&e.getDocumentElement()||!e.createElement||(o=e.createElement("html"),(i=e.createElement("head")).appendChild(e.createElement("title")),o.appendChild(i),o.appendChild(e.createElement("body")),e.appendChild(o)),e.getElementsByTagName)for(var s in n)n[s]=e.getElementsByTagName(s)[0];var l=n.body;return b(t,{start:function(t,o,i){if(n[t])l=n[t];else{var s,c=e.createElement(t);for(s in o)c.setAttribute(o[s].name,o[s].value);r[t]&&"boolean"!=typeof n[r[t]]?n[r[t]].appendChild(c):l&&l.appendChild&&l.appendChild(c),i||(a.push(c),l=c)}},end:function(){--a.length,l=a[a.length-1]},chars:function(t){l.appendChild(e.createTextNode(t))},comment:function(){},ignore:function(){}}),e}},function(t,e,n){"use strict";var r=n(209),o=n(438),i=n(439),a=n(130),s=n(440),l=n(447);function c(t,e){this.options=i(e,{defaultPorts:{ftp:21,http:80,https:443},directoryIndexes:["index.html"],ignore_www:!1,output:c.SHORTEST,rejectedSchemes:["data","javascript","mailto"],removeAuth:!1,removeDirectoryIndexes:!0,removeEmptyQueries:!1,removeRootTrailingSlash:!0,schemeRelative:!0,site:void 0,slashesDenoteHost:!0}),this.from=s.from(t,this.options,null)}c.prototype.relate=function(t,e,n){if(a.isPlainObject(e)?(n=e,e=t,t=null):e||(e=t,t=null),n=i(n,this.options),t=t||n.site,!(t=s.from(t,n,this.from))||!t.href)throw new Error("from value not defined.");if(t.extra.hrefInfo.minimumPathOnly)throw new Error("from value supplied is not absolute: "+t.href);return!1===(e=s.to(e,n)).valid?e.href:(e=l(t,e,n),o(e,n))},c.relate=function(t,e,n){return(new c).relate(t,e,n)},a.shallowMerge(c,r),t.exports=c},function(t,e,n){"use strict";var r=n(209);function o(t,e){return e=e.removeEmptyQueries&&t.extra.relation.minimumPort,t.query.string[e?"stripped":"full"]}function i(t,e){return!t.extra.relation.minimumQuery||e.output===r.ABSOLUTE||e.output===r.ROOT_RELATIVE}function a(t,e){var n=e.removeDirectoryIndexes&&t.extra.resourceIsIndex;return e=t.extra.relation.minimumResource&&e.output!==r.ABSOLUTE&&e.output!==r.ROOT_RELATIVE,!!t.resource&&!e&&!n}t.exports=function(t,e){var n="";return n+=function(t,e){var n="";return!t.extra.relation.maximumHost&&e.output!==r.ABSOLUTE||(t.extra.relation.minimumScheme&&e.schemeRelative&&e.output!==r.ABSOLUTE?n+="//":n+=t.scheme+"://"),n}(t,e),n+=function(t,e){return!t.auth||e.removeAuth||!t.extra.relation.maximumHost&&e.output!==r.ABSOLUTE?"":t.auth+"@"}(t,e),n+=function(t,e){return t.host.full&&(t.extra.relation.maximumAuth||e.output===r.ABSOLUTE)?t.host.full:""}(t,e),n+=function(t){return t.port&&!t.extra.portIsDefault&&t.extra.relation.maximumHost?":"+t.port:""}(t),n+=function(t,e){var n="",s=t.path.absolute.string,l=t.path.relative.string,c=a(t,e);return!t.extra.relation.maximumHost&&e.output!==r.ABSOLUTE&&e.output!==r.ROOT_RELATIVE&&(l.length<=s.length&&e.output===r.SHORTEST||e.output===r.PATH_RELATIVE)?""===(n=l)&&(l=i(t,e)&&!!o(t,e),(t.extra.relation.maximumPath&&!c||t.extra.relation.overridesQuery&&!c&&!l)&&(n="./")):n=s,"/"!==n||c||!e.removeRootTrailingSlash||t.extra.relation.minimumPort&&e.output!==r.ABSOLUTE?n:""}(t,e),n+=function(t,e){return a(t,e)?t.resource:""}(t,e),(n+=function(t,e){return i(t,e)?o(t,e):""}(t,e))+function(t){return t.hash||""}(t)}},function(t,e,n){"use strict";var r=n(130);t.exports=function(t,e){if(r.isPlainObject(t)){var n,o={};for(n in e)e.hasOwnProperty(n)&&(void 0!==t[n]?o[n]=function(t,e){return e instanceof Object&&t instanceof Object?e instanceof Array&&t instanceof Array?e.concat(t):r.shallowMerge(t,e):t}(t[n],e[n]):o[n]=e[n]);return o}return e}},function(t,e,n){"use strict";var r=n(441),o=n(442),i=n(443),a=n(444),s=n(445),l=n(446),c=n(131);function u(t,e){return!1===(t=l(t,e)).valid||(o(t,e),a(t,e),i(t,e),s(t,e),r(t)),t}t.exports={from:function(t,e,n){return t?(t=u(t,e),e=c.resolveDotSegments(t.path.absolute.array),t.path.absolute.array=e,t.path.absolute.string="/"+c.join(e),t):n},to:u}},function(t,e,n){"use strict";t.exports=function(t){var e=!(t.scheme||t.auth||t.host.full||t.port),n=e&&!t.path.absolute.string,r=n&&!t.resource,o=r&&!t.query.string.full.length,i=o&&!t.hash;t.extra.hrefInfo.minimumPathOnly=e,t.extra.hrefInfo.minimumResourceOnly=n,t.extra.hrefInfo.minimumQueryOnly=r,t.extra.hrefInfo.minimumHashOnly=o,t.extra.hrefInfo.empty=i}},function(t,e,n){"use strict";t.exports=function(t,e){var n;!e.ignore_www||(n=t.host.full)&&(0===(e=n).indexOf("www.")&&(e=n.substr(4)),t.host.stripped=e)}},function(t,e,n){"use strict";function r(t){if("/"===t)return[];var e=[];return t.split("/").forEach((function(t){""!==t&&e.push(t)})),e}t.exports=function(t,e){var n,o,i=t.path.absolute.string;i&&(-1<(n=i.lastIndexOf("/"))?(++n<i.length&&("."!==(o=i.substr(n))&&".."!==o?(t.resource=o,i=i.substr(0,n)):i+="/"),t.path.absolute.string=i,t.path.absolute.array=r(i)):"."===i||".."===i?(t.path.absolute.string=i+="/",t.path.absolute.array=r(i)):(t.resource=i,t.path.absolute.string=null),t.extra.resourceIsIndex=function(t,e){var n=!1;return e.directoryIndexes.every((function(e){return e!==t||!(n=!0)})),n}(t.resource,e))}},function(t,e,n){"use strict";t.exports=function(t,e){var n,r=-1;for(n in e.defaultPorts)if(n===t.scheme&&e.defaultPorts.hasOwnProperty(n)){r=e.defaultPorts[n];break}-1<r&&(r=r.toString(),null===t.port&&(t.port=r),t.extra.portIsDefault=t.port===r)}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(t,e){var n,o,i=0,a="";for(n in t)""!==n&&!0===r.call(t,n)&&(""===(o=t[n])&&e||(a+=1==++i?"?":"&",n=encodeURIComponent(n),a+=""!==o?n+"="+encodeURIComponent(o).replace(/%20/g,"+"):n));return a}t.exports=function(t,e){t.query.string.full=o(t.query.object,!1),e.removeEmptyQueries&&(t.query.string.stripped=o(t.query.object,!0))}},function(t,e,n){"use strict";var r=n(26).parse;t.exports=function(t,e){return function(t,e){var n=!0;return e.rejectedSchemes.every((function(e){return n=!(0===t.indexOf(e+":"))})),n}(t,e)?function(t){var e=t.protocol;return e&&e.indexOf(":")===e.length-1&&(e=e.substr(0,e.length-1)),t.host={full:t.hostname,stripped:null},t.path={absolute:{array:null,string:t.pathname},relative:{array:null,string:null}},t.query={object:t.query,string:{full:null,stripped:null}},t.extra={hrefInfo:{minimumPathOnly:null,minimumResourceOnly:null,minimumQueryOnly:null,minimumHashOnly:null,empty:null,separatorOnlyQuery:"?"===t.search},portIsDefault:null,relation:{maximumScheme:null,maximumAuth:null,maximumHost:null,maximumPort:null,maximumPath:null,maximumResource:null,maximumQuery:null,maximumHash:null,minimumScheme:null,minimumAuth:null,minimumHost:null,minimumPort:null,minimumPath:null,minimumResource:null,minimumQuery:null,minimumHash:null,overridesQuery:null},resourceIsIndex:null,slashes:t.slashes},t.resource=null,t.scheme=e,delete t.hostname,delete t.pathname,delete t.protocol,delete t.search,delete t.slashes,t}(r(t,!0,e.slashesDenoteHost)):{href:t,valid:!1}}},function(t,e,n){"use strict";var r=n(448),o=n(450);t.exports=function(t,e,n){return r(e,t,n),o(e,t,n),e}},function(t,e,n){"use strict";var r=n(449),o=n(130),i=n(131);t.exports=function(t,e,n){r.upToPath(t,e,n),t.extra.relation.minimumScheme&&(t.scheme=e.scheme),t.extra.relation.minimumAuth&&(t.auth=e.auth),t.extra.relation.minimumHost&&(t.host=o.clone(e.host)),t.extra.relation.minimumPort&&function(t,e){t.port=e.port,t.extra.portIsDefault=e.extra.portIsDefault}(t,e),t.extra.relation.minimumScheme&&function(t,e){var n,r;t.extra.relation.maximumHost||!t.extra.hrefInfo.minimumResourceOnly?(r="/",(n=t.path.absolute.array)?(t.extra.hrefInfo.minimumPathOnly&&0!==t.path.absolute.string.indexOf("/")&&(n=e.path.absolute.array.concat(n)),n=i.resolveDotSegments(n),r+=i.join(n)):n=[],t.path.absolute.array=n,t.path.absolute.string=r):t.path=o.clone(e.path)}(t,e),r.pathOn(t,e,n),t.extra.relation.minimumResource&&function(t,e){t.resource=e.resource,t.extra.resourceIsIndex=e.extra.resourceIsIndex}(t,e),t.extra.relation.minimumQuery&&(t.query=o.clone(e.query)),t.extra.relation.minimumHash&&(t.hash=e.hash)}},function(t,e,n){"use strict";t.exports={pathOn:function(t,e,n){var r=t.extra.hrefInfo.minimumQueryOnly,o=t.extra.hrefInfo.minimumHashOnly,i=t.extra.hrefInfo.empty,a=t.extra.relation.minimumPort,s=t.extra.relation.minimumScheme,l=a&&t.path.absolute.string===e.path.absolute.string;a=t.resource===e.resource||!t.resource&&e.extra.resourceIsIndex||n.removeDirectoryIndexes&&t.extra.resourceIsIndex&&!e.resource,a=l&&(a||r||o||i),r=n.removeEmptyQueries?"stripped":"full",n=t.query.string[r],r=e.query.string[r],e=(i=a&&!!n&&n===r||(o||i)&&!t.extra.hrefInfo.separatorOnlyQuery)&&t.hash===e.hash,t.extra.relation.minimumPath=l,t.extra.relation.minimumResource=a,t.extra.relation.minimumQuery=i,t.extra.relation.minimumHash=e,t.extra.relation.maximumPort=!s||s&&!l,t.extra.relation.maximumPath=!s||s&&!a,t.extra.relation.maximumResource=!s||s&&!i,t.extra.relation.maximumQuery=!s||s&&!e,t.extra.relation.maximumHash=!s||s&&!e,t.extra.relation.overridesQuery=l&&t.extra.relation.maximumResource&&!i&&!!r},upToPath:function(t,e,n){var r=t.extra.hrefInfo.minimumPathOnly,o=t.scheme===e.scheme||!t.scheme,i=o&&(t.auth===e.auth||n.removeAuth||r);n=n.ignore_www?"stripped":"full",r=(n=i&&(t.host[n]===e.host[n]||r))&&(t.port===e.port||r),t.extra.relation.minimumScheme=o,t.extra.relation.minimumAuth=i,t.extra.relation.minimumHost=n,t.extra.relation.minimumPort=r,t.extra.relation.maximumScheme=!o||o&&!i,t.extra.relation.maximumAuth=!o||o&&!n,t.extra.relation.maximumHost=!o||o&&!r}}},function(t,e,n){"use strict";var r=n(131);t.exports=function(t,e,n){t.extra.relation.minimumScheme&&(e=function(t,e){var n=[],r=!0,o=-1;return e.forEach((function(e,i){r&&(t[i]!==e?r=!1:o=i),r||n.push("..")})),t.forEach((function(t,e){o<e&&n.push(t)})),n}(t.path.absolute.array,e.path.absolute.array),t.path.relative.array=e,t.path.relative.string=r.join(e))}},function(t,e,n){"use strict";function r(){}function o(){}r.prototype.sort=function(t,e){e=e||0;for(var n=0,r=this.keys.length;n<r;n++){var o=this.keys[n],i=o.slice(1),a=t.indexOf(i,e);if(-1!==a){for(;a!==e&&(t.splice(a,1),t.splice(e,0,i)),e++,-1!==(a=t.indexOf(i,e)););return this[o].sort(t,e)}}return t},o.prototype={add:function(t){var e=this;t.forEach((function(n){e[n="$"+n]||(e[n]=[],e[n].processed=0),e[n].push(t)}))},createSorter:function(){var t=this,e=new r;return e.keys=Object.keys(t).sort((function(e,n){var r=t[e].length,o=t[n].length;return r<o?1:o<r||e<n?-1:n<e?1:0})).filter((function(n){if(t[n].processed<t[n].length){var r=n.slice(1),i=new o;return t[n].forEach((function(e){for(var n;-1!==(n=e.indexOf(r));)e.splice(n,1);e.forEach((function(e){t["$"+e].processed++})),i.add(e.slice(0))})),e[n]=i.createSorter(),!0}return!1})),e}},t.exports=o},function(t,e){t.exports={}},function(t,e,n){var r=n(454),o=n(51),i=Array.prototype.push;function a(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function s(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function l(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var o=r[0]=e.apply(void 0,r);return t.apply(void 0,r),o}}}t.exports=function t(e,n,c,u){var p="function"==typeof n,d=n===Object(n);if(d&&(u=c,c=n,n=void 0),null==c)throw new TypeError;var f=!("cap"in(u=u||{}))||u.cap,h=!("curry"in u)||u.curry,g=!("fixed"in u)||u.fixed,m=!("immutable"in u)||u.immutable,v=!("rearg"in u)||u.rearg,y=p?c:o,b="curry"in u&&u.curry,_="fixed"in u&&u.fixed,w="rearg"in u&&u.rearg,E=p?c.runInContext():void 0,x=p?c:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},C=x.ary,T=x.assign,A=x.clone,O=x.curry,S=x.forEach,k=x.isArray,P=x.isError,j=x.isFunction,N=x.isWeakMap,L=x.keys,D=x.rearg,I=x.toInteger,R=x.toPath,M=L(r.aryMethod),B={castArray:function(t){return function(){var e=arguments[0];return k(e)?t(s(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],n=t(arguments[0],e),r=n.length;return f&&"number"==typeof e?(e=2<e?e-2:1,r&&r<=e?n:a(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!j(n))return t(n,Object(e));var r=[];return S(L(e),(function(t){j(e[t])&&r.push([t,n.prototype[t]])})),t(n,Object(e)),S(r,(function(t){var e=t[1];j(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]})),n}},nthArg:function(t){return function(e){var n=e<0?1:I(e)+1;return O(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return O(t(e,n),r)}},runInContext:function(n){return function(r){return t(e,n(r),u)}}};function F(t,e,n){return!g||!_&&r.skipFixed[t]?e:void 0===(t=(t=r.methodSpread[t])&&t.start)?C(e,n):function(t,e){return function(){for(var n=arguments.length,r=n-1,o=Array(n);n--;)o[n]=arguments[n];var a=o[e],s=o.slice(0,e);return a&&i.apply(s,a),e!=r&&i.apply(s,o.slice(e+1)),t.apply(this,s)}}(e,t)}function U(t,e,n){return v&&1<n&&(w||!r.skipRearg[t])?D(e,r.methodRearg[t]||r.aryRearg[n]):e}function H(t,e){for(var n=-1,r=(e=R(e)).length,o=r-1,i=t=A(Object(t));null!=i&&++n<r;){var a=e[n],s=i[a];null==s||j(s)||P(s)||N(s)||(i[a]=A(n==o?s:Object(s))),i=i[a]}return t}function V(e,n){var o=r.aliasToReal[e]||e,i=r.remap[o]||o,a=u;return function(e){var r=p?E:x,s=p?E[i]:n;return e=T(T({},a),e),t(r,o,s,e)}}function q(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var o=v?0:n-1;return r[o]=e(r[o]),t.apply(void 0,r)}}function z(t,e,n){var o,i=r.aliasToReal[t]||t,c=e;return(t=B[i])?c=t(e):m&&(r.mutate.array[i]?c=l(e,s):r.mutate.object[i]?c=l(e,function(t){return function(e){return t({},e)}}(e)):r.mutate.set[i]&&(c=l(e,H))),S(M,(function(t){return S(r.aryMethod[t],(function(e){if(i==e)return e=(e=r.methodSpread[i])&&e.afterRearg,o=e?F(i,U(i,c,t),t):U(i,F(i,c,t),t),o=function(t,e,n){return b||h&&1<n?O(e,n):e}(0,o=function(t,e){if(f){var n=r.iterateeRearg[t];if(n)return function(t,e){return q(t,(function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(D(a(t,n),e),n)}))}(e,n);if(t=!p&&r.iterateeAry[t])return function(t,e){return q(t,(function(t){return"function"==typeof t?a(t,e):t}))}(e,t)}return e}(i,o),t),!1})),!o})),(o=(o=o||c)==e?b?O(o,1):function(){return e.apply(this,arguments)}:o).convert=V(i,e),o.placeholder=e.placeholder=n,o}if(!d)return z(n,c,y);var W=c,G=[];return S(M,(function(t){S(r.aryMethod[t],(function(t){var e=W[r.remap[t]||t];e&&G.push([t,z(t,e,W)])}))})),S(L(W),(function(t){var e=W[t];if("function"==typeof e){for(var n=G.length;n--;)if(G[n][0]==t)return;e.convert=V(t,e),G.push([t,e])}})),S(G,(function(t){W[t[0]]=t[1]})),W.convert=function(t){return W.runInContext.convert(t)(void 0)},W.placeholder=W,S(L(W),(function(t){S(r.realToAlias[t]||[],(function(e){W[e]=W[t]}))})),W}},function(t,e){e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t,n=Object.prototype.hasOwnProperty,r=e.aliasToReal,o={};for(t in r){var i=r[t];n.call(o,i)?o[i].push(t):o[i]=[t]}return o}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(t,e,n){t.exports={ary:n(456),assign:n(170),clone:n(474),curry:n(475),forEach:n(71),isArray:n(12),isError:n(476),isFunction:n(68),isWeakMap:n(477),iteratee:n(478),keys:n(94),rearg:n(479),toInteger:n(59),toPath:n(480)}},function(t,e,n){var r=n(134);t.exports=function(t,e,n){return e=n?void 0:e,e=t&&null==e?t.length:e,r(t,128,void 0,void 0,void 0,void 0,e)}},function(t,e,n){var r=n(89),o=n(16);t.exports=function(t,e,n){var i=1&e,a=r(t);return function e(){return(this&&this!==o&&this instanceof e?a:t).apply(i?n:this,arguments)}}},function(t,e,n){var r=n(113),o=n(89),i=n(212),a=n(215),s=n(220),l=n(139),c=n(16);t.exports=function(t,e,n){var u=o(t);return function o(){for(var p=arguments.length,d=Array(p),f=p,h=s(o);f--;)d[f]=arguments[f];return(p-=(h=p<3&&d[0]!==h&&d[p-1]!==h?[]:l(d,h)).length)<n?a(t,e,i,o.placeholder,void 0,d,h,void 0,void 0,n-p):r(this&&this!==c&&this instanceof o?u:t,this,d)}}},function(t,e){t.exports=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}},function(t,e){t.exports=function(){}},function(t,e){t.exports={}},function(t,e,n){var r=n(135),o=n(138),i=n(136),a=n(12),s=n(19),l=n(463),c=Object.prototype.hasOwnProperty;function u(t){if(s(t)&&!a(t)&&!(t instanceof r)){if(t instanceof o)return t;if(c.call(t,"__wrapped__"))return l(t)}return new o(t)}u.prototype=i.prototype,t.exports=u.prototype.constructor=u},function(t,e,n){var r=n(135),o=n(138),i=n(78);t.exports=function(t){if(t instanceof r)return t.clone();var e=new o(t.__wrapped__,t.__chain__);return e.__actions__=i(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},function(t,e){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;t.exports=function(t){return(t=t.match(n))?t[1].split(r):[]}},function(t,e){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,e){var r=e.length;if(!r)return t;var o=r-1;return e[o]=(1<r?"& ":"")+e[o],e=e.join(2<r?", ":" "),t.replace(n,"{\n/* [wrapped with "+e+"] */\n")}},function(t,e,n){var r=n(71),o=n(467),i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return r(i,(function(n){var r="_."+n[0];e&n[1]&&!o(t,r)&&t.push(r)})),t.sort()}},function(t,e,n){var r=n(468);t.exports=function(t,e){return!(null==t||!t.length)&&-1<r(t,e,0)}},function(t,e,n){var r=n(115),o=n(469),i=n(470);t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(78),o=n(56),i=Math.min;t.exports=function(t,e){for(var n=t.length,a=i(e.length,n),s=r(t);a--;){var l=e[a];t[a]=o(l,n)?s[l]:void 0}return t}},function(t,e,n){var r=n(113),o=n(89),i=n(16);t.exports=function(t,e,n,a){var s=1&e,l=o(t);return function e(){for(var o=-1,c=arguments.length,u=-1,p=a.length,d=Array(p+c),f=this&&this!==i&&this instanceof e?l:t;++u<p;)d[u]=a[u];for(;c--;)d[u++]=arguments[++o];return r(f,s?n:this,d)}}},function(t,e,n){var r=n(213),o=n(214),i=n(139),a="__lodash_placeholder__",s=Math.min;t.exports=function(t,e){var n,l=t[1],c=e[1],u=l|c,p=128==c&&8==l||128==c&&256==l&&t[7].length<=e[8]||384==c&&e[7].length<=e[8]&&8==l;return(u<131||p)&&(1&c&&(t[2]=e[2],u|=1&l?0:4),(l=e[3])&&(n=t[3],t[3]=n?r(n,l,e[4]):l,t[4]=n?i(t[3],a):e[4]),(l=e[5])&&(n=t[5],t[5]=n?o(n,l,e[6]):l,t[6]=n?i(t[5],a):e[6]),(l=e[7])&&(t[7]=l),128&c&&(t[8]=null==t[8]?e[8]:s(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=u),t}},function(t,e,n){var r=n(105);t.exports=function(t){return r(t,4)}},function(t,e,n){var r=n(134);function o(t,e,n){return(e=r(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e)).placeholder=o.placeholder,e}o.placeholder={},t.exports=o},function(t,e,n){var r=n(29),o=n(19),i=n(172);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!i(t)}},function(t,e,n){var r=n(38),o=n(19);t.exports=function(t){return o(t)&&"[object WeakMap]"==r(t)}},function(t,e,n){var r=n(105),o=n(20);t.exports=function(t){return o("function"==typeof t?t:r(t,1))}},function(t,e,n){var r=n(134);n=(n=n(112))((function(t,e){return r(t,256,void 0,void 0,void 0,e)})),t.exports=n},function(t,e,n){var r=n(57),o=n(78),i=n(12),a=n(44),s=n(167),l=n(32),c=n(45);t.exports=function(t){return i(t)?r(t,l):a(t)?[t]:o(s(c(t)))}},function(t,e,n){n=n(482)(),t.exports=n},function(t,e,n){var r=n(138),o=n(112),i=n(137),a=n(217),s=n(12),l=n(216);t.exports=function(t){return o((function(e){var n=e.length,o=n,c=r.prototype.thru;for(t&&e.reverse();o--;){if("function"!=typeof(u=e[o]))throw new TypeError("Expected a function");c&&!f&&"wrapper"==a(u)&&(f=new r([],!0))}for(o=f?o:n;++o<n;)var u=e[o],p=a(u),d="wrapper"==p?i(u):void 0,f=d&&l(d[0])&&424==d[1]&&!d[4].length&&1==d[9]?f[a(d[0])].apply(f,d[3]):1==u.length&&l(u)?f[p]():f.thru(u);return function(){var t=arguments,r=t[0];if(f&&1==t.length&&s(r))return f.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))}},function(t,e,n){var r=n(65)("map",n(46));r.placeholder=n(51),t.exports=r},function(t,e,n){var r=n(115),o=n(20),i=n(59),a=Math.max,s=Math.min;t.exports=function(t,e,n){var l=null==t?0:t.length;if(!l)return-1;var c=l-1;return void 0!==n&&(c=i(n),c=n<0?a(l+c,0):s(c,l-1)),r(t,o(e,3),c,!0)}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){delete e.parent,e.children&&e.children.length?(0,o.default)(e.children,t):delete e.children,e.attributes&&0===Object.keys(e.attributes).length&&delete e.attributes};var o=r(n(40));t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(0,o.default)(t,(function(t){return"true"===t||"false"!==t&&t}))};var o=r(n(487));t.exports=e.default},function(t,e,n){var r=n(107),o=n(154),i=n(20);t.exports=function(t,e){var n={};return e=i(e,3),o(t,(function(t,o,i){r(n,o,e(t,o,i))})),n}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){e.attributes||(e.attributes={}),e.children&&(0,o.default)(e.children,t)};var o=r(n(40));t.exports=e.default},function(t,e){t.exports=!1},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.registerRule=function(t,e){return"function"!=typeof t?console.error("Your rule must be a function"):(e?l[e]=t:l[t.name]=t,!0)},e.default=void 0;var o=r(n(491)),i=r(n(492)),a=r(n(493)),s=r(n(494)),l=(n=r(n(495)),{validAttributes:o.default,validChildren:i.default,validTag:a.default,validTypes:s.default,errorAttr:n.default});e.default=l},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.components,o=t.attributes;if(!(n=n[e=t.tagName]))return null;var s=[].concat(function(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Object.keys(n.allowedAttributes||{})),a);return 0===(e=Object.keys(o||{}).filter((function(t){return!s.includes(t)}))).length?null:(o=(n={attribute:1<e.length?"Attributes":"Attribute",illegal:1<e.length?"are illegal":"is illegal"}).attribute,n=n.illegal,(0,i.default)("".concat(o," ").concat(e.join(", ")," ").concat(n),t))};var i=o(n(52)),a=["mj-class","css-class"];t.exports=e.default},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.components,o=e.dependencies,a=e.skipElements,s=(e=t.children,t.tagName);if(!n[s]||!e||!e.length)return null;var l,c=[],u=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0;return{s:e=function(){},n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{var p=function(){var t=l.value,e=t.tagName,r=n[e],u=o[s]||[];!1===(!r||a.includes(e)||u.includes(e)||u.some((function(t){return t instanceof RegExp&&t.test(e)})))&&(u=Object.keys(o).filter((function(t){return o[t].includes(e)||o[t].some((function(t){return t instanceof RegExp&&t.test(e)}))})),c.push((0,i.default)("".concat(e," cannot be used inside ").concat(s,", only inside: ").concat(u.join(", ")),t)))};for(u.s();!(l=u.n()).done;)p()}catch(t){u.e(t)}finally{u.f()}return c};var i=o(n(52));t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.components;return e=t.tagName,i.includes(e)||n[e]?null:(0,o.default)("Element ".concat(e," doesn't exist or is not registered"),t)};var o=r(n(52)),i=["mj-all","mj-class","mj-selector","mj-html-attribute"];t.exports=e.default},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=e.components,o=e.initializeType,a=t.attributes,s=n[e=t.tagName];if(!s)return null;for(var l=[],c=0,u=Object.entries(a||{});c<u.length;c++){var p=function(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,r,o=[],i=!0,a=!1;try{for(e=e.call(t);!(i=(n=e.next()).done)&&(o.push(n.value),2!==o.length);i=!0);}catch(t){a=!0,r=t}finally{try{i||null==e.return||e.return()}finally{if(a)throw r}}return o}}(t)||function(t){if(t){if("string"==typeof t)return r(t,2);var e=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(e="Object"===e&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,2):void 0}}(t)||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.")}()}(u[c]),d=p[0],f=p[1];!(p=s.allowedAttributes&&s.allowedAttributes[d])||!1===(f=new(o(p))(f)).isValid()&&l.push((0,i.default)("Attribute ".concat(d," ").concat(f.getErrorMessage()),t))}return l};var i=o(n(52));t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.errors;return e?e.map((function(e){if("include"!==e.type)return null;e=(n=e.params).file;var n=n.partialPath;return(0,o.default)("mj-include fails to read file : ".concat(e," at ").concat(n),t)})):null};var o=r(n(52));t.exports=e.default},function(t,e,n){"use strict";function r(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];if(0===n.length)return t;for(var a=0,s=n;a<s.length;a++){var l=s[a];if("object"===i(l)&&null!==l)for(var c=0,u=Object.keys(l);c<u.length;c++){var p,d=u[c];"string"==typeof d?(p=[],t[d]&&p.push.apply(p,r(t[d])),l[d]&&p.push.apply(p,r(l[d])),t[d]=Array.from(new Set(p))):console.warn('dependency "tag" must be of type string')}else console.warn('"dependencies" must be an object.')}return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.registerDependencies=e.assignDependencies=void 0,e.assignDependencies=a;var s={};e.registerDependencies=function(t){a(s,t)},e.default=s},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=w,e.handleMjml3=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return b(t)?(e.noMigrateWarn||console.log("MJML v3 syntax detected, migrating to MJML v4 syntax. Use mjml -m to get the migrated MJML."),w(t)):t};var s=a(n(90)),l=a(n(47)),c=a(n(31)),u=a(n(132)),p=n(9),d=n(179),f=n(498),h={indent_size:2,wrap_attributes_indent_size:2,max_preserve_newline:0,preserve_newlines:!1},g=function(t){return t.attributes},m="facebook twitter google";function v(t){var e=g(t),n=function(t){var e=(t.attributes.display||m).split(" ");return delete t.attributes.display,e}(t);return t.children=[],(0,c.default)(n).forEach((function(r){var o=n[r].replace(":url","-noshare").replace(":share",""),i=o.replace("-noshare","");t.children.push({tagName:"mj-social-element",attributes:{name:o},content:e["".concat(i,"-content")]||""}),(0,c.default)(e).forEach((function(e){e.match(i)&&!e.match("content")&&(t.children[r].attributes[e.replace("".concat(i,"-"),"")]=t.attributes[e],delete t.attributes[e])}))})),(0,c.default)(e).forEach((function(t){t.match("content")&&delete e[t]})),t}function y(t){return(0,c.default)(t).forEach((function(e){if("children"===e)for(var n=0;n<t.children.length;n+=1)if(function(t){return-1===f.unavailableTags.indexOf(t)}(t.children[n].tagName)){switch(t.children[n].tagName){case"mj-body":t.children[n]=function(t){return"mj-container"===t.children[0].tagName&&(t.attributes=t.children[0].attributes,t.children=t.children[0].children),t}(t.children[n]);break;case"mj-social":t.children[n]=v(t.children[n]);break;case"mj-navbar":t.children[n]=function(t){return t.tagName="mj-section",t.attributes["full-width"]="full-width",t}(t.children[n]);break;case"mj-inline-links":t.children[n].tagName="mj-navbar";break;case"mj-link":t.children[n].tagName="mj-navbar-link";break;case"mj-hero":t.children[n]=function(t){var e=(0,l.default)(t.children,{tagName:"mj-hero-content"});return i(i({},t),{},{children:e.children,attributes:i(i({},t.attributes),e.attributes)})}(t.children[n])}t.children[n].attributes=function(t){return(0,c.default)(t).forEach((function(e){t[e]=function(t,e){for(var n=f.attributesWithUnit.length,r=0;r<n;r+=1)if(f.attributesWithUnit[r]===t)return function(t){return isNaN(t)||(0,s.default)(t)?t:"".concat(t,"px")}(e);return e}(e,t[e])})),t}(t.children[n].attributes),y(t.children[n])}else console.error("Ignoring unsupported tag : ".concat(t.children[n].tagName," on line ").concat(t.children[n].line)),delete t.children[n]})),t}function b(t){return"mj-container"===t.tagName||!(!t.children||!t.children.length)&&t.children.some(b)}var _=function t(e){var n=e.tagName,r=e.attributes,o=e.children;return e=e.content,o=o&&0<o.length?o.map(t).join("\n"):e||"",e=Object.keys(r).map((function(t){return"".concat(t,'="').concat(r[t],'"')})).join(" "),"<".concat(n).concat(""===e?">":" ".concat(e,">")).concat(o,"</").concat(n,">")};function w(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return console.warn("mjml-migrate is deprecated and will be removed in mjml 5"),e=e.beautify,"object"===r(t)?y(t):(y(t=(0,u.default)(t,{components:p.components,ignoreIncludes:!0})),e?(0,d.html)(_(t),h):_(t))}},function(t,e,n){"use strict";t.exports={unavailableTags:["mj-html","mj-invoice","mj-list","mj-location"],attributesWithUnit:["background-size","border-radius","border-width","cellpadding","cellspacing","font-size","height","icon-height","ico-padding","ico-padding-bottom","ico-font-size","ico-line-height","ico-padding-left","ico-padding-right","ico-padding-top","icon-size","icon-width","inner-padding","letter-spacing","padding","padding-bottom","padding-left","padding-right","padding-left","tb-border-radius","tb-width","width"]}},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(36).default,a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.initComponent=T,e.HeadComponent=e.BodyComponent=void 0;var s=a(n(4)),l=a(n(5)),c=a(n(3)),u=a(n(7)),p=a(n(8)),d=a(n(500)),f=a(n(90)),h=a(n(114)),g=a(n(47)),m=a(n(222)),v=a(n(41)),y=a(n(24)),b=a(n(40)),_=a(n(42)),w=a(n(132)),E=i(n(512)),x=a(n(513)),C=a(n(524));function T(t){var e=t.initialDatas,n=t.name;return(t=e.context.components[n])?((e=new t(e)).headStyle&&e.context.addHeadStyle(n,e.headStyle),e.componentHeadStyle&&e.context.addComponentHeadSyle(e.componentHeadStyle),e):null}var A=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};(0,c.default)(this,t);var n=void 0===(l=e.attributes)?{}:l,r=void 0===(a=e.children)?[]:a,i=void 0===(s=e.content)?"":s,a=void 0===(l=e.context)?{}:l,s=e.props,l=void 0===(l=e.globalAttributes)?{}:l;return e=e.absoluteFilePath,this.props=o(o({absoluteFilePath:void 0===e?null:e},void 0===s?{}:s),{},{children:r,content:i}),this.attributes=(0,x.default)(o(o(o({},this.constructor.defaultAttributes),l),n),this.constructor.allowedAttributes),this.context=a,this}return(0,u.default)(t,[{key:"getChildContext",value:function(){return this.context}},{key:"getAttribute",value:function(t){return this.attributes[t]}},{key:"getContent",value:function(){return this.props.content.trim()}},{key:"renderMJML",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof t?this.context.processing(t,this.context):(0,w.default)("<fragment>".concat(t,"</fragment>"),o(o({},n),{},{components:this.context.components,ignoreIncludes:!0})).children.map((function(t){return e.context.processing(t,e.context)})).join("")}}],[{key:"getTagName",value:function(){return this.componentName||(0,m.default)(this.name)}},{key:"isRawElement",value:function(){return!!this.rawElement}}]),t}();(0,p.default)(A,"defaultAttributes",{}),p=function(){(0,s.default)(e,A);var t=(0,l.default)(e);function e(){return(0,c.default)(this,e),t.apply(this,arguments)}return(0,u.default)(e,[{key:"getStyles",value:function(){return{}}},{key:"getShorthandAttrValue",value:function(t,e){var n=this.getAttribute("".concat(t,"-").concat(e));return t=this.getAttribute(t),n?parseInt(n,10):t?(0,E.default)(t,e):0}},{key:"getShorthandBorderValue",value:function(t){var e=t&&this.getAttribute("border-".concat(t));return t=this.getAttribute("border"),(0,E.borderParser)(e||t||"0")}},{key:"getBoxWidths",value:function(){var t=this.context.containerWidth,e=parseInt(t,10),n=this.getShorthandAttrValue("padding","right")+this.getShorthandAttrValue("padding","left");return{totalWidth:e,borders:t=this.getShorthandBorderValue("right")+this.getShorthandBorderValue("left"),paddings:n,box:e-n-t}}},{key:"htmlAttributes",value:function(t){var e=this,n={style:function(t){return e.styles(t)},default:y.default};return(0,v.default)((0,d.default)(t,f.default),(function(t,e,r){return e=(n[r]||n.default)(e),"".concat(t," ").concat(r,'="').concat(e,'"')}),"")}},{key:"styles",value:function(t){var e;return t&&(e="string"==typeof t?(0,_.default)(this.getStyles(),t):t),(0,v.default)(e,(function(t,e,n){return(0,f.default)(e)?t:"".concat(t).concat(n,":").concat(e,";")}),"")}},{key:"renderChildren",value:function(t){var e=this,n=(s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).props,r=void 0===n?{}:n,i=void 0===(n=s.renderer)?function(t){return t.render()}:n,a=void 0===(n=s.attributes)?{}:n,s=s.rawXML;if(t=t||this.props.children,void 0!==s&&s)return t.map((function(t){return(0,C.default)(t)})).join("\n");var l=t.length,c=(0,h.default)(this.context.components,(function(t){return t.isRawElement()})),u=t.filter((function(t){return!(0,g.default)(c,(function(e){return e.getTagName()===t.tagName}))})).length,p="",d=0;return(0,b.default)(t,(function(t){null!==(t=T({name:t.tagName,initialDatas:o(o({},t),{},{attributes:o(o({},a),t.attributes),context:e.getChildContext(),props:o(o({},r),{},{first:0===d,index:d,last:d+1===l,sibling:l,nonRawSiblings:u})})}))&&(p+=i(t)),d++})),p}}]),e}(),e.BodyComponent=p,e.HeadComponent=function(){(0,s.default)(e,A);var t=(0,l.default)(e);function e(){return(0,c.default)(this,e),t.apply(this,arguments)}return(0,u.default)(e,[{key:"handlerChildren",value:function(){var t=this;return this.props.children.map((function(e){var n=T({name:e.tagName,initialDatas:o(o({},e),{},{context:t.getChildContext()})});return n?(n.handler&&n.handler(),n.render?n.render():null):(console.error("No matching component for tag : ".concat(e.tagName)),null)}))}}],[{key:"getTagName",value:function(){return this.componentName||(0,m.default)(this.name)}}]),e}()},function(t,e,n){var r=n(20),o=n(221),i=n(501);t.exports=function(t,e){return i(t,o(r(e)))}},function(t,e,n){var r=n(57),o=n(20),i=n(502),a=n(110);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=o(e),i(t,n,(function(t,n){return e(t,n[0])}))}},function(t,e,n){var r=n(77),o=n(503),i=n(43);t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var c=e[a],u=r(t,c);n(u,c)&&o(l,i(c,t),u)}return l}},function(t,e,n){var r=n(106),o=n(43),i=n(56),a=n(18),s=n(32);t.exports=function(t,e,n,l){if(!a(t))return t;for(var c=-1,u=(e=o(e,t)).length,p=u-1,d=t;null!=d&&++c<u;){var f,h=s(e[c]),g=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;c!=p&&(f=d[h],void 0===(g=l?l(f,h,d):void 0)&&(g=a(f)?f:i(e[c+1])?[]:{})),r(d,h,g),d=d[h]}return t}},function(t,e,n){var r=n(156),o=n(505),i=n(508),a=RegExp("['’]","g");t.exports=function(t){return function(e){return r(i(o(e).replace(a,"")),t,"")}}},function(t,e,n){var r=n(506),o=n(45),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=o(t))&&t.replace(i,r).replace(a,"")}},function(t,e,n){n=n(507)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),t.exports=n},function(t,e){t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},function(t,e,n){var r=n(509),o=n(510),i=n(45),a=n(511);t.exports=function(t,e,n){return t=i(t),void 0===(e=n?void 0:e)?(o(t)?a:r)(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\ud800-\\udfff",r="[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]",o="\\d+",i="[a-z\\xdf-\\xf6\\xf8-\\xff]",a="[^"+n+"\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000"+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xff"+(h="A-Z\\xc0-\\xd6\\xd8-\\xde")+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",c="["+h+"]",u="(?:"+i+"|"+a+")",p="(?:"+c+"|"+a+")",d="(?:['’](?:d|ll|m|re|s|t|ve))?",f="(?:['’](?:D|LL|M|RE|S|T|VE))?",h=(a="[\\ufe0e\\ufe0f]?")+(h="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?")+"(?:\\u200d(?:"+["[^"+n+"]",s,l].join("|")+")"+a+h+")*",g=(h="(?:"+["[\\u2700-\\u27bf]",s,l].join("|")+")"+h,RegExp([c+"?"+i+"+"+d+"(?="+[r,c,"$"].join("|")+")",p+"+"+f+"(?="+[r,c+u,"$"].join("|")+")",c+"?"+u+"+"+d,c+"+"+f,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,h].join("|"),"g"));t.exports=function(t){return t.match(g)||[]}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=t.trim().replace(/\s+/g," ").split(" ",4),r={};switch(n.length){case 2:r={top:0,bottom:0,left:1,right:1};break;case 3:r={top:0,left:1,right:1,bottom:2};break;case 4:r={top:0,right:1,bottom:2,left:3};break;default:return parseInt(t,10)}return parseInt(n[r[e]]||0,10)},e.borderParser=function(t){return parseInt((0,o.default)(t.match(/(?:(?:^| )(\d+))/),1),10)||0};var o=r(n(42))},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(41)),l=n(27);e.default=function(t,e){return(0,s.default)(t,(function(t,n,r){if(e&&e[r]){var a=(0,l.initializeType)(e[r]);if(a)return a=new a(n),o(o({},t),{},i({},r,a.getValue()))}return o(o({},t),{},i({},r,n))}),{})},t.exports=e.default},function(t,e,n){var r=n(159),o=n(20),i=n(515),a=n(12),s=n(142);t.exports=function(t,e,n){var l=a(t)?r:i;return n&&s(t,e,n)&&(e=void 0),l(t,o(e,3))}},function(t,e,n){var r=n(55);t.exports=function(t,e){var n;return r(t,(function(t,r,o){return!(n=e(t,r,o))})),!!n}},function(t,e,n){"use strict";var r=n(36).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(517)),i=r(n(518)),a=r(n(520)),s=r(n(521)),l=r(n(522));n=r(n(523)),n={boolean:{matcher:o.matcher,typeConstructor:o.default},enum:{matcher:a.matcher,typeConstructor:a.default},color:{matcher:i.matcher,typeConstructor:i.default},unit:{matcher:s.matcher,typeConstructor:s.default},string:{matcher:l.matcher,typeConstructor:l.default},integer:{matcher:n.matcher,typeConstructor:n.default}},e.default=n,t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(27));e.matcher=/^boolean/gim,n=function(){return function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(t){return(0,o.default)(this,n),(t=e.call(this,t)).matchers=[/^true$/i,/^false$/i],t}return(0,i.default)(n,[{key:"isValid",value:function(){return!0===this.value||!1===this.value}}]),n}(l.default)},e.default=n},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(27)),c=r(n(519));e.matcher=/^color/gim;var u=/^#\w{3}$/,p=/^#(\w)(\w)(\w)$/;n=function(){return function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(t){return(0,o.default)(this,n),(t=e.call(this,t)).matchers=[/rgba\(\d{1,3},\s?\d{1,3},\s?\d{1,3},\s?\d(\.\d{1,3})?\)/gi,/rgb\(\d{1,3},\s?\d{1,3},\s?\d{1,3}\)/gi,/^#([0-9a-f]{3}){1,2}$/gi,new RegExp("^(".concat(c.default.join("|"),")$"))],t}return(0,i.default)(n,[{key:"getValue",value:function(){return"string"==typeof this.value&&this.value.match(u)?this.value.replace(p,"#$1$1$2$2$3$3"):this.value}}]),n}(l.default)},e.default=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","green","greenyellow","grey","honeydew","hotpink","indianred","indigo","inherit","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","transparent","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=r(n(8)),l=r(n(223)),c=r(n(27));e.matcher=/^enum/gim,n=function(t){var e,n=t.match(/\(([^)]+)\)/)[1].split(",");return t=e=function(t){(0,i.default)(r,t);var e=(0,a.default)(r);function r(t){return(0,o.default)(this,r),(t=e.call(this,t)).matchers=n.map((function(t){return new RegExp("^".concat((0,l.default)(t),"$"))})),t}return r}(c.default),(0,s.default)(e,"errorMessage","has invalid value: $value for type Enum, only accepts ".concat(n.join(", "))),t},e.default=n},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=r(n(8)),l=r(n(223)),c=r(n(27));e.matcher=/^(unit|unitWithNegative)\(.*\)/gim,n=function(t){var e=t.match(/^unitWithNegative/)?"-|":"",n=t.match(/\(([^)]+)\)/)[1].split(","),r=(d=t.match(/\{([^}]+)\}/))&&d[1]&&d[1].split(",")||["1"],u=n.includes("auto")?"|auto":"",p=n.filter((function(t){return"auto"!==t})),d=t=function(t){(0,i.default)(s,t);var n=(0,a.default)(s);function s(t){return(0,o.default)(this,s),(t=n.call(this,t)).matchers=[new RegExp("^(((".concat(e,"\\d|,|\\.){1,}(").concat(p.map(l.default).join("|"),")|0").concat(u,")( )?){").concat(r.join(","),"}$"))],t}return s}(c.default);return(0,s.default)(t,"errorMessage","has invalid value: $value for type Unit, only accepts (".concat(n.join(", "),") units and ").concat(r.join(" to ")," value(s)")),d},e.default=n},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=r(n(27));e.matcher=/^string/gim,n=function(){return function(t){(0,i.default)(n,t);var e=(0,a.default)(n);function n(t){return(0,o.default)(this,n),(t=e.call(this,t)).matchers=[/.*/],t}return n}(s.default)},e.default=n},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.matcher=void 0;var o=r(n(3)),i=r(n(4)),a=r(n(5)),s=r(n(27));e.matcher=/^integer/gim,n=function(){return function(t){(0,i.default)(n,t);var e=(0,a.default)(n);function n(t){return(0,o.default)(this,n),(t=e.call(this,t)).matchers=[/\d+/],t}return n}(s.default)},e.default=n},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function t(e){var n=e.tagName,r=e.attributes,o=e.children;return e=e.content,o=o&&0<o.length?o.map(t).join("\n"):e||"",e=Object.keys(r).map((function(t){return"".concat(t,'="').concat(r[t],'"')})).join(" "),"<".concat(n).concat(""===e?">":" ".concat(e,">")).concat(o,"</").concat(n,">")},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){try{var e=Number.parseInt(t.match("[0-9]+")[0],10);return"".concat(e-1,"px")}catch(e){return t}},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t,e){return t?t.split(" ").map((function(t){return"".concat(t,"-").concat(e)})).join(" "):""},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t.replace(/(<!\[endif]-->\s*?<!--\[if mso \| IE]>)/gm,"")},t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(t){return t.replace(/(<!--\[if\s[^\]]+]>)([\s\S]*?)(<!\[endif]-->)/gm,(function(t,e,n,r){return n=n.replace(/(^|>)(\s+)(<|$)/gm,(function(t,e,n,r){return"".concat(e).concat(r)})).replace(/\s{2,}/gm," "),"".concat(e).concat(n).concat(r)}))},t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0===(m=t.backgroundColor)?"":m,n=void 0===(w=t.beforeDoctype)?"":w,r=void 0===(v=t.breakpoint)?"480px":v,d=void 0===(y=t.content)?"":y,f=void 0===(E=t.fonts)?{}:E,h=void 0===(b=t.mediaQueries)?{}:b,g=void 0===(x=t.headStyle)?[]:x,m=void 0===(_=t.componentsHeadStyle)?{}:_,v=void 0===(w=t.headRaw)?[]:w,y=t.preview,b=void 0===(E=t.title)?"":E,_=void 0===(x=t.style)?[]:x,w=t.forceOWADesktop,E=t.inlineStyle,x=t.lang;return t=t.dir,x=x?'lang="'.concat(x,'" '):"",t=t?'dir="'.concat(t,'" '):"","".concat(n?"".concat(n,"\n"):"","<!doctype html>\n<html ").concat(x).concat(t,'xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">\n  <head>\n    <title>').concat(b,'</title>\n    \x3c!--[if !mso]>\x3c!--\x3e\n    <meta http-equiv="X-UA-Compatible" content="IE=edge">\n    \x3c!--<![endif]--\x3e\n    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n    <meta name="viewport" content="width=device-width, initial-scale=1">\n    <style type="text/css">\n      #outlook a { padding:0; }\n      body { margin:0;padding:0;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%; }\n      table, td { border-collapse:collapse;mso-table-lspace:0pt;mso-table-rspace:0pt; }\n      img { border:0;height:auto;line-height:100%; outline:none;text-decoration:none;-ms-interpolation-mode:bicubic; }\n      p { display:block;margin:13px 0; }\n    </style>\n    \x3c!--[if mso]>\n    <noscript>\n    <xml>\n    <o:OfficeDocumentSettings>\n      <o:AllowPNG/>\n      <o:PixelsPerInch>96</o:PixelsPerInch>\n    </o:OfficeDocumentSettings>\n    </xml>\n    </noscript>\n    <![endif]--\x3e\n    \x3c!--[if lte mso 11]>\n    <style type="text/css">\n      .mj-outlook-group-fix { width:100% !important; }\n    </style>\n    <![endif]--\x3e\n    ').concat((0,u.buildFontsTags)(d,E,f),"\n    ").concat((0,p.default)(r,h,w),'\n    <style type="text/css">\n    ').concat((0,s.default)(m,(function(t,e){return"".concat(t,"\n").concat(e(r))}),""),"\n    ").concat((0,s.default)(g,(function(t,e){return"".concat(t,"\n").concat(e(r))}),""),'\n    </style>\n    <style type="text/css">\n    ').concat((0,l.default)(_,(function(t){return(0,o.default)(t)?t(r):t})).join(""),"\n    </style>\n    ").concat(v.filter((0,a.default)(i.default)).join("\n"),'\n  </head>\n  <body style="word-spacing:normal;').concat(e?"background-color:".concat(e,";"):"",'">\n    ').concat((0,c.default)(y),"\n    ").concat(d,"\n  </body>\n</html>\n  ")};var o=r(n(68)),i=r(n(90)),a=r(n(221)),s=r(n(41)),l=r(n(46)),c=r(n(530)),u=n(531),p=r(n(532));t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return""!==t?'\n    <div style="display:none;font-size:1px;color:#ffffff;line-height:1px;max-height:0px;max-width:0px;opacity:0;overflow:hidden;">'.concat(t,"</div>\n  "):""},t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.buildFontsTags=function(t,e){var n=[];return(0,i.default)(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},(function(r,o){var i=new RegExp('"[^"]*font-family:[^"]*'.concat(o,'[^"]*"'),"gmi"),a=new RegExp("font-family:[^;}]*".concat(o),"gmi");(t.match(i)||e.some((function(t){return t.match(a)})))&&n.push(r)})),0<n.length?"\n      \x3c!--[if !mso]>\x3c!--\x3e\n        ".concat((0,o.default)(n,(function(t){return'<link href="'.concat(t,'" rel="stylesheet" type="text/css">')})).join("\n"),'\n        <style type="text/css">\n          ').concat((0,o.default)(n,(function(t){return"@import url(".concat(t,");")})).join("\n"),"\n        </style>\n      \x3c!--<![endif]--\x3e\n\n    "):""};var o=r(n(46)),i=r(n(40))},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if((0,o.default)(e))return"";var r=(0,i.default)(e,(function(t,e){return".".concat(e," ").concat(t)})),a=(0,i.default)(e,(function(t,e){return".moz-text-html .".concat(e," ").concat(t)}));return e=(0,i.default)(r,(function(t){return"[owa] ".concat(t)})),'\n    <style type="text/css">\n      @media only screen and (min-width:'.concat(t,") {\n        ").concat(r.join("\n"),'\n      }\n    </style>\n    <style media="screen and (min-width:').concat(t,')">\n      ').concat(a.join("\n"),"\n    </style>\n    ").concat(n?'<style type="text/css">\n'.concat(e.join("\n"),"\n</style>"):"","\n  ")};var o=r(n(148)),i=r(n(46));t.exports=e.default},function(t,e,n){"use strict";(function(t){var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.readMjmlConfig=l,e.resolveComponentPath=c,e.registerCustomComponent=u,e.handleMjmlConfigComponents=p,e.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:t.cwd(),n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:s.registerComponent,r=l(e),o=r.mjmlConfig.packages;return e=r.componentRootPath,(r=r.error)?{error:r}:p(o,e,n)};var o=r(n(21)),i=r(n(63)),a=n(141),s=n(224);function l(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:t.cwd(),r=t.cwd(),a=e;try{a=o.default.basename(e).match(/^\.mjmlconfig(\.js)?$/)?o.default.resolve(e):o.default.resolve(e,".mjmlconfig"),r=o.default.dirname(a);var s=o.default.resolve(a);return{mjmlConfig:".js"===o.default.extname(a)?(delete n.c[s],n(91)(s)):JSON.parse(i.default.readFileSync(s,"utf8")),componentRootPath:r}}catch(e){return"ENOENT"!==e.code&&console.error("Error reading mjmlconfig : ",e),{mjmlConfig:{packages:[],options:{}},mjmlConfigPath:a,componentRootPath:r,error:e}}}function c(t,e){if(!t)return null;if(!t.startsWith(".")&&!o.default.isAbsolute(t))try{return n(91).resolve(t)}catch(n){if("MODULE_NOT_FOUND"!==n.code)return console.error("Error resolving custom component path : ",n),null;try{return c("./node_modules/".concat(t),e)}catch(n){return c("./".concat(t),e)}}return n(91).resolve(o.default.resolve(e,t))}function u(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:s.registerComponent;t instanceof Function?e(t):Object.keys(t).forEach((function(n){u(t[n],e)}))}function p(t,e,r){var o={success:[],failures:[]};return t.forEach((function(t){var i,s=t;try{(s=c(t,e))&&(u((i=n(91)(s)).default||i,r),(0,a.registerDependencies)((i.default||i).dependencies||{}),o.success.push(t))}catch(i){o.failures.push({error:i,compPath:t}),"ENOENT"===i.code||"MODULE_NOT_FOUND"===i.code?console.error("Missing or unreadable custom component : ",s):console.error("Error when registering custom component : ",s,i)}})),o}}).call(this,n(14))},function(t,e){t.exports=!1},function(t,e){function n(t){throw(t=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},(t.exports=n.resolve=n).id=535},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(537),i=n(540),a=n(543),s=n(553),l=r(n(556)),c=r(n(557)),u=r(n(558)),p=r(n(559)),d=r(n(560)),f=r(n(561)),h=r(n(562)),g=r(n(563)),m=r(n(564)),v=r(n(565)),y=r(n(568)),b=r(n(569)),_=r(n(570)),w=r(n(571)),E=r(n(572)),x=r(n(573)),C=r(n(231)),T=r(n(574)),A=r(n(575)),O=r(n(576)),S=r(n(577));n=r(n(578)),n={components:[l.default,c.default,u.default,p.default,d.default,f.default,h.default,g.default,m.default,v.default,y.default,b.default,_.default,w.default,E.default,x.default,C.default,T.default,A.default,O.default,S.default,o.Social,o.SocialElement,i.Navbar,i.NavbarLink,s.Accordion,s.AccordionElement,s.AccordionText,s.AccordionTitle,a.Carousel,a.CarouselImage],dependencies:n.default},e.default=n,t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Social",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"SocialElement",{enumerable:!0,get:function(){return i.default}});var o=r(n(538)),i=r(n(539))},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=r(n(90));n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{tableVertical:{margin:"0px"}}}},{key:"getSocialElementAttributes",value:function(){var t=this,e={};return this.getAttribute("inner-padding")&&(e.padding=this.getAttribute("inner-padding")),["border-radius","color","font-family","font-size","font-weight","font-style","icon-size","icon-height","icon-padding","text-padding","line-height","text-decoration"].filter((function(e){return!(0,c.default)(t.getAttribute(e))})).reduce((function(e,n){return e[n]=t.getAttribute(n),e}),e)}},{key:"renderHorizontal",value:function(){var t=this,e=this.props.children;return"\n     \x3c!--[if mso | IE]>\n      <table\n        ".concat(this.htmlAttributes({align:this.getAttribute("align"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation"}),"\n      >\n        <tr>\n      <![endif]--\x3e\n      ").concat(this.renderChildren(e,{attributes:this.getSocialElementAttributes(),renderer:function(e){return e.constructor.isRawElement()?e.render():"\n            \x3c!--[if mso | IE]>\n              <td>\n            <![endif]--\x3e\n              <table\n                ".concat(e.htmlAttributes({align:t.getAttribute("align"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:{float:"none",display:"inline-table"}}),"\n              >\n                <tbody>\n                  ").concat(e.render(),"\n                </tbody>\n              </table>\n            \x3c!--[if mso | IE]>\n              </td>\n            <![endif]--\x3e\n          ")}}),"\n      \x3c!--[if mso | IE]>\n          </tr>\n        </table>\n      <![endif]--\x3e\n    ")}},{key:"renderVertical",value:function(){var t=this.props.children;return"\n      <table\n        ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"tableVertical"}),"\n      >\n        <tbody>\n          ").concat(this.renderChildren(t,{attributes:this.getSocialElementAttributes()}),"\n        </tbody>\n      </table>\n    ")}},{key:"render",value:function(){return"\n      ".concat("horizontal"===this.getAttribute("mode")?this.renderHorizontal():this.renderVertical(),"\n    ")}}]),n}(n(9).BodyComponent),e.default=n,(0,l.default)(n,"componentName","mj-social"),(0,l.default)(n,"allowedAttributes",{align:"enum(left,right,center)","border-radius":"unit(px,%)","container-background-color":"color",color:"color","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string","icon-size":"unit(px,%)","icon-height":"unit(px,%)","icon-padding":"unit(px,%){1,4}","inner-padding":"unit(px,%){1,4}","line-height":"unit(px,%,)",mode:"enum(horizontal,vertical)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}","table-layout":"enum(auto,fixed)","text-padding":"unit(px,%){1,4}","text-decoration":"string","vertical-align":"enum(top,bottom,middle)"}),(0,l.default)(n,"defaultAttributes",{align:"center","border-radius":"3px",color:"#333333","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","icon-size":"20px","inner-padding":null,"line-height":"22px",mode:"horizontal",padding:"10px 25px","text-decoration":"none"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),d=a(n(153)),f=a(n(42)),h=(a=n(9),{facebook:{"share-url":"https://www.facebook.com/sharer/sharer.php?u=[[URL]]","background-color":"#3b5998",src:"".concat(n="https://www.mailjet.com/images/theme/v1/icons/ico-social/","facebook.png")},twitter:{"share-url":"https://twitter.com/intent/tweet?url=[[URL]]","background-color":"#55acee",src:"".concat(n,"twitter.png")},google:{"share-url":"https://plus.google.com/share?url=[[URL]]","background-color":"#dc4e41",src:"".concat(n,"google-plus.png")},pinterest:{"share-url":"https://pinterest.com/pin/create/button/?url=[[URL]]&media=&description=","background-color":"#bd081c",src:"".concat(n,"pinterest.png")},linkedin:{"share-url":"https://www.linkedin.com/shareArticle?mini=true&url=[[URL]]&title=&summary=&source=","background-color":"#0077b5",src:"".concat(n,"linkedin.png")},instagram:{"background-color":"#3f729b",src:"".concat(n,"instagram.png")},web:{src:"".concat(n,"web.png"),"background-color":"#4BADE9"},snapchat:{src:"".concat(n,"snapchat.png"),"background-color":"#FFFA54"},youtube:{src:"".concat(n,"youtube.png"),"background-color":"#EB3323"},tumblr:{src:"".concat(n,"tumblr.png"),"share-url":"https://www.tumblr.com/widgets/share/tool?canonicalUrl=[[URL]]","background-color":"#344356"},github:{src:"".concat(n,"github.png"),"background-color":"#000000"},xing:{src:"".concat(n,"xing.png"),"share-url":"https://www.xing.com/app/user?op=share&url=[[URL]]","background-color":"#296366"},vimeo:{src:"".concat(n,"vimeo.png"),"background-color":"#53B4E7"},medium:{src:"".concat(n,"medium.png"),"background-color":"#000000"},soundcloud:{src:"".concat(n,"soundcloud.png"),"background-color":"#EF7F31"},dribbble:{src:"".concat(n,"dribbble.png"),"background-color":"#D95988"}});(0,d.default)(h,(function(t,e){h["".concat(e,"-noshare")]=o(o({},t),{},{"share-url":"[[URL]]"})})),a=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"getStyles",value:function(){var t=(n=this.getSocialAttributes())["icon-size"],e=n["icon-height"],n=n["background-color"];return{td:{padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left"),"vertical-align":this.getAttribute("vertical-align")},table:{background:n,"border-radius":this.getAttribute("border-radius"),width:t},icon:{padding:this.getAttribute("icon-padding"),"font-size":"0",height:e||t,"vertical-align":"middle",width:t},img:{"border-radius":this.getAttribute("border-radius"),display:"block"},tdText:{"vertical-align":"middle",padding:this.getAttribute("text-padding")},text:{color:this.getAttribute("color"),"font-size":this.getAttribute("font-size"),"font-weight":this.getAttribute("font-weight"),"font-style":this.getAttribute("font-style"),"font-family":this.getAttribute("font-family"),"line-height":this.getAttribute("line-height"),"text-decoration":this.getAttribute("text-decoration")}}}},{key:"getSocialAttributes",value:function(){var t=this,e=h[this.getAttribute("name")]||{},n=this.getAttribute("href");n&&(0,f.default)(e,"share-url")&&(n=e["share-url"].replace("[[URL]]",n));var r=["icon-size","icon-height","srcset","sizes","src","background-color"].reduce((function(n,r){return o(o({},n),{},i({},r,t.getAttribute(r)||e[r]))}),{});return o({href:n},r)}},{key:"render",value:function(){var t=(a=this.getSocialAttributes()).src,e=a.srcset,n=a.sizes,r=a.href,o=a["icon-size"],i=a["icon-height"],a=!!this.getAttribute("href");return"\n      <tr\n        ".concat(this.htmlAttributes({class:this.getAttribute("css-class")}),"\n      >\n        <td ").concat(this.htmlAttributes({style:"td"}),">\n          <table\n            ").concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table"}),"\n          >\n            <tbody>\n              <tr>\n                <td ").concat(this.htmlAttributes({style:"icon"}),">\n                  ").concat(a?"<a ".concat(this.htmlAttributes({href:r,rel:this.getAttribute("rel"),target:this.getAttribute("target")}),">"):"","\n                    <img\n                      ").concat(this.htmlAttributes({alt:this.getAttribute("alt"),title:this.getAttribute("title"),height:parseInt(i||o,10),src:t,style:"img",width:parseInt(o,10),sizes:n,srcset:e}),"\n                    />\n                  ").concat(a?"</a>":"","\n                </td>\n              </tr>\n            </tbody>\n          </table>\n        </td>\n        ").concat(this.getContent()?"\n          <td ".concat(this.htmlAttributes({style:"tdText"}),">\n            ").concat(a?"<a\n                ".concat(this.htmlAttributes({href:r,style:"text",rel:this.getAttribute("rel"),target:this.getAttribute("target")}),">"):"<span\n                    ".concat(this.htmlAttributes({style:"text"}),">"),"\n              ").concat(this.getContent(),"\n            ").concat(a?"</a>":"</span>","\n          </td>\n          "):"","\n      </tr>\n    ")}}]),n}(a.BodyComponent),e.default=a,(0,p.default)(a,"componentName","mj-social-element"),(0,p.default)(a,"endingTag",!0),(0,p.default)(a,"allowedAttributes",{align:"enum(left,center,right)","background-color":"color",color:"color","border-radius":"unit(px)","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string",href:"string","icon-size":"unit(px,%)","icon-height":"unit(px,%)","icon-padding":"unit(px,%){1,4}","line-height":"unit(px,%,)",name:"string","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}","text-padding":"unit(px,%){1,4}",rel:"string",src:"string",srcset:"string",sizes:"string",alt:"string",title:"string",target:"string","text-decoration":"string","vertical-align":"enum(top,middle,bottom)"}),(0,p.default)(a,"defaultAttributes",{align:"left",color:"#000","border-radius":"3px","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","line-height":"1",padding:"4px","text-padding":"4px 4px 4px 0",target:"_blank","text-decoration":"none","vertical-align":"middle"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Navbar",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"NavbarLink",{enumerable:!0,get:function(){return i.default}});var o=r(n(541)),i=r(n(542))},function(t,e,n){"use strict";var r=n(36).default,o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(3)),a=o(n(7)),s=o(n(37)),l=o(n(4)),c=o(n(5)),u=o(n(8)),p=n(9),d=r(n(53)),f=o(n(225));n=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){var t;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),(0,u.default)((0,s.default)(t),"headStyle",(function(t){return"\n      noinput.mj-menu-checkbox { display:block!important; max-height:none!important; visibility:visible!important; }\n\n      @media only screen and (max-width:".concat((0,p.makeLowerBreakpoint)(t),') {\n        .mj-menu-checkbox[type="checkbox"] ~ .mj-inline-links { display:none!important; }\n        .mj-menu-checkbox[type="checkbox"]:checked ~ .mj-inline-links,\n        .mj-menu-checkbox[type="checkbox"] ~ .mj-menu-trigger { display:block!important; max-width:none!important; max-height:none!important; font-size:inherit!important; }\n        .mj-menu-checkbox[type="checkbox"] ~ .mj-inline-links > a { display:block!important; }\n        .mj-menu-checkbox[type="checkbox"]:checked ~ .mj-menu-trigger .mj-menu-icon-close { display:block!important; }\n        .mj-menu-checkbox[type="checkbox"]:checked ~ .mj-menu-trigger .mj-menu-icon-open { display:none!important; }\n      }\n    ')})),t}return(0,a.default)(n,[{key:"getStyles",value:function(){return{div:{align:this.getAttribute("align"),width:"100%"},label:{display:"block",cursor:"pointer","mso-hide":"all","-moz-user-select":"none","user-select":"none",color:this.getAttribute("ico-color"),"font-size":this.getAttribute("ico-font-size"),"font-family":this.getAttribute("ico-font-family"),"text-transform":this.getAttribute("ico-text-transform"),"text-decoration":this.getAttribute("ico-text-decoration"),"line-height":this.getAttribute("ico-line-height"),"padding-top":this.getAttribute("ico-padding-top"),"padding-right":this.getAttribute("ico-padding-right"),"padding-bottom":this.getAttribute("ico-padding-bottom"),"padding-left":this.getAttribute("ico-padding-left"),padding:this.getAttribute("ico-padding")},trigger:{display:"none","max-height":"0px","max-width":"0px","font-size":"0px",overflow:"hidden"},icoOpen:{"mso-hide":"all"},icoClose:{display:"none","mso-hide":"all"}}}},{key:"renderHamburger",value:function(){var t=(0,f.default)(16);return"\n      ".concat((0,d.msoConditionalTag)('\n        <input type="checkbox" id="'.concat(t,'" class="mj-menu-checkbox" style="display:none !important; max-height:0; visibility:hidden;" />\n      '),!0),"\n      <div\n        ").concat(this.htmlAttributes({class:"mj-menu-trigger",style:"trigger"}),"\n      >\n        <label\n          ").concat(this.htmlAttributes({for:t,class:"mj-menu-label",style:"label",align:this.getAttribute("ico-align")}),"\n        >\n          <span\n            ").concat(this.htmlAttributes({class:"mj-menu-icon-open",style:"icoOpen"}),"\n          >\n            ").concat(this.getAttribute("ico-open"),"\n          </span>\n          <span\n            ").concat(this.htmlAttributes({class:"mj-menu-icon-close",style:"icoClose"}),"\n          >\n            ").concat(this.getAttribute("ico-close"),"\n          </span>\n        </label>\n      </div>\n    ")}},{key:"render",value:function(){return"\n        ".concat("hamburger"===this.getAttribute("hamburger")?this.renderHamburger():"","\n        <div\n          ").concat(this.htmlAttributes({class:"mj-inline-links",style:this.htmlAttributes("div")}),"\n        >\n        ").concat((0,d.default)('\n          <table role="presentation" border="0" cellpadding="0" cellspacing="0" align="'.concat(this.getAttribute("align"),'">\n            <tr>\n        ')),"\n          ").concat(this.renderChildren(this.props.children,{attributes:{navbarBaseUrl:this.getAttribute("base-url")}}),"\n          ").concat((0,d.default)("\n            </tr></table>\n          "),"\n        </div>\n    ")}}]),n}(p.BodyComponent),e.default=n,(0,u.default)(n,"componentName","mj-navbar"),(0,u.default)(n,"allowedAttributes",{align:"enum(left,center,right)","base-url":"string",hamburger:"string","ico-align":"enum(left,center,right)","ico-open":"string","ico-close":"string","ico-color":"color","ico-font-size":"unit(px,%)","ico-font-family":"string","ico-text-transform":"string","ico-padding":"unit(px,%){1,4}","ico-padding-left":"unit(px,%)","ico-padding-top":"unit(px,%)","ico-padding-right":"unit(px,%)","ico-padding-bottom":"unit(px,%)",padding:"unit(px,%){1,4}","padding-left":"unit(px,%)","padding-top":"unit(px,%)","padding-right":"unit(px,%)","padding-bottom":"unit(px,%)","ico-text-decoration":"string","ico-line-height":"unit(px,%,)"}),(0,u.default)(n,"defaultAttributes",{align:"center","base-url":null,hamburger:null,"ico-align":"center","ico-open":"&#9776;","ico-close":"&#8855;","ico-color":"#000000","ico-font-size":"30px","ico-font-family":"Ubuntu, Helvetica, Arial, sans-serif","ico-text-transform":"uppercase","ico-padding":"10px","ico-text-decoration":"none","ico-line-height":"30px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=n(9),u=r(n(53));n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{a:{display:"inline-block",color:this.getAttribute("color"),"font-family":this.getAttribute("font-family"),"font-size":this.getAttribute("font-size"),"font-style":this.getAttribute("font-style"),"font-weight":this.getAttribute("font-weight"),"letter-spacing":this.getAttribute("letter-spacing"),"line-height":this.getAttribute("line-height"),"text-decoration":this.getAttribute("text-decoration"),"text-transform":this.getAttribute("text-transform"),padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom")},td:{padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom")}}}},{key:"renderContent",value:function(){var t=this.getAttribute("href"),e=(e=this.getAttribute("navbarBaseUrl"))?"".concat(e).concat(t):t;return t=this.getAttribute("css-class")?" ".concat(this.getAttribute("css-class")):"","\n      <a\n        ".concat(this.htmlAttributes({class:"mj-link".concat(t),href:e,rel:this.getAttribute("rel"),target:this.getAttribute("target"),name:this.getAttribute("name"),style:"a"}),"\n      >\n        ").concat(this.getContent(),"\n      </a>\n    ")}},{key:"render",value:function(){return"\n        ".concat((0,u.default)("\n          <td\n            ".concat(this.htmlAttributes({style:"td",class:(0,c.suffixCssClasses)(this.getAttribute("css-class"),"outlook")}),"\n          >\n        ")),"\n        ").concat(this.renderContent(),"\n        ").concat((0,u.default)("\n          </td>\n        "),"\n      ")}}]),n}(c.BodyComponent),e.default=n,(0,l.default)(n,"componentName","mj-navbar-link"),(0,l.default)(n,"endingTag",!0),(0,l.default)(n,"allowedAttributes",{color:"color","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string",href:"string",name:"string",target:"string",rel:"string","letter-spacing":"unitWithNegative(px,em)","line-height":"unit(px,%,)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}","text-decoration":"string","text-transform":"string"}),(0,l.default)(n,"defaultAttributes",{color:"#000000","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","font-weight":"normal","line-height":"22px",padding:"15px 10px",target:"_blank","text-decoration":"none","text-transform":"uppercase"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"CarouselImage",{enumerable:!0,get:function(){return i.default}});var o=r(n(544)),i=r(n(552))},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(37)),s=r(n(4)),l=r(n(5)),c=r(n(8)),u=r(n(46)),p=r(n(226)),d=r(n(547)),f=r(n(549)),h=n(9),g=n(53),m=r(n(225));h=function(t){(0,s.default)(n,t);var e=(0,l.default)(n);function n(){var t,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return(0,o.default)(this,n),t=e.call(this,r),(0,c.default)((0,a.default)(t),"componentHeadStyle",(function(){var e=t.props.children.length,n=(0,a.default)(t).carouselId;if(!e)return"";var r="\n    .mj-carousel {\n      -webkit-user-select: none;\n      -moz-user-select: none;\n      user-select: none;\n    }\n\n    .mj-carousel-".concat(n,"-icons-cell {\n      display: table-cell !important;\n      width: ").concat(t.getAttribute("icon-width")," !important;\n    }\n\n    .mj-carousel-radio,\n    .mj-carousel-next,\n    .mj-carousel-previous {\n      display: none !important;\n    }\n\n    .mj-carousel-thumbnail,\n    .mj-carousel-next,\n    .mj-carousel-previous {\n      touch-action: manipulation;\n    }\n\n    ").concat((0,f.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio:checked ").concat((0,d.default)("+ * ",t),"+ .mj-carousel-content .mj-carousel-image")})).join(",")," {\n      display: none !important;\n    }\n\n    ").concat((0,f.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio-").concat(t+1,":checked ").concat((0,d.default)("+ * ",e-t-1),"+ .mj-carousel-content .mj-carousel-image-").concat(t+1)})).join(",")," {\n      display: block !important;\n    }\n\n    .mj-carousel-previous-icons,\n    .mj-carousel-next-icons,\n    ").concat((0,f.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio-").concat(t+1,":checked ").concat((0,d.default)("+ * ",e-t-1),"+ .mj-carousel-content .mj-carousel-next-").concat((t+1%e+e)%e+1)})),",\n    ").concat((0,f.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio-").concat(t+1,":checked ").concat((0,d.default)("+ * ",e-t-1),"+ .mj-carousel-content .mj-carousel-previous-").concat((t-1%e+e)%e+1)}))," {\n      display: block !important;\n    }\n\n    ").concat((0,f.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-radio-").concat(t+1,":checked ").concat((0,d.default)("+ * ",e-t-1),"+ .mj-carousel-content .mj-carousel-").concat(n,"-thumbnail-").concat(t+1)})).join(",")," {\n      border-color: ").concat(t.getAttribute("tb-selected-border-color")," !important;\n    }\n\n    .mj-carousel-image img + div,\n    .mj-carousel-thumbnail img + div {\n      display: none !important;\n    }\n\n    ").concat((0,f.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-thumbnail:hover ").concat((0,d.default)("+ * ",e-t-1),"+ .mj-carousel-main .mj-carousel-image")})).join(",")," {\n      display: none !important;\n    }\n\n    .mj-carousel-thumbnail:hover {\n      border-color: ").concat(t.getAttribute("tb-hover-border-color")," !important;\n    }\n\n    ").concat((0,f.default)(0,e).map((function(t){return".mj-carousel-".concat(n,"-thumbnail-").concat(t+1,":hover ").concat((0,d.default)("+ * ",e-t-1),"+ .mj-carousel-main .mj-carousel-image-").concat(t+1)})).join(",")," {\n      display: block !important;\n    }\n    "),o="\n      .mj-carousel noinput { display:block !important; }\n      .mj-carousel noinput .mj-carousel-image-1 { display: block !important;  }\n      .mj-carousel noinput .mj-carousel-arrows,\n      .mj-carousel noinput .mj-carousel-thumbnails { display: none !important; }\n\n      [owa] .mj-carousel-thumbnail { display: none !important; }\n      \n      @media screen yahoo {\n          .mj-carousel-".concat(t.carouselId,"-icons-cell,\n          .mj-carousel-previous-icons,\n          .mj-carousel-next-icons {\n              display: none !important;\n          }\n\n          .mj-carousel-").concat(n,"-radio-1:checked ").concat((0,d.default)("+ *",e-1),"+ .mj-carousel-content .mj-carousel-").concat(n,"-thumbnail-1 {\n              border-color: transparent;\n          }\n      }\n    ");return"".concat(r,"\n").concat(o)})),t.carouselId=(0,m.default)(16),t}return(0,i.default)(n,[{key:"getStyles",value:function(){return{carousel:{div:{display:"table",width:"100%","table-layout":"fixed","text-align":"center","font-size":"0px"},table:{"caption-side":"top",display:"table-caption","table-layout":"fixed",width:"100%"}},images:{td:{padding:"0px"}},controls:{div:{display:"none","mso-hide":"all"},img:{display:"block",width:this.getAttribute("icon-width"),height:"auto"},td:{"font-size":"0px",display:"none","mso-hide":"all",padding:"0px"}}}}},{key:"thumbnailsWidth",value:function(){return this.props.children.length?this.getAttribute("tb-width")||"".concat((0,p.default)([this.context.parentWidth/this.props.children.length,110]),"px"):0}},{key:"imagesAttributes",value:function(){return(0,u.default)(this.children,"attributes")}},{key:"generateRadios",value:function(){return this.renderChildren(this.props.children,{renderer:function(t){return t.renderRadio()},attributes:{carouselId:this.carouselId}})}},{key:"generateThumbnails",value:function(){return"visible"!==this.getAttribute("thumbnails")?"":this.renderChildren(this.props.children,{attributes:{"tb-border":this.getAttribute("tb-border"),"tb-border-radius":this.getAttribute("tb-border-radius"),"tb-width":this.thumbnailsWidth(),carouselId:this.carouselId},renderer:function(t){return t.renderThumbnail()}})}},{key:"generateControls",value:function(t,e){var n=this,r=parseInt(this.getAttribute("icon-width"),10);return"\n      <td\n        ".concat(this.htmlAttributes({class:"mj-carousel-".concat(this.carouselId,"-icons-cell"),style:"controls.td"}),"\n      >\n        <div\n          ").concat(this.htmlAttributes({class:"mj-carousel-".concat(t,"-icons"),style:"controls.div"}),"\n        >\n          ").concat((0,f.default)(1,this.props.children.length+1).map((function(o){return"\n              <label\n                ".concat(n.htmlAttributes({for:"mj-carousel-".concat(n.carouselId,"-radio-").concat(o),class:"mj-carousel-".concat(t," mj-carousel-").concat(t,"-").concat(o)}),"\n              >\n                <img\n                  ").concat(n.htmlAttributes({src:e,alt:t,style:"controls.img",width:r}),"\n                />\n              </label>\n            ")})).join(""),"\n        </div>\n      </td>\n    ")}},{key:"generateImages",value:function(){return"\n      <td\n        ".concat(this.htmlAttributes({style:"images.td"}),"\n      >\n        <div\n          ").concat(this.htmlAttributes({class:"mj-carousel-images"}),"\n        >\n          ").concat(this.renderChildren(this.props.children,{attributes:{"border-radius":this.getAttribute("border-radius")}}),"\n        </div>\n      </td>\n    ")}},{key:"generateCarousel",value:function(){return"\n      <table\n        ".concat(this.htmlAttributes({style:"carousel.table",border:"0",cellpadding:"0",cellspacing:"0",width:"100%",role:"presentation",class:"mj-carousel-main"}),"\n      >\n        <tbody>\n          <tr>\n            ").concat(this.generateControls("previous",this.getAttribute("left-icon")),"\n            ").concat(this.generateImages(),"\n            ").concat(this.generateControls("next",this.getAttribute("right-icon")),"\n          </tr>\n        </tbody>\n      </table>\n    ")}},{key:"renderFallback",value:function(){var t=this.props.children;return 0===t.length?"":(0,g.msoConditionalTag)(this.renderChildren([t[0]],{attributes:{"border-radius":this.getAttribute("border-radius")}}))}},{key:"render",value:function(){return"\n      ".concat((0,g.msoConditionalTag)("\n        <div\n          ".concat(this.htmlAttributes({class:"mj-carousel"}),"\n        >\n          ").concat(this.generateRadios(),"\n          <div\n            ").concat(this.htmlAttributes({class:"mj-carousel-content mj-carousel-".concat(this.carouselId,"-content"),style:"carousel.div"}),"\n          >\n            ").concat(this.generateThumbnails(),"\n            ").concat(this.generateCarousel(),"\n          </div>\n        </div>\n      "),!0),"\n      ").concat(this.renderFallback(),"\n    ")}}]),n}(h.BodyComponent),e.default=h,(0,c.default)(h,"componentName","mj-carousel"),(0,c.default)(h,"allowedAttributes",{align:"enum(left,center,right)","border-radius":"unit(px,%){1,4}","container-background-color":"color","icon-width":"unit(px,%)","left-icon":"string",padding:"unit(px,%){1,4}","padding-top":"unit(px,%)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","right-icon":"string",thumbnails:"enum(visible,hidden)","tb-border":"string","tb-border-radius":"unit(px,%)","tb-hover-border-color":"color","tb-selected-border-color":"color","tb-width":"unit(px,%)"}),(0,c.default)(h,"defaultAttributes",{align:"center","border-radius":"6px","icon-width":"44px","left-icon":"https://i.imgur.com/xTh3hln.png","right-icon":"https://i.imgur.com/os7o9kz.png",thumbnails:"visible","tb-border":"2px solid transparent","tb-border-radius":"6px","tb-hover-border-color":"#fead0d","tb-selected-border-color":"#ccc"}),t.exports=e.default},function(t,e,n){var r=n(44);t.exports=function(t,e,n){for(var o=-1,i=t.length;++o<i;){var a,s,l=t[o],c=e(l);null!=c&&(void 0===a?c==c&&!r(c):n(c,a))&&(a=c,s=l)}return s}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,n){var r=n(548),o=n(142),i=n(59),a=n(45);t.exports=function(t,e,n){return e=(n?o(t,e,n):void 0===e)?1:i(e),r(a(t),e)}},function(t,e){var n=Math.floor;t.exports=function(t,e){var r="";if(!t||e<1||9007199254740991<e)return r;for(;e%2&&(r+=t),(e=n(e/2))&&(t+=t),e;);return r}},function(t,e,n){n=n(550)(),t.exports=n},function(t,e,n){var r=n(551),o=n(142),i=n(175);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},function(t,e){var n=Math.ceil,r=Math.max;t.exports=function(t,e,o,i){for(var a=-1,s=r(n((e-t)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=t,t+=o;return l}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=(r=r(n(8)),n(9));n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{images:{img:{"border-radius":this.getAttribute("border-radius"),display:"block",width:this.context.containerWidth,"max-width":"100%",height:"auto"},firstImageDiv:{},otherImageDiv:{display:"none","mso-hide":"all"}},radio:{input:{display:"none","mso-hide":"all"}},thumbnails:{a:{border:this.getAttribute("tb-border"),"border-radius":this.getAttribute("tb-border-radius"),display:"inline-block",overflow:"hidden",width:this.getAttribute("tb-width")},img:{display:"block",width:"100%",height:"auto"}}}}},{key:"renderThumbnail",value:function(){var t=(a=this.attributes).carouselId,e=a.src,n=a.alt,r=a["tb-width"],o=a.target,i=this.props.index+1,a=(0,l.suffixCssClasses)(this.getAttribute("css-class"),"thumbnail");return"\n      <a\n        ".concat(this.htmlAttributes({style:"thumbnails.a",href:"#".concat(i),target:o,class:"mj-carousel-thumbnail mj-carousel-".concat(t,"-thumbnail mj-carousel-").concat(t,"-thumbnail-").concat(i," ").concat(a)}),"\n      >\n        <label ").concat(this.htmlAttributes({for:"mj-carousel-".concat(t,"-radio-").concat(i)}),">\n          <img\n            ").concat(this.htmlAttributes({style:"thumbnails.img",src:this.getAttribute("thumbnails-src")||e,alt:n,width:parseInt(r,10)}),"\n          />\n        </label>\n      </a>\n    ")}},{key:"renderRadio",value:function(){var t=this.props.index,e=this.getAttribute("carouselId");return"\n      <input\n        ".concat(this.htmlAttributes({class:"mj-carousel-radio mj-carousel-".concat(e,"-radio mj-carousel-").concat(e,"-radio-").concat(t+1),checked:0===t?"checked":null,type:"radio",name:"mj-carousel-radio-".concat(e),id:"mj-carousel-".concat(e,"-radio-").concat(t+1),style:"radio.input"}),"\n      />\n    ")}},{key:"render",value:function(){var t=(i=this.attributes).src,e=i.alt,n=i.href,r=i.rel,o=i.title,i=this.props.index;return t="\n      <img\n        ".concat(this.htmlAttributes({title:o,src:t,alt:e,style:"images.img",width:parseInt(this.context.containerWidth,10),border:"0"})," />\n    "),e=this.getAttribute("css-class")||"","\n      <div\n        ".concat(this.htmlAttributes({class:"mj-carousel-image mj-carousel-image-".concat(i+1," ").concat(e),style:0===i?"images.firstImageDiv":"images.otherImageDiv"}),"\n      >\n        ").concat(n?"<a ".concat(this.htmlAttributes({href:n,rel:r,target:"_blank"}),">").concat(t,"</a>"):t,"\n      </div>\n    ")}}]),n}(l.BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-carousel-image"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"allowedAttributes",{alt:"string",href:"string",rel:"string",target:"string",title:"string",src:"string","thumbnails-src":"string","border-radius":"unit(px,%){1,4}","tb-border":"string","tb-border-radius":"unit(px,%){1,4}"}),(0,r.default)(n,"defaultAttributes",{target:"_blank"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Accordion",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"AccordionElement",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"AccordionText",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"AccordionTitle",{enumerable:!0,get:function(){return s.default}});var o=r(n(554)),i=r(n(555)),a=r(n(227)),s=r(n(228))},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(37)),u=a(n(4)),p=a(n(5)),d=a(n(8));n=function(t){(0,u.default)(n,t);var e=(0,p.default)(n);function n(){var t;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=e.call.apply(e,[this].concat(o)),(0,d.default)((0,c.default)(t),"headStyle",(function(){return"\n      noinput.mj-accordion-checkbox { display:block!important; }\n\n      @media yahoo, only screen and (min-width:0) {\n        .mj-accordion-element { display:block; }\n        input.mj-accordion-checkbox, .mj-accordion-less { display:none!important; }\n        input.mj-accordion-checkbox + * .mj-accordion-title { cursor:pointer; touch-action:manipulation; -webkit-user-select:none; -moz-user-select:none; user-select:none; }\n        input.mj-accordion-checkbox + * .mj-accordion-content { overflow:hidden; display:none; }\n        input.mj-accordion-checkbox + * .mj-accordion-more { display:block!important; }\n        input.mj-accordion-checkbox:checked + * .mj-accordion-content { display:block; }\n        input.mj-accordion-checkbox:checked + * .mj-accordion-more { display:none!important; }\n        input.mj-accordion-checkbox:checked + * .mj-accordion-less { display:block!important; }\n      }\n\n      .moz-text-html input.mj-accordion-checkbox + * .mj-accordion-title { cursor: auto; touch-action: auto; -webkit-user-select: auto; -moz-user-select: auto; user-select: auto; }\n      .moz-text-html input.mj-accordion-checkbox + * .mj-accordion-content { overflow: hidden; display: block; }\n      .moz-text-html input.mj-accordion-checkbox + * .mj-accordion-ico { display: none; }\n\n      @goodbye { @gmail }\n    "})),t}return(0,l.default)(n,[{key:"getStyles",value:function(){return{table:{width:"100%","border-collapse":"collapse",border:this.getAttribute("border"),"border-bottom":"none","font-family":this.getAttribute("font-family")}}}},{key:"render",value:function(){var t=this,e=["border","icon-align","icon-width","icon-height","icon-position","icon-wrapped-url","icon-wrapped-alt","icon-unwrapped-url","icon-unwrapped-alt"].reduce((function(e,n){return o(o({},e),{},i({},n,t.getAttribute(n)))}),{});return"\n      <table\n        ".concat(this.htmlAttributes({cellspacing:"0",cellpadding:"0",class:"mj-accordion",style:"table"}),"\n      >\n        <tbody>\n          ").concat(this.renderChildren(this.props.children,{attributes:e}),"\n        </tbody>\n      </table>\n    ")}}]),n}(n(9).BodyComponent),e.default=n,(0,d.default)(n,"componentName","mj-accordion"),(0,d.default)(n,"allowedAttributes",{"container-background-color":"color",border:"string","font-family":"string","icon-align":"enum(top,middle,bottom)","icon-width":"unit(px,%)","icon-height":"unit(px,%)","icon-wrapped-url":"string","icon-wrapped-alt":"string","icon-unwrapped-url":"string","icon-unwrapped-alt":"string","icon-position":"enum(left,right)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}"}),(0,d.default)(n,"defaultAttributes",{border:"2px solid black","font-family":"Ubuntu, Helvetica, Arial, sans-serif","icon-align":"middle","icon-wrapped-url":"https://i.imgur.com/bIXv1bk.png","icon-wrapped-alt":"+","icon-unwrapped-url":"https://i.imgur.com/w4uTygT.png","icon-unwrapped-alt":"-","icon-position":"right","icon-height":"32px","icon-width":"32px",padding:"10px 25px"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),d=a(n(47)),f=n(9),h=a(n(53)),g=a(n(227)),m=a(n(228));f=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"getStyles",value:function(){return{td:{padding:"0px","background-color":this.getAttribute("background-color")},label:{"font-size":"13px","font-family":this.getAttribute("font-family")},input:{display:"none"}}}},{key:"handleMissingChildren",value:function(){var t=this,e=this.props.children,n=["border","icon-align","icon-width","icon-height","icon-position","icon-wrapped-url","icon-wrapped-alt","icon-unwrapped-url","icon-unwrapped-alt"].reduce((function(e,n){return o(o({},e),{},i({},n,t.getAttribute(n)))}),{}),r=[];return(0,d.default)(e,{tagName:"mj-accordion-title"})||r.push(new m.default({attributes:n,context:this.getChildContext()}).render()),r.push(this.renderChildren(e,{attributes:n})),(0,d.default)(e,{tagName:"mj-accordion-text"})||r.push(new g.default({attributes:n,context:this.getChildContext()}).render()),r.join("\n")}},{key:"render",value:function(){return"\n      <tr\n        ".concat(this.htmlAttributes({class:this.getAttribute("css-class")}),"\n      >\n        <td ").concat(this.htmlAttributes({style:"td"}),">\n          <label\n            ").concat(this.htmlAttributes({class:"mj-accordion-element",style:"label"}),"\n          >\n            ").concat((0,h.default)("\n              <input\n                ".concat(this.htmlAttributes({class:"mj-accordion-checkbox",type:"checkbox",style:"input"}),"\n              />\n            "),!0),"\n            <div>\n              ").concat(this.handleMissingChildren(),"\n            </div>\n          </label>\n        </td>\n      </tr>\n    ")}}]),n}(f.BodyComponent),e.default=f,(0,p.default)(f,"componentName","mj-accordion-element"),(0,p.default)(f,"allowedAttributes",{"background-color":"color",border:"string","font-family":"string","icon-align":"enum(top,middle,bottom)","icon-width":"unit(px,%)","icon-height":"unit(px,%)","icon-wrapped-url":"string","icon-wrapped-alt":"string","icon-unwrapped-url":"string","icon-unwrapped-alt":"string","icon-position":"enum(left,right)"}),(0,p.default)(f,"defaultAttributes",{title:{img:{width:"32px",height:"32px"}}}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n(3)),s=i(n(7)),l=i(n(4)),c=i(n(5));i=i(n(8)),n=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){return(0,a.default)(this,n),e.apply(this,arguments)}return(0,s.default)(n,[{key:"getChildContext",value:function(){return o(o({},this.context),{},{containerWidth:this.getAttribute("width")})}},{key:"getStyles",value:function(){return{div:{"background-color":this.getAttribute("background-color")}}}},{key:"render",value:function(){var t=(e=this.context).setBackgroundColor,e=(n=e.globalData).lang,n=n.dir;return t(this.getAttribute("background-color")),"\n      <div\n        ".concat(this.htmlAttributes({class:this.getAttribute("css-class"),style:"div",lang:e,dir:n}),"\n      >\n        ").concat(this.renderChildren(),"\n      </div>\n    ")}}]),n}(n(9).BodyComponent),e.default=n,(0,i.default)(n,"componentName","mj-body"),(0,i.default)(n,"allowedAttributes",{width:"unit(px)","background-color":"color"}),(0,i.default)(n,"defaultAttributes",{width:"600px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){return this.handlerChildren()}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-head"),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),d=a(n(41)),f=a(n(168)),h=a(n(40));n=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"handler",value:function(){var t=this.context.add,e=this.props.children;(0,h.default)(e,(function(e){var n=e.tagName,r=e.attributes;e=e.children,"mj-class"===n?(t("classes",r.name,(0,f.default)(r,["name"])),t("classesDefault",r.name,(0,d.default)(e,(function(t,e){var n=e.tagName;return e=e.attributes,o(o({},t),{},i({},n,e))}),{}))):t("defaultAttributes",n,r)}))}}]),n}(n(9).HeadComponent),e.default=n,(0,p.default)(n,"componentName","mj-attributes"),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("breakpoint",this.getAttribute("width"))}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-breakpoint"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"allowedAttributes",{width:"unit(px)"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),d=a(n(42));n=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"handler",value:function(){var t=this.context.add;this.props.children.filter((function(t){return"mj-selector"===t.tagName})).forEach((function(e){var n=e.attributes;e=e.children,n=n.path,e=e.filter((function(t){return"mj-html-attribute"===t.tagName&&!!(0,d.default)(t,"attributes.name")})).reduce((function(t,e){return o(o({},t),{},i({},e.attributes.name,e.content))}),{}),t("htmlAttributes",n,e)}))}}]),n}(n(9).HeadComponent),e.default=n,(0,p.default)(n,"componentName","mj-html-attributes"),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("fonts",this.getAttribute("name"),this.getAttribute("href"))}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-font"),(0,r.default)(n,"allowedAttributes",{name:"string",href:"string"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("preview",this.getContent())}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-preview"),(0,r.default)(n,"endingTag",!0),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("inline"===this.getAttribute("inline")?"inlineStyle":"style",this.getContent())}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-style"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"allowedAttributes",{inline:"string"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"handler",value:function(){(0,this.context.add)("title",this.getContent())}}]),n}(n(9).HeadComponent),e.default=n,(0,r.default)(n,"componentName","mj-title"),(0,r.default)(n,"endingTag",!0),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(37)),u=a(n(4)),p=a(n(5)),d=a(n(8)),f=a(n(140)),h=a(n(229)),g=a(n(230)),m=a(n(133)),v=n(9),y=a(n(35)),b=(0,m.default)((0,f.default)(g.default),(0,h.default)(" "));v=function(t){(0,u.default)(n,t);var e=(0,p.default)(n);function n(){var t;(0,s.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),(0,d.default)((0,c.default)(t),"getBackground",(function(){return b([t.getAttribute("background-color")].concat(function(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.getAttribute("background-url")?["url('".concat(t.getAttribute("background-url"),"')"),"no-repeat","".concat(t.getAttribute("background-position")," / cover")]:[])))})),t}return(0,l.default)(n,[{key:"getChildContext",value:function(){var t=this.context.containerWidth,e=this.getShorthandAttrValue("padding","left")+this.getShorthandAttrValue("padding","right"),n="".concat(parseFloat(t),"px"),r=(i=(0,y.default)(n,{parseFloatToInt:!1})).unit,i=i.parsedWidth;return n="".concat("%"===r?parseFloat(t)*i/100-e:i-e,"px"),o(o({},this.context),{},{containerWidth:n})}},{key:"getStyles",value:function(){var t=this.context.containerWidth,e=Math.round(parseInt(this.getAttribute("background-height"),10)/parseInt(this.getAttribute("background-width"),10)*100),n=this.getAttribute("background-width")||t;return{div:{margin:"0 auto","max-width":t},table:{width:"100%"},tr:{"vertical-align":"top"},"td-fluid":{width:"0.01%","padding-bottom":"".concat(e,"%"),"mso-padding-bottom-alt":"0"},"outlook-table":{width:t},"outlook-td":{"line-height":0,"font-size":0,"mso-line-height-rule":"exactly"},"outlook-inner-table":{width:t},"outlook-image":{border:"0",height:this.getAttribute("background-height"),"mso-position-horizontal":"center",position:"absolute",top:0,width:n,"z-index":"-3"},"outlook-inner-td":{"background-color":this.getAttribute("inner-background-color"),padding:this.getAttribute("inner-padding"),"padding-top":this.getAttribute("inner-padding-top"),"padding-left":this.getAttribute("inner-padding-left"),"padding-right":this.getAttribute("inner-padding-right"),"padding-bottom":this.getAttribute("inner-padding-bottom")},"inner-table":{width:"100%",margin:"0px"},"inner-div":{"background-color":this.getAttribute("inner-background-color"),float:this.getAttribute("align"),margin:"0px auto",width:this.getAttribute("width")}}}},{key:"renderContent",value:function(){var t=this.context.containerWidth,e=this.props.children;return"\n      \x3c!--[if mso | IE]>\n        <table\n          ".concat(this.htmlAttributes({align:this.getAttribute("align"),border:"0",cellpadding:"0",cellspacing:"0",style:"outlook-inner-table",width:t.replace("px","")}),"\n        >\n          <tr>\n            <td ").concat(this.htmlAttributes({style:"outlook-inner-td"}),">\n      <![endif]--\x3e\n      <div\n        ").concat(this.htmlAttributes({align:this.getAttribute("align"),class:"mj-hero-content",style:"inner-div"}),"\n      >\n        <table\n          ").concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"inner-table"}),"\n        >\n          <tbody>\n            <tr>\n              <td ").concat(this.htmlAttributes({style:"inner-td"})," >\n                <table\n                  ").concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"inner-table"}),"\n                >\n                  <tbody>\n                    ").concat(this.renderChildren(e,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n                        <tr>\n                          <td\n                            ".concat(t.htmlAttributes({align:t.getAttribute("align"),background:t.getAttribute("container-background-color"),class:t.getAttribute("css-class"),style:{background:t.getAttribute("container-background-color"),"font-size":"0px",padding:t.getAttribute("padding"),"padding-top":t.getAttribute("padding-top"),"padding-right":t.getAttribute("padding-right"),"padding-bottom":t.getAttribute("padding-bottom"),"padding-left":t.getAttribute("padding-left"),"word-break":"break-word"}}),"\n                          >\n                            ").concat(t.render(),"\n                          </td>\n                        </tr>\n                      ")}}),"\n                  </tbody>\n                </table>\n              </td>\n            </tr>\n          </tbody>\n        </table>\n      </div>\n      \x3c!--[if mso | IE]>\n            </td>\n          </tr>\n        </table>\n      <![endif]--\x3e\n    ")}},{key:"renderMode",value:function(){var t={background:this.getAttribute("background-url"),style:{background:this.getBackground(),"background-position":this.getAttribute("background-position"),"background-repeat":"no-repeat","border-radius":this.getAttribute("border-radius"),padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-left":this.getAttribute("padding-left"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom"),"vertical-align":this.getAttribute("vertical-align")}};if("fluid-height"===this.getAttribute("mode")){var e=this.htmlAttributes({style:"td-fluid"});return"\n          <td ".concat(e," />\n          <td ").concat(this.htmlAttributes(o({},t)),">\n            ").concat(this.renderContent(),"\n          </td>\n          <td ").concat(e," />\n        ")}return e=parseInt(this.getAttribute("height"),10)-this.getShorthandAttrValue("padding","top")-this.getShorthandAttrValue("padding","bottom"),"\n          <td\n            ".concat(this.htmlAttributes(o(o({},t),{},{height:e,style:o(o({},t.style),{},{height:"".concat(e,"px")})})),"\n          >\n            ").concat(this.renderContent(),"\n          </td>\n        ")}},{key:"render",value:function(){var t=this.context.containerWidth;return"\n      \x3c!--[if mso | IE]>\n        <table\n          ".concat(this.htmlAttributes({align:"center",border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"outlook-table",width:parseInt(t,10)}),"\n        >\n          <tr>\n            <td ").concat(this.htmlAttributes({style:"outlook-td"}),">\n              <v:image\n                ").concat(this.htmlAttributes({style:"outlook-image",src:this.getAttribute("background-url"),"xmlns:v":"urn:schemas-microsoft-com:vml"}),"\n              />\n      <![endif]--\x3e\n      <div\n        ").concat(this.htmlAttributes({align:this.getAttribute("align"),class:this.getAttribute("css-class"),style:"div"}),"\n      >\n        <table\n          ").concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table"}),"\n        >\n          <tbody>\n            <tr\n              ").concat(this.htmlAttributes({style:"tr"}),"\n            >\n              ").concat(this.renderMode(),"\n            </tr>\n          </tbody>\n      </table>\n    </div>\n    \x3c!--[if mso | IE]>\n          </td>\n        </tr>\n      </table>\n    <![endif]--\x3e\n    ")}}]),n}(v.BodyComponent),e.default=v,(0,d.default)(v,"componentName","mj-hero"),(0,d.default)(v,"allowedAttributes",{mode:"string",height:"unit(px,%)","background-url":"string","background-width":"unit(px,%)","background-height":"unit(px,%)","background-position":"string","border-radius":"string","container-background-color":"color","inner-background-color":"color","inner-padding":"unit(px,%){1,4}","inner-padding-top":"unit(px,%)","inner-padding-left":"unit(px,%)","inner-padding-right":"unit(px,%)","inner-padding-bottom":"unit(px,%)",padding:"unit(px,%){1,4}","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)","background-color":"color","vertical-align":"enum(top,bottom,middle)"}),(0,d.default)(v,"defaultAttributes",{mode:"fixed-height",height:"0px","background-url":null,"background-position":"center center",padding:"0px","padding-bottom":null,"padding-left":null,"padding-right":null,"padding-top":null,"background-color":"#ffffff","vertical-align":"top"}),t.exports=e.default},function(t,e){var n=Array.prototype.join;t.exports=function(t,e){return null==t?"":n.call(t,e)}},function(t,e){t.exports={cap:!1,curry:!1,fixed:!1,immutable:!1,rearg:!1}},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=n(9),u=r(n(35));c=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{table:{"border-collapse":"separate",width:this.getAttribute("width"),"line-height":"100%"},td:{border:this.getAttribute("border"),"border-bottom":this.getAttribute("border-bottom"),"border-left":this.getAttribute("border-left"),"border-radius":this.getAttribute("border-radius"),"border-right":this.getAttribute("border-right"),"border-top":this.getAttribute("border-top"),cursor:"auto","font-style":this.getAttribute("font-style"),height:this.getAttribute("height"),"mso-padding-alt":this.getAttribute("inner-padding"),"text-align":this.getAttribute("text-align"),background:this.getAttribute("background-color")},content:{display:"inline-block",width:this.calculateAWidth(this.getAttribute("width")),background:this.getAttribute("background-color"),color:this.getAttribute("color"),"font-family":this.getAttribute("font-family"),"font-size":this.getAttribute("font-size"),"font-style":this.getAttribute("font-style"),"font-weight":this.getAttribute("font-weight"),"line-height":this.getAttribute("line-height"),"letter-spacing":this.getAttribute("letter-spacing"),margin:"0","text-decoration":this.getAttribute("text-decoration"),"text-transform":this.getAttribute("text-transform"),padding:this.getAttribute("inner-padding"),"mso-padding-alt":"0px","border-radius":this.getAttribute("border-radius")}}}},{key:"calculateAWidth",value:function(t){if(!t)return null;var e=(0,u.default)(t),n=e.parsedWidth;return"px"!==e.unit?null:(t=this.getBoxWidths().borders,e=this.getShorthandAttrValue("inner-padding","left")+this.getShorthandAttrValue("inner-padding","right"),"".concat(n-e-t,"px"))}},{key:"render",value:function(){var t=this.getAttribute("href")?"a":"p";return"\n      <table\n        ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table"}),"\n      >\n        <tbody>\n          <tr>\n            <td\n              ").concat(this.htmlAttributes({align:"center",bgcolor:"none"===this.getAttribute("background-color")?void 0:this.getAttribute("background-color"),role:"presentation",style:"td",valign:this.getAttribute("vertical-align")}),"\n            >\n              <").concat(t,"\n                ").concat(this.htmlAttributes({href:this.getAttribute("href"),name:this.getAttribute("name"),rel:this.getAttribute("rel"),title:this.getAttribute("title"),style:"content",target:"a"==t?this.getAttribute("target"):void 0}),"\n              >\n                ").concat(this.getContent(),"\n              </").concat(t,">\n            </td>\n          </tr>\n        </tbody>\n      </table>\n    ")}}]),n}(c.BodyComponent),e.default=c,(0,l.default)(c,"componentName","mj-button"),(0,l.default)(c,"endingTag",!0),(0,l.default)(c,"allowedAttributes",{align:"enum(left,center,right)","background-color":"color","border-bottom":"string","border-left":"string","border-radius":"string","border-right":"string","border-top":"string",border:"string",color:"color","container-background-color":"color","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string",height:"unit(px,%)",href:"string",name:"string",title:"string","inner-padding":"unit(px,%){1,4}","letter-spacing":"unitWithNegative(px,em)","line-height":"unit(px,%,)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}",rel:"string",target:"string","text-decoration":"string","text-transform":"string","vertical-align":"enum(top,bottom,middle)","text-align":"enum(left,right,center)",width:"unit(px,%)"}),(0,l.default)(c,"defaultAttributes",{align:"center","background-color":"#414141",border:"none","border-radius":"3px",color:"#ffffff","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","font-weight":"normal","inner-padding":"10px 25px","line-height":"120%",padding:"10px 25px",target:"_blank","text-decoration":"none","text-transform":"none","vertical-align":"middle"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n(3)),s=i(n(7)),l=i(n(4)),c=i(n(5)),u=i(n(8)),p=n(9),d=i(n(35));p=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){return(0,a.default)(this,n),e.apply(this,arguments)}return(0,s.default)(n,[{key:"getChildContext",value:function(){var t=this.context.containerWidth,e=this.props.nonRawSiblings,n=(i=this.getBoxWidths()).borders,r=i.paddings+n+(this.getShorthandAttrValue("inner-border","left")+this.getShorthandAttrValue("inner-border","right")),i=this.getAttribute("width")||"".concat(parseFloat(t)/e,"px");return e=(n=(0,d.default)(i,{parseFloatToInt:!1})).unit,n=n.parsedWidth,i="".concat("%"===e?parseFloat(t)*n/100-r:n-r,"px"),o(o({},this.context),{},{containerWidth:i})}},{key:"getStyles",value:function(){var t={"background-color":this.getAttribute("background-color"),border:this.getAttribute("border"),"border-bottom":this.getAttribute("border-bottom"),"border-left":this.getAttribute("border-left"),"border-radius":this.getAttribute("border-radius"),"border-right":this.getAttribute("border-right"),"border-top":this.getAttribute("border-top"),"vertical-align":this.getAttribute("vertical-align")};return{div:{"font-size":"0px","text-align":"left",direction:this.getAttribute("direction"),display:"inline-block","vertical-align":this.getAttribute("vertical-align"),width:this.getMobileWidth()},table:o({},this.hasGutter()?{"background-color":this.getAttribute("inner-background-color"),border:this.getAttribute("inner-border"),"border-bottom":this.getAttribute("inner-border-bottom"),"border-left":this.getAttribute("inner-border-left"),"border-radius":this.getAttribute("inner-border-radius"),"border-right":this.getAttribute("inner-border-right"),"border-top":this.getAttribute("inner-border-top")}:t),tdOutlook:{"vertical-align":this.getAttribute("vertical-align"),width:this.getWidthAsPixel()},gutter:o(o({},t),{},{padding:this.getAttribute("padding"),"padding-top":this.getAttribute("padding-top"),"padding-right":this.getAttribute("padding-right"),"padding-bottom":this.getAttribute("padding-bottom"),"padding-left":this.getAttribute("padding-left")})}}},{key:"getMobileWidth",value:function(){var t=this.context.containerWidth,e=this.props.nonRawSiblings,n=this.getAttribute("width");if("mobileWidth"!==this.getAttribute("mobileWidth"))return"100%";if(void 0===n)return"".concat(parseInt(100/e,10),"%");var r=(0,d.default)(n,{parseFloatToInt:!1}),o=(e=r.unit,r.parsedWidth);return"%"===e?n:"".concat(o/parseInt(t,10)*100,"%")}},{key:"getWidthAsPixel",value:function(){var t=this.context.containerWidth,e=(n=(0,d.default)(this.getParsedWidth(!0),{parseFloatToInt:!1})).unit,n=n.parsedWidth;return"".concat("%"===e?parseFloat(t)*n/100:n,"px")}},{key:"getParsedWidth",value:function(t){var e=this.props.nonRawSiblings,n=this.getAttribute("width")||"".concat(100/e,"%");return n=(e=(0,d.default)(n,{parseFloatToInt:!1})).unit,e=e.parsedWidth,t?"".concat(e).concat(n):{unit:n,parsedWidth:e}}},{key:"getColumnClass",value:function(){var t,e=this.context.addMediaQuery,n=(r=this.getParsedWidth()).parsedWidth,r=r.unit,o=n.toString().replace(".","-");return e(t="%"===r?"mj-column-per-".concat(o):"mj-column-px-".concat(o),{parsedWidth:n,unit:r}),t}},{key:"hasGutter",value:function(){var t=this;return["padding","padding-bottom","padding-left","padding-right","padding-top"].some((function(e){return null!=t.getAttribute(e)}))}},{key:"renderGutter",value:function(){return"\n      <table\n        ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",width:"100%"}),"\n      >\n        <tbody>\n          <tr>\n            <td ").concat(this.htmlAttributes({style:"gutter"}),">\n              ").concat(this.renderColumn(),"\n            </td>\n          </tr>\n        </tbody>\n      </table>\n    ")}},{key:"renderColumn",value:function(){var t=this.props.children;return"\n      <table\n        ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table",width:"100%"}),"\n      >\n        <tbody>\n          ").concat(this.renderChildren(t,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n              <tr>\n                <td\n                  ".concat(t.htmlAttributes({align:t.getAttribute("align"),"vertical-align":t.getAttribute("vertical-align"),class:t.getAttribute("css-class"),style:{background:t.getAttribute("container-background-color"),"font-size":"0px",padding:t.getAttribute("padding"),"padding-top":t.getAttribute("padding-top"),"padding-right":t.getAttribute("padding-right"),"padding-bottom":t.getAttribute("padding-bottom"),"padding-left":t.getAttribute("padding-left"),"word-break":"break-word"}}),"\n                >\n                  ").concat(t.render(),"\n                </td>\n              </tr>\n            ")}}),"\n        </tbody>\n      </table>\n    ")}},{key:"render",value:function(){var t="".concat(this.getColumnClass()," mj-outlook-group-fix");return this.getAttribute("css-class")&&(t+=" ".concat(this.getAttribute("css-class"))),"\n      <div\n        ".concat(this.htmlAttributes({class:t,style:"div"}),"\n      >\n        ").concat(this.hasGutter()?this.renderGutter():this.renderColumn(),"\n      </div>\n    ")}}]),n}(p.BodyComponent),e.default=p,(0,u.default)(p,"componentName","mj-column"),(0,u.default)(p,"allowedAttributes",{"background-color":"color",border:"string","border-bottom":"string","border-left":"string","border-radius":"unit(px,%){1,4}","border-right":"string","border-top":"string",direction:"enum(ltr,rtl)","inner-background-color":"color","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)","inner-border":"string","inner-border-bottom":"string","inner-border-left":"string","inner-border-radius":"unit(px,%){1,4}","inner-border-right":"string","inner-border-top":"string",padding:"unit(px,%){1,4}","vertical-align":"enum(top,bottom,middle)",width:"unit(px,%)"}),(0,u.default)(p,"defaultAttributes",{direction:"ltr","vertical-align":"top"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n(3)),s=i(n(7)),l=i(n(4)),c=i(n(5)),u=i(n(8)),p=n(9),d=i(n(35));p=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){return(0,a.default)(this,n),e.apply(this,arguments)}return(0,s.default)(n,[{key:"getStyles",value:function(){var t=this,e="0px auto";return"left"===this.getAttribute("align")?e="0px":"right"===this.getAttribute("align")&&(e="0px 0px 0px auto"),{p:e={"border-top":["style","width","color"].map((function(e){return t.getAttribute("border-".concat(e))})).join(" "),"font-size":"1px",margin:e,width:this.getAttribute("width")},outlook:o(o({},e),{},{width:this.getOutlookWidth()})}}},{key:"getOutlookWidth",value:function(){var t=this.context.containerWidth,e=this.getShorthandAttrValue("padding","left")+this.getShorthandAttrValue("padding","right"),n=this.getAttribute("width"),r=(0,d.default)(n),o=r.parsedWidth;switch(r.unit){case"%":var i=parseInt(t,10)-e,a=parseInt(o,10)/100;return"".concat(i*a,"px");case"px":return n;default:return"".concat(parseInt(t,10)-e,"px")}}},{key:"renderAfter",value:function(){return"\n      \x3c!--[if mso | IE]>\n        <table\n          ".concat(this.htmlAttributes({align:this.getAttribute("align"),border:"0",cellpadding:"0",cellspacing:"0",style:"outlook",role:"presentation",width:this.getOutlookWidth()}),'\n        >\n          <tr>\n            <td style="height:0;line-height:0;">\n              &nbsp;\n            </td>\n          </tr>\n        </table>\n      <![endif]--\x3e\n    ')}},{key:"render",value:function(){return"\n      <p\n        ".concat(this.htmlAttributes({style:"p"}),"\n      >\n      </p>\n      ").concat(this.renderAfter(),"\n    ")}}]),n}(p.BodyComponent),e.default=p,(0,u.default)(p,"componentName","mj-divider"),(0,u.default)(p,"allowedAttributes",{"border-color":"color","border-style":"string","border-width":"unit(px)","container-background-color":"color",padding:"unit(px,%){1,4}","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",width:"unit(px,%)",align:"enum(left,center,right)"}),(0,u.default)(p,"defaultAttributes",{"border-color":"#000000","border-style":"solid","border-width":"4px",padding:"10px 25px",width:"100%",align:"center"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var i=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n(3)),s=i(n(7)),l=i(n(4)),c=i(n(5)),u=i(n(8)),p=n(9),d=i(n(35));p=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){return(0,a.default)(this,n),e.apply(this,arguments)}return(0,s.default)(n,[{key:"getChildContext",value:function(){var t=this.context.containerWidth,e=(a=this.props).nonRawSiblings,n=a.children,r=this.getShorthandAttrValue("padding","left")+this.getShorthandAttrValue("padding","right"),i=this.getAttribute("width")||"".concat(parseFloat(t)/e,"px"),a=(e=(a=(0,d.default)(i,{parseFloatToInt:!1})).unit,a.parsedWidth);return i="".concat("%"===e?parseFloat(t)*a/100-r:a-r,"px"),o(o({},this.context),{},{containerWidth:i,nonRawSiblings:n.length})}},{key:"getStyles",value:function(){return{div:{"font-size":"0","line-height":"0","text-align":"left",display:"inline-block",width:"100%",direction:this.getAttribute("direction"),"vertical-align":this.getAttribute("vertical-align"),"background-color":this.getAttribute("background-color")},tdOutlook:{"vertical-align":this.getAttribute("vertical-align"),width:this.getWidthAsPixel()}}}},{key:"getParsedWidth",value:function(t){var e=this.props.nonRawSiblings,n=this.getAttribute("width")||"".concat(100/e,"%");return n=(e=(0,d.default)(n,{parseFloatToInt:!1})).unit,e=e.parsedWidth,t?"".concat(e).concat(n):{unit:n,parsedWidth:e}}},{key:"getWidthAsPixel",value:function(){var t=this.context.containerWidth,e=(n=(0,d.default)(this.getParsedWidth(!0),{parseFloatToInt:!1})).unit,n=n.parsedWidth;return"".concat("%"===e?parseFloat(t)*n/100:n,"px")}},{key:"getColumnClass",value:function(){var t,e=this.context.addMediaQuery,n=this.getParsedWidth(),r=n.parsedWidth;return e(t="%"===(n=n.unit)?"mj-column-per-".concat(parseInt(r,10)):"mj-column-px-".concat(parseInt(r,10)),{parsedWidth:r,unit:n}),t}},{key:"render",value:function(){var t=(o=this.props).children,e=o.nonRawSiblings,n=this.getChildContext().containerWidth,r=this.context.containerWidth,o="".concat(this.getColumnClass()," mj-outlook-group-fix");return this.getAttribute("css-class")&&(o+=" ".concat(this.getAttribute("css-class"))),"\n      <div\n        ".concat(this.htmlAttributes({class:o,style:"div"}),"\n      >\n        \x3c!--[if mso | IE]>\n        <table\n          ").concat(this.htmlAttributes({bgcolor:"none"===this.getAttribute("background-color")?void 0:this.getAttribute("background-color"),border:"0",cellpadding:"0",cellspacing:"0",role:"presentation"}),"\n        >\n          <tr>\n        <![endif]--\x3e\n          ").concat(this.renderChildren(t,{attributes:{mobileWidth:"mobileWidth"},renderer:function(t){return t.constructor.isRawElement()?t.render():"\n              \x3c!--[if mso | IE]>\n              <td\n                ".concat(t.htmlAttributes({style:{align:t.getAttribute("align"),"vertical-align":t.getAttribute("vertical-align"),width:function(t){if(!t)return"".concat(parseInt(r,10)/parseInt(e,10),"px");t=(o=(0,d.default)(t,{parseFloatToInt:!1})).unit;var o=o.parsedWidth;return"%"===t?"".concat(100*o/n,"px"):"".concat(o).concat(t)}(t.getWidthAsPixel?t.getWidthAsPixel():t.getAttribute("width"))}}),"\n              >\n              <![endif]--\x3e\n                ").concat(t.render(),"\n              \x3c!--[if mso | IE]>\n              </td>\n              <![endif]--\x3e\n          ")}}),"\n        \x3c!--[if mso | IE]>\n          </tr>\n          </table>\n        <![endif]--\x3e\n      </div>\n    ")}}]),n}(p.BodyComponent),e.default=p,(0,u.default)(p,"componentName","mj-group"),(0,u.default)(p,"allowedAttributes",{"background-color":"color",direction:"enum(ltr,rtl)","vertical-align":"enum(top,bottom,middle)",width:"unit(px,%)"}),(0,u.default)(p,"defaultAttributes",{direction:"ltr"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}var o=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n(3)),a=o(n(7)),s=o(n(37)),l=o(n(4)),c=o(n(5)),u=o(n(8)),p=o(n(226)),d=n(9),f=o(n(35));n=function(t){(0,l.default)(n,t);var e=(0,c.default)(n);function n(){var t;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=e.call.apply(e,[this].concat(o)),(0,u.default)((0,s.default)(t),"headStyle",(function(t){return"\n    @media only screen and (max-width:".concat((0,d.makeLowerBreakpoint)(t),") {\n      table.mj-full-width-mobile { width: 100% !important; }\n      td.mj-full-width-mobile { width: auto !important; }\n    }\n  ")})),t}return(0,a.default)(n,[{key:"getStyles",value:function(){var t=this.getContentWidth(),e="full-width"===this.getAttribute("full-width"),n=(t=(n=(0,f.default)(t)).parsedWidth,n.unit);return{img:{border:this.getAttribute("border"),"border-left":this.getAttribute("border-left"),"border-right":this.getAttribute("border-right"),"border-top":this.getAttribute("border-top"),"border-bottom":this.getAttribute("border-bottom"),"border-radius":this.getAttribute("border-radius"),display:"block",outline:"none","text-decoration":"none",height:this.getAttribute("height"),"max-height":this.getAttribute("max-height"),"min-width":e?"100%":null,width:"100%","max-width":e?"100%":null,"font-size":this.getAttribute("font-size")},td:{width:e?null:"".concat(t).concat(n)},table:{"min-width":e?"100%":null,"max-width":e?"100%":null,width:e?"".concat(t).concat(n):null,"border-collapse":"collapse","border-spacing":"0px"}}}},{key:"getContentWidth",value:function(){var t=this.getAttribute("width")?parseInt(this.getAttribute("width"),10):1/0,e=this.getBoxWidths().box;return(0,p.default)([e,t])}},{key:"renderImage",value:function(){var t=this.getAttribute("height");return t="\n      <img\n        ".concat(this.htmlAttributes(function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){!function(t,e,n){e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({alt:this.getAttribute("alt"),src:this.getAttribute("src"),srcset:this.getAttribute("srcset"),sizes:this.getAttribute("sizes"),style:"img",title:this.getAttribute("title"),width:this.getContentWidth(),usemap:this.getAttribute("usemap")},t?{height:"auto"===t?t:parseInt(t,10)}:{})),"\n      />\n    "),this.getAttribute("href")?"\n        <a\n          ".concat(this.htmlAttributes({href:this.getAttribute("href"),target:this.getAttribute("target"),rel:this.getAttribute("rel"),name:this.getAttribute("name"),title:this.getAttribute("title")}),"\n        >\n          ").concat(t,"\n        </a>\n      "):t}},{key:"render",value:function(){return"\n      <table\n        ".concat(this.htmlAttributes({border:"0",cellpadding:"0",cellspacing:"0",role:"presentation",style:"table",class:this.getAttribute("fluid-on-mobile")?"mj-full-width-mobile":null}),"\n      >\n        <tbody>\n          <tr>\n            <td ").concat(this.htmlAttributes({style:"td",class:this.getAttribute("fluid-on-mobile")?"mj-full-width-mobile":null}),">\n              ").concat(this.renderImage(),"\n            </td>\n          </tr>\n        </tbody>\n      </table>\n    ")}}]),n}(d.BodyComponent),e.default=n,(0,u.default)(n,"componentName","mj-image"),(0,u.default)(n,"allowedAttributes",{alt:"string",href:"string",name:"string",src:"string",srcset:"string",sizes:"string",title:"string",rel:"string",align:"enum(left,center,right)",border:"string","border-bottom":"string","border-left":"string","border-right":"string","border-top":"string","border-radius":"unit(px,%){1,4}","container-background-color":"color","fluid-on-mobile":"boolean",padding:"unit(px,%){1,4}","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",target:"string",width:"unit(px)",height:"unit(px,auto)","max-height":"unit(px,%)","font-size":"unit(px)",usemap:"string"}),(0,u.default)(n,"defaultAttributes",{align:"center",border:"0",height:"auto",padding:"10px 25px",target:"_blank","font-size":"13px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"render",value:function(){return this.getContent()}}]),n}(n(9).BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-raw"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"rawElement",!0),(0,r.default)(n,"allowedAttributes",{position:"enum(file-start)"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5));r=r(n(8)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{div:{height:this.getAttribute("height"),"line-height":this.getAttribute("height")}}}},{key:"render",value:function(){return"\n      <div\n        ".concat(this.htmlAttributes({style:"div"}),"\n      >&#8202;</div>\n    ")}}]),n}(n(9).BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-spacer"),(0,r.default)(n,"allowedAttributes",{border:"string","border-bottom":"string","border-left":"string","border-right":"string","border-top":"string","container-background-color":"color","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}",height:"unit(px,%)"}),(0,r.default)(n,"defaultAttributes",{height:"20px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=n(9),u=r(n(53));c=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"getStyles",value:function(){return{text:{"font-family":this.getAttribute("font-family"),"font-size":this.getAttribute("font-size"),"font-style":this.getAttribute("font-style"),"font-weight":this.getAttribute("font-weight"),"letter-spacing":this.getAttribute("letter-spacing"),"line-height":this.getAttribute("line-height"),"text-align":this.getAttribute("align"),"text-decoration":this.getAttribute("text-decoration"),"text-transform":this.getAttribute("text-transform"),color:this.getAttribute("color"),height:this.getAttribute("height")}}}},{key:"renderContent",value:function(){return"\n      <div\n        ".concat(this.htmlAttributes({style:"text"}),"\n      >").concat(this.getContent(),"</div>\n    ")}},{key:"render",value:function(){var t=this.getAttribute("height");return t?"\n        ".concat((0,u.default)('\n          <table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td height="'.concat(t,'" style="vertical-align:top;height:').concat(t,';">\n        ')),"\n        ").concat(this.renderContent(),"\n        ").concat((0,u.default)("\n          </td></tr></table>\n        "),"\n      "):this.renderContent()}}]),n}(c.BodyComponent),e.default=c,(0,l.default)(c,"componentName","mj-text"),(0,l.default)(c,"endingTag",!0),(0,l.default)(c,"allowedAttributes",{align:"enum(left,right,center,justify)","background-color":"color",color:"color","container-background-color":"color","font-family":"string","font-size":"unit(px)","font-style":"string","font-weight":"string",height:"unit(px,%)","letter-spacing":"unitWithNegative(px,em)","line-height":"unit(px,%,)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}","text-decoration":"string","text-transform":"string","vertical-align":"enum(top,bottom,middle)"}),(0,l.default)(c,"defaultAttributes",{align:"left",color:"#000000","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","line-height":"1",padding:"10px 25px"}),t.exports=e.default},function(t,e,n){"use strict";function r(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)),r}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=a(n(3)),l=a(n(7)),c=a(n(4)),u=a(n(5)),p=a(n(8)),d=a(n(41)),f=a(n(35));n=function(t){(0,c.default)(n,t);var e=(0,u.default)(n);function n(){return(0,s.default)(this,n),e.apply(this,arguments)}return(0,l.default)(n,[{key:"getStyles",value:function(){return{table:{color:this.getAttribute("color"),"font-family":this.getAttribute("font-family"),"font-size":this.getAttribute("font-size"),"line-height":this.getAttribute("line-height"),"table-layout":this.getAttribute("table-layout"),width:this.getAttribute("width"),border:this.getAttribute("border")}}}},{key:"getWidth",value:function(){var t=this.getAttribute("width"),e=(0,f.default)(t),n=e.parsedWidth;return"%"===e.unit?t:n}},{key:"render",value:function(){var t=this,e=(0,d.default)(["cellpadding","cellspacing","role"],(function(e,n){return o(o({},e),{},i({},n,t.getAttribute(n)))}),{});return"\n      <table\n        ".concat(this.htmlAttributes(o(o({},e),{},{width:this.getWidth(),border:"0",style:"table"})),"\n      >\n        ").concat(this.getContent(),"\n      </table>\n    ")}}]),n}(n(9).BodyComponent),e.default=n,(0,p.default)(n,"componentName","mj-table"),(0,p.default)(n,"endingTag",!0),(0,p.default)(n,"allowedAttributes",{align:"enum(left,right,center)",border:"string",cellpadding:"integer",cellspacing:"integer","container-background-color":"color",color:"color","font-family":"string","font-size":"unit(px)","font-weight":"string","line-height":"unit(px,%,)","padding-bottom":"unit(px,%)","padding-left":"unit(px,%)","padding-right":"unit(px,%)","padding-top":"unit(px,%)",padding:"unit(px,%){1,4}",role:"enum(none,presentation)","table-layout":"enum(auto,fixed,initial,inherit)","vertical-align":"enum(top,bottom,middle)",width:"unit(px,%)"}),(0,p.default)(n,"defaultAttributes",{align:"left",border:"none",cellpadding:"0",cellspacing:"0",color:"#000000","font-family":"Ubuntu, Helvetica, Arial, sans-serif","font-size":"13px","line-height":"22px",padding:"10px 25px","table-layout":"auto",width:"100%"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(1).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(3)),i=r(n(7)),a=r(n(4)),s=r(n(5)),l=r(n(8)),c=(r=r(n(231)),n(9));r=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,o.default)(this,n),e.apply(this,arguments)}return(0,i.default)(n,[{key:"renderWrappedChildren",value:function(){var t=this.props.children,e=this.context.containerWidth;return"\n      ".concat(this.renderChildren(t,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n          \x3c!--[if mso | IE]>\n            <tr>\n              <td\n                ".concat(t.htmlAttributes({align:t.getAttribute("align"),class:(0,c.suffixCssClasses)(t.getAttribute("css-class"),"outlook"),width:e}),"\n              >\n          <![endif]--\x3e\n            ").concat(t.render(),"\n          \x3c!--[if mso | IE]>\n              </td>\n            </tr>\n          <![endif]--\x3e\n        ")}}),"\n    ")}}]),n}(r.default),e.default=r,(0,l.default)(r,"componentName","mj-wrapper"),t.exports=e.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={mjml:["mj-body","mj-head","mj-raw"],"mj-accordion":["mj-accordion-element","mj-raw"],"mj-accordion-element":["mj-accordion-title","mj-accordion-text","mj-raw"],"mj-accordion-title":[],"mj-accordion-text":[],"mj-attributes":[/^.*^/],"mj-body":["mj-raw","mj-section","mj-wrapper","mj-hero"],"mj-button":[],"mj-carousel":["mj-carousel-image"],"mj-carousel-image":[],"mj-column":["mj-accordion","mj-button","mj-carousel","mj-divider","mj-image","mj-raw","mj-social","mj-spacer","mj-table","mj-text","mj-navbar"],"mj-html-attribute":[],"mj-html-attributes":["mj-selector"],"mj-divider":[],"mj-group":["mj-column","mj-raw"],"mj-head":["mj-attributes","mj-breakpoint","mj-html-attributes","mj-font","mj-preview","mj-style","mj-title","mj-raw"],"mj-hero":["mj-accordion","mj-button","mj-carousel","mj-divider","mj-image","mj-social","mj-spacer","mj-table","mj-text","mj-navbar","mj-raw"],"mj-image":[],"mj-navbar":["mj-navbar-link","mj-raw"],"mj-raw":[],"mj-section":["mj-column","mj-group","mj-raw"],"mj-selector":["mj-html-attribute"],"mj-social":["mj-social-element","mj-raw"],"mj-social-element":[],"mj-spacer":[],"mj-table":[],"mj-text":[],"mj-wrapper":["mj-hero","mj-raw","mj-section"]},t.exports=e.default}],n={},t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=233);function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e,n},t.exports=e()}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{default:()=>kt});var t=function(){return t=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},t.apply(this,arguments)};const e=function(e,n){var r=e.Blocks,o=n.imagePlaceholderSrc||"https://via.placeholder.com/350x250/78c5d6/fff",i='<svg viewBox="0 0 24 24">\n    <path fill="currentColor" d="M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z" />\n  </svg>';n.resetBlocks&&r.getAll().reset();var a=function(o,i){n.blocks.indexOf(o)>=0&&r.add(o,t(t({select:!0,category:e.I18n.t("grapesjs-mjml.category")},i),n.block(o)))},s=function(t){return e.I18n.t("grapesjs-mjml.components.names.".concat(t))};a("mj-1-column",{label:s("oneColumn"),media:'<svg viewBox="0 0 24 24">\n      <path fill="currentColor" d="M2 20h20V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1Z"/>\n    </svg>',content:"<mj-section>\n        <mj-column><mj-text>Content 1</mj-text></mj-column>\n      </mj-section>"}),a("mj-2-columns",{label:s("twoColumn"),media:'<svg viewBox="0 0 23 24">\n      <path fill="currentColor" d="M2 20h8V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM13 20h8V4h-8v16Zm-1 0V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1Z"/>\n    </svg>',content:"<mj-section>\n      <mj-column><mj-text>Content 1</mj-text></mj-column>\n      <mj-column><mj-text>Content 2</mj-text></mj-column>\n    </mj-section>"}),a("mj-3-columns",{label:s("threeColumn"),media:'<svg viewBox="0 0 23 24">\n      <path fill="currentColor" d="M2 20h4V4H2v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1ZM17 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1ZM9.5 20h4V4h-4v16Zm-1 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1Z"/>\n    </svg>',content:"<mj-section>\n        <mj-column><mj-text>Content 1</mj-text></mj-column>\n        <mj-column><mj-text>Content 2</mj-text></mj-column>\n        <mj-column><mj-text>Content 3</mj-text></mj-column>\n      </mj-section>"}),a("mj-text",{label:s("text"),media:'<svg viewBox="0 0 24 24">\n      <path fill="currentColor" d="M18.5,4L19.66,8.35L18.7,8.61C18.25,7.74 17.79,6.87 17.26,6.43C16.73,6 16.11,6 15.5,6H13V16.5C13,17 13,17.5 13.33,17.75C13.67,18 14.33,18 15,18V19H9V18C9.67,18 10.33,18 10.67,17.75C11,17.5 11,17 11,16.5V6H8.5C7.89,6 7.27,6 6.74,6.43C6.21,6.87 5.75,7.74 5.3,8.61L4.34,8.35L5.5,4H18.5Z" />\n    </svg>',content:"<mj-text>Insert text here</mj-text>",activate:!0}),a("mj-button",{label:s("button"),media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M20 20.5C20 21.3 19.3 22 18.5 22H13C12.6 22 12.3 21.9 12 21.6L8 17.4L8.7 16.6C8.9 16.4 9.2 16.3 9.5 16.3H9.7L12 18V9C12 8.4 12.4 8 13 8S14 8.4 14 9V13.5L15.2 13.6L19.1 15.8C19.6 16 20 16.6 20 17.1V20.5M20 2H4C2.9 2 2 2.9 2 4V12C2 13.1 2.9 14 4 14H8V12H4V4H20V12H18V14H20C21.1 14 22 13.1 22 12V4C22 2.9 21.1 2 20 2Z" />\n    </svg>',content:"<mj-button>Button</mj-button>"}),a("mj-image",{label:s("image"),media:'<svg viewBox="0 0 24 24">\n      <path fill="currentColor" d="M21,3H3C2,3 1,4 1,5V19A2,2 0 0,0 3,21H21C22,21 23,20 23,19V5C23,4 22,3 21,3M5,17L8.5,12.5L11,15.5L14.5,11L19,17H5Z" />\n    </svg>',content:'<mj-image src="'.concat(o,'"/>'),activate:!0}),a("mj-divider",{label:s("divider"),media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M21 18H2V20H21V18M19 10V14H4V10H19M20 8H3C2.45 8 2 8.45 2 9V15C2 15.55 2.45 16 3 16H20C20.55 16 21 15.55 21 15V9C21 8.45 20.55 8 20 8M21 4H2V6H21V4Z" />\n    </svg>',content:"<mj-divider/>"}),a("mj-social-group",{label:s("socialGroup"),media:i,content:'<mj-social font-size="12px" icon-size="24px" border-radius="12px" mode="horizontal">\n        <mj-social-element name="facebook"></mj-social-element>\n        <mj-social-element name="google"></mj-social-element>\n        <mj-social-element name="twitter"></mj-social-element>\n      </mj-social>'}),a("mj-social-element",{label:s("socialElement"),media:i,content:'<mj-social-element name="facebook" />'}),a("mj-spacer",{label:s("spacer"),media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M8,18H11V15H2V13H22V15H13V18H16L12,22L8,18M12,2L8,6H11V9H2V11H22V9H13V6H16L12,2Z" />\n    </svg>',content:"<mj-spacer/>"}),a("mj-navbar",{label:s("navBar"),media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z" />\n    </svg>',content:"<mj-navbar>\n      <mj-navbar-link>Getting started</mj-navbar-link>\n      <mj-navbar-link>Try it live</mj-navbar-link>\n      <mj-navbar-link>Templates</mj-navbar-link>\n      <mj-navbar-link>Components</mj-navbar-link>\n    </mj-navbar>"}),a("mj-navbar-link",{label:s("navLink"),media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M21,15.61L19.59,17L14.58,12L19.59,7L21,8.39L17.44,12L21,15.61M3,6H16V8H3V6M3,13V11H13V13H3M3,18V16H16V18H3Z" />\n    </svg>',content:"<mj-navbar-link>Link</mj-navbar-link>"}),a("mj-hero",{label:s("hero"),media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20M4,6V18H20V6H4M6,9H18V11H6V9M6,13H16V15H6V13Z" />\n    </svg>',content:'<mj-hero mode="fixed-height" height="469px" background-width="600px" background-height="469px" background-url="https://cloud.githubusercontent.com/assets/1830348/15354890/1442159a-1cf0-11e6-92b1-b861dadf1750.jpg" background-color="#2a3448" padding="100px 0px">\n      <mj-text padding="20px" color="#ffffff" font-family="Helvetica" align="center" font-size="45px" line-height="45px" font-weight="900">\n        GO TO SPACE\n      </mj-text>\n      <mj-button href="https://mjml.io/" align="center">\n        ORDER YOUR TICKET NOW\n      </mj-button>\n    </mj-hero>'}),a("mj-wrapper",{label:s("wrapper"),media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M18 2H6C4.89 2 4 2.9 4 4V20C4 21.11 4.89 22 6 22H18C19.11 22 20 21.11 20 20V4C20 2.9 19.11 2 18 2M18 20H6V16H18V20M18 8H6V4H18V8Z" />\n    </svg>',content:'<mj-wrapper border="1px solid #000000" padding="50px 30px">\n      <mj-section border-top="1px solid #aaaaaa" border-left="1px solid #aaaaaa" border-right="1px solid #aaaaaa" padding="20px">\n        <mj-column>\n          <mj-image padding="0" src="'.concat(o,'" />\n        </mj-column>\n      </mj-section>\n      <mj-section border-left="1px solid #aaaaaa" border-right="1px solid #aaaaaa" padding="20px" border-bottom="1px solid #aaaaaa">\n        <mj-column border="1px solid #dddddd">\n          <mj-text padding="20px"> First line of text </mj-text>\n          <mj-divider border-width="1px" border-style="dashed" border-color="lightgrey" padding="0 20px" />\n          <mj-text padding="20px"> Second line of text </mj-text>\n        </mj-column>\n      </mj-section>\n    </mj-wrapper>')}),a("mj-raw",{label:s("raw"),media:'<svg viewBox="0 0 24 24">\n        <path fill="currentColor" d="M12,17.56L16.07,16.43L16.62,10.33H9.38L9.2,8.3H16.8L17,6.31H7L7.56,12.32H14.45L14.22,14.9L12,15.5L9.78,14.9L9.64,13.24H7.64L7.93,16.43L12,17.56M4.07,3H19.93L18.5,19.2L12,21L5.5,19.2L4.07,3Z" />\n    </svg>',content:'<mj-raw>\n      <div class="container">\n        <img class="item" src="https://source.unsplash.com/random/200x141" alt="Example image">\n        <img class="item" src="https://source.unsplash.com/random/200x142" alt="Example image">\n        <img class="item" src="https://source.unsplash.com/random/200x143" alt="Example image">\n        <img class="item" src="https://source.unsplash.com/random/200x144" alt="Example image">\n        <img class="item" src="https://source.unsplash.com/random/200x145" alt="Example image">\n        <img class="item" src="https://source.unsplash.com/random/200x146" alt="Example image">\n      </div>\n    </mj-raw>'})};var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},o.apply(this,arguments)},i=function(t){return function(e){return(e.tagName||"").toLowerCase()===t}};function a(t,e,n,r){void 0===r&&(r={});var i=o({useMjmlConfigOptions:!1,mjmlConfigPath:void 0,filePath:void 0},r);return n&&Object.keys(n).length>0&&n.constructor===Object&&(i.fonts=n),t(e,i)}var s=function(t){return(Array.isArray(t)?t:[t]).map((function(t){return'[data-gjs-type="'.concat(t,'"]')})).join(", ")},l=function(t,e){return t.I18n.t("grapesjs-mjml.components.names.".concat(e))},c="set-device-desktop",u="set-device-tablet",p="set-device-mobile",d="mjml-import",f="mjml-code",h="mjml-code-to-html";const g=function(t,e){var n=t.Commands,r=e.overwriteExport?"export-template":"mjml-export";n.add(f,(function(){return"".concat(e.preMjml).concat(t.getHtml().trim()).concat(e.postMjml)})),n.add(h,(function(t,r,o){var i=o||{},s=i.mjml,l=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(i,["mjml"]),c=s||n.run(f);return a(e.mjmlParser,c,e.fonts,l)})),function(t,e,n){var r=t.Commands;r.add(n,{containerEl:null,codeEditorMjml:null,codeEditorHtml:null,createCodeEditor:function(t){var e=document.createElement("div"),n=document.createElement("div"),r=this.createCodeViewer();return n.innerHTML=t,e.style.flex="1 0 auto",e.style.padding="5px",e.style.maxWidth="50%",e.style.boxSizing="border-box",e.appendChild(n),e.appendChild(r.getElement()),{codeEditor:r,el:e}},createCodeViewer:function(){return t.CodeManager.createViewer({codeName:"htmlmixed",theme:e.codeViewerTheme})},getCodeContainer:function(){var t=this.containerEl;return t||((t=document.createElement("div")).style.display="flex",t.style.justifyContent="space-between",this.containerEl=t),t},run:function(t,e){var o,i,a=this.getCodeContainer(),s=this.codeEditorMjml,l=this.codeEditorHtml;if(s||(s=(i=this.createCodeEditor("MJML")).codeEditor,this.codeEditorMjml=s,a.appendChild(i.el)),l||(l=(i=this.createCodeEditor("HTML")).codeEditor,this.codeEditorHtml=l,a.appendChild(i.el)),t.Modal.open({title:t.I18n.t("grapesjs-mjml.panels.export.title"),content:a}).onceClose((function(){e.set&&e.set("active",!1),t.stopCommand(n)})),s&&(s.setContent(r.run(f)),s.editor.refresh()),l){var c=r.run(h);null===(o=c.errors)||void 0===o||o.forEach((function(e){t.log(e.formattedMessage,{ns:h,level:"warning",error:e})})),l.setContent(c.html),l.editor.refresh()}},stop:function(t){t.Modal.close()}})}(t,e,r),function(t,e,n){var r=t.getConfig().stylePrefix||"",o=function(e){return t.I18n.t("grapesjs-mjml.panels.import.".concat(e))};t.Commands.add(n,{containerEl:null,codeEditorMjml:null,onImport:function(e){var n;null===(n=t.Components.getWrapper())||void 0===n||n.set("content",""),t.setComponents(e.trim()),t.Modal.close()},createCodeEditor:function(){var t=this,e=document.createElement("div"),n=this.createCodeViewer(),i=n.getElement(),a=o("label"),s=document.createElement("button");if(s.type="button",s.innerHTML=o("button"),s.className="".concat(r,"btn-prim ").concat(r,"btn-import"),s.onclick=function(){return t.onImport(n.editor.getValue())},a){var l=document.createElement("div");l.className="".concat(r,"import-label"),l.innerHTML=a,e.appendChild(l)}return i.className="".concat(r,"code-viewer"),i.style.margin="10px 0",e.appendChild(i),e.appendChild(s),{codeEditor:n,el:e}},createCodeViewer:function(){return t.CodeManager.createViewer({codeName:"htmlmixed",theme:e.codeViewerTheme,readOnly:!1})},getCodeContainer:function(){var t=this.containerEl;return t||(t=document.createElement("div"),this.containerEl=t),t},run:function(t,r){void 0===r&&(r={});var i=this.getCodeContainer(),a=this.codeEditorMjml;if(!a){var s=this.createCodeEditor();a=s.codeEditor,this.codeEditorMjml=a,i.appendChild(s.el)}a&&(a.setContent(e.importPlaceholder),a.editor.refresh()),t.Modal.open({title:o("title"),content:i}).onceClose((function(){r.set&&r.set("active",!1),t.stopCommand(n)}))},stop:function(t){t.Modal.close()}})}(t,e,d),n.add(c,{run:function(t){return t.setDevice("Desktop")},stop:function(){}}),n.add(u,{run:function(t){return t.setDevice("Tablet")},stop:function(){}}),n.add(p,{run:function(t){return t.setDevice("Mobile portrait")},stop:function(){}})};var m="mj-head";const v=function(t){t.Components.addType(m,{isComponent:i(m),model:{defaults:{draggable:!1,droppable:s(["mj-preview","mj-attributes","mj-style","mj-font","mj-title","mj-raw"])}}})};var y=function(){return y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},y.apply(this,arguments)},b="mj-wrapper";const _=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(b,{isComponent:i(b),model:y(y({},n),{defaults:{name:l(t,"wrapper"),draggable:s(ut),droppable:s(T),traits:["id","title",{type:"checkbox",label:"Full width",name:"full-width",valueTrue:"full-width",valueFalse:""}]}}),view:y(y({},r),{tagName:"div",attributes:{style:"pointer-events: all; display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getChildrenSelector:function(){return this.model.getAttributes()["full-width"]?"table > tbody > tr > td > div table > tbody > tr > td":"table > tbody > tr > td"},init:function(){var t=this;r.init.call(this),this.listenTo(this.model.get("components"),"add remove",(function(){t.getChildrenContainer().innerHTML=t.model.get("content"),t.renderChildren()}))}})})};var w=function(){return w=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},w.apply(this,arguments)},E="mj-group";const x=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(E,{isComponent:i(E),model:w(w({},n),{defaults:{name:l(t,"group"),draggable:s(T),droppable:s(S),stylable:["width","vertical-align","background-color","direction"],"style-default":{"vertical-align":"top"}}}),view:w(w({},r),{tagName:"div",attributes:{style:"display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getChildrenSelector:function(){return"div"}})})};var C=function(){return C=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},C.apply(this,arguments)},T="mj-section";const A=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(T,{isComponent:i(T),model:C(C({},n),{defaults:{name:l(t,"section"),draggable:s([ut,b]),droppable:s([S,E]),"style-default":{"padding-left":"0px","padding-right":"0px","padding-top":"20px","padding-bottom":"20px","text-align":"center"},stylable:["text-align","padding","padding-top","padding-left","padding-right","padding-bottom","background-color","background-url","background-repeat","background-size","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","border","border-width","border-style","border-color"],traits:["id","title",{type:"checkbox",label:"Full width",name:"full-width",valueTrue:"full-width",valueFalse:""}]}}),view:C(C({},r),{tagName:"div",attributes:{style:"pointer-events: all;"},getMjmlTemplate:function(){var t=this.model.parent(),e=null==t?void 0:t.view,n=null==t?void 0:t.attributes.tagName;if((null==e?void 0:e.getInnerMjmlTemplate)&&n===ut){var o=r.getInnerMjmlTemplate.call(e);return{start:"<mjml><mj-body>".concat(o.start),end:"".concat(o.end,"</mj-body></mjml>")}}return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getChildrenSelector:function(){return this.model.getAttributes()["full-width"]?"table > tbody > tr > td > div table > tbody > tr > td":"table > tbody > tr > td"},init:function(){r.init.call(this),this.listenTo(this.model.get("components"),"add remove",this.render)}})})};var O=function(){return O=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},O.apply(this,arguments)},S="mj-column";const k=function(t,e){var n=e.opt,r=e.coreMjmlModel,o=e.coreMjmlView,c=e.sandboxEl,u=n.columnsPadding;t.Components.addType(S,{isComponent:i(S),model:O(O({},r),{defaults:{name:l(t,"column"),draggable:s(T),stylable:["background-color","vertical-align","width","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","border","border-width","border-style","border-color","padding","padding-top","padding-left","padding-right","padding-bottom"],"style-default":{"vertical-align":"top"}}}),view:O(O({},o),{tagName:"div",attributes:{style:u?"padding: ".concat(u,";"):""},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),r=a(n.mjmlParser,"".concat(t.start,"\n          ").concat(e.start).concat(e.end).concat(t.end),n.fonts).html,o=[];c.innerHTML=r,Array.from(c.querySelectorAll("style")).forEach((function(t){o.push(t.innerHTML)}));var i=r.replace(/<body(.*)>/,"<body>"),s=i.indexOf("<body>")+6,l=i.indexOf("</body>");c.innerHTML=i.substring(s,l).trim();for(var u=this.getTemplateFromEl(c),p={},d=u.attributes,f=void 0,h=0,g=d.length;h<g;h++)p[(f=d[h]).name]=f.value;return{attributes:p,content:u.innerHTML,style:o.join(" ")}},render:function(){this.renderAttributes();var e=this.getTemplateFromMjml();return this.el.innerHTML=e.content,this.$el.attr(e.attributes),t.addComponents("<style>".concat(e.style,"</style>")),this.getChildrenContainer().innerHTML=this.model.get("content"),this.renderChildren(),this.renderStyle(),this.updateStatus(),this.postRender(),this},renderStyle:function(){var t,e=this,n=e.model,r=e.attributes,o=e.el,i=n.get("style")||{},a=n.get("stylable"),s=Object.keys(i).filter((function(t){return a.indexOf(t)>-1})).map((function(t){return"".concat(t,":").concat(i[t],";")})),l="".concat(r.style," ").concat(s.join(" ")," ").concat(o.getAttribute("style"));o.setAttribute("style",l),null===(t=o.firstElementChild)||void 0===t||t.setAttribute("style",""),this.checkVisibility()},getMjmlTemplate:function(){var t=this.model.collection.length-1;t=t||0;var e=Array(t).fill("<mj-column></mj-column>").join("");return{start:"<mjml><mj-body><mj-section>",end:"".concat(e,"</mj-section></mj-body></mjml>")}},getTemplateFromEl:function(t){return t.firstChild.querySelector("div > table > tbody > tr > td > div")},getChildrenSelector:function(){return"table"}})})};var P=function(){return P=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},P.apply(this,arguments)},j="mj-text";const N=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(j,{extend:"text",extendFnView:["onActive"],isComponent:i(j),model:P(P({},n),{defaults:{name:l(t,"text"),draggable:s([S,ot]),highlightable:!1,stylable:["height","font-style","font-size","font-weight","font-family","color","line-height","letter-spacing","text-decoration","align","text-transform","padding","padding-top","padding-left","padding-right","padding-bottom","container-background-color"],"style-default":{"padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px","font-size":"13px",align:"left"}}}),view:P(P({},r),{tagName:"tr",attributes:{style:"pointer-events: all; display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"td > div"},rerender:function(){this.render()},onActive:function(){this.getChildrenContainer().style.pointerEvents="all"}})})};var L=function(){return L=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},L.apply(this,arguments)},D="mj-button";const I=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(D,{isComponent:i(D),extend:"link",model:L(L({},n),{defaults:{name:l(t,"button"),draggable:s([S,ot]),highlightable:!1,stylable:["width","height","background-color","container-background-color","font-style","font-size","font-weight","font-family","color","text-decoration","align","vertical-align","text-transform","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","border","border-width","border-style","border-color"],"style-default":{"background-color":"#414141","border-radius":"3px","font-size":"13px","font-weight":"400",color:"#ffffff","vertical-align":"middle","padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px",align:"center"},traits:["href"]}}),view:L(L({},r),{tagName:"tr",attributes:{style:"display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"a,p"},rerender:function(){this.render()}})})};var R=function(){return R=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},R.apply(this,arguments)},M="mj-image";const B=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(M,{isComponent:i(M),extend:"image",model:R(R({},n),{defaults:{resizable:!1,highlightable:!1,name:l(t,"image"),draggable:s([T,S,ot]),stylable:["width","height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","border","border-width","border-style","border-color","container-background-color","align"],"style-default":{"padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px",align:"center"},traits:["href","rel","alt","title"],void:!1},getStylesToAttributes:function(){var t=n.getStylesToAttributes.call(this);return"auto"===t.width&&delete t.width,t}}),view:R(R({},r),{tagName:"tr",attributes:{style:"pointer-events: all; display: table; width: 100%; user-select: none;"},getMjmlTemplate:function(){return{start:'<mjml><mj-body width="auto"><mj-column>',end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"img"}})})};var F=function(){return F=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},F.apply(this,arguments)},U="mj-divider";const H=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(U,{isComponent:i(U),model:F(F({},n),{defaults:{name:l(t,"divider"),draggable:s([S,ot]),droppable:!1,"style-default":{width:"100%","border-width":"4px","border-style":"solid","border-color":"#000000","padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px"},stylable:["padding","padding-top","padding-left","padding-right","padding-bottom","width","container-background-color","border-detached","border-width","border-style","border-color"],void:!1}}),view:F(F({},r),{tagName:"tr",attributes:{style:"display: table; width: 100%; user-select: none;"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"p"}})})};var V=function(){return V=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},V.apply(this,arguments)},q="mj-navbar-link";const z=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(q,{isComponent:i(q),extend:"link",model:V(V({},n),{defaults:{name:l(t,"navLink"),draggable:s(G),highlightable:!1,stylable:["font-style","font-size","font-weight","font-family","color","text-decoration","text-transform","padding","padding-top","padding-left","padding-right","padding-bottom"],"style-default":{"font-size":"13px","padding-top":"25px","padding-bottom":"25px","padding-left":"10px","padding-right":"10px","text-transform":"uppercase"},traits:["href"]}}),view:V(V({},r),{tagName:"a",attributes:{style:"float: none; display: inline-table;"},getMjmlTemplate:function(){var t,e=null===(t=this.model.parent())||void 0===t?void 0:t.view;if(null==e?void 0:e.getInnerMjmlTemplate){var n=r.getInnerMjmlTemplate.call(e);return{start:"<mjml><mj-body><mj-column>".concat(n.start),end:"".concat(n.end,"</mj-column></mj-body></mjml>")}}return{start:"<mjml><mj-body><mj-column><mj-navbar>",end:"</mj-navbar></mj-column></mj-body></mjml>"}},rerender:function(){this.render()},getTemplateFromEl:function(t){return t.querySelector("div").innerHTML},getChildrenSelector:function(){return"a,p"}})})};var W=function(){return W=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},W.apply(this,arguments)},G="mj-navbar";const Y=function(t,e){var n=e.opt,r=e.coreMjmlModel,o=e.coreMjmlView,c=e.sandboxEl;t.Components.addType(G,{isComponent:i(G),model:W(W({},r),{defaults:{name:l(t,"navBar"),draggable:s([S,ot]),droppable:s(q),"style-default":{},stylable:[],traits:[{type:"select",label:"Hamburger",name:"hamburger",options:[{value:"hamburger",name:"ON"},{value:"",name:"OFF"}]}]}}),view:W(W({},o),{tagName:"tr",attributes:{style:"pointer-events: all; display: table; width: 100%"},init:function(){o.init.call(this),this.listenTo(this.model.get("components"),"add remove update",this.render)},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),r=a(n.mjmlParser,"".concat(t.start,"\n          ").concat(e.start).concat(e.end).concat(t.end),n.fonts).html,o=[];c.innerHTML=r,Array.from(c.querySelectorAll("style")).forEach((function(t){o.push(t.innerHTML)}));var i=r.replace(/<body(.*)>/,"<body>"),s=i.indexOf("<body>")+6,l=i.indexOf("</body>");c.innerHTML=i.substring(s,l).trim();for(var u=this.getTemplateFromEl(c),p={},d=u.attributes,f=void 0,h=0,g=d.length;h<g;h++)p[(f=d[h]).name]=f.value;return{attributes:p,content:u.innerHTML,style:o.join(" ")}},render:function(){this.renderAttributes();var e=this.getTemplateFromMjml();return this.el.innerHTML=e.content,this.$el.attr(e.attributes),t.addComponents("<style>".concat(e.style,"</style>")),this.getChildrenContainer().innerHTML=this.model.get("content"),this.renderChildren(),this.renderStyle(),this.postRender(),this},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.firstChild.querySelector("tr")},getChildrenSelector:function(){return"div.mj-inline-links"},rerender:function(){o.rerender.call(this),this.model.components().models.forEach((function(t){t.attributes.type==q&&t.view.rerender()}))}})})};var K=function(){return K=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},K.apply(this,arguments)},$="mj-social-element";const X=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType($,{isComponent:i($),model:K(K({},n),{defaults:{name:l(t,"socialElement"),draggable:s(Q),stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","background-color","color","vertical-align"],"style-default":{align:"center","font-size":"13px","line-height":"22px","vertical-align":"middle"},traits:[{type:"select",label:"Icon",name:"name",options:[{value:"custom",name:"Custom"},{value:"facebook",name:"Facebook"},{value:"twitter",name:"Twitter"},{value:"google",name:"Google"},{value:"instagram",name:"Instagram"},{value:"web",name:"Web"},{value:"youtube",name:"Youtube"},{value:"pinterest",name:"Pinterest"},{value:"linkedin",name:"Linkedin"},{value:"snapchat",name:"Snapchat"},{value:"vimeo",name:"Vimeo"},{value:"tumblr",name:"Tumblr"},{value:"github",name:"Github"},{value:"soundcloud",name:"SoundCloud"},{value:"medium",name:"Medium"},{value:"dribbble",name:"Dribbble"},{value:"xing",name:"Xing"}]},{name:"src"},{name:"href"}]}}),view:K(K({},r),{tagName:"table",attributes:{style:"float: none; display: inline-table;"},getMjmlTemplate:function(){var t,e=null===(t=this.model.parent())||void 0===t?void 0:t.view;if(e.getInnerMjmlTemplate){var n=r.getInnerMjmlTemplate.call(e);return{start:"<mjml><mj-body><mj-column>".concat(n.start),end:"".concat(n.end,"</mj-column></mj-body></mjml>")}}return{start:"<mjml><mj-body><mj-column><mj-social>",end:"</mj-social></mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr > td > table").innerHTML},getChildrenSelector:function(){return"img"}})})};var Z=function(){return Z=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Z.apply(this,arguments)},Q="mj-social";const J=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(Q,{isComponent:i(Q),model:Z(Z({},n),{defaults:{name:l(t,"socialGroup"),draggable:s([S,ot]),droppable:s($),stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","container-background-color","color"],"style-default":{align:"center","icon-size":"20px","font-size":"13px","line-height":"22px"},traits:[{type:"select",label:"Mode",name:"mode",options:[{value:"horizontal",name:"Horizontal"},{value:"vertical",name:"Vertical"}]}]}}),view:Z(Z({},r),{tagName:"tr",attributes:{style:"display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"td"},rerender:function(){r.rerender.call(this),this.model.components().models.forEach((function(t){t.attributes.type===$&&t.view.rerender()}))},init:function(){r.init.call(this),this.listenTo(this.model.get("components"),"add remove update",this.render)}})})};var tt=function(){return tt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tt.apply(this,arguments)},et="mj-spacer";const nt=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(et,{isComponent:i(et),model:tt(tt({},n),{defaults:{name:l(t,"spacer"),draggable:s([S,ot]),droppable:!1,"style-default":{height:"20px"},stylable:["height","container-background-color"],void:!1}}),view:tt(tt({},r),{tagName:"tr",attributes:{style:"display: table; width: 100%; user-select: none;"},getMjmlTemplate:function(){return{start:"<mjml><mj-body><mj-column>",end:"</mj-column></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"td"}})})};var rt=function(){return rt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},rt.apply(this,arguments)},ot="mj-hero";const it=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(ot,{isComponent:i(ot),model:rt(rt({},n),{defaults:{name:l(t,"hero"),draggable:s(ut),droppable:s([j,D,M,U,G,Q,et]),stylable:["background-color","background-height","background-position","background-url","background-width","css-class","height","mode","padding","padding-top","padding-left","padding-right","padding-bottom","vertical-align","width"],"style-default":{"vertical-align":"top"}}}),view:rt(rt({},r),{tagName:"div",attributes:{style:"display: table; width: 100%"},getMjmlTemplate:function(){return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getChildrenSelector:function(){return"table tr td"}})})};var at=function(){return at=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},at.apply(this,arguments)},st="mj-raw";const lt=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(st,{isComponent:i(st),model:at(at({},n),{defaults:{name:l(t,"raw"),draggable:s([ut,m]),stylable:!1,"style-default":{},style:{},attributes:{}}}),view:at(at({},r),{tagName:"section",attributes:{style:"pointer-events: all;"},getMjmlTemplate:function(){var t=this.model.parent(),e=null==t?void 0:t.view,n=null==t?void 0:t.attributes.tagName,o=null==e?void 0:e.getInnerMjmlTemplate;if(o&&"mj-body"===n){var i=r.getInnerMjmlTemplate.call(e);return{start:"<mjml>".concat(i.start),end:"".concat(i.end,"</mjml>")}}if(o&&"mj-head"===n){var a=r.getInnerMjmlTemplate.call(e);return{start:"<mjml>".concat(a.start),end:"".concat(a.end,"</mjml>")}}return{start:"<mjml><mj-body>",end:"</mj-body></mjml>"}},getTemplateFromEl:function(t){return t.innerHTML},getChildrenSelector:function(){return"*"},init:function(){r.init.call(this),this.listenTo(this.model.get("components"),"add remove",this.render)}})})};var ct=function(){return ct=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ct.apply(this,arguments)},ut="mj-body";const pt=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(ut,{isComponent:i(ut),model:ct(ct({},n),{defaults:{name:l(t,"body"),droppable:s([T,b,ot,st]),draggable:!1,copyable:!1,removable:!1,highlightable:!1,"style-default":{width:"600px"},stylable:["width","background-color"]}}),view:ct(ct({},r),{tagName:"div",attributes:{style:"width: 100%; min-height: 100vh"},getChildrenSelector:function(){return"div"},getInnerMjmlTemplate:function(){var t=r.getInnerMjmlTemplate.call(this);return{start:"".concat(t.start,"<mj-section></mj-section>"),end:t.end}},renderStyle:function(){this.getChildrenContainer().style.maxWidth="none",this.getChildrenContainer().style.width="100%",this.el.setAttribute("style","".concat(this.el.getAttribute("style")+this.attributes.style))},rerender:function(){r.rerender.call(this),this.model.components().models.forEach((function(t){[T,st].indexOf(t.attributes.type)<0||t.view.rerender()}))}})})};var dt=function(){return dt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},dt.apply(this,arguments)},ft="mjml";const ht=function(t,e){var n=e.coreMjmlModel,r=e.coreMjmlView;t.Components.addType(ft,{isComponent:i(ft),model:dt(dt({},n),{defaults:{droppable:s([m,ut]),draggable:!1,stylable:!1,copyable:!1,removable:!1,highlightable:!1,traits:[{name:"owa",placeholder:"eg. desktop"},{name:"lang",placeholder:"eg. en"},{name:"dir",placeholder:"eg. rtl"}]}}),view:dt(dt({},r),{tagName:"div",attributes:{style:"min-height: 100vh"},rerender:function(){this.render()},getTemplateFromMjml:function(){return""}})})};var gt=function(){return gt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},gt.apply(this,arguments)},mt="mj-style";const vt=function(t,e){var n=e.opt,r=e.coreMjmlModel,o=e.coreMjmlView,l=e.sandboxEl;t.Components.addType(mt,{isComponent:i(mt),model:gt(gt({},r),{defaults:{draggable:s(m)}}),view:gt(gt({},o),{tagName:"style",getMjmlTemplate:function(){return{start:"<mjml><mj-head>",end:"</mj-head><mj-body></mj-body></mjml>"}},getTemplateFromEl:function(t){return t.querySelector("style").innerHTML},renderStyle:function(){},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),r=a(n.mjmlParser,"".concat(t.start,"\n          ").concat(e.start).concat(e.end).concat(t.end),n.fonts).html,o=r.indexOf("<head>")+6,i=r.indexOf("</head>");return r=r.substring(o,i).trim(),l.innerHTML=r,this.getTemplateFromEl(l)}})})};var yt=function(){return yt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},yt.apply(this,arguments)},bt="mj-font";const _t=function(t,e){var n=e.opt,r=e.coreMjmlModel,o=e.coreMjmlView,l=e.sandboxEl;t.Components.addType(bt,{isComponent:i(bt),model:yt(yt({},r),{defaults:{draggable:s(m),void:!1}}),view:yt(yt({},o),{tagName:"style",getMjmlTemplate:function(){var t,e=null===(t=this.model.get("attributes"))||void 0===t?void 0:t.name;return{start:"<mjml><mj-head>",end:'</mj-head><mj-body><mj-text font-family="'.concat(e,'"></mj-text></mj-body></mjml>')}},getTemplateFromEl:function(t){return t.querySelectorAll("style")[1].innerHTML},renderStyle:function(){},renderChildren:function(){},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),r=a(n.mjmlParser,"".concat(t.start,"\n          ").concat(e.start).concat(e.end).concat(t.end),n.fonts).html,o=r.indexOf("<head>")+6,i=r.indexOf("</head>");return r=r.substring(o,i).trim(),l.innerHTML=r,this.getTemplateFromEl(l)}})})};var wt=function(){return wt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},wt.apply(this,arguments)};const Et=function(t,e){var n=t.Components.ComponentsView,r=document.createElement("div"),o={init:function(){var t=wt({},this.get("attributes")),e=wt(wt({},this.get("style-default")),this.get("style"));for(var n in e)n in t||(t[n]=e[n]);this.set("attributes",t),this.set("style",t),this.listenTo(this,"change:style",this.handleStyleChange),this.listenTo(this,"change:attributes",this.handleAttributeChange)},handleAttributeChange:function(t,e,n){this.setStyle(this.get("attributes"),n)},getStylesToAttributes:function(){var t=this.getStyle()||{};return delete t.__p,t},handleStyleChange:function(t,e,n){this.set("attributes",this.getStylesToAttributes(),n)},getMjmlAttributes:function(){var t=this.get("attributes")||{};delete t.style;var e=this.get("src");return e&&(t.src=e),t},getAttrToHTML:function(){var t=wt({},this.get("attributes")),e=wt({},this.get("style-default"));for(var n in delete t.style,delete t.id,t){var r=t[n];r&&r===e[n]&&delete t[n]}return t},toHTML:function(){var t=this,e=t.get("tagName"),n=t.get("void"),r=this.getAttrToHTML(),o="",i="";for(var a in r){var s=r[a];i+=void 0!==s&&""!==s?" ".concat(a,'="').concat(s,'"'):""}return o+="<".concat(e).concat(i).concat(n?"/":"",">")+t.get("content"),t.components().forEach((function(t){o+=t.toHTML()})),n||(o+="</".concat(e,">")),o},isHidden:function(){return"none"===this.getStyle().display}},i={init:function(){var t,e;this.stopListening(this.model,"change:style"),this.listenTo(this.model,"change:attributes change:src",this.rerender),this.debouncedRender=(t=this.render.bind(this),function(){for(var n=this,r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];clearTimeout(e),e=setTimeout((function(){clearTimeout(e),t.apply(n,r)}),0)})},rerender:function(){this.render(null,null,{},1)},getMjmlTemplate:function(){return{start:"<mjml>",end:"</mjml>"}},getInnerMjmlTemplate:function(){var t=this.model,e=t.get("tagName"),n=t.getMjmlAttributes(),r="";for(var o in n){var i=n[o];r+=void 0!==i&&""!==i?" "+o+'="'+i+'"':""}return{start:"<".concat(e).concat(r,">"),end:"</".concat(e,">")}},getTemplateFromEl:function(t){return t.firstChild.innerHTML},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),n=this.getInnerMjmlTemplate(),o="".concat(t.start).concat(n.start).concat(n.end).concat(t.end),i=a(e.mjmlParser,o,e.fonts).html,s=(i=i.replace(/<body(.*)>/,"<body>")).indexOf("<body>")+6,l=i.indexOf("</body>");return i=i.substring(s,l).trim(),r.innerHTML=i,this.getTemplateFromEl(r)},renderChildren:function(t){this.updateContent();var e=this.getChildrenContainer();t?this.childrenView.parentEl=e:(this.childrenView=this.childrenView||new n({collection:this.model.get("components"),config:this.config,componentTypes:this.opts.componentTypes}),this.childNodes=this.childrenView.render(e).el.childNodes);for(var r=Array.prototype.slice.call(this.childNodes),o=0,i=r.length;o<i;o++)e.appendChild(r.shift())},checkVisibility:function(){var t,e;(null===(e=(t=this.model).isHidden)||void 0===e?void 0:e.call(t))&&(this.el.style.display="none")},renderStyle:function(){this.el.style.cssText=this.attributes.style,this.checkVisibility()},render:function(t,e,n,r){return this.renderAttributes(),this.el.innerHTML=this.getTemplateFromMjml(),this.renderChildren(r),this.childNodes=this.getChildrenContainer().childNodes,this.renderStyle(),this.postRender(),this}},l={coreMjmlModel:o,coreMjmlView:i,opt:e,sandboxEl:r,componentsToQuery:s};t.Components.addType("wrapper",{model:{defaults:{highlightable:!1},toHTML:function(t){return this.getInnerHTML(t)}}}),function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([ht,v,vt,_t,pt,_,A,x,k,I,N,B,J,X,H,nt,Y,z,it,lt],e.customComponents,!0).forEach((function(e){return e(t,l)}))};var xt=n(480);const Ct=n.n(xt)(),Tt={"grapesjs-mjml":{category:"",panels:{buttons:{undo:"Undo",redo:"Redo",desktop:"Desktop",tablet:"Tablet",mobile:"Mobile",import:"Import MJML"},import:{title:"Import MJML",button:"Import",label:""},export:{title:"Export MJML"}},components:{names:{body:"Body",button:"Button",column:"Column",oneColumn:"1 Column",twoColumn:"2 Columns",threeColumn:"3 Columns",divider:"Divider",group:"Group",hero:"Hero",image:"Image",navBar:"Navbar",navLink:"Navbar Link",section:"Section",socialGroup:"Group Social",socialElement:"Social Element",spacer:"Spacer",text:"Text",wrapper:"Wrapper",raw:"Raw"}}}},At=function(t,e){var n=t.Panels,r='style="display: block; max-width:22px"',o=function(e){return t.I18n.t("grapesjs-mjml.panels.buttons.".concat(e))};n.addButton("options",{id:d,command:d,attributes:{title:o("import")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n        <path fill="currentColor" d="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z" />\n    </svg>')}),n.addButton("options",{id:"undo",command:"core:undo",attributes:{title:o("undo")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n        <path fill="currentColor" d="M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z" />\n    </svg>')}),n.addButton("options",{id:"redo",command:"core:redo",attributes:{title:o("redo")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n        <path fill="currentColor" d="M10.5 18H18V20H10.5C6.91 20 4 17.09 4 13.5S6.91 7 10.5 7H16.17L13.08 3.91L14.5 2.5L20 8L14.5 13.5L13.09 12.09L16.17 9H10.5C8 9 6 11 6 13.5S8 18 10.5 18Z" />\n    </svg>')}),e.resetDevices&&(t.getConfig().showDevices=!1,n.addPanel({id:"devices-c"}).get("buttons").add([{id:c,command:c,active:!0,attributes:{title:o("desktop")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n            <path fill="currentColor" d="M21,16H3V4H21M21,2H3C1.89,2 1,2.89 1,4V16A2,2 0 0,0 3,18H10V20H8V22H16V20H14V18H21A2,2 0 0,0 23,16V4C23,2.89 22.1,2 21,2Z" />\n        </svg>')},{id:u,command:u,attributes:{title:o("tablet")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n            <path fill="currentColor" d="M19,18H5V6H19M21,4H3C1.89,4 1,4.89 1,6V18A2,2 0 0,0 3,20H21A2,2 0 0,0 23,18V6C23,4.89 22.1,4 21,4Z" />\n        </svg>')},{id:p,command:p,attributes:{title:o("mobile")},label:"<svg ".concat(r,' viewBox="0 0 24 24">\n            <path fill="currentColor" d="M17,19H7V5H17M17,1H7C5.89,1 5,1.89 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3C19,1.89 18.1,1 17,1Z" />\n        </svg>')}]))},Ot=function(t,e){e.resetStyleManager&&t.onReady((function(){var e=t.StyleManager.getSectors();e.reset(),e.add([{name:"Dimension",open:!1,buildProps:["width","height","max-width","min-height","margin","padding","vertical-align"],properties:[{property:"margin",properties:[{name:"Top",property:"margin-top"},{name:"Right",property:"margin-right"},{name:"Bottom",property:"margin-bottom"},{name:"Left",property:"margin-left"}]},{property:"padding",detached:!0,properties:[{name:"Top",property:"padding-top"},{name:"Right",property:"padding-right"},{name:"Bottom",property:"padding-bottom"},{name:"Left",property:"padding-left"}]},{property:"icon-size",type:"integer",defaults:"20px",units:["px","%"]},{property:"vertical-align",type:"select",list:[{value:"top"},{value:"middle"},{value:"bottom"}]}]},{name:"Typography",open:!1,buildProps:["font-family","font-size","font-weight","letter-spacing","color","line-height","text-align","align","text-decoration","font-style"],properties:[{name:"Font",property:"font-family"},{name:"Weight",property:"font-weight"},{name:"Font color",property:"color"},{property:"text-align",type:"radio",defaults:"left",list:[{value:"left",name:"Left",className:"fa fa-align-left"},{value:"center",name:"Center",className:"fa fa-align-center"},{value:"right",name:"Right",className:"fa fa-align-right"},{value:"justify",name:"Justify",className:"fa fa-align-justify"}]},{property:"align",type:"radio",defaults:"left",list:[{value:"left",name:"Left",className:"fa fa-align-left"},{value:"center",name:"Center",className:"fa fa-align-center"},{value:"right",name:"Right",className:"fa fa-align-right"},{value:"justify",name:"Justify",className:"fa fa-align-justify"}]},{property:"text-decoration",type:"radio",defaults:"none",list:[{value:"none",name:"None",className:"fa fa-times"},{value:"underline",name:"underline",className:"fa fa-underline"},{value:"line-through",name:"Line-through",className:"fa fa-strikethrough"}]},{property:"font-style",type:"radio",defaults:"normal",list:[{value:"normal",name:"Normal",className:"fa fa-font"},{value:"italic",name:"Italic",className:"fa fa-italic"}]}]},{name:"Decorations",open:!1,buildProps:["background-color","container-background-color","background-url","background-repeat","background-size","border-radius","border"],properties:[{name:"Background color",property:"container-background-color",type:"color"},{property:"background-url",type:"file"},{property:"border-radius",properties:[{name:"Top",property:"border-top-left-radius"},{name:"Right",property:"border-top-right-radius"},{name:"Bottom",property:"border-bottom-left-radius"},{name:"Left",property:"border-bottom-right-radius"}]},{property:"border-detached",name:"Border detached",type:"composite",detached:!0,properties:[{name:"Width",property:"border-width",type:"integer",units:["px","%"]},{name:"Style",property:"border-style",type:"select",list:[{value:"none"},{value:"solid"},{value:"dotted"},{value:"dashed"},{value:"double"},{value:"groove"},{value:"ridge"},{value:"inset"},{value:"outset"}]},{name:"Color",property:"border-color",type:"color"}]}]}])}))};var St=function(){return St=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},St.apply(this,arguments)};const kt=function(t,n){void 0===n&&(n={});var r=St({blocks:["mj-1-column","mj-2-columns","mj-3-columns","mj-text","mj-button","mj-image","mj-divider","mj-social-group","mj-social-element","mj-spacer","mj-navbar","mj-navbar-link","mj-hero","mj-wrapper","mj-raw"],block:function(){return{}},codeViewerTheme:"hopscotch",customComponents:[],importPlaceholder:"",imagePlaceholderSrc:"",mjmlParser:Ct,overwriteExport:!0,preMjml:"",postMjml:"",resetBlocks:!0,resetStyleManager:!0,resetDevices:!0,hideSelector:!0,useXmlParser:!1,useCustomTheme:!0,columnsPadding:"10px 0",i18n:{},fonts:{}},n),o=t.getConfig();if(o.forceClass=!1,o.devicePreviewMode=!0,o.avoidInlineStyle=!1,r.hideSelector&&(t.SelectorManager.getConfig().custom=!0),r.useXmlParser&&(t.Parser.getConfig().optionsHtml.htmlType="text/xml"),r.useCustomTheme&&"undefined"!=typeof window){var i="gjs-",a="";[["one","#2c2e35"],["two","#888686"],["four","#f45e43"]].forEach((function(t){var e=t[0],n=t[1];a+="\n        .".concat(i).concat(e,"-bg {\n          background-color: ").concat(n,";\n        }\n        .").concat(i).concat(e,"-color {\n          color: ").concat(n,";\n        }\n        .").concat(i).concat(e,"-color-h:hover {\n          color: ").concat(n,";\n        }\n      ")}));var s=document.createElement("style");s.innerText=a,document.head.appendChild(s)}t.I18n.addMessages(St({en:Tt},r.i18n)),[e,Et,g,At,Ot].forEach((function(e){return e(t,r)}))}})(),r})(),t.exports=e()},459:function(t){var e;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,e=()=>(()=>{"use strict";var t={d:(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>i});var n=function(){return n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},r=function(t,e){[].forEach.call(t,e)},o=function(t){return t.stopPropagation()};const i=function(t,e){void 0===e&&(e={});var i,a,s,l=n({options:{},customRte:{},position:"left",ckeditor:"https://cdn.ckeditor.com/4.21.0/standard-all/ckeditor.js",onToolbar:function(){}},e),c=l.ckeditor,u="undefined"!=typeof window,p=!1;c?"string"==typeof c?u&&(p=!0,(a=c,(s=document.createElement("script")).src=a,document.head.appendChild(s),s).onload=function(){i=window.CKEDITOR}):c.inline&&(i=c):u&&(i=window.CKEDITOR);var d=function(){return setTimeout((function(){return t.refresh()}),0)},f=function(){t.log("CKEDITOR instance not found",{level:"error"})};if(!i&&!p)return f();var h=function(t,e){var n;(null===(n=null==e?void 0:e.focusManager)||void 0===n?void 0:n.hasFocus)||(t.contentEditable="true",null==e||e.focus(),d())};t.setCustomRte(n({getContent:function(t,e){return e.getData()},enable:function(e,a){if(a&&"destroyed"!=a.status)return h(e,a),a;if(i){var s=t.RichTextEditor.getToolbarEl();r(s.children,(function(t){t.style.display="none"}));var c=n({},l.options),u="sharedspace";return c.extraPlugins?"string"==typeof c.extraPlugins?c.extraPlugins+=",".concat(u):Array.isArray(c.extraPlugins)&&c.extraPlugins.push(u):c.extraPlugins=u,c.sharedSpaces||(c.sharedSpaces={top:s}),(a=i.inline(e,c)).on("contentDom",(function(){var t=a.editable();t.attachListener(t,"click",(function(){return e.click()}))})),a.on("instanceReady",(function(){var e=s.querySelector("#cke_".concat(a.name));e&&(e.style.display="block",l.onToolbar(e)),t.refresh(),d()})),a.on("dialogShow",(function(){var t=document.querySelectorAll(".cke_dialog_background_cover, .cke_dialog_container");r(t,(function(t){t.removeEventListener("mousedown",o),t.addEventListener("mousedown",o)}))})),a.on("key",(function(t){13===t.data.keyCode&&d()})),h(e,a),a}f()},disable:function(t,e){var n;t.contentEditable="false",null===(n=null==e?void 0:e.focusManager)||void 0===n||n.blur(!0)}},l.customRte)),t.on("rteToolbarPosUpdate",(function(t){var e=t.elRect;switch(l.position){case"center":t.left=e.width/2-t.targetWidth/2;break;case"right":t.left="",t.right=0}}))};return e})(),t.exports=e()}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r].call(i.exports,i,i.exports,n),i.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t={4729:(t,e,n)=>{var r,o,i;o=[n(5706),n(4193)],r=function(t,e){var n=Array.prototype.slice;function r(t,e,n){return n.length<=4?t.call(e,n[0],n[1],n[2],n[3]):t.apply(e,n)}function o(t,e){return n.call(t,e)}function i(e,n){return null!=e&&(t.isArray(n)||(n=o(arguments,1)),t.all(n,(function(t){return t in e})))}var a,s,l=(a=!1,s=-1,function(){return a||(s++,a=!0,t.defer((function(){a=!1}))),s});function c(){this.registeredObjects=[],this.cidIndexes=[]}function u(e,n,r,o){for(var i,a=0,s=n.length;a<s;a++)if(i=n[a]){if("on"===e){if(!o.objectRegistry.register(i))continue}else if(!o.objectRegistry.unregister(i))continue;t.isFunction(i[e])&&i[e]("all",r,o)}}function p(e,n){var r=n.type,o=n.undoTypes,i=!o[r]||o[r][e];t.isFunction(i)&&i(n.object,n.before,n.after,n.options)}function d(e,r,o,i,a){if(!(o.isCurrentlyUndoRedoing||"undo"===e&&-1===o.pointer||"redo"===e&&o.pointer===o.length-1)){o.isCurrentlyUndoRedoing=!0;var s,l,c="undo"===e;for(a?l=c&&o.pointer===o.length-1||!c&&-1===o.pointer?t.clone(o.models):n.apply(o.models,c?[0,o.pointer]:[o.pointer,o.length-1]):(s=o.at(c?o.pointer:o.pointer+1),l=i?o.where({magicFusionIndex:s.get("magicFusionIndex")}):[s]),o.pointer+=(c?-1:1)*l.length;s=c?l.pop():l.shift();)s[e]();o.isCurrentlyUndoRedoing=!1,r.trigger(e,r)}}function f(t,e,n,o){if(t.track&&!t.isCurrentlyUndoRedoing&&e in o&&function(t,e){var n=t.condition,o=typeof n;return"function"===o?!!r(n,t,e):"boolean"!==o||n}(o[e],n)){var a=r(o[e].on,o[e],n);if(i(a,"object","before","after")){if(a.type=e,a.magicFusionIndex=l(),a.undoTypes=o,t.pointer<t.length-1)for(var s=t.length-t.pointer-1;s--;)t.pop();t.pointer=t.length,t.add(a),t.length>t.maximumStackLength&&(t.shift(),t.pointer--)}}}c.prototype={isRegistered:function(e){return e&&e.cid?this.registeredObjects[e.cid]:t.contains(this.registeredObjects,e)},register:function(t){return!this.isRegistered(t)&&(t&&t.cid?(this.registeredObjects[t.cid]=t,this.cidIndexes.push(t.cid)):this.registeredObjects.push(t),!0)},unregister:function(e){if(this.isRegistered(e)){if(e&&e.cid)delete this.registeredObjects[e.cid],this.cidIndexes.splice(t.indexOf(this.cidIndexes,e.cid),1);else{var n=t.indexOf(this.registeredObjects,e);this.registeredObjects.splice(n,1)}return!0}return!1},get:function(){return t.map(this.cidIndexes,(function(t){return this.registeredObjects[t]}),this).concat(this.registeredObjects)}};var h={add:{undo:function(t,e,n,r){t.remove(n,r)},redo:function(t,e,n,r){r.index&&(r.at=r.index),t.add(n,r)},on:function(e,n,r){return{object:n,before:void 0,after:e,options:t.clone(r)}}},remove:{undo:function(t,e,n,r){"index"in r&&(r.at=r.index),t.add(e,r)},redo:function(t,e,n,r){t.remove(e,r)},on:function(e,n,r){return{object:n,before:e,after:void 0,options:t.clone(r)}}},change:{undo:function(e,n,r,o){t.isEmpty(n)?t.each(t.keys(r),e.unset,e):(e.set(n),o&&o.unsetData&&o.unsetData.before&&o.unsetData.before.length&&t.each(o.unsetData.before,e.unset,e))},redo:function(e,n,r,o){t.isEmpty(r)?t.each(t.keys(n),e.unset,e):(e.set(r),o&&o.unsetData&&o.unsetData.after&&o.unsetData.after.length&&t.each(o.unsetData.after,e.unset,e))},on:function(e,n){var r=e.changedAttributes(),o=t.keys(r),i=t.pick(e.previousAttributes(),o),a=t.keys(i),s=(n||(n={})).unsetData={after:[],before:[]};return o.length!=a.length&&(o.length>a.length?t.each(o,(function(t){t in i||s.before.push(t)}),this):t.each(a,(function(t){t in r||s.after.push(t)}))),{object:e,before:i,after:r,options:t.clone(n)}}},reset:{undo:function(t,e,n){t.reset(e)},redo:function(t,e,n){t.reset(n)},on:function(e,n){return{object:e,before:n.previousModels,after:t.clone(e.models)}}}};function g(){}function m(e,n,r,o){if("object"==typeof n)return t.each(n,(function(t,n){2===e?m(e,t,r,o):m(e,n,t,r)}));switch(e){case 0:i(r,"undo","redo","on")&&t.all(t.pick(r,"undo","redo","on"),t.isFunction)&&(o[n]=r);break;case 1:o[n]&&t.isObject(r)&&(o[n]=t.extend({},o[n],r));break;case 2:delete o[n]}return this}g.prototype=h;var v=e.Model.extend({defaults:{type:null,object:null,before:null,after:null,magicFusionIndex:null},undo:function(t){p("undo",this.attributes)},redo:function(t){p("redo",this.attributes)}}),y=e.Collection.extend({model:v,pointer:-1,track:!1,isCurrentlyUndoRedoing:!1,maximumStackLength:1/0,setMaxLength:function(t){this.maximumStackLength=t}}),b=e.Model.extend({defaults:{maximumStackLength:1/0,track:!1},initialize:function(e){this.stack=new y,this.objectRegistry=new c,this.undoTypes=new g,this.stack.setMaxLength(this.get("maximumStackLength")),this.on("change:maximumStackLength",(function(t,e){this.stack.setMaxLength(e)}),this),e&&e.track&&this.startTracking(),e&&e.register&&(t.isArray(e.register)||t.isArguments(e.register)?r(this.register,this,e.register):this.register(e.register))},startTracking:function(){this.set("track",!0),this.stack.track=!0},stopTracking:function(){this.set("track",!1),this.stack.track=!1},isTracking:function(){return this.get("track")},_addToStack:function(t){f(this.stack,t,o(arguments,1),this.undoTypes)},register:function(){u("on",arguments,this._addToStack,this)},unregister:function(){u("off",arguments,this._addToStack,this)},unregisterAll:function(){r(this.unregister,this,this.objectRegistry.get())},undo:function(t){d("undo",this,this.stack,t)},undoAll:function(){d("undo",this,this.stack,!1,!0)},redo:function(t){d("redo",this,this.stack,t)},redoAll:function(){d("redo",this,this.stack,!1,!0)},isAvailable:function(t){var e=this.stack,n=e.length;switch(t){case"undo":return n>0&&e.pointer>-1;case"redo":return n>0&&e.pointer<n-1;default:return!1}},merge:function(e){for(var n,r=t.isArray(e)?e:o(arguments);n=r.pop();)n instanceof b&&n.stack instanceof y&&(n.stack=this.stack)},addUndoType:function(t,e){m(0,t,e,this.undoTypes)},changeUndoType:function(t,e){m(1,t,e,this.undoTypes)},removeUndoType:function(t){m(2,t,void 0,this.undoTypes)},clear:function(){this.stack.reset(),this.stack.pointer=-1}});return t.extend(b,{defaults:function(e){t.extend(b.prototype.defaults,e)},addUndoType:function(t,e){m(0,t,e,h)},changeUndoType:function(t,e){m(1,t,e,h)},removeUndoType:function(t){m(2,t,void 0,h)}}),e.UndoManager=b},void 0===(i=r.apply(e,o))||(t.exports=i)},4193:(t,e,n)=>{var r,o,i;i="object"==typeof self&&self.self===self&&self||"object"==typeof n.g&&n.g.global===n.g&&n.g,r=[n(5706),n(6411),e],o=function(t,e,n){i.Backbone=function(t,e,n,r){var o=t.Backbone,i=Array.prototype.slice;e.VERSION="1.4.1",e.$=r,e.noConflict=function(){return t.Backbone=o,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a,s=e.Events={},l=/\s+/,c=function(t,e,r,o,i){var a,s=0;if(r&&"object"==typeof r){void 0!==o&&"context"in i&&void 0===i.context&&(i.context=o);for(a=n.keys(r);s<a.length;s++)e=c(t,e,a[s],r[a[s]],i)}else if(r&&l.test(r))for(a=r.split(l);s<a.length;s++)e=t(e,a[s],o,i);else e=t(e,r,o,i);return e};s.on=function(t,e,n){return this._events=c(u,this._events||{},t,e,{context:n,ctx:this,listening:a}),a&&((this._listeners||(this._listeners={}))[a.id]=a,a.interop=!1),this},s.listenTo=function(t,e,r){if(!t)return this;var o=t._listenId||(t._listenId=n.uniqueId("l")),i=this._listeningTo||(this._listeningTo={}),s=a=i[o];s||(this._listenId||(this._listenId=n.uniqueId("l")),s=a=i[o]=new m(this,t));var l=p(t,e,r,this);if(a=void 0,l)throw l;return s.interop&&s.on(e,r),this};var u=function(t,e,n,r){if(n){var o=t[e]||(t[e]=[]),i=r.context,a=r.ctx,s=r.listening;s&&s.count++,o.push({callback:n,context:i,ctx:i||a,listening:s})}return t},p=function(t,e,n,r){try{t.on(e,n,r)}catch(t){return t}};s.off=function(t,e,n){return this._events?(this._events=c(d,this._events,t,e,{context:n,listeners:this._listeners}),this):this},s.stopListening=function(t,e,r){var o=this._listeningTo;if(!o)return this;for(var i=t?[t._listenId]:n.keys(o),a=0;a<i.length;a++){var s=o[i[a]];if(!s)break;s.obj.off(e,r,this),s.interop&&s.off(e,r)}return n.isEmpty(o)&&(this._listeningTo=void 0),this};var d=function(t,e,r,o){if(t){var i,a=o.context,s=o.listeners,l=0;if(e||a||r){for(i=e?[e]:n.keys(t);l<i.length;l++){var c=t[e=i[l]];if(!c)break;for(var u=[],p=0;p<c.length;p++){var d=c[p];if(r&&r!==d.callback&&r!==d.callback._callback||a&&a!==d.context)u.push(d);else{var f=d.listening;f&&f.off(e,r)}}u.length?t[e]=u:delete t[e]}return t}for(i=n.keys(s);l<i.length;l++)s[i[l]].cleanup()}};s.once=function(t,e,n){var r=c(f,{},t,e,this.off.bind(this));return"string"==typeof t&&null==n&&(e=void 0),this.on(r,e,n)},s.listenToOnce=function(t,e,n){var r=c(f,{},e,n,this.stopListening.bind(this,t));return this.listenTo(t,r)};var f=function(t,e,r,o){if(r){var i=t[e]=n.once((function(){o(e,i),r.apply(this,arguments)}));i._callback=r}return t};s.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),n=Array(e),r=0;r<e;r++)n[r]=arguments[r+1];return c(h,this._events,t,void 0,n),this};var h=function(t,e,n,r){if(t){var o=t[e],i=t.all;o&&i&&(i=i.slice()),o&&g(o,r),i&&g(i,[e].concat(r))}return t},g=function(t,e){var n,r=-1,o=t.length,i=e[0],a=e[1],s=e[2];switch(e.length){case 0:for(;++r<o;)(n=t[r]).callback.call(n.ctx);return;case 1:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i);return;case 2:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i,a);return;case 3:for(;++r<o;)(n=t[r]).callback.call(n.ctx,i,a,s);return;default:for(;++r<o;)(n=t[r]).callback.apply(n.ctx,e);return}},m=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0};m.prototype.on=s.on,m.prototype.off=function(t,e){var n;this.interop?(this._events=c(d,this._events,t,e,{context:void 0,listeners:void 0}),n=!this._events):(this.count--,n=0===this.count),n&&this.cleanup()},m.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},s.bind=s.on,s.unbind=s.off,n.extend(e,s);var v=e.Model=function(t,e){var r=t||{};e||(e={}),this.preinitialize.apply(this,arguments),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(r=this.parse(r,e)||{});var o=n.result(this,"defaults");r=n.defaults(n.extend({},o,r),o),this.set(r,e),this.changed={},this.initialize.apply(this,arguments)};n.extend(v.prototype,s,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return n.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return n.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!n.iteratee(t,this)(this.attributes)},set:function(t,e,r){if(null==t)return this;var o;if("object"==typeof t?(o=t,r=e):(o={})[t]=e,r||(r={}),!this._validate(o,r))return!1;var i=r.unset,a=r.silent,s=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=n.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,p=this._previousAttributes;for(var d in o)e=o[d],n.isEqual(c[d],e)||s.push(d),n.isEqual(p[d],e)?delete u[d]:u[d]=e,i?delete c[d]:c[d]=e;if(this.idAttribute in o){var f=this.id;this.id=this.get(this.idAttribute),this.trigger("changeId",this,f,r)}if(!a){s.length&&(this._pending=r);for(var h=0;h<s.length;h++)this.trigger("change:"+s[h],this,c[s[h]],r)}if(l)return this;if(!a)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,n.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var r in this.attributes)e[r]=void 0;return this.set(e,n.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!n.isEmpty(this.changed):n.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&n.clone(this.changed);var e,r=this._changing?this._previousAttributes:this.attributes,o={};for(var i in t){var a=t[i];n.isEqual(r[i],a)||(o[i]=a,e=!0)}return!!e&&o},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(t){t=n.extend({parse:!0},t);var e=this,r=t.success;return t.success=function(n){var o=t.parse?e.parse(n,t):n;if(!e.set(o,t))return!1;r&&r.call(t.context,e,n,t),e.trigger("sync",e,n,t)},z(this,t),this.sync("read",this,t)},save:function(t,e,r){var o;null==t||"object"==typeof t?(o=t,r=e):(o={})[t]=e;var i=(r=n.extend({validate:!0,parse:!0},r)).wait;if(o&&!i){if(!this.set(o,r))return!1}else if(!this._validate(o,r))return!1;var a=this,s=r.success,l=this.attributes;r.success=function(t){a.attributes=l;var e=r.parse?a.parse(t,r):t;if(i&&(e=n.extend({},o,e)),e&&!a.set(e,r))return!1;s&&s.call(r.context,a,t,r),a.trigger("sync",a,t,r)},z(this,r),o&&i&&(this.attributes=n.extend({},l,o));var c=this.isNew()?"create":r.patch?"patch":"update";"patch"!==c||r.attrs||(r.attrs=o);var u=this.sync(c,this,r);return this.attributes=l,u},destroy:function(t){t=t?n.clone(t):{};var e=this,r=t.success,o=t.wait,i=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(n){o&&i(),r&&r.call(t.context,e,n,t),e.isNew()||e.trigger("sync",e,n,t)};var a=!1;return this.isNew()?n.defer(t.success):(z(this,t),a=this.sync("delete",this,t)),o||i(),a},url:function(){var t=n.result(this,"urlRoot")||n.result(this.collection,"url")||q();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},n.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=n.extend({},this.attributes,t);var r=this.validationError=this.validate(t,e)||null;return!r||(this.trigger("invalid",this,r,n.extend(e,{validationError:r})),!1)}});var y=e.Collection=function(t,e){e||(e={}),this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,n.extend({silent:!0},e))},b={add:!0,remove:!0,merge:!0},_={add:!0,remove:!1},w=function(t,e,n){n=Math.min(Math.max(n,0),t.length);var r,o=Array(t.length-n),i=e.length;for(r=0;r<o.length;r++)o[r]=t[r+n];for(r=0;r<i;r++)t[r+n]=e[r];for(r=0;r<o.length;r++)t[r+i+n]=o[r]};n.extend(y.prototype,s,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(t){return this.map((function(e){return e.toJSON(t)}))},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,n.extend({merge:!1},e,_))},remove:function(t,e){e=n.extend({},e);var r=!n.isArray(t);t=r?[t]:t.slice();var o=this._removeModels(t,e);return!e.silent&&o.length&&(e.changes={added:[],merged:[],removed:o},this.trigger("update",this,e)),r?o[0]:o},set:function(t,e){if(null!=t){(e=n.extend({},b,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var r=!n.isArray(t);t=r?[t]:t.slice();var o=e.at;null!=o&&(o=+o),o>this.length&&(o=this.length),o<0&&(o+=this.length+1);var i,a,s=[],l=[],c=[],u=[],p={},d=e.add,f=e.merge,h=e.remove,g=!1,m=this.comparator&&null==o&&!1!==e.sort,v=n.isString(this.comparator)?this.comparator:null;for(a=0;a<t.length;a++){i=t[a];var y=this.get(i);if(y){if(f&&i!==y){var _=this._isModel(i)?i.attributes:i;e.parse&&(_=y.parse(_,e)),y.set(_,e),c.push(y),m&&!g&&(g=y.hasChanged(v))}p[y.cid]||(p[y.cid]=!0,s.push(y)),t[a]=y}else d&&(i=t[a]=this._prepareModel(i,e))&&(l.push(i),this._addReference(i,e),p[i.cid]=!0,s.push(i))}if(h){for(a=0;a<this.length;a++)p[(i=this.models[a]).cid]||u.push(i);u.length&&this._removeModels(u,e)}var E=!1,x=!m&&d&&h;if(s.length&&x?(E=this.length!==s.length||n.some(this.models,(function(t,e){return t!==s[e]})),this.models.length=0,w(this.models,s,0),this.length=this.models.length):l.length&&(m&&(g=!0),w(this.models,l,null==o?this.length:o),this.length=this.models.length),g&&this.sort({silent:!0}),!e.silent){for(a=0;a<l.length;a++)null!=o&&(e.index=o+a),(i=l[a]).trigger("add",i,this,e);(g||E)&&this.trigger("sort",this,e),(l.length||u.length||c.length)&&(e.changes={added:l,removed:u,merged:c},this.trigger("update",this,e))}return r?t[0]:t}},reset:function(t,e){e=e?n.clone(e):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],e);return e.previousModels=this.models,this._reset(),t=this.add(t,n.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,n.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,n.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return i.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var r=e.length;return n.isFunction(e)&&(e=e.bind(this)),1===r||n.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){var e=(t=n.extend({parse:!0},t)).success,r=this;return t.success=function(n){var o=t.reset?"reset":"set";r[o](n,t),e&&e.call(t.context,r,n,t),r.trigger("sync",r,n,t)},z(this,t),this.sync("read",this,t)},create:function(t,e){var r=(e=e?n.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;r||this.add(t,e);var o=this,i=e.success;return e.success=function(t,e,n){r&&o.add(t,n),i&&i.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new x(this,C)},keys:function(){return new x(this,T)},entries:function(){return new x(this,A)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):((e=e?n.clone(e):{}).collection=this,(r=this.model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,r.validationError,e),!1):r);var r},_removeModels:function(t,e){for(var n=[],r=0;r<t.length;r++){var o=this.get(t[r]);if(o){var i=this.indexOf(o);this.models.splice(i,1),this.length--,delete this._byId[o.cid];var a=this.modelId(o.attributes,o.idAttribute);null!=a&&delete this._byId[a],e.silent||(e.index=i,o.trigger("remove",o,this,e)),n.push(o),this._removeReference(o,e)}}return n},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes,t.idAttribute);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes,t.idAttribute);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,r){if(e){if(("add"===t||"remove"===t)&&n!==this)return;if("destroy"===t&&this.remove(e,r),"changeId"===t){var o=this.modelId(e.previousAttributes(),e.idAttribute),i=this.modelId(e.attributes,e.idAttribute);null!=o&&delete this._byId[o],null!=i&&(this._byId[i]=e)}}this.trigger.apply(this,arguments)}});var E="function"==typeof Symbol&&Symbol.iterator;E&&(y.prototype[E]=y.prototype.values);var x=function(t,e){this._collection=t,this._kind=e,this._index=0},C=1,T=2,A=3;E&&(x.prototype[E]=function(){return this}),x.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var t,e=this._collection.at(this._index);if(this._index++,this._kind===C)t=e;else{var n=this._collection.modelId(e.attributes,e.idAttribute);t=this._kind===T?n:[n,e]}return{value:t,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var O=e.View=function(t){this.cid=n.uniqueId("view"),this.preinitialize.apply(this,arguments),n.extend(this,n.pick(t,k)),this._ensureElement(),this.initialize.apply(this,arguments)},S=/^(\S+)\s*(.*)$/,k=["model","collection","el","id","attributes","className","tagName","events"];n.extend(O.prototype,s,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=n.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var r=t[e];if(n.isFunction(r)||(r=this[r]),r){var o=e.match(S);this.delegate(o[1],o[2],r.bind(this))}}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"));else{var t=n.extend({},n.result(this,"attributes"));this.id&&(t.id=n.result(this,"id")),this.className&&(t.class=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}});var P=function(t,e,r,o){n.each(r,(function(n,r){e[r]&&(t.prototype[r]=function(t,e,n,r){switch(e){case 1:return function(){return t[n](this[r])};case 2:return function(e){return t[n](this[r],e)};case 3:return function(e,o){return t[n](this[r],j(e,this),o)};case 4:return function(e,o,i){return t[n](this[r],j(e,this),o,i)};default:return function(){var e=i.call(arguments);return e.unshift(this[r]),t[n].apply(t,e)}}}(e,n,r,o))}))},j=function(t,e){return n.isFunction(t)?t:n.isObject(t)&&!e._isModel(t)?N(t):n.isString(t)?function(e){return e.get(t)}:t},N=function(t){var e=n.matches(t);return function(t){return e(t.attributes)}};n.each([[y,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[v,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],(function(t){var e=t[0],r=t[1],o=t[2];e.mixin=function(t){var r=n.reduce(n.functions(t),(function(t,e){return t[e]=0,t}),{});P(e,t,r,o)},P(e,n,r,o)})),e.sync=function(t,r,o){var i=L[t];n.defaults(o||(o={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:i,dataType:"json"};if(o.url||(a.url=n.result(r,"url")||q()),null!=o.data||!r||"create"!==t&&"update"!==t&&"patch"!==t||(a.contentType="application/json",a.data=JSON.stringify(o.attrs||r.toJSON(o))),o.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),o.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){a.type="POST",o.emulateJSON&&(a.data._method=i);var s=o.beforeSend;o.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",i),s)return s.apply(this,arguments)}}"GET"===a.type||o.emulateJSON||(a.processData=!1);var l=o.error;o.error=function(t,e,n){o.textStatus=e,o.errorThrown=n,l&&l.call(o.context,t,e,n)};var c=o.xhr=e.ajax(n.extend(a,o));return r.trigger("request",r,c,o),c};var L={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var D=e.Router=function(t){t||(t={}),this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},I=/\((.*?)\)/g,R=/(\(\?)?:\w+/g,M=/\*\w+/g,B=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(D.prototype,s,{preinitialize:function(){},initialize:function(){},route:function(t,r,o){n.isRegExp(t)||(t=this._routeToRegExp(t)),n.isFunction(r)&&(o=r,r=""),o||(o=this[r]);var i=this;return e.history.route(t,(function(n){var a=i._extractParameters(t,n);!1!==i.execute(o,a,r)&&(i.trigger.apply(i,["route:"+r].concat(a)),i.trigger("route",r,a),e.history.trigger("route",i,r,a))})),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,n){return e.history.navigate(t,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var t,e=n.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(B,"\\$&").replace(I,"(?:$1)?").replace(R,(function(t,e){return e?t:"([^/?]+)"})).replace(M,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return n.map(r,(function(t,e){return e===r.length-1?t||null:t?decodeURIComponent(t):null}))}});var F=e.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},U=/^[#\/]|\s+$/g,H=/^\/+|\/+$/g,V=/#.*$/;F.started=!1,n.extend(F.prototype,s,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(U,"")},start:function(t){if(F.started)throw new Error("Backbone.history has already been started");if(F.started=!0,this.options=n.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(H,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,o=r.insertBefore(this.iframe,r.firstChild).contentWindow;o.document.open(),o.document.close(),o.location.hash="#"+this.fragment}var i=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?i("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?i("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),F.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return!!this.matchRoot()&&(t=this.fragment=this.getFragment(t),n.some(this.handlers,(function(e){if(e.route.test(t))return e.callback(t),!0})))},navigate:function(t,e){if(!F.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root;""!==t&&"?"!==t.charAt(0)||(n=n.slice(0,-1)||"/");var r=n+t;t=t.replace(V,"");var o=this.decodeFragment(t);if(this.fragment!==o){if(this.fragment=o,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;e.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){if(n){var r=t.href.replace(/(javascript:|#).*$/,"");t.replace(r+"#"+e)}else t.hash="#"+e}}),e.history=new F;v.extend=y.extend=D.extend=O.extend=F.extend=function(t,e){var r,o=this;return r=t&&n.has(t,"constructor")?t.constructor:function(){return o.apply(this,arguments)},n.extend(r,o,e),r.prototype=n.create(o.prototype,t),r.prototype.constructor=r,r.__super__=o.prototype,r};var q=function(){throw new Error('A "url" property or function must be specified')},z=function(t,e){var n=e.error;e.error=function(r){n&&n.call(e.context,t,r,e),t.trigger("error",t,r,e)}};return e}(i,n,t,e)}.apply(e,r),void 0===o||(t.exports=o)},3640:(t,e,n)=>{!function(t){t.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(t,e){return/^[;{}]$/.test(e)}}),t.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(t,e,n,r){return this.jsonMode?/^[\[,{]$/.test(e)||/^}/.test(n):(";"!=e||!r.lexical||")"!=r.lexical.type)&&/^[;{}]$/.test(e)&&!/^;/.test(n)}});var e=/^(a|abbr|acronym|area|base|bdo|big|br|button|caption|cite|code|col|colgroup|dd|del|dfn|em|frame|hr|iframe|img|input|ins|kbd|label|legend|link|map|object|optgroup|option|param|q|samp|script|select|small|span|strong|sub|sup|textarea|tt|var)$/;t.extendMode("xml",{commentStart:"\x3c!--",commentEnd:"--\x3e",newlineAfterToken:function(t,n,r,o){var i=!1;return"html"==this.configuration&&(i=!!o.context&&e.test(o.context.tagName)),!i&&("tag"==t&&/>$/.test(n)&&o.context||/^</.test(r))}}),t.defineExtension("commentRange",(function(e,n,r){var o=this,i=t.innerMode(o.getMode(),o.getTokenAt(n).state).mode;o.operation((function(){if(e)o.replaceRange(i.commentEnd,r),o.replaceRange(i.commentStart,n),n.line==r.line&&n.ch==r.ch&&o.setCursor(n.line,n.ch+i.commentStart.length);else{var t=o.getRange(n,r),a=t.indexOf(i.commentStart),s=t.lastIndexOf(i.commentEnd);a>-1&&s>-1&&s>a&&(t=t.substr(0,a)+t.substring(a+i.commentStart.length,s)+t.substr(s+i.commentEnd.length)),o.replaceRange(t,n,r)}}))})),t.defineExtension("autoIndentRange",(function(t,e){var n=this;this.operation((function(){for(var r=t.line;r<=e.line;r++)n.indentLine(r,"smart")}))})),t.defineExtension("autoFormatRange",(function(e,n){var r=this,o=r.getMode(),i=r.getRange(e,n).split("\n"),a=t.copyState(o,r.getTokenAt(e).state),s=r.getOption("tabSize"),l="",c=0,u=0===e.ch;function p(){l+="\n",u=!0,++c}for(var d=0;d<i.length;++d){for(var f=new t.StringStream(i[d],s);!f.eol();){var h=t.innerMode(o,a),g=o.token(f,a),m=f.current();f.start=f.pos,u&&!/\S/.test(m)||(l+=m,u=!1),!u&&h.mode.newlineAfterToken&&h.mode.newlineAfterToken(g,m,f.string.slice(f.pos)||i[d+1]||"",h.state)&&p()}!f.pos&&o.blankLine&&o.blankLine(a),!u&&d<i.length-1&&p()}r.operation((function(){r.replaceRange(l,e,n);for(var t=e.line+1,o=e.line+c;t<=o;++t)r.indentLine(t,"smart");r.setSelection(e,r.getCursor(!1))}))}))}(n(4408))},4408:function(t){t.exports=function(){var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),i=/Edge\/(\d+)/.exec(t),a=r||o||i,s=a&&(r?document.documentMode||6:+(i||o)[1]),l=!i&&/WebKit\//.test(t),c=l&&/Qt\/\d+\.\d+/.test(t),u=!i&&/Chrome\//.test(t),p=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),f=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),h=/PhantomJS/.test(t),g=d&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),m=/Android/.test(t),v=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=g||/Mac/.test(e),b=/\bCrOS\b/.test(t),_=/win/i.test(e),w=p&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(p=!1,l=!0);var E=y&&(c||p&&(null==w||w<12.11)),x=n||a&&s>=9;function C(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var T,A=function(t,e){var n=t.className,r=C(e).exec(n);if(r){var o=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(o?r[1]+o:"")}};function O(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function S(t,e){return O(t).appendChild(e)}function k(t,e,n,r){var o=document.createElement(t);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof e)o.appendChild(document.createTextNode(e));else if(e)for(var i=0;i<e.length;++i)o.appendChild(e[i]);return o}function P(t,e,n,r){var o=k(t,e,n,r);return o.setAttribute("role","presentation"),o}function j(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function N(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function L(t,e){var n=t.className;C(e).test(n)||(t.className+=(n?" ":"")+e)}function D(t,e){for(var n=t.split(" "),r=0;r<n.length;r++)n[r]&&!C(n[r]).test(e)&&(e+=" "+n[r]);return e}T=document.createRange?function(t,e,n,r){var o=document.createRange();return o.setEnd(r||t,n),o.setStart(t,e),o}:function(t,e,n){var r=document.body.createTextRange();try{r.moveToElementText(t.parentNode)}catch(t){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",e),r};var I=function(t){t.select()};function R(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function M(t,e,n){for(var r in e||(e={}),t)!t.hasOwnProperty(r)||!1===n&&e.hasOwnProperty(r)||(e[r]=t[r]);return e}function B(t,e,n,r,o){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var i=r||0,a=o||0;;){var s=t.indexOf("\t",i);if(s<0||s>=e)return a+(e-i);a+=s-i,a+=n-a%n,i=s+1}}g?I=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(I=function(t){try{t.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function U(t,e){for(var n=0;n<t.length;++n)if(t[n]==e)return n;return-1}F.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},F.prototype.set=function(t,e){this.f=e;var n=+new Date+t;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=n)};var H={toString:function(){return"CodeMirror.Pass"}},V={scroll:!1},q={origin:"*mouse"},z={origin:"+move"};function W(t,e,n){for(var r=0,o=0;;){var i=t.indexOf("\t",r);-1==i&&(i=t.length);var a=i-r;if(i==t.length||o+a>=e)return r+Math.min(a,e-o);if(o+=i-r,r=i+1,(o+=n-o%n)>=e)return r}}var G=[""];function Y(t){for(;G.length<=t;)G.push(K(G)+" ");return G[t]}function K(t){return t[t.length-1]}function $(t,e){for(var n=[],r=0;r<t.length;r++)n[r]=e(t[r],r);return n}function X(){}function Z(t,e){var n;return Object.create?n=Object.create(t):(X.prototype=t,n=new X),e&&M(e,n),n}var Q=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(t){return/\w/.test(t)||t>"€"&&(t.toUpperCase()!=t.toLowerCase()||Q.test(t))}function tt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&J(t))||e.test(t):J(t)}function et(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function rt(t){return t.charCodeAt(0)>=768&&nt.test(t)}function ot(t,e,n){for(;(n<0?e>0:e<t.length)&&rt(t.charAt(e));)e+=n;return e}function it(t,e,n){for(var r=e>n?-1:1;;){if(e==n)return e;var o=(e+n)/2,i=r<0?Math.ceil(o):Math.floor(o);if(i==e)return t(i)?e:n;t(i)?n=i:e=i+r}}var at=null;function st(t,e,n){var r;at=null;for(var o=0;o<t.length;++o){var i=t[o];if(i.from<e&&i.to>e)return o;i.to==e&&(i.from!=i.to&&"before"==n?r=o:at=o),i.from==e&&(i.from!=i.to&&"before"!=n?r=o:at=o)}return null!=r?r:at}var lt=function(){function t(t){return t<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(t):1424<=t&&t<=1524?"R":1536<=t&&t<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(t-1536):1774<=t&&t<=2220?"r":8192<=t&&t<=8203?"w":8204==t?"b":"L"}var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,r=/[LRr]/,o=/[Lb1n]/,i=/[1n]/;function a(t,e,n){this.level=t,this.from=e,this.to=n}return function(s,l){var c="ltr"==l?"L":"R";if(0==s.length||"ltr"==l&&!e.test(s))return!1;for(var u=s.length,p=[],d=0;d<u;++d)p.push(t(s.charCodeAt(d)));for(var f=0,h=c;f<u;++f){var g=p[f];"m"==g?p[f]=h:h=g}for(var m=0,v=c;m<u;++m){var y=p[m];"1"==y&&"r"==v?p[m]="n":r.test(y)&&(v=y,"r"==y&&(p[m]="R"))}for(var b=1,_=p[0];b<u-1;++b){var w=p[b];"+"==w&&"1"==_&&"1"==p[b+1]?p[b]="1":","!=w||_!=p[b+1]||"1"!=_&&"n"!=_||(p[b]=_),_=w}for(var E=0;E<u;++E){var x=p[E];if(","==x)p[E]="N";else if("%"==x){var C=void 0;for(C=E+1;C<u&&"%"==p[C];++C);for(var T=E&&"!"==p[E-1]||C<u&&"1"==p[C]?"1":"N",A=E;A<C;++A)p[A]=T;E=C-1}}for(var O=0,S=c;O<u;++O){var k=p[O];"L"==S&&"1"==k?p[O]="L":r.test(k)&&(S=k)}for(var P=0;P<u;++P)if(n.test(p[P])){var j=void 0;for(j=P+1;j<u&&n.test(p[j]);++j);for(var N="L"==(P?p[P-1]:c),L=N==("L"==(j<u?p[j]:c))?N?"L":"R":c,D=P;D<j;++D)p[D]=L;P=j-1}for(var I,R=[],M=0;M<u;)if(o.test(p[M])){var B=M;for(++M;M<u&&o.test(p[M]);++M);R.push(new a(0,B,M))}else{var F=M,U=R.length,H="rtl"==l?1:0;for(++M;M<u&&"L"!=p[M];++M);for(var V=F;V<M;)if(i.test(p[V])){F<V&&(R.splice(U,0,new a(1,F,V)),U+=H);var q=V;for(++V;V<M&&i.test(p[V]);++V);R.splice(U,0,new a(2,q,V)),U+=H,F=V}else++V;F<M&&R.splice(U,0,new a(1,F,M))}return"ltr"==l&&(1==R[0].level&&(I=s.match(/^\s+/))&&(R[0].from=I[0].length,R.unshift(new a(0,0,I[0].length))),1==K(R).level&&(I=s.match(/\s+$/))&&(K(R).to-=I[0].length,R.push(new a(0,u-I[0].length,u)))),"rtl"==l?R.reverse():R}}();function ct(t,e){var n=t.order;return null==n&&(n=t.order=lt(t.text,e)),n}var ut=[],pt=function(t,e,n){if(t.addEventListener)t.addEventListener(e,n,!1);else if(t.attachEvent)t.attachEvent("on"+e,n);else{var r=t._handlers||(t._handlers={});r[e]=(r[e]||ut).concat(n)}};function dt(t,e){return t._handlers&&t._handlers[e]||ut}function ft(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n,!1);else if(t.detachEvent)t.detachEvent("on"+e,n);else{var r=t._handlers,o=r&&r[e];if(o){var i=U(o,n);i>-1&&(r[e]=o.slice(0,i).concat(o.slice(i+1)))}}}function ht(t,e){var n=dt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o<n.length;++o)n[o].apply(null,r)}function gt(t,e,n){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),ht(t,n||e.type,t,e),wt(e)||e.codemirrorIgnore}function mt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var n=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),r=0;r<e.length;++r)-1==U(n,e[r])&&n.push(e[r])}function vt(t,e){return dt(t,e).length>0}function yt(t){t.prototype.on=function(t,e){pt(this,t,e)},t.prototype.off=function(t,e){ft(this,t,e)}}function bt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function _t(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function wt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Et(t){bt(t),_t(t)}function xt(t){return t.target||t.srcElement}function Ct(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var Tt,At,Ot=function(){if(a&&s<9)return!1;var t=k("div");return"draggable"in t||"dragDrop"in t}();function St(t){if(null==Tt){var e=k("span","​");S(t,k("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Tt=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=Tt?k("span","​"):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function kt(t){if(null!=At)return At;var e=S(t,document.createTextNode("AخA")),n=T(e,0,1).getBoundingClientRect(),r=T(e,1,2).getBoundingClientRect();return O(t),!(!n||n.left==n.right)&&(At=r.right-n.right<3)}var Pt,jt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var o=t.indexOf("\n",e);-1==o&&(o=t.length);var i=t.slice(e,"\r"==t.charAt(o-1)?o-1:o),a=i.indexOf("\r");-1!=a?(n.push(i.slice(0,a)),e+=a+1):(n.push(i),e=o+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Nt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},Lt="oncopy"in(Pt=k("div"))||(Pt.setAttribute("oncopy","return;"),"function"==typeof Pt.oncopy),Dt=null;var It={},Rt={};function Mt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),It[t]=e}function Bt(t){if("string"==typeof t&&Rt.hasOwnProperty(t))t=Rt[t];else if(t&&"string"==typeof t.name&&Rt.hasOwnProperty(t.name)){var e=Rt[t.name];"string"==typeof e&&(e={name:e}),(t=Z(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Bt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Bt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ft(t,e){e=Bt(e);var n=It[e.name];if(!n)return Ft(t,"text/plain");var r=n(t,e);if(Ut.hasOwnProperty(e.name)){var o=Ut[e.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=e.name,e.helperType&&(r.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)r[a]=e.modeProps[a];return r}var Ut={};function Ht(t,e){M(e,Ut.hasOwnProperty(t)?Ut[t]:Ut[t]={})}function Vt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var o=e[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function qt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function zt(t,e,n){return!t.startState||t.startState(e,n)}var Wt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Gt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(e<i){n=o;break}e-=i}return n.lines[e]}function Yt(t,e,n){var r=[],o=e.line;return t.iter(e.line,n.line+1,(function(t){var i=t.text;o==n.line&&(i=i.slice(0,n.ch)),o==e.line&&(i=i.slice(e.ch)),r.push(i),++o})),r}function Kt(t,e,n){var r=[];return t.iter(e,n,(function(t){r.push(t.text)})),r}function $t(t,e){var n=e-t.height;if(n)for(var r=t;r;r=r.parent)r.height+=n}function Xt(t){if(null==t.parent)return null;for(var e=t.parent,n=U(e.lines,t),r=e.parent;r;e=r,r=r.parent)for(var o=0;r.children[o]!=e;++o)n+=r.children[o].chunkSize();return n+e.first}function Zt(t,e){var n=t.first;t:do{for(var r=0;r<t.children.length;++r){var o=t.children[r],i=o.height;if(e<i){t=o;continue t}e-=i,n+=o.chunkSize()}return n}while(!t.lines);for(var a=0;a<t.lines.length;++a){var s=t.lines[a].height;if(e<s)break;e-=s}return n+a}function Qt(t,e){return e>=t.first&&e<t.first+t.size}function Jt(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function te(t,e,n){if(void 0===n&&(n=null),!(this instanceof te))return new te(t,e,n);this.line=t,this.ch=e,this.sticky=n}function ee(t,e){return t.line-e.line||t.ch-e.ch}function ne(t,e){return t.sticky==e.sticky&&0==ee(t,e)}function re(t){return te(t.line,t.ch)}function oe(t,e){return ee(t,e)<0?e:t}function ie(t,e){return ee(t,e)<0?t:e}function ae(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function se(t,e){if(e.line<t.first)return te(t.first,0);var n=t.first+t.size-1;return e.line>n?te(n,Gt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?te(t.line,e):n<0?te(t.line,0):t}(e,Gt(t,e.line).text.length)}function le(t,e){for(var n=[],r=0;r<e.length;r++)n[r]=se(t,e[r]);return n}Wt.prototype.eol=function(){return this.pos>=this.string.length},Wt.prototype.sol=function(){return this.pos==this.lineStart},Wt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Wt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Wt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},Wt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},Wt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Wt.prototype.skipToEnd=function(){this.pos=this.string.length},Wt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Wt.prototype.backUp=function(t){this.pos-=t},Wt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=B(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.indentation=function(){return B(this.string,null,this.tabSize)-(this.lineStart?B(this.string,this.lineStart,this.tabSize):0)},Wt.prototype.match=function(t,e,n){if("string"!=typeof t){var r=this.string.slice(this.pos).match(t);return r&&r.index>0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var o=function(t){return n?t.toLowerCase():t};if(o(this.string.substr(this.pos,t.length))==o(t))return!1!==e&&(this.pos+=t.length),!0},Wt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Wt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Wt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Wt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ce=function(t,e){this.state=t,this.lookAhead=e},ue=function(t,e,n,r){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function pe(t,e,n,r){var o=[t.state.modeGen],i={};_e(t,e.text,t.doc.mode,n,(function(t,e){return o.push(t,e)}),i,r);for(var a=n.state,s=function(r){n.baseTokens=o;var s=t.state.overlays[r],l=1,c=0;n.state=!0,_e(t,e.text,s.mode,n,(function(t,e){for(var n=l;c<t;){var r=o[l];r>t&&o.splice(l,1,t,o[l+1],r),l+=2,c=Math.min(t,r)}if(e)if(s.opaque)o.splice(n,l-n,t,"overlay "+e),l=n+2;else for(;n<l;n+=2){var i=o[n+1];o[n+1]=(i?i+" ":"")+"overlay "+e}}),i),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)s(l);return{styles:o,classes:i.bgClass||i.textClass?i:null}}function de(t,e,n){if(!e.styles||e.styles[0]!=t.state.modeGen){var r=fe(t,Xt(e)),o=e.text.length>t.options.maxHighlightLength&&Vt(t.doc.mode,r.state),i=pe(t,e,r);o&&(r.state=o),e.stateAfter=r.save(!o),e.styles=i.styles,i.classes?e.styleClasses=i.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function fe(t,e,n){var r=t.doc,o=t.display;if(!r.mode.startState)return new ue(r,!0,e);var i=function(t,e,n){for(var r,o,i=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=i.first)return i.first;var l=Gt(i,s-1),c=l.stateAfter;if(c&&(!n||s+(c instanceof ce?c.lookAhead:0)<=i.modeFrontier))return s;var u=B(l.text,null,t.options.tabSize);(null==o||r>u)&&(o=s-1,r=u)}return o}(t,e,n),a=i>r.first&&Gt(r,i-1).stateAfter,s=a?ue.fromSaved(r,a,i):new ue(r,zt(r.mode),i);return r.iter(i,e,(function(n){he(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=o.viewFrom&&r<o.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function he(t,e,n,r){var o=t.doc.mode,i=new Wt(e,t.options.tabSize,n);for(i.start=i.pos=r||0,""==e&&ge(o,n.state);!i.eol();)me(o,i,n.state),i.start=i.pos}function ge(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var n=qt(t,e);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function me(t,e,n,r){for(var o=0;o<10;o++){r&&(r[0]=qt(t,n).mode);var i=t.token(e,n);if(e.pos>e.start)return i}throw new Error("Mode "+t.name+" failed to advance stream.")}ue.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ue.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ue.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ue.fromSaved=function(t,e,n){return e instanceof ce?new ue(t,Vt(t.mode,e.state),n,e.lookAhead):new ue(t,Vt(t.mode,e),n)},ue.prototype.save=function(t){var e=!1!==t?Vt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ce(e,this.maxLookAhead):e};var ve=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function ye(t,e,n,r){var o,i,a=t.doc,s=a.mode,l=Gt(a,(e=se(a,e)).line),c=fe(t,e.line,n),u=new Wt(l.text,t.options.tabSize,c);for(r&&(i=[]);(r||u.pos<e.ch)&&!u.eol();)u.start=u.pos,o=me(s,u,c.state),r&&i.push(new ve(u,o,Vt(a.mode,c.state)));return r?i:new ve(u,o,c.state)}function be(t,e){if(t)for(;;){var n=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;t=t.slice(0,n.index)+t.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==e[r]?e[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(e[r])||(e[r]+=" "+n[2])}return t}function _e(t,e,n,r,o,i,a){var s=n.flattenSpans;null==s&&(s=t.options.flattenSpans);var l,c=0,u=null,p=new Wt(e,t.options.tabSize,r),d=t.options.addModeClass&&[null];for(""==e&&be(ge(n,r.state),i);!p.eol();){if(p.pos>t.options.maxHighlightLength?(s=!1,a&&he(t,e,r,p.pos),p.pos=e.length,l=null):l=be(me(n,p,r.state,d),i),d){var f=d[0].name;f&&(l="m-"+(l?f+" "+l:f))}if(!s||u!=l){for(;c<p.start;)o(c=Math.min(p.start,c+5e3),u);u=l}p.start=p.pos}for(;c<p.pos;){var h=Math.min(p.pos,c+5e3);o(h,u),c=h}}var we=!1,Ee=!1;function xe(t,e,n){this.marker=t,this.from=e,this.to=n}function Ce(t,e){if(t)for(var n=0;n<t.length;++n){var r=t[n];if(r.marker==e)return r}}function Te(t,e){for(var n,r=0;r<t.length;++r)t[r]!=e&&(n||(n=[])).push(t[r]);return n}function Ae(t,e){if(e.full)return null;var n=Qt(t,e.from.line)&&Gt(t,e.from.line).markedSpans,r=Qt(t,e.to.line)&&Gt(t,e.to.line).markedSpans;if(!n&&!r)return null;var o=e.from.ch,i=e.to.ch,a=0==ee(e.from,e.to),s=function(t,e,n){var r;if(t)for(var o=0;o<t.length;++o){var i=t[o],a=i.marker;if(null==i.from||(a.inclusiveLeft?i.from<=e:i.from<e)||i.from==e&&"bookmark"==a.type&&(!n||!i.marker.insertLeft)){var s=null==i.to||(a.inclusiveRight?i.to>=e:i.to>e);(r||(r=[])).push(new xe(a,i.from,s?null:i.to))}}return r}(n,o,a),l=function(t,e,n){var r;if(t)for(var o=0;o<t.length;++o){var i=t[o],a=i.marker;if(null==i.to||(a.inclusiveRight?i.to>=e:i.to>e)||i.from==e&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var s=null==i.from||(a.inclusiveLeft?i.from<=e:i.from<e);(r||(r=[])).push(new xe(a,s?null:i.from-e,null==i.to?null:i.to-e))}}return r}(r,i,a),c=1==e.text.length,u=K(e.text).length+(c?o:0);if(s)for(var p=0;p<s.length;++p){var d=s[p];if(null==d.to){var f=Ce(l,d.marker);f?c&&(d.to=null==f.to?null:f.to+u):d.to=o}}if(l)for(var h=0;h<l.length;++h){var g=l[h];null!=g.to&&(g.to+=u),null==g.from?Ce(s,g.marker)||(g.from=u,c&&(s||(s=[])).push(g)):(g.from+=u,c&&(s||(s=[])).push(g))}s&&(s=Oe(s)),l&&l!=s&&(l=Oe(l));var m=[s];if(!c){var v,y=e.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new xe(s[b].marker,null,null));for(var _=0;_<y;++_)m.push(v);m.push(l)}return m}function Oe(t){for(var e=0;e<t.length;++e){var n=t[e];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Se(t){var e=t.markedSpans;if(e){for(var n=0;n<e.length;++n)e[n].marker.detachLine(t);t.markedSpans=null}}function ke(t,e){if(e){for(var n=0;n<e.length;++n)e[n].marker.attachLine(t);t.markedSpans=e}}function Pe(t){return t.inclusiveLeft?-1:0}function je(t){return t.inclusiveRight?1:0}function Ne(t,e){var n=t.lines.length-e.lines.length;if(0!=n)return n;var r=t.find(),o=e.find(),i=ee(r.from,o.from)||Pe(t)-Pe(e);return i?-i:ee(r.to,o.to)||je(t)-je(e)||e.id-t.id}function Le(t,e){var n,r=Ee&&t.markedSpans;if(r)for(var o=void 0,i=0;i<r.length;++i)(o=r[i]).marker.collapsed&&null==(e?o.from:o.to)&&(!n||Ne(n,o.marker)<0)&&(n=o.marker);return n}function De(t){return Le(t,!0)}function Ie(t){return Le(t,!1)}function Re(t,e){var n,r=Ee&&t.markedSpans;if(r)for(var o=0;o<r.length;++o){var i=r[o];i.marker.collapsed&&(null==i.from||i.from<e)&&(null==i.to||i.to>e)&&(!n||Ne(n,i.marker)<0)&&(n=i.marker)}return n}function Me(t,e,n,r,o){var i=Gt(t,e),a=Ee&&i.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var c=l.marker.find(0),u=ee(c.from,n)||Pe(l.marker)-Pe(o),p=ee(c.to,r)||je(l.marker)-je(o);if(!(u>=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?ee(c.to,n)>=0:ee(c.to,n)>0)||u>=0&&(l.marker.inclusiveRight&&o.inclusiveLeft?ee(c.from,r)<=0:ee(c.from,r)<0)))return!0}}}function Be(t){for(var e;e=De(t);)t=e.find(-1,!0).line;return t}function Fe(t,e){var n=Gt(t,e),r=Be(n);return n==r?e:Xt(r)}function Ue(t,e){if(e>t.lastLine())return e;var n,r=Gt(t,e);if(!He(t,r))return e;for(;n=Ie(r);)r=n.find(1,!0).line;return Xt(r)+1}function He(t,e){var n=Ee&&e.markedSpans;if(n)for(var r=void 0,o=0;o<n.length;++o)if((r=n[o]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Ve(t,e,r))return!0}}function Ve(t,e,n){if(null==n.to){var r=n.marker.find(1,!0);return Ve(t,r.line,Ce(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==e.text.length)return!0;for(var o=void 0,i=0;i<e.markedSpans.length;++i)if((o=e.markedSpans[i]).marker.collapsed&&!o.marker.widgetNode&&o.from==n.to&&(null==o.to||o.to!=n.from)&&(o.marker.inclusiveLeft||n.marker.inclusiveRight)&&Ve(t,e,o))return!0}function qe(t){for(var e=0,n=(t=Be(t)).parent,r=0;r<n.lines.length;++r){var o=n.lines[r];if(o==t)break;e+=o.height}for(var i=n.parent;i;i=(n=i).parent)for(var a=0;a<i.children.length;++a){var s=i.children[a];if(s==n)break;e+=s.height}return e}function ze(t){if(0==t.height)return 0;for(var e,n=t.text.length,r=t;e=De(r);){var o=e.find(0,!0);r=o.from.line,n+=o.from.ch-o.to.ch}for(r=t;e=Ie(r);){var i=e.find(0,!0);n-=r.text.length-i.from.ch,n+=(r=i.to.line).text.length-i.to.ch}return n}function We(t){var e=t.display,n=t.doc;e.maxLine=Gt(n,n.first),e.maxLineLength=ze(e.maxLine),e.maxLineChanged=!0,n.iter((function(t){var n=ze(t);n>e.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Ge=function(t,e,n){this.text=t,ke(this,e),this.height=n?n(this):1};function Ye(t){t.parent=null,Se(t)}Ge.prototype.lineNo=function(){return Xt(this)},yt(Ge);var Ke={},$e={};function Xe(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?$e:Ke;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Ze(t,e){var n=P("span",null,null,l?"padding-right: .1px":null),r={pre:P("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var o=0;o<=(e.rest?e.rest.length:0);o++){var i=o?e.rest[o-1]:e.line,a=void 0;r.pos=0,r.addToken=Je,kt(t.display.measure)&&(a=ct(i,t.doc.direction))&&(r.addToken=tn(r.addToken,a)),r.map=[],nn(i,r,de(t,i,e!=t.display.externalMeasured&&Xt(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=D(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=D(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(St(t.display.measure))),0==o?(e.measure.map=r.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(r.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ht(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=D(r.pre.className,r.textClass||"")),r}function Qe(t){var e=k("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function Je(t,e,n,r,o,i,l){if(e){var c,u=t.splitSpaces?function(t,e){if(t.length>1&&!/  /.test(t))return t;for(var n=e,r="",o=0;o<t.length;o++){var i=t.charAt(o);" "!=i||!n||o!=t.length-1&&32!=t.charCodeAt(o+1)||(i=" "),r+=i,n=" "==i}return r}(e,t.trailingSpace):e,p=t.cm.state.specialChars,d=!1;if(p.test(e)){c=document.createDocumentFragment();for(var f=0;;){p.lastIndex=f;var h=p.exec(e),g=h?h.index-f:e.length-f;if(g){var m=document.createTextNode(u.slice(f,f+g));a&&s<9?c.appendChild(k("span",[m])):c.appendChild(m),t.map.push(t.pos,t.pos+g,m),t.col+=g,t.pos+=g}if(!h)break;f+=g+1;var v=void 0;if("\t"==h[0]){var y=t.cm.options.tabSize,b=y-t.col%y;(v=c.appendChild(k("span",Y(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),t.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=c.appendChild(k("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),t.col+=1):((v=t.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?c.appendChild(k("span",[v])):c.appendChild(v),t.col+=1);t.map.push(t.pos,t.pos+1,v),t.pos++}}else t.col+=e.length,c=document.createTextNode(u),t.map.push(t.pos,t.pos+e.length,c),a&&s<9&&(d=!0),t.pos+=e.length;if(t.trailingSpace=32==u.charCodeAt(e.length-1),n||r||o||d||i||l){var _=n||"";r&&(_+=r),o&&(_+=o);var w=k("span",[c],_,i);if(l)for(var E in l)l.hasOwnProperty(E)&&"style"!=E&&"class"!=E&&w.setAttribute(E,l[E]);return t.content.appendChild(w)}t.content.appendChild(c)}}function tn(t,e){return function(n,r,o,i,a,s,l){o=o?o+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var p=void 0,d=0;d<e.length&&!((p=e[d]).to>c&&p.from<=c);d++);if(p.to>=u)return t(n,r,o,i,a,s,l);t(n,r.slice(0,p.to-c),o,i,null,s,l),i=null,r=r.slice(p.to-c),c=p.to}}}function en(t,e,n,r){var o=!r&&n.widgetNode;o&&t.map.push(t.pos,t.pos+e,o),!r&&t.cm.display.input.needsContentAttribute&&(o||(o=t.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(t.cm.display.input.setUneditable(o),t.content.appendChild(o)),t.pos+=e,t.trailingSpace=!1}function nn(t,e,n){var r=t.markedSpans,o=t.text,i=0;if(r)for(var a,s,l,c,u,p,d,f=o.length,h=0,g=1,m="",v=0;;){if(v==h){l=c=u=s="",d=null,p=null,v=1/0;for(var y=[],b=void 0,_=0;_<r.length;++_){var w=r[_],E=w.marker;if("bookmark"==E.type&&w.from==h&&E.widgetNode)y.push(E);else if(w.from<=h&&(null==w.to||w.to>h||E.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&v>w.to&&(v=w.to,c=""),E.className&&(l+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&w.from==h&&(u+=" "+E.startStyle),E.endStyle&&w.to==v&&(b||(b=[])).push(E.endStyle,w.to),E.title&&((d||(d={})).title=E.title),E.attributes)for(var x in E.attributes)(d||(d={}))[x]=E.attributes[x];E.collapsed&&(!p||Ne(p.marker,E)<0)&&(p=w)}else w.from>h&&v>w.from&&(v=w.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(c+=" "+b[C]);if(!p||p.from==h)for(var T=0;T<y.length;++T)en(e,0,y[T]);if(p&&(p.from||0)==h){if(en(e,(null==p.to?f+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=f)break;for(var A=Math.min(f,v);;){if(m){var O=h+m.length;if(!p){var S=O>A?m.slice(0,A-h):m;e.addToken(e,S,a?a+l:l,u,h+S.length==v?c:"",s,d)}if(O>=A){m=m.slice(A-h),h=A;break}h=O,u=""}m=o.slice(i,i=n[g++]),a=Xe(n[g++],e.cm.options)}}else for(var k=1;k<n.length;k+=2)e.addToken(e,o.slice(i,i=n[k]),Xe(n[k+1],e.cm.options))}function rn(t,e,n){this.line=e,this.rest=function(t){for(var e,n;e=Ie(t);)t=e.find(1,!0).line,(n||(n=[])).push(t);return n}(e),this.size=this.rest?Xt(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=He(t,e)}function on(t,e,n){for(var r,o=[],i=e;i<n;i=r){var a=new rn(t.doc,Gt(t.doc,i),i);r=i+a.size,o.push(a)}return o}var an=null;var sn=null;function ln(t,e){var n=dt(t,e);if(n.length){var r,o=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:sn?r=sn:(r=sn=[],setTimeout(cn,0));for(var i=function(t){r.push((function(){return n[t].apply(null,o)}))},a=0;a<n.length;++a)i(a)}}function cn(){var t=sn;sn=null;for(var e=0;e<t.length;++e)t[e]()}function un(t,e,n,r){for(var o=0;o<e.changes.length;o++){var i=e.changes[o];"text"==i?fn(t,e):"gutter"==i?gn(t,e,n,r):"class"==i?hn(t,e):"widget"==i&&mn(t,e,r)}e.changes=null}function pn(t){return t.node==t.text&&(t.node=k("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),a&&s<8&&(t.node.style.zIndex=2)),t.node}function dn(t,e){var n=t.display.externalMeasured;return n&&n.line==e.line?(t.display.externalMeasured=null,e.measure=n.measure,n.built):Ze(t,e)}function fn(t,e){var n=e.text.className,r=dn(t,e);e.text==e.node&&(e.node=r.pre),e.text.parentNode.replaceChild(r.pre,e.text),e.text=r.pre,r.bgClass!=e.bgClass||r.textClass!=e.textClass?(e.bgClass=r.bgClass,e.textClass=r.textClass,hn(t,e)):n&&(e.text.className=n)}function hn(t,e){(function(t,e){var n=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),e.background)n?e.background.className=n:(e.background.parentNode.removeChild(e.background),e.background=null);else if(n){var r=pn(e);e.background=r.insertBefore(k("div",null,n),r.firstChild),t.display.input.setUneditable(e.background)}})(t,e),e.line.wrapClass?pn(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var n=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=n||""}function gn(t,e,n,r){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var o=pn(e);e.gutterBackground=k("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),o.insertBefore(e.gutterBackground,e.text)}var i=e.line.gutterMarkers;if(t.options.lineNumbers||i){var a=pn(e),s=e.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),t.display.input.setUneditable(s),a.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(k("div",Jt(t.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),i)for(var l=0;l<t.display.gutterSpecs.length;++l){var c=t.display.gutterSpecs[l].className,u=i.hasOwnProperty(c)&&i[c];u&&s.appendChild(k("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function mn(t,e,n){e.alignable&&(e.alignable=null);for(var r=C("CodeMirror-linewidget"),o=e.node.firstChild,i=void 0;o;o=i)i=o.nextSibling,r.test(o.className)&&e.node.removeChild(o);yn(t,e,n)}function vn(t,e,n,r){var o=dn(t,e);return e.text=e.node=o.pre,o.bgClass&&(e.bgClass=o.bgClass),o.textClass&&(e.textClass=o.textClass),hn(t,e),gn(t,e,n,r),yn(t,e,r),e.node}function yn(t,e,n){if(bn(t,e.line,e,n,!0),e.rest)for(var r=0;r<e.rest.length;r++)bn(t,e.rest[r],e,n,!1)}function bn(t,e,n,r,o){if(e.widgets)for(var i=pn(n),a=0,s=e.widgets;a<s.length;++a){var l=s[a],c=k("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),_n(l,c,n,r),t.display.input.setUneditable(c),o&&l.above?i.insertBefore(c,n.gutter||n.text):i.appendChild(c),ln(l,"redraw")}}function _n(t,e,n,r){if(t.noHScroll){(n.alignable||(n.alignable=[])).push(e);var o=r.wrapperWidth;e.style.left=r.fixedPos+"px",t.coverGutter||(o-=r.gutterTotalWidth,e.style.paddingLeft=r.gutterTotalWidth+"px"),e.style.width=o+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-r.gutterTotalWidth+"px"))}function wn(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!j(document.body,t.node)){var n="position: relative;";t.coverGutter&&(n+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(n+="width: "+e.display.wrapper.clientWidth+"px;"),S(e.display.measure,k("div",[t.node],null,n))}return t.height=t.node.parentNode.offsetHeight}function En(t,e){for(var n=xt(e);n!=t.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==t.sizer&&n!=t.mover)return!0}function xn(t){return t.lineSpace.offsetTop}function Cn(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Tn(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=S(t.measure,k("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(t.cachedPaddingH=r),r}function An(t){return 50-t.display.nativeBarWidth}function On(t){return t.display.scroller.clientWidth-An(t)-t.display.barWidth}function Sn(t){return t.display.scroller.clientHeight-An(t)-t.display.barHeight}function kn(t,e,n){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var r=0;r<t.rest.length;r++)if(t.rest[r]==e)return{map:t.measure.maps[r],cache:t.measure.caches[r]};for(var o=0;o<t.rest.length;o++)if(Xt(t.rest[o])>n)return{map:t.measure.maps[o],cache:t.measure.caches[o],before:!0}}function Pn(t,e,n,r){return Ln(t,Nn(t,e),n,r)}function jn(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[ur(t,e)];var n=t.display.externalMeasured;return n&&e>=n.lineN&&e<n.lineN+n.size?n:void 0}function Nn(t,e){var n=Xt(e),r=jn(t,n);r&&!r.text?r=null:r&&r.changes&&(un(t,r,n,ir(t)),t.curOp.forceUpdate=!0),r||(r=function(t,e){var n=Xt(e=Be(e)),r=t.display.externalMeasured=new rn(t.doc,e,n);r.lineN=n;var o=r.built=Ze(t,r);return r.text=o.pre,S(t.display.lineMeasure,o.pre),r}(t,e));var o=kn(r,e,n);return{line:e,view:r,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function Ln(t,e,n,r,o){e.before&&(n=-1);var i,l=n+(r||"");return e.cache.hasOwnProperty(l)?i=e.cache[l]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,n){var r=t.options.lineWrapping,o=r&&On(t);if(!e.measure.heights||r&&e.measure.width!=o){var i=e.measure.heights=[];if(r){e.measure.width=o;for(var a=e.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],c=a[s+1];Math.abs(l.bottom-c.bottom)>2&&i.push((l.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(i=function(t,e,n,r){var o,i=Rn(e.map,n,r),l=i.node,c=i.start,u=i.end,p=i.collapse;if(3==l.nodeType){for(var d=0;d<4;d++){for(;c&&rt(e.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u<i.coverEnd&&rt(e.line.text.charAt(i.coverStart+u));)++u;if((o=a&&s<9&&0==c&&u==i.coverEnd-i.coverStart?l.parentNode.getBoundingClientRect():Mn(T(l,c,u).getClientRects(),r)).left||o.right||0==c)break;u=c,c-=1,p="right"}a&&s<11&&(o=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=Dt)return Dt;var e=S(t,k("span","x")),n=e.getBoundingClientRect(),r=T(e,0,1).getBoundingClientRect();return Dt=Math.abs(n.left-r.left)>1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*r,bottom:e.bottom*r}}(t.display.measure,o))}else{var f;c>0&&(p=r="right"),o=t.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==r?f.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!c&&(!o||!o.left&&!o.right)){var h=l.parentNode.getClientRects()[0];o=h?{left:h.left,right:h.left+or(t.display),top:h.top,bottom:h.bottom}:In}for(var g=o.top-e.rect.top,m=o.bottom-e.rect.top,v=(g+m)/2,y=e.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var _=b?y[b-1]:0,w=y[b],E={left:("right"==p?o.right:o.left)-e.rect.left,right:("left"==p?o.left:o.right)-e.rect.left,top:_,bottom:w};return o.left||o.right||(E.bogus=!0),t.options.singleCursorHeightPerLine||(E.rtop=g,E.rbottom=m),E}(t,e,n,r)).bogus||(e.cache[l]=i)),{left:i.left,right:i.right,top:o?i.rtop:i.top,bottom:o?i.rbottom:i.bottom}}var Dn,In={left:0,right:0,top:0,bottom:0};function Rn(t,e,n){for(var r,o,i,a,s,l,c=0;c<t.length;c+=3)if(s=t[c],l=t[c+1],e<s?(o=0,i=1,a="left"):e<l?i=1+(o=e-s):(c==t.length-3||e==l&&t[c+3]>e)&&(o=(i=l-s)-1,e>=l&&(a="right")),null!=o){if(r=t[c+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)r=t[2+(c-=3)],a="left";if("right"==n&&o==l-s)for(;c<t.length-3&&t[c+3]==t[c+4]&&!t[c+5].insertLeft;)r=t[(c+=3)+2],a="right";break}return{node:r,start:o,end:i,collapse:a,coverStart:s,coverEnd:l}}function Mn(t,e){var n=In;if("left"==e)for(var r=0;r<t.length&&(n=t[r]).left==n.right;r++);else for(var o=t.length-1;o>=0&&(n=t[o]).left==n.right;o--);return n}function Bn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function Fn(t){t.display.externalMeasure=null,O(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Bn(t.display.view[e])}function Un(t){Fn(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Hn(){return u&&m?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Vn(){return u&&m?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function qn(t){var e=0;if(t.widgets)for(var n=0;n<t.widgets.length;++n)t.widgets[n].above&&(e+=wn(t.widgets[n]));return e}function zn(t,e,n,r,o){if(!o){var i=qn(e);n.top+=i,n.bottom+=i}if("line"==r)return n;r||(r="local");var a=qe(e);if("local"==r?a+=xn(t.display):a-=t.display.viewOffset,"page"==r||"window"==r){var s=t.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:Vn());var l=s.left+("window"==r?0:Hn());n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Wn(t,e,n){if("div"==n)return e;var r=e.left,o=e.top;if("page"==n)r-=Hn(),o-=Vn();else if("local"==n||!n){var i=t.display.sizer.getBoundingClientRect();r+=i.left,o+=i.top}var a=t.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:o-a.top}}function Gn(t,e,n,r,o){return r||(r=Gt(t.doc,e.line)),zn(t,r,Pn(t,r,e.ch,o),n)}function Yn(t,e,n,r,o,i){function a(e,a){var s=Ln(t,o,e,a?"right":"left",i);return a?s.left=s.right:s.right=s.left,zn(t,r,s,n)}r=r||Gt(t.doc,e.line),o||(o=Nn(t,r));var s=ct(r,t.doc.direction),l=e.ch,c=e.sticky;if(l>=r.text.length?(l=r.text.length,c="before"):l<=0&&(l=0,c="after"),!s)return a("before"==c?l-1:l,"before"==c);function u(t,e,n){return a(n?t-1:t,1==s[e].level!=n)}var p=st(s,l,c),d=at,f=u(l,p,"before"==c);return null!=d&&(f.other=u(l,d,"before"!=c)),f}function Kn(t,e){var n=0;e=se(t.doc,e),t.options.lineWrapping||(n=or(t.display)*e.ch);var r=Gt(t.doc,e.line),o=qe(r)+xn(t.display);return{left:n,right:n,top:o,bottom:o+r.height}}function $n(t,e,n,r,o){var i=te(t,e,n);return i.xRel=o,r&&(i.outside=r),i}function Xn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return $n(r.first,0,null,-1,-1);var o=Zt(r,n),i=r.first+r.size-1;if(o>i)return $n(r.first+r.size-1,Gt(r,i).text.length,null,1,1);e<0&&(e=0);for(var a=Gt(r,o);;){var s=tr(t,a,o,e,n),l=Re(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var c=l.find(1);if(c.line==o)return c;a=Gt(r,o=c.line)}}function Zn(t,e,n,r){r-=qn(e);var o=e.text.length,i=it((function(e){return Ln(t,n,e-1).bottom<=r}),o,0);return{begin:i,end:o=it((function(e){return Ln(t,n,e).top>r}),i,o)}}function Qn(t,e,n,r){return n||(n=Nn(t,e)),Zn(t,e,n,zn(t,e,Ln(t,n,r),"line").top)}function Jn(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function tr(t,e,n,r,o){o-=qe(e);var i=Nn(t,e),a=qn(e),s=0,l=e.text.length,c=!0,u=ct(e,t.doc.direction);if(u){var p=(t.options.lineWrapping?nr:er)(t,e,n,i,u,r,o);s=(c=1!=p.level)?p.from:p.to-1,l=c?p.to:p.from-1}var d,f,h=null,g=null,m=it((function(e){var n=Ln(t,i,e);return n.top+=a,n.bottom+=a,!!Jn(n,r,o,!1)&&(n.top<=o&&n.left<=r&&(h=e,g=n),!0)}),s,l),v=!1;if(g){var y=r-g.left<g.right-r,b=y==c;m=h+(b?0:1),f=b?"after":"before",d=y?g.left:g.right}else{c||m!=l&&m!=s||m++,f=0==m?"after":m==e.text.length?"before":Ln(t,i,m-(c?1:0)).bottom+a<=o==c?"after":"before";var _=Yn(t,te(n,m,f),"line",e,i);d=_.left,v=o<_.top?-1:o>=_.bottom?1:0}return $n(n,m=ot(e.text,m,1),f,v,r-d)}function er(t,e,n,r,o,i,a){var s=it((function(s){var l=o[s],c=1!=l.level;return Jn(Yn(t,te(n,c?l.to:l.from,c?"before":"after"),"line",e,r),i,a,!0)}),0,o.length-1),l=o[s];if(s>0){var c=1!=l.level,u=Yn(t,te(n,c?l.from:l.to,c?"after":"before"),"line",e,r);Jn(u,i,a,!0)&&u.top>a&&(l=o[s-1])}return l}function nr(t,e,n,r,o,i,a){var s=Zn(t,e,r,a),l=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var u=null,p=null,d=0;d<o.length;d++){var f=o[d];if(!(f.from>=c||f.to<=l)){var h=Ln(t,r,1!=f.level?Math.min(c,f.to)-1:Math.max(l,f.from)).right,g=h<i?i-h+1e9:h-i;(!u||p>g)&&(u=f,p=g)}}return u||(u=o[o.length-1]),u.from<l&&(u={from:l,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function rr(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Dn){Dn=k("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Dn.appendChild(document.createTextNode("x")),Dn.appendChild(k("br"));Dn.appendChild(document.createTextNode("x"))}S(t.measure,Dn);var n=Dn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),O(t.measure),n||1}function or(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=k("span","xxxxxxxxxx"),n=k("pre",[e],"CodeMirror-line-like");S(t.measure,n);var r=e.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(t.cachedCharWidth=o),o||10}function ir(t){for(var e=t.display,n={},r={},o=e.gutters.clientLeft,i=e.gutters.firstChild,a=0;i;i=i.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=i.offsetLeft+i.clientLeft+o,r[s]=i.clientWidth}return{fixedPos:ar(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function ar(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function sr(t){var e=rr(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/or(t.display)-3);return function(o){if(He(t.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a<o.widgets.length;a++)o.widgets[a].height&&(i+=o.widgets[a].height);return n?i+(Math.ceil(o.text.length/r)||1)*e:i+e}}function lr(t){var e=t.doc,n=sr(t);e.iter((function(t){var e=n(t);e!=t.height&&$t(t,e)}))}function cr(t,e,n,r){var o=t.display;if(!n&&"true"==xt(e).getAttribute("cm-not-content"))return null;var i,a,s=o.lineSpace.getBoundingClientRect();try{i=e.clientX-s.left,a=e.clientY-s.top}catch(t){return null}var l,c=Xn(t,i,a);if(r&&c.xRel>0&&(l=Gt(t.doc,c.line).text).length==c.ch){var u=B(l,l.length,t.options.tabSize)-l.length;c=te(c.line,Math.max(0,Math.round((i-Tn(t.display).left)/or(t.display))-u))}return c}function ur(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,r=0;r<n.length;r++)if((e-=n[r].size)<0)return r}function pr(t,e,n,r){null==e&&(e=t.doc.first),null==n&&(n=t.doc.first+t.doc.size),r||(r=0);var o=t.display;if(r&&n<o.viewTo&&(null==o.updateLineNumbers||o.updateLineNumbers>e)&&(o.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=o.viewTo)Ee&&Fe(t.doc,e)<o.viewTo&&fr(t);else if(n<=o.viewFrom)Ee&&Ue(t.doc,n+r)>o.viewFrom?fr(t):(o.viewFrom+=r,o.viewTo+=r);else if(e<=o.viewFrom&&n>=o.viewTo)fr(t);else if(e<=o.viewFrom){var i=hr(t,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):fr(t)}else if(n>=o.viewTo){var a=hr(t,e,e,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):fr(t)}else{var s=hr(t,e,e,-1),l=hr(t,n,n+r,1);s&&l?(o.view=o.view.slice(0,s.index).concat(on(t,s.lineN,l.lineN)).concat(o.view.slice(l.index)),o.viewTo+=r):fr(t)}var c=o.externalMeasured;c&&(n<c.lineN?c.lineN+=r:e<c.lineN+c.size&&(o.externalMeasured=null))}function dr(t,e,n){t.curOp.viewChanged=!0;var r=t.display,o=t.display.externalMeasured;if(o&&e>=o.lineN&&e<o.lineN+o.size&&(r.externalMeasured=null),!(e<r.viewFrom||e>=r.viewTo)){var i=r.view[ur(t,e)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==U(a,n)&&a.push(n)}}}function fr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function hr(t,e,n,r){var o,i=ur(t,e),a=t.display.view;if(!Ee||n==t.doc.first+t.doc.size)return{index:i,lineN:n};for(var s=t.display.viewFrom,l=0;l<i;l++)s+=a[l].size;if(s!=e){if(r>0){if(i==a.length-1)return null;o=s+a[i].size-e,i++}else o=s-e;e+=o,n+=o}for(;Fe(t.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function gr(t){for(var e=t.display.view,n=0,r=0;r<e.length;r++){var o=e[r];o.hidden||o.node&&!o.changes||++n}return n}function mr(t){t.display.input.showSelection(t.display.input.prepareSelection())}function vr(t,e){void 0===e&&(e=!0);for(var n=t.doc,r={},o=r.cursors=document.createDocumentFragment(),i=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(e||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var l=s.empty();(l||t.options.showCursorWhenSelecting)&&yr(t,s.head,o),l||_r(t,s,i)}}return r}function yr(t,e,n){var r=Yn(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),o=n.appendChild(k("div"," ","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var i=Gn(t,e,"div",null,null);i.right-i.left>0&&(o.style.width=i.right-i.left+"px")}if(r.other){var a=n.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function br(t,e){return t.top-e.top||t.left-e.left}function _r(t,e,n){var r=t.display,o=t.doc,i=document.createDocumentFragment(),a=Tn(t.display),s=a.left,l=Math.max(r.sizerWidth,On(t)-r.sizer.offsetLeft)-a.right,c="ltr"==o.direction;function u(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),i.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n                             top: "+e+"px; width: "+(null==n?l-t:n)+"px;\n                             height: "+(r-e)+"px"))}function p(e,n,r){var i,a,p=Gt(o,e),d=p.text.length;function f(n,r){return Gn(t,te(e,n),"div",p,r)}function h(e,n,r){var o=Qn(t,p,null,e),i="ltr"==n==("after"==r)?"left":"right";return f("after"==r?o.begin:o.end-(/\s/.test(p.text.charAt(o.end-1))?2:1),i)[i]}var g=ct(p,o.direction);return function(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var o=!1,i=0;i<t.length;++i){var a=t[i];(a.from<n&&a.to>e||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",i),o=!0)}o||r(e,n,"ltr")}(g,n||0,null==r?d:r,(function(t,e,o,p){var m="ltr"==o,v=f(t,m?"left":"right"),y=f(e-1,m?"right":"left"),b=null==n&&0==t,_=null==r&&e==d,w=0==p,E=!g||p==g.length-1;if(y.top-v.top<=3){var x=(c?_:b)&&E,C=(c?b:_)&&w?s:(m?v:y).left,T=x?l:(m?y:v).right;u(C,v.top,T-C,v.bottom)}else{var A,O,S,k;m?(A=c&&b&&w?s:v.left,O=c?l:h(t,o,"before"),S=c?s:h(e,o,"after"),k=c&&_&&E?l:y.right):(A=c?h(t,o,"before"):s,O=!c&&b&&w?l:v.right,S=!c&&_&&E?s:y.left,k=c?h(e,o,"after"):l),u(A,v.top,O-A,v.bottom),v.bottom<y.top&&u(s,v.bottom,null,y.top),u(S,y.top,k-S,y.bottom)}(!i||br(v,i)<0)&&(i=v),br(y,i)<0&&(i=y),(!a||br(v,a)<0)&&(a=v),br(y,a)<0&&(a=y)})),{start:i,end:a}}var d=e.from(),f=e.to();if(d.line==f.line)p(d.line,d.ch,f.ch);else{var h=Gt(o,d.line),g=Gt(o,f.line),m=Be(h)==Be(g),v=p(d.line,d.ch,m?h.text.length+1:null).end,y=p(f.line,m?0:null,f.ch).start;m&&(v.top<y.top-2?(u(v.right,v.top,null,v.bottom),u(s,y.top,y.left,y.bottom)):u(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&u(s,v.bottom,null,y.top)}n.appendChild(i)}function wr(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var n=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){t.hasFocus()||Tr(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Er(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Cr(t))}function xr(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Tr(t))}),100)}function Cr(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(ht(t,"focus",t,e),t.state.focused=!0,L(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),wr(t))}function Tr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(ht(t,"blur",t,e),t.state.focused=!1,A(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Ar(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=Math.max(0,e.scroller.getBoundingClientRect().top),o=e.lineDiv.getBoundingClientRect().top,i=0,l=0;l<e.view.length;l++){var c=e.view[l],u=t.options.lineWrapping,p=void 0,d=0;if(!c.hidden){if(o+=c.line.height,a&&s<8){var f=c.node.offsetTop+c.node.offsetHeight;p=f-n,n=f}else{var h=c.node.getBoundingClientRect();p=h.bottom-h.top,!u&&c.text.firstChild&&(d=c.text.firstChild.getBoundingClientRect().right-h.left-1)}var g=c.line.height-p;if((g>.005||g<-.005)&&(o<r&&(i-=g),$t(c.line,p),Or(c.line),c.rest))for(var m=0;m<c.rest.length;m++)Or(c.rest[m]);if(d>t.display.sizerWidth){var v=Math.ceil(d/or(t.display));v>t.display.maxLineLength&&(t.display.maxLineLength=v,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}Math.abs(i)>2&&(e.scroller.scrollTop+=i)}function Or(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var n=t.widgets[e],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Sr(t,e,n){var r=n&&null!=n.top?Math.max(0,n.top):t.scroller.scrollTop;r=Math.floor(r-xn(t));var o=n&&null!=n.bottom?n.bottom:r+t.wrapper.clientHeight,i=Zt(e,r),a=Zt(e,o);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<i?(i=s,a=Zt(e,qe(Gt(e,s))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=a&&(i=Zt(e,qe(Gt(e,l))-t.wrapper.clientHeight),a=l)}return{from:i,to:Math.max(a,i+1)}}function kr(t,e){var n=t.display,r=rr(t.display);e.top<0&&(e.top=0);var o=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,i=Sn(t),a={};e.bottom-e.top>i&&(e.bottom=e.top+i);var s=t.doc.height+Cn(n),l=e.top<r,c=e.bottom>s-r;if(e.top<o)a.scrollTop=l?0:e.top;else if(e.bottom>o+i){var u=Math.min(e.top,(c?s:e.bottom)-i);u!=o&&(a.scrollTop=u)}var p=t.options.fixedGutter?0:n.gutters.offsetWidth,d=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-p,f=On(t)-n.gutters.offsetWidth,h=e.right-e.left>f;return h&&(e.right=e.left+f),e.left<10?a.scrollLeft=0:e.left<d?a.scrollLeft=Math.max(0,e.left+p-(h?0:10)):e.right>f+d-3&&(a.scrollLeft=e.right+(h?0:10)-f),a}function Pr(t,e){null!=e&&(Lr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function jr(t){Lr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Nr(t,e,n){null==e&&null==n||Lr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Lr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Dr(t,Kn(t,e.from),Kn(t,e.to),e.margin))}function Dr(t,e,n,r){var o=kr(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-r,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+r});Nr(t,o.scrollLeft,o.scrollTop)}function Ir(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||lo(t,{top:e}),Rr(t,e,!0),n&&lo(t),ro(t,100))}function Rr(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Mr(t,e,n,r){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!r||(t.doc.scrollLeft=e,po(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Br(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+Cn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+An(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Fr=function(t,e,n){this.cm=n;var r=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,t(r),t(o),pt(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),pt(o,"scroll",(function(){o.clientWidth&&e(o.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Fr.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,r=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?r+"px":"0";var o=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=t.barLeft+"px";var i=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:e?r:0}},Fr.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fr.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fr.prototype.zeroWidthHack=function(){var t=y&&!f?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},Fr.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function r(){var o=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}))},Fr.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Ur=function(){};function Hr(t,e){e||(e=Br(t));var n=t.display.barWidth,r=t.display.barHeight;Vr(t,e);for(var o=0;o<4&&n!=t.display.barWidth||r!=t.display.barHeight;o++)n!=t.display.barWidth&&t.options.lineWrapping&&Ar(t),Vr(t,Br(t)),n=t.display.barWidth,r=t.display.barHeight}function Vr(t,e){var n=t.display,r=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Ur.prototype.update=function(){return{bottom:0,right:0}},Ur.prototype.setScrollLeft=function(){},Ur.prototype.setScrollTop=function(){},Ur.prototype.clear=function(){};var qr={native:Fr,null:Ur};function zr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&A(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new qr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),pt(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?Mr(t,e):Ir(t,e)}),t),t.display.scrollbars.addClass&&L(t.display.wrapper,t.display.scrollbars.addClass)}var Wr=0;function Gr(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Wr,markArrays:null},e=t.curOp,an?an.ops.push(e):e.ownsGroup=an={ops:[e],delayedCallbacks:[]}}function Yr(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n<e.length;n++)e[n].call(null);for(var r=0;r<t.ops.length;r++){var o=t.ops[r];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(n<e.length)}(n)}finally{an=null,e(n)}}(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,n=0;n<e.length;n++)Kr(e[n]);for(var r=0;r<e.length;r++)$r(e[r]);for(var o=0;o<e.length;o++)Xr(e[o]);for(var i=0;i<e.length;i++)Zr(e[i]);for(var a=0;a<e.length;a++)Qr(e[a])}(t)}))}function Kr(t){var e=t.cm,n=e.display;(function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=An(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=An(t)+"px",e.scrollbarsClipped=!0)})(e),t.updateMaxLine&&We(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<n.viewFrom||t.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new io(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function $r(t){t.updatedDisplay=t.mustUpdate&&ao(t.cm,t.update)}function Xr(t){var e=t.cm,n=e.display;t.updatedDisplay&&Ar(e),t.barMeasure=Br(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Pn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+An(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-On(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Zr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Mr(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var n=t.focus&&t.focus==N();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,n),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Hr(e,t.barMeasure),t.updatedDisplay&&uo(e,t.barMeasure),t.selectionChanged&&wr(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),n&&Er(t.cm)}function Qr(t){var e=t.cm,n=e.display,r=e.doc;t.updatedDisplay&&so(e,t.update),null==n.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=t.scrollTop&&Rr(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Mr(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!gt(t,"scrollCursorIntoView")){var n=t.display,r=n.sizer.getBoundingClientRect(),o=null;if(e.top+r.top<0?o=!0:e.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!h){var i=k("div","​",null,"position: absolute;\n                         top: "+(e.top-n.viewOffset-xn(t.display))+"px;\n                         height: "+(e.bottom-e.top+An(t)+n.barHeight)+"px;\n                         left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(i),i.scrollIntoView(o),t.display.lineSpace.removeChild(i)}}}(e,function(t,e,n,r){var o;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==e.sticky?te(e.line,e.ch+1,"before"):e,e=e.ch?te(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e);for(var i=0;i<5;i++){var a=!1,s=Yn(t,e),l=n&&n!=e?Yn(t,n):s,c=kr(t,o={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),u=t.doc.scrollTop,p=t.doc.scrollLeft;if(null!=c.scrollTop&&(Ir(t,c.scrollTop),Math.abs(t.doc.scrollTop-u)>1&&(a=!0)),null!=c.scrollLeft&&(Mr(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return o}(e,se(r,t.scrollToPos.from),se(r,t.scrollToPos.to),t.scrollToPos.margin));var o=t.maybeHiddenMarkers,i=t.maybeUnhiddenMarkers;if(o)for(var a=0;a<o.length;++a)o[a].lines.length||ht(o[a],"hide");if(i)for(var s=0;s<i.length;++s)i[s].lines.length&&ht(i[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&ht(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Jr(t,e){if(t.curOp)return e();Gr(t);try{return e()}finally{Yr(t)}}function to(t,e){return function(){if(t.curOp)return e.apply(t,arguments);Gr(t);try{return e.apply(t,arguments)}finally{Yr(t)}}}function eo(t){return function(){if(this.curOp)return t.apply(this,arguments);Gr(this);try{return t.apply(this,arguments)}finally{Yr(this)}}}function no(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);Gr(e);try{return t.apply(this,arguments)}finally{Yr(e)}}}function ro(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,R(oo,t))}function oo(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var n=+new Date+t.options.workTime,r=fe(t,e.highlightFrontier),o=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(i){if(r.line>=t.display.viewFrom){var a=i.styles,s=i.text.length>t.options.maxHighlightLength?Vt(e.mode,r.state):null,l=pe(t,i,r,!0);s&&(r.state=s),i.styles=l.styles;var c=i.styleClasses,u=l.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var p=!a||a.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),d=0;!p&&d<a.length;++d)p=a[d]!=i.styles[d];p&&o.push(r.line),i.stateAfter=r.save(),r.nextLine()}else i.text.length<=t.options.maxHighlightLength&&he(t,i.text,r),i.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ro(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),o.length&&Jr(t,(function(){for(var e=0;e<o.length;e++)dr(t,o[e],"text")}))}}var io=function(t,e,n){var r=t.display;this.viewport=e,this.visible=Sr(r,t.doc,e),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=On(t),this.force=n,this.dims=ir(t),this.events=[]};function ao(t,e){var n=t.display,r=t.doc;if(e.editorIsHidden)return fr(t),!1;if(!e.force&&e.visible.from>=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==gr(t))return!1;fo(t)&&(fr(t),e.dims=ir(t));var o=r.first+r.size,i=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(o,e.visible.to+t.options.viewportMargin);n.viewFrom<i&&i-n.viewFrom<20&&(i=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(o,n.viewTo)),Ee&&(i=Fe(t.doc,i),a=Ue(t.doc,a));var s=i!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;(function(t,e,n){var r=t.display;0==r.view.length||e>=r.viewTo||n<=r.viewFrom?(r.view=on(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=on(t,e,r.viewFrom).concat(r.view):r.viewFrom<e&&(r.view=r.view.slice(ur(t,e))),r.viewFrom=e,r.viewTo<n?r.view=r.view.concat(on(t,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,ur(t,n)))),r.viewTo=n})(t,i,a),n.viewOffset=qe(Gt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=gr(t);if(!s&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(t){if(t.hasFocus())return null;var e=N();if(!e||!j(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&j(t.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(t);return c>4&&(n.lineDiv.style.display="none"),function(t,e,n){var r=t.display,o=t.options.lineNumbers,i=r.lineDiv,a=i.firstChild;function s(e){var n=e.nextSibling;return l&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,u=r.viewFrom,p=0;p<c.length;p++){var d=c[p];if(d.hidden);else if(d.node&&d.node.parentNode==i){for(;a!=d.node;)a=s(a);var f=o&&null!=e&&e<=u&&d.lineNumber;d.changes&&(U(d.changes,"gutter")>-1&&(f=!1),un(t,d,u,n)),f&&(O(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(Jt(t.options,u)))),a=d.node.nextSibling}else{var h=vn(t,d,u,n);i.insertBefore(h,a)}u+=d.size}for(;a;)a=s(a)}(t,n.updateLineNumbers,e.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=N()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&j(document.body,t.anchorNode)&&j(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(u),O(n.cursorDiv),O(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ro(t,400)),n.updateLineNumbers=null,!0}function so(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=On(t))r&&(e.visible=Sr(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Cn(t.display)-Sn(t),n.top)}),e.visible=Sr(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!ao(t,e))break;Ar(t);var o=Br(t);mr(t),Hr(t,o),uo(t,o),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function lo(t,e){var n=new io(t,e);if(ao(t,n)){Ar(t),so(t,n);var r=Br(t);mr(t),Hr(t,r),uo(t,r),n.finish()}}function co(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px",ln(t,"gutterChanged",t)}function uo(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+An(t)+"px"}function po(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=ar(e)-e.scroller.scrollLeft+t.doc.scrollLeft,o=e.gutters.offsetWidth,i=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){t.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=i),n[a].gutterBackground&&(n[a].gutterBackground.style.left=i));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=i}t.options.fixedGutter&&(e.gutters.style.left=r+o+"px")}}function fo(t){if(!t.options.lineNumbers)return!1;var e=t.doc,n=Jt(t.options,e.first+e.size-1),r=t.display;if(n.length!=r.lineNumChars){var o=r.measure.appendChild(k("div",[k("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=o.firstChild.offsetWidth,a=o.offsetWidth-i;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(i,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",co(t.display),!0}return!1}function ho(t,e){for(var n=[],r=!1,o=0;o<t.length;o++){var i=t[o],a=null;if("string"!=typeof i&&(a=i.style,i=i.className),"CodeMirror-linenumbers"==i){if(!e)continue;r=!0}n.push({className:i,style:a})}return e&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function go(t){var e=t.gutters,n=t.gutterSpecs;O(e),t.lineGutter=null;for(var r=0;r<n.length;++r){var o=n[r],i=o.className,a=o.style,s=e.appendChild(k("div",null,"CodeMirror-gutter "+i));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==i&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=n.length?"":"none",co(t)}function mo(t){go(t.display),pr(t),po(t)}function vo(t,e,r,o){var i=this;this.input=r,i.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=P("div",null,"CodeMirror-code"),i.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=k("div",null,"CodeMirror-cursors"),i.measure=k("div",null,"CodeMirror-measure"),i.lineMeasure=k("div",null,"CodeMirror-measure"),i.lineSpace=P("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var c=P("div",[i.lineSpace],"CodeMirror-lines");i.mover=k("div",[c],null,"position: relative"),i.sizer=k("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=k("div",null,null,"position: absolute; height: 50px; width: 1px;"),i.gutters=k("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=k("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=k("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),i.wrapper.setAttribute("translate","no"),a&&s<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),l||n&&v||(i.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(i.wrapper):t(i.wrapper)),i.viewFrom=i.viewTo=e.first,i.reportedViewFrom=i.reportedViewTo=e.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=ho(o.gutters,o.lineNumbers),go(i),r.init(i)}io.prototype.signal=function(t,e){vt(t,e)&&this.events.push(arguments)},io.prototype.finish=function(){for(var t=0;t<this.events.length;t++)ht.apply(null,this.events[t])};var yo=0,bo=null;function _o(t){var e=t.wheelDeltaX,n=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==n&&t.detail&&t.axis==t.VERTICAL_AXIS?n=t.detail:null==n&&(n=t.wheelDelta),{x:e,y:n}}function wo(t){var e=_o(t);return e.x*=bo,e.y*=bo,e}function Eo(t,e){var r=_o(e),o=r.x,i=r.y,a=t.display,s=a.scroller,c=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(o&&c||i&&u){if(i&&y&&l)t:for(var d=e.target,f=a.view;d!=s;d=d.parentNode)for(var h=0;h<f.length;h++)if(f[h].node==d){t.display.currentWheelTarget=d;break t}if(o&&!n&&!p&&null!=bo)return i&&u&&Ir(t,Math.max(0,s.scrollTop+i*bo)),Mr(t,Math.max(0,s.scrollLeft+o*bo)),(!i||i&&u)&&bt(e),void(a.wheelStartX=null);if(i&&null!=bo){var g=i*bo,m=t.doc.scrollTop,v=m+a.wrapper.clientHeight;g<0?m=Math.max(0,m+g-50):v=Math.min(t.doc.height,v+g+50),lo(t,{top:m,bottom:v})}yo<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=o,a.wheelDY=i,setTimeout((function(){if(null!=a.wheelStartX){var t=s.scrollLeft-a.wheelStartX,e=s.scrollTop-a.wheelStartY,n=e&&a.wheelDY&&e/a.wheelDY||t&&a.wheelDX&&t/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(bo=(bo*yo+n)/(yo+1),++yo)}}),200)):(a.wheelDX+=o,a.wheelDY+=i))}}a?bo=-.53:n?bo=15:u?bo=-.7:d&&(bo=-1/3);var xo=function(t,e){this.ranges=t,this.primIndex=e};xo.prototype.primary=function(){return this.ranges[this.primIndex]},xo.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var n=this.ranges[e],r=t.ranges[e];if(!ne(n.anchor,r.anchor)||!ne(n.head,r.head))return!1}return!0},xo.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new Co(re(this.ranges[e].anchor),re(this.ranges[e].head));return new xo(t,this.primIndex)},xo.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},xo.prototype.contains=function(t,e){e||(e=t);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ee(e,r.from())>=0&&ee(t,r.to())<=0)return n}return-1};var Co=function(t,e){this.anchor=t,this.head=e};function To(t,e,n){var r=t&&t.options.selectionsMayTouch,o=e[n];e.sort((function(t,e){return ee(t.from(),e.from())})),n=U(e,o);for(var i=1;i<e.length;i++){var a=e[i],s=e[i-1],l=ee(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var c=ie(s.from(),a.from()),u=oe(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;i<=n&&--n,e.splice(--i,2,new Co(p?u:c,p?c:u))}}return new xo(e,n)}function Ao(t,e){return new xo([new Co(t,e||t)],0)}function Oo(t){return t.text?te(t.from.line+t.text.length-1,K(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function So(t,e){if(ee(t,e.from)<0)return t;if(ee(t,e.to)<=0)return Oo(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,r=t.ch;return t.line==e.to.line&&(r+=Oo(e).ch-e.to.ch),te(n,r)}function ko(t,e){for(var n=[],r=0;r<t.sel.ranges.length;r++){var o=t.sel.ranges[r];n.push(new Co(So(o.anchor,e),So(o.head,e)))}return To(t.cm,n,t.sel.primIndex)}function Po(t,e,n){return t.line==e.line?te(n.line,t.ch-e.ch+n.ch):te(n.line+(t.line-e.line),t.ch)}function jo(t){t.doc.mode=Ft(t.options,t.doc.modeOption),No(t)}function No(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ro(t,100),t.state.modeGen++,t.curOp&&pr(t)}function Lo(t,e){return 0==e.from.ch&&0==e.to.ch&&""==K(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Do(t,e,n,r){function o(t){return n?n[t]:null}function i(t,n,o){(function(t,e,n,r){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Se(t),ke(t,n);var o=r?r(t):1;o!=t.height&&$t(t,o)})(t,n,o,r),ln(t,"change",t,e)}function a(t,e){for(var n=[],i=t;i<e;++i)n.push(new Ge(c[i],o(i),r));return n}var s=e.from,l=e.to,c=e.text,u=Gt(t,s.line),p=Gt(t,l.line),d=K(c),f=o(c.length-1),h=l.line-s.line;if(e.full)t.insert(0,a(0,c.length)),t.remove(c.length,t.size-c.length);else if(Lo(t,e)){var g=a(0,c.length-1);i(p,p.text,f),h&&t.remove(s.line,h),g.length&&t.insert(s.line,g)}else if(u==p)if(1==c.length)i(u,u.text.slice(0,s.ch)+d+u.text.slice(l.ch),f);else{var m=a(1,c.length-1);m.push(new Ge(d+u.text.slice(l.ch),f,r)),i(u,u.text.slice(0,s.ch)+c[0],o(0)),t.insert(s.line+1,m)}else if(1==c.length)i(u,u.text.slice(0,s.ch)+c[0]+p.text.slice(l.ch),o(0)),t.remove(s.line+1,h);else{i(u,u.text.slice(0,s.ch)+c[0],o(0)),i(p,d+p.text.slice(l.ch),f);var v=a(1,c.length-1);h>1&&t.remove(s.line+1,h-1),t.insert(s.line+1,v)}ln(t,"change",t,e)}function Io(t,e,n){!function t(r,o,i){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=o){var l=i&&s.sharedHist;n&&!l||(e(s.doc,l),t(s.doc,r,l))}}}(t,null,!0)}function Ro(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,lr(t),jo(t),Mo(t),t.options.direction=e.direction,t.options.lineWrapping||We(t),t.options.mode=e.modeOption,pr(t)}function Mo(t){("rtl"==t.doc.direction?L:A)(t.display.lineDiv,"CodeMirror-rtl")}function Bo(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function Fo(t,e){var n={from:re(e.from),to:Oo(e),text:Yt(t,e.from,e.to)};return zo(t,n,e.from.line,e.to.line+1),Io(t,(function(t){return zo(t,n,e.from.line,e.to.line+1)}),!0),n}function Uo(t){for(;t.length&&K(t).ranges;)t.pop()}function Ho(t,e,n,r){var o=t.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&o.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(i=function(t,e){return e?(Uo(t.done),K(t.done)):t.done.length&&!K(t.done).ranges?K(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),K(t.done)):void 0}(o,o.lastOp==r)))a=K(i.changes),0==ee(e.from,e.to)&&0==ee(e.from,a.to)?a.to=Oo(e):i.changes.push(Fo(t,e));else{var l=K(o.done);for(l&&l.ranges||qo(t.sel,o.done),i={changes:[Fo(t,e)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=e.origin,a||ht(t,"historyAdded")}function Vo(t,e,n,r){var o=t.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||function(t,e,n,r){var o=e.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,i,K(o.done),e))?o.done[o.done.length-1]=e:qo(e,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&Uo(o.undone)}function qo(t,e){var n=K(e);n&&n.ranges&&n.equals(t)||e.push(t)}function zo(t,e,n,r){var o=e["spans_"+t.id],i=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((o||(o=e["spans_"+t.id]={}))[i]=n.markedSpans),++i}))}function Wo(t){if(!t)return null;for(var e,n=0;n<t.length;++n)t[n].marker.explicitlyCleared?e||(e=t.slice(0,n)):e&&e.push(t[n]);return e?e.length?e:null:t}function Go(t,e){var n=function(t,e){var n=e["spans_"+t.id];if(!n)return null;for(var r=[],o=0;o<e.text.length;++o)r.push(Wo(n[o]));return r}(t,e),r=Ae(t,e);if(!n)return r;if(!r)return n;for(var o=0;o<n.length;++o){var i=n[o],a=r[o];if(i&&a)t:for(var s=0;s<a.length;++s){for(var l=a[s],c=0;c<i.length;++c)if(i[c].marker==l.marker)continue t;i.push(l)}else a&&(n[o]=a)}return n}function Yo(t,e,n){for(var r=[],o=0;o<t.length;++o){var i=t[o];if(i.ranges)r.push(n?xo.prototype.deepCopy.call(i):i);else{var a=i.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var c=a[l],u=void 0;if(s.push({from:c.from,to:c.to,text:c.text}),e)for(var p in c)(u=p.match(/^spans_(\d+)$/))&&U(e,Number(u[1]))>-1&&(K(s)[p]=c[p],delete c[p])}}}return r}function Ko(t,e,n,r){if(r){var o=t.anchor;if(n){var i=ee(e,o)<0;i!=ee(n,o)<0?(o=e,e=n):i!=ee(e,n)<0&&(e=n)}return new Co(o,e)}return new Co(n||e,e)}function $o(t,e,n,r,o){null==o&&(o=t.cm&&(t.cm.display.shift||t.extend)),ti(t,new xo([Ko(t.sel.primary(),e,n,o)],0),r)}function Xo(t,e,n){for(var r=[],o=t.cm&&(t.cm.display.shift||t.extend),i=0;i<t.sel.ranges.length;i++)r[i]=Ko(t.sel.ranges[i],e[i],null,o);ti(t,To(t.cm,r,t.sel.primIndex),n)}function Zo(t,e,n,r){var o=t.sel.ranges.slice(0);o[e]=n,ti(t,To(t.cm,o,t.sel.primIndex),r)}function Qo(t,e,n,r){ti(t,Ao(e,n),r)}function Jo(t,e,n){var r=t.history.done,o=K(r);o&&o.ranges?(r[r.length-1]=e,ei(t,e,n)):ti(t,e,n)}function ti(t,e,n){ei(t,e,n),Vo(t,t.sel,t.cm?t.cm.curOp.id:NaN,n)}function ei(t,e,n){(vt(t,"beforeSelectionChange")||t.cm&&vt(t.cm,"beforeSelectionChange"))&&(e=function(t,e,n){var r={ranges:e.ranges,update:function(e){this.ranges=[];for(var n=0;n<e.length;n++)this.ranges[n]=new Co(se(t,e[n].anchor),se(t,e[n].head))},origin:n&&n.origin};return ht(t,"beforeSelectionChange",t,r),t.cm&&ht(t.cm,"beforeSelectionChange",t.cm,r),r.ranges!=e.ranges?To(t.cm,r.ranges,r.ranges.length-1):e}(t,e,n));var r=n&&n.bias||(ee(e.primary().head,t.sel.primary().head)<0?-1:1);ni(t,oi(t,e,r,!0)),n&&!1===n.scroll||!t.cm||"nocursor"==t.cm.getOption("readOnly")||jr(t.cm)}function ni(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,mt(t.cm)),ln(t,"cursorActivity",t))}function ri(t){ni(t,oi(t,t.sel,null,!1))}function oi(t,e,n,r){for(var o,i=0;i<e.ranges.length;i++){var a=e.ranges[i],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[i],l=ai(t,a.anchor,s&&s.anchor,n,r),c=ai(t,a.head,s&&s.head,n,r);(o||l!=a.anchor||c!=a.head)&&(o||(o=e.ranges.slice(0,i)),o[i]=new Co(l,c))}return o?To(t.cm,o,e.primIndex):e}function ii(t,e,n,r,o){var i=Gt(t,e.line);if(i.markedSpans)for(var a=0;a<i.markedSpans.length;++a){var s=i.markedSpans[a],l=s.marker,c="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,u="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(c?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(u?s.to>=e.ch:s.to>e.ch))){if(o&&(ht(l,"beforeCursorEnter"),l.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var p=l.find(r<0?1:-1),d=void 0;if((r<0?u:c)&&(p=si(t,p,-r,p&&p.line==e.line?i:null)),p&&p.line==e.line&&(d=ee(p,n))&&(r<0?d<0:d>0))return ii(t,p,e,r,o)}var f=l.find(r<0?-1:1);return(r<0?c:u)&&(f=si(t,f,r,f.line==e.line?i:null)),f?ii(t,f,e,r,o):null}}return e}function ai(t,e,n,r,o){var i=r||1;return ii(t,e,n,i,o)||!o&&ii(t,e,n,i,!0)||ii(t,e,n,-i,o)||!o&&ii(t,e,n,-i,!0)||(t.cantEdit=!0,te(t.first,0))}function si(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?se(t,te(e.line-1)):null:n>0&&e.ch==(r||Gt(t,e.line)).text.length?e.line<t.first+t.size-1?te(e.line+1,0):null:new te(e.line,e.ch+n)}function li(t){t.setSelection(te(t.firstLine(),0),te(t.lastLine()),V)}function ci(t,e,n){var r={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(e,n,o,i){e&&(r.from=se(t,e)),n&&(r.to=se(t,n)),o&&(r.text=o),void 0!==i&&(r.origin=i)}),ht(t,"beforeChange",t,r),t.cm&&ht(t.cm,"beforeChange",t.cm,r),r.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ui(t,e,n){if(t.cm){if(!t.cm.curOp)return to(t.cm,ui)(t,e,n);if(t.cm.state.suppressEdits)return}if(!(vt(t,"beforeChange")||t.cm&&vt(t.cm,"beforeChange"))||(e=ci(t,e,!0))){var r=we&&!n&&function(t,e,n){var r=null;if(t.iter(e.line,n.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var n=t.markedSpans[e].marker;!n.readOnly||r&&-1!=U(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var o=[{from:e,to:n}],i=0;i<r.length;++i)for(var a=r[i],s=a.find(0),l=0;l<o.length;++l){var c=o[l];if(!(ee(c.to,s.from)<0||ee(c.from,s.to)>0)){var u=[l,1],p=ee(c.from,s.from),d=ee(c.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&u.push({from:s.to,to:c.to}),o.splice.apply(o,u),l+=u.length-3}}return o}(t,e.from,e.to);if(r)for(var o=r.length-1;o>=0;--o)pi(t,{from:r[o].from,to:r[o].to,text:o?[""]:e.text,origin:e.origin});else pi(t,e)}}function pi(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ee(e.from,e.to)){var n=ko(t,e);Ho(t,e,n,t.cm?t.cm.curOp.id:NaN),hi(t,e,n,Ae(t,e));var r=[];Io(t,(function(t,n){n||-1!=U(r,t.history)||(yi(t.history,e),r.push(t.history)),hi(t,e,null,Ae(t,e))}))}}function di(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var o,i=t.history,a=t.sel,s="undo"==e?i.done:i.undone,l="undo"==e?i.undone:i.done,c=0;c<s.length&&(o=s[c],n?!o.ranges||o.equals(t.sel):o.ranges);c++);if(c!=s.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(!(o=s.pop()).ranges){if(r)return void s.push(o);break}if(qo(o,l),n&&!o.equals(t.sel))return void ti(t,o,{clearRedo:!1});a=o}var u=[];qo(a,l),l.push({changes:u,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var p=vt(t,"beforeChange")||t.cm&&vt(t.cm,"beforeChange"),d=function(n){var r=o.changes[n];if(r.origin=e,p&&!ci(t,r,!1))return s.length=0,{};u.push(Fo(t,r));var i=n?ko(t,r):K(s);hi(t,r,i,Go(t,r)),!n&&t.cm&&t.cm.scrollIntoView({from:r.from,to:Oo(r)});var a=[];Io(t,(function(t,e){e||-1!=U(a,t.history)||(yi(t.history,r),a.push(t.history)),hi(t,r,null,Go(t,r))}))},f=o.changes.length-1;f>=0;--f){var h=d(f);if(h)return h.v}}}}function fi(t,e){if(0!=e&&(t.first+=e,t.sel=new xo($(t.sel.ranges,(function(t){return new Co(te(t.anchor.line+e,t.anchor.ch),te(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){pr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;r<n.viewTo;r++)dr(t.cm,r,"gutter")}}function hi(t,e,n,r){if(t.cm&&!t.cm.curOp)return to(t.cm,hi)(t,e,n,r);if(e.to.line<t.first)fi(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var o=e.text.length-1-(t.first-e.from.line);fi(t,o),e={from:te(t.first,0),to:te(e.to.line+o,e.to.ch),text:[K(e.text)],origin:e.origin}}var i=t.lastLine();e.to.line>i&&(e={from:e.from,to:te(i,Gt(t,i).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Yt(t,e.from,e.to),n||(n=ko(t,e)),t.cm?function(t,e,n){var r=t.doc,o=t.display,i=e.from,a=e.to,s=!1,l=i.line;t.options.lineWrapping||(l=Xt(Be(Gt(r,i.line))),r.iter(l,a.line+1,(function(t){if(t==o.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&mt(t),Do(r,e,n,sr(t)),t.options.lineWrapping||(r.iter(l,i.line+e.text.length,(function(t){var e=ze(t);e>o.maxLineLength&&(o.maxLine=t,o.maxLineLength=e,o.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var n=t.first,r=e-1;r>n;r--){var o=Gt(t,r).stateAfter;if(o&&(!(o instanceof ce)||r+o.lookAhead<e)){n=r+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,n)}}(r,i.line),ro(t,400);var c=e.text.length-(a.line-i.line)-1;e.full?pr(t):i.line!=a.line||1!=e.text.length||Lo(t.doc,e)?pr(t,i.line,a.line+1,c):dr(t,i.line,"text");var u=vt(t,"changes"),p=vt(t,"change");if(p||u){var d={from:i,to:a,text:e.text,removed:e.removed,origin:e.origin};p&&ln(t,"change",t,d),u&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(d)}t.display.selForContextMenu=null}(t.cm,e,r):Do(t,e,r),ei(t,n,V),t.cantEdit&&ai(t,te(t.firstLine(),0))&&(t.cantEdit=!1)}}function gi(t,e,n,r,o){var i;r||(r=n),ee(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof e&&(e=t.splitLines(e)),ui(t,{from:n,to:r,text:e,origin:o})}function mi(t,e,n,r){n<t.line?t.line+=r:e<t.line&&(t.line=e,t.ch=0)}function vi(t,e,n,r){for(var o=0;o<t.length;++o){var i=t[o],a=!0;if(i.ranges){i.copied||((i=t[o]=i.deepCopy()).copied=!0);for(var s=0;s<i.ranges.length;s++)mi(i.ranges[s].anchor,e,n,r),mi(i.ranges[s].head,e,n,r)}else{for(var l=0;l<i.changes.length;++l){var c=i.changes[l];if(n<c.from.line)c.from=te(c.from.line+r,c.from.ch),c.to=te(c.to.line+r,c.to.ch);else if(e<=c.to.line){a=!1;break}}a||(t.splice(0,o+1),o=0)}}}function yi(t,e){var n=e.from.line,r=e.to.line,o=e.text.length-(r-n)-1;vi(t.done,n,r,o),vi(t.undone,n,r,o)}function bi(t,e,n,r){var o=e,i=e;return"number"==typeof e?i=Gt(t,ae(t,e)):o=Xt(e),null==o?null:(r(i,o)&&t.cm&&dr(t.cm,o,n),i)}function _i(t){this.lines=t,this.parent=null;for(var e=0,n=0;n<t.length;++n)t[n].parent=this,e+=t[n].height;this.height=e}function wi(t){this.children=t;for(var e=0,n=0,r=0;r<t.length;++r){var o=t[r];e+=o.chunkSize(),n+=o.height,o.parent=this}this.size=e,this.height=n,this.parent=null}Co.prototype.from=function(){return ie(this.anchor,this.head)},Co.prototype.to=function(){return oe(this.anchor,this.head)},Co.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},_i.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var n=t,r=t+e;n<r;++n){var o=this.lines[n];this.height-=o.height,Ye(o),ln(o,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,n){this.height+=n,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var r=0;r<e.length;++r)e[r].parent=this},iterN:function(t,e,n){for(var r=t+e;t<r;++t)if(n(this.lines[t]))return!0}},wi.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var n=0;n<this.children.length;++n){var r=this.children[n],o=r.chunkSize();if(t<o){var i=Math.min(e,o-t),a=r.height;if(r.removeInner(t,i),this.height-=a-r.height,o==i&&(this.children.splice(n--,1),r.parent=null),0==(e-=i))break;t=0}else t-=o}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof _i))){var s=[];this.collapse(s),this.children=[new _i(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,n){this.size+=e.length,this.height+=n;for(var r=0;r<this.children.length;++r){var o=this.children[r],i=o.chunkSize();if(t<=i){if(o.insertInner(t,e,n),o.lines&&o.lines.length>50){for(var a=o.lines.length%25+25,s=a;s<o.lines.length;){var l=new _i(o.lines.slice(s,s+=25));o.height-=l.height,this.children.splice(++r,0,l),l.parent=this}o.lines=o.lines.slice(0,a),this.maybeSpill()}break}t-=i}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new wi(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var n=U(t.parent.children,t);t.parent.children.splice(n+1,0,e)}else{var r=new wi(t.children);r.parent=t,t.children=[r,e],t=r}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r<this.children.length;++r){var o=this.children[r],i=o.chunkSize();if(t<i){var a=Math.min(e,i-t);if(o.iterN(t,a,n))return!0;if(0==(e-=a))break;t=0}else t-=i}}};var Ei=function(t,e,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=t,this.node=e};function xi(t,e,n){qe(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Pr(t,n)}Ei.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,n=this.line,r=Xt(n);if(null!=r&&e){for(var o=0;o<e.length;++o)e[o]==this&&e.splice(o--,1);e.length||(n.widgets=null);var i=wn(this);$t(n,Math.max(0,n.height-i)),t&&(Jr(t,(function(){xi(t,n,-i),dr(t,r,"widget")})),ln(t,"lineWidgetCleared",t,this,r))}},Ei.prototype.changed=function(){var t=this,e=this.height,n=this.doc.cm,r=this.line;this.height=null;var o=wn(this)-e;o&&(He(this.doc,r)||$t(r,r.height+o),n&&Jr(n,(function(){n.curOp.forceUpdate=!0,xi(n,r,o),ln(n,"lineWidgetChanged",n,t,Xt(r))})))},yt(Ei);var Ci=0,Ti=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Ci};function Ai(t,e,n,r,o){if(r&&r.shared)return function(t,e,n,r,o){(r=M(r)).shared=!1;var i=[Ai(t,e,n,r,o)],a=i[0],s=r.widgetNode;return Io(t,(function(t){s&&(r.widgetNode=s.cloneNode(!0)),i.push(Ai(t,se(t,e),se(t,n),r,o));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;a=K(i)})),new Oi(i,a)}(t,e,n,r,o);if(t.cm&&!t.cm.curOp)return to(t.cm,Ai)(t,e,n,r,o);var i=new Ti(t,o),a=ee(e,n);if(r&&M(r,i,!1),a>0||0==a&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=P("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Me(t,e.line,e,n,i)||e.line!=n.line&&Me(t,n.line,e,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ee=!0}i.addToHistory&&Ho(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,l=e.line,c=t.cm;if(t.iter(l,n.line+1,(function(r){c&&i.collapsed&&!c.options.lineWrapping&&Be(r)==c.display.maxLine&&(s=!0),i.collapsed&&l!=e.line&&$t(r,0),function(t,e,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&r.has(t.markedSpans)?t.markedSpans.push(e):(t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],r&&r.add(t.markedSpans)),e.marker.attachLine(t)}(r,new xe(i,l==e.line?e.ch:null,l==n.line?n.ch:null),t.cm&&t.cm.curOp),++l})),i.collapsed&&t.iter(e.line,n.line+1,(function(e){He(t,e)&&$t(e,0)})),i.clearOnEnter&&pt(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(we=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),i.collapsed&&(i.id=++Ci,i.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),i.collapsed)pr(c,e.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=e.line;u<=n.line;u++)dr(c,u,"text");i.atomic&&ri(c.doc),ln(c,"markerAdded",c,i)}return i}Ti.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Gr(t),vt(this,"clear")){var n=this.find();n&&ln(this,"clear",n.from,n.to)}for(var r=null,o=null,i=0;i<this.lines.length;++i){var a=this.lines[i],s=Ce(a.markedSpans,this);t&&!this.collapsed?dr(t,Xt(a),"text"):t&&(null!=s.to&&(o=Xt(a)),null!=s.from&&(r=Xt(a))),a.markedSpans=Te(a.markedSpans,s),null==s.from&&this.collapsed&&!He(this.doc,a)&&t&&$t(a,rr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var c=Be(this.lines[l]),u=ze(c);u>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=u,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&pr(t,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ri(t.doc)),t&&ln(t,"markerCleared",t,this,r,o),e&&Yr(t),this.parent&&this.parent.clear()}},Ti.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var o=0;o<this.lines.length;++o){var i=this.lines[o],a=Ce(i.markedSpans,this);if(null!=a.from&&(n=te(e?i:Xt(i),a.from),-1==t))return n;if(null!=a.to&&(r=te(e?i:Xt(i),a.to),1==t))return r}return n&&{from:n,to:r}},Ti.prototype.changed=function(){var t=this,e=this.find(-1,!0),n=this,r=this.doc.cm;e&&r&&Jr(r,(function(){var o=e.line,i=Xt(e.line),a=jn(r,i);if(a&&(Bn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!He(n.doc,o)&&null!=n.height){var s=n.height;n.height=null;var l=wn(n)-s;l&&$t(o,o.height+l)}ln(r,"markerChanged",r,t)}))},Ti.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=U(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Ti.prototype.detachLine=function(t){if(this.lines.splice(U(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},yt(Ti);var Oi=function(t,e){this.markers=t,this.primary=e;for(var n=0;n<t.length;++n)t[n].parent=this};function Si(t){return t.findMarks(te(t.first,0),t.clipPos(te(t.lastLine())),(function(t){return t.parent}))}function ki(t){for(var e=function(e){var n=t[e],r=[n.primary.doc];Io(n.primary.doc,(function(t){return r.push(t)}));for(var o=0;o<n.markers.length;o++){var i=n.markers[o];-1==U(r,i.doc)&&(i.parent=null,n.markers.splice(o--,1))}},n=0;n<t.length;n++)e(n)}Oi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();ln(this,"clear")}},Oi.prototype.find=function(t,e){return this.primary.find(t,e)},yt(Oi);var Pi=0,ji=function(t,e,n,r,o){if(!(this instanceof ji))return new ji(t,e,n,r,o);null==n&&(n=0),wi.call(this,[new _i([new Ge("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var i=te(n,0);this.sel=Ao(i),this.history=new Bo(null),this.id=++Pi,this.modeOption=e,this.lineSep=r,this.direction="rtl"==o?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Do(this,{from:i,to:i,text:t}),ti(this,Ao(i),V)};ji.prototype=Z(wi.prototype,{constructor:ji,iter:function(t,e,n){n?this.iterN(t-this.first,e-t,n):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var n=0,r=0;r<e.length;++r)n+=e[r].height;this.insertInner(t-this.first,e,n)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Kt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:no((function(t){var e=te(this.first,0),n=this.first+this.size-1;ui(this,{from:e,to:te(n,Gt(this,n).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Nr(this.cm,0,0),ti(this,Ao(e),V)})),replaceRange:function(t,e,n,r){gi(this,t,e=se(this,e),n=n?se(this,n):e,r)},getRange:function(t,e,n){var r=Yt(this,se(this,t),se(this,e));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(Qt(this,t))return Gt(this,t)},getLineNumber:function(t){return Xt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=Gt(this,t)),Be(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return se(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:no((function(t,e,n){Qo(this,se(this,"number"==typeof t?te(t,e||0):t),null,n)})),setSelection:no((function(t,e,n){Qo(this,se(this,t),se(this,e||t),n)})),extendSelection:no((function(t,e,n){$o(this,se(this,t),e&&se(this,e),n)})),extendSelections:no((function(t,e){Xo(this,le(this,t),e)})),extendSelectionsBy:no((function(t,e){Xo(this,le(this,$(this.sel.ranges,t)),e)})),setSelections:no((function(t,e,n){if(t.length){for(var r=[],o=0;o<t.length;o++)r[o]=new Co(se(this,t[o].anchor),se(this,t[o].head||t[o].anchor));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),ti(this,To(this.cm,r,e),n)}})),addSelection:no((function(t,e,n){var r=this.sel.ranges.slice(0);r.push(new Co(se(this,t),se(this,e||t))),ti(this,To(this.cm,r,r.length-1),n)})),getSelection:function(t){for(var e,n=this.sel.ranges,r=0;r<n.length;r++){var o=Yt(this,n[r].from(),n[r].to());e=e?e.concat(o):o}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],n=this.sel.ranges,r=0;r<n.length;r++){var o=Yt(this,n[r].from(),n[r].to());!1!==t&&(o=o.join(t||this.lineSeparator())),e[r]=o}return e},replaceSelection:function(t,e,n){for(var r=[],o=0;o<this.sel.ranges.length;o++)r[o]=t;this.replaceSelections(r,e,n||"+input")},replaceSelections:no((function(t,e,n){for(var r=[],o=this.sel,i=0;i<o.ranges.length;i++){var a=o.ranges[i];r[i]={from:a.from(),to:a.to(),text:this.splitLines(t[i]),origin:n}}for(var s=e&&"end"!=e&&function(t,e,n){for(var r=[],o=te(t.first,0),i=o,a=0;a<e.length;a++){var s=e[a],l=Po(s.from,o,i),c=Po(Oo(s),o,i);if(o=s.to,i=c,"around"==n){var u=t.sel.ranges[a],p=ee(u.head,u.anchor)<0;r[a]=new Co(p?c:l,p?l:c)}else r[a]=new Co(l,l)}return new xo(r,t.sel.primIndex)}(this,r,e),l=r.length-1;l>=0;l--)ui(this,r[l]);s?Jo(this,s):this.cm&&jr(this.cm)})),undo:no((function(){di(this,"undo")})),redo:no((function(){di(this,"redo")})),undoSelection:no((function(){di(this,"undo",!0)})),redoSelection:no((function(){di(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,r=0;r<t.done.length;r++)t.done[r].ranges||++e;for(var o=0;o<t.undone.length;o++)t.undone[o].ranges||++n;return{undo:e,redo:n}},clearHistory:function(){var t=this;this.history=new Bo(this.history),Io(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Yo(this.history.done),undone:Yo(this.history.undone)}},setHistory:function(t){var e=this.history=new Bo(this.history);e.done=Yo(t.done.slice(0),null,!0),e.undone=Yo(t.undone.slice(0),null,!0)},setGutterMarker:no((function(t,e,n){return bi(this,t,"gutter",(function(t){var r=t.gutterMarkers||(t.gutterMarkers={});return r[e]=n,!n&&et(r)&&(t.gutterMarkers=null),!0}))})),clearGutter:no((function(t){var e=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[t]&&bi(e,n,"gutter",(function(){return n.gutterMarkers[t]=null,et(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!Qt(this,t))return null;if(e=t,!(t=Gt(this,t)))return null}else if(null==(e=Xt(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:no((function(t,e,n){return bi(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[r]){if(C(n).test(t[r]))return!1;t[r]+=" "+n}else t[r]=n;return!0}))})),removeLineClass:no((function(t,e,n){return bi(this,t,"gutter"==e?"gutter":"class",(function(t){var r="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",o=t[r];if(!o)return!1;if(null==n)t[r]=null;else{var i=o.match(C(n));if(!i)return!1;var a=i.index+i[0].length;t[r]=o.slice(0,i.index)+(i.index&&a!=o.length?" ":"")+o.slice(a)||null}return!0}))})),addLineWidget:no((function(t,e,n){return function(t,e,n,r){var o=new Ei(t,n,r),i=t.cm;return i&&o.noHScroll&&(i.display.alignWidgets=!0),bi(t,e,"widget",(function(e){var n=e.widgets||(e.widgets=[]);if(null==o.insertAt?n.push(o):n.splice(Math.min(n.length,Math.max(0,o.insertAt)),0,o),o.line=e,i&&!He(t,e)){var r=qe(e)<t.scrollTop;$t(e,e.height+wn(o)),r&&Pr(i,o.height),i.curOp.forceUpdate=!0}return!0})),i&&ln(i,"lineWidgetAdded",i,o,"number"==typeof e?e:Xt(e)),o}(this,t,e,n)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,n){return Ai(this,se(this,t),se(this,e),n,n&&n.type||"range")},setBookmark:function(t,e){var n={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return Ai(this,t=se(this,t),t,n,"bookmark")},findMarksAt:function(t){var e=[],n=Gt(this,(t=se(this,t)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var o=n[r];(null==o.from||o.from<=t.ch)&&(null==o.to||o.to>=t.ch)&&e.push(o.marker.parent||o.marker)}return e},findMarks:function(t,e,n){t=se(this,t),e=se(this,e);var r=[],o=t.line;return this.iter(t.line,e.line+1,(function(i){var a=i.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&o==t.line&&t.ch>=l.to||null==l.from&&o!=t.line||null!=l.from&&o==e.line&&l.from>=e.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++o})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&t.push(n[r].marker)})),t},posFromIndex:function(t){var e,n=this.first,r=this.lineSeparator().length;return this.iter((function(o){var i=o.text.length+r;if(i>t)return e=t,!0;t-=i,++n})),se(this,te(n,e))},indexFromPos:function(t){var e=(t=se(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+n})),e},copy:function(t){var e=new ji(Kt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,n=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<n&&(n=t.to);var r=new ji(Kt(this,e,n),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:t.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n],o=r.find(),i=t.clipPos(o.from),a=t.clipPos(o.to);if(ee(i,a)){var s=Ai(t,i,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Si(this)),r},unlinkDoc:function(t){if(t instanceof Oa&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),ki(Si(this));break}if(t.history==this.history){var n=[t.id];Io(t,(function(t){return n.push(t.id)}),!0),t.history=new Bo(null),t.history.done=Yo(this.history.done,n),t.history.undone=Yo(this.history.undone,n)}},iterLinkedDocs:function(t){Io(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):jt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:no((function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&Jr(e=this.cm,(function(){Mo(e),pr(e)})))}))}),ji.prototype.eachLine=ji.prototype.iter;var Ni=0;function Li(t){var e=this;if(Di(e),!gt(e,t)&&!En(e.display,t)){bt(t),a&&(Ni=+new Date);var n=cr(e,t,!0),r=t.dataTransfer.files;if(n&&!e.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,i=Array(o),s=0,l=function(){++s==o&&to(e,(function(){var t={from:n=se(e.doc,n),to:n,text:e.doc.splitLines(i.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};ui(e.doc,t),Jo(e.doc,Ao(se(e.doc,n),se(e.doc,Oo(t))))}))()},c=function(t,n){if(e.options.allowDropFileTypes&&-1==U(e.options.allowDropFileTypes,t.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var t=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(i[n]=t),l()},r.readAsText(t)}},u=0;u<r.length;u++)c(r[u],u);else{if(e.state.draggingText&&e.doc.sel.contains(n)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var p=t.dataTransfer.getData("Text");if(p){var d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),ei(e.doc,Ao(n,n)),d)for(var f=0;f<d.length;++f)gi(e.doc,"",d[f].anchor,d[f].head,"drag");e.replaceSelection(p,"around","paste"),e.display.input.focus()}}catch(t){}}}}function Di(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Ii(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<e.length;r++){var o=e[r].CodeMirror;o&&n.push(o)}n.length&&n[0].operation((function(){for(var e=0;e<n.length;e++)t(n[e])}))}}var Ri=!1;function Mi(){var t;Ri||(pt(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Ii(Bi)}),100))})),pt(window,"blur",(function(){return Ii(Tr)})),Ri=!0)}function Bi(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Fi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ui=0;Ui<10;Ui++)Fi[Ui+48]=Fi[Ui+96]=String(Ui);for(var Hi=65;Hi<=90;Hi++)Fi[Hi]=String.fromCharCode(Hi);for(var Vi=1;Vi<=12;Vi++)Fi[Vi+111]=Fi[Vi+63235]="F"+Vi;var qi={};function zi(t){var e,n,r,o,i=t.split(/-(?!$)/);t=i[i.length-1];for(var a=0;a<i.length-1;a++){var s=i[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return e&&(t="Alt-"+t),n&&(t="Ctrl-"+t),o&&(t="Cmd-"+t),r&&(t="Shift-"+t),t}function Wi(t){var e={};for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete t[n];continue}for(var o=$(n.split(" "),zi),i=0;i<o.length;i++){var a=void 0,s=void 0;i==o.length-1?(s=o.join(" "),a=r):(s=o.slice(0,i+1).join(" "),a="...");var l=e[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else e[s]=a}delete t[n]}for(var c in e)t[c]=e[c];return t}function Gi(t,e,n,r){var o=(e=Xi(e)).call?e.call(t,r):e[t];if(!1===o)return"nothing";if("..."===o)return"multi";if(null!=o&&n(o))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return Gi(t,e.fallthrough,n,r);for(var i=0;i<e.fallthrough.length;i++){var a=Gi(t,e.fallthrough[i],n,r);if(a)return a}}}function Yi(t){var e="string"==typeof t?t:Fi[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Ki(t,e,n){var r=t;return e.altKey&&"Alt"!=r&&(t="Alt-"+t),(E?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(t="Ctrl-"+t),(E?e.ctrlKey:e.metaKey)&&"Mod"!=r&&(t="Cmd-"+t),!n&&e.shiftKey&&"Shift"!=r&&(t="Shift-"+t),t}function $i(t,e){if(p&&34==t.keyCode&&t.char)return!1;var n=Fi[t.keyCode];return null!=n&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(n=t.code),Ki(n,t,e))}function Xi(t){return"string"==typeof t?qi[t]:t}function Zi(t,e){for(var n=t.doc.sel.ranges,r=[],o=0;o<n.length;o++){for(var i=e(n[o]);r.length&&ee(i.from,K(r).to)<=0;){var a=r.pop();if(ee(a.from,i.from)<0){i.from=a.from;break}}r.push(i)}Jr(t,(function(){for(var e=r.length-1;e>=0;e--)gi(t.doc,"",r[e].from,r[e].to,"+delete");jr(t)}))}function Qi(t,e,n){var r=ot(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Ji(t,e,n){var r=Qi(t,e.ch,n);return null==r?null:new te(e.line,r,n<0?"after":"before")}function ta(t,e,n,r,o){if(t){"rtl"==e.doc.direction&&(o=-o);var i=ct(n,e.doc.direction);if(i){var a,s=o<0?K(i):i[0],l=o<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var c=Nn(e,n);a=o<0?n.text.length-1:0;var u=Ln(e,c,a).top;a=it((function(t){return Ln(e,c,t).top==u}),o<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Qi(n,a,1))}else a=o<0?s.to:s.from;return new te(r,a,l)}}return new te(r,o<0?n.text.length:0,o<0?"before":"after")}qi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},qi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},qi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},qi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},qi.default=y?qi.macDefault:qi.pcDefault;var ea={selectAll:li,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),V)},killLine:function(t){return Zi(t,(function(e){if(e.empty()){var n=Gt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line<t.lastLine()?{from:e.head,to:te(e.head.line+1,0)}:{from:e.head,to:te(e.head.line,n)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return Zi(t,(function(e){return{from:te(e.from().line,0),to:se(t.doc,te(e.to().line+1,0))}}))},delLineLeft:function(t){return Zi(t,(function(t){return{from:te(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return Zi(t,(function(e){var n=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:n},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return Zi(t,(function(e){var n=t.charCoords(e.head,"div").top+5,r=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div");return{from:e.from(),to:r}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(te(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(te(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return na(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return ra(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return function(t,e){var n=Gt(t.doc,e),r=function(t){for(var e;e=Ie(t);)t=e.find(1,!0).line;return t}(n);return r!=n&&(e=Xt(r)),ta(!0,t,n,e,-1)}(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:n},"div")}),z)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:n},"div")}),z)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var n=t.cursorCoords(e.head,"div").top+5,r=t.coordsChar({left:0,top:n},"div");return r.ch<t.getLine(r.line).search(/\S/)?ra(t,e.head):r}),z)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],n=t.listSelections(),r=t.options.tabSize,o=0;o<n.length;o++){var i=n[o].from(),a=B(t.getLine(i.line),i.ch,r);e.push(Y(r-a%r))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Jr(t,(function(){for(var e=t.listSelections(),n=[],r=0;r<e.length;r++)if(e[r].empty()){var o=e[r].head,i=Gt(t.doc,o.line).text;if(i)if(o.ch==i.length&&(o=new te(o.line,o.ch-1)),o.ch>0)o=new te(o.line,o.ch+1),t.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),te(o.line,o.ch-2),o,"+transpose");else if(o.line>t.doc.first){var a=Gt(t.doc,o.line-1).text;a&&(o=new te(o.line,1),t.replaceRange(i.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),te(o.line-1,a.length-1),o,"+transpose"))}n.push(new Co(o,o))}t.setSelections(n)}))},newlineAndIndent:function(t){return Jr(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var r=0;r<e.length;r++)t.indentLine(e[r].from().line,null,!0);jr(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function na(t,e){var n=Gt(t.doc,e),r=Be(n);return r!=n&&(e=Xt(r)),ta(!0,t,r,e,1)}function ra(t,e){var n=na(t,e.line),r=Gt(t.doc,n.line),o=ct(r,t.doc.direction);if(!o||0==o[0].level){var i=Math.max(n.ch,r.text.search(/\S/)),a=e.line==n.line&&e.ch<=i&&e.ch;return te(n.line,a?0:i,n.sticky)}return n}function oa(t,e,n){if("string"==typeof e&&!(e=ea[e]))return!1;t.display.input.ensurePolled();var r=t.display.shift,o=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n&&(t.display.shift=!1),o=e(t)!=H}finally{t.display.shift=r,t.state.suppressEdits=!1}return o}var ia=new F;function aa(t,e,n,r){var o=t.state.keySeq;if(o){if(Yi(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:ia.set(50,(function(){t.state.keySeq==o&&(t.state.keySeq=null,t.display.input.reset())})),sa(t,o+" "+e,n,r))return!0}return sa(t,e,n,r)}function sa(t,e,n,r){var o=function(t,e,n){for(var r=0;r<t.state.keyMaps.length;r++){var o=Gi(e,t.state.keyMaps[r],n,t);if(o)return o}return t.options.extraKeys&&Gi(e,t.options.extraKeys,n,t)||Gi(e,t.options.keyMap,n,t)}(t,e,r);return"multi"==o&&(t.state.keySeq=e),"handled"==o&&ln(t,"keyHandled",t,e,n),"handled"!=o&&"multi"!=o||(bt(n),wr(t)),!!o}function la(t,e){var n=$i(e,!0);return!!n&&(e.shiftKey&&!t.state.keySeq?aa(t,"Shift-"+n,e,(function(e){return oa(t,e,!0)}))||aa(t,n,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return oa(t,e)})):aa(t,n,e,(function(e){return oa(t,e)})))}var ca=null;function ua(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=N(),gt(e,t)))){a&&s<11&&27==t.keyCode&&(t.returnValue=!1);var r=t.keyCode;e.display.shift=16==r||t.shiftKey;var o=la(e,t);p&&(ca=o?r:null,o||88!=r||Lt||!(y?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),n&&!y&&!o&&46==r&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function n(t){18!=t.keyCode&&t.altKey||(A(e,"CodeMirror-crosshair"),ft(document,"keyup",n),ft(document,"mouseover",n))}L(e,"CodeMirror-crosshair"),pt(document,"keyup",n),pt(document,"mouseover",n)}(e)}}function pa(t){16==t.keyCode&&(this.doc.sel.shift=!1),gt(this,t)}function da(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||En(e.display,t)||gt(e,t)||t.ctrlKey&&!t.altKey||y&&t.metaKey)){var n=t.keyCode,r=t.charCode;if(p&&n==ca)return ca=null,void bt(t);if(!p||t.which&&!(t.which<10)||!la(e,t)){var o=String.fromCharCode(null==r?n:r);"\b"!=o&&(function(t,e,n){return aa(t,"'"+n+"'",e,(function(e){return oa(t,e,!0)}))}(e,t,o)||e.display.input.onKeyPress(t))}}}var fa,ha,ga=function(t,e,n){this.time=t,this.pos=e,this.button=n};function ma(t){var e=this,n=e.display;if(!(gt(e,t)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=t.shiftKey,En(n,t))l||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ba(e,t)){var r=cr(e,t),o=Ct(t),i=r?function(t,e){var n=+new Date;return ha&&ha.compare(n,t,e)?(fa=ha=null,"triple"):fa&&fa.compare(n,t,e)?(ha=new ga(n,t,e),fa=null,"double"):(fa=new ga(n,t,e),ha=null,"single")}(r,o):"single";window.focus(),1==o&&e.state.selectingText&&e.state.selectingText(t),r&&function(t,e,n,r,o){var i="Click";return"double"==r?i="Double"+i:"triple"==r&&(i="Triple"+i),aa(t,Ki(i=(1==e?"Left":2==e?"Middle":"Right")+i,o),o,(function(e){if("string"==typeof e&&(e=ea[e]),!e)return!1;var r=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r=e(t,n)!=H}finally{t.state.suppressEdits=!1}return r}))}(e,o,r,i,t)||(1==o?r?function(t,e,n,r){a?setTimeout(R(Er,t),0):t.curOp.focus=N();var o,i=function(t,e,n){var r=t.getOption("configureMouse"),o=r?r(t,e,n):{};if(null==o.unit){var i=b?n.shiftKey&&n.metaKey:n.altKey;o.unit=i?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==o.extend||t.doc.extend)&&(o.extend=t.doc.extend||n.shiftKey),null==o.addNew&&(o.addNew=y?n.metaKey:n.ctrlKey),null==o.moveOnDrag&&(o.moveOnDrag=!(y?n.altKey:n.ctrlKey)),o}(t,n,r),c=t.doc.sel;t.options.dragDrop&&Ot&&!t.isReadOnly()&&"single"==n&&(o=c.contains(e))>-1&&(ee((o=c.ranges[o]).from(),e)<0||e.xRel>0)&&(ee(o.to(),e)>0||e.xRel<0)?function(t,e,n,r){var o=t.display,i=!1,c=to(t,(function(e){l&&(o.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:xr(t)),ft(o.wrapper.ownerDocument,"mouseup",c),ft(o.wrapper.ownerDocument,"mousemove",u),ft(o.scroller,"dragstart",p),ft(o.scroller,"drop",c),i||(bt(e),r.addNew||$o(t.doc,n,null,null,r.extend),l&&!d||a&&9==s?setTimeout((function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()}),20):o.input.focus())})),u=function(t){i=i||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},p=function(){return i=!0};l&&(o.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,pt(o.wrapper.ownerDocument,"mouseup",c),pt(o.wrapper.ownerDocument,"mousemove",u),pt(o.scroller,"dragstart",p),pt(o.scroller,"drop",c),t.state.delayingBlurEvent=!0,setTimeout((function(){return o.input.focus()}),20),o.scroller.dragDrop&&o.scroller.dragDrop()}(t,r,e,i):function(t,e,n,r){a&&xr(t);var o=t.display,i=t.doc;bt(e);var s,l,c=i.sel,u=c.ranges;if(r.addNew&&!r.extend?(l=i.sel.contains(n),s=l>-1?u[l]:new Co(n,n)):(s=i.sel.primary(),l=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Co(n,n)),n=cr(t,e,!0,!0),l=-1;else{var p=va(t,n,r.unit);s=r.extend?Ko(s,p.anchor,p.head,r.extend):p}r.addNew?-1==l?(l=u.length,ti(i,To(t,u.concat([s]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(ti(i,To(t,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),c=i.sel):Zo(i,l,s,q):(l=0,ti(i,new xo([s],0),q),c=i.sel);var d=n;function f(e){if(0!=ee(d,e))if(d=e,"rectangle"==r.unit){for(var o=[],a=t.options.tabSize,u=B(Gt(i,n.line).text,n.ch,a),p=B(Gt(i,e.line).text,e.ch,a),f=Math.min(u,p),h=Math.max(u,p),g=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=m;g++){var v=Gt(i,g).text,y=W(v,f,a);f==h?o.push(new Co(te(g,y),te(g,y))):v.length>y&&o.push(new Co(te(g,y),te(g,W(v,h,a))))}o.length||o.push(new Co(n,n)),ti(i,To(t,c.ranges.slice(0,l).concat(o),l),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,_=s,w=va(t,e,r.unit),E=_.anchor;ee(w.anchor,E)>0?(b=w.head,E=ie(_.from(),w.anchor)):(b=w.anchor,E=oe(_.to(),w.head));var x=c.ranges.slice(0);x[l]=function(t,e){var n=e.anchor,r=e.head,o=Gt(t.doc,n.line);if(0==ee(n,r)&&n.sticky==r.sticky)return e;var i=ct(o);if(!i)return e;var a=st(i,n.ch,n.sticky),s=i[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var l,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==i.length)return e;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var u=st(i,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);l=u==c-1||u==c?p<0:p>0}var d=i[c+(l?-1:0)],f=l==(1==d.level),h=f?d.from:d.to,g=f?"after":"before";return n.ch==h&&n.sticky==g?e:new Co(new te(n.line,h,g),r)}(t,new Co(se(i,E),b)),ti(i,To(t,x,l),q)}}var h=o.wrapper.getBoundingClientRect(),g=0;function m(e){var n=++g,a=cr(t,e,!0,"rectangle"==r.unit);if(a)if(0!=ee(a,d)){t.curOp.focus=N(),f(a);var s=Sr(o,i);(a.line>=s.to||a.line<s.from)&&setTimeout(to(t,(function(){g==n&&m(e)})),150)}else{var l=e.clientY<h.top?-20:e.clientY>h.bottom?20:0;l&&setTimeout(to(t,(function(){g==n&&(o.scroller.scrollTop+=l,m(e))})),50)}}function v(e){t.state.selectingText=!1,g=1/0,e&&(bt(e),o.input.focus()),ft(o.wrapper.ownerDocument,"mousemove",y),ft(o.wrapper.ownerDocument,"mouseup",b),i.history.lastSelOrigin=null}var y=to(t,(function(t){0!==t.buttons&&Ct(t)?m(t):v(t)})),b=to(t,v);t.state.selectingText=b,pt(o.wrapper.ownerDocument,"mousemove",y),pt(o.wrapper.ownerDocument,"mouseup",b)}(t,r,e,i)}(e,r,i,t):xt(t)==n.scroller&&bt(t):2==o?(r&&$o(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==o&&(x?e.display.input.onContextMenu(t):xr(e)))}}function va(t,e,n){if("char"==n)return new Co(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new Co(te(e.line,0),se(t.doc,te(e.line+1,0)));var r=n(t,e);return new Co(r.from,r.to)}function ya(t,e,n,r){var o,i;if(e.touches)o=e.touches[0].clientX,i=e.touches[0].clientY;else try{o=e.clientX,i=e.clientY}catch(t){return!1}if(o>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&bt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!vt(t,n))return wt(e);i-=s.top-a.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var c=a.gutters.childNodes[l];if(c&&c.getBoundingClientRect().right>=o)return ht(t,n,t,Zt(t.doc,i),t.display.gutterSpecs[l].className,e),wt(e)}}function ba(t,e){return ya(t,e,"gutterClick",!0)}function _a(t,e){En(t.display,e)||function(t,e){return!!vt(t,"gutterContextMenu")&&ya(t,e,"gutterContextMenu",!1)}(t,e)||gt(t,e,"contextmenu")||x||t.display.input.onContextMenu(e)}function wa(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(t)}ga.prototype.compare=function(t,e,n){return this.time+400>t&&0==ee(e,this.pos)&&n==this.button};var Ea={toString:function(){return"CodeMirror.Init"}},xa={},Ca={};function Ta(t,e,n){if(!e!=!(n&&n!=Ea)){var r=t.display.dragFunctions,o=e?pt:ft;o(t.display.scroller,"dragstart",r.start),o(t.display.scroller,"dragenter",r.enter),o(t.display.scroller,"dragover",r.over),o(t.display.scroller,"dragleave",r.leave),o(t.display.scroller,"drop",r.drop)}}function Aa(t){t.options.lineWrapping?(L(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(A(t.display.wrapper,"CodeMirror-wrap"),We(t)),lr(t),pr(t),Un(t),setTimeout((function(){return Hr(t)}),100)}function Oa(t,e){var n=this;if(!(this instanceof Oa))return new Oa(t,e);this.options=e=e?M(e):{},M(xa,e,!1);var r=e.value;"string"==typeof r?r=new ji(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var o=new Oa.inputStyles[e.inputStyle](this),i=this.display=new vo(t,r,o,e);for(var c in i.wrapper.CodeMirror=this,wa(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),zr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},e.autofocus&&!v&&i.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;pt(e.scroller,"mousedown",to(t,ma)),pt(e.scroller,"dblclick",a&&s<11?to(t,(function(e){if(!gt(t,e)){var n=cr(t,e);if(n&&!ba(t,e)&&!En(t.display,e)){bt(e);var r=t.findWordAt(n);$o(t.doc,r.anchor,r.head)}}})):function(e){return gt(t,e)||bt(e)}),pt(e.scroller,"contextmenu",(function(e){return _a(t,e)})),pt(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||_a(t,n)}));var n,r={end:0};function o(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function i(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}function l(t,e){if(null==e.left)return!0;var n=e.left-t.left,r=e.top-t.top;return n*n+r*r>400}pt(e.scroller,"touchstart",(function(o){if(!gt(t,o)&&!i(o)&&!ba(t,o)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==o.touches.length&&(e.activeTouch.left=o.touches[0].pageX,e.activeTouch.top=o.touches[0].pageY)}})),pt(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),pt(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!En(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var i,a=t.coordsChar(e.activeTouch,"page");i=!r.prev||l(r,r.prev)?new Co(a,a):!r.prev.prev||l(r,r.prev.prev)?t.findWordAt(a):new Co(te(a.line,0),se(t.doc,te(a.line+1,0))),t.setSelection(i.anchor,i.head),t.focus(),bt(n)}o()})),pt(e.scroller,"touchcancel",o),pt(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Ir(t,e.scroller.scrollTop),Mr(t,e.scroller.scrollLeft,!0),ht(t,"scroll",t))})),pt(e.scroller,"mousewheel",(function(e){return Eo(t,e)})),pt(e.scroller,"DOMMouseScroll",(function(e){return Eo(t,e)})),pt(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){gt(t,e)||Et(e)},over:function(e){gt(t,e)||(function(t,e){var n=cr(t,e);if(n){var r=document.createDocumentFragment();yr(t,n,r),t.display.dragCursor||(t.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),S(t.display.dragCursor,r)}}(t,e),Et(e))},start:function(e){return function(t,e){if(a&&(!t.state.draggingText||+new Date-Ni<100))Et(e);else if(!gt(t,e)&&!En(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=k("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(t,e)},drop:to(t,Li),leave:function(e){gt(t,e)||Di(t)}};var c=e.input.getField();pt(c,"keyup",(function(e){return pa.call(t,e)})),pt(c,"keydown",to(t,ua)),pt(c,"keypress",to(t,da)),pt(c,"focus",(function(e){return Cr(t,e)})),pt(c,"blur",(function(e){return Tr(t,e)}))}(this),Mi(),Gr(this),this.curOp.forceUpdate=!0,Ro(this,r),e.autofocus&&!v||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Cr(n)}),20):Tr(this),Ca)Ca.hasOwnProperty(c)&&Ca[c](this,e[c],Ea);fo(this),e.finishInit&&e.finishInit(this);for(var u=0;u<Sa.length;++u)Sa[u](this);Yr(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}Oa.defaults=xa,Oa.optionHandlers=Ca;var Sa=[];function ka(t,e,n,r){var o,i=t.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=fe(t,e).state:n="prev");var a=t.options.tabSize,s=Gt(i,e),l=B(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=i.mode.indent(o,s.text.slice(u.length),s.text))==H||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>i.first?B(Gt(i,e-1).text,null,a):0:"add"==n?c=l+t.options.indentUnit:"subtract"==n?c=l-t.options.indentUnit:"number"==typeof n&&(c=l+n),c=Math.max(0,c);var p="",d=0;if(t.options.indentWithTabs)for(var f=Math.floor(c/a);f;--f)d+=a,p+="\t";if(d<c&&(p+=Y(c-d)),p!=u)return gi(i,p,te(e,0),te(e,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<i.sel.ranges.length;h++){var g=i.sel.ranges[h];if(g.head.line==e&&g.head.ch<u.length){var m=te(e,u.length);Zo(i,h,new Co(m,m));break}}}Oa.defineInitHook=function(t){return Sa.push(t)};var Pa=null;function ja(t){Pa=t}function Na(t,e,n,r,o){var i=t.doc;t.display.shift=!1,r||(r=i.sel);var a=+new Date-200,s="paste"==o||t.state.pasteIncoming>a,l=jt(e),c=null;if(s&&r.ranges.length>1)if(Pa&&Pa.text.join("\n")==e){if(r.ranges.length%Pa.text.length==0){c=[];for(var u=0;u<Pa.text.length;u++)c.push(i.splitLines(Pa.text[u]))}}else l.length==r.ranges.length&&t.options.pasteLinesPerSelection&&(c=$(l,(function(t){return[t]})));for(var p=t.curOp.updateInput,d=r.ranges.length-1;d>=0;d--){var f=r.ranges[d],h=f.from(),g=f.to();f.empty()&&(n&&n>0?h=te(h.line,h.ch-n):t.state.overwrite&&!s?g=te(g.line,Math.min(Gt(i,g.line).text.length,g.ch+K(l).length)):s&&Pa&&Pa.lineWise&&Pa.text.join("\n")==l.join("\n")&&(h=g=te(h.line,0)));var m={from:h,to:g,text:c?c[d%c.length]:l,origin:o||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};ui(t.doc,m),ln(t,"inputRead",t,m)}e&&!s&&Da(t,e),jr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=p),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function La(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Jr(e,(function(){return Na(e,n,0,null,"paste")})),!0}function Da(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=t.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s<i.electricChars.length;s++)if(e.indexOf(i.electricChars.charAt(s))>-1){a=ka(t,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Gt(t.doc,o.head.line).text.slice(0,o.head.ch))&&(a=ka(t,o.head.line,"smart"));a&&ln(t,"electricInput",t,o.head.line)}}}function Ia(t){for(var e=[],n=[],r=0;r<t.doc.sel.ranges.length;r++){var o=t.doc.sel.ranges[r].head.line,i={anchor:te(o,0),head:te(o+1,0)};n.push(i),e.push(t.getRange(i.anchor,i.head))}return{text:e,ranges:n}}function Ra(t,e,n,r){t.setAttribute("autocorrect",n?"":"off"),t.setAttribute("autocapitalize",r?"":"off"),t.setAttribute("spellcheck",!!e)}function Ma(){var t=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=k("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),g&&(t.style.border="1px solid black"),Ra(t),e}function Ba(t,e,n,r,o){var i=e,a=n,s=Gt(t,e.line),l=o&&"rtl"==t.direction?-n:n;function c(i){var a,c;if("codepoint"==r){var u=s.text.charCodeAt(e.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var p=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new te(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(p?2:1))),-n)}}else a=o?function(t,e,n,r){var o=ct(e,t.doc.direction);if(!o)return Ji(e,n,r);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=st(o,n.ch,n.sticky),a=o[i];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Ji(e,n,r);var s,l=function(t,n){return Qi(e,t instanceof te?t.ch:t,n)},c=function(n){return t.options.lineWrapping?(s=s||Nn(t,e),Qn(t,e,s,n)):{begin:0,end:e.text.length}},u=c("before"==n.sticky?l(n,-1):n.ch);if("rtl"==t.doc.direction||1==a.level){var p=1==a.level==r<0,d=l(n,p?1:-1);if(null!=d&&(p?d<=a.to&&d<=u.end:d>=a.from&&d>=u.begin)){var f=p?"before":"after";return new te(n.line,d,f)}}var h=function(t,e,r){for(var i=function(t,e){return e?new te(n.line,l(t,1),"before"):new te(n.line,t,"after")};t>=0&&t<o.length;t+=e){var a=o[t],s=e>0==(1!=a.level),c=s?r.begin:l(r.end,-1);if(a.from<=c&&c<a.to)return i(c,s);if(c=s?a.from:l(a.to,-1),r.begin<=c&&c<r.end)return i(c,s)}},g=h(i+r,r,u);if(g)return g;var m=r>0?u.end:l(u.begin,-1);return null==m||r>0&&m==e.text.length||!(g=h(r>0?0:o.length-1,r,c(m)))?null:g}(t.cm,s,e,n):Ji(s,e,n);if(null==a){if(i||((c=e.line+l)<t.first||c>=t.first+t.size||(e=new te(c,e.ch,e.sticky),!(s=Gt(t,c)))))return!1;e=ta(o,t.cm,s,e.line,l)}else e=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,p="group"==r,d=t.cm&&t.cm.getHelper(e,"wordChars"),f=!0;!(n<0)||c(!f);f=!1){var h=s.text.charAt(e.ch)||"\n",g=tt(h,d)?"w":p&&"\n"==h?"n":!p||/\s/.test(h)?null:"p";if(!p||f||g||(g="s"),u&&u!=g){n<0&&(n=1,c(),e.sticky="after");break}if(g&&(u=g),n>0&&!c(!f))break}var m=ai(t,e,i,a,!0);return ne(i,m)&&(m.hitSide=!0),m}function Fa(t,e,n,r){var o,i,a=t.doc,s=e.left;if("page"==r){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(l-.5*rr(t.display),3);o=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(o=n>0?e.bottom+3:e.top-3);for(;(i=Xn(t,s,o)).outside;){if(n<0?o<=0:o>=a.height){i.hitSide=!0;break}o+=5*n}return i}var Ua=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ha(t,e){var n=jn(t,e.line);if(!n||n.hidden)return null;var r=Gt(t.doc,e.line),o=kn(n,r,e.line),i=ct(r,t.doc.direction),a="left";i&&(a=st(i,e.ch)%2?"right":"left");var s=Rn(o.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Va(t,e){return e&&(t.bad=!0),t}function qa(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Va(t.clipPos(te(t.display.viewTo-1)),!0);e=null,n=0}else for(r=e;;r=r.parentNode){if(!r||r==t.display.lineDiv)return null;if(r.parentNode&&r.parentNode==t.display.lineDiv)break}for(var o=0;o<t.display.view.length;o++){var i=t.display.view[o];if(i.node==r)return za(i,e,n)}}function za(t,e,n){var r=t.text.firstChild,o=!1;if(!e||!j(r,e))return Va(te(Xt(t.line),0),!0);if(e==r&&(o=!0,e=r.childNodes[n],n=0,!e)){var i=t.rest?K(t.rest):t.line;return Va(te(Xt(i),i.text.length),o)}var a=3==e.nodeType?e:null,s=e;for(a||1!=e.childNodes.length||3!=e.firstChild.nodeType||(a=e.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=t.measure,c=l.maps;function u(e,n,r){for(var o=-1;o<(c?c.length:0);o++)for(var i=o<0?l.map:c[o],a=0;a<i.length;a+=3){var s=i[a+2];if(s==e||s==n){var u=Xt(o<0?t.line:t.rest[o]),p=i[a]+r;return(r<0||s!=e)&&(p=i[a+(r?1:0)]),te(u,p)}}}var p=u(a,s,n);if(p)return Va(p,o);for(var d=s.nextSibling,f=a?a.nodeValue.length-n:0;d;d=d.nextSibling){if(p=u(d,d.firstChild,0))return Va(te(p.line,p.ch-f),o);f+=d.textContent.length}for(var h=s.previousSibling,g=n;h;h=h.previousSibling){if(p=u(h,h.firstChild,-1))return Va(te(p.line,p.ch+g),o);g+=h.textContent.length}}Ua.prototype.init=function(t){var e=this,n=this,r=n.cm,o=n.div=t.lineDiv;function i(t){for(var e=t.target;e;e=e.parentNode){if(e==o)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function a(t){if(i(t)&&!gt(r,t)){if(r.somethingSelected())ja({lineWise:!1,text:r.getSelections()}),"cut"==t.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var e=Ia(r);ja({lineWise:!0,text:e.text}),"cut"==t.type&&r.operation((function(){r.setSelections(e.ranges,0,V),r.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var a=Pa.text.join("\n");if(t.clipboardData.setData("Text",a),t.clipboardData.getData("Text")==a)return void t.preventDefault()}var s=Ma(),l=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=Pa.text.join("\n");var c=N();I(l),setTimeout((function(){r.display.lineSpace.removeChild(s),c.focus(),c==o&&n.showPrimarySelection()}),50)}}o.contentEditable=!0,Ra(o,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pt(o,"paste",(function(t){!i(t)||gt(r,t)||La(t,r)||s<=11&&setTimeout(to(r,(function(){return e.updateFromDOM()})),20)})),pt(o,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),pt(o,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),pt(o,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),pt(o,"touchstart",(function(){return n.forceCompositionEnd()})),pt(o,"input",(function(){e.composing||e.readFromDOMSoon()})),pt(o,"copy",a),pt(o,"cut",a)},Ua.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},Ua.prototype.prepareSelection=function(){var t=vr(this.cm,!1);return t.focus=N()==this.div,t},Ua.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},Ua.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ua.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,r=e.doc.sel.primary(),o=r.from(),i=r.to();if(e.display.viewTo==e.display.viewFrom||o.line>=e.display.viewTo||i.line<e.display.viewFrom)t.removeAllRanges();else{var a=qa(e,t.anchorNode,t.anchorOffset),s=qa(e,t.focusNode,t.focusOffset);if(!a||a.bad||!s||s.bad||0!=ee(ie(a,s),o)||0!=ee(oe(a,s),i)){var l=e.display.view,c=o.line>=e.display.viewFrom&&Ha(e,o)||{node:l[0].measure.map[2],offset:0},u=i.line<e.display.viewTo&&Ha(e,i);if(!u){var p=l[l.length-1].measure,d=p.maps?p.maps[p.maps.length-1]:p.map;u={node:d[d.length-1],offset:d[d.length-2]-d[d.length-3]}}if(c&&u){var f,h=t.rangeCount&&t.getRangeAt(0);try{f=T(c.node,c.offset,u.offset,u.node)}catch(t){}f&&(!n&&e.state.focused?(t.collapse(c.node,c.offset),f.collapsed||(t.removeAllRanges(),t.addRange(f))):(t.removeAllRanges(),t.addRange(f)),h&&null==t.anchorNode?t.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},Ua.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},Ua.prototype.showMultipleSelections=function(t){S(this.cm.display.cursorDiv,t.cursors),S(this.cm.display.selectionDiv,t.selection)},Ua.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},Ua.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return j(this.div,e)},Ua.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&N()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ua.prototype.blur=function(){this.div.blur()},Ua.prototype.getField=function(){return this.div},Ua.prototype.supportsTouch=function(){return!0},Ua.prototype.receivedFocus=function(){var t=this,e=this;this.selectionInEditor()?setTimeout((function(){return t.pollSelection()}),20):Jr(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},Ua.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},Ua.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(m&&u&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=qa(e,t.anchorNode,t.anchorOffset),r=qa(e,t.focusNode,t.focusOffset);n&&r&&Jr(e,(function(){ti(e.doc,Ao(n,r),V),(n.bad||r.bad)&&(e.curOp.selectionChanged=!0)}))}}},Ua.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,n,r=this.cm,o=r.display,i=r.doc.sel.primary(),a=i.from(),s=i.to();if(0==a.ch&&a.line>r.firstLine()&&(a=te(a.line-1,Gt(r.doc,a.line-1).length)),s.ch==Gt(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=te(s.line+1,0)),a.line<o.viewFrom||s.line>o.viewTo-1)return!1;a.line==o.viewFrom||0==(t=ur(r,a.line))?(e=Xt(o.view[0].line),n=o.view[0].node):(e=Xt(o.view[t].line),n=o.view[t-1].node.nextSibling);var l,c,u=ur(r,s.line);if(u==o.view.length-1?(l=o.viewTo-1,c=o.lineDiv.lastChild):(l=Xt(o.view[u+1].line)-1,c=o.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(function(t,e,n,r,o){var i="",a=!1,s=t.doc.lineSeparator(),l=!1;function c(){a&&(i+=s,l&&(i+=s),a=l=!1)}function u(t){t&&(c(),i+=t)}function p(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void u(n);var i,d=e.getAttribute("cm-marker");if(d){var f=t.findMarks(te(r,0),te(o+1,0),(m=+d,function(t){return t.id==m}));return void(f.length&&(i=f[0].find(0))&&u(Yt(t.doc,i.from,i.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;h&&c();for(var g=0;g<e.childNodes.length;g++)p(e.childNodes[g]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),h&&(a=!0)}else 3==e.nodeType&&u(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var m}for(;p(e),e!=n;)e=e.nextSibling,l=!1;return i}(r,n,c,e,l)),d=Yt(r.doc,te(e,0),te(l,Gt(r.doc,l).text.length));p.length>1&&d.length>1;)if(K(p)==K(d))p.pop(),d.pop(),l--;else{if(p[0]!=d[0])break;p.shift(),d.shift(),e++}for(var f=0,h=0,g=p[0],m=d[0],v=Math.min(g.length,m.length);f<v&&g.charCodeAt(f)==m.charCodeAt(f);)++f;for(var y=K(p),b=K(d),_=Math.min(y.length-(1==p.length?f:0),b.length-(1==d.length?f:0));h<_&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==p.length&&1==d.length&&e==a.line)for(;f&&f>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)f--,h++;p[p.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(f).replace(/\u200b+$/,"");var w=te(e,f),E=te(l,d.length?K(d).length-h:0);return p.length>1||p[0]||ee(w,E)?(gi(r.doc,p,w,E,"+input"),!0):void 0},Ua.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ua.prototype.reset=function(){this.forceCompositionEnd()},Ua.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ua.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Ua.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Jr(this.cm,(function(){return pr(t.cm)}))},Ua.prototype.setUneditable=function(t){t.contentEditable="false"},Ua.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||to(this.cm,Na)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Ua.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Ua.prototype.onContextMenu=function(){},Ua.prototype.resetPosition=function(){},Ua.prototype.needsContentAttribute=!0;var Wa=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};Wa.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var o=this.textarea;function i(t){if(!gt(r,t)){if(r.somethingSelected())ja({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Ia(r);ja({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,V):(n.prevInput="",o.value=e.text.join("\n"),I(o))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(o.style.width="0px"),pt(o,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),pt(o,"paste",(function(t){gt(r,t)||La(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pt(o,"cut",i),pt(o,"copy",i),pt(t.scroller,"paste",(function(e){if(!En(t,e)&&!gt(r,e)){if(!o.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=e.clipboardData,o.dispatchEvent(i)}})),pt(t.lineSpace,"selectstart",(function(e){En(t,e)||bt(e)})),pt(o,"compositionstart",(function(){var t=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:r.markText(t,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pt(o,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Wa.prototype.createField=function(t){this.wrapper=Ma(),this.textarea=this.wrapper.firstChild},Wa.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Wa.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=vr(t);if(t.options.moveInputWithCursor){var o=Yn(t,n.sel.primary().head,"div"),i=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},Wa.prototype.showSelection=function(t){var e=this.cm.display;S(e.cursorDiv,t.cursors),S(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Wa.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&I(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Wa.prototype.getField=function(){return this.textarea},Wa.prototype.supportsTouch=function(){return!1},Wa.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!v||N()!=this.textarea))try{this.textarea.focus()}catch(t){}},Wa.prototype.blur=function(){this.textarea.blur()},Wa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wa.prototype.receivedFocus=function(){this.slowPoll()},Wa.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Wa.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},Wa.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Nt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var o=n.value;if(o==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===o||y&&/[\uf700-\uf7ff]/.test(o))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var l=0,c=Math.min(r.length,o.length);l<c&&r.charCodeAt(l)==o.charCodeAt(l);)++l;return Jr(e,(function(){Na(e,o.slice(l),r.length-l,null,t.composing?"*compose":null),o.length>1e3||o.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=o,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Wa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wa.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Wa.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,o=e.textarea;e.contextMenuPending&&e.contextMenuPending();var i=cr(n,t),c=r.scroller.scrollTop;if(i&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&to(n,ti)(n.doc,Ao(i),V);var u,d=o.style.cssText,f=e.wrapper.style.cssText,h=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",o.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(t.clientY-h.top-5)+"px; left: "+(t.clientX-h.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(u=window.scrollY),r.input.focus(),l&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(o.value=e.prevInput=" "),e.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),x){Et(t);var g=function(){ft(window,"mouseup",g),setTimeout(v,20)};pt(window,"mouseup",g)}else setTimeout(v,50)}function m(){if(null!=o.selectionStart){var t=n.somethingSelected(),i="​"+(t?o.value:"");o.value="⇚",o.value=i,e.prevInput=t?"":"​",o.selectionStart=1,o.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function v(){if(e.contextMenuPending==v&&(e.contextMenuPending=!1,e.wrapper.style.cssText=f,o.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=o.selectionStart)){(!a||a&&s<9)&&m();var t=0,i=function(){r.selForContextMenu==n.doc.sel&&0==o.selectionStart&&o.selectionEnd>0&&"​"==e.prevInput?to(n,li)(n):t++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},Wa.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},Wa.prototype.setUneditable=function(){},Wa.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,o,i){t.defaults[n]=r,o&&(e[n]=i?function(t,e,n){n!=Ea&&o(t,e,n)}:o)}t.defineOption=n,t.Init=Ea,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,jo(t)}),!0),n("indentUnit",2,jo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){No(t),Un(t),pr(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],r=t.doc.first;t.doc.iter((function(t){for(var o=0;;){var i=t.text.indexOf(e,o);if(-1==i)break;o=i+e.length,n.push(te(r,i))}r++}));for(var o=n.length-1;o>=0;o--)gi(t.doc,e,n[o],te(n[o].line,n[o].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=Ea&&t.refresh()})),n("specialCharPlaceholder",Qe,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",v?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!_),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){wa(t),mo(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Xi(e),o=n!=Ea&&Xi(n);o&&o.detach&&o.detach(t,r),r.attach&&r.attach(t,o||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Aa,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=ho(e,t.options.lineNumbers),mo(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?ar(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Hr(t)}),!0),n("scrollbarStyle","native",(function(t){zr(t),Hr(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=ho(t.options.gutters,e),mo(t)}),!0),n("firstLineNumber",1,mo,!0),n("lineNumberFormatter",(function(t){return t}),mo,!0),n("showCursorWhenSelecting",!1,mr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Tr(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Ta),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,mr,!0),n("singleCursorHeightPerLine",!0,mr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,No,!0),n("addModeClass",!1,No,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,No,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(Oa),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var r=this.options,o=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&to(this,e[t])(this,n,o),ht(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Xi(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;n<e.length;++n)if(e[n]==t||e[n].name==t)return e.splice(n,1),!0},addOverlay:eo((function(e,n){var r=e.token?e:t.getMode(this.options,e);if(r.startState)throw new Error("Overlays may not be stateful.");(function(t,e,n){for(var r=0,o=n(e);r<t.length&&n(t[r])<=o;)r++;t.splice(r,0,e)})(this.state.overlays,{mode:r,modeSpec:e,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(t){return t.priority})),this.state.modeGen++,pr(this)})),removeOverlay:eo((function(t){for(var e=this.state.overlays,n=0;n<e.length;++n){var r=e[n].modeSpec;if(r==t||"string"==typeof t&&r.name==t)return e.splice(n,1),this.state.modeGen++,void pr(this)}})),indentLine:eo((function(t,e,n){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),Qt(this.doc,t)&&ka(this,t,e,n)})),indentSelection:eo((function(t){for(var e=this.doc.sel.ranges,n=-1,r=0;r<e.length;r++){var o=e[r];if(o.empty())o.head.line>n&&(ka(this,o.head.line,t,!0),n=o.head.line,r==this.doc.sel.primIndex&&jr(this));else{var i=o.from(),a=o.to(),s=Math.max(n,i.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)ka(this,l,t);var c=this.doc.sel.ranges;0==i.ch&&e.length==c.length&&c[r].from().ch>0&&Zo(this.doc,r,new Co(i,c[r].to()),V)}}})),getTokenAt:function(t,e){return ye(this,t,e)},getLineTokens:function(t,e){return ye(this,te(t),e,!0)},getTokenTypeAt:function(t){t=se(this.doc,t);var e,n=de(this,Gt(this.doc,t.line)),r=0,o=(n.length-1)/2,i=t.ch;if(0==i)e=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]<i)){e=n[2*a+2];break}r=a+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var n=this.doc.mode;return n.innerMode?t.innerMode(n,this.getTokenAt(e).state).mode:n},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var r=[];if(!n.hasOwnProperty(e))return r;var o=n[e],i=this.getModeAt(t);if("string"==typeof i[e])o[i[e]]&&r.push(o[i[e]]);else if(i[e])for(var a=0;a<i[e].length;a++){var s=o[i[e][a]];s&&r.push(s)}else i.helperType&&o[i.helperType]?r.push(o[i.helperType]):o[i.name]&&r.push(o[i.name]);for(var l=0;l<o._global.length;l++){var c=o._global[l];c.pred(i,this)&&-1==U(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(t,e){var n=this.doc;return fe(this,(t=ae(n,null==t?n.first+n.size-1:t))+1,e).state},cursorCoords:function(t,e){var n=this.doc.sel.primary();return Yn(this,null==t?n.head:"object"==typeof t?se(this.doc,t):t?n.from():n.to(),e||"page")},charCoords:function(t,e){return Gn(this,se(this.doc,t),e||"page")},coordsChar:function(t,e){return Xn(this,(t=Wn(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=Wn(this,{top:t,left:0},e||"page").top,Zt(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,n){var r,o=!1;if("number"==typeof t){var i=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>i&&(t=i,o=!0),r=Gt(this.doc,t)}else r=t;return zn(this,r,{top:0,left:0},e||"page",n||o).top+(o?this.doc.height-qe(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,r,o){var i,a,s,l=this.display,c=(t=Yn(this,se(this.doc,t))).bottom,u=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==r)c=t.top;else if("above"==r||"near"==r){var p=Math.max(l.wrapper.clientHeight,this.doc.height),d=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>p)&&t.top>e.offsetHeight?c=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=p&&(c=t.bottom),u+e.offsetWidth>d&&(u=d-e.offsetWidth)}e.style.top=c+"px",e.style.left=e.style.right="","right"==o?(u=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==o?u=0:"middle"==o&&(u=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=u+"px"),n&&(i=this,a={left:u,top:c,right:u+e.offsetWidth,bottom:c+e.offsetHeight},null!=(s=kr(i,a)).scrollTop&&Ir(i,s.scrollTop),null!=s.scrollLeft&&Mr(i,s.scrollLeft))},triggerOnKeyDown:eo(ua),triggerOnKeyPress:eo(da),triggerOnKeyUp:pa,triggerOnMouseDown:eo(ma),execCommand:function(t){if(ea.hasOwnProperty(t))return ea[t].call(null,this)},triggerElectric:eo((function(t){Da(this,t)})),findPosH:function(t,e,n,r){var o=1;e<0&&(o=-1,e=-e);for(var i=se(this.doc,t),a=0;a<e&&!(i=Ba(this.doc,i,o,n,r)).hitSide;++a);return i},moveH:eo((function(t,e){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ba(n.doc,r.head,t,e,n.options.rtlMoveVisually):t<0?r.from():r.to()}),z)})),deleteH:eo((function(t,e){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Zi(this,(function(n){var o=Ba(r,n.head,t,e,!1);return t<0?{from:o,to:n.head}:{from:n.head,to:o}}))})),findPosV:function(t,e,n,r){var o=1,i=r;e<0&&(o=-1,e=-e);for(var a=se(this.doc,t),s=0;s<e;++s){var l=Yn(this,a,"div");if(null==i?i=l.left:l.left=i,(a=Fa(this,l,o,n)).hitSide)break}return a},moveV:eo((function(t,e){var n=this,r=this.doc,o=[],i=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(i)return t<0?a.from():a.to();var s=Yn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),o.push(s.left);var l=Fa(n,s,t,e);return"page"==e&&a==r.sel.primary()&&Pr(n,Gn(n,l,"div").top-s.top),l}),z),o.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=o[a]})),findWordAt:function(t){var e=Gt(this.doc,t.line).text,n=t.ch,r=t.ch;if(e){var o=this.getHelper(t,"wordChars");"before"!=t.sticky&&r!=e.length||!n?++r:--n;for(var i=e.charAt(n),a=tt(i,o)?function(t){return tt(t,o)}:/\s/.test(i)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!tt(t)};n>0&&a(e.charAt(n-1));)--n;for(;r<e.length&&a(e.charAt(r));)++r}return new Co(te(t.line,n),te(t.line,r))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?L(this.display.cursorDiv,"CodeMirror-overwrite"):A(this.display.cursorDiv,"CodeMirror-overwrite"),ht(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==N()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:eo((function(t,e){Nr(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-An(this)-this.display.barHeight,width:t.scrollWidth-An(this)-this.display.barWidth,clientHeight:Sn(this),clientWidth:On(this)}},scrollIntoView:eo((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:te(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){Lr(t),t.curOp.scrollToPos=e}(this,t):Dr(this,t.from,t.to,t.margin)})),setSize:eo((function(t,e){var n=this,r=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=r(t)),null!=e&&(this.display.wrapper.style.height=r(e)),this.options.lineWrapping&&Fn(this);var o=this.display.viewFrom;this.doc.iter(o,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){dr(n,o,"widget");break}++o})),this.curOp.forceUpdate=!0,ht(this,"refresh",this)})),operation:function(t){return Jr(this,t)},startOperation:function(){return Gr(this)},endOperation:function(){return Yr(this)},refresh:eo((function(){var t=this.display.cachedTextHeight;pr(this),this.curOp.forceUpdate=!0,Un(this),Nr(this,this.doc.scrollLeft,this.doc.scrollTop),co(this.display),(null==t||Math.abs(t-rr(this.display))>.5||this.options.lineWrapping)&&lr(this),ht(this,"refresh",this)})),swapDoc:eo((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Ro(this,t),Un(this),this.display.input.reset(),Nr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,ln(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},yt(t),t.registerHelper=function(e,r,o){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=o},t.registerGlobalHelper=function(e,r,o,i){t.registerHelper(e,r,i),n[e]._global.push({pred:o,val:i})}}(Oa);var Ga="iter insert remove copy getEditor constructor".split(" ");for(var Ya in ji.prototype)ji.prototype.hasOwnProperty(Ya)&&U(Ga,Ya)<0&&(Oa.prototype[Ya]=function(t){return function(){return t.apply(this.doc,arguments)}}(ji.prototype[Ya]));return yt(ji),Oa.inputStyles={textarea:Wa,contenteditable:Ua},Oa.defineMode=function(t){Oa.defaults.mode||"null"==t||(Oa.defaults.mode=t),Mt.apply(this,arguments)},Oa.defineMIME=function(t,e){Rt[t]=e},Oa.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Oa.defineMIME("text/plain","null"),Oa.defineExtension=function(t,e){Oa.prototype[t]=e},Oa.defineDocExtension=function(t,e){ji.prototype[t]=e},Oa.fromTextArea=function(t,e){if((e=e?M(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=N();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var o;if(t.form&&(pt(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var i=t.form;o=i.submit;try{var a=i.submit=function(){r(),i.submit=o,i.submit(),i.submit=a}}catch(t){}}e.finishInit=function(n){n.save=r,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,r(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(ft(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=o))}},t.style.display="none";var s=Oa((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=ft,t.on=pt,t.wheelEventPixels=wo,t.Doc=ji,t.splitLines=jt,t.countColumn=B,t.findColumn=W,t.isWordChar=J,t.Pass=H,t.signal=ht,t.Line=Ge,t.changeEnd=Oo,t.scrollbarModel=qr,t.Pos=te,t.cmpPos=ee,t.modes=It,t.mimeModes=Rt,t.resolveMode=Bt,t.getMode=Ft,t.modeExtensions=Ut,t.extendMode=Ht,t.copyState=Vt,t.startState=zt,t.innerMode=qt,t.commands=ea,t.keyMap=qi,t.keyName=$i,t.isModifierKey=Yi,t.lookupKey=Gi,t.normalizeKeyMap=Wi,t.StringStream=Wt,t.SharedTextMarker=Oi,t.TextMarker=Ti,t.LineWidget=Ei,t.e_preventDefault=bt,t.e_stopPropagation=_t,t.e_stop=Et,t.addClass=L,t.contains=j,t.rmClass=A,t.keyNames=Fi}(Oa),Oa.version="5.63.0",Oa}()},7389:(t,e,n)=>{!function(t){function e(t){for(var e={},n=0;n<t.length;++n)e[t[n].toLowerCase()]=!0;return e}t.defineMode("css",(function(e,n){var r=n.inline;n.propertyKeywords||(n=t.resolveMode("text/css"));var o,i,a=e.indentUnit,s=n.tokenHooks,l=n.documentTypes||{},c=n.mediaTypes||{},u=n.mediaFeatures||{},p=n.mediaValueKeywords||{},d=n.propertyKeywords||{},f=n.nonStandardPropertyKeywords||{},h=n.fontProperties||{},g=n.counterDescriptors||{},m=n.colorKeywords||{},v=n.valueKeywords||{},y=n.allowNested,b=n.lineComment,_=!0===n.supportsAtComponent,w=!1!==e.highlightNonStandardPropertyKeywords;function E(t,e){return o=e,t}function x(t,e){var n=t.next();if(s[n]){var r=s[n](t,e);if(!1!==r)return r}return"@"==n?(t.eatWhile(/[\w\\\-]/),E("def",t.current())):"="==n||("~"==n||"|"==n)&&t.eat("=")?E(null,"compare"):'"'==n||"'"==n?(e.tokenize=C(n),e.tokenize(t,e)):"#"==n?(t.eatWhile(/[\w\\\-]/),E("atom","hash")):"!"==n?(t.match(/^\s*\w*/),E("keyword","important")):/\d/.test(n)||"."==n&&t.eat(/\d/)?(t.eatWhile(/[\w.%]/),E("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?E(null,"select-op"):"."==n&&t.match(/^-?[_a-z][_a-z0-9-]*/i)?E("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?E(null,n):t.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(t.current())&&(e.tokenize=T),E("variable callee","variable")):/[\w\\\-]/.test(n)?(t.eatWhile(/[\w\\\-]/),E("property","word")):E(null,null):/[\d.]/.test(t.peek())?(t.eatWhile(/[\w.%]/),E("number","unit")):t.match(/^-[\w\\\-]*/)?(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?E("variable-2","variable-definition"):E("variable-2","variable")):t.match(/^\w+-/)?E("meta","meta"):void 0}function C(t){return function(e,n){for(var r,o=!1;null!=(r=e.next());){if(r==t&&!o){")"==t&&e.backUp(1);break}o=!o&&"\\"==r}return(r==t||!o&&")"!=t)&&(n.tokenize=null),E("string","string")}}function T(t,e){return t.next(),t.match(/^\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=C(")"),E(null,"(")}function A(t,e,n){this.type=t,this.indent=e,this.prev=n}function O(t,e,n,r){return t.context=new A(n,e.indentation()+(!1===r?0:a),t.context),n}function S(t){return t.context.prev&&(t.context=t.context.prev),t.context.type}function k(t,e,n){return N[n.context.type](t,e,n)}function P(t,e,n,r){for(var o=r||1;o>0;o--)n.context=n.context.prev;return k(t,e,n)}function j(t){var e=t.current().toLowerCase();i=v.hasOwnProperty(e)?"atom":m.hasOwnProperty(e)?"keyword":"variable"}var N={top:function(t,e,n){if("{"==t)return O(n,e,"block");if("}"==t&&n.context.prev)return S(n);if(_&&/@component/i.test(t))return O(n,e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(t))return O(n,e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(t))return O(n,e,"atBlock");if(/^@(font-face|counter-style)/i.test(t))return n.stateArg=t,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(t))return"keyframes";if(t&&"@"==t.charAt(0))return O(n,e,"at");if("hash"==t)i="builtin";else if("word"==t)i="tag";else{if("variable-definition"==t)return"maybeprop";if("interpolation"==t)return O(n,e,"interpolation");if(":"==t)return"pseudo";if(y&&"("==t)return O(n,e,"parens")}return n.context.type},block:function(t,e,n){if("word"==t){var r=e.current().toLowerCase();return d.hasOwnProperty(r)?(i="property","maybeprop"):f.hasOwnProperty(r)?(i=w?"string-2":"property","maybeprop"):y?(i=e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(i+=" error","maybeprop")}return"meta"==t?"block":y||"hash"!=t&&"qualifier"!=t?N.top(t,e,n):(i="error","block")},maybeprop:function(t,e,n){return":"==t?O(n,e,"prop"):k(t,e,n)},prop:function(t,e,n){if(";"==t)return S(n);if("{"==t&&y)return O(n,e,"propBlock");if("}"==t||"{"==t)return P(t,e,n);if("("==t)return O(n,e,"parens");if("hash"!=t||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(e.current())){if("word"==t)j(e);else if("interpolation"==t)return O(n,e,"interpolation")}else i+=" error";return"prop"},propBlock:function(t,e,n){return"}"==t?S(n):"word"==t?(i="property","maybeprop"):n.context.type},parens:function(t,e,n){return"{"==t||"}"==t?P(t,e,n):")"==t?S(n):"("==t?O(n,e,"parens"):"interpolation"==t?O(n,e,"interpolation"):("word"==t&&j(e),"parens")},pseudo:function(t,e,n){return"meta"==t?"pseudo":"word"==t?(i="variable-3",n.context.type):k(t,e,n)},documentTypes:function(t,e,n){return"word"==t&&l.hasOwnProperty(e.current())?(i="tag",n.context.type):N.atBlock(t,e,n)},atBlock:function(t,e,n){if("("==t)return O(n,e,"atBlock_parens");if("}"==t||";"==t)return P(t,e,n);if("{"==t)return S(n)&&O(n,e,y?"block":"top");if("interpolation"==t)return O(n,e,"interpolation");if("word"==t){var r=e.current().toLowerCase();i="only"==r||"not"==r||"and"==r||"or"==r?"keyword":c.hasOwnProperty(r)?"attribute":u.hasOwnProperty(r)?"property":p.hasOwnProperty(r)?"keyword":d.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?w?"string-2":"property":v.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(t,e,n){return"}"==t?P(t,e,n):"{"==t?S(n)&&O(n,e,y?"block":"top",!1):("word"==t&&(i="error"),n.context.type)},atBlock_parens:function(t,e,n){return")"==t?S(n):"{"==t||"}"==t?P(t,e,n,2):N.atBlock(t,e,n)},restricted_atBlock_before:function(t,e,n){return"{"==t?O(n,e,"restricted_atBlock"):"word"==t&&"@counter-style"==n.stateArg?(i="variable","restricted_atBlock_before"):k(t,e,n)},restricted_atBlock:function(t,e,n){return"}"==t?(n.stateArg=null,S(n)):"word"==t?(i="@font-face"==n.stateArg&&!h.hasOwnProperty(e.current().toLowerCase())||"@counter-style"==n.stateArg&&!g.hasOwnProperty(e.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(t,e,n){return"word"==t?(i="variable","keyframes"):"{"==t?O(n,e,"top"):k(t,e,n)},at:function(t,e,n){return";"==t?S(n):"{"==t||"}"==t?P(t,e,n):("word"==t?i="tag":"hash"==t&&(i="builtin"),"at")},interpolation:function(t,e,n){return"}"==t?S(n):"{"==t||";"==t?P(t,e,n):("word"==t?i="variable":"variable"!=t&&"("!=t&&")"!=t&&(i="error"),"interpolation")}};return{startState:function(t){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new A(r?"block":"top",t||0,null)}},token:function(t,e){if(!e.tokenize&&t.eatSpace())return null;var n=(e.tokenize||x)(t,e);return n&&"object"==typeof n&&(o=n[1],n=n[0]),i=n,"comment"!=o&&(e.state=N[e.state](o,t,e)),i},indent:function(t,e){var n=t.context,r=e&&e.charAt(0),o=n.indent;return"prop"!=n.type||"}"!=r&&")"!=r||(n=n.prev),n.prev&&("}"!=r||"block"!=n.type&&"top"!=n.type&&"interpolation"!=n.type&&"restricted_atBlock"!=n.type?(")"!=r||"parens"!=n.type&&"atBlock_parens"!=n.type)&&("{"!=r||"at"!=n.type&&"atBlock"!=n.type)||(o=Math.max(0,n.indent-a)):o=(n=n.prev).indent),o},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:b,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=e(n),o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],i=e(o),a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme"],s=e(a),l=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],c=e(l),u=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],p=e(u),d=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],f=e(d),h=e(["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"]),g=e(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),m=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],v=e(m),y=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],b=e(y),_=n.concat(o).concat(a).concat(l).concat(u).concat(d).concat(m).concat(y);function w(t,e){for(var n,r=!1;null!=(n=t.next());){if(r&&"/"==n){e.tokenize=null;break}r="*"==n}return["comment","comment"]}t.registerHelper("hintWords","css",_),t.defineMIME("text/css",{documentTypes:r,mediaTypes:i,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:h,counterDescriptors:g,colorKeywords:v,valueKeywords:b,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=w,w(t,e)):["operator","operator"]},":":function(t){return!!t.match(/^\s*\{/,!1)&&[null,null]},$:function(t){return t.match(/^[\w-]+/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(t){return!!t.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),t.defineMIME("text/x-less",{mediaTypes:i,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:p,nonStandardPropertyKeywords:f,colorKeywords:v,valueKeywords:b,fontProperties:h,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(t,e){return t.eat("/")?(t.skipToEnd(),["comment","comment"]):t.eat("*")?(e.tokenize=w,w(t,e)):["operator","operator"]},"@":function(t){return t.eat("{")?[null,"interpolation"]:!t.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),t.defineMIME("text/x-gss",{documentTypes:r,mediaTypes:i,mediaFeatures:s,propertyKeywords:p,nonStandardPropertyKeywords:f,fontProperties:h,counterDescriptors:g,colorKeywords:v,valueKeywords:b,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css",helperType:"gss"})}(n(4408))},8253:(t,e,n)=>{!function(t){var e={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};var n={};function r(t,e){var r=t.match(function(t){return n[t]||(n[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(e));return r?/^\s*(.*?)\s*$/.exec(r[2])[1]:""}function o(t,e){return new RegExp((e?"^":"")+"</s*"+t+"s*>","i")}function i(t,e){for(var n in t)for(var r=e[n]||(e[n]=[]),o=t[n],i=o.length-1;i>=0;i--)r.unshift(o[i])}t.defineMode("htmlmixed",(function(n,a){var s=t.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag,allowMissingTagName:a.allowMissingTagName}),l={},c=a&&a.tags,u=a&&a.scriptTypes;if(i(e,l),c&&i(c,l),u)for(var p=u.length-1;p>=0;p--)l.script.unshift(["type",u[p].matches,u[p].mode]);function d(e,i){var a,c=s.token(e,i.htmlState),u=/\btag\b/.test(c);if(u&&!/[<>\s\/]/.test(e.current())&&(a=i.htmlState.tagName&&i.htmlState.tagName.toLowerCase())&&l.hasOwnProperty(a))i.inTag=a+" ";else if(i.inTag&&u&&/>$/.test(e.current())){var p=/^([\S]+) (.*)/.exec(i.inTag);i.inTag=null;var f=">"==e.current()&&function(t,e){for(var n=0;n<t.length;n++){var o=t[n];if(!o[0]||o[1].test(r(e,o[0])))return o[2]}}(l[p[1]],p[2]),h=t.getMode(n,f),g=o(p[1],!0),m=o(p[1],!1);i.token=function(t,e){return t.match(g,!1)?(e.token=d,e.localState=e.localMode=null,null):function(t,e,n){var r=t.current(),o=r.search(e);return o>-1?t.backUp(r.length-o):r.match(/<\/?$/)&&(t.backUp(r.length),t.match(e,!1)||t.match(r)),n}(t,m,e.localMode.token(t,e.localState))},i.localMode=h,i.localState=t.startState(h,s.indent(i.htmlState,"",""))}else i.inTag&&(i.inTag+=e.current(),e.eol()&&(i.inTag+=" "));return c}return{startState:function(){return{token:d,inTag:null,localMode:null,localState:null,htmlState:t.startState(s)}},copyState:function(e){var n;return e.localState&&(n=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:n,htmlState:t.copyState(s,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,n,r){return!e.localMode||/^\s*<\//.test(n)?s.indent(e.htmlState,n,r):e.localMode.indent?e.localMode.indent(e.localState,n,r):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||s}}}}),"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")}(n(4408),n(9701),n(6061),n(7389))},6061:(t,e,n)=>{!function(t){t.defineMode("javascript",(function(e,n){var r,o,i=e.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,c=!1!==n.trackScope,u=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),o=t("keyword d"),i=t("operator"),a={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:o,break:o,continue:o,new:t("new"),delete:r,void:r,throw:r,debugger:t("debugger"),var:t("var"),const:t("var"),let:t("var"),function:t("function"),catch:t("catch"),for:t("for"),switch:t("switch"),case:t("case"),default:t("default"),in:i,typeof:i,instanceof:i,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:t("this"),class:t("class"),super:t("atom"),yield:r,export:t("export"),import:t("import"),extends:r,await:r}}(),f=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(t,e,n){return r=t,o=n,e}function m(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,o=!1;if(s&&"@"==t.peek()&&t.match(h))return e.tokenize=m,g("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||o);)o=!o&&"\\"==r;return o||(e.tokenize=m),g("string","string")}),e.tokenize(t,e);if("."==r&&t.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return g("number","number");if("."==r&&t.match(".."))return g("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return g(r);if("="==r&&t.eat(">"))return g("=>","operator");if("0"==r&&t.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return g("number","number");if(/\d/.test(r))return t.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),g("number","number");if("/"==r)return t.eat("*")?(e.tokenize=v,v(t,e)):t.eat("/")?(t.skipToEnd(),g("comment","comment")):Jt(t,e,1)?(function(t){for(var e,n=!1,r=!1;null!=(e=t.next());){if(!n){if("/"==e&&!r)return;"["==e?r=!0:r&&"]"==e&&(r=!1)}n=!n&&"\\"==e}}(t),t.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),g("regexp","string-2")):(t.eat("="),g("operator","operator",t.current()));if("`"==r)return e.tokenize=y,y(t,e);if("#"==r&&"!"==t.peek())return t.skipToEnd(),g("meta","meta");if("#"==r&&t.eatWhile(p))return g("variable","property");if("<"==r&&t.match("!--")||"-"==r&&t.match("->")&&!/\S/.test(t.string.slice(0,t.start)))return t.skipToEnd(),g("comment","comment");if(f.test(r))return">"==r&&e.lexical&&">"==e.lexical.type||(t.eat("=")?"!"!=r&&"="!=r||t.eat("="):/[<>*+\-|&?]/.test(r)&&(t.eat(r),">"==r&&t.eat(r))),"?"==r&&t.eat(".")?g("."):g("operator","operator",t.current());if(p.test(r)){t.eatWhile(p);var o=t.current();if("."!=e.lastType){if(d.propertyIsEnumerable(o)){var i=d[o];return g(i.type,i.style,o)}if("async"==o&&t.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",o)}return g("variable","variable",o)}}function v(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=m;break}r="*"==n}return g("comment","comment")}function y(t,e){for(var n,r=!1;null!=(n=t.next());){if(!r&&("`"==n||"$"==n&&t.eat("{"))){e.tokenize=m;break}r=!r&&"\\"==n}return g("quasi","string-2",t.current())}function b(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(u){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var o=0,i=!1,a=n-1;a>=0;--a){var s=t.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!o){++a;break}if(0==--o){"("==s&&(i=!0);break}}else if(l>=3&&l<6)++o;else if(p.test(s))i=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(t.string.charAt(a-1)==s&&"\\"!=t.string.charAt(a-2)){a--;break}}else if(i&&!o){++a;break}}i&&!o&&(e.fatArrowAt=a)}}var _={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function w(t,e,n,r,o,i){this.indented=t,this.column=e,this.type=n,this.prev=o,this.info=i,null!=r&&(this.align=r)}function E(t,e){if(!c)return!1;for(var n=t.localVars;n;n=n.next)if(n.name==e)return!0;for(var r=t.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==e)return!0}function x(t,e,n,r,o){var i=t.cc;for(C.state=t,C.stream=o,C.marked=null,C.cc=i,C.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((i.length?i.pop():l?V:U)(n,r)){for(;i.length&&i[i.length-1].lex;)i.pop()();return C.marked?C.marked:"variable"==n&&E(t,r)?"variable-2":e}}var C={state:null,column:null,marked:null,cc:null};function T(){for(var t=arguments.length-1;t>=0;t--)C.cc.push(arguments[t])}function A(){return T.apply(null,arguments),!0}function O(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function S(t){var e=C.state;if(C.marked="def",c){if(e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=k(t,e.context);if(null!=r)return void(e.context=r)}else if(!O(t,e.localVars))return void(e.localVars=new N(t,e.localVars));n.globalVars&&!O(t,e.globalVars)&&(e.globalVars=new N(t,e.globalVars))}}function k(t,e){if(e){if(e.block){var n=k(t,e.prev);return n?n==e.prev?e:new j(n,e.vars,!0):null}return O(t,e.vars)?e:new j(e.prev,new N(t,e.vars),!1)}return null}function P(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function j(t,e,n){this.prev=t,this.vars=e,this.block=n}function N(t,e){this.name=t,this.next=e}var L=new N("this",new N("arguments",null));function D(){C.state.context=new j(C.state.context,C.state.localVars,!1),C.state.localVars=L}function I(){C.state.context=new j(C.state.context,C.state.localVars,!0),C.state.localVars=null}function R(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function M(t,e){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var o=n.lexical;o&&")"==o.type&&o.align;o=o.prev)r=o.indented;n.lexical=new w(r,C.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function B(){var t=C.state;t.lexical.prev&&(")"==t.lexical.type&&(t.indented=t.lexical.indented),t.lexical=t.lexical.prev)}function F(t){return function e(n){return n==t?A():";"==t||"}"==n||")"==n||"]"==n?T():A(e)}}function U(t,e){return"var"==t?A(M("vardef",e),Ct,F(";"),B):"keyword a"==t?A(M("form"),z,U,B):"keyword b"==t?A(M("form"),U,B):"keyword d"==t?C.stream.match(/^\s*$/,!1)?A():A(M("stat"),G,F(";"),B):"debugger"==t?A(F(";")):"{"==t?A(M("}"),I,lt,B,R):";"==t?A():"if"==t?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==B&&C.state.cc.pop()(),A(M("form"),z,U,B,Pt)):"function"==t?A(Dt):"for"==t?A(M("form"),I,jt,U,R,B):"class"==t||u&&"interface"==e?(C.marked="keyword",A(M("form","class"==t?t:e),Ft,B)):"variable"==t?u&&"declare"==e?(C.marked="keyword",A(U)):u&&("module"==e||"enum"==e||"type"==e)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==e?A(Zt):"type"==e?A(Rt,F("operator"),ft,F(";")):A(M("form"),Tt,F("{"),M("}"),lt,B,B)):u&&"namespace"==e?(C.marked="keyword",A(M("form"),V,U,B)):u&&"abstract"==e?(C.marked="keyword",A(U)):A(M("stat"),et):"switch"==t?A(M("form"),z,F("{"),M("}","switch"),I,lt,B,B,R):"case"==t?A(V,F(":")):"default"==t?A(F(":")):"catch"==t?A(M("form"),D,H,U,B,R):"export"==t?A(M("stat"),qt,B):"import"==t?A(M("stat"),Wt,B):"async"==t?A(U):"@"==e?A(V,U):T(M("stat"),V,F(";"),B)}function H(t){if("("==t)return A(Mt,F(")"))}function V(t,e){return W(t,e,!1)}function q(t,e){return W(t,e,!0)}function z(t){return"("!=t?T():A(M(")"),G,F(")"),B)}function W(t,e,n){if(C.state.fatArrowAt==C.stream.start){var r=n?Q:Z;if("("==t)return A(D,M(")"),at(Mt,")"),B,F("=>"),r,R);if("variable"==t)return T(D,Tt,F("=>"),r,R)}var o=n?K:Y;return _.hasOwnProperty(t)?A(o):"function"==t?A(Dt,o):"class"==t||u&&"interface"==e?(C.marked="keyword",A(M("form"),Bt,B)):"keyword c"==t||"async"==t?A(n?q:V):"("==t?A(M(")"),G,F(")"),B,o):"operator"==t||"spread"==t?A(n?q:V):"["==t?A(M("]"),Xt,B,o):"{"==t?st(rt,"}",null,o):"quasi"==t?T($,o):"new"==t?A(function(t){return function(e){return"."==e?A(t?tt:J):"variable"==e&&u?A(wt,t?K:Y):T(t?q:V)}}(n)):A()}function G(t){return t.match(/[;\}\)\],]/)?T():T(V)}function Y(t,e){return","==t?A(G):K(t,e,!1)}function K(t,e,n){var r=0==n?Y:K,o=0==n?V:q;return"=>"==t?A(D,n?Q:Z,R):"operator"==t?/\+\+|--/.test(e)||u&&"!"==e?A(r):u&&"<"==e&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?A(M(">"),at(ft,">"),B,r):"?"==e?A(V,F(":"),o):A(o):"quasi"==t?T($,r):";"!=t?"("==t?st(q,")","call",r):"."==t?A(nt,r):"["==t?A(M("]"),G,F("]"),B,r):u&&"as"==e?(C.marked="keyword",A(ft,r)):"regexp"==t?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),A(o)):void 0:void 0}function $(t,e){return"quasi"!=t?T():"${"!=e.slice(e.length-2)?A($):A(G,X)}function X(t){if("}"==t)return C.marked="string-2",C.state.tokenize=y,A($)}function Z(t){return b(C.stream,C.state),T("{"==t?U:V)}function Q(t){return b(C.stream,C.state),T("{"==t?U:q)}function J(t,e){if("target"==e)return C.marked="keyword",A(Y)}function tt(t,e){if("target"==e)return C.marked="keyword",A(K)}function et(t){return":"==t?A(B,U):T(Y,F(";"),B)}function nt(t){if("variable"==t)return C.marked="property",A()}function rt(t,e){return"async"==t?(C.marked="property",A(rt)):"variable"==t||"keyword"==C.style?(C.marked="property","get"==e||"set"==e?A(ot):(u&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),A(it))):"number"==t||"string"==t?(C.marked=s?"property":C.style+" property",A(it)):"jsonld-keyword"==t?A(it):u&&P(e)?(C.marked="keyword",A(rt)):"["==t?A(V,ct,F("]"),it):"spread"==t?A(q,it):"*"==e?(C.marked="keyword",A(rt)):":"==t?T(it):void 0;var n}function ot(t){return"variable"!=t?T(it):(C.marked="property",A(Dt))}function it(t){return":"==t?A(q):"("==t?T(Dt):void 0}function at(t,e,n){function r(o,i){if(n?n.indexOf(o)>-1:","==o){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),A((function(n,r){return n==e||r==e?T():T(t)}),r)}return o==e||i==e?A():n&&n.indexOf(";")>-1?T(t):A(F(e))}return function(n,o){return n==e||o==e?A():T(t,r)}}function st(t,e,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return A(M(e,n),at(t,e),B)}function lt(t){return"}"==t?A():T(U,lt)}function ct(t,e){if(u){if(":"==t)return A(ft);if("?"==e)return A(ct)}}function ut(t,e){if(u&&(":"==t||"in"==e))return A(ft)}function pt(t){if(u&&":"==t)return C.stream.match(/^\s*\w+\s+is\b/,!1)?A(V,dt,ft):A(ft)}function dt(t,e){if("is"==e)return C.marked="keyword",A()}function ft(t,e){return"keyof"==e||"typeof"==e||"infer"==e||"readonly"==e?(C.marked="keyword",A("typeof"==e?q:ft)):"variable"==t||"void"==e?(C.marked="type",A(_t)):"|"==e||"&"==e?A(ft):"string"==t||"number"==t||"atom"==t?A(_t):"["==t?A(M("]"),at(ft,"]",","),B,_t):"{"==t?A(M("}"),gt,B,_t):"("==t?A(at(bt,")"),ht,_t):"<"==t?A(at(ft,">"),ft):"quasi"==t?T(vt,_t):void 0}function ht(t){if("=>"==t)return A(ft)}function gt(t){return t.match(/[\}\)\]]/)?A():","==t||";"==t?A(gt):T(mt,gt)}function mt(t,e){return"variable"==t||"keyword"==C.style?(C.marked="property",A(mt)):"?"==e||"number"==t||"string"==t?A(mt):":"==t?A(ft):"["==t?A(F("variable"),ut,F("]"),mt):"("==t?T(It,mt):t.match(/[;\}\)\],]/)?void 0:A()}function vt(t,e){return"quasi"!=t?T():"${"!=e.slice(e.length-2)?A(vt):A(ft,yt)}function yt(t){if("}"==t)return C.marked="string-2",C.state.tokenize=y,A(vt)}function bt(t,e){return"variable"==t&&C.stream.match(/^\s*[?:]/,!1)||"?"==e?A(bt):":"==t?A(ft):"spread"==t?A(bt):T(ft)}function _t(t,e){return"<"==e?A(M(">"),at(ft,">"),B,_t):"|"==e||"."==t||"&"==e?A(ft):"["==t?A(ft,F("]"),_t):"extends"==e||"implements"==e?(C.marked="keyword",A(ft)):"?"==e?A(ft,F(":"),ft):void 0}function wt(t,e){if("<"==e)return A(M(">"),at(ft,">"),B,_t)}function Et(){return T(ft,xt)}function xt(t,e){if("="==e)return A(ft)}function Ct(t,e){return"enum"==e?(C.marked="keyword",A(Zt)):T(Tt,ct,St,kt)}function Tt(t,e){return u&&P(e)?(C.marked="keyword",A(Tt)):"variable"==t?(S(e),A()):"spread"==t?A(Tt):"["==t?st(Ot,"]"):"{"==t?st(At,"}"):void 0}function At(t,e){return"variable"!=t||C.stream.match(/^\s*:/,!1)?("variable"==t&&(C.marked="property"),"spread"==t?A(Tt):"}"==t?T():"["==t?A(V,F("]"),F(":"),At):A(F(":"),Tt,St)):(S(e),A(St))}function Ot(){return T(Tt,St)}function St(t,e){if("="==e)return A(q)}function kt(t){if(","==t)return A(Ct)}function Pt(t,e){if("keyword b"==t&&"else"==e)return A(M("form","else"),U,B)}function jt(t,e){return"await"==e?A(jt):"("==t?A(M(")"),Nt,B):void 0}function Nt(t){return"var"==t?A(Ct,Lt):"variable"==t?A(Lt):T(Lt)}function Lt(t,e){return")"==t?A():";"==t?A(Lt):"in"==e||"of"==e?(C.marked="keyword",A(V,Lt)):T(V,Lt)}function Dt(t,e){return"*"==e?(C.marked="keyword",A(Dt)):"variable"==t?(S(e),A(Dt)):"("==t?A(D,M(")"),at(Mt,")"),B,pt,U,R):u&&"<"==e?A(M(">"),at(Et,">"),B,Dt):void 0}function It(t,e){return"*"==e?(C.marked="keyword",A(It)):"variable"==t?(S(e),A(It)):"("==t?A(D,M(")"),at(Mt,")"),B,pt,R):u&&"<"==e?A(M(">"),at(Et,">"),B,It):void 0}function Rt(t,e){return"keyword"==t||"variable"==t?(C.marked="type",A(Rt)):"<"==e?A(M(">"),at(Et,">"),B):void 0}function Mt(t,e){return"@"==e&&A(V,Mt),"spread"==t?A(Mt):u&&P(e)?(C.marked="keyword",A(Mt)):u&&"this"==t?A(ct,St):T(Tt,ct,St)}function Bt(t,e){return"variable"==t?Ft(t,e):Ut(t,e)}function Ft(t,e){if("variable"==t)return S(e),A(Ut)}function Ut(t,e){return"<"==e?A(M(">"),at(Et,">"),B,Ut):"extends"==e||"implements"==e||u&&","==t?("implements"==e&&(C.marked="keyword"),A(u?ft:V,Ut)):"{"==t?A(M("}"),Ht,B):void 0}function Ht(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||u&&P(e))&&C.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",A(Ht)):"variable"==t||"keyword"==C.style?(C.marked="property",A(Vt,Ht)):"number"==t||"string"==t?A(Vt,Ht):"["==t?A(V,ct,F("]"),Vt,Ht):"*"==e?(C.marked="keyword",A(Ht)):u&&"("==t?T(It,Ht):";"==t||","==t?A(Ht):"}"==t?A():"@"==e?A(V,Ht):void 0}function Vt(t,e){if("!"==e)return A(Vt);if("?"==e)return A(Vt);if(":"==t)return A(ft,St);if("="==e)return A(q);var n=C.state.lexical.prev;return T(n&&"interface"==n.info?It:Dt)}function qt(t,e){return"*"==e?(C.marked="keyword",A($t,F(";"))):"default"==e?(C.marked="keyword",A(V,F(";"))):"{"==t?A(at(zt,"}"),$t,F(";")):T(U)}function zt(t,e){return"as"==e?(C.marked="keyword",A(F("variable"))):"variable"==t?T(q,zt):void 0}function Wt(t){return"string"==t?A():"("==t?T(V):"."==t?T(Y):T(Gt,Yt,$t)}function Gt(t,e){return"{"==t?st(Gt,"}"):("variable"==t&&S(e),"*"==e&&(C.marked="keyword"),A(Kt))}function Yt(t){if(","==t)return A(Gt,Yt)}function Kt(t,e){if("as"==e)return C.marked="keyword",A(Gt)}function $t(t,e){if("from"==e)return C.marked="keyword",A(V)}function Xt(t){return"]"==t?A():T(at(q,"]"))}function Zt(){return T(M("form"),Tt,F("{"),M("}"),at(Qt,"}"),B,B)}function Qt(){return T(Tt,St)}function Jt(t,e,n){return e.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(e.lastType)||"quasi"==e.lastType&&/\{\s*$/.test(t.string.slice(0,t.pos-(n||0)))}return R.lex=!0,B.lex=!0,{startState:function(t){var e={tokenize:m,lastType:"sof",cc:[],lexical:new w((t||0)-i,0,"block",!1),localVars:n.localVars,context:n.localVars&&new j(null,null,!1),indented:t||0};return n.globalVars&&"object"==typeof n.globalVars&&(e.globalVars=n.globalVars),e},token:function(t,e){if(t.sol()&&(e.lexical.hasOwnProperty("align")||(e.lexical.align=!1),e.indented=t.indentation(),b(t,e)),e.tokenize!=v&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==r?n:(e.lastType="operator"!=r||"++"!=o&&"--"!=o?r:"incdec",x(e,n,r,o,t))},indent:function(e,r){if(e.tokenize==v||e.tokenize==y)return t.Pass;if(e.tokenize!=m)return 0;var o,s=r&&r.charAt(0),l=e.lexical;if(!/^\s*else\b/.test(r))for(var c=e.cc.length-1;c>=0;--c){var u=e.cc[c];if(u==B)l=l.prev;else if(u!=Pt&&u!=R)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(o=e.cc[e.cc.length-1])&&(o==Y||o==K)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var p=l.type,d=s==p;return"vardef"==p?l.indented+("operator"==e.lastType||","==e.lastType?l.info.length+1:0):"form"==p&&"{"==s?l.indented:"form"==p?l.indented+i:"stat"==p?l.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||f.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(e,r)?a||i:0):"switch"!=l.info||d||0==n.doubleIndentSwitch?l.align?l.column+(d?0:1):l.indented+(d?0:i):l.indented+(/^(?:case|default)\b/.test(r)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Jt,skipExpression:function(e){x(e,"atom","atom","true",new t.StringStream("",2,null))}}})),t.registerHelper("wordChars","javascript",/[\w$]/),t.defineMIME("text/javascript","javascript"),t.defineMIME("text/ecmascript","javascript"),t.defineMIME("application/javascript","javascript"),t.defineMIME("application/x-javascript","javascript"),t.defineMIME("application/ecmascript","javascript"),t.defineMIME("application/json",{name:"javascript",json:!0}),t.defineMIME("application/x-json",{name:"javascript",json:!0}),t.defineMIME("application/manifest+json",{name:"javascript",json:!0}),t.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),t.defineMIME("text/typescript",{name:"javascript",typescript:!0}),t.defineMIME("application/typescript",{name:"javascript",typescript:!0})}(n(4408))},9701:(t,e,n)=>{!function(t){var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(r,o){var i,a,s=r.indentUnit,l={},c=o.htmlMode?e:n;for(var u in c)l[u]=c[u];for(var u in o)l[u]=o[u];function p(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(f("atom","]]>")):null:t.match("--")?n(f("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(h(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=f("meta","?>"),"meta"):(i=t.eat("/")?"closeTag":"openTag",e.tokenize=d,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function d(t,e){var n,r,o=t.next();if(">"==o||"/"==o&&t.eat(">"))return e.tokenize=p,i=">"==o?"endTag":"selfcloseTag","tag bracket";if("="==o)return i="equals",null;if("<"==o){e.tokenize=p,e.state=b,e.tagName=e.tagStart=null;var a=e.tokenize(t,e);return a?a+" tag error":"tag error"}return/[\'\"]/.test(o)?(e.tokenize=(n=o,r=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=d;break}return"string"},r.isInAttribute=!0,r),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function f(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=p;break}n.next()}return t}}function h(t){return function(e,n){for(var r;null!=(r=e.next());){if("<"==r)return n.tokenize=h(t+1),n.tokenize(e,n);if(">"==r){if(1==t){n.tokenize=p;break}return n.tokenize=h(t-1),n.tokenize(e,n)}}return"meta"}}function g(t){return t&&t.toLowerCase()}function m(t,e,n){this.prev=t.context,this.tagName=e||"",this.indent=t.indented,this.startOfLine=n,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function v(t){t.context&&(t.context=t.context.prev)}function y(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!l.contextGrabbers.hasOwnProperty(g(n))||!l.contextGrabbers[g(n)].hasOwnProperty(g(e)))return;v(t)}}function b(t,e,n){return"openTag"==t?(n.tagStart=e.column(),_):"closeTag"==t?w:b}function _(t,e,n){return"word"==t?(n.tagName=e.current(),a="tag",C):l.allowMissingTagName&&"endTag"==t?(a="tag bracket",C(t,0,n)):(a="error",_)}function w(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&l.implicitlyClosed.hasOwnProperty(g(n.context.tagName))&&v(n),n.context&&n.context.tagName==r||!1===l.matchClosing?(a="tag",E):(a="tag error",x)}return l.allowMissingTagName&&"endTag"==t?(a="tag bracket",E(t,0,n)):(a="error",x)}function E(t,e,n){return"endTag"!=t?(a="error",E):(v(n),b)}function x(t,e,n){return a="error",E(t,0,n)}function C(t,e,n){if("word"==t)return a="attribute",T;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(g(r))?y(n,r):(y(n,r),n.context=new m(n,r,o==n.indented)),b}return a="error",C}function T(t,e,n){return"equals"==t?A:(l.allowMissing||(a="error"),C(t,0,n))}function A(t,e,n){return"string"==t?O:"word"==t&&l.allowUnquoted?(a="string",C):(a="error",C(t,0,n))}function O(t,e,n){return"string"==t?O:C(t,0,n)}return p.isInText=!0,{startState:function(t){var e={tokenize:p,state:b,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;i=null;var n=e.tokenize(t,e);return(n||i)&&"comment"!=n&&(a=null,e.state=e.state(i||n,t,e),a&&(n="error"==a?n+" error":a)),n},indent:function(e,n,r){var o=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(o&&o.noIndent)return t.Pass;if(e.tokenize!=d&&e.tokenize!=p)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var i=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(i&&i[1])for(;o;){if(o.tagName==i[2]){o=o.prev;break}if(!l.implicitlyClosed.hasOwnProperty(g(o.tagName)))break;o=o.prev}else if(i)for(;o;){var a=l.contextGrabbers[g(o.tagName)];if(!a||!a.hasOwnProperty(g(i[2])))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+s:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==A&&(t.state=C)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)e.push(n.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(n(4408))},3023:(t,e,n)=>{n.d(e,{A:()=>a});var r,o=n(1749),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const a=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o._module=e,o}return i(e,t),Object.defineProperty(e.prototype,"module",{get:function(){return this._module},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this._module.config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"em",{get:function(){return this._module.em},enumerable:!1,configurable:!0}),e}(o.Kx)},2820:(t,e,n)=>{n.d(e,{A:()=>l,F:()=>o});var r,o,i=n(3023),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});!function(t){t.Select="select",t.Hover="hover",t.Spacing="spacing",t.Target="target",t.Resize="resize"}(o||(o={}));var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.defaults=function(){return{id:"",type:""}},Object.defineProperty(e.prototype,"type",{get:function(){return this.get("type")||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){var t;return this.get("component")||(null===(t=this.get("componentView"))||void 0===t?void 0:t.model)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"componentView",{get:function(){var t;return this.get("componentView")||(null===(t=this.get("component"))||void 0===t?void 0:t.getView())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"el",{get:function(){var t;return null===(t=this.componentView)||void 0===t?void 0:t.el},enumerable:!1,configurable:!0}),e.prototype.getBoxRect=function(t){var e=this.el,n=this.em.Canvas.getCanvasView();return this.get("boxRect")||(e&&n?n.getElBoxRect(e,t):{x:0,y:0,width:0,height:0})},e.prototype.getStyle=function(t){void 0===t&&(t={});var e=t.boxRect||this.getBoxRect(t),n=e.width,r=e.height,o=e.x,i=e.y;return{width:"".concat(n,"px"),height:"".concat(r,"px"),top:"0",left:"0",position:"absolute",translate:"".concat(o,"px ").concat(i,"px")}},e.prototype.isType=function(t){return this.type===t},e}(i.A);const l=s},8351:(t,e,n)=>{var r;n.d(e,{A:()=>o}),function(t){t.run="command:run",t._run="run",t.runCommand="command:run:",t._runCommand="run:",t.runBeforeCommand="command:run:before:",t.abort="command:abort:",t._abort="abort:",t.stop="command:stop",t._stop="stop",t.stopCommand="command:stop:",t._stopCommand="stop:",t.stopBeforeCommand="command:stop:before:"}(r||(r={}));const o=r},371:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){t.Components.clear(),t.Css.clear()}}},6301:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});var r=n(5706),o=n(5633),i=n(2097);const a={run:function(t){(0,r.bindAll)(this,"onKeyUp","enableDragger","disableDragger"),this.editor=t,this.canvasModel=this.canvas.getCanvasView().model,this.toggleMove(1)},stop:function(t){this.toggleMove(),this.disableDragger()},onKeyUp:function(t){" "===(0,i.Ch)(t)&&this.editor.stopCommand(this.id)},enableDragger:function(t){this.toggleDragger(1,t)},disableDragger:function(t){this.toggleDragger(0,t)},toggleDragger:function(t,e){var n=this.canvasModel,r=this.em,i=this.dragger,a=t?"add":"remove";this.getCanvas().classList[a]("".concat(this.ppfx,"is__grabbing")),i||(i=new o.A({getPosition:function(){return{x:n.get("x"),y:n.get("y")}},setPosition:function(t){var e=t.x,r=t.y;n.set({x:e,y:r})},onStart:function(t,e){r.trigger("canvas:move:start",e)},onDrag:function(t,e){r.trigger("canvas:move",e)},onEnd:function(t,e){r.trigger("canvas:move:end",e)}}),this.dragger=i),t?i.start(e):i.stop()},toggleMove:function(t){var e=this.ppfx,n=t?"add":"remove",r=t?"on":"off",o={on:i.on,off:i.AU},a=this.getCanvas(),s=["".concat(e,"is__grab")];!t&&s.push("".concat(e,"is__grabbing")),s.forEach((function(t){return a.classList[n](t)})),o[r](document,"keyup",this.onKeyUp),o[r](a,"mousedown",this.enableDragger),o[r](document,"mouseup",this.disableDragger)}}},5301:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l,defineCommand:()=>s});var r,o=n(1749),i=n(8351),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function s(t){return t}const l=function(t){function e(e){var n=t.call(this,0)||this;n.config=e||{},n.em=n.config.em||{};var r=n.config.stylePrefix;return n.pfx=r,n.ppfx=n.config.pStylePrefix,n.hoverClass="".concat(r,"hover"),n.badgeClass="".concat(r,"badge"),n.plhClass="".concat(r,"placeholder"),n.freezClass="".concat(n.ppfx,"freezed"),n.canvas=n.em.Canvas,n.init(n.config),n}return a(e,t),e.prototype.onFrameScroll=function(t){},e.prototype.getCanvas=function(){return this.canvas.getElement()},e.prototype.getCanvasBody=function(){return this.canvas.getBody()},e.prototype.getCanvasTools=function(){return this.canvas.getToolsEl()},e.prototype.offset=function(t){var e=t.getBoundingClientRect();return{top:e.top+t.ownerDocument.body.scrollTop,left:e.left+t.ownerDocument.body.scrollLeft}},e.prototype.init=function(t){},e.prototype.callRun=function(t,e){void 0===e&&(e={});var n=this.id;if(t.trigger("".concat(i.A.runBeforeCommand).concat(n),{options:e}),t.trigger("".concat(i.A._runCommand).concat(n,":before"),e),e.abort)return t.trigger("".concat(i.A.abort).concat(n),{options:e}),void t.trigger("".concat(i.A._abort).concat(n),e);var r=e.sender||t,o=this.run(t,r,e),a={id:n,result:o,options:e};return t.trigger("".concat(i.A.runCommand).concat(n),a),t.trigger(i.A.run,a),t.trigger("".concat(i.A._runCommand).concat(n),o,e),t.trigger(i.A._run,n,o,e),o},e.prototype.callStop=function(t,e){void 0===e&&(e={});var n=this.id,r=e.sender||t;t.trigger("".concat(i.A.stopBeforeCommand).concat(n),{options:e}),t.trigger("".concat(i.A._stopCommand).concat(n,":before"),e);var o=this.stop(t,r,e),a={id:n,result:o,options:e};return t.trigger("".concat(i.A.stopCommand).concat(n),a),t.trigger(i.A.stop,a),t.trigger("".concat(i.A._stopCommand).concat(n),o,e),t.trigger(i.A._stop,n,o,e),o},e.prototype.stopCommand=function(t){this.em.Commands.stop(this.id,t)},e.prototype.run=function(t,e,n){},e.prototype.stop=function(t,e,n){},e}(o.Kx)},8542:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(5706),o={run:function(t,e,n){var o=this;void 0===n&&(n={});var i=[],a=n.component||t.getSelectedAll();return(a=(0,r.isArray)(a)?function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],a,!0):[a]).filter(Boolean).forEach((function(t){var e,n;if(!t.get("removable"))return o.em.logWarning("The element is not removable",{component:t});i.push(t),((null===(n=null===(e=t.delegate)||void 0===e?void 0:e.remove)||void 0===n?void 0:n.call(e,t))||t).remove()})),t.selectRemove(i),i}};const i=o},1319:(t,e,n)=>{n.r(e),n.d(e,{default:()=>s});var r=n(5706),o=n(5633),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a="dmode";const s={run:function(t,e,n){var s=this;void 0===n&&(n={}),(0,r.bindAll)(this,"setPosition","onStart","onDrag","onEnd","getPosition","getGuidesStatic","renderGuide","getGuidesTarget");var l=n.target,c=n.event,u=n.mode,p=n.dragger,d=void 0===p?{}:p,f=l.getEl(),h=i({doc:f.ownerDocument,onStart:this.onStart,onEnd:this.onEnd,onDrag:this.onDrag,getPosition:this.getPosition,setPosition:this.setPosition,guidesStatic:function(){return s.guidesStatic},guidesTarget:function(){return s.guidesTarget}},d);this.setupGuides(),this.opts=n,this.editor=t,this.em=t.getModel(),this.target=l,this.isTran="translate"==u,this.guidesContainer=this.getGuidesContainer(),this.guidesTarget=this.getGuidesTarget(),this.guidesStatic=this.getGuidesStatic();var g=this.dragger;return g?g.setOptions(h):(g=new o.A(h),this.dragger=g),c&&g.start(c),this.toggleDrag(1),this.em.trigger("".concat(a,":start"),this.getEventOpts()),g},getEventOpts:function(){return{mode:this.opts.mode,target:this.target,guidesTarget:this.guidesTarget,guidesStatic:this.guidesStatic}},stop:function(){this.toggleDrag()},setupGuides:function(){(this.guides||[]).forEach((function(t){var e=t.guide;e&&e.parentNode.removeChild(e)})),this.guides=[]},getGuidesContainer:function(){var t=this,e=this.guidesEl;if(!e){var n=this,o=n.editor,i=n.em,a=n.opts,s=o.getConfig().stylePrefix,l=document.createElement("div"),c=document.createElement("div"),u='<div class="'.concat(s,"guide-info__line ").concat(s,'danger-bg">\n        <div class="').concat(s,"guide-info__content ").concat(s,'danger-color"></div>\n      </div>');(e=document.createElement("div")).className="".concat(s,"guides"),l.className="".concat(s,"guide-info ").concat(s,"guide-info__x"),c.className="".concat(s,"guide-info ").concat(s,"guide-info__y"),l.innerHTML=u,c.innerHTML=u,e.appendChild(l),e.appendChild(c),o.Canvas.getGlobalToolsEl().appendChild(e),this.guidesEl=e,this.elGuideInfoX=l,this.elGuideInfoY=c,this.elGuideInfoContentX=l.querySelector(".".concat(s,"guide-info__content")),this.elGuideInfoContentY=c.querySelector(".".concat(s,"guide-info__content")),i.on("canvas:update frame:scroll",(0,r.debounce)((function(){var e;t.updateGuides(),a.debug&&(null===(e=t.guides)||void 0===e||e.forEach((function(e){return t.renderGuide(e)})))}),200))}return e},getGuidesStatic:function(){var t=this,e=[],n=this.target.getEl(),o=n.parentNode,i=void 0===o?{}:o;return(0,r.each)(i.children,(function(r){return e=e.concat(n!==r?t.getElementGuides(r):[])})),e.concat(this.getElementGuides(i))},getGuidesTarget:function(){return this.getElementGuides(this.target.getEl())},updateGuides:function(t){var e,n,o=this;(t||this.guides).forEach((function(t){var i=t.origin,a=e===i?n:o.getElementPos(i);e=i,n=a,(0,r.each)(o.getGuidePosUpdate(t,a),(function(e,n){return t[n]=e})),t.originRect=a}))},getGuidePosUpdate:function(t,e){var n={},r=e.top,o=e.height,i=e.left,a=e.width;switch(t.type){case"t":n.y=r;break;case"b":n.y=r+o;break;case"l":n.x=i;break;case"r":n.x=i+a;break;case"x":n.x=i+a/2;break;case"y":n.y=r+o/2}return n},renderGuide:function(t){void 0===t&&(t={});var e=t.guide||document.createElement("div"),n="px",r=t.active?2:1,o=e.children[0];return e.style="position: absolute; background-color: ".concat(t.active?"green":"red",";"),e.children.length||((o=document.createElement("div")).style="position: absolute; color: red; padding: 5px; top: 0; left: 0;",e.appendChild(o)),t.y?(e.style.width="100%",e.style.height="".concat(r).concat(n),e.style.top="".concat(t.y).concat(n),e.style.left=0):(e.style.width="".concat(r).concat(n),e.style.height="100%",e.style.left="".concat(t.x).concat(n),e.style.top="0".concat(n)),!t.guide&&this.guidesContainer.appendChild(e),e},getElementPos:function(t){return this.editor.Canvas.getElementPos(t,{noScroll:1})},getElementGuides:function(t){var e=this,n=this.opts,r=this.getElementPos(t),o=r.top,a=r.height,s=r.left,l=r.width,c=[{type:"t",y:o},{type:"b",y:o+a},{type:"l",x:s},{type:"r",x:s+l},{type:"x",x:s+l/2},{type:"y",y:o+a/2}].map((function(o){return i(i({},o),{origin:t,originRect:r,guide:n.debug&&e.renderGuide(o)})}));return c.forEach((function(t){var n;return null===(n=e.guides)||void 0===n?void 0:n.push(t)})),c},getTranslate:function(t,e){void 0===e&&(e="x");var n=0;return(t||"").split(" ").forEach((function(t){var r=t.trim(),o="translate".concat(e.toUpperCase(),"(");0===r.indexOf(o)&&(n=parseFloat(r.replace(o,"")))})),n},setTranslate:function(t,e,n){var r="translate".concat(e.toUpperCase(),"("),o="".concat(r).concat(n,")"),i=(t||"").split(" ").map((function(t){return 0===t.trim().indexOf(r)&&(t=o),t})).join(" ");return i.indexOf(r)<0&&(i+=" ".concat(o)),i},getPosition:function(){var t=this.target,e=this.isTran,n=t.getStyle(),r=n.left,o=n.top,i=n.transform,a=0,s=0;return e?(a=this.getTranslate(i),s=this.getTranslate(i,"y")):(a=parseFloat(r||0),s=parseFloat(o||0)),{x:a,y:s}},setPosition:function(t){var e=t.x,n=t.y,o=t.end,i=t.position,a=t.width,s=t.height,l=this,c=l.target,u=l.isTran,p=l.em,d=!o,f="".concat(parseInt(e,10)).concat("px"),h="".concat(parseInt(n,10)).concat("px"),g={};if(u){var m=c.getStyle().transform||"";m=this.setTranslate(m,"x",f),g={transform:m=this.setTranslate(m,"y",h),__p:d},c.addStyle(g,{avoidStore:!o})}else{var v={position:i,width:a,height:s},y={left:f,top:h,__p:d};(0,r.keys)(v).forEach((function(t){var e=v[t];e&&(y[t]=e)})),g=y,c.addStyle(g,{avoidStore:!o})}null==p||p.Styles.__emitCmpStyleUpdate(g,{components:p.getSelected()})},_getDragData:function(){var t=this.target;return{target:t,parent:t.parent(),index:t.index()}},onStart:function(t){var e=this,n=e.target,r=e.editor,o=e.isTran,i=e.opts,a=i.center,s=i.onStart,l=r.Canvas,c=n.getStyle(),u="absolute",p=[u,"relative"];if(s&&s(this._getDragData()),!o&&c.position!==u){var d=l.offset(n.getEl()),f=d.left,h=d.top,g=d.width,m=d.height,v=n.parent(),y=void 0;do{var b=v.getStyle();y=p.indexOf(b.position)>=0?v:null,v=v.parent()}while(v&&!y);if(a){var _=l.getMouseRelativeCanvas(t);f=_.x,h=_.y}else if(y){var w=l.offset(y.getEl());f-=w.left,h-=w.top}this.setPosition({x:f,y:h,width:"".concat(g,"px"),height:"".concat(m,"px"),position:u})}},onDrag:function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.guidesTarget,o=this.opts,i=o.onDrag;this.updateGuides(r),o.debug&&r.forEach((function(e){return t.renderGuide(e)})),o.guidesInfo&&this.renderGuideInfo(r.filter((function(t){return t.active}))),i&&i(this._getDragData())},onEnd:function(t,e,n){void 0===n&&(n={});var r=this,o=r.editor,s=r.opts,l=r.id,c=s.onEnd;c&&c(t,n,i(i({event:t},n),this._getDragData())),o.stopCommand(l),this.hideGuidesInfo(),this.em.trigger("".concat(a,":end"),this.getEventOpts())},hideGuidesInfo:function(){var t=this;["X","Y"].forEach((function(e){var n=t["elGuideInfo".concat(e)];n&&(n.style.display="none")}))},renderGuideInfo:function(t){var e=this;void 0===t&&(t=[]);var n=this.guidesStatic;this.hideGuidesInfo(),t.forEach((function(t){var o=t.origin,s=t.x,l=e.getElementPos(o),c=(0,r.isUndefined)(s)?"y":"x",u="y"===c,p=l[u?"left":"top"],d=l.rect[u?"left":"top"],f=u?p+l.width:p+l.height,h=u?d+l.rect.width:d+l.rect.height,g=e["elGuideInfo".concat(c.toUpperCase())],m=e["elGuideInfoContent".concat(c.toUpperCase())],v=g.style,y=null==n?void 0:n.filter((function(e){return e.type===t.type})).map((function(t){var e=t.originRect,n=e.left,r=e.width,o=e.top,i=e.height,a=u?n+r:o+i;return{gap:a<p?p-a:(u?n:o)-f,guide:t}})).filter((function(t){return t.gap>0})).sort((function(t,e){return t.gap-e.gap})).map((function(t){return t.guide}))[0];if(y){var b=y.originRect,_=b.left,w=b.width,E=b.top,x=b.height,C=b.rect,T=u?_<l.left:E<l.top,A=u?_:E,O=u?C.left:C.top,S=u?_+w:E+x,k=u?C.left+C.width:C.top+C.height,P=u?t.y:t.x,j=T?S:f,N="".concat(P,"px"),L=T?p-S:A-f,D=T?d-k:O-h;v.display="",v[u?"top":"left"]=N,v[u?"left":"top"]="".concat(j,"px"),v[u?"width":"height"]="".concat(L,"px"),m.innerHTML="".concat(Math.round(D),"px"),e.em.trigger("".concat(a,":active"),i(i({},e.getEventOpts()),{guide:t,guidesStatic:n,matched:y,posFirst:P,posSecond:j,size:L,sizeRaw:D,elGuideInfo:g,elGuideInfoCnt:m}))}}))},toggleDrag:function(t){var e=this.ppfx,n=this.editor,r=t?"add":"remove",o=["".concat(e,"is__grabbing")],i=n.Canvas,a=i.getBody();o.forEach((function(t){return a.classList[r](t)})),i[t?"startAutoscroll":"stopAutoscroll"]()}}},1859:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.components(),r=n&&n.filter((function(t){return t.get("selectable")}))[0];r&&e.push(r)})),e.length&&t.select(e)}}}},3709:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t,e,n){if(void 0===n&&(n={}),t.Canvas.hasFocus()||n.force){var r=[];t.getSelectedAll().forEach((function(t){for(var e=t.parent();e&&!e.get("selectable");)e=e.parent();e&&r.push(e)})),r.length&&t.select(r)}}}},2860:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.parent();if(n){var r,o=n.components().length,i=0,a=0;do{i++,r=(a=t.index()+i)<=o?n.getChildAt(a):null}while(r&&!r.get("selectable"));e.push(r||t)}})),e.length&&t.select(e)}}}},4944:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.parent();if(n){var r,o=0,i=0;do{o++,r=(i=t.index()-o)>=0?n.getChildAt(i):null}while(r&&!r.get("selectable"));e.push(r||t)}})),e.length&&t.select(e)}}}},767:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(5706);const o={run:function(t,e,n){void 0===n&&(n={});var o=n.target,i=[];if(!o.get("styles"))return i;var a=o.get("type"),s=t.Pages.getAllWrappers();if(!(0,r.flatten)(s.map((function(t){return t.findType(a)}))).length){var l=t.CssComposer.getAll();i=l.filter((function(t){return t.get("group")==="cmp:".concat(a)})),l.remove(i)}return i}}},2126:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){var e=t.getModel(),n=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],t.getSelectedAll(),!0).map((function(t){var e,n;return(null===(n=null===(e=t.delegate)||void 0===e?void 0:e.copy)||void 0===n?void 0:n.call(e,t))||t})).filter(Boolean);n.length&&e.set("clipboard",n)}}},4860:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(2097);const o={run:function(t,e,n){var o=this;void 0===n&&(n={}),e&&e.set&&e.set("active",0);var i=t.getConfig(),a=t.Modal,s=i.stylePrefix;if(this.cm=t.CodeManager||null,!this.editors){var l=this.buildEditor("htmlmixed","hopscotch","HTML"),c=this.buildEditor("css","hopscotch","CSS");this.htmlEditor=l.model,this.cssEditor=c.model;var u=(0,r.a_)("div",{class:"".concat(s,"export-dl")});u.appendChild(l.el),u.appendChild(c.el),this.editors=u}a.open({title:i.textViewCode,content:this.editors}).getModel().once("change:open",(function(){return t.stopCommand("".concat(o.id))})),this.htmlEditor.setContent(t.getHtml(n.optsHtml)),this.cssEditor.setContent(t.getCss(n.optsCss))},stop:function(t){var e=t.Modal;e&&e.close()},buildEditor:function(t,e,n){var r=this.em.CodeManager,o=r.createViewer({label:n,codeName:t,theme:e});return{model:o,el:new r.EditorView({model:o,config:r.getConfig()}).render().el}}}},1085:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(5706);const o={isEnabled:function(){var t=document;return!!(t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement)},enable:function(t){var e="";return t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?(e="webkit",t.webkitRequestFullscreen()):t.mozRequestFullScreen?(e="moz",t.mozRequestFullScreen()):t.msRequestFullscreen&&t.msRequestFullscreen(),e},disable:function(){var t=document;this.isEnabled()&&(t.exitFullscreen?t.exitFullscreen():t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen&&t.msExitFullscreen())},fsChanged:function(t){this.isEnabled()||(this.stopCommand({sender:this.sender}),document.removeEventListener("".concat(t||"","fullscreenchange"),this.fsChanged))},run:function(t,e,n){void 0===n&&(n={}),this.sender=e;var o=n.target,i=(0,r.isElement)(o)?o:document.querySelector(o),a=this.enable(i||t.getContainer());this.fsChanged=this.fsChanged.bind(this,a),document.addEventListener(a+"fullscreenchange",this.fsChanged)},stop:function(t,e){e&&e.set&&e.set("active",!1),this.disable()}}},9622:(t,e,n)=>{n.r(e),n.d(e,{default:()=>l});var r=n(5706),o=n(6411),i=n(2097),a=n(4596),s=n(2983);const l=(0,r.extend)({},s.default,a.default,{init:function(t){a.default.init.apply(this,arguments),(0,r.bindAll)(this,"initSorter","rollback","onEndMove"),this.opt=t,this.hoverClass=this.ppfx+"highlighter-warning",this.badgeClass=this.ppfx+"badge-warning",this.noSelClass=this.ppfx+"no-select"},enable:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.default.enable.apply(this,t),this.getBadgeEl().addClass(this.badgeClass),this.getHighlighterEl().addClass(this.hoverClass);var n=this.$wrapper;n.css("cursor","move"),n.on("mousedown",this.initSorter),n.addClass(this.noSelClass)},toggleClipboard:function(){},initSorter:function(t){var e=(0,o.default)(t.target).data("model").get("draggable");e&&(this.cacheEl=null,this.startSelectPosition(t.target,this.frameEl.contentDocument),this.sorter.draggable=e,this.sorter.eventHandlers.legacyOnEndMove=this.onEndMove.bind(this),this.stopSelectComponent(),this.$wrapper.off("mousedown",this.initSorter),(0,i.on)(this.getContentWindow(),"keydown",this.rollback))},initSorterFromModel:function(t){var e=t.get("draggable");if(e){this.cacheEl=null;var n=t.view.el;this.startSelectPosition(n,this.frameEl.contentDocument),this.sorter.draggable=e,this.sorter.eventHandlers.legacyOnEndMove=this.onEndMoveFromModel.bind(this),this.stopSelectComponent(),(0,i.on)(this.getContentWindow(),"keydown",this.rollback)}},initSorterFromModels:function(t){this.cacheEl=null;var e=t[t.length-1],n=this.em.getCurrentFrame(),r=e.getEl(null==n?void 0:n.model).ownerDocument,o=t.map((function(t){var e;return null===(e=null==t?void 0:t.view)||void 0===e?void 0:e.el}));this.startSelectPosition(o,r,{onStart:this.onStart}),this.sorter.eventHandlers.legacyOnMoveClb=this.onDrag,this.sorter.eventHandlers.legacyOnEndMove=this.onEndMoveFromModel.bind(this),this.stopSelectComponent(),(0,i.on)(this.getContentWindow(),"keydown",this.rollback)},onEndMoveFromModel:function(){(0,i.AU)(this.getContentWindow(),"keydown",this.rollback)},onEndMove:function(){this.enable(),(0,i.AU)(this.getContentWindow(),"keydown",this.rollback)},onSelect:function(t,e){},rollback:function(t,e){(27==(t.which||t.keyCode)||e)&&this.sorter.cancelDrag()},getBadgeEl:function(){return this.$badge||(this.$badge=(0,o.default)(this.getBadge())),this.$badge},getHighlighterEl:function(){return this.$hl||(this.$hl=(0,o.default)(this.canvas.getHighlighter())),this.$hl},stop:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a.default.stop.apply(this,t),this.getBadgeEl().removeClass(this.badgeClass),this.getHighlighterEl().removeClass(this.hoverClass),this.$wrapper.css("cursor","").unbind().removeClass(this.noSelClass)}})},8481:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(5706),o=n(2097);const i={open:function(t){var e=this,n=this,o=n.editor,i=n.title,a=n.config,s=n.am,l=a.custom;if((0,r.isFunction)(l.open))return l.open(s.__customData());o.Modal.open({title:i,content:t}).onceClose((function(){return o.stopCommand(e.id)}))},close:function(){var t=this.config.custom;if((0,r.isFunction)(t.close))return t.close(this.am.__customData());var e=this.editor.Modal;e&&e.close()},run:function(t,e,n){void 0===n&&(n={});var r=t.AssetManager,i=r.getConfig(),a=n.types,s=void 0===a?[]:a,l=n.accept,c=n.select;if(this.title=n.modalTitle||t.t("assetManager.modalTitle")||"",this.editor=t,this.config=i,this.am=r,r.setTarget(n.target),r.onClick(n.onClick),r.onDblClick(n.onDblClick),r.onSelect(n.onSelect),r.__behaviour({select:c,types:s,options:n}),i.custom)this.rendered=this.rendered||(0,o.a_)("div"),this.rendered.className="".concat(i.stylePrefix,"custom-wrp"),r.__behaviour({container:this.rendered}),r.__trgCustom();else{if(!this.rendered||s){var u=r.getAll().filter((function(t){return t}));s&&s.length&&(u=u.filter((function(t){return-1!==s.indexOf(t.get("type"))}))),r.render(u),this.rendered=r.getContainer()}if(l){var p=this.rendered.querySelector("input#".concat(i.stylePrefix,"uploadFile"));p&&p.setAttribute("accept",l)}}return this.open(this.rendered),this},stop:function(t){this.editor=t,this.close(this.rendered)}}},3666:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(5706),o=n(2097);const i={open:function(){var t=this,e=t.container,n=t.editor,o=t.bm,i=t.config,a=i.custom,s=i.appendTo;if((0,r.isFunction)(a.open))return a.open(o.__customData());if(this.firstRender&&!s){var l="views-container",c=n.Panels;(c.getPanel(l)||c.addPanel({id:l})).set("appendContent",e).trigger("change:appendContent"),a||e.appendChild(o.render())}e&&(e.style.display="block")},close:function(){var t=this.container,e=this.config.custom;if((0,r.isFunction)(e.close))return e.close(this.bm.__customData());t&&(t.style.display="none")},run:function(t){var e=t.Blocks;this.config=e.getConfig(),this.firstRender=!this.container,this.container=this.container||(0,o.a_)("div"),this.editor=t,this.bm=e;var n=this.container;e.__behaviour({container:n}),this.config.custom&&e.__trgCustom(),this.open()},stop:function(){this.close()}}},5838:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={run:function(t){var e=t.LayerManager,n=t.Panels,r=e.getConfig();if(!r.appendTo){if(!this.layers){var o="views-container",i=document.createElement("div"),a=n.getPanel(o)||n.addPanel({id:o});r.custom?e.__trgCustom({container:i}):i.appendChild(e.render()),a.set("appendContent",i).trigger("change:appendContent"),this.layers=i}this.layers.style.display="block"}},stop:function(){var t=this.layers;t&&(t.style.display="none")}}},8692:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(6411);const o={run:function(t,e){if(this.sender=e,!this.$cnt){var n=t.getConfig(),o=t.Panels,i=t.DeviceManager,a=t.SelectorManager,s=t.StyleManager,l="change:appendContent",c=(0,r.default)("<div></div>"),u=(0,r.default)("<div></div>"),p=(0,r.default)("<div></div>"),d=(0,r.default)("<div></div>");if(this.$cnt=c,this.$cntInner=u,u.append(p),u.append(d),c.append(u),i&&n.showDevices){var f=o.addPanel({id:"devices-c"}),h=i.render();f.set("appendContent",h).trigger(l)}var g=a.getConfig();g.custom?a.__trgCustom({container:p.get(0)}):g.appendTo||p.append(a.render([])),this.sm=s;var m=s.getConfig(),v=m.stylePrefix;this.$header=(0,r.default)('<div class="'.concat(v,'header">').concat(t.t("styleManager.empty"),"</div>")),c.append(this.$header),m.custom?s.__trgCustom({container:d.get(0)}):m.appendTo||d.append(s.render());var y="views-container";(o.getPanel(y)||o.addPanel({id:y})).set("appendContent",c).trigger(l);var b=t.getModel();this.listenTo(b,s.events.target,this.toggleSm)}this.toggleSm()},toggleSm:function(){var t=this,e=t.sender,n=t.sm,r=t.$cntInner,o=t.$header;e&&e.get&&!e.get("active")||!n||(n.getSelected()?(null==r||r.show(),null==o||o.hide()):(null==r||r.hide(),null==o||o.show()))},stop:function(){var t,e;null===(t=this.$cntInner)||void 0===t||t.hide(),null===(e=this.$header)||void 0===e||e.hide()}}},9163:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(6411);const o={run:function(t,e){this.sender=e;var n,o=t.getModel(),i=t.Config.stylePrefix,a=t.TraitManager,s=a.getConfig();if(!s.appendTo){if(!this.$cn){this.$cn=(0,r.default)("<div></div>"),this.$cn2=(0,r.default)("<div></div>"),this.$cn.append(this.$cn2),this.$header=(0,r.default)("<div>").append('<div class="'.concat(s.stylePrefix,'header">').concat(o.t("traitManager.empty"),"</div>")),this.$cn.append(this.$header),s.custom?a.__trgCustom({container:this.$cn2.get(0)}):(this.$cn2.append('<div class="'.concat(i,'traits-label">').concat(o.t("traitManager.label"),"</div>")),this.$cn2.append(a.render()));var l=t.Panels;null==(n=l.getPanel("views-container")?l.getPanel("views-container"):l.addPanel({id:"views-container"}))||n.set("appendContent",this.$cn.get(0)).trigger("change:appendContent"),this.target=t.getModel(),this.listenTo(this.target,"component:toggled",this.toggleTm)}this.toggleTm()}},toggleTm:function(){var t=this.sender;t&&t.get&&!t.get("active")||(1===this.target.getSelectedAll().length?(this.$cn2.show(),this.$header.hide()):(this.$cn2.hide(),this.$header.show()))},stop:function(){this.$cn2&&this.$cn2.hide(),this.$header&&this.$header.hide()}}},9298:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=n(5706);const o={run:function(t,e,n){void 0===n&&(n={});var o=t.getModel(),a=o.get("clipboard"),s=t.getSelected();(null==a?void 0:a.length)&&s&&(t.getSelectedAll().forEach((function(e){var s,l,c,u,p=(null===(l=null===(s=e.delegate)||void 0===s?void 0:s.copy)||void 0===l?void 0:l.call(s,e))||e,d=p.collection;if(d){var f={at:p.index()+1,action:n.action||"paste-component"};u=(0,r.contains)(a,p)&&p.get("copyable")?d.add(p.clone(),f):i(t,a,p.parent(),f)}else{var h=null===(c=o.Pages.getSelected())||void 0===c?void 0:c.getMainComponent();f={at:(null==h?void 0:h.components().length)||0,action:n.action||"paste-component"},u=i(t,a,h,f)}(u=(0,r.isArray)(u)?u:[u]).forEach((function(e){return t.trigger("component:paste",e)}))})),s.emitUpdate())}};function i(t,e,n,r){var o=e.filter((function(t){return t.get("copyable")})).filter((function(e){return t.Components.canMove(n,e).result}));return n.components().add(o.map((function(t){return t.clone()})),r)}},8594:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(5706),o="core:component-outline";const i={getPanels:function(t){return this.panels||(this.panels=t.Panels.getPanels()),this.panels},preventDrag:function(t){t.abort=1},tglEffects:function(t){var e=this.em,n=t?"on":"off";if(e){var o=e.Canvas,i=o.getBody(),a=o.getToolbarEl();a&&(a.style.display=t?"none":"");var s=i.querySelectorAll(".".concat(this.ppfx,"no-pointer"));(0,r.each)(s,(function(e){return e.style.pointerEvents=t?"all":""})),e[n]("run:tlb-move:before",this.preventDrag)}},run:function(t,e){var n=this;this.sender=e,this.selected=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],t.getSelectedAll(),!0),t.select(),this.shouldRunSwVisibility||(this.shouldRunSwVisibility=t.Commands.isActive(o)),this.shouldRunSwVisibility&&t.stopCommand(o),t.getModel().stopDefault();var r=this.getPanels(t),i=t.Canvas.getElement(),a=t.getEl(),s=t.Config.stylePrefix;if(!this.helper){var l=document.createElement("span");l.className="".concat(s,"off-prv fa fa-eye-slash"),a.appendChild(l),l.onclick=function(){return n.stopCommand()},this.helper=l}this.helper.style.display="inline-block",r.forEach((function(t){return t.set("visible",!1)}));var c=i.style;c.width="100%",c.height="100%",c.top="0",c.left="0",c.padding="0",c.margin="0",t.refresh(),this.tglEffects(1)},stop:function(t){var e=this.sender,n=void 0===e?{}:e,r=this.selected;n.set&&n.set("active",0);var i=this.getPanels(t);this.shouldRunSwVisibility&&(t.runCommand(o),this.shouldRunSwVisibility=!1),t.getModel().runDefault(),i.forEach((function(t){return t.set("visible",!0)})),t.Canvas.getElement().setAttribute("style",""),r&&t.select(r),delete this.selected,this.helper&&(this.helper.style.display="none"),t.refresh(),this.tglEffects()}}},7604:(t,e,n)=>{n.r(e),n.d(e,{default:()=>o});var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},r.apply(this,arguments)};const o={run:function(t,e,n){var o=n||{},i=t.Canvas,a=i.getCanvasView(),s=r({appendTo:i.getResizerEl(),prefix:t.getConfig().stylePrefix,posFetcher:a.getElementPos.bind(a),mousePosFetcher:i.getMouseRelativePos.bind(i)},o.options||{}),l=this.canvasResizer;return l&&!o.forceNew||(this.canvasResizer=new t.Utils.Resizer(s),l=this.canvasResizer),l.setOptions(s,!0),l.blur(),l.focus(o.el),l},stop:function(){var t;null===(t=this.canvasResizer)||void 0===t||t.blur()}}},4596:(t,e,n)=>{n.r(e),n.d(e,{default:()=>T});var r,o=n(5706),i=n(1749),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});const s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a(e,t),e.prototype.defaults=function(){return{command:"",attributes:{}}},e}(i.Kx);var l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e}(i.pM);const u=c;c.prototype.model=s;var p=n(91),d=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),f=function(){return f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},f.apply(this,arguments)},h=function(t){function e(e){var n=t.call(this,e)||this;return n.em=e.config.em,n}return d(e,t),e.prototype.events=function(){return this.model.get("events")||{mousedown:"handleClick"}},e.prototype.attributes=function(){return this.model.get("attributes")},e.prototype.handleClick=function(t){t.preventDefault(),t.stopPropagation();var e=this.em,n=e.Canvas.getFrameEl().getBoundingClientRect(),r=n.left,o=n.top,i=f(f({},t),{clientX:t.clientX-r,clientY:t.clientY-o});e.trigger("toolbar:run:before",{event:i}),this.execCommand(i)},e.prototype.execCommand=function(t){var e=this.em,n={event:t},r=this.model.get("command"),i=e.Editor;(0,o.isFunction)(r)&&r(i,null,n),(0,o.isString)(r)&&i.runCommand(r,n)},e.prototype.render=function(){var t=this,e=t.em,n=t.$el,r=t.model,o=r.get("id"),i=r.get("label"),a=e.getConfig().stylePrefix;return n.addClass("".concat(a,"toolbar-item")),o&&n.addClass("".concat(a,"toolbar-item__").concat(o)),i&&n.append(i),this},e}(i.Ss);const g=h;var m=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=function(t){function e(e){var n=t.call(this,e)||this,r=e.em;return n.em=r,n.config={em:r},n.listenTo(n.collection,"reset",n.render),n}return m(e,t),e.prototype.onRender=function(){var t=this.em.config.stylePrefix;this.el.className="".concat(t,"toolbar-items")},e}(p.A);const y=v;v.prototype.itemView=g;var b,_=n(2097),w=n(9195),E=n(2820),x=n(3172),C=function(){return C=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},C.apply(this,arguments)};const T={activeResizer:!1,init:function(){this.onSelect=(0,o.debounce)(this.onSelect,0),(0,o.bindAll)(this,"onHover","onOut","onClick","onFrameScroll","onFrameResize","onFrameUpdated","onContainerChange")},enable:function(){this.frameOff=this.canvasOff=this.adjScroll=null,this.startSelectComponent(),b=!0},startSelectComponent:function(){this.toggleSelectComponent(1),this.em.getSelected()&&this.onSelect()},stopSelectComponent:function(){this.toggleSelectComponent()},toggleSelectComponent:function(t){var e=this,n=this.em,r=n.getConfig().listenToEl,o=n.getContainer().parentNode,i=t?"on":"off",a={on:_.on,off:_.AU},s=x.I.update;!r.length&&o&&r.push(o),a[i](window,"resize",this.onFrameUpdated),a[i](r,"scroll",this.onContainerChange),n[i]("component:toggled ".concat(s," undo redo"),this.onSelect,this),n[i]("change:componentHovered",this.onHovered,this),n[i]("component:resize styleable:change component:input",this.updateGlobalPos,this),n[i]("".concat(s,":toolbar"),this._upToolbar,this),n[i]("frame:updated",this.onFrameUpdated,this),n[i]("canvas:updateTools",this.onFrameUpdated,this),n[i](n.Canvas.events.refresh,this.updateAttached,this),n.Canvas.getFrames().forEach((function(t){var n=t.view,r=null==n?void 0:n.getWindow();r&&function(t,n){a[i](n,"mouseover",e.onHover),a[i](n,"mouseleave",e.onOut),a[i](n,"click",e.onClick),a[i](t,"scroll",e.onFrameScroll,!0),a[i](t,"resize",e.onFrameResize)}(r,null==n?void 0:n.getBody())}))},onHover:function(t){t.stopPropagation();var e=this.em,n=t.target,r=(0,w.getComponentView)(n),o=null==r?void 0:r.frameView,i=null==r?void 0:r.model;if(!i)for(var a=n.parentNode;!i&&a&&!(0,_.ZQ)(a);)i=(0,w.getComponentModel)(a),a=a.parentNode;this.currentDoc=n.ownerDocument,e.setHovered(i,{useValid:!0}),o&&e.setCurrentFrame(o)},onFrameUpdated:function(){this.updateLocalPos(),this.updateGlobalPos()},onHovered:function(t,e){var n,r=this,o={};e?null===(n=e.views)||void 0===n||n.forEach((function(t){var n=t.el,i=r.getElementPos(n);o={el:n,pos:i,component:e,view:(0,w.getViewEl)(n)},n.ownerDocument===r.currentDoc&&(r.elHovered=o),r.updateToolsLocal(o)})):(this.currentDoc=null,this.elHovered=0,this.updateToolsLocal(),this.canvas.getFrames().forEach((function(t){var e=t.view,n=e&&e.getToolsEl();n&&r.toggleToolsEl(0,0,{el:n})})))},onSelect:function(){var t=this.em,e=t.getSelected(),n=t.getCurrentFrame(),r=e&&e.getView(null==n?void 0:n.model),o=r&&r.el,i={};o&&(0,_.zN)(o)&&(i={el:o,pos:this.getElementPos(o),component:e,view:(0,w.getViewEl)(o)}),this.elSelected=i,this.updateToolsGlobal(),this.updateLocalPos(i),this.initResize(e)},updateGlobalPos:function(){var t=this.getElSelected();t.el&&(t.pos=this.getElementPos(t.el),this.updateToolsGlobal())},updateLocalPos:function(t){var e=this.getElHovered();e.el&&(e.pos=this.getElementPos(e.el),this.updateToolsLocal(t))},getElHovered:function(){return this.elHovered||{}},getElSelected:function(){return this.elSelected||{}},onOut:function(){this.em.setHovered()},toggleToolsEl:function(t,e,n){void 0===n&&(n={});var r=n.el||this.canvas.getToolsEl(e);return r&&(r.style.display=t?"":"none"),r||{}},showElementOffset:function(t,e,n){void 0===n&&(n={}),b&&this.editor.runCommand("show-offset",{el:t,elPos:e,view:n.view,force:1,top:0,left:0})},hideElementOffset:function(t){this.editor.stopCommand("show-offset",{view:t})},showFixedElementOffset:function(t,e){this.editor.runCommand("show-offset",{el:t,elPos:e,state:"Fixed"})},hideFixedElementOffset:function(){this.editor&&this.editor.stopCommand("show-offset",{state:"Fixed"})},hideHighlighter:function(t){this.canvas.getHighlighter(t).style.opacity=0},onClick:function(t){t.stopPropagation(),t.preventDefault();var e=this.em;if(e.get("_cmpDrag"))return e.set("_cmpDrag");var n=t.target,r=(0,w.getComponentModel)(n);if(!r)for(var o=n.parentNode;!r&&o&&!(0,_.ZQ)(o);)r=(0,w.getComponentModel)(o),o=o.parentNode;if(r){if(e.isEditing()&&(!r.get("textable")&&r.isChildOf("text")||e.getEditing()!==r))return;this.select(r,t)}},select:function(t,e){if(void 0===e&&(e={}),t){var n=this.em;n.setSelected(t,{event:e,useValid:!0}),this.initResize(n.getSelected())}},updateBadge:function(t,e,n){void 0===n&&(n={});var r=this.canvas,o=(0,w.getComponentModel)(t),i=this.getBadge(n),a=i.style;if(o&&o.get("badgable")){if(!n.posOnly){var s=this.canvas.getConfig(),l=o.getIcon(),c=s.pStylePrefix||"",u="".concat(c,"badge"),p=s.customBadgeLabel,d="".concat(l?'<div class="'.concat(u,'__icon">').concat(l,"</div>"):"",'\n        <div class="').concat(u,'__name">').concat(o.getName(),"</div>");i.innerHTML=p?p(o):d}a.display="block";var f=r.getTargetToElementFixed(t,i,{pos:e}).top,h=n.leftOff<0?-n.leftOff:0;a.top=f+"px",a.left=h+"px"}else a.display="none"},showHighlighter:function(t){this.canvas.getHighlighter(t).style.opacity=""},initResize:function(t){var e=this.em,n=this.canvas,r=e.Editor,i=!(0,o.isElement)(t)&&(0,_.GW)(t)?t:e.getSelected(),a=null==i?void 0:i.get("resizable"),s=E.F.Resize,l=n.hasCustomSpot(s);if(n.removeSpots({type:s}),i&&a){n.addSpot({type:s,component:i});var c,u=(0,o.isElement)(t)?t:i.getEl(),p=(0,w.isObject)(a)?a:{},d=p.onStart,f=void 0===d?function(){}:d,h=p.onMove,g=void 0===h?function(){}:h,m=p.onEnd,v=void 0===m?function(){}:m,y=p.updateTarget,x=void 0===y?function(){}:y,T=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(p,["onStart","onMove","onEnd","updateTarget"]);if(l||!u||this.activeResizer)return;var A=e.config.stylePrefix||"",O="".concat(A,"resizing"),S=this,k={component:i,el:u},P=function(t,e,n){var r=n.docs;r&&r.forEach((function(e){var n=e.body,r=n.className||"";n.className=("add"==t?"".concat(r," ").concat(O):r.replace(O,"")).trim()}))},j=C({onStart:function(t,o){f(t,o);var a=o.el,s=o.config,l=o.resizer,u=s.keyHeight,p=s.keyWidth,d=s.currentUnit,h=s.keepAutoHeight,g=s.keepAutoWidth;P("add",0,o),c=e.Styles.getModelToStyle(i),n.toggleFramesEvents(!1);var m=getComputedStyle(a),v=c.getStyle(),y=v[p];s.autoWidth=g&&"auto"===y,isNaN(parseFloat(y))&&(y=m[p]);var _=v[u];s.autoHeight=h&&"auto"===_,isNaN(parseFloat(_))&&(_=m[u]),l.startDim.w=parseFloat(y),l.startDim.h=parseFloat(_),b=!1,d&&(s.unitHeight=(0,w.getUnitFromValue)(_),s.unitWidth=(0,w.getUnitFromValue)(y)),S.activeResizer=!0,r.trigger("component:resize",C(C({},k),{type:"start"}))},onMove:function(t){g(t),r.trigger("component:resize",C(C({},k),{type:"move"}))},onEnd:function(t,e){v(t,e),P("remove",0,e),r.trigger("component:resize",C(C({},k),{type:"end"})),n.toggleFramesEvents(!0),b=!0,S.activeResizer=!1},updateTarget:function(t,r,o){if(x(t,r,o),c){var a=o.store,s=o.selectedHandler,l=o.config,u=l.keyHeight,p=l.keyWidth,d=l.autoHeight,f=l.autoWidth,h=l.unitWidth,g=l.unitHeight,m=["tc","bc"].indexOf(s)>=0,v=["cl","cr"].indexOf(s)>=0,y={};if(!m){var b=n.getBody().offsetWidth,_=r.w<b?r.w:b;y[p]=f?"auto":"".concat(_).concat(h)}v||(y[u]=d?"auto":"".concat(r.h).concat(g)),e.getDragMode(i)&&(y.top="".concat(r.t).concat(g),y.left="".concat(r.l).concat(h));var w=C(C({},y),{__p:!a});c.addStyle(w,{avoidStore:!a}),e.Styles.__emitCmpStyleUpdate(w,{components:e.getSelected()})}}},T);this.resizer=r.runCommand("resize",{el:u,options:j,force:1})}else{if(l)return;r.stopCommand("resize"),this.resizer=null}},updateToolbar:function(t){var e=this.canvas,n=this.config.em,r=t===n?n.getSelected():t,o=e.getToolbarEl(),i=o.style,a=r.get("toolbar"),s=n.config.showToolbar,l=!e.hasCustomSpot(E.F.Select);if(r&&s&&a&&a.length&&l){if(i.display="",!this.toolbar){o.innerHTML="",this.toolbar=new u(a);var c=new y({collection:this.toolbar,em:n});o.appendChild(c.render().el)}this.toolbar.reset(a),i.top="-100px",i.left="0"}else i.display="none"},updateToolbarPos:function(t){var e=this.canvas.getToolbarEl().style;e.top="".concat(t.top).concat("px"),e.left="".concat(t.left).concat("px"),e.opacity=""},getCanvasPosition:function(){return this.canvas.getCanvasView().getPosition()},getBadge:function(t){return void 0===t&&(t={}),this.canvas.getBadgeEl(t.view)},onFrameScroll:function(){this.updateTools(),this.canvas.refreshSpots()},onFrameResize:function(){this.canvas.refresh({all:!0})},updateTools:function(){this.updateLocalPos(),this.updateGlobalPos()},isCompSelected:function(t){return t&&"selected"===t.get("status")},updateToolsLocal:function(t){var e=this.em.getConfig(),n=t||this.getElHovered(),r=n.el,o=n.pos,i=n.view,a=n.component;if(r){var s=a.get("hoverable"),l=this.lastHovered!==r,c=l?{}:{posOnly:1},u=this.canvas.hasCustomSpot(E.F.Hover);l&&s&&(this.lastHovered=r,u?this.hideHighlighter(i):this.showHighlighter(i),this.showElementOffset(r,o,{view:i})),this.isCompSelected(a)&&(this.hideHighlighter(i),!e.showOffsetsSelected&&this.hideElementOffset(i));var p="px",d=this.toggleToolsEl(1,i),f=d.style,h=this.canvas.canvasRectOffset(r,o),g=h.top,m=h.left;!u&&this.updateBadge(r,o,C(C({},c),{view:i,topOff:g,leftOff:m})),f.top=g+p,f.left=m+p,f.width=o.width+p,f.height=o.height+p,this._trgToolUp("local",{component:a,el:d,top:g,left:m,width:o.width,height:o.height})}else this.lastHovered=0},_upToolbar:(0,o.debounce)((function(){this.updateToolsGlobal({force:1})}),0),_trgToolUp:function(t,e){void 0===e&&(e={}),this.em.trigger("canvas:tools:update",C({type:t},e))},updateToolsGlobal:function(t){void 0===t&&(t={});var e=this.getElSelected(),n=e.el,r=e.pos,o=e.component;if(!n)return this.toggleToolsEl(),void(this.lastSelected=0);var i=this.canvas;(this.lastSelected!==n||t.force)&&(this.lastSelected=n,this.updateToolbar(o));var a="px",s=this.toggleToolsEl(1),l=s.style,c=i.getTargetToElementFixed(n,i.getToolbarEl(),{pos:r}),u=c.canvasOffsetTop,p=c.canvasOffsetLeft;l.top=u+a,l.left=p+a,l.width=r.width+a,l.height=r.height+a,this.updateToolbarPos({top:c.top,left:c.left}),this._trgToolUp("global",{component:o,el:s,top:u,left:p,width:r.width,height:r.height})},updateAttached:(0,o.debounce)((function(){this.updateGlobalPos()}),0),onContainerChange:(0,o.debounce)((function(){this.em.refreshCanvas()}),150),getElementPos:function(t){return this.canvas.getCanvasView().getElementPos(t,{noScroll:!0})},hideBadge:function(){this.getBadge().style.display="none"},cleanPrevious:function(t){t&&t.set({status:"",state:""})},getContentWindow:function(){return this.canvas.getWindow()},run:function(t){(0,w.hasWin)()&&(this.editor=t&&t.get("Editor"),this.enable())},stop:function(t,e,n){if(void 0===n&&(n={}),(0,w.hasWin)()){var r=this.em,o=this.editor;this.onHovered(),this.stopSelectComponent(),!n.preserveSelected&&r.setSelected(),this.toggleToolsEl(),o&&o.stopCommand("resize")}}}},2983:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});var r=n(6411),o=n(6778),i=n(2128);const a={startSelectPosition:function(t,e,n){void 0===n&&(n={}),this.isPointed=!1;var r=this.em.Utils,a=t[0].ownerDocument.body;r&&(this.sorter=new r.ComponentSorter({em:this.em,treeClass:o.A,containerContext:{container:a,containerSel:"*",itemSel:"*",pfx:this.ppfx,document:e,placeholderElement:this.canvas.getPlacerEl()},positionOptions:{windowMargin:1,canvasRelative:!0},dragBehavior:{dragDirection:i.A.BothDirections,nested:!0}})),n.onStart&&(this.sorter.eventHandlers.legacyOnStartSort=n.onStart),t&&t.length>0&&this.sorter.startSort(t.map((function(t){return{element:t}})))},getOffsetDim:function(){var t=this.offset(this.canvas.getFrameEl()),e=this.offset(this.canvas.getElement());return{top:t.top-e.top,left:t.left-e.left}},stopSelectPosition:function(){this.posTargetCollection=null,this.posIndex="after"==this.posMethod&&0!==this.cDim.length?this.posIndex+1:this.posIndex,this.sorter&&this.sorter.cancelDrag(),this.cDim&&(this.posIsLastEl=0!==this.cDim.length&&"after"==this.posMethod&&this.posIndex==this.cDim.length,this.posTargetEl=0===this.cDim.length?(0,r.default)(this.outsideElem):!this.posIsLastEl&&this.cDim[this.posIndex]?(0,r.default)(this.cDim[this.posIndex][5]).parent():(0,r.default)(this.outsideElem),this.posTargetModel=this.posTargetEl.data("model"),this.posTargetCollection=this.posTargetEl.data("model-comp"))},enable:function(){this.startSelectPosition()},nearFloat:function(t,e,n){var r=t||0,o=e||"before",i=n.length,a=0!==i&&"after"==o&&r==i;return 0!==i&&(!a&&!n[r][4]||n[r-1]&&!n[r-1][4]||a&&!n[r-1][4])?1:0},run:function(){this.enable()},stop:function(){this.stopSelectPosition(),this.$wrapper.css("cursor",""),this.$wrapper.unbind()}}},9490:(t,e,n)=>{n.r(e),n.d(e,{default:()=>s});var r=n(5706),o=n(2820),i=n(6411),a=function(){return a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)};const s={getOffsetMethod:function(t){return"get"+(t||"")+"OffsetViewerEl"},run:function(t,e,n){var s=this.canvas,l=n||{},c=l.state||"",u=t.getConfig(),p=this.em.getZoomDecimal(),d=l.el;if(u.showOffsets&&d instanceof HTMLElement&&(u.showOffsetsSelected||"Fixed"!=c)){if(!s.hasCustomSpot(o.F.Spacing)){var f=a({},l.elPos||s.getElementPos(d));(0,r.isUndefined)(l.top)||(f.top=l.top),(0,r.isUndefined)(l.left)||(f.left=l.left);var h=window.getComputedStyle(d),g=this.ppfx,m=c+"State",v=s[this.getOffsetMethod(c)](n.view);v.style.opacity="";var y=this["marginT"+c],b=this["marginB"+c],_=this["marginL"+c],w=this["marginR"+c],E=this["padT"+c],x=this["padB"+c],C=this["padL"+c],T=this["padR"+c];if(v.childNodes.length&&(this[m]="1",y=v.querySelector("[data-offset-m-t]"),b=v.querySelector("[data-offset-m-b]"),_=v.querySelector("[data-offset-m-l]"),w=v.querySelector("[data-offset-m-r]"),E=v.querySelector("[data-offset-p-t]"),x=v.querySelector("[data-offset-p-b]"),C=v.querySelector("[data-offset-p-l]"),T=v.querySelector("[data-offset-p-r]")),!this[m]){var A=c.toLowerCase(),O=A+"margin-v",S=A+"padding-v",k=(0,i.default)('<div class="'.concat(g,'marginName">')).get(0),P=(0,i.default)('<div class="'.concat(g,'paddingName">')).get(0),j=g+S+"-el",N="".concat(g+O+"-el"," ").concat(g+O),L="".concat(j," ").concat(g+S);y=(0,i.default)('<div class="'.concat(N,'-top"></div>')).get(0),b=(0,i.default)('<div class="'.concat(N,'-bottom"></div>')).get(0),_=(0,i.default)('<div class="'.concat(N,'-left"></div>')).get(0),w=(0,i.default)('<div class="'.concat(N,'-right"></div>')).get(0),E=(0,i.default)('<div class="'.concat(L,'-top"></div>')).get(0),x=(0,i.default)('<div class="'.concat(L,'-bottom"></div>')).get(0),C=(0,i.default)('<div class="'.concat(L,'-left"></div>')).get(0),T=(0,i.default)('<div class="'.concat(L,'-right"></div>')).get(0),this["marginT"+c]=y,this["marginB"+c]=b,this["marginL"+c]=_,this["marginR"+c]=w,this["padT"+c]=E,this["padB"+c]=x,this["padL"+c]=C,this["padR"+c]=T,k.appendChild(y),k.appendChild(b),k.appendChild(_),k.appendChild(w),P.appendChild(E),P.appendChild(x),P.appendChild(C),P.appendChild(T),v.appendChild(k),v.appendChild(P),this[m]="1"}var D="px",I=parseFloat(h.marginLeft.replace(D,""))*p,R=parseFloat(h.marginRight.replace(D,""))*p,M=parseFloat(h.marginTop.replace(D,""))*p,B=parseFloat(h.marginBottom.replace(D,""))*p,F=y.style,U=b.style,H=_.style,V=w.style,q=E.style,z=x.style,W=C.style,G=T.style,Y=parseFloat(f.left),K=parseFloat(h.width)*p+D;F.height=M+D,F.width=K,F.top=f.top-M+D,F.left=Y+D,U.height=B+D,U.width=K,U.top=f.top+f.height+D,U.left=Y+D;var $=f.height+M+B+D,X=f.top-M+D;H.height=$,H.width=I+D,H.top=X,H.left=Y-I+D,V.height=$,V.width=R+D,V.top=X,V.left=Y+f.width+D;var Z=parseFloat(h.paddingTop)*p;q.height=Z+D;var Q=parseFloat(h.paddingBottom)*p;z.height=Q+D;var J=f.height-Q-Z+D,tt=f.top+Z+D;W.height=J,W.width=parseFloat(h.paddingLeft)*p+D,W.top=tt;var et=parseFloat(h.paddingRight)*p;G.height=J,G.width=et+D,G.top=tt}}else t.stopCommand("".concat(this.id),n)},stop:function(t,e,n){void 0===n&&(n={});var r=(n||{}).state||"",o=this.getOffsetMethod(r),i=n.view;this.canvas[o](i).style.opacity=0}}},1396:(t,e,n)=>{n.r(e),n.d(e,{default:()=>i});var r=n(5706),o=n(9195);const i={init:function(){(0,r.bindAll)(this,"_onFramesChange")},run:function(t){this.toggleVis(t,!0)},stop:function(t){this.toggleVis(t,!1)},toggleVis:function(t,e){if(void 0===e&&(e=!0),!t.Commands.isActive("preview")){var n=t.Canvas,r=e?"on":"off";n.getModel()[r]("change:frames",this._onFramesChange),this.handleFrames(n.getFrames(),e)}},handleFrames:function(t,e){var n=this;t.forEach((function(t){var r;(null===(r=t.view)||void 0===r?void 0:r.loaded)&&n._upFrame(t,e),t.__ol||(t.on("loaded",(function(){return n._upFrame(t)})),t.__ol=!0)}))},_onFramesChange:function(t,e){this.handleFrames(e)},_upFrame:function(t,e){var n,r=this,i=r.ppfx,a=r.em,s=r.id,l=((0,o.isDef)(e)?e:a.Commands.isActive(s))?"add":"remove",c="".concat(i,"dashed");null===(n=t.view)||void 0===n||n.getBody().classList[l](c)}}},1749:(t,e,n)=>{n.d(e,{Kx:()=>u,Ss:()=>d,e2:()=>c,lK:()=>f,pM:()=>p,x2:()=>o});var r,o,i=n(4193),a=n.n(i),s=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),l=function(){return l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},l.apply(this,arguments)},c="add remove reset change",u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(a().Model),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(a().Collection),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(a().View);!function(t){t.Screen="screen",t.World="world"}(o||(o={}));var f={x:0,y:0};l(l({},f),{width:0,height:0})},3172:(t,e,n)=>{var r,o;n.d(e,{I:()=>o,t:()=>r}),function(t){t.remove="component:remove",t.add="component:add",t.move="component:move"}(r||(r={})),function(t){t.add="component:add",t.remove="component:remove",t.removeBefore="component:remove:before",t.create="component:create",t.update="component:update",t.updateInside="component:update-inside",t.select="component:select",t.selectBefore="component:select:before",t.scriptMount="component:script:mount",t.scriptMountBefore="component:script:mount:before",t.scriptUnmount="component:script:unmount",t.symbolMainAdd="symbol:main:add",t.symbolMainUpdate="symbol:main:update",t.symbolMainUpdateDeep="symbol:main:update-deep",t.symbolMainRemove="symbol:main:remove",t.symbolMain="symbol:main",t.symbolInstanceAdd="symbol:instance:add",t.symbolInstanceRemove="symbol:instance:remove",t.symbolInstance="symbol:instance",t.symbol="symbol"}(o||(o={}))},91:(t,e,n)=>{n.d(e,{A:()=>l});var r,o=n(5706),i=n(1749),a=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e,n,r){void 0===e&&(e={}),void 0===r&&(r=!1);var o=t.call(this,e)||this;return o.itemsView="",o.itemType="type",o.reuseView=!1,o.config=n||e.config||{},r&&o.listenTo(o.collection,"add",o.addTo),o.items=[],o}return a(e,t),e.prototype.addTo=function(t){this.add(t)},e.prototype.itemViewNotFound=function(t){var e=this.config,n=this.ns,r=e.em,o="".concat(n?"[".concat(n,"]: "):"","'").concat(t,"' type not found");r&&r.logWarning(o)},e.prototype.add=function(t,e){var n,r=this,i=r.config,a=r.reuseView,s=r.items,l=this.itemsView||{},c=e||null,u=this.itemView,p=t.get(this.itemType);l[p]?u=l[p]:!p||l[p]||(0,o.includes)(["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],p)||this.itemViewNotFound(p),n=t.view&&a?t.view:new u({model:t,config:i},i),s&&s.push(n);var d=n.render().el;c?c.appendChild(d):this.$el.append(d)},e.prototype.render=function(){var t=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each((function(e){this.add(e,t)}),this),this.$el.append(t),this.onRender(),this},e.prototype.onRender=function(){},e.prototype.onRemoveBefore=function(t,e){},e.prototype.onRemove=function(t,e){},e.prototype.remove=function(e){void 0===e&&(e={});var n=this.items;return this.onRemoveBefore(n,e),this.clearItems(),t.prototype.remove.call(this),this.onRemove(n,e),this},e.prototype.clearItems=function(){this.items},e}(i.Ss);const l=s;s.prototype.itemView=""},5633:(t,e,n)=>{n.d(e,{A:()=>l});var r=n(5706),o=n(2097),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a=["x","y"],s=function(){function t(t){return void 0===t&&(t={}),this.opts={snapOffset:5,scale:1},(0,r.bindAll)(this,"drag","stop","keyHandle","handleScroll"),this.setOptions(t),this.delta={x:0,y:0},this.lastScroll={x:0,y:0},this.lastScrollDiff={x:0,y:0},this.startPointer={x:0,y:0},this.startPosition={x:0,y:0},this.globScrollDiff={x:0,y:0},this.currentPointer={x:0,y:0},this.position={x:0,y:0},this.guidesStatic=[],this.guidesTarget=[],this.docs=[],this}return t.prototype.setOptions=function(t){void 0===t&&(t={}),this.opts=i(i({},this.opts),t)},t.prototype.toggleDrag=function(t){var e=this.getDocumentEl(),n=this.getContainerEl(),r=this.getWindowEl(),i=t?"on":"off",a={on:o.on,off:o.AU};a[i](n,"mousemove dragover",this.drag),a[i](e,"mouseup dragend touchend",this.stop),a[i](e,"keydown",this.keyHandle),a[i](r,"scroll",this.handleScroll)},t.prototype.handleScroll=function(){var t=this.lastScroll,e=this.delta,n=this.getScrollInfo(),r={x:n.x-t.x,y:n.y-t.y};this.move(e.x+r.x,e.y+r.y),this.lastScrollDiff=r},t.prototype.start=function(t){var e=this.opts,n=e.onStart;this.toggleDrag(!0),this.startPointer=this.getPointerPos(t),this.guidesStatic=(0,r.result)(e,"guidesStatic")||[],this.guidesTarget=(0,r.result)(e,"guidesTarget")||[],(0,r.isFunction)(n)&&n(t,this),this.startPosition=this.getStartPosition(),this.lastScrollDiff={x:0,y:0},this.globScrollDiff={x:0,y:0},this.drag(t)},t.prototype.drag=function(t){var e=this,n=this,o=n.opts,s=n.lastScrollDiff,l=n.globScrollDiff,c=o.onDrag,u=this.startPointer,p=this.getPointerPos(t),d={x:l.x+s.x,y:l.y+s.y};this.globScrollDiff=d;var f={x:p.x-u.x+d.x,y:p.y-u.y+d.y};this.lastScrollDiff={x:0,y:0};var h=this.lockedAxis;"x"===(h=t.shiftKey?!h&&this.detectAxisLock(f.x,f.y):null)?f.x=u.x:"y"===h&&(f.y=u.y);var g=function(n){a.forEach((function(t){return n[t]=n[t]*(0,r.result)(o,"scale")})),e.delta=n,e.move(n.x,n.y),(0,r.isFunction)(c)&&c(t,e)},m=i({},f);if(this.currentPointer=p,this.lockedAxis=h,this.lastScroll=this.getScrollInfo(),g(f),this.guidesTarget.length){var v=this.snapGuides(m),y=v.newDelta,b=v.trgX,_=v.trgY;(b||_)&&g(y)}0===t.which&&this.stop(t)},t.prototype.snapGuides=function(t){var e=this,n=t,o=this.trgX,i=this.trgY;return this.guidesTarget.forEach((function(n){n.x&&e.trgX||n.y&&e.trgY||(n.active=!1,e.guidesStatic.forEach((function(a){if(!(n.y&&a.x||n.x&&a.y)){var s=n.y&&a.y,l=s?"y":"x",c=n[l],u=a[l],p=t[l],d=s?i:o;if(e.isPointIn(c,u)&&(0,r.isUndefined)(d)){var f=p-(c-u);e.setGuideLock(n,f)}}})))})),o=this.trgX,i=this.trgY,a.forEach((function(o){var i=o.toUpperCase(),a=e["trg".concat(i)];a&&!e.isPointIn(t[o],a.lock)&&(e.setGuideLock(a,null),a=null),a&&!(0,r.isUndefined)(a.lock)&&(n[o]=a.lock)})),{newDelta:n,trgX:this.trgX,trgY:this.trgY}},t.prototype.isPointIn=function(t,e,n){var r=(void 0===n?{}:n).offset||this.opts.snapOffset||0;return t>=e&&t<=e+r||t<=e&&t>=e-r},t.prototype.setGuideLock=function(t,e){var n=(0,r.isUndefined)(t.x)?"Y":"X",o="trg".concat(n);return null!==e?(t.active=!0,t.lock=e,this[o]=t):(delete t.active,delete t.lock,delete this[o]),t},t.prototype.stop=function(t,e){void 0===e&&(e={});var n=this.delta,o=!!e.cancel,i=o?0:n.x,a=o?0:n.y;this.toggleDrag(),this.lockedAxis=null,this.move(i,a,!0);var s=this.opts.onEnd;(0,r.isFunction)(s)&&s(t,this,{cancelled:o})},t.prototype.keyHandle=function(t){(0,o.v$)(t)&&this.stop(t,{cancel:!0})},t.prototype.move=function(t,e,n){var o=this.el,i=this.opts,a=this.startPosition;if(a){var s=i.setPosition,l=a.x+t,c=a.y+e;this.position={x:l,y:c,end:n},(0,r.isFunction)(s)&&s(this.position),o&&(o.style.left="".concat(l,"px"),o.style.top="".concat(c,"px"))}},t.prototype.getContainerEl=function(){var t=this.opts.container;return t?[t]:this.getDocumentEl()},t.prototype.getWindowEl=function(){return this.getContainerEl().map((function(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow}))},t.prototype.getDocumentEl=function(t){var e=this.opts.doc;if(t=t||this.el,!this.docs.length){var n=[document];t&&n.push(t.ownerDocument),e&&n.push(e),this.docs=n}return this.docs},t.prototype.getPointerPos=function(t){var e=this.opts.getPointerPosition,n=(0,o.G2)(t);return e?e(t):{x:n.clientX,y:n.clientY}},t.prototype.getStartPosition=function(){var t=this.el,e=this.opts.getPosition,n={x:0,y:0};return(0,r.isFunction)(e)?n=e():t&&(n={x:parseFloat(t.style.left),y:parseFloat(t.style.top)}),n},t.prototype.getScrollInfo=function(){var t=this.opts.doc,e=t&&t.body;return{y:e?e.scrollTop:0,x:e?e.scrollLeft:0}},t.prototype.detectAxisLock=function(t,e){var n=t,r=e,o=Math.abs(n),i=Math.abs(r);return r>=o||r<=-o?"x":n>i||n<-i?"y":void 0},t}();const l=s},6411:(t,e,n)=>{n.r(e),n.d(e,{default:()=>gt});var r="undefined"!=typeof document?document:null,o="undefined"!=typeof window?window:null,i=Array.prototype,a=i.filter,s=i.indexOf,l=i.map,c=i.push,u=i.reverse,p=i.slice,d=i.splice,f=/^#[\w-]*$/,h=/^\.[\w-]*$/,g=/<.+>/,m=/^\w+$/;function v(t,e){return void 0===e&&(e=r),h.test(t)?e.getElementsByClassName(t.slice(1)):m.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t)}function y(t,e){if(void 0===e&&(e=r),t){if(t.__cash)return t;var n=t;if(S(t)){if(e.__cash&&(e=e[0]),!(n=f.test(t)?e.getElementById(t.slice(1)):g.test(t)?dt(t):v(t,e)))return}else if(O(t))return this.ready(t);(n.nodeType||n===o)&&(n=[n]),this.length=n.length;for(var i=0,a=this.length;i<a;i++)this[i]=n[i]}}function b(t,e){return new y(t,e)}var _=b.fn=b.prototype=y.prototype={constructor:b,__cash:!0,length:0,splice:d};_.get=function(t){return void 0===t?p.call(this):this[t<0?t+this.length:t]},_.eq=function(t){return b(this.get(t))},_.first=function(){return this.eq(0)},_.last=function(){return this.eq(-1)},_.map=function(t){return b(l.call(this,(function(e,n){return t.call(e,n,e)})))},_.slice=function(){return b(p.apply(this,arguments))};var w=/(?:^\w|[A-Z]|\b\w)/g,E=/[\s-_]+/g;function x(t){return t.replace(w,(function(t,e){return t[e?"toUpperCase":"toLowerCase"]()})).replace(E,"")}function C(t,e){for(var n=0,r=t.length;n<r&&!1!==e.call(t[n],t[n],n,t);n++);}b.camelCase=x,b.each=C,_.each=function(t){return C(this,(function(e,n){return t.call(e,n,e)})),this},_.removeProp=function(t){return this.each((function(e,n){delete n[t]}))},b.extend=_.extend=function(t){void 0===t&&(t=this);for(var e=arguments,n=e.length,r=n<2?0:1;r<n;r++)for(var o in e[r])t[o]=e[r][o];return t};var T=1;function A(t,e){var n=t&&(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector);return!!n&&n.call(t,e)}function O(t){return"function"==typeof t}function S(t){return"string"==typeof t}function k(t){return!isNaN(parseFloat(t))&&isFinite(t)}b.guid=T,b.matches=A,b.isFunction=O,b.isString=S,b.isNumeric=k;var P=Array.isArray;function j(t){return S(t)?function(e,n){return A(n,t)}:t.__cash?function(e,n){return t.is(n)}:function(t,e,n){return e===n}}b.isArray=P,_.prop=function(t,e){if(t){if(S(t))return arguments.length<2?this[0]&&this[0][t]:this.each((function(n,r){r[t]=e}));for(var n in t)this.prop(n,t[n]);return this}},_.filter=function(t){if(!t)return b();var e=O(t)?t:j(t);return b(a.call(this,(function(n,r){return e.call(n,r,n,t)})))};var N=/\S+/g;function L(t){return S(t)&&t.match(N)||[]}function D(t){return t.filter((function(t,e,n){return n.indexOf(t)===e}))}function I(t,e,n){if(1===t.nodeType){var r=o.getComputedStyle(t,null);return e?n?r.getPropertyValue(e):r[e]:r}}function R(t,e){return parseInt(I(t,e),10)||0}_.hasClass=function(t){var e=L(t),n=!1;return e.length&&this.each((function(t,r){return!(n=r.classList.contains(e[0]))})),n},_.removeAttr=function(t){var e=L(t);return e.length?this.each((function(t,n){C(e,(function(t){n.removeAttribute(t)}))})):this},_.attr=function(t,e){if(t){if(S(t)){if(arguments.length<2){if(!this[0])return;var n=this[0].getAttribute(t);return null===n?void 0:n}return null===e?this.removeAttr(t):this.each((function(n,r){r.setAttribute(t,e)}))}for(var r in t)this.attr(r,t[r]);return this}},_.toggleClass=function(t,e){var n=L(t),r=void 0!==e;return n.length?this.each((function(t,o){C(n,(function(t){r?e?o.classList.add(t):o.classList.remove(t):o.classList.toggle(t)}))})):this},_.addClass=function(t){return this.toggleClass(t,!0)},_.removeClass=function(t){return arguments.length?this.toggleClass(t,!1):this.attr("class","")},b.unique=D,_.add=function(t,e){return b(D(this.get().concat(b(t,e).get())))};var M=/^--/;function B(t){return M.test(t)}var F={},U=r&&r.createElement("div"),H=U?U.style:{},V=["webkit","moz","ms","o"];function q(t,e){if(void 0===e&&(e=B(t)),e)return t;if(!F[t]){var n=x(t),r=""+n.charAt(0).toUpperCase()+n.slice(1);C((n+" "+V.join(r+" ")+r).split(" "),(function(e){if(e in H)return F[t]=e,!1}))}return F[t]}b.prefixedProp=q;var z={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function W(t,e,n){return void 0===n&&(n=B(t)),n||z[t]||!k(e)?e:e+"px"}_.css=function(t,e){if(S(t)){var n=B(t);return t=q(t,n),arguments.length<2?this[0]&&I(this[0],t,n):t?(e=W(t,e,n),this.each((function(r,o){1===o.nodeType&&(n?o.style.setProperty(t,e):o.style[t]=e)}))):this}for(var r in t)this.css(r,t[r]);return this};var G="__cashData",Y=/^data-(.*)/;function K(t){return t[G]=t[G]||{}}function $(t,e){var n=K(t);if(e){if(!(e in n)){var r=t.dataset?t.dataset[e]||t.dataset[x(e)]:b(t).attr("data-"+e);if(void 0!==r){try{r=JSON.parse(r)}catch(t){}n[e]=r}}return n[e]}return n}function X(t,e){return R(t,"border"+(e?"Left":"Top")+"Width")+R(t,"padding"+(e?"Left":"Top"))+R(t,"padding"+(e?"Right":"Bottom"))+R(t,"border"+(e?"Right":"Bottom")+"Width")}function Z(t,e){for(var n=0,r=e.length;n<r;n++)if(t.indexOf(e[n])<0)return!1;return!0}function Q(t,e,n){C(t[n],(function(t){t[0];var r=t[1];e.removeEventListener(n,r)})),delete t[n]}b.hasData=function(t){return G in t},_.data=function(t,e){var n=this;if(!t){if(!this[0])return;return C(this[0].attributes,(function(t){var e=t.name.match(Y);e&&n.data(e[1])})),$(this[0])}if(S(t))return void 0===e?this[0]&&$(this[0],t):this.each((function(n,r){return function(t,e,n){K(t)[e]=n}(r,t,e)}));for(var r in t)this.data(r,t[r]);return this},_.removeData=function(t){return this.each((function(e,n){return function(t,e){void 0===e?delete t[G]:delete K(t)[e]}(n,t)}))},C(["Width","Height"],(function(t){_["inner"+t]=function(){if(this[0])return this[0]===o?o["inner"+t]:this[0]["client"+t]}})),C(["width","height"],(function(t,e){_[t]=function(n){return this[0]?arguments.length?(n=parseInt(n,10),this.each((function(r,o){if(1===o.nodeType){var i=I(o,"boxSizing");o.style[t]=W(t,n+("border-box"===i?X(o,!e):0))}}))):this[0]===o?this[0][x("outer-"+t)]:this[0].getBoundingClientRect()[t]-X(this[0],!e):void 0===n?void 0:this}})),C(["Width","Height"],(function(t,e){_["outer"+t]=function(n){if(this[0])return this[0]===o?o["outer"+t]:this[0]["offset"+t]+(n?R(this[0],"margin"+(e?"Top":"Left"))+R(this[0],"margin"+(e?"Bottom":"Right")):0)}}));var J="__cashEvents";function tt(t){return t[J]=t[J]||{}}function et(t){var e=t.split(".");return[e[0],e.slice(1).sort()]}function nt(t,e,n,r){var o=tt(t);if(e){var i=o[e];if(!i)return;r&&(r.guid=r.guid||T++),o[e]=i.filter((function(o){var i=o[0],a=o[1];if(r&&a.guid!==r.guid||!Z(i,n))return!0;t.removeEventListener(e,a)}))}else if(n&&n.length)for(e in o)nt(t,e,n,r);else for(e in o)Q(o,t,e)}_.off=function(t,e){var n=this;return void 0===t?this.each((function(t,e){return nt(e)})):C(L(t),(function(t){var r=et(t),o=r[0],i=r[1];n.each((function(t,n){return nt(n,o,i,e)}))})),this},_.on=function(t,e,n,r){var o=this;if(!S(t)){for(var i in t)this.on(i,e,t[i]);return this}return O(e)&&(n=e,e=!1),C(L(t),(function(t){var i=et(t),a=i[0],s=i[1];o.each((function(t,o){var i=function t(i){if(!i.namespace||Z(s,i.namespace.split("."))){var l=o;if(e){for(var c=i.target;!A(c,e);){if(c===o)return;if(!(c=c.parentNode))return}l=c}i.namespace=i.namespace||"";var u=n.call(l,i,i.data);r&&nt(o,a,s,t),!1===u&&(i.preventDefault(),i.stopPropagation())}};i.guid=n.guid=n.guid||T++,function(t,e,n,r){r.guid=r.guid||T++;var o=tt(t);o[e]=o[e]||[],o[e].push([n,r]),t.addEventListener(e,r)}(o,a,s,i)}))})),this},_.one=function(t,e,n){return this.on(t,e,n,!0)},_.ready=function(t){var e=function(){return t(b)};return"loading"!==r.readyState?setTimeout(e):r.addEventListener("DOMContentLoaded",e),this},_.trigger=function(t,e){var n=t;if(S(t)){var o=et(t),i=o[0],a=o[1];(n=r.createEvent("HTMLEvents")).initEvent(i,!0,!0),n.namespace=a.join(".")}return n.data=e,this.each((function(t,e){e.dispatchEvent(n)}))};var rt=/select-one/i,ot=/select-multiple/i;function it(t){var e=t.type;return rt.test(e)?function(t){return t.selectedIndex<0?null:t.options[t.selectedIndex].value}(t):ot.test(e)?function(t){var e=[];return C(t.options,(function(t){!t.selected||t.disabled||t.parentNode.disabled||e.push(t.value)})),e}(t):t.value}var at=/%20/g,st=/file|reset|submit|button|image/i,lt=/radio|checkbox/i;_.serialize=function(){var t="";return this.each((function(e,n){C(n.elements||[n],(function(e){if(!e.disabled&&e.name&&"FIELDSET"!==e.tagName&&!st.test(e.type)&&(!lt.test(e.type)||e.checked)){var n=it(e);void 0!==n&&C(P(n)?n:[n],(function(n){t+=function(t,e){return"&"+encodeURIComponent(t)+"="+encodeURIComponent(e).replace(at,"+")}(e.name,n)}))}}))})),t.substr(1)},_.val=function(t){return void 0===t?this[0]&&it(this[0]):this.each((function(e,n){var r=ot.test(n.type),o=null===t?r?[]:"":t;r&&P(o)?C(n.options,(function(t){t.selected=o.indexOf(t.value)>=0})):n.value=o}))},_.clone=function(){return this.map((function(t,e){return e.cloneNode(!0)}))},_.detach=function(){return this.each((function(t,e){e.parentNode&&e.parentNode.removeChild(e)}))};var ct,ut=/^\s*<(\w+)[^>]*>/,pt=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/;function dt(t){if(function(){if(!ct){var t=r.createElement("table"),e=r.createElement("tr");ct={"*":r.createElement("div"),tr:r.createElement("tbody"),td:e,th:e,thead:t,tbody:t,tfoot:t}}}(),!S(t))return[];if(pt.test(t))return[r.createElement(RegExp.$1)];var e=ut.test(t)&&RegExp.$1,n=ct[e]||ct["*"];return n.innerHTML=t,b(n.childNodes).detach().get()}function ft(t,e,n){if(void 0!==e){var r=S(e);!r&&e.length?C(e,(function(e){return ft(t,e,n)})):C(t,r?function(t){t.insertAdjacentHTML(n?"afterbegin":"beforeend",e)}:function(t,r){return function(t,e,n){n?t.insertBefore(e,t.childNodes[0]):t.appendChild(e)}(t,r?e.cloneNode(!0):e,n)})}}b.parseHTML=dt,_.empty=function(){var t=this[0];if(t)for(;t.firstChild;)t.removeChild(t.firstChild);return this},_.append=function(){var t=this;return C(arguments,(function(e){ft(t,e)})),this},_.appendTo=function(t){return ft(b(t),this),this},_.html=function(t){if(void 0===t)return this[0]&&this[0].innerHTML;var e=t.nodeType?t[0].outerHTML:t;return this.each((function(t,n){n.innerHTML=e}))},_.insertAfter=function(t){var e=this;return b(t).each((function(t,n){var r=n.parentNode;e.each((function(e,o){r.insertBefore(t?o.cloneNode(!0):o,n.nextSibling)}))})),this},_.after=function(){var t=this;return C(u.apply(arguments),(function(e){u.apply(b(e).slice()).insertAfter(t)})),this},_.insertBefore=function(t){var e=this;return b(t).each((function(t,n){var r=n.parentNode;e.each((function(e,o){r.insertBefore(t?o.cloneNode(!0):o,n)}))})),this},_.before=function(){var t=this;return C(arguments,(function(e){b(e).insertBefore(t)})),this},_.prepend=function(){var t=this;return C(arguments,(function(e){ft(t,e,!0)})),this},_.prependTo=function(t){return ft(b(t),u.apply(this.slice()),!0),this},_.remove=function(){return this.detach().off()},_.replaceWith=function(t){var e=this;return this.each((function(n,r){var o=r.parentNode;if(o){var i=n?b(t).clone():b(t);if(!i[0])return e.remove(),!1;o.replaceChild(i[0],r),b(i[0]).after(i.slice(1))}}))},_.replaceAll=function(t){return b(t).replaceWith(this),this},_.text=function(t){return void 0===t?this[0]?this[0].textContent:"":this.each((function(e,n){n.textContent=t}))};var ht=r&&r.documentElement;_.offset=function(){var t=this[0];if(t){var e=t.getBoundingClientRect();return{top:e.top+o.pageYOffset-ht.clientTop,left:e.left+o.pageXOffset-ht.clientLeft}}},_.offsetParent=function(){return b(this[0]&&this[0].offsetParent)},_.position=function(){var t=this[0];if(t)return{left:t.offsetLeft,top:t.offsetTop}},_.children=function(t){var e=[];return this.each((function(t,n){c.apply(e,n.children)})),e=b(D(e)),t?e.filter((function(e,n){return A(n,t)})):e},_.contents=function(){var t=[];return this.each((function(e,n){c.apply(t,"IFRAME"===n.tagName?[n.contentDocument]:n.childNodes)})),b(t.length&&D(t))},_.find=function(t){for(var e=[],n=0,r=this.length;n<r;n++){var o=v(t,this[n]);o.length&&c.apply(e,o)}return b(e.length&&D(e))},_.has=function(t){var e=S(t)?function(e,n){return!!v(t,n).length}:function(e,n){return n.contains(t)};return this.filter(e)},_.is=function(t){if(!t||!this[0])return!1;var e=j(t),n=!1;return this.each((function(r,o){return!(n=e(r,o,t))})),n},_.next=function(){return b(this[0]&&this[0].nextElementSibling)},_.not=function(t){if(!t||!this[0])return this;var e=j(t);return this.filter((function(n,r){return!e(n,r,t)}))},_.parent=function(){var t=[];return this.each((function(e,n){n&&n.parentNode&&t.push(n.parentNode)})),b(D(t))},_.index=function(t){var e=t?b(t)[0]:this[0],n=t?this:b(e).parent().children();return s.call(n,e)},_.closest=function(t){return t&&this[0]?this.is(t)?this.filter(t):this.parent().closest(t):b()},_.parents=function(t){var e,n=[];return this.each((function(o,i){for(e=i;e&&e.parentNode&&e!==r.body.parentNode;)e=e.parentNode,(!t||t&&A(e,t))&&n.push(e)})),b(D(n))},_.prev=function(){return b(this[0]&&this[0].previousElementSibling)},_.siblings=function(){var t=this[0];return this.parent().children().filter((function(e,n){return n!==t}))};const gt=b},2097:(t,e,n)=>{n.d(e,{AU:()=>N,BC:()=>h,C8:()=>w,Ch:()=>C,Ci:()=>O,D8:()=>i,G2:()=>T,GW:()=>_,GZ:()=>m,I6:()=>c,LJ:()=>k,Sc:()=>f,X6:()=>u,Xy:()=>E,YZ:()=>s,ZQ:()=>a,a_:()=>g,af:()=>y,bG:()=>d,cx:()=>l,ir:()=>b,kk:()=>P,on:()=>j,rp:()=>S,v$:()=>A,yL:()=>v,zN:()=>p});var r=n(5706),o=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},i="transitionend oTransitionEnd transitionend webkitTransitionEnd",a=function(t){return(null==t?void 0:t.nodeType)===Node.DOCUMENT_NODE},s=function(t){var e=t&&t.parentNode;e&&e.removeChild(t)};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(Array.isArray(t[0])?t[0]:o([],t,!0)).filter(Boolean).join(" ")}var c=function(t,e){return t.querySelectorAll(e)},u=function(t,e){return void 0===e&&(e={}),t&&t.setAttribute&&(0,r.each)(e,(function(e,n){return t.setAttribute(n,e)}))},p=function(t){var e;return t&&!!(t.offsetWidth||t.offsetHeight||(null===(e=t.getClientRects)||void 0===e?void 0:e.call(t).length))},d=function(t,e){var n;null===(n=t.parentNode)||void 0===n||n.replaceChild(e,t)},f=function(t,e,n){var o=t.childNodes,i=o.length,a=(0,r.isUndefined)(n)?i:n;(0,r.isString)(e)&&(t.insertAdjacentHTML("beforeEnd",e),e=t.lastChild,t.removeChild(e)),a>=i?t.appendChild(e):t.insertBefore(e,o[a])},h=function(t,e){return f(t,e)},g=function(t,e,n){void 0===e&&(e={});var o=document.createElement(t);return e&&(0,r.each)(e,(function(t,e){return o.setAttribute(e,t)})),n&&((0,r.isString)(n)?o.innerHTML=n:o.appendChild(n)),o},m=function(t){return document.createTextNode(t)},v=function(t,e){var n,r=t.type;try{n=new window[e](r,t)}catch(t){(n=document.createEvent(e)).initEvent(r,!0,!0)}return n._parentEvent=t,0===r.indexOf("key")&&(n.keyCodeVal=t.keyCode,["keyCode","which"].forEach((function(t){Object.defineProperty(n,t,{get:function(){return this.keyCodeVal}})}))),n},y=function(t,e){void 0===e&&(e=[]),(Array.isArray(e)?e:[e]).forEach((function(e){var n=e.tag||"div",o=e.attributes||{},i=document.createElement(n);(0,r.each)(o,(function(t,e){i.setAttribute(e,t)})),t.appendChild(i)}))},b=function(t){return(null==t?void 0:t.nodeType)===Node.TEXT_NODE},_=function(t){return t&&!b(t)&&!function(t){return(null==t?void 0:t.nodeType)===Node.COMMENT_NODE}(t)},w=function(t){var e,n={top:0,left:0,width:0,height:0};if(!t)return n;if(b(t)){var r=document.createRange();r.selectNode(t),e=r.getBoundingClientRect(),r.detach()}return e||(t.getBoundingClientRect?t.getBoundingClientRect():n)},E=function(t){var e=(null==t?void 0:t.ownerDocument)||document,n=e.documentElement,r=e.defaultView||window;return{x:(r.pageXOffset||n.scrollLeft||0)-(n.clientLeft||0),y:(r.pageYOffset||n.scrollTop||0)-(n.clientTop||0)}},x=function(t){return t.which||t.keyCode},C=function(t){return String.fromCharCode(x(t))},T=function(t){return t.touches&&t.touches[0]?t.touches[0]:t},A=function(t){return 27===x(t)},O=function(t){return 13===x(t)},S=function(t){return function(t){return t.ctrlKey}(t)||t.metaKey},k=function(t){if(!t)return"";var e=t.name,n=t.publicId,r=t.systemId,o=n?' PUBLIC "'.concat(n,'"'):"",i=!n&&r?' SYSTEM "'.concat(r,'"'):"";return"<!DOCTYPE ".concat(e).concat(o).concat(i,">")},P=function(t){void 0===t&&(t={});var e=[];return(0,r.each)(t,(function(t,n){return e.push("".concat(n,'="').concat(t,'"'))})),e.join(" ")},j=function(t,e,n,o){var i=e.split(/\s+/),a=(0,r.isArray)(t)?t:[t];i.forEach((function(t){a.forEach((function(e){return null==e?void 0:e.addEventListener(t,n,o)}))}))},N=function(t,e,n,o){var i=e.split(/\s+/),a=(0,r.isArray)(t)?t:[t];i.forEach((function(t){a.forEach((function(e){return null==e?void 0:e.removeEventListener(t,n,o)}))}))}},9195:(t,e,n)=>{n.r(e),n.d(e,{appendStyles:()=>w,buildBase64UrlFromSvg:()=>z,camelCase:()=>T,capitalize:()=>R,createId:()=>q,deepMerge:()=>N,escape:()=>P,escapeNodeContent:()=>j,find:()=>k,get:()=>u,getComponentModel:()=>H,getComponentView:()=>U,getElement:()=>S,getGlobal:()=>m,getModel:()=>L,getUiClass:()=>_,getUnitFromValue:()=>x,getViewEl:()=>B,hasDnd:()=>O,hasWin:()=>g,isBultInMethod:()=>p,isComponent:()=>F,isDef:()=>h,isEmptyObj:()=>I,isObject:()=>D,isRule:()=>M,matches:()=>b,normalizeFloat:()=>A,normalizeKey:()=>d,setViewEl:()=>V,shallowDiff:()=>E,stringToPath:()=>c,toLowerCase:()=>v,upFirst:()=>C,wait:()=>f});var r=n(5706),o=n(2097),i=function(){return i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)},a={},s=/\\(\\)?/g,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(l,(function(t,n,r,o){return e.push(r?o.replace(s,"$1"):n||t),""})),e},u=function(t,e,n){for(var o,i=function(t,e){return(0,r.isArray)(t)?t:e.hasOwnProperty(t)?[t]:c(t)}(e,t),a=i.length,s=0;null!=t&&s<a;)t=t["".concat(i[s++])];return null!==(o=s&&s==a?t:void 0)&&void 0!==o?o:n},p=function(t){return(0,r.isFunction)(a[t])},d=function(t){return p(t)?"_".concat(t):t},f=function(t){return void 0===t&&(t=0),new Promise((function(e){return setTimeout(e,t)}))},h=function(t){return void 0!==t},g=function(){return"undefined"!=typeof window},m=function(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:n.g},v=function(t){return(t||"").toLowerCase()},y=g()?window.Element.prototype:{},b=y.matches||y.webkitMatchesSelector||y.mozMatchesSelector||y.msMatchesSelector,_=function(t,e){var n=t.getConfig(),r=n.stylePrefix;return[n.customUI&&"".concat(r,"cui"),e].filter((function(t){return t})).join(" ")},w=function(t,e){void 0===e&&(e={});var n=(0,r.isArray)(t)?function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],t,!0):[t];if(n.length){var o=n.shift();if(o&&(!e.unique||!document.querySelector('link[href="'.concat(o,'"]')))){var i=document.head,a=document.createElement("link");a.href=o,a.rel="stylesheet",e.prepand?i.insertBefore(a,i.firstChild):i.appendChild(a)}w(n)}},E=function(t,e){var n={},o=(0,r.keys)(e);for(var i in t)if(t.hasOwnProperty(i)){var a=t[i],s=e[i];o.indexOf(i)>=0?a!==s&&(n[i]=s):n[i]=null}for(var i in e)e.hasOwnProperty(i)&&(0,r.isUndefined)(t[i])&&(n[i]=e[i]);return n},x=function(t){return t.replace(parseFloat(t),"")},C=function(t){return t[0].toUpperCase()+t.toLowerCase().slice(1)},T=function(t){return t.replace(/-./g,(function(t){return t[1].toUpperCase()}))},A=function(t,e,n){void 0===e&&(e=1),void 0===n&&(n=0);var r=0;if(isNaN(t))return n;if(t=parseFloat(t),Math.floor(t)!==t){var o=e.toString().split(".")[1];r=o?o.length:0}return r?parseFloat(t.toFixed(r)):t},O=function(t){return"draggable"in document.createElement("i")&&(!t||t.config.nativeDnD)},S=function(t){return(0,r.isElement)(t)||(0,o.ir)(t)?t:t&&t.getEl?t.getEl():void 0},k=function(t,e){var n=null;return t.some((function(r,o){return e(r,o,t)?(n=r,1):0})),n},P=function(t){return void 0===t&&(t=""),"".concat(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/`/g,"&#96;")},j=function(t){return void 0===t&&(t=""),"".concat(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},N=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=i({},t[0]),r=1;r<t.length;r++){var o=i({},t[r]);for(var a in o){var s=n[a],l=o[a];D(s)&&D(l)?n[a]=N(s,l):n[a]=l}}return n},L=function(t,e){var n;return!e&&t&&t.__cashData?n=t.__cashData.model:e&&(0,r.isElement)(t)&&(n=e(t).data("model")),n},D=function(t){return t&&!Array.isArray(t)&&"object"==typeof t},I=function(t){return Object.keys(t).length<=0},R=function(t){return void 0===t&&(t=""),t&&t.charAt(0).toUpperCase()+t.substring(1)},M=function(t){return t&&t.toCSS},B=function(t){return null==t?void 0:t.__gjsv},F=function(t){return!!(null==t?void 0:t.toHTML)},U=function(t){return B(t)},H=function(t){var e;return null===(e=U(t))||void 0===e?void 0:e.model},V=function(t,e){t.__gjsv=e},q=function(t){void 0===t&&(t=16);for(var e="",n=0;n<t;n++)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return e},z=function(t){if(t&&"<svg"===t.substr(0,4)){var e="";return g()?e=window.btoa(t):"undefined"!=typeof Buffer&&(e=Buffer.from(t,"utf8").toString("base64")),e?"data:image/svg+xml;base64,".concat(e):t}return t}},3253:(t,e,n)=>{n.d(e,{h:()=>a});var r,o=n(3161),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.displayCache=new Map,e}return i(e,t),e.prototype.getChildren=function(){return this.getDisplayedChildren()},e.prototype.getDisplayedChildren=function(){var t=this;return this.model.components().filter((function(e){return t.isChildDisplayed(e)})).map((function(e){return new t.constructor(e)}))},e.prototype.isChildDisplayed=function(t){if(this.displayCache.has(t))return this.displayCache.get(t);var e,n=!!(e=t.getEl())&&"object"==typeof e&&e.nodeType===Node.ELEMENT_NODE&&"none"!==window.getComputedStyle(e).display&&e.offsetWidth>0&&e.offsetHeight>0;return this.displayCache.set(t,n),n},e.prototype.getParent=function(){var t=this.model.parent();return t?new this.constructor(t):null},e.prototype.addChildAt=function(t,e,n){var r,o,i,a,s,l,c,u;if(void 0===n&&(n={action:"add-component"}),(null===(o=null===(r=this.model)||void 0===r?void 0:r.isInstanceOf)||void 0===o?void 0:o.call(r,"text"))&&(null===(a=null===(i=null==t?void 0:t.model)||void 0===i?void 0:i.get)||void 0===a?void 0:a.call(i,"textable")))return null===(u=null===(c=null===(l=null===(s=this.model)||void 0===s?void 0:s.getView)||void 0===l?void 0:l.call(s))||void 0===c?void 0:c.insertComponent)||void 0===u?void 0:u.call(c,null==t?void 0:t.model,{action:n.action});var p=this.model.components().add(t.model,{at:this.getRealIndex(e),action:n.action});return new this.constructor(p)},e.prototype.removeChildAt=function(t,e){void 0===e&&(e={temporary:!1});var n=this.model.components().at(this.getRealIndex(t));n&&this.model.components().remove(n,e)},e.prototype.indexOfChild=function(t){return this.getDisplayIndex(t)},e.prototype.getDisplayIndex=function(t){var e=this.getDisplayedChildren();return e?e.findIndex((function(e){return e.model===t.model})):-1},e.prototype.getRealIndex=function(t){if(-1===t)return-1;for(var e=0,n=this.model.components(),r=0;r<n.length;r++){var o=n.at(r);if(this.isChildDisplayed(o)&&e++,e===t+1)return r}return-1},e.prototype.canMove=function(t,e){return this.model.em.Components.canMove(this.model,t.model,this.getRealIndex(e)).result},e.prototype.restNodeState=function(){this.clearState();var t=this.model;this.setContentEditable(!1),t.em.getEditing()===t&&this.disableEditing()},e.prototype.setContentEditable=function(t){this.element&&this.isTextNode()&&(this.element.contentEditable=t?"true":"false")},e.prototype.disableEditing=function(){var t,e;null===(e=null===(t=this.view)||void 0===t?void 0:t.disableEditing)||void 0===e||e.call(t)},e.prototype.clearState=function(){var t,e;null===(e=(t=this.model).set)||void 0===e||e.call(t,"status","")},e.prototype.setSelectedParentState=function(){var t,e;null===(e=(t=this.model).set)||void 0===e||e.call(t,"status","selected-parent")},e.prototype.isTextNode=function(){var t,e;return null===(e=(t=this.model).isInstanceOf)||void 0===e?void 0:e.call(t,"text")},e.prototype.isTextable=function(){var t,e;return null===(e=(t=this.model).get)||void 0===e?void 0:e.call(t,"textable")},e}(o.$)},6778:(t,e,n)=>{n.d(e,{A:()=>s});var r,o=n(3253),i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._dropAreaConfig={ratio:.8,minUndroppableDimension:1,maxUndroppableDimension:15},e}return i(e,t),Object.defineProperty(e.prototype,"view",{get:function(){var t,e;return null===(e=(t=this.model).getView)||void 0===e?void 0:e.call(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){var t,e;return null===(e=(t=this.model).getEl)||void 0===e?void 0:e.call(t)},enumerable:!1,configurable:!0}),e}(o.h);const s=a},3161:(t,e,n)=>{n.d(e,{$:()=>r});var r=function(){function t(t,e){void 0===e&&(e={}),this._dropAreaConfig={ratio:1,minUndroppableDimension:0,maxUndroppableDimension:0},this._model=t,this._dragSource=e}return Object.defineProperty(t.prototype,"model",{get:function(){return this._model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragSource",{get:function(){return this._dragSource},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropArea",{get:function(){var t,e;return this.getParent()?null===(e=this.nodeDimensions)||void 0===e?void 0:e.getDropArea(this._dropAreaConfig):null===(t=this.nodeDimensions)||void 0===t?void 0:t.clone()},enumerable:!1,configurable:!0}),t.prototype.isWithinDropBounds=function(t,e){return!!this.dropArea&&this.dropArea.isWithinBounds(t,e)},t.prototype.equals=function(t){return!!(null==t?void 0:t._model)&&this._model===t._model},t.prototype.adjustDimensions=function(t){var e,n;0===t.topDifference&&0===t.leftDifference||(null===(e=this.nodeDimensions)||void 0===e||e.adjustDimensions(t),null===(n=this.childrenDimensions)||void 0===n||n.forEach((function(e){return e.adjustDimensions(t)})))},t}()},2128:(t,e,n)=>{var r;n.d(e,{A:()=>r}),function(t){t.Vertical="Vertical",t.Horizontal="Horizontal",t.BothDirections="BothDirections"}(r||(r={}))},585:(t,e,n)=>{var r={"./CanvasClear":371,"./CanvasClear.ts":371,"./CanvasMove":6301,"./CanvasMove.ts":6301,"./CommandAbstract":5301,"./CommandAbstract.ts":5301,"./ComponentDelete":8542,"./ComponentDelete.ts":8542,"./ComponentDrag":1319,"./ComponentDrag.ts":1319,"./ComponentEnter":1859,"./ComponentEnter.ts":1859,"./ComponentExit":3709,"./ComponentExit.ts":3709,"./ComponentNext":2860,"./ComponentNext.ts":2860,"./ComponentPrev":4944,"./ComponentPrev.ts":4944,"./ComponentStyleClear":767,"./ComponentStyleClear.ts":767,"./CopyComponent":2126,"./CopyComponent.ts":2126,"./ExportTemplate":4860,"./ExportTemplate.ts":4860,"./Fullscreen":1085,"./Fullscreen.ts":1085,"./MoveComponent":9622,"./MoveComponent.ts":9622,"./OpenAssets":8481,"./OpenAssets.ts":8481,"./OpenBlocks":3666,"./OpenBlocks.ts":3666,"./OpenLayers":5838,"./OpenLayers.ts":5838,"./OpenStyleManager":8692,"./OpenStyleManager.ts":8692,"./OpenTraitManager":9163,"./OpenTraitManager.ts":9163,"./PasteComponent":9298,"./PasteComponent.ts":9298,"./Preview":8594,"./Preview.ts":8594,"./Resize":7604,"./Resize.ts":7604,"./SelectComponent":4596,"./SelectComponent.ts":4596,"./SelectPosition":2983,"./SelectPosition.ts":2983,"./ShowOffset":9490,"./ShowOffset.ts":9490,"./SwitchVisibility":1396,"./SwitchVisibility.ts":1396};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id=585},5706:(t,e,n)=>{n.r(e),n.d(e,{VERSION:()=>o,after:()=>De,all:()=>tn,allKeys:()=>mt,any:()=>en,assign:()=>Dt,before:()=>Ie,bind:()=>Ee,bindAll:()=>Te,chain:()=>ye,chunk:()=>Bn,clone:()=>Bt,collect:()=>Ke,compact:()=>On,compose:()=>Le,constant:()=>Q,contains:()=>nn,countBy:()=>gn,create:()=>Mt,debounce:()=>Pe,default:()=>qn,defaults:()=>It,defer:()=>Se,delay:()=>Oe,detect:()=>We,difference:()=>kn,drop:()=>Tn,each:()=>Ye,escape:()=>ae,every:()=>tn,extend:()=>Lt,extendOwn:()=>Dt,filter:()=>Qe,find:()=>We,findIndex:()=>Fe,findKey:()=>Me,findLastIndex:()=>Ue,findWhere:()=>Ge,first:()=>Cn,flatten:()=>Sn,foldl:()=>Xe,foldr:()=>Ze,forEach:()=>Ye,functions:()=>jt,get:()=>qt,groupBy:()=>fn,has:()=>zt,head:()=>Cn,identity:()=>Wt,include:()=>nn,includes:()=>nn,indexBy:()=>hn,indexOf:()=>qe,initial:()=>xn,inject:()=>Xe,intersection:()=>Ln,invert:()=>Pt,invoke:()=>rn,isArguments:()=>$,isArray:()=>G,isArrayBuffer:()=>M,isBoolean:()=>S,isDataView:()=>W,isDate:()=>L,isElement:()=>k,isEmpty:()=>lt,isEqual:()=>gt,isError:()=>I,isFinite:()=>X,isFunction:()=>U,isMap:()=>Ct,isMatch:()=>ct,isNaN:()=>Z,isNull:()=>A,isNumber:()=>N,isObject:()=>T,isRegExp:()=>D,isSet:()=>At,isString:()=>j,isSymbol:()=>R,isTypedArray:()=>ot,isUndefined:()=>O,isWeakMap:()=>Tt,isWeakSet:()=>Ot,iteratee:()=>Xt,keys:()=>st,last:()=>An,lastIndexOf:()=>ze,map:()=>Ke,mapObject:()=>Qt,matcher:()=>Gt,matches:()=>Gt,max:()=>sn,memoize:()=>Ae,methods:()=>jt,min:()=>ln,mixin:()=>Un,negate:()=>Ne,noop:()=>Jt,now:()=>re,object:()=>Rn,omit:()=>En,once:()=>Re,pairs:()=>kt,partial:()=>we,partition:()=>mn,pick:()=>wn,pluck:()=>on,property:()=>Yt,propertyOf:()=>te,random:()=>ne,range:()=>Mn,reduce:()=>Xe,reduceRight:()=>Ze,reject:()=>Je,rest:()=>Tn,restArguments:()=>C,result:()=>ge,sample:()=>cn,select:()=>Qe,shuffle:()=>un,size:()=>bn,some:()=>en,sortBy:()=>pn,sortedIndex:()=>He,tail:()=>Tn,take:()=>Cn,tap:()=>Ft,template:()=>he,templateSettings:()=>le,throttle:()=>ke,times:()=>ee,toArray:()=>yn,toPath:()=>Ut,transpose:()=>Dn,unescape:()=>se,union:()=>Nn,uniq:()=>jn,unique:()=>jn,uniqueId:()=>ve,unzip:()=>Dn,values:()=>St,where:()=>an,without:()=>Pn,wrap:()=>je,zip:()=>In});var r={};n.r(r),n.d(r,{VERSION:()=>o,after:()=>De,all:()=>tn,allKeys:()=>mt,any:()=>en,assign:()=>Dt,before:()=>Ie,bind:()=>Ee,bindAll:()=>Te,chain:()=>ye,chunk:()=>Bn,clone:()=>Bt,collect:()=>Ke,compact:()=>On,compose:()=>Le,constant:()=>Q,contains:()=>nn,countBy:()=>gn,create:()=>Mt,debounce:()=>Pe,default:()=>Hn,defaults:()=>It,defer:()=>Se,delay:()=>Oe,detect:()=>We,difference:()=>kn,drop:()=>Tn,each:()=>Ye,escape:()=>ae,every:()=>tn,extend:()=>Lt,extendOwn:()=>Dt,filter:()=>Qe,find:()=>We,findIndex:()=>Fe,findKey:()=>Me,findLastIndex:()=>Ue,findWhere:()=>Ge,first:()=>Cn,flatten:()=>Sn,foldl:()=>Xe,foldr:()=>Ze,forEach:()=>Ye,functions:()=>jt,get:()=>qt,groupBy:()=>fn,has:()=>zt,head:()=>Cn,identity:()=>Wt,include:()=>nn,includes:()=>nn,indexBy:()=>hn,indexOf:()=>qe,initial:()=>xn,inject:()=>Xe,intersection:()=>Ln,invert:()=>Pt,invoke:()=>rn,isArguments:()=>$,isArray:()=>G,isArrayBuffer:()=>M,isBoolean:()=>S,isDataView:()=>W,isDate:()=>L,isElement:()=>k,isEmpty:()=>lt,isEqual:()=>gt,isError:()=>I,isFinite:()=>X,isFunction:()=>U,isMap:()=>Ct,isMatch:()=>ct,isNaN:()=>Z,isNull:()=>A,isNumber:()=>N,isObject:()=>T,isRegExp:()=>D,isSet:()=>At,isString:()=>j,isSymbol:()=>R,isTypedArray:()=>ot,isUndefined:()=>O,isWeakMap:()=>Tt,isWeakSet:()=>Ot,iteratee:()=>Xt,keys:()=>st,last:()=>An,lastIndexOf:()=>ze,map:()=>Ke,mapObject:()=>Qt,matcher:()=>Gt,matches:()=>Gt,max:()=>sn,memoize:()=>Ae,methods:()=>jt,min:()=>ln,mixin:()=>Un,negate:()=>Ne,noop:()=>Jt,now:()=>re,object:()=>Rn,omit:()=>En,once:()=>Re,pairs:()=>kt,partial:()=>we,partition:()=>mn,pick:()=>wn,pluck:()=>on,property:()=>Yt,propertyOf:()=>te,random:()=>ne,range:()=>Mn,reduce:()=>Xe,reduceRight:()=>Ze,reject:()=>Je,rest:()=>Tn,restArguments:()=>C,result:()=>ge,sample:()=>cn,select:()=>Qe,shuffle:()=>un,size:()=>bn,some:()=>en,sortBy:()=>pn,sortedIndex:()=>He,tail:()=>Tn,take:()=>Cn,tap:()=>Ft,template:()=>he,templateSettings:()=>le,throttle:()=>ke,times:()=>ee,toArray:()=>yn,toPath:()=>Ut,transpose:()=>Dn,unescape:()=>se,union:()=>Nn,uniq:()=>jn,unique:()=>jn,uniqueId:()=>ve,unzip:()=>Dn,values:()=>St,where:()=>an,without:()=>Pn,wrap:()=>je,zip:()=>In});var o="1.13.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},a=Array.prototype,s=Object.prototype,l="undefined"!=typeof Symbol?Symbol.prototype:null,c=a.push,u=a.slice,p=s.toString,d=s.hasOwnProperty,f="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,g=Array.isArray,m=Object.keys,v=Object.create,y=f&&ArrayBuffer.isView,b=isNaN,_=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),E=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function C(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),o=0;o<n;o++)r[o]=arguments[o+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r);case 2:return t.call(this,arguments[0],arguments[1],r)}var i=Array(e+1);for(o=0;o<e;o++)i[o]=arguments[o];return i[e]=r,t.apply(this,i)}}function T(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function A(t){return null===t}function O(t){return void 0===t}function S(t){return!0===t||!1===t||"[object Boolean]"===p.call(t)}function k(t){return!(!t||1!==t.nodeType)}function P(t){var e="[object "+t+"]";return function(t){return p.call(t)===e}}const j=P("String"),N=P("Number"),L=P("Date"),D=P("RegExp"),I=P("Error"),R=P("Symbol"),M=P("ArrayBuffer");var B=P("Function"),F=i.document&&i.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof F&&(B=function(t){return"function"==typeof t||!1});const U=B,H=P("Object");var V=h&&H(new DataView(new ArrayBuffer(8))),q="undefined"!=typeof Map&&H(new Map),z=P("DataView");const W=V?function(t){return null!=t&&U(t.getInt8)&&M(t.buffer)}:z,G=g||P("Array");function Y(t,e){return null!=t&&d.call(t,e)}var K=P("Arguments");!function(){K(arguments)||(K=function(t){return Y(t,"callee")})}();const $=K;function X(t){return!R(t)&&_(t)&&!isNaN(parseFloat(t))}function Z(t){return N(t)&&b(t)}function Q(t){return function(){return t}}function J(t){return function(e){var n=t(e);return"number"==typeof n&&n>=0&&n<=x}}function tt(t){return function(e){return null==e?void 0:e[t]}}const et=tt("byteLength"),nt=J(et);var rt=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;const ot=f?function(t){return y?y(t)&&!W(t):nt(t)&&rt.test(p.call(t))}:Q(!1),it=tt("length");function at(t,e){e=function(t){for(var e={},n=t.length,r=0;r<n;++r)e[t[r]]=!0;return{contains:function(t){return e[t]},push:function(n){return e[n]=!0,t.push(n)}}}(e);var n=E.length,r=t.constructor,o=U(r)&&r.prototype||s,i="constructor";for(Y(t,i)&&!e.contains(i)&&e.push(i);n--;)(i=E[n])in t&&t[i]!==o[i]&&!e.contains(i)&&e.push(i)}function st(t){if(!T(t))return[];if(m)return m(t);var e=[];for(var n in t)Y(t,n)&&e.push(n);return w&&at(t,e),e}function lt(t){if(null==t)return!0;var e=it(t);return"number"==typeof e&&(G(t)||j(t)||$(t))?0===e:0===it(st(t))}function ct(t,e){var n=st(e),r=n.length;if(null==t)return!r;for(var o=Object(t),i=0;i<r;i++){var a=n[i];if(e[a]!==o[a]||!(a in o))return!1}return!0}function ut(t){return t instanceof ut?t:this instanceof ut?void(this._wrapped=t):new ut(t)}function pt(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,et(t))}ut.VERSION=o,ut.prototype.value=function(){return this._wrapped},ut.prototype.valueOf=ut.prototype.toJSON=ut.prototype.value,ut.prototype.toString=function(){return String(this._wrapped)};var dt="[object DataView]";function ft(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var o=typeof t;return("function"===o||"object"===o||"object"==typeof e)&&ht(t,e,n,r)}function ht(t,e,n,r){t instanceof ut&&(t=t._wrapped),e instanceof ut&&(e=e._wrapped);var o=p.call(t);if(o!==p.call(e))return!1;if(V&&"[object Object]"==o&&W(t)){if(!W(e))return!1;o=dt}switch(o){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return l.valueOf.call(t)===l.valueOf.call(e);case"[object ArrayBuffer]":case dt:return ht(pt(t),pt(e),n,r)}var i="[object Array]"===o;if(!i&&ot(t)){if(et(t)!==et(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;i=!0}if(!i){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(U(a)&&a instanceof a&&U(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}r=r||[];for(var c=(n=n||[]).length;c--;)if(n[c]===t)return r[c]===e;if(n.push(t),r.push(e),i){if((c=t.length)!==e.length)return!1;for(;c--;)if(!ft(t[c],e[c],n,r))return!1}else{var u,d=st(t);if(c=d.length,st(e).length!==c)return!1;for(;c--;)if(!Y(e,u=d[c])||!ft(t[u],e[u],n,r))return!1}return n.pop(),r.pop(),!0}function gt(t,e){return ft(t,e)}function mt(t){if(!T(t))return[];var e=[];for(var n in t)e.push(n);return w&&at(t,e),e}function vt(t){var e=it(t);return function(n){if(null==n)return!1;var r=mt(n);if(it(r))return!1;for(var o=0;o<e;o++)if(!U(n[t[o]]))return!1;return t!==Et||!U(n[yt])}}var yt="forEach",bt=["clear","delete"],_t=["get","has","set"],wt=bt.concat(yt,_t),Et=bt.concat(_t),xt=["add"].concat(bt,yt,"has");const Ct=q?vt(wt):P("Map"),Tt=q?vt(Et):P("WeakMap"),At=q?vt(xt):P("Set"),Ot=P("WeakSet");function St(t){for(var e=st(t),n=e.length,r=Array(n),o=0;o<n;o++)r[o]=t[e[o]];return r}function kt(t){for(var e=st(t),n=e.length,r=Array(n),o=0;o<n;o++)r[o]=[e[o],t[e[o]]];return r}function Pt(t){for(var e={},n=st(t),r=0,o=n.length;r<o;r++)e[t[n[r]]]=n[r];return e}function jt(t){var e=[];for(var n in t)U(t[n])&&e.push(n);return e.sort()}function Nt(t,e){return function(n){var r=arguments.length;if(e&&(n=Object(n)),r<2||null==n)return n;for(var o=1;o<r;o++)for(var i=arguments[o],a=t(i),s=a.length,l=0;l<s;l++){var c=a[l];e&&void 0!==n[c]||(n[c]=i[c])}return n}}const Lt=Nt(mt),Dt=Nt(st),It=Nt(mt,!0);function Rt(t){if(!T(t))return{};if(v)return v(t);var e=function(){};e.prototype=t;var n=new e;return e.prototype=null,n}function Mt(t,e){var n=Rt(t);return e&&Dt(n,e),n}function Bt(t){return T(t)?G(t)?t.slice():Lt({},t):t}function Ft(t,e){return e(t),t}function Ut(t){return G(t)?t:[t]}function Ht(t){return ut.toPath(t)}function Vt(t,e){for(var n=e.length,r=0;r<n;r++){if(null==t)return;t=t[e[r]]}return n?t:void 0}function qt(t,e,n){var r=Vt(t,Ht(e));return O(r)?n:r}function zt(t,e){for(var n=(e=Ht(e)).length,r=0;r<n;r++){var o=e[r];if(!Y(t,o))return!1;t=t[o]}return!!n}function Wt(t){return t}function Gt(t){return t=Dt({},t),function(e){return ct(e,t)}}function Yt(t){return t=Ht(t),function(e){return Vt(e,t)}}function Kt(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,o){return t.call(e,n,r,o)};case 4:return function(n,r,o,i){return t.call(e,n,r,o,i)}}return function(){return t.apply(e,arguments)}}function $t(t,e,n){return null==t?Wt:U(t)?Kt(t,e,n):T(t)&&!G(t)?Gt(t):Yt(t)}function Xt(t,e){return $t(t,e,1/0)}function Zt(t,e,n){return ut.iteratee!==Xt?ut.iteratee(t,e):$t(t,e,n)}function Qt(t,e,n){e=Zt(e,n);for(var r=st(t),o=r.length,i={},a=0;a<o;a++){var s=r[a];i[s]=e(t[s],s,t)}return i}function Jt(){}function te(t){return null==t?Jt:function(e){return qt(t,e)}}function ee(t,e,n){var r=Array(Math.max(0,t));e=Kt(e,n,1);for(var o=0;o<t;o++)r[o]=e(o);return r}function ne(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}ut.toPath=Ut,ut.iteratee=Xt;const re=Date.now||function(){return(new Date).getTime()};function oe(t){var e=function(e){return t[e]},n="(?:"+st(t).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(o,e):t}}const ie={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},ae=oe(ie),se=oe(Pt(ie)),le=ut.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var ce=/(.)^/,ue={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},pe=/\\|'|\r|\n|\u2028|\u2029/g;function de(t){return"\\"+ue[t]}var fe=/^\s*(\w|\$)+\s*$/;function he(t,e,n){!e&&n&&(e=n),e=It({},e,ut.templateSettings);var r=RegExp([(e.escape||ce).source,(e.interpolate||ce).source,(e.evaluate||ce).source].join("|")+"|$","g"),o=0,i="__p+='";t.replace(r,(function(e,n,r,a,s){return i+=t.slice(o,s).replace(pe,de),o=s+e.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(i+="';\n"+a+"\n__p+='"),e})),i+="';\n";var a,s=e.variable;if(s){if(!fe.test(s))throw new Error("variable is not a bare identifier: "+s)}else i="with(obj||{}){\n"+i+"}\n",s="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{a=new Function(s,"_",i)}catch(t){throw t.source=i,t}var l=function(t){return a.call(this,t,ut)};return l.source="function("+s+"){\n"+i+"}",l}function ge(t,e,n){var r=(e=Ht(e)).length;if(!r)return U(n)?n.call(t):n;for(var o=0;o<r;o++){var i=null==t?void 0:t[e[o]];void 0===i&&(i=n,o=r),t=U(i)?i.call(t):i}return t}var me=0;function ve(t){var e=++me+"";return t?t+e:e}function ye(t){var e=ut(t);return e._chain=!0,e}function be(t,e,n,r,o){if(!(r instanceof e))return t.apply(n,o);var i=Rt(t.prototype),a=t.apply(i,o);return T(a)?a:i}var _e=C((function(t,e){var n=_e.placeholder,r=function(){for(var o=0,i=e.length,a=Array(i),s=0;s<i;s++)a[s]=e[s]===n?arguments[o++]:e[s];for(;o<arguments.length;)a.push(arguments[o++]);return be(t,r,this,this,a)};return r}));_e.placeholder=ut;const we=_e,Ee=C((function(t,e,n){if(!U(t))throw new TypeError("Bind must be called on a function");var r=C((function(o){return be(t,r,e,this,n.concat(o))}));return r})),xe=J(it);function Ce(t,e,n,r){if(r=r||[],e||0===e){if(e<=0)return r.concat(t)}else e=1/0;for(var o=r.length,i=0,a=it(t);i<a;i++){var s=t[i];if(xe(s)&&(G(s)||$(s)))if(e>1)Ce(s,e-1,n,r),o=r.length;else for(var l=0,c=s.length;l<c;)r[o++]=s[l++];else n||(r[o++]=s)}return r}const Te=C((function(t,e){var n=(e=Ce(e,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=e[n];t[r]=Ee(t[r],t)}return t}));function Ae(t,e){var n=function(r){var o=n.cache,i=""+(e?e.apply(this,arguments):r);return Y(o,i)||(o[i]=t.apply(this,arguments)),o[i]};return n.cache={},n}const Oe=C((function(t,e,n){return setTimeout((function(){return t.apply(null,n)}),e)})),Se=we(Oe,ut,1);function ke(t,e,n){var r,o,i,a,s=0;n||(n={});var l=function(){s=!1===n.leading?0:re(),r=null,a=t.apply(o,i),r||(o=i=null)},c=function(){var c=re();s||!1!==n.leading||(s=c);var u=e-(c-s);return o=this,i=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(r),s=0,r=o=i=null},c}function Pe(t,e,n){var r,o,i,a,s,l=function(){var c=re()-o;e>c?r=setTimeout(l,e-c):(r=null,n||(a=t.apply(s,i)),r||(i=s=null))},c=C((function(c){return s=this,i=c,o=re(),r||(r=setTimeout(l,e),n&&(a=t.apply(s,i))),a}));return c.cancel=function(){clearTimeout(r),r=i=s=null},c}function je(t,e){return we(e,t)}function Ne(t){return function(){return!t.apply(this,arguments)}}function Le(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}}function De(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Ie(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}const Re=we(Ie,2);function Me(t,e,n){e=Zt(e,n);for(var r,o=st(t),i=0,a=o.length;i<a;i++)if(e(t[r=o[i]],r,t))return r}function Be(t){return function(e,n,r){n=Zt(n,r);for(var o=it(e),i=t>0?0:o-1;i>=0&&i<o;i+=t)if(n(e[i],i,e))return i;return-1}}const Fe=Be(1),Ue=Be(-1);function He(t,e,n,r){for(var o=(n=Zt(n,r,1))(e),i=0,a=it(t);i<a;){var s=Math.floor((i+a)/2);n(t[s])<o?i=s+1:a=s}return i}function Ve(t,e,n){return function(r,o,i){var a=0,s=it(r);if("number"==typeof i)t>0?a=i>=0?i:Math.max(i+s,a):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return r[i=n(r,o)]===o?i:-1;if(o!=o)return(i=e(u.call(r,a,s),Z))>=0?i+a:-1;for(i=t>0?a:s-1;i>=0&&i<s;i+=t)if(r[i]===o)return i;return-1}}const qe=Ve(1,Fe,He),ze=Ve(-1,Ue);function We(t,e,n){var r=(xe(t)?Fe:Me)(t,e,n);if(void 0!==r&&-1!==r)return t[r]}function Ge(t,e){return We(t,Gt(e))}function Ye(t,e,n){var r,o;if(e=Kt(e,n),xe(t))for(r=0,o=t.length;r<o;r++)e(t[r],r,t);else{var i=st(t);for(r=0,o=i.length;r<o;r++)e(t[i[r]],i[r],t)}return t}function Ke(t,e,n){e=Zt(e,n);for(var r=!xe(t)&&st(t),o=(r||t).length,i=Array(o),a=0;a<o;a++){var s=r?r[a]:a;i[a]=e(t[s],s,t)}return i}function $e(t){return function(e,n,r,o){var i=arguments.length>=3;return function(e,n,r,o){var i=!xe(e)&&st(e),a=(i||e).length,s=t>0?0:a-1;for(o||(r=e[i?i[s]:s],s+=t);s>=0&&s<a;s+=t){var l=i?i[s]:s;r=n(r,e[l],l,e)}return r}(e,Kt(n,o,4),r,i)}}const Xe=$e(1),Ze=$e(-1);function Qe(t,e,n){var r=[];return e=Zt(e,n),Ye(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}function Je(t,e,n){return Qe(t,Ne(Zt(e)),n)}function tn(t,e,n){e=Zt(e,n);for(var r=!xe(t)&&st(t),o=(r||t).length,i=0;i<o;i++){var a=r?r[i]:i;if(!e(t[a],a,t))return!1}return!0}function en(t,e,n){e=Zt(e,n);for(var r=!xe(t)&&st(t),o=(r||t).length,i=0;i<o;i++){var a=r?r[i]:i;if(e(t[a],a,t))return!0}return!1}function nn(t,e,n,r){return xe(t)||(t=St(t)),("number"!=typeof n||r)&&(n=0),qe(t,e,n)>=0}const rn=C((function(t,e,n){var r,o;return U(e)?o=e:(e=Ht(e),r=e.slice(0,-1),e=e[e.length-1]),Ke(t,(function(t){var i=o;if(!i){if(r&&r.length&&(t=Vt(t,r)),null==t)return;i=t[e]}return null==i?i:i.apply(t,n)}))}));function on(t,e){return Ke(t,Yt(e))}function an(t,e){return Qe(t,Gt(e))}function sn(t,e,n){var r,o,i=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,l=(t=xe(t)?t:St(t)).length;s<l;s++)null!=(r=t[s])&&r>i&&(i=r);else e=Zt(e,n),Ye(t,(function(t,n,r){((o=e(t,n,r))>a||o===-1/0&&i===-1/0)&&(i=t,a=o)}));return i}function ln(t,e,n){var r,o,i=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,l=(t=xe(t)?t:St(t)).length;s<l;s++)null!=(r=t[s])&&r<i&&(i=r);else e=Zt(e,n),Ye(t,(function(t,n,r){((o=e(t,n,r))<a||o===1/0&&i===1/0)&&(i=t,a=o)}));return i}function cn(t,e,n){if(null==e||n)return xe(t)||(t=St(t)),t[ne(t.length-1)];var r=xe(t)?Bt(t):St(t),o=it(r);e=Math.max(Math.min(e,o),0);for(var i=o-1,a=0;a<e;a++){var s=ne(a,i),l=r[a];r[a]=r[s],r[s]=l}return r.slice(0,e)}function un(t){return cn(t,1/0)}function pn(t,e,n){var r=0;return e=Zt(e,n),on(Ke(t,(function(t,n,o){return{value:t,index:r++,criteria:e(t,n,o)}})).sort((function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index})),"value")}function dn(t,e){return function(n,r,o){var i=e?[[],[]]:{};return r=Zt(r,o),Ye(n,(function(e,o){var a=r(e,o,n);t(i,e,a)})),i}}const fn=dn((function(t,e,n){Y(t,n)?t[n].push(e):t[n]=[e]})),hn=dn((function(t,e,n){t[n]=e})),gn=dn((function(t,e,n){Y(t,n)?t[n]++:t[n]=1})),mn=dn((function(t,e,n){t[n?0:1].push(e)}),!0);var vn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yn(t){return t?G(t)?u.call(t):j(t)?t.match(vn):xe(t)?Ke(t,Wt):St(t):[]}function bn(t){return null==t?0:xe(t)?t.length:st(t).length}function _n(t,e,n){return e in n}const wn=C((function(t,e){var n={},r=e[0];if(null==t)return n;U(r)?(e.length>1&&(r=Kt(r,e[1])),e=mt(t)):(r=_n,e=Ce(e,!1,!1),t=Object(t));for(var o=0,i=e.length;o<i;o++){var a=e[o],s=t[a];r(s,a,t)&&(n[a]=s)}return n})),En=C((function(t,e){var n,r=e[0];return U(r)?(r=Ne(r),e.length>1&&(n=e[1])):(e=Ke(Ce(e,!1,!1),String),r=function(t,n){return!nn(e,n)}),wn(t,r,n)}));function xn(t,e,n){return u.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function Cn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:xn(t,t.length-e)}function Tn(t,e,n){return u.call(t,null==e||n?1:e)}function An(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[t.length-1]:Tn(t,Math.max(0,t.length-e))}function On(t){return Qe(t,Boolean)}function Sn(t,e){return Ce(t,e,!1)}const kn=C((function(t,e){return e=Ce(e,!0,!0),Qe(t,(function(t){return!nn(e,t)}))})),Pn=C((function(t,e){return kn(t,e)}));function jn(t,e,n,r){S(e)||(r=n,n=e,e=!1),null!=n&&(n=Zt(n,r));for(var o=[],i=[],a=0,s=it(t);a<s;a++){var l=t[a],c=n?n(l,a,t):l;e&&!n?(a&&i===c||o.push(l),i=c):n?nn(i,c)||(i.push(c),o.push(l)):nn(o,l)||o.push(l)}return o}const Nn=C((function(t){return jn(Ce(t,!0,!0))}));function Ln(t){for(var e=[],n=arguments.length,r=0,o=it(t);r<o;r++){var i=t[r];if(!nn(e,i)){var a;for(a=1;a<n&&nn(arguments[a],i);a++);a===n&&e.push(i)}}return e}function Dn(t){for(var e=t&&sn(t,it).length||0,n=Array(e),r=0;r<e;r++)n[r]=on(t,r);return n}const In=C(Dn);function Rn(t,e){for(var n={},r=0,o=it(t);r<o;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n}function Mn(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),o=Array(r),i=0;i<r;i++,t+=n)o[i]=t;return o}function Bn(t,e){if(null==e||e<1)return[];for(var n=[],r=0,o=t.length;r<o;)n.push(u.call(t,r,r+=e));return n}function Fn(t,e){return t._chain?ut(e).chain():e}function Un(t){return Ye(jt(t),(function(e){var n=ut[e]=t[e];ut.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),Fn(this,n.apply(ut,t))}})),ut}Ye(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=a[t];ut.prototype[t]=function(){var n=this._wrapped;return null!=n&&(e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0]),Fn(this,n)}})),Ye(["concat","join","slice"],(function(t){var e=a[t];ut.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Fn(this,t)}}));const Hn=ut;var Vn=Un(r);Vn._=Vn;const qn=Vn}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};r.d(o,{Ay:()=>hm,I0:()=>fm,nu:()=>dm});var i=r(5706),a=r(9195);function s(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=t.raw;return r.reduce((function(t,n,o){var i=e[o-1],s=r[o-1];return Array.isArray(i)?i=i.join(""):s&&"$"===s.slice(-1)?t=t.slice(0,-1):i=(0,a.escape)(i),t+i+n}))}var l,c=r(4193),u=r.n(c),p=r(6411),d=r(1749),f=(l=function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e}(d.Kx);const g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getByComponent=function(t){var e=this;return this.filter((function(n){return e.getComponent(n)===t}))[0]},e.prototype.addComponent=function(t,e){var n=this,r=((0,i.isArray)(t)?t:[t]).filter((function(t){return!n.hasComponent(t)})).map((function(t){return new h({component:t})}))[0];return this.push(r,e)},e.prototype.getComponent=function(t){return t.get("component")},e.prototype.hasComponent=function(t){var e=this.getByComponent(t);return e&&this.contains(e)},e.prototype.lastComponent=function(){var t=this.last();return t?this.getComponent(t):void 0},e.prototype.allComponents=function(){var t=this;return this.map((function(e){return t.getComponent(e)})).filter((function(t){return t}))},e.prototype.removeComponent=function(t,e){var n=this,r=((0,i.isArray)(t)?t:[t]).map((function(t){return n.getByComponent(t)}));return this.remove(r,e)},e}(d.pM);var v=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),y=function(){return y=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},y.apply(this,arguments)},b=function(){function t(t,e,n){this.debounced=[],this.collections=[],this.cls=[],this._em=t,this._name=e;var r=this.name.charAt(0).toLowerCase()+this.name.slice(1),o=(0,i.isUndefined)(t.config[r])?t.config[this.name]:t.config[r],s=!0===o?{}:o||{};s.pStylePrefix=t.config.pStylePrefix||"",(0,i.isUndefined)(o)||o||(s._disable=1),s.em=t,this._config=(0,a.deepMerge)(n||{},s)}return Object.defineProperty(t.prototype,"em",{get:function(){return this._em},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),t.prototype.render=function(t){},t.prototype.postLoad=function(t){},Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t.prototype.getConfig=function(t){return t?this.config[t]:this.config},t.prototype.__logWarn=function(t,e){void 0===e&&(e={}),this.em.logWarning("[".concat(this.name,"]: ").concat(t),e)},t.prototype.destroy=function(){this.__destroy()},t.prototype.__destroy=function(){var t,e,n;null===(t=this.view)||void 0===t||t.remove(),null===(e=this.state)||void 0===e||e.stopListening(),null===(n=this.state)||void 0===n||n.clear(),this.debounced.forEach((function(t){return t.cancel()})),this.collections.forEach((function(t){t.stopListening(),t.reset()}))},t.prototype.__appendTo=function(){var t=this.getConfig().appendTo;if(t){var e=(0,i.isElement)(t)?t:document.querySelector(t);if(!e)return this.__logWarn('"appendTo" element not found');e.appendChild(this.render())}},t}();const _=b;var w=function(t){function e(e,n,r,o,i,a){void 0===a&&(a={});var s=t.call(this,e,n,i)||this;return s.cls=[],s.private=!1,s.all=r,s.events=o,!a.skipListen&&s.__initListen(),s}return v(e,t),e.prototype.postLoad=function(t){},e.prototype.render=function(t){},e.prototype.getProjectData=function(t){var e={},n=this.storageKey;return n&&(e[n]=t||this.getAll()),e},e.prototype.loadProjectData=function(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=e.all,r=e.onResult,o=e.reset,i=this.storageKey,s={action:"load"},l=n||this.all,c=t[i];if("string"==typeof c)try{c=JSON.parse(c)}catch(t){this.__logWarn("Data parsing failed",{input:c})}return o&&c&&l.reset(void 0,s),r?c&&r(c,s):c&&(0,a.isDef)(c.length)&&l.reset(c,s),c},e.prototype.clear=function(t){void 0===t&&(t={});var e=this.all;return e&&e.reset(void 0,t),this},e.prototype.getAll=function(){return function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],this.all.models,!0)},e.prototype.getAllMap=function(){return this.getAll().reduce((function(t,e){return t[e.get(e.idAttribute)]=e,t}),{})},e.prototype.__initListen=function(t){void 0===t&&(t={});var e=this,n=e.all,r=e.em,o=e.events;n&&r&&n.on("add",(function(t,e,n){return r.trigger(o.add,t,n)})).on("remove",(function(t,e,n){return r.trigger(o.remove,t,n)})).on("change",(function(t,e){return r.trigger(o.update,t,t.changedAttributes(),e)})).on("all",this.__catchAllEvent,this),this.cls=[n].concat(t.collections||[]),(t.propagate||[]).forEach((function(t){var e=t.entity,o=t.event;e.on("all",(function(t,e,i,a){var s=y({event:t},a||i);[r,n].map((function(t){return t.trigger(o,e,s)}))}))}))},e.prototype.__remove=function(t,e){var n=this;void 0===e&&(e={});var r=this.em,o=(0,i.isString)(t)?this.get(t):t,a=function(){return o&&n.all.remove(o,e),o};return!e.silent&&(null==r||r.trigger(this.events.removeBefore,o,a,e)),!e.abort&&a()},e.prototype.__catchAllEvent=function(t,e,n,r){var o=this.em,i=this.events,a=r||n;o&&i.all&&o.trigger(i.all,{event:t,model:e,options:a}),this.__onAllEvent()},e.prototype.__appendTo=function(t){var e=this.config.appendTo;if(e){var n=(0,i.isElement)(e)?e:document.querySelector(e);if(!n)return this.__logWarn('"appendTo" element not found');n.appendChild(this.render(t))}},e.prototype.__onAllEvent=function(){},e.prototype._createId=function(t){void 0===t&&(t=16);var e,n=this.getAll().length+t,r=this.getAllMap();do{e=(0,a.createId)(n)}while(r[e]);return e},e.prototype.__listenAdd=function(t,e){var n=this;t.on("add",(function(t,r,o){return n.em.trigger(e,t,o)}))},e.prototype.__listenRemove=function(t,e){var n=this;t.on("remove",(function(t,r,o){return n.em.trigger(e,t,o)}))},e.prototype.__listenUpdate=function(t,e){var n=this;t.on("change",(function(t,r){return n.em.trigger(e,t,t.changedAttributes(),r)}))},e.prototype.__destroy=function(){var t;this.cls.forEach((function(t){t.stopListening(),t.reset()})),null===(t=this.view)||void 0===t||t.remove(),this.view=void 0},e}(b);var E=r(3023);var x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return x(e,t),e.prototype.defaults=function(){return{name:"",width:null,height:"",widthMedia:null,priority:null}},e.prototype.initialize=function(){var t=this;null===this.get("widthMedia")&&this.set("widthMedia",this.get("width")),null===this.get("width")&&this.set("width",this.get("widthMedia")),!this.get("priority")&&this.set("priority",parseFloat(this.get("widthMedia"))||0),["width","height","widthMedia"].forEach((function(e){return t.checkUnit(e)}))},e.prototype.checkUnit=function(t){var e=this.get(t)||"";(parseFloat(e)||0).toString()===e.toString()&&this.set(t,"".concat(e,"px"))},e.prototype.getName=function(){return this.get("name")||this.get("id")},e.prototype.getWidthMedia=function(){return this.get("widthMedia")||""},e}(d.Kx);var T=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return T(e,t),e}(d.pM);const O=A;A.prototype.model=C;var S=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),k=function(t){function e(e){var n=t.call(this,e)||this;return n.config=e.config||{},n.em=n.config.em,n.ppfx=n.config.pStylePrefix||"",n.listenTo(n.em,"change:device",n.updateSelect),n}return S(e,t),e.prototype.template=function(t){var e,n,r=t.ppfx,o=t.label;return s(j||(e=['\n      <div class="','device-label">','</div>\n      <div class="',"field ",'select">\n        <span id="','input-holder">\n          <select class="','devices"></select>\n        </span>\n        <div class="','sel-arrow">\n          <div class="','d-s-arrow"></div>\n        </div>\n      </div>\n      <button style="display:none" class="','add-trasp" data-add-trasp>+</button>\n    '],n=['\n      <div class="','device-label">','</div>\n      <div class="',"field ",'select">\n        <span id="','input-holder">\n          <select class="','devices"></select>\n        </span>\n        <div class="','sel-arrow">\n          <div class="','d-s-arrow"></div>\n        </div>\n      </div>\n      <button style="display:none" class="','add-trasp" data-add-trasp>+</button>\n    '],Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,j=e),r,o,r,r,r,r,r,r,r)},e.prototype.events=function(){return{change:"updateDevice","click [data-add-trasp]":"startAdd"}},e.prototype.startAdd=function(){},e.prototype.updateDevice=function(){var t=this.em;if(t){var e=this.devicesEl;t.set("device",e?e.val():"")}},e.prototype.updateSelect=function(){var t=this.em,e=this.devicesEl;if(t&&t.getDeviceModel&&e){var n=t.getDeviceModel();e.val(n?n.get("id"):"")}},e.prototype.getOptions=function(){var t=this.collection,e=this.em,n="";return t.forEach((function(t){var r=t.attributes,o=r.name,i=r.id,a=e&&e.t&&e.t("deviceManager.devices.".concat(i))||o;n+='<option value="'.concat(i||o,'">').concat(a,"</option>")})),n},e.prototype.render=function(){var t=this,e=t.em,n=t.ppfx,r=t.$el,o=t.el,i=e&&e.t&&e.t("deviceManager.device");return r.html(this.template({ppfx:n,label:i})),this.devicesEl=r.find(".".concat(n,"devices")),this.devicesEl.append(this.getOptions()),this.devicesEl.val(e.get("device")),o.className="".concat(n,"devices-c"),this},e}(d.Ss);const P=k;var j,N=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),L=function(){return L=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},L.apply(this,arguments)},D="device",I="".concat(D,":"),R="".concat(I,"select"),M=("".concat(R,":before"),"".concat(I,"update")),B="".concat(I,"add"),F=("".concat(B,":before"),"".concat(I,"remove")),U="".concat(F,":before"),H={all:D,select:R,update:M,add:B,remove:F,removeBefore:U},V=function(t){function e(e){var n,r=t.call(this,e,"DeviceManager",new O,H,{default:"",devices:[{id:"desktop",name:"Desktop",width:""},{id:"tablet",name:"Tablet",width:"770px",widthMedia:"992px"},{id:"mobileLandscape",name:"Mobile landscape",width:"568px",widthMedia:"768px"},{id:"mobilePortrait",name:"Mobile portrait",width:"320px",widthMedia:"480px"}]})||this;return r.Device=C,r.Devices=O,r.storageKey="",r.devices=r.all,null===(n=r.config.devices)||void 0===n||n.forEach((function(t){return r.add(t,{silent:!0})})),r.select(r.config.default||r.devices.at(0)),e.on("change:device",r._onSelect,r),r}return N(e,t),e.prototype._onSelect=function(t,e,n){var r=this.em,o=this.events,i=t.previous("device"),a=this.get(e),s=o.select;r.trigger(s,a,this.get(i)),this.__catchAllEvent(s,a,n)},e.prototype.add=function(t,e){var n;void 0===e&&(e={});var r=e;if((0,i.isString)(t)){var o=e;n=L(L({},r=arguments[2]||{}),{id:t,name:r.name||t,width:o})}else n=t;return n.id||(n.id=n.name||this._createId()),this.devices.add(n,r)},e.prototype.get=function(t){return this.getAll().filter((function(e){return e.get("name")===t}))[0]||this.devices.get(t)||null},e.prototype.remove=function(t,e){return void 0===e&&(e={}),this.__remove(t,e)},e.prototype.getDevices=function(){return this.devices.models},e.prototype.select=function(t,e){void 0===e&&(e={});var n=(0,i.isString)(t)?this.get(t):t;return n&&this.em.set("device",n.get("id"),e),this},e.prototype.getSelected=function(){return this.get(this.em.get("device"))},e.prototype.getAll=function(){return this.devices},e.prototype.render=function(){var t,e=this.em;return null===(t=this.view)||void 0===t||t.remove(),this.view=new P({collection:this.devices,config:L({em:e},this.config)}),this.view.render().el},e.prototype.destroy=function(){this.__destroy()},e}(w);const q=V;var z;!function(t){t.add="page:add",t.addBefore="page:add:before",t.remove="page:remove",t.removeBefore="page:remove:before",t.select="page:select",t.selectBefore="page:select:before",t.update="page:update",t.all="page"}(z||(z={}));const W=z;var G=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Y=function(t){function e(e,n,r){return t.call(this,n,{module:e,modelConstructor:r})||this}return G(e,t),e.prototype.add=function(e,n){var r,o=this,a=(0,i.isArray)(e)?e:(0,i.isUndefined)(e)?void 0:[e];return a=null!==(r=null==a?void 0:a.map((function(t){return t instanceof o.newModel?t:new o.newModel(o.module,t)})))&&void 0!==r?r:[void 0],t.prototype.add.call(this,(0,i.isArray)(e)?a:a[0],n)},e.prototype.preinitialize=function(t,e){this.newModel=e.modelConstructor,this.module=e.module},e}(d.pM);const K=Y;var $=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),X=function(){return X=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},X.apply(this,arguments)},Z=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Q="__aw",J="__ah",tt=function(t,e){var n,r=t.get(e),o=null===(n=t.view)||void 0===n?void 0:n.el["width"===e?"offsetWidth":"offsetHeight"];return(0,i.isNumber)(r)?r:(0,i.isString)(r)&&r.endsWith("px")?parseFloat(r):o||0},et=function(t){function e(e,n){var r=t.call(this,e,n)||this,o=r.em,s=r.attributes,l=s.styles,c=s.component,u=o.Components,p=u.getConfig(),d=o.Css.getAll(),f={},h={em:o,config:p,frame:r,idMap:f};if(!(0,a.isComponent)(c)){var g=(0,a.isObject)(c)?c:{components:c};!g.type&&(g.type="wrapper");var m=u.getType("wrapper").model;r.set("component",new m(g,h))}if(l){if(!(0,a.isObject)(l)){var v=l;(0,i.keys)(f).length&&(v=(0,i.isString)(v)?o.Parser.parseCss(v):v,o.Css.checkId(v,{idMap:f})),d.add(v),r.set("styles",d)}}else r.set("styles",d);return!n.width&&r.set(Q,1),!n.height&&r.set(J,1),!r.id&&r.set("id",(0,a.createId)()),r}return $(e,t),e.prototype.defaults=function(){return{x:0,y:0,changesCount:0,attributes:{},width:null,height:null,head:[],component:"",styles:"",refFrame:null,_undo:!0,_undoexc:["changesCount"]}},Object.defineProperty(e.prototype,"width",{get:function(){return tt(this,"width")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return tt(this,"height")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"head",{get:function(){return this.get("head")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"refFrame",{get:function(){return this.get("refFrame")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var t=this.refFrame;return(null==t?void 0:t.getComponent())||this.getComponent()},enumerable:!1,configurable:!0}),e.prototype.initRefs=function(){var t=this.refFrame;if((0,i.isString)(t)){var e=this.module.framesById[t];e&&this.set({refFrame:e},{silent:!0})}},e.prototype.getBoxRect=function(){var t=this.attributes;return{x:t.x,y:t.y,width:this.width,height:this.height}},e.prototype.onRemove=function(){!this.refFrame&&this.getComponent().remove({root:1})},e.prototype.changesUp=function(t){void 0===t&&(t={}),t.temporary||t.noCount||t.avoidStore||this.set("changesCount",this.get("changesCount")+1)},e.prototype.getComponent=function(){return this.get("component")},e.prototype.getStyles=function(){return this.get("styles")},e.prototype.disable=function(){this.trigger("disable")},e.prototype.remove=function(){var t;null===(t=this.view)||void 0===t||t.remove(),this.view=void 0;var e=this.collection;return e&&e.remove(this)},e.prototype.getHead=function(){return Z([],this.head,!0)},e.prototype.setHead=function(t){return this.set("head",Z([],t,!0))},e.prototype.addHeadItem=function(t){this.head.push(t)},e.prototype.getHeadByAttr=function(t,e,n){return this.head.filter((function(r){return r.attributes&&r.attributes[t]==e&&(!n||n===r.tag)}))[0]},e.prototype.removeHeadByAttr=function(t,e,n){var r=this.getHeadByAttr(t,e,n),o=this.head.indexOf(r);o>=0&&this.head.splice(o,1)},e.prototype.addLink=function(t){var e="link";!this.getHeadByAttr("href",t,e)&&this.addHeadItem({tag:e,attributes:{href:t,rel:"stylesheet"}})},e.prototype.removeLink=function(t){this.removeHeadByAttr("href",t,"link")},e.prototype.addScript=function(t){var e="script";!this.getHeadByAttr("src",t,e)&&this.addHeadItem({tag:e,attributes:{src:t}})},e.prototype.removeScript=function(t){this.removeHeadByAttr("src",t,"script")},e.prototype.getPage=function(){var t;return null===(t=this.collection)||void 0===t?void 0:t.page},e.prototype._emitUpdated=function(t){void 0===t&&(t={}),this.em.trigger("frame:updated",X({frame:this},t))},e.prototype.hasAutoHeight=function(){return!("auto"!==this.attributes.height&&!this.config.infiniteCanvas)},e.prototype.toJSON=function(t){void 0===t&&(t={});var e=E.A.prototype.toJSON.call(this,t),n=(0,i.result)(this,"defaults");return t.fromUndo&&delete e.component,delete e.styles,delete e.changesCount,e[Q]&&delete e.width,e[J]&&delete e.height,e.refFrame&&(e.refFrame=e.refFrame.id,delete e.component),(0,i.forEach)(e,(function(t,n){0===n.indexOf("_")&&delete e[n]})),(0,i.forEach)(n,(function(t,n){e[n]===t&&delete e[n]})),(0,i.forEach)(["attributes","head"],(function(t){(0,i.isEmpty)(e[t])&&delete e[t]})),e},e}(E.A);const nt=et;var rt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ot=function(t){function e(e,n){void 0===n&&(n=[]);var r=t.call(this,e,n,nt)||this;return r.loadedItems=0,r.itemsToLoad=0,(0,i.bindAll)(r,"itemLoaded"),r.on("add",r.onAdd),r.on("reset",r.onReset),r.on("remove",r.onRemove),r.forEach((function(t){return r.onAdd(t)})),r}return rt(e,t),e.prototype.onAdd=function(t){this.module.framesById[t.id]=t},e.prototype.onReset=function(t,e){var n=this;((null==e?void 0:e.previousModels)||[]).map((function(t){return n.onRemove(t)}))},e.prototype.onRemove=function(t){t.onRemove(),delete this.module.framesById[t.id]},e.prototype.initRefs=function(){this.forEach((function(t){return t.initRefs()}))},e.prototype.itemLoaded=function(){this.loadedItems++,this.loadedItems>=this.itemsToLoad&&(this.trigger("loaded:all"),this.listenToLoadItems(!1))},e.prototype.listenToLoad=function(){this.loadedItems=0,this.itemsToLoad=this.length,this.listenToLoadItems(!0)},e.prototype.listenToLoadItems=function(t){var e=this;this.forEach((function(n){return n[t?"on":"off"]("loaded",e.itemLoaded)}))},e}(K);var it=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),at=function(t){function e(e){var n=this,r=e.em,o=e.config,i=o.scripts,a=o.styles;return(n=t.call(this,e,{scripts:i,styles:a})||this).set("frames",new ot(e)),n.on("change:zoom",n.onZoomChange),n.on("change:x change:y",n.onCoordsChange),n.on("change:pointer change:pointerScreen",n.onPointerChange),n.listenTo(r,"change:device ".concat(M),n.updateDevice),n.listenTo(r,W.select,n._pageUpdated),n}return it(e,t),e.prototype.defaults=function(){return{frame:"",frames:[],rulers:!1,zoom:100,x:0,y:0,scripts:[],styles:[],pointer:d.lK,pointerScreen:d.lK}},Object.defineProperty(e.prototype,"frames",{get:function(){return this.get("frames")},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this.em.Pages._initPage();this.set("frames",t.getFrames()),this.updateDevice({frame:t.getMainFrame()})},e.prototype._pageUpdated=function(t,e){var n=this.em;n.setSelected(),n.get("readyCanvas")&&n.stopDefault(),null==e||e.getFrames().map((function(t){return t.disable()})),this.set("frames",t.getFrames()),this.updateDevice({frame:t.getMainFrame()})},e.prototype.updateDevice=function(t){void 0===t&&(t={});var e=this.em,n=e.getDeviceModel(),r=t.frame||e.getCurrentFrameModel();if(r&&n){var o=n.attributes,i=o.width,a=o.height;r.set({width:i,height:a},{noUndo:1})}},e.prototype.onZoomChange=function(){var t=this.em,e=this.module;this.get("zoom")<1&&this.set("zoom",1),t.trigger(e.events.zoom)},e.prototype.onCoordsChange=function(){var t=this.em,e=this.module;t.trigger(e.events.coords)},e.prototype.onPointerChange=function(){var t=this.em,e=this.module;t.trigger(e.events.pointer)},e.prototype.getPointerCoords=function(t){void 0===t&&(t=d.x2.World);var e=this.attributes,n=e.pointer,r=e.pointerScreen;return t===d.x2.World?n:r},e}(E.A);const st=at;var lt=r(2820),ct=r(3172),ut=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pt=function(t){function e(e,n){void 0===n&&(n=[]);var r=t.call(this,e,n,lt.A)||this;r.on("add",r.onAdd),r.on("change",r.onChange),r.on("remove",r.onRemove);var o=r.em;r.refreshDbn=(0,i.debounce)((function(){return r.refresh()}),0);var a="component:resize styleable:change component:input ".concat(ct.I.update," frame:updated undo redo");return r.listenTo(o,a,(function(){return r.refreshDbn()})),r}return ut(e,t),Object.defineProperty(e.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){return this.module.events},enumerable:!1,configurable:!0}),e.prototype.refresh=function(){var t=this.em,e=this.events;t.trigger(e.spot)},e.prototype.onAdd=function(t){this.__trgEvent(this.events.spotAdd,{spot:t})},e.prototype.onChange=function(t){this.__trgEvent(this.events.spotUpdate,{spot:t})},e.prototype.onRemove=function(t){this.__trgEvent(this.events.spotRemove,{spot:t})},e.prototype.__trgEvent=function(t,e){this.module.em.trigger(t,e),this.refreshDbn()},e}(K);const dt=pt;var ft;!function(t){t.dragEnter="canvas:dragenter",t.dragOver="canvas:dragover",t.dragEnd="canvas:dragend",t.dragData="canvas:dragdata",t.drop="canvas:drop",t.spot="canvas:spot",t.spotAdd="canvas:spot:add",t.spotUpdate="canvas:spot:update",t.spotRemove="canvas:spot:remove",t.coords="canvas:coords",t.zoom="canvas:zoom",t.pointer="canvas:pointer",t.refresh="canvas:refresh",t.frameLoad="canvas:frame:load",t.frameLoadHead="canvas:frame:load:head",t.frameLoadBody="canvas:frame:load:body"}(ft||(ft={}));const ht=ft;var gt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gt(e,t),Object.defineProperty(e.prototype,"pfx",{get:function(){return this.ppfx+this.config.stylePrefix||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ppfx",{get:function(){return this.em.config.stylePrefix||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"module",{get:function(){var t,e;return null!==(e=null===(t=this.model)||void 0===t?void 0:t.module)&&void 0!==e?e:this.collection.module},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"config",{get:function(){return this.module.config},enumerable:!1,configurable:!0}),e.prototype.preinitialize=function(t){this.className=""},e}(d.Ss);const vt=mt;var yt=r(2097),bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const _t=function(t){function e(e,n){void 0===e&&(e={}),void 0===n&&(n=!1);var r=t.call(this,e)||this;return r.itemsView="",r.itemType="type",r.reuseView=!1,r.viewCollection=[],n&&r.listenTo(r.collection,"add",r.addTo),r}return bt(e,t),e.prototype.addTo=function(t){this.add(t)},e.prototype.itemViewNotFound=function(t){},e.prototype.add=function(t,e){var n,r=this.reuseView,o=this.viewCollection,i=e||null,a=t.get(this.itemType);n=t.view&&r?t.view:this.renderView(t,a),o.push(n);var s=n.render().el;i?i.appendChild(s):this.$el.append(s)},e.prototype.render=function(){var t=this,e=document.createDocumentFragment();return this.clearItems(),this.$el.empty(),this.collection.length&&this.collection.each((function(n){return t.add(n,e)})),this.$el.append(e),this.onRender(),this},e.prototype.onRender=function(){},e.prototype.onRemoveBefore=function(t,e){},e.prototype.onRemove=function(t,e){},e.prototype.remove=function(t){void 0===t&&(t={});var e=this.viewCollection;return this.onRemoveBefore(e,t),this.clearItems(),d.Ss.prototype.remove.apply(this,t),this.onRemove(e,t),this},e.prototype.clearItems=function(){this.viewCollection},e}(vt);var wt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Et=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;n.config=e.config||{};var r=n.model;return n.listenTo(r,"change",n.render),n.listenTo(r,"destroy remove",n.remove),n.listenTo(r.get("selectors"),"change",n.render),r.setView(n),n}return wt(e,t),Object.defineProperty(e.prototype,"frameView",{get:function(){return this.config.frameView},enumerable:!1,configurable:!0}),e.prototype.remove=function(){return t.prototype.remove.call(this),this.model.removeView(this),this},e.prototype.updateStyles=function(){this.render()},e.prototype.tagName=function(){return"style"},e.prototype.render=function(){var t=this.model,e=this.el,n=t.get("important");return e.innerHTML=t.toCSS({important:n}),this},e}(d.Ss);var xt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xt(e,t),e.prototype._createElement=function(){return document.createTextNode("")},e.prototype.render=function(){var t=this.model,e=t.get("important");return this.el.textContent=t.getDeclaration({important:e}),this},e}(Et);var Tt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),At=function(t,e){return"".concat(t).concat(e?"-".concat(parseFloat(e)):"")},Ot=function(t){function e(e){var n=t.call(this,e)||this;(0,i.bindAll)(n,"sortRules");var r=e.config||{};n.atRules={},n.config=r,n.em=r.em,n.pfx=r.stylePrefix||"",n.className=n.pfx+"rules";var o=n.collection;return n.listenTo(o,"add",n.addTo),n.listenTo(o,"reset",n.render),n}return Tt(e,t),e.prototype.addTo=function(t){this.addToCollection(t)},e.prototype.addToCollection=function(t,e){if(this.renderStarted){var n,r,o=e||null,i={model:t,config:this.config};if("keyframes"===t.get("atRuleType")){var a=t.getAtRule(),s=this.atRules[a];if(!s){var l=document.createElement("style");s=document.createTextNode(""),l.appendChild(document.createTextNode("".concat(a,"{"))),l.appendChild(s),l.appendChild(document.createTextNode("}")),this.atRules[a]=s,n=l}r=new Ct(i),s.appendData(r.render().el.textContent)}else n=(r=new Et(i)).render().el;var c=this.className,u=t.get("mediaText"),p=At(c),d=p;if(u&&(d=At(c,this.getMediaWidth(u))),n){var f=o||this.el,h=void 0;try{h=f.querySelector("#".concat(d))}catch(t){}h||(h=f.querySelector("#".concat(p))),null==h||h.appendChild(n)}return n}},e.prototype.getMediaWidth=function(t){return t&&t.replace("(".concat(this.em.getConfig().mediaCondition,": "),"").replace(")","")},e.prototype.sortRules=function(t,e){var n=-1!==(this.em.getConfig().mediaCondition||"").indexOf("min-width");return n?(n?t:e)-(n?e:t):0},e.prototype.render=function(){var t=this;this.renderStarted=!0,this.atRules={};var e=this,n=e.em,r=e.$el,o=e.collection,i=this.className,a=document.createDocumentFragment();r.empty();var s=n.Devices.getAll().pluck("priority").sort(this.sortRules);return s.every((function(t){return t}))&&s.unshift(0),s.forEach((function(t){return a.appendChild((0,yt.a_)("div",{id:At(i,t)}))})),o.each((function(e){return t.addToCollection(e,a)})),r.append(a),r.attr("class",i),this},e}(d.Ss);const St=Ot;var kt,Pt="text/html",jt=Pt;!function(t){t.html="parse:html",t.htmlRoot="parse:html:root",t.css="parse:css",t.all="parse"}(kt||(kt={}));var Nt=function(){return Nt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Nt.apply(this,arguments)};const Lt=function(t,e){return void 0===e&&(e={}),{compTypes:[],modelAttrStart:"data-gjs-",getPropAttribute:function(t,e){var n=t.replace(this.modelAttrStart,""),r=(null==e?void 0:e.length)||0,o=null==e?void 0:e.substring(0,1),i=null==e?void 0:e.substring(r-1),a="true"===e||"false"!==e&&e;try{a="{"==o&&"}"==i||"["==o&&"]"==i?JSON.parse(a):a}catch(t){}return{name:n,value:a}},splitPropsFromAttr:function(t){var e=this;void 0===t&&(t={});var n={},r={};return(0,i.each)(t,(function(t,o){if(0===o.indexOf(e.modelAttrStart)){var i=e.getPropAttribute(o,t);n[i.name]=i.value}else r[o]=t})),{props:n,attrs:r}},parseStyle:function(t){for(var e={};t.indexOf("/*")>=0;){var n=t.indexOf("/*"),r=t.indexOf("*/")+2;t=t.replace(t.slice(n,r),"")}for(var o=t.split(";"),a=0,s=o.length;a<s;a++){var l=o[a].trim();if(l){var c=l.split(":"),u=c[0].trim(),p=c.slice(1).join(":").trim();e[u]?((0,i.isArray)(e[u])||(e[u]=[e[u]]),e[u].push(p)):e[u]=p}}return e},parseClass:function(t){for(var e=[],n=t.split(" "),r=0,o=n.length;r<o;r++){var i=n[r].trim();i&&e.push(i)}return e},parseNodeAttr:function(t,e){for(var n=e||{},r=t.attributes||[],o=r.length,i=0;i<o;i++){var a=r[i].nodeName,s=r[i].nodeValue;if("style"==a)n.style=this.parseStyle(s);else if("class"==a)n.classes=this.parseClass(s);else{if("contenteditable"==a)continue;if(0===a.indexOf(this.modelAttrStart)){var l=this.getPropAttribute(a,s);n[l.name]=l.value}else""===s&&!0===t[a]&&(s=!0),n.attributes||(n.attributes={}),n.attributes[a]=s}}return n},detectNode:function(t,e){var n;void 0===e&&(e={});var r=this.compTypes,o={};if(r){var i=null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"".concat(this.modelAttrStart,"type"));if(i)o={type:i};else for(var a=0;a<r.length;a++){var s=r[a],l=s.model.isComponent(t,e);if(l){"object"!=typeof l&&(l={type:s.id}),o=l;break}}}return o},parseNode:function(t,n){var r;void 0===n&&(n={});var o=(null===(r=t.content)||void 0===r?void 0:r.childNodes)||t.childNodes,i=o.length,a=this.detectNode(t,n);if(!a.tagName){var s=t.tagName||"",l=t.namespaceURI||"";a.tagName=s&&"http://www.w3.org/1999/xhtml"===l?s.toLowerCase():s}if(a=this.parseNodeAttr(t,a),i||"/>"!=="".concat(t.outerHTML).slice(-2)||(a.void=!0),i&&!a.components&&!n.skipChildren){var c=o[0];1===i&&3===c.nodeType?(!a.type&&(a.type="text"),a.components={type:"textnode",content:c.nodeValue}):a.components=this.parseNodes(t,Nt(Nt({},n),{inSvg:n.inSvg||"svg"===a.type}))}var u=a.components;if(!a.type&&(null==u?void 0:u.length)){for(var p=e.textTypes,d=void 0===p?[]:p,f=e.textTags,h=void 0===f?[]:f,g=!0,m=!1,v=0;v<u.length;v++){var y=u[v],b=y.type;if(!d.includes(b)&&!h.includes(y.tagName)){g=!1;break}"textnode"===b&&(m=!0)}g&&m&&(a.type="text")}return a},parseNodes:function(t,e){var n;void 0===e&&(e={});for(var r=[],o=(null===(n=t.content)||void 0===n?void 0:n.childNodes)||t.childNodes,a=o.length,s=0;s<a;s++){var l=o[s],c=r[r.length-1],u=this.parseNode(l,e);if("textnode"===u.type){if("textnode"===(null==c?void 0:c.type)){c.content+=u.content;continue}if(!e.keepEmptyTextNodes){var p=l.nodeValue||"",d=0===s||s===a-1,f=p.includes("\n");if(" "!=p&&!p.trim()&&(d||f))continue}}!u.tagName&&(0,i.isUndefined)(u.content)||r.push(u)}return r},parse:function(n,r,o){var a,s,l,c,u;void 0===o&&(o={});var p=(null==t?void 0:t.get("Config"))||{},d={html:[]},f=Nt(Nt({},e),o),h=Nt(Nt(Nt({},e.optionsHtml),{htmlType:(null===(a=e.optionsHtml)||void 0===a?void 0:a.htmlType)||e.htmlType}),o),g=Nt(Nt({},h),{asDocument:this.__checkAsDocument(n,h)}),m=g.preParser,v=g.asDocument,y=(0,i.isFunction)(m)?m(n,{editor:null==t?void 0:t.getEditor()}):n,b=(0,i.isFunction)(f.parserHtml)?f.parserHtml(y,g):function(t,e){void 0===e&&(e={});var n,r=new DOMParser,o=e.htmlType||jt,a=o===Pt,s=a?t:"<div>".concat(t,"</div>"),l=r.parseFromString(s,o);if(a){if(e.asDocument)return l;var c=l.head,u=l.body,p=c.querySelectorAll("script");(0,i.each)(p,(function(t){return u.appendChild(t)}));var d=[];(0,i.each)(c.children,(function(t){return d.push(t)})),(0,i.each)(d,(function(t,e){return u.insertBefore(t,u.children[e])})),n=u}else n=l.firstChild;return n}(y,g),_=b,w=b;v&&(_=w.documentElement,d.doctype=(0,yt.LJ)(w.doctype));var E=_.querySelectorAll("script"),x=E.length;if(!((0,i.isUndefined)(p.allowScripts)?g.allowScripts:p.allowScripts))for(;x--;)null===(s=E[x].parentNode)||void 0===s||s.removeChild(E[x]);if(g.allowUnsafeAttr&&g.allowUnsafeAttrValue||this.__sanitizeNode(_,g),r){for(var C=_.querySelectorAll("style"),T=C.length,A="";T--;)A=C[T].innerHTML+A,null===(l=C[T].parentNode)||void 0===l||l.removeChild(C[T]);A&&(d.css=r.parse(A))}null===(c=null==t?void 0:t.Parser)||void 0===c||c.__emitEvent(kt.htmlRoot,{input:y,root:_});var O=[];if(v)d.head=this.parseNode(w.head,f),d.root=this.parseNodeAttr(_),O=this.parseNode(w.body,f);else{var S=this.parseNodes(_,f);O=1!==S.length||f.returnArray?S:S[0]}return d.html=O,null===(u=null==t?void 0:t.Parser)||void 0===u||u.__emitEvent(kt.html,{input:y,output:d,options:g}),d},__sanitizeNode:function(t,e){var n=this,r=t.attributes||[],o=t.childNodes||[],a=[];(0,i.each)(r,(function(t){var n=t.nodeName||"",r=t.nodeValue||"";!e.allowUnsafeAttr&&n.startsWith("on")&&a.push(n),!e.allowUnsafeAttrValue&&r.startsWith("javascript:")&&a.push(n)})),a.map((function(e){return t.removeAttribute(e)})),(0,i.each)(o,(function(t){return n.__sanitizeNode(t,e)}))},__checkAsDocument:function(t,e){return(0,a.isDef)(e.asDocument)?e.asDocument:(0,i.isFunction)(e.detectDocument)?!!e.detectDocument(t):e.detectDocument?t.toLowerCase().trim().startsWith("<!doctype"):void 0}}};var Dt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),It="data-variable",Rt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.em=n.em,r.listenToDataSource(),r}return Dt(e,t),e.prototype.defaults=function(){return{type:It,defaultValue:"",path:""}},e.prototype.listenToDataSource=function(){var t=this.attributes.path,e=(0,a.stringToPath)(t).join(".");this.em&&this.listenTo(this.em.DataSources,"change:".concat(e),this.onDataSourceChange)},e.prototype.onDataSourceChange=function(){var t=this.getDataValue();this.set({value:t})},e.prototype.getDataValue=function(){var t,e=this.attributes,n=e.path,r=e.defaultValue;if(!this.em)throw new Error("EditorModel instance is not provided for a data variable.");return null===(t=this.em)||void 0===t?void 0:t.DataSources.getValue(n,r)},e}(d.Kx);const Mt=Rt;var Bt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ft=function(){return Ft=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ft.apply(this,arguments)};const Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bt(e,t),e.prototype.defaults=function(){return Ft({},t.prototype.defaults.call(this))},e}(Mt);var Ht;function Vt(t){return"object"==typeof t&&[It,ce].includes(null==t?void 0:t.type)}function qt(t){return(null==t?void 0:t.type)===It}function zt(t,e){return qt(t)?new Mt(t,{em:e}).getDataValue():t}function Wt(t,e){var n=function(t,e){var n,r=t.type;switch(r){case It:n=new Mt(t,{em:e});break;case ce:var o=t.condition,i=t.ifTrue,a=t.ifFalse;n=new ue(o,i,a,{em:e});break;default:throw new Error("Unsupported dynamic type: ".concat(r))}return n}(t,e);return{variable:n,value:n.getDataValue()}}!function(t){t.add="data:add",t.addBefore="data:add:before",t.remove="data:remove",t.removeBefore="data:remove:before",t.update="data:update",t.path="data:path",t.all="data"}(Ht||(Ht={}));var Gt,Yt=function(){function t(t,e,n){this.operator=t,this.statements=e,this.em=n.em}return t.prototype.evaluate=function(){var t=this,e=this.statements.map((function(e){return new se(e,{em:t.em}).evaluate()}));return this.operator.evaluate(e)},t}(),Kt=function(){},$t=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){t.equals="equals",t.isTruthy="isTruthy",t.isFalsy="isFalsy",t.isDefined="isDefined",t.isNull="isNull",t.isUndefined="isUndefined",t.isArray="isArray",t.isObject="isObject",t.isString="isString",t.isNumber="isNumber",t.isBoolean="isBoolean",t.isDefaultValue="isDefaultValue"}(Gt||(Gt={}));var Xt,Zt=function(t){function e(e){var n=t.call(this)||this;return n.operator=e,n}return $t(e,t),e.prototype.evaluate=function(t,e){switch(this.operator){case"equals":return t===e;case"isTruthy":return!!t;case"isFalsy":return!t;case"isDefined":return null!=t;case"isNull":return null===t;case"isUndefined":return void 0===t;case"isArray":return Array.isArray(t);case"isObject":return"object"==typeof t&&null!==t;case"isString":return"string"==typeof t;case"isNumber":return"number"==typeof t;case"isBoolean":return"boolean"==typeof t;case"isDefaultValue":return t instanceof Mt&&t.get("default")===e;default:throw new Error("Unsupported generic operator: ".concat(this.operator))}},e}(Kt),Qt=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){t.and="and",t.or="or",t.xor="xor"}(Xt||(Xt={}));var Jt,te=function(t){function e(e){var n=t.call(this)||this;return n.operator=e,n}return Qt(e,t),e.prototype.evaluate=function(t){if(!t.length)throw new Error("Expected one or more statments, got none");switch(this.operator){case Xt.and:return t.every(Boolean);case Xt.or:return t.some(Boolean);case Xt.xor:return 1===t.filter(Boolean).length;default:throw new Error("Unsupported logical operator: ".concat(this.operator))}},e}(Kt),ee=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){t.greaterThan=">",t.lessThan="<",t.greaterThanOrEqual=">=",t.lessThanOrEqual="<=",t.equals="=",t.notEquals="!="}(Jt||(Jt={}));var ne,re=function(t){function e(e){var n=t.call(this)||this;return n.operator=e,n}return ee(e,t),e.prototype.evaluate=function(t,e){switch(this.operator){case Jt.greaterThan:return t>e;case Jt.lessThan:return t<e;case Jt.greaterThanOrEqual:return t>=e;case Jt.lessThanOrEqual:return t<=e;case Jt.equals:return t===e;case Jt.notEquals:return t!==e;default:throw new Error("Unsupported number operator: ".concat(this.operator))}},e}(Kt),oe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();!function(t){t.contains="contains",t.startsWith="startsWith",t.endsWith="endsWith",t.matchesRegex="matchesRegex",t.equalsIgnoreCase="equalsIgnoreCase",t.trimEquals="trimEquals"}(ne||(ne={}));var ie=function(t){function e(e){var n=t.call(this)||this;return n.operator=e,n}return oe(e,t),e.prototype.evaluate=function(t,e){switch(this.operator){case ne.contains:return t.includes(e);case ne.startsWith:return t.startsWith(e);case ne.endsWith:return t.endsWith(e);case ne.matchesRegex:if(!e)throw new Error("Regex pattern must be provided.");return new RegExp(e).test(t);case ne.equalsIgnoreCase:return t.toLowerCase()===e.toLowerCase();case ne.trimEquals:return t.trim()===e.trim();default:throw new Error("Unsupported string operator: ".concat(this.operator))}},e}(Kt),ae=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),se=function(t){function e(e,n){var r=t.call(this,e)||this;return r.condition=e,r.em=n.em,r}return ae(e,t),e.prototype.evaluate=function(){return this.evaluateCondition(this.condition)},e.prototype.evaluateCondition=function(t){if("boolean"==typeof t)return t;if(this.isLogicGroup(t)){var e=t.logicalOperator,n=t.statements,r=new te(e);return new Yt(r,n,{em:this.em}).evaluate()}if(this.isExpression(t)){var o=t.left,i=(r=t.operator,t.right),a=zt(o,this.em),s=zt(i,this.em);return this.getOperator(a,r).evaluate(a,s)}throw new Error("Invalid condition type.")},e.prototype.getOperator=function(t,e){if(this.isOperatorInEnum(e,Gt))return new Zt(e);if("number"==typeof t)return new re(e);if("string"==typeof t)return new ie(e);throw new Error("Unsupported data type: ".concat(typeof t))},e.prototype.getDataVariables=function(){var t=[];return this.extractVariables(this.condition,t),t},e.prototype.extractVariables=function(t,e){var n=this;this.isExpression(t)?(qt(t.left)&&e.push(t.left),qt(t.right)&&e.push(t.right)):this.isLogicGroup(t)&&t.statements.forEach((function(t){return n.extractVariables(t,e)}))},e.prototype.isLogicGroup=function(t){return t&&void 0!==t.logicalOperator&&Array.isArray(t.statements)},e.prototype.isExpression=function(t){return t&&void 0!==t.left&&"string"==typeof t.operator},e.prototype.isOperatorInEnum=function(t,e){return Object.values(e).includes(t)},e}(d.Kx),le=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ce="conditional-variable",ue=function(t){function e(e,n,r,o){var i=this;if(void 0===e)throw new pe;var a=new se(e,{em:o.em});return(i=t.call(this,{type:ce,condition:a,ifTrue:n,ifFalse:r})||this).ifTrue=n,i.ifFalse=r,i.variableListeners=[],i.condition=a,i.em=o.em,i.lastEvaluationResult=i.evaluate(),i.listenToDataVariables(),i._onValueChange=o.onValueChange,i}return le(e,t),e.prototype.evaluate=function(){return this.condition.evaluate()},e.prototype.getDataValue=function(){return this.lastEvaluationResult?zt(this.ifTrue,this.em):zt(this.ifFalse,this.em)},e.prototype.reevaluate=function(){this.lastEvaluationResult=this.evaluate()},Object.defineProperty(e.prototype,"onValueChange",{set:function(t){this._onValueChange=t,this.listenToDataVariables()},enumerable:!1,configurable:!0}),e.prototype.listenToDataVariables=function(){var t=this;this.em&&(this.cleanupListeners(),this.getDependentDataVariables().forEach((function(e){var n=new Mt(e,{em:t.em}),r=new fe({em:t.em,dataVariable:n,updateValueFromDataVariable:function(){var e;t.reevaluate(),null===(e=t._onValueChange)||void 0===e||e.call(t)}.bind(t)});t.variableListeners.push(r)})))},e.prototype.getDependentDataVariables=function(){var t=this.condition.getDataVariables();return qt(this.ifTrue)&&t.push(this.ifTrue),qt(this.ifFalse)&&t.push(this.ifFalse),t},e.prototype.cleanupListeners=function(){this.variableListeners.forEach((function(t){return t.destroy()})),this.variableListeners=[]},e.prototype.toJSON=function(){return{type:ce,condition:this.condition,ifTrue:this.ifTrue,ifFalse:this.ifFalse}},e}(d.Kx),pe=function(t){function e(){return t.call(this,"No condition was provided to a conditional component.")||this}return le(e,t),e}(Error),de=function(){function t(t){var e=this;this.dataListeners=[],this.model=new d.Kx,this.onChange=function(){var t=e.dynamicVariable.getDataValue();e.updateValueFromDynamicVariable(t)},this.em=t.em,this.dynamicVariable=t.dataVariable,this.updateValueFromDynamicVariable=t.updateValueFromDataVariable,this.listenToDynamicVariable()}return t.prototype.listenToDynamicVariable=function(){var t=this,e=this.em,n=this.dynamicVariable;this.removeListeners();var r=[];switch(n.get("type")){case It:r=this.listenToDataVariable(n,e);break;case ce:r=this.listenToConditionalVariable(n,e)}r.forEach((function(e){return t.model.listenTo(e.obj,e.event,t.onChange)})),this.dataListeners=r},t.prototype.listenToConditionalVariable=function(t,e){var n=this;return t.getDependentDataVariables().flatMap((function(t){return n.listenToDataVariable(new Mt(t,{em:n.em}),e)}))},t.prototype.listenToDataVariable=function(t,e){var n=[],r=t.attributes.path,o=(0,a.stringToPath)(r||"").join("."),i=this.em.DataSources.fromPath(r),s=i[0],l=i[1];return s&&n.push({obj:s.records,event:"add remove reset"}),l&&n.push({obj:l,event:"change"}),n.push({obj:t,event:"change:path change:defaultValue"},{obj:e.DataSources.all,event:"add remove reset"},{obj:e,event:"".concat(Ht.path,":").concat(o)}),n},t.prototype.removeListeners=function(){var t=this;this.dataListeners.forEach((function(e){return t.model.stopListening(e.obj,e.event,t.onChange)})),this.dataListeners=[]},t.prototype.destroy=function(){this.removeListeners()},t}();const fe=de;var he=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ge=function(){return ge=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ge.apply(this,arguments)},me=Lt(),ve=function(t){return(0,i.isArray)(t)?t[t.length-1]:t},ye=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this,e,n)||this;return r.dynamicVariableListeners={},r.views=[],r.em=n.em,r}return he(e,t),e.prototype.parseStyle=function(t){return me.parseStyle(t)},e.prototype.extendStyle=function(t){return ge(ge({},this.getStyle("",{skipResolve:!0})),t)},e.prototype.getStyle=function(t,e){void 0===e&&(e={});var n=this.get("style")||{},r=ge({},n);if(this.em&&!e.skipResolve){var o=this.resolveDataVariables(ge({},r));return t&&(0,i.isString)(t)?o[t]:o}return t&&(0,i.isString)(t)?r[t]:r},e.prototype.setStyle=function(t,e){var n=this;void 0===t&&(t={}),void 0===e&&(e={}),(0,i.isString)(t)&&(t=this.parseStyle(t));var r=this.getStyle(e);e.partial||e.avoidStore?(e.avoidStore=!0,t.__p=!0):delete t.__p;var o=ge({},t),s=ge({},o);(0,i.keys)(s).forEach((function(t){if(""!==s[t]){var e=s[t];if(Vt(e)){var r=n.resolveDynamicValue(e);s[t]=r,n.manageDataVariableListener(r,t)}}else delete s[t]})),this.set("style",s,e);var l=(0,a.shallowDiff)(r,s);return delete l.__p,(0,i.keys)(l).forEach((function(t){var r=n.em;e.noEvent||(n.trigger("change:style:".concat(t)),r&&(r.trigger("styleable:change",n,t,e),r.trigger("styleable:change:".concat(t),n,t,e)))})),s},e.prototype.resolveDynamicValue=function(t){var e,n=t.type;switch(n){case It:e=new Ut(t,{em:this.em});break;case ce:var r=t.condition,o=t.ifTrue,i=t.ifFalse;e=new ue(r,o,i,{em:this.em});break;default:throw new Error("Unsupported dynamic value type for styles. Only '".concat(It,"' and '").concat(ce,"' are supported. Received '").concat(n,"'."))}return e},e.prototype.manageDataVariableListener=function(t,e){var n=this;this.dynamicVariableListeners[e]?this.dynamicVariableListeners[e].listenToDynamicVariable():this.dynamicVariableListeners[e]=new fe({em:this.em,dataVariable:t,updateValueFromDataVariable:function(){return n.updateView()}})},e.prototype.getView=function(t){var e=this.views,n=this.em,r=t||(null==n?void 0:n.getCurrentFrameModel());return r?e.find((function(t){return t.frameView===r.view})):e[0]},e.prototype.setView=function(t){var e=this.views;!e.includes(t)&&e.push(t)},e.prototype.removeView=function(t){var e=this.views;e.splice(e.indexOf(t),1)},e.prototype.updateView=function(){this.views.forEach((function(t){return t.updateStyles()}))},e.prototype.resolveDataVariables=function(t){var e=this,n=ge({},t);return(0,i.keys)(n).forEach((function(t){var r=n[t];if("string"!=typeof r&&!Array.isArray(r)){if(Vt(r)){var o=e.resolveDynamicValue(r);n[t]=o.getDataValue()}var i;((i=r)instanceof Mt||i instanceof ue)&&(n[t]=r.getDataValue())}})),n},e.prototype.addStyle=function(t,e,n){var r;void 0===e&&(e=""),void 0===n&&(n={}),"string"==typeof t?((r={})[t]=e,t=r):n=e||{},n.addStyle=t,t=this.extendStyle(t),this.setStyle(t,n)},e.prototype.removeStyle=function(t){var e=this.getStyle();delete e[t],this.setStyle(e)},e.prototype.styleToString=function(t){void 0===t&&(t={});var e=[],n=this.getStyle(t),r=t.important,o=function(t){var o=(0,i.isArray)(r)?r.indexOf(t)>=0:r;if("__"===t.substring(0,2))return"continue";var a=n[t];((0,i.isArray)(a)?a:[a]).forEach((function(n){var r="".concat(n).concat(o?" !important":"");r&&e.push("".concat(t,":").concat(r,";"))}))};for(var a in n)o(a);return e.join("")},e.prototype.getSelectors=function(){return this.get("selectors")||this.get("classes")},e.prototype.getSelectorsString=function(t){return this.selectorsToString?this.selectorsToString(t):this.getSelectors().getFullString()},e}(d.Kx);const be=ye;var _e=function(){return _e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_e.apply(this,arguments)},we=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Ee=function(t){return(0,i.isArray)(t.get(An))},xe=function(t){return!!t.get(On)},Ce=function(t){return!(!Ee(t)&&!xe(t))},Te=function(t){var e=t.parent();return Ce(t)&&(!e||!Ce(e))},Ae=function(t){t.__symbReady||(t.on("change",t.__upSymbProps),t.__symbReady=!0)},Oe=function(t){var e=t.get(On);if(e&&(0,i.isString)(e)){var n=t.__getAllById()[e];n?(e=n,t.set(On,n)):e=0}return e||void 0},Se=function(t){var e=null==t?void 0:t.get(An);return e&&(0,i.isArray)(e)&&(e.forEach((function(n,r){n&&(0,i.isString)(n)&&(e[r]=t.__getAllById()[n])})),e=e.filter((function(t){return t&&!(0,i.isString)(t)}))),e||void 0},ke=function(t,e){void 0===e&&(e="");var n=null==t?void 0:t.get(Sn),r=e.split(":")[0],o=e!==r?[e,r]:[e];return!0===n||(0,i.isArray)(n)&&o.some((function(t){return n.indexOf(t)>=0}))},Pe=function(t,e){void 0===e&&(e={});var n=[],r=e.changed;if(e.fromInstance||e.noPropagate||e.fromUndo||r&&ke(t,r))return n;var o=Se(t)||[],i=Oe(t);return(i?we([i],Se(i)||[],!0):o).filter((function(e){return e!==t})).filter((function(t){return!(r&&ke(t,r))}))},je=function(t,e){for(var n=t,r=t.parent(e);r&&Ce(r);)n=r,r=r.parent(e);return n},Ne=function(t,e){void 0===e&&(e={});var n=Oe(t),r=n&&Se(n);!e.skipRefs&&r&&n.set(An,r.filter((function(e){return e!==t}))),t.set(On,0),t.components().forEach((function(t){return Ne(t,e)}))},Le=function(t,e,n,r){void 0===r&&(r={});var o=Oe(t),i=Se(t);(o||i)&&t.em.log(e,{model:t,toUp:n,context:"symbols",opts:r})},De=function(t,e,n,r){var o=r||n||{},i={fromInstance:o.fromInstance,fromUndo:o.fromUndo},a=e.opt.temporary;if(r)if(r.add){var s=[],l=!!Se(t);if((y=Pe(t,_e(_e({},i),{changed:"components:add"}))).length){var c=Oe(e);s=Se(c||e)||[],(s=we([],s,!0)).push(c||e)}!a&&Le(t,"add",y,{opts:r,addedInstances:s.map((function(t){return t.cid})),added:e.cid}),y.forEach((function(n){var o=je(n),i=s.filter((function(t){var e=je(t,{prev:1});return o&&e&&e===o}))[0]||e.clone({symbol:!0,symbolInv:l});n.append(i,_e({fromInstance:t},r))}))}else{var u=Oe(e);if(u&&!r.temporary&&u.set(An,Se(u).filter((function(t){return t!==e}))),!Te(e)&&!r.skipRefsUp){var p="components:remove",d=r.index,f=e.parent(),h=_e({fromInstance:e},r),g=Te(e),m=function(t){var e=t.parent();e&&!ke(e,p)&&t.remove(h)};y=ke(f,p)?[]:Pe(e,i),g&&(y=f&&Pe(f,_e(_e({},i),{changed:p})),m=function(t){var e=t.components().at(d);e&&e.remove(_e({fromInstance:f},h))}),!a&&Le(t,"remove",y,{opts:r,removed:e.cid,isSymbNested:g}),y.forEach(m)}}else{var v=e,y=Pe(t,_e(_e({},i),{changed:"components:reset"})),b=v.models,_=new Set;Le(t,"reset",y,{components:b}),y.forEach((function(e){var r=e.components(),o=b.map((function(t,e){return!Ce(t)||_.has(t)?(_.add(t),t.clone({symbol:!0})):r.at(e)}));r.reset(o,_e({fromInstance:t},n))}))}t.__changesUp(o)},Ie=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Re=function(){return Re=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Re.apply(this,arguments)},Me=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},Be=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Fe=function(t,e){return void 0===e&&(e=[]),t?(((0,i.isArray)(t)||(0,i.isFunction)(t.map)?t:[t]).map((function(t){e.push(t.getId()),Fe(t.components().models,e)})),e):[]},Ue=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={}),n.visitedCmps=n.visitedCmps||{};var r=n.visitedCmps;return((0,i.isArray)(t)?t:[t]).map((function(t){var o=t.attributes,a=void 0===o?{}:o,s=t.components,l=t.tagName,c=t.style,u=a.id,p=(a.draggable,Me(a,["id","draggable"])),d=t;if(u)if(r[u])r[u].push(d),u=Nn.getNewId(e),d.attributes.id=u;else if(r[u]=[],e[u]){var f=d=e[u];l&&f.set({tagName:l},Re(Re({},n),{silent:!0})),(0,i.keys)(p).length&&f.addAttributes(p,Re({},n)),(0,i.keys)(c).length&&f.addStyle(c,n)}var h=(0,i.isFunction)(d.components)?d:null;if(s){var g=Ue(s,e,n);h?h.components().reset(g,n):d.components=g}else h&&h.components().reset([],n);return d}))},He=function(t){function e(e,n){var r=t.call(this,e,n)||this;r.opt=n,r.listenTo(r,"add",r.onAdd),r.listenTo(r,"remove",r.removeChildren),r.listenTo(r,"reset",r.resetChildren);var o=n.em,i=n.config;return r.config=i,r.em=o,r.domc=n.domc||(null==o?void 0:o.Components),r}return Ie(e,t),Object.defineProperty(e.prototype,"events",{get:function(){var t;return null===(t=this.domc)||void 0===t?void 0:t.events},enumerable:!1,configurable:!0}),e.prototype.resetChildren=function(t,e){var n=this;void 0===e&&(e={});var r=this,o=e.previousModels||[],i=o.filter((function(e){return!t.get(e.cid)})),a=Fe(t),s=Fe(o).filter((function(t){return a.indexOf(t)>=0}));e.keepIds=(e.keepIds||[]).concat(s),i.forEach((function(t){return n.removeChildren(t,r,e)})),t.each((function(t){return n.onAdd(t)}))},e.prototype.resetFromString=function(t,e){var n,r;void 0===t&&(t=""),void 0===e&&(e={}),e.keepIds=Fe(this);var o=this,i=o.domc,a=o.em,s=o.parent,l=null==a?void 0:a.Css,c=(null==i?void 0:i.allById())||{},u=this.parseString(t,e),p=Ue(u,c,e),d=e.visitedCmps,f=void 0===d?{}:d;Object.keys(f).forEach((function(t){var e=f[t];if(e.length){var n=(null==l?void 0:l.getRules("#".concat(t)))||[];n.length&&e.forEach((function(t){n.forEach((function(e){var n=e.clone();n.set("selectors",["#".concat(t.attributes.id)]),l.getAll().add(n)}))}))}})),this.reset(p,e),null==a||a.trigger("component:content",s,e,t),null===(r=(n=s).__checkInnerChilds)||void 0===r||r.call(n)},e.prototype.removeChildren=function(t,e,n){var r=this;if(void 0===n&&(n={}),t){var o=this.domc,i=this.em,a=n.temporary||n.fromUndo;if(t.prevColl=this,!a){var s=t.getId(),l=i.Selectors.getAll(),c=i.Css.getAll(),u=(n.keepIds||[]).indexOf(s)<0;delete(o?o.allById():{})[s];var p=u?c.remove(c.filter((function(t){return t.getSelectors().getFullString()==="#".concat(s)})),n):[];l.remove(p.map((function(t){return t.getSelectors().at(0)}))),t.opt.temporary||(i.Commands.run("core:component-style-clear",{target:t}),t.views.forEach((function(e){e.scriptContainer&&t.emitWithEitor(ct.I.scriptUnmount,{component:t,view:e,el:e.el})})),t.removed(),t.trigger("removed"),i.trigger(ct.I.remove,t),o&&xe(t)&&Te(t)&&o.symbols.__trgEvent(o.events.symbolInstanceRemove,{component:t},!0));var d=t.components();d.forEach((function(t){De(t,t,d,Re(Re({},n),{skipRefsUp:!0})),r.removeChildren(t,e,n)}))}var f=t.components();i.stopListening(f),i.stopListening(t),i.stopListening(t.get("classes")),t.__postRemove()}},e.prototype.model=function(t,e){var n,r=e.collection.opt,o=r.em,i=o.Components.componentTypes;e.em=o,e.config=r.config,e.componentTypes=i,e.domc=r.domc;for(var a=0;a<i.length;a++)if(i[a].id==t.type){n=i[a].model;break}return n||(n=i[i.length-1].model,o&&t.type&&o.logWarning("Component type '".concat(t.type,"' not found"),{attrs:t,options:e})),new n(t,e)},e.prototype.parseString=function(t,e){void 0===e&&(e={});var n=this,r=n.em,o=n.domc,i=n.parent,a=null==i?void 0:i.is("wrapper"),s=e.asDocument&&a,l=r.Css,c=r.Parser.parseHtml(t,Re({asDocument:s},e.parserOptions)),u=c.html;if(a&&c.doctype){var p=i,d=c.html||{},f=d.components,h=void 0===f?[]:f,g=Me(d,["components"]),m=c.head||{},v=m.components,y=Me(m,["components"]);u=h,p.set(g,e),p.head.set(y,e),p.head.components(v,e),p.docEl.set(c.root,e),p.set({doctype:c.doctype})}if(Nn.checkId(u,c.css,o.componentsById,e),c.css&&l&&!e.temporary){e.at;var b=Me(e,["at"]);l.addCollection(c.css,Re(Re({},b),{extend:1}))}return u},e.prototype.add=function(e,n){var r=this;if(void 0===n&&(n={}),null!=e){n.keepIds=Be(Be([],n.keepIds||[],!0),Fe(n.previousModels),!0),(0,i.isString)(e)?e=this.parseString(e,n):(0,i.isArray)(e)&&e.forEach((function(t,o){if((0,i.isString)(t)){var a=r.parseString(t,n);e[o]=(0,i.isArray)(a)&&!a.length?null:a}}));var o=((0,i.isArray)(e)?e:[e]).filter(Boolean).map((function(t){return r.processDef(t)}));return e=(0,i.isArray)(e)?(0,i.flatten)(o,1):o[0],t.prototype.add.call(this,e,n)}},e.prototype.processDef=function(t){if(t.cid&&t.ccid)return t;var e=this.em,n=this.config,r=(void 0===n?{}:n).processor,o=t;if(r){var a=r(o=Re({},o));a&&((0,i.each)(o,(function(t,e){return delete o[e]})),(0,i.extend)(o,a))}if(o.$$typeof&&"object"==typeof o.props){(o=Re({},o)).props=Re({},o.props);var s=e.Components,l=e.Parser.parserHtml;(0,i.each)(o,(function(t,e){(0,i.includes)(["props","type"],e)||delete o[e]}));var c=o.props,u=c.children;delete c.children,delete o.props;var p=l.splitPropsFromAttr(c);o.attributes=p.attrs,u&&(o.components=u),o.type?s.getType(o.type)||(o.tagName=o.type,delete o.type):o.type="textnode",(0,i.extend)(o,p.props)}return o},e.prototype.onAdd=function(t,e,n){void 0===n&&(n={});var r=this.domc,o=this.em,a=t.getStyle(),s=o&&o.getConfig().avoidInlineStyle;if(r&&r.Component.ensureInList(t),!(0,i.isEmpty)(a)&&!s&&o&&o.getConfig().forceClass&&!n.temporary){var l=t.cid;o.Css.setClassRule(l,a),t.setStyle({}),t.addClass(l)}if(t.__postAdd({recursive:!0}),o&&!n.temporary){var c=function(t){o.trigger(ct.I.add,t,n),t.components().forEach((function(t){return c(t)}))};c(t),r&&xe(t)&&Te(t)&&r.symbols.__trgEvent(r.events.symbolInstanceAdd,{component:t},!0)}},e}(d.pM);const Ve=He;var qe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ze=function(t){function e(n,r){void 0===r&&(r={});var o=t.call(this,n,r)||this,i=r.config,a=void 0===i?{}:i,s=o.get("name"),l=o.get("label");s?l||o.set("label",s):o.set("name",l);var c=o.get("name"),u=a.escapeName,p=u?u(c):e.escapeName(c);return o.set("name",p),o.em=r.em,o}return qe(e,t),e.prototype.defaults=function(){return{name:"",label:"",type:1,active:!0,private:!1,protected:!1,_undo:!0}},e.prototype.isId=function(){return 2===this.get("type")},e.prototype.isClass=function(){return 1===this.get("type")},e.prototype.getFullName=function(t){void 0===t&&(t={});var e=t.escape,n=this.get("name"),r="";switch(this.get("type")){case 1:r=".";break;case 2:r="#"}return r+(e?e(n):n)},e.prototype.toString=function(){return this.getFullName()},e.prototype.getName=function(){return this.get("name")||""},e.prototype.getLabel=function(){return this.get("label")||""},e.prototype.setLabel=function(t){return this.set("label",t)},e.prototype.getActive=function(){return!!this.get("active")},e.prototype.setActive=function(t){return this.set("active",t)},e.prototype.toJSON=function(t){void 0===t&&(t={});var e=this.em,n=d.Kx.prototype.toJSON.call(this,[t]),r=(0,i.result)(this,"defaults");if(null==e?void 0:e.getConfig().avoidDefaults){(0,i.forEach)(r,(function(t,e){n[e]===t&&delete n[e]})),n.label===n.name&&delete n.label;var o=(0,i.keys)(n).length;1===o&&n.name&&(n=n.name),2===o&&n.name&&n.type&&(n=this.getFullName())}return n},e.escapeName=function(t){return"".concat(t).trim().replace(/\s+/g,"-")},e.TYPE_CLASS=1,e.TYPE_ID=2,e}(d.Kx);const We=ze;ze.prototype.idAttribute="name";var Ge=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ye=function(t,e){return t.reduce((function(n,r,o){return n.concat(Ye(t.slice(o+1),"".concat(e).concat(r)))}),[e])},Ke=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ge(e,t),e.prototype.modelId=function(t){return"".concat(t.name,"_").concat(t.type||We.TYPE_CLASS)},e.prototype.getStyleable=function(){return(0,i.filter)(this.models,(function(t){return t.getActive()&&!t.get("private")}))},e.prototype.getValid=function(t){var e=(void 0===t?{}:t).noDisabled;return(0,i.filter)(this.models,(function(t){return!t.get("private")})).filter((function(t){return e?t.get("active"):1}))},e.prototype.getFullString=function(t,e){void 0===e&&(e={});var n=[];return(t||this).forEach((function(t){return n.push(t.getFullName(e))})),e.sort&&n.sort(),n.join("").trim()},e.prototype.getFullName=function(t){void 0===t&&(t={});var e=t.combination,n=t.array,r=[],o=this.map((function(e){return e.getFullName(t)})).sort();return e?o.forEach((function(t,e){r=r.concat(Ye(o.slice(e+1),t))})):r=o,n?r:e?r.join(","):r.join("")},e}(d.pM);const $e=Ke;Ke.prototype.model=We;var Xe=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ze=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};const Qe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xe(e,t),e.prototype.defaults=function(){return{id:"",label:"",open:!0,attributes:{}}},e.prototype.getId=function(){return this.get("id")},e.prototype.getLabel=function(){return this.get("label")},e}(d.Kx);function Je(t){var e=new Set,n=new Map,r={items:[]};t.forEach((function(t){var o=t.category;if(o){e.add(o);var i=n.get(o);i?i.push(t):n.set(o,[t])}else r.items.push(t)}));var o=Array.from(e).map((function(t){return{category:t,items:n.get(t)||[]}}));return Ze(Ze([],o,!0),[r],!1)}var tn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),en="category",nn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tn(e,t),e.prototype.initCategory=function(t){var e=t.get(en),n=e instanceof Qe;if(e&&!n){(0,i.isString)(e)?e={id:e,label:e}:(0,a.isObject)(e)&&!e.id&&(e.id=e.label);var r=this.getCategories().add(e);return t.set(en,r,{silent:!0}),r}if(n)return r=e,this.getCategories().add(r),r},e}(d.pM),rn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),on=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this,e,n)||this,o=n.events,i=n.em,a=null==o?void 0:o.update;return i&&a&&r.on("change",(function(t,e){return i.trigger(a,{category:t,changes:t.changedAttributes(),options:e})})),r}return rn(e,t),e.prototype.add=function(e,n){return((0,i.isArray)(e)?e:[e]).forEach((function(t){return t&&(t.id=(0,a.normalizeKey)("".concat(t.id)))})),t.prototype.add.call(this,e,n)},e.prototype.get=function(e){return t.prototype.get.call(this,(0,i.isString)(e)?(0,a.normalizeKey)(e):e)},e}(d.pM);const an=on;var sn;on.prototype.model=Qe,function(t){t.select="trait:select",t.value="trait:value",t.categoryUpdate="trait:category:update",t.custom="trait:custom",t.all="trait"}(sn||(sn={}));const ln=sn;var cn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),un=function(){return un=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},un.apply(this,arguments)},pn=function(t){function e(e,n){var r=t.call(this,e)||this,o=r.attributes,i=o.target,a=o.name;return!r.get("id")&&r.set("id",a),i&&r.setTarget(i),r.em=n,r}return cn(e,t),e.prototype.defaults=function(){return{type:"text",label:"",name:"",unit:"",step:1,value:"",default:"",placeholder:"",category:"",changeProp:!1,options:[]}},Object.defineProperty(e.prototype,"parent",{get:function(){return this.collection},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"category",{get:function(){var t=this.get("category");return t instanceof Qe?t:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeProp",{get:function(){return!!this.get("changeProp")},enumerable:!1,configurable:!0}),e.prototype.setTarget=function(t){if(t){var e=this.attributes,n=e.name,r=e.changeProp,o=e.value,a=e.getValue;this.target=t,this.unset("target");var s=r?"change:".concat(n):"change:attributes:".concat(n);this.listenTo(t,s,this.targetUpdated);var l=o||(a?void 0:this.getValue());!(0,i.isUndefined)(l)&&this.set({value:l},{silent:!0})}},e.prototype.getId=function(){return this.get("id")},e.prototype.getType=function(){return this.get("type")},e.prototype.getName=function(){return this.get("name")},e.prototype.getLabel=function(t){var e;void 0===t&&(t={});var n=t.locale,r=void 0===n||n,o=this.getId(),i=this.get("label")||this.getName();return r&&(null===(e=this.em)||void 0===e?void 0:e.t("traitManager.traits.labels.".concat(o)))||i},e.prototype.getValue=function(t){return this.getTargetValue(t)},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={});var r=this.component,o=this.em,i=e.partial,a={},s=this.attributes.setValue;s?s({value:t,component:r,editor:null==o?void 0:o.getEditor(),trait:this,partial:!!i,options:e,emitUpdate:function(){return n.targetUpdated()}}):(i&&(a.avoidStore=!0),this.setTargetValue(t,a))},e.prototype.getDefault=function(){return this.get("default")},e.prototype.getOptions=function(){return this.get("options")||[]},e.prototype.getOption=function(t){var e=this,n=(0,a.isDef)(t)?t:this.getValue();return this.getOptions().filter((function(t){return e.getOptionId(t)===n}))[0]},e.prototype.getOptionId=function(t){return t.id||t.value},e.prototype.getOptionLabel=function(t,e){var n;void 0===e&&(e={});var r=e.locale,o=void 0===r||r,a=(0,i.isString)(t)?this.getOption(t):t,s=this.getOptionId(a),l=a.label||a.name||s,c=this.getName();return o&&(null===(n=this.em)||void 0===n?void 0:n.t("traitManager.traits.options.".concat(c,".").concat(s)))||l},e.prototype.getCategoryLabel=function(t){void 0===t&&(t={});var e=this.em,n=this.category,r=t.locale,o=void 0===r||r,i=null==n?void 0:n.getId(),a=null==n?void 0:n.getLabel();return o&&(null==e?void 0:e.t("traitManager.categories.".concat(i)))||a||""},e.prototype.runCommand=function(){var t=this.em,e=this.attributes.command;if(e&&t)return(0,i.isString)(e)?t.Commands.run(e):e(t.Editor,this)},e.prototype.props=function(){return this.attributes},e.prototype.targetUpdated=function(){var t=this.component,e=this.em,n=this.getTargetValue({useType:!0});this.set({value:n},{fromTarget:1});var r={trait:this,component:t,value:n};t.trigger(ln.value,r),null==e||e.trigger(ln.value,r),null==e||e.trigger("trait:update",r)},e.prototype.getTargetValue=function(t){void 0===t&&(t={});var e,n=this.component,r=this.em,o=this.getName(),a=this.get("getValue");if(e=a?a({editor:null==r?void 0:r.getEditor(),trait:this,component:n}):this.changeProp?n.get(o):n.getAttributes()[o],t.useType&&"checkbox"===this.getType()){var s=this.attributes,l=s.valueTrue,c=s.valueFalse;(0,i.isUndefined)(l)||l!==e?(0,i.isUndefined)(c)||c!==e||(e=!1):e=!0}return(0,i.isUndefined)(e)?"":e},e.prototype.setTargetValue=function(t,e){var n;void 0===e&&(e={});var r=this.component,o=this.attributes,a=this.getName();if(!(0,i.isUndefined)(t)){var s=t;if("false"===t?s=!1:"true"===t&&(s=!0),"checkbox"===this.getType()){var l=o.valueTrue,c=o.valueFalse;s&&!(0,i.isUndefined)(l)&&(s=l),s||(0,i.isUndefined)(c)||(s=c)}var u=((n={})[a]=s,n);u.__p=e.avoidStore?null:void 0,this.changeProp?r.set(u,e):r.addAttributes(u,e)}},e.prototype.setValueFromInput=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n={});var r={value:t};this.set(r,un(un({},n),{avoidStore:1})),e&&(this.set("value","",n),this.set(r,n))},e.prototype.getInitValue=function(){var t,e=this.component,n=this.getName();if(e){var r=e.get("attributes");t=this.changeProp?e.get(n):r[n]}return t||this.get("value")||this.get("default")},e}(d.Kx);const dn=pn;const fn=function(){function t(t){void 0===t&&(t={}),this.config=t}return t.prototype.build=function(t,e){return(0,i.isString)(t)?this.buildFromString(t,e):new dn(t,e)},t.prototype.buildFromString=function(t,e){var n={name:t,type:"text"};return"target"===t&&(n.type="select",n.default=!1,n.options=this.config.optionsTarget),new dn(n,e)},t}();var hn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gn=function(t){function e(e,n){var r=t.call(this,e)||this;r.categories=new an;var o=n.em;r.em=o,r.categories=new an([],{em:o,events:{update:ln.categoryUpdate}}),r.on("add",r.handleAdd),r.on("reset",r.handleReset);var i=r.module,a=null==i?void 0:i.getConfig();return r.tf=new fn(a),r}return hn(e,t),Object.defineProperty(e.prototype,"module",{get:function(){return this.em.Traits},enumerable:!1,configurable:!0}),e.prototype.getCategories=function(){return this.categories},e.prototype.handleReset=function(t,e){var n=(void 0===e?{}:e).previousModels;(void 0===n?[]:n).forEach((function(t){return t.trigger("remove")}))},e.prototype.handleAdd=function(t){t.em=this.em;var e=this.target;e&&(t.target=e),this.initCategory(t)},e.prototype.setTarget=function(t){this.target=t,this.models.forEach((function(e){return e.setTarget(t)}))},e.prototype.add=function(e,n){if(null!=e){var r=this.target,o=this.em;if((0,i.isArray)(e)){for(var a=[],s=0,l=e.length;s<l;s++){var c=e[s];a[s]=c instanceof dn?c:this.tf.build(c,o),a[s].setTarget(r)}return t.prototype.add.call(this,a,n)}var u=e instanceof dn?e:this.tf.build(e,o);return u.setTarget(r),t.prototype.add.call(this,u,n)}},e}(nn);const mn=gn;var vn=function(){return vn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},vn.apply(this,arguments)},yn=function(){function t(t,e){this.updateFn=t,this.em=e,this.dynamicVariableListeners={}}return t.getStaticValues=function(t,e){if(!t)return{};for(var n=vn({},t),r=0,o=Object.keys(t);r<o.length;r++){var i=o[r],a=t[i];if(Vt(a)){var s=Wt(a,e).value;n[i]=s}}return n},t.areStaticValues=function(t){return!t||Object.keys(t).every((function(e){return!Vt(t[e])}))},t.prototype.setDynamicValues=function(t){return this.removeListeners(),this.addDynamicValues(t)},t.prototype.addDynamicValues=function(t){var e=this;if(!t)return{};this.removeListeners(Object.keys(t));for(var n=this.getDynamicValues(t),r=Object.keys(n),o=function(t){var o=r[t];i.dynamicVariableListeners[o]=new fe({em:i.em,dataVariable:n[o],updateValueFromDataVariable:function(t){e.updateFn.bind(e)(o,t)}})},i=this,a=0;a<r.length;a++)o(a);return n},t.prototype.getDynamicValues=function(t){for(var e={},n=Object.keys(t),r=0;r<n.length;r++){var o=n[r];if(Vt(t[o])){var i=Wt(t[o],this.em).variable;e[o]=i}}return e},t.prototype.removeListeners=function(t){var e=this;(t||Object.keys(this.dynamicVariableListeners)).forEach((function(t){e.dynamicVariableListeners[t]&&(e.dynamicVariableListeners[t].destroy(),delete e.dynamicVariableListeners[t])}))},t.prototype.getSerializableValues=function(t){if(!t)return{};for(var e=vn({},t),n=Object.keys(e),r=0;r<n.length;r++){var o=n[r];this.dynamicVariableListeners[o]&&(e[o]=this.dynamicVariableListeners[o].dynamicVariable.toJSON())}return e},t.prototype.getAllSerializableValues=function(){for(var t={},e=Object.keys(this.dynamicVariableListeners),n=0;n<e.length;n++){var r=e[n];t[r]=this.dynamicVariableListeners[r].dynamicVariable.toJSON()}return t},t}(),bn=function(){function t(t,e){this.component=t,this.propertyWatcher=new yn(this.createPropertyUpdater(),e),this.attributeWatcher=new yn(this.createAttributeUpdater(),e)}return t.prototype.createPropertyUpdater=function(){var t=this;return function(e,n){t.component.set(e,n,{fromDataSource:!0,avoidStore:!0})}},t.prototype.createAttributeUpdater=function(){var t=this;return function(e,n){var r;t.component.addAttributes(((r={})[e]=n,r),{fromDataSource:!0,avoidStore:!0})}},t.prototype.addProps=function(t){this.propertyWatcher.addDynamicValues(t)},t.prototype.addAttributes=function(t){this.attributeWatcher.addDynamicValues(t)},t.prototype.setAttributes=function(t){this.attributeWatcher.setDynamicValues(t)},t.prototype.removeAttributes=function(t){this.attributeWatcher.removeListeners(t)},t.prototype.getDynamicPropsDefs=function(){return this.propertyWatcher.getAllSerializableValues()},t.prototype.getDynamicAttributesDefs=function(){return this.attributeWatcher.getAllSerializableValues()},t.prototype.getAttributesDefsOrValues=function(t){return this.attributeWatcher.getSerializableValues(t)},t.prototype.getPropsDefsOrValues=function(t){return this.propertyWatcher.getSerializableValues(t)},t.prototype.destroy=function(){this.propertyWatcher.removeListeners(),this.attributeWatcher.removeListeners()},t}(),_n=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wn=function(){return wn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},wn.apply(this,arguments)},En=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},xn=function(t){return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")},Cn=function(t){return!!(null==t?void 0:t.getConfig().avoidInlineStyle)},Tn="component:drag",An="__symbols",On="__symbol",Sn="__symbol_ovrd",kn=ct.I.update,Pn=ct.I.updateInside,jn=function(t){function e(n,r){void 0===n&&(n={});var o=t.call(this,n,r)||this;o.componentDVListener=new bn(o,r.em),o.componentDVListener.addProps(n),(0,i.bindAll)(o,"__upSymbProps","__upSymbCls","__upSymbComps");var a=r.em,s=o.parent(),l=null==s?void 0:s.attributes,c=o.get("propagate");if(c&&o.set("propagate",(0,i.isArray)(c)?c:[c]),l&&l.propagate&&!c){var u={},p=l.propagate;p.forEach((function(t){return u[t]=s.get(t)})),u.propagate=p,o.set(wn(wn({},u),n))}if(r&&r.config&&r.config.voidElements.indexOf(o.get("tagName"))>=0&&o.set("void",!0),r.em=a,o.opt=r,o.em=a,o.config=r.config||{},o.setAttributes(wn(wn({},(0,i.result)(o,"defaults").attributes||{}),o.get("attributes")||{})),o.ccid=e.createId(o,r),o.preInit(),o.initClasses(),o.initComponents(),o.initTraits(),o.initToolbar(),o.initScriptProps(),o.listenTo(o,"change:script",o.scriptUpdated),o.listenTo(o,"change:tagName",o.tagUpdated),o.listenTo(o,"change:attributes",o.attrUpdated),o.listenTo(o,"change:attributes:id",o._idUpdated),o.on("change:toolbar",o.__emitUpdateTlb),o.on("change",o.__onChange),o.on(Pn,o.__propToParent),o.set("status",""),o.views=[],["classes","traits","components"].forEach((function(t){var e="add remove ".concat("components"!==t?"change":"");o.listenTo(o.get(t),e.trim(),(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return o.emitUpdate.apply(o,En([t],e,!1))}))})),!r.temporary){var d=a&&a.Css,f=o.attributes,h=f.styles,g=f.type;h&&d&&d.addCollection(h,{avoidUpdateStyle:!0},{group:"cmp:".concat(g)}),o.__postAdd(),o.init(),Ce(o)&&Ae(o),null==a||a.trigger(ct.I.create,o,r)}return o}return _n(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){var t;return(t={tagName:"div",type:"",name:"",removable:!0,draggable:!0,droppable:!0,badgable:!0,stylable:!0,"stylable-require":"","style-signature":"",unstylable:"",highlightable:!0,copyable:!0,resizable:!1,editable:!1,layerable:!0,selectable:!0,hoverable:!0,void:!1,state:"",status:"",content:"",icon:"",style:"",styles:"",classes:"",script:"","script-props":"","script-export":"",attributes:{},traits:["id","title"],propagate:"",dmode:"",toolbar:null,delegate:null})[On]=0,t[An]=0,t[Sn]=0,t._undo=!0,t._undoexc=["status","open"],t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.get("tagName")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classes",{get:function(){return this.get("classes")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"traits",{get:function(){return this.get("traits")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){var t;return null!==(t=this.get("content"))&&void 0!==t?t:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toolbar",{get:function(){return this.get("toolbar")||[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resizable",{get:function(){return this.get("resizable")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"delegate",{get:function(){return this.get("delegate")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locked",{get:function(){return this.get("locked")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frame",{get:function(){return this.opt.frame},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"page",{get:function(){var t;return null===(t=this.frame)||void 0===t?void 0:t.getPage()},enumerable:!1,configurable:!0}),e.prototype.preInit=function(){},e.prototype.init=function(){},e.prototype.updated=function(t,e,n){},e.prototype.removed=function(){},e.prototype.set=function(e,n,r){var o,i,a,s={skipWatcherUpdates:!1,fromDataSource:!1};"object"==typeof e?(a=e,s=n||s):"string"==typeof e?((o={})[e]=n,a=o,s=r||s):(a={},s=r||s);var l=this.em||s.em,c=yn.getStaticValues(a,l);return s.skipWatcherUpdates||s.fromDataSource||null===(i=this.componentDVListener)||void 0===i||i.addProps(a),t.prototype.set.call(this,c,s)},e.prototype.__postAdd=function(t){void 0===t&&(t={});var e=this.em,n=null==e?void 0:e.UndoManager,r=this.components();n&&!this.__hasUm&&(n.add(r),n.add(this.getSelectors()),this.__hasUm=!0),t.recursive&&r.map((function(e){return e.__postAdd(t)}))},e.prototype.__postRemove=function(){var t=this.em,e=null==t?void 0:t.UndoManager;e&&(e.remove(this.components()),e.remove(this.getSelectors()),delete this.__hasUm)},e.prototype.__onChange=function(t,e){var n=this,r=this.changedAttributes()||{};(0,i.keys)(r).forEach((function(t){return n.emitUpdate(t)})),["status","open","toolbar","traits"].forEach((function(t){return delete r[t]})),(0,a.isEmptyObj)(r)||(this.__changesUp(e),this.__propSelfToParent({component:this,changed:r,options:e}))},e.prototype.__onStyleChange=function(t){var e=this,n=this.em;if(n){var r="component:styleUpdate",o=(0,i.keys)(t),a={style:t};n.trigger(r,this,a),o.forEach((function(t){return n.trigger("".concat(r,":").concat(t),e,a)}))}},e.prototype.__changesUp=function(t){var e=this.em;[this.frame,e].forEach((function(e){return e&&e.changesUp(t)}))},e.prototype.__propSelfToParent=function(t){this.trigger(kn,t),this.__propToParent(t)},e.prototype.__propToParent=function(t){var e=this.parent();e&&e.trigger(Pn,t)},e.prototype.__emitUpdateTlb=function(){this.emitUpdate("toolbar")},e.prototype.__getAllById=function(){var t=this.em;return t?t.Components.allById():{}},e.prototype.__upSymbProps=function(t,e){void 0===e&&(e={}),function(t,e){void 0===e&&(e={});var n=t.changedAttributes()||{},r=n.attributes||{};if(delete n.status,delete n.open,delete n[An],delete n[On],delete n[Sn],delete n.attributes,delete r.id,(0,a.isEmptyObj)(r)||(n.attributes=r),!(0,a.isEmptyObj)(n)){var o=Pe(t,e);(0,i.keys)(n).map((function(e){ke(t,e)&&delete n[e]})),Le(t,"props",o,{opts:e,changed:n}),o.forEach((function(r){var o=_e({},n);(0,i.keys)(o).map((function(t){ke(r,t)&&delete o[t]})),r.set(o,_e({fromInstance:t},e))}))}}(this,e)},e.prototype.__upSymbCls=function(t,e,n){void 0===n&&(n={}),function(t,e){void 0===e&&(e={});var n=Pe(t,e);Le(t,"classes",n,{opts:e}),n.forEach((function(e){e.set("classes",t.get("classes"),{fromInstance:t})})),t.__changesUp(e)}(this,n)},e.prototype.__upSymbComps=function(t,e,n){De(this,t,e,n)},e.prototype.is=function(t){return!(this.get("type")!=t)},e.prototype.props=function(){return this.attributes},e.prototype.index=function(){var t=this.collection;return t?t.indexOf(this):0},e.prototype.setDragMode=function(t){return this.set("dmode",t)},e.prototype.getDragMode=function(){return this.get("dmode")||""},e.prototype.setSymbolOverride=function(t){var e;this.set(Sn,null!==(e=(0,i.isString)(t)?[t]:t)&&void 0!==e?e:0)},e.prototype.getSymbolOverride=function(){return this.get(Sn)},e.prototype.find=function(t){var e,n=[],r=null===(e=this.view)||void 0===e?void 0:e.$el.find(t);return null==r||r.each((function(t){var e=r.eq(t).data("model");e&&n.push(e)})),n},e.prototype.findType=function(t){var e=[],n=function(r){return r.forEach((function(r){r.is(t)&&e.push(r),n(r.components())}))};return n(this.components()),e},e.prototype.findFirstType=function(t){return this.findType(t).at(0)},e.prototype.closest=function(t){var e,n=null===(e=this.view)||void 0===e?void 0:e.$el.closest(t);return(null==n?void 0:n.length)?n.data("model"):void 0},e.prototype.closestType=function(t){for(var e=this.parent();e&&!e.is(t);)e=e.parent();return e},e.prototype.contains=function(t){var e=!1;if(!t)return e;var n=function(r){!e&&r.forEach((function(r){r===t&&(e=!0),!e&&n(r.components())}))};return n(this.components()),e},e.prototype.tagUpdated=function(){this.trigger("rerender")},e.prototype.replaceWith=function(t,e){void 0===e&&(e={});var n=this.collection,r=n.indexOf(this);n.remove(this);var o=n.add(t,wn(wn({},e),{at:r}));return(0,i.isArray)(o)?o:[o]},e.prototype.attrUpdated=function(t,e,n){var r=this;void 0===n&&(n={});var o=this.get("attributes"),s=o.class;s&&this.setClass(s),delete o.class;var l=o.style;l&&this.setStyle(l,n),delete o.style;var c=wn({},this.previous("attributes")),u=(0,a.shallowDiff)(c,this.get("attributes"));(0,i.keys)(u).forEach((function(t){var e,o="attributes:".concat(t);r.trigger("change:".concat(o),r,u[t],n),null===(e=r.em)||void 0===e||e.trigger("".concat(kn,":").concat(o),r,u[t],n)}))},e.prototype.setAttributes=function(t,e){void 0===e&&(e={skipWatcherUpdates:!1,fromDataSource:!1});var n=this.em||e.em,r=yn.getStaticValues(t,n);return e.skipWatcherUpdates||e.fromDataSource||this.componentDVListener.setAttributes(t),this.set("attributes",wn({},r),e),this},e.prototype.addAttributes=function(t,e){void 0===e&&(e={});var n=this.componentDVListener.getDynamicAttributesDefs();return this.setAttributes(wn(wn(wn({},this.getAttributes({noClass:!0})),n),t),e)},e.prototype.removeAttributes=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={});var n=Array.isArray(t)?t:[t];this.componentDVListener.removeAttributes(n);var r=this.getAttributes();return n.map((function(t){return delete r[t]})),this.setAttributes(r,e)},e.prototype.getStyle=function(e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=this.em,o=(0,i.isString)(e)?e:"",a=o?n:e;if(Cn(r)&&!a.inline){var s=r.get("state"),l=r.Css.getIdRule(this.getId(),wn({state:s},a));return this.rule=l,l?l.getStyle(o):{}}return t.prototype.getStyle.call(this,o)},e.prototype.setStyle=function(e,n){var r=this;void 0===e&&(e={}),void 0===n&&(n={});var o=this.opt,s=this.em;if(!Cn(s)||o.temporary||n.inline)e=t.prototype.setStyle.apply(this,arguments);else{var l=this.get("style")||{};e=(0,i.isString)(e)?this.parseStyle(e):e,e=wn(wn({},e),l);var c=s.get("state"),u=s.Css,p=this.getStyle(n);this.rule=u.setIdRule(this.getId(),e,wn({state:c},n));var d=(0,a.shallowDiff)(p,e);this.set("style","",{silent:!0}),(0,i.keys)(d).forEach((function(t){return r.trigger("change:style:".concat(t))}))}return o.temporary||this.__onStyleChange(n.addStyle||e),e},e.prototype.getAttributes=function(t){void 0===t&&(t={});var e=this.em,n=[],r=wn({},this.get("attributes")),o=null==e?void 0:e.Selectors,s=this.getId();if(t.noClass?delete r.class:(this.classes.forEach((function(t){return n.push((0,i.isString)(t)?t:t.getName())})),n.length&&(r.class=n.join(" "))),!t.noStyle){var l=this.getStyle({inline:!0});(0,a.isObject)(l)&&!(0,a.isEmptyObj)(l)&&(r.style=this.styleToString({inline:!0}))}if(!(0,i.has)(r,"id")){var c=!1;!Cn(e)&&(0,i.isEmpty)(this.getStyle())||(c=!!(null==o?void 0:o.get(s,o.Selector.TYPE_ID))),(Ce(this)||this.get("script-export")||this.get("script"))&&(c=!0),c&&(r.id=s)}return r},e.prototype.addClass=function(t){var e=this.em.Selectors.addClass(t);return this.classes.add(e)},e.prototype.setClass=function(t){return this.classes.reset(),this.addClass(t)},e.prototype.removeClass=function(t){var e=[];t=(0,i.isArray)(t)?t:[t];var n=this.classes,r=We.TYPE_CLASS;return t.forEach((function(t){t.split(" ").forEach((function(t){var o=n.where({name:t,type:r})[0];o&&e.push(n.remove(o))}))})),e},e.prototype.getClasses=function(){var t=this.getAttributes().class;return t?t.split(" "):[]},e.prototype.initClasses=function(t,e,n){void 0===n&&(n={});var r=this.get("attributes")||{},o=r.class,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(r,["class"]),s=[this,"change:classes",this.initClasses],l=this.get("classes")||o||[],c=(0,i.isString)(l)?l.split(" "):l;this.stopListening.apply(this,s);var u=this.normalizeClasses(c),p=new $e([]);return this.set("classes",p,n),p.add(u),p.on("add remove reset",this.__upSymbCls),o&&u.length&&this.set("attributes",a),this.listenTo.apply(this,s),this},e.prototype.initComponents=function(){var t=[this,"change:components",this.initComponents];this.stopListening.apply(this,t);var e=new Ve([],this.opt);e.parent=this;var n=this.get("components"),r=!this.opt.avoidChildren;return this.set("components",e),r&&n&&e.add((0,i.isFunction)(n)?n(this):n,this.opt),e.on("add remove reset",this.__upSymbComps),this.listenTo.apply(this,t),this},e.prototype.initTraits=function(t){var e=this,n=this.em,r="change:traits";this.off(r,this.initTraits),this.__loadTraits();var o=wn({},this.get("attributes")),i=this.traits;i.each((function(t){var n=t.getName(),r=t.getInitValue();t.changeProp?e.set(n,r):n&&r&&(o[n]=r)}));var a=this.componentDVListener.getDynamicAttributesDefs();return i.length&&this.setAttributes(wn(wn({},o),a)),this.on(r,this.initTraits),t&&n&&n.trigger("component:toggled"),this},e.prototype.initScriptProps=function(){if(!this.opt.temporary){var t="script-props",e=["change:".concat(t),this.initScriptProps];this.off.apply(this,e);var n=this.previous(t)||[],r=this.get(t)||[],o=n.map((function(t){return"change:".concat(t)})).join(" "),i=r.map((function(t){return"change:".concat(t)})).join(" ");o&&this.off(o,this.__scriptPropsChange),i&&this.on(i,this.__scriptPropsChange),this.on.apply(this,e)}},e.prototype.__scriptPropsChange=function(t,e,n){void 0===n&&(n={}),n.avoidStore||this.trigger("rerender")},e.prototype.append=function(t,e){void 0===e&&(e={});var n=((0,i.isArray)(t)?En([],t,!0):[t]).map((function(t){return(0,i.isString)(t)||t.collection&&t.collection.remove(t,{temporary:!0}),t}));return this.components().add(n,wn({action:ct.t.add},e))},e.prototype.components=function(t,e){void 0===e&&(e={});var n=this.get("components");return(0,i.isUndefined)(t)?n:(n.reset(void 0,e),t?this.append(t,e):[])},e.prototype.getChildAt=function(t){return this.components().at(t||0)||void 0},e.prototype.getLastChild=function(){var t=this.components();return t.at(t.length-1)||null},e.prototype.empty=function(t){return void 0===t&&(t={}),this.components().reset(void 0,t),this},e.prototype.parent=function(t){void 0===t&&(t={});var e=this.collection||t.prev&&this.prevColl;return e?e.parent:void 0},e.prototype.parents=function(){var t=this.parent();return t?[t].concat(t.parents()):[]},e.prototype.scriptUpdated=function(){this.set("scriptUpdated",1)},e.prototype.initToolbar=function(){var t=this.em,e=this,n=t&&t.getConfig().stylePrefix||"";if(!e.get("toolbar")&&t){var r=[];e.collection&&r.push({label:t.getIcon("arrowUp"),command:function(t){return t.runCommand("core:component-exit",{force:1})}}),e.get("draggable")&&r.push({attributes:{class:"".concat(n,"no-touch-actions"),draggable:!0},label:t.getIcon("move"),command:"tlb-move"}),e.get("copyable")&&r.push({label:t.getIcon("copy"),command:"tlb-clone"}),e.get("removable")&&r.push({label:t.getIcon("delete"),command:"tlb-delete"}),e.set("toolbar",r)}},e.prototype.__loadTraits=function(t,e){void 0===e&&(e={});var n=t||this.traits;if(!(n instanceof mn)){n=(0,i.isFunction)(n)?n(this):n;var r=new mn([],this.opt);r.setTarget(this),n.length&&r.add(n),this.set({traits:r},e)}return this},e.prototype.getTraits=function(){return this.__loadTraits(),En([],this.traits.models,!0)},e.prototype.setTraits=function(t){var e=(0,i.isArray)(t)?t:[t];return this.set({traits:e}),this.getTraits()},e.prototype.getTrait=function(t){return this.getTraits().filter((function(e){return e.get("id")===t||e.get("name")===t}))[0]||null},e.prototype.updateTrait=function(t,e){var n,r=this.getTrait(t);return r&&r.set(e),null===(n=this.em)||void 0===n||n.trigger("component:toggled"),this},e.prototype.getTraitIndex=function(t){var e=this.getTrait(t);return e?this.traits.indexOf(e):-1},e.prototype.removeTrait=function(t){var e,n=this,r=((0,i.isArray)(t)?t:[t]).map((function(t){return n.getTrait(t)})),o=this.traits,a=r.length?o.remove(r):[];return null===(e=this.em)||void 0===e||e.trigger("component:toggled"),(0,i.isArray)(a)?a:[a]},e.prototype.addTrait=function(t,e){var n;void 0===e&&(e={}),this.__loadTraits();var r=this.traits.add(t,e);return null===(n=this.em)||void 0===n||n.trigger("component:toggled"),(0,i.isArray)(r)?r:[r]},e.prototype.normalizeClasses=function(t){var e=[],n=this.em,r=null==n?void 0:n.Selectors;return r?t.models?En([],t.models,!0):(t.forEach((function(t){return e.push(r.add(t))})),e):[]},e.prototype.clone=function(t){void 0===t&&(t={});var e=this.em,n=wn({},this.componentDVListener.getPropsDefsOrValues(this.attributes)),r=wn({},this.opt),o=this.getId(),i=null==e?void 0:e.Css;n.attributes=wn({},n.attributes?this.componentDVListener.getAttributesDefsOrValues(n.attributes):void 0),n.components=[],n.classes=[],n.traits=[],Te(this)&&(t.symbol=!0),this.get("components").each((function(e,r){n.components[r]=e.clone(wn(wn({},t),{_inner:1}))})),this.get("traits").each((function(t,e){n.traits[e]=t.clone()})),this.get("classes").each((function(t,e){n.classes[e]=t.get("name")})),n.status="",r.collection=null;var a=new this.constructor(n,r),s="#".concat(a.getId());(i?i.getRules("#".concat(o)):[]).forEach((function(t){var e=t.clone();e.set("selectors",[s]),i.getAll().add(e)})),a.set(An,0);var l=Oe(this),c=Se(this);t.symbol||!l&&!c?l?(l.set(An,En(En([],Se(l),!0),[a],!1)),Ae(a)):t.symbol&&(Ee(this)?(this.set(An,En(En([],c,!0),[a],!1)),a.set(On,this),Ae(a)):t.symbolInv?(this.set(An,[a]),a.set(On,this),[this,a].map((function(t){return Ae(t)}))):(a.set(An,[this]),[this,a].map((function(t){return Ae(t)})),this.set(On,a))):(a.set(On,0),a.set(An,0));var u="component:clone";return e&&e.trigger(u,a),this.trigger(u,a),a},e.prototype.getName=function(t){void 0===t&&(t={});var e=this.em,n=this.attributes,r=n.type,o=n.tagName,i=n.name,s=r||o,l=r?"":o,c="domComponents.names.",u=i&&(null==e?void 0:e.t("".concat(c).concat(i))),p=l&&(null==e?void 0:e.t("".concat(c).concat(l))),d=e&&(e.t("".concat(c).concat(r))||e.t("".concat(c).concat(o))),f=this.get("custom-name");return(t.noCustom?"":f)||u||i||p||(0,a.capitalize)(l)||d||(0,a.capitalize)(s)},e.prototype.setName=function(t,e){void 0===e&&(e={}),this.set("custom-name",t,e)},e.prototype.getIcon=function(){var t=this.get("icon");return t?t+" ":""},e.prototype.toHTML=function(t){void 0===t&&(t={});var e=t.tag||this.get("tagName");delete t.tag;var n=this.__attrToString(t),r=n?" ".concat(n):"",o=this.getInnerHTML(t),i=!o&&this.get("void"),a="<".concat(e).concat(r).concat(i?"/":"",">").concat(o);return!i&&(a+="</".concat(e,">")),a},e.prototype.getInnerHTML=function(t){return this.__innerHTML(t)},e.prototype.__innerHTML=function(t){void 0===t&&(t={});var e=this.components();return e.length?e.map((function(e){return e.toHTML(t)})).join(""):this.content},e.prototype.__attrToString=function(t){void 0===t&&(t={});var e=[],n=t.attributes,r=this.getAttrToHTML(t);if(n&&((0,i.isFunction)(n)?r=n(this,r)||{}:(0,a.isObject)(n)&&(r=n)),t.withProps){var o=this.toJSON();(0,i.forEach)(o,(function(t,e){"_"!==e[0]&&["classes","attributes","components"].indexOf(e)<0&&(r["data-gjs-".concat(e)]=(0,i.isArray)(t)||(0,a.isObject)(t)?JSON.stringify(t):(0,i.isBoolean)(t)?"".concat(t):t)}))}for(var s in r){var l=r[s];if(!(0,i.isUndefined)(l)&&null!==l)if((0,i.isBoolean)(l))l&&e.push(s);else{var c="";if(t.altQuoteAttr&&(0,i.isString)(l)&&l.indexOf('"')>=0)c="'".concat(l.replace(/'/g,"&apos;"),"'");else{var u=(0,i.isString)(l)?l.replace(/"/g,"&quot;"):l;c='"'.concat(u,'"')}e.push("".concat(s,"=").concat(c))}}return e.join(" ")},e.prototype.getAttrToHTML=function(t){var e=this.getAttributes();return Cn(this.em)&&!0!==(null==t?void 0:t.keepInlineStyle)&&delete e.style,e},e.prototype.toJSON=function(t){void 0===t&&(t={});var e=c.Model.prototype.toJSON.call(this,t);if((e=wn(wn({},e),this.componentDVListener.getDynamicPropsDefs())).attributes=this.componentDVListener.getAttributesDefsOrValues(this.getAttributes()),delete e.componentDVListener,delete e.attributes.class,delete e.toolbar,delete e.traits,delete e.status,delete e.open,delete e._undoexc,delete e.delegate,!t.fromUndo){var n=e[On],r=e[An];r&&(0,i.isArray)(r)&&(e[An]=r.filter((function(t){return t})).map((function(t){return t.getId?t.getId():t}))),n&&!(0,i.isString)(n)&&(e[On]=n.getId())}return this.em.getConfig().avoidDefaults&&this.getChangedProps(e),e},e.prototype.getChangedProps=function(t){var e=t||c.Model.prototype.toJSON.apply(this),n=(0,i.result)(this,"defaults");return(0,i.forEach)(n,(function(t,n){-1===["type"].indexOf(n)&&e[n]===t&&delete e[n]})),(0,i.isEmpty)(e.type)&&delete e.type,(0,i.forEach)(["attributes","style"],(function(t){(0,i.isEmpty)(n[t])&&(0,i.isEmpty)(e[t])&&delete e[t]})),(0,i.forEach)(["classes","components"],(function(t){(!e[t]||(0,i.isEmpty)(n[t])&&!e[t].length)&&delete e[t]})),e},e.prototype.getId=function(){return(this.get("attributes")||{}).id||this.ccid||this.cid},e.prototype.setId=function(t,e){var n=wn({},this.get("attributes"));return n.id=t,this.set("attributes",n,e),this},e.prototype.getEl=function(t){var e=this.getView(t);return e&&e.el},e.prototype.getView=function(t){var e=this,n=e.view,r=e.views,o=e.em,i=t||(null==o?void 0:o.getCurrentFrameModel());return i&&(n=r.filter((function(t){return t.frameView===i.view}))[0]),n},e.prototype.getCurrentView=function(){var t=this.em.getCurrentFrame(),e=null==t?void 0:t.model;return this.getView(e)},e.prototype.__getScriptProps=function(){var t=this.props();return(this.get("script-props")||[]).reduce((function(e,n){return e[n]=t[n],e}),{})},e.prototype.getScriptString=function(t){var e=this,n=t||this.get("script")||"";if(!n)return n;if(this.get("script-props"))n=n.toString().trim();else{if((0,i.isFunction)(n)){var r=n.toString().trim();n=(r=r.slice(r.indexOf("{")+1,r.lastIndexOf("}"))).trim()}var o=this.em.getConfig(),a=xn(o.tagVarStart||"{[ "),s=xn(o.tagVarEnd||" ]}"),l=new RegExp("".concat(a,"([\\w\\d-]*)").concat(s),"g");n=n.replace(l,(function(t,n){e.scriptUpdated();var r=e.attributes[n]||"";return(0,i.isArray)(r)||"object"==typeof r?JSON.stringify(r):r}))}return n},e.prototype.emitUpdate=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.em,i=kn+(t?":".concat(t):""),a=t&&this.get(t);t&&this.updated.apply(this,En([t,a,t&&this.previous(t)],n,!1)),this.trigger.apply(this,En([i],n,!1)),o&&o.trigger.apply(o,En([i,this],n,!1)),["components","classes"].indexOf(t)>=0&&this.__propSelfToParent({component:this,changed:(e={},e[t]=a,e),options:n[2]||n[1]||{}})},e.prototype.emitWithEitor=function(t,e){[this.em,this].forEach((function(n){return null==n?void 0:n.trigger(t,e)}))},e.prototype.onAll=function(t){return(0,i.isFunction)(t)&&(t(this),this.components().forEach((function(e){return e.onAll(t)}))),this},e.prototype.forEachChild=function(t){(0,i.isFunction)(t)&&this.components().forEach((function(e){t(e),e.forEachChild(t)}))},e.prototype.remove=function(t){var e=this;void 0===t&&(t={});var n=this.em,r=this.collection,o=function(){r&&r.remove(e,wn({action:ct.t.remove},t)),r||(e.components("",t),e.components().removeChildren(e,void 0,t))},i=wn({},t);return[this,n].map((function(t){return t.trigger(ct.I.removeBefore,e,o,i)})),!i.abort&&o(),this},e.prototype.destroy=function(e){return this.componentDVListener.destroy(),t.prototype.destroy.call(this,e)},e.prototype.move=function(t,e){if(void 0===e&&(e={}),t){var n=e.at,r=this.index(),o=t===this.parent();if(!o||r!==n&&r!==n-1){o&&n&&n>r&&(e.at=n-1);var i=ct.t.move;this.remove({action:i,temporary:1}),t.append(this,wn({action:i},e)),this.emitUpdate()}}return this},e.prototype.isInstanceOf=function(t){var e,n,r=null===(n=null===(e=this.em)||void 0===e?void 0:e.Components.getType(t))||void 0===n?void 0:n.model;if(!r)return!1;var o=this.constructor.typeExtends;return this instanceof r||o.has(t)},e.prototype.isChildOf=function(t){for(var e=(0,i.isString)(t),n=this.parent();n;){if(e){if(n.isInstanceOf(t))return!0}else if(n===t)return!0;n=n.parent()}return!1},e.prototype.resetId=function(t){void 0===t&&(t={});var n=this.em,r=this.getId();if(!r)return this;var o=e.createId(this);this.setId(o);var i=null==n?void 0:n.Css.getIdRule(r),a=null==i?void 0:i.get("selectors").at(0);return null==a||a.set("name",o),this},e.prototype._getStyleRule=function(t){var e=(void 0===t?{}:t).id,n=this.em,r=e||this.getId();return null==n?void 0:n.Css.getIdRule(r)},e.prototype._getStyleSelector=function(t){var e=this._getStyleRule(t);return null==e?void 0:e.get("selectors").at(0)},e.prototype._idUpdated=function(t,n,r){if(void 0===r&&(r={}),!r.idUpdate){var o=this.ccid,i=(this.get("attributes")||{}).id,a=(this.previous("attributes")||{}).id||o,s=e.getList(this);if(s[i]||!i&&a)return this.setId(a,{idUpdate:!0});delete s[a],s[i]=this,this.ccid=i;var l=this._getStyleSelector({id:a});l&&l.set({name:i,label:i})}},e.getDefaults=function(){return(0,i.result)(this.prototype,"defaults")},e.isComponent=function(t,e){return{tagName:(0,a.toLowerCase)(t.tagName)}},e.ensureInList=function(t){var n=e.getList(t),r=t.getId(),o=n[r];if(o){if(o!==t){var i=e.getIncrementId(r,n);t.setId(i),n[i]=t}}else n[r]=t;t.components().forEach((function(t){return e.ensureInList(t)}))},e.createId=function(t,n){void 0===n&&(n={});var r,o=e.getList(t),i=n.idMap,a=void 0===i?{}:i,s=t.get("attributes").id;return s?(r=e.getIncrementId(s,o,n),t.setId(r),s!==r&&(a[s]=r)):r=e.getNewId(o),o[r]=t,r},e.getNewId=function(t){for(var n=Object.keys(t).length.toString().length+2,r=(Math.random()+1.1).toString(36).slice(-n),o="i".concat(r);t[o];)o=e.getNewId(t);return o},e.getIncrementId=function(t,e,n){void 0===n&&(n={});var r=n.keepIds,o=1,i=t;if((void 0===r?[]:r).indexOf(t)<0)for(;e[i];)o++,i="".concat(t,"-").concat(o);return i},e.getList=function(t){var e,n=t.em,r=null==n?void 0:n.Components;return null!==(e=null==r?void 0:r.componentsById)&&void 0!==e?e:{}},e.checkId=function(t,n,r,o){void 0===n&&(n=[]),void 0===r&&(r={}),void 0===o&&(o={});var a=(0,i.isArray)(t)?t:[t],s=o.keepIds,l=void 0===s?[]:s,c=o.idMap,u=void 0===c?{}:c;a.forEach((function(t){t.attributes;var a=t.attributes,s=void 0===a?{}:a,c=t.components,p=s.id;if(p&&r[p]&&l.indexOf(p)<0){var d=e.getIncrementId(p,r);u[p]=d,s.id=d,(0,i.isArray)(n)&&n.forEach((function(t){var e=t.selectors;e.forEach((function(t,n){t==="#".concat(p)&&(e[n]="#".concat(d))}))}))}c&&e.checkId(c,n,r,o)}))},e.typeExtends=new Set,e}(be);const Nn=jn;var Ln=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dn=function(){return Dn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Dn.apply(this,arguments)},In="head",Rn=["title","style","base","link","meta","script","noscript"],Mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ln(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Dn(Dn({},t.prototype.defaults),{type:In,tagName:In,draggable:!1,highlightable:!1,droppable:function(t){var e=t.tagName;return!e||Rn.includes((0,a.toLowerCase)(e))}})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===In},e}(Nn);const Bn=Mn;var Fn=r(2128),Un=r(6778),Hn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hn(e,t),e.prototype.canMove=function(t,e){var n=this,r=this.getRealIndex(e),o=t._dragSource,a=o.model,s=o.content,l=o.dragDef,c=!a||!this.isSourceSameSymbol(a),u=((0,i.isFunction)(s)?l:s)||t.model;return Array.isArray(u)?c&&u.every((function(t,e){return n.canMoveSingleContent(t,r+e)})):c&&this.canMoveSingleContent(u,r)},e.prototype.canMoveSingleContent=function(t,e){return this.model.em.Components.canMove(this.model,t,e).result},e.prototype.addChildAt=function(t,e){var n=t._dragSource.content,r=this.isTextNode()&&t.isTextable(),o=(0,i.isFunction)(n)?n():n;return Array.isArray(o)?this.addMultipleChildren(o,e,r):this.addSingleChild(o,e,r)},e.prototype.addSingleChild=function(t,e,n){var r,o,i,a,s;return s=n?null===(a=null===(i=null===(o=null===(r=this.model)||void 0===r?void 0:r.getView)||void 0===o?void 0:o.call(r))||void 0===i?void 0:i.insertComponent)||void 0===a?void 0:a.call(i,t,{action:"add-component"}):this.model.components().add(t,{at:this.getRealIndex(e),action:"add-component"}),new this.constructor(s)},e.prototype.addMultipleChildren=function(t,e,n){var r,o=this;return t.forEach((function(t,i){r=o.addSingleChild(t,e+i,n)})),r},e.prototype.isSourceSameSymbol=function(t){if(Ce(this.model)){var e=je(this.model);if((Ee(e)?e:Oe(e))===t)return!0}return!1},Object.defineProperty(e.prototype,"content",{set:function(t){this._dragSource.content=t},enumerable:!1,configurable:!0}),e}(Un.A);const qn=Vn;var zn=function(){return zn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},zn.apply(this,arguments)},Wn=function(){function t(t,e){var n=this;this.em=t,this.canvas=t.Canvas;var r=e||this.canvas.getFrames().map((function(t){return t.getComponent().getEl()})),o=Array.isArray(r)?r:[r];this.el=o[0],this.counter=0,(0,i.bindAll)(this,"handleDragEnter","handleDragOver","handleDrop","handleDragLeave","handleDragEnd"),o.forEach((function(t){return n.toggleEffects(t,!0)}))}return t.prototype.toggleEffects=function(t,e){var n={on:yt.on,off:yt.AU},r=e?"on":"off";n[r](t,"dragenter",this.handleDragEnter),n[r](t,"dragover",this.handleDragOver),n[r](t,"drop",this.handleDrop),n[r](t,"dragleave",this.handleDragLeave)},t.prototype.__customTglEff=function(t){var e,n=t?yt.on:yt.AU,r=this.el.ownerDocument,o=null===(e=r.defaultView)||void 0===e?void 0:e.frameElement;this.getSorterOptions=t?function(t){return{legacyOnStartSort:function(){(0,yt.on)(o,"pointermove",t.onMove)},legacyOnEnd:function(){(0,yt.AU)(o,"pointermove",t.onMove)},customTarget:function(t){var e=t.event;return r.elementFromPoint(e.clientX,e.clientY)}}}:void 0,n(o,"pointerenter",this.handleDragEnter),n(o,"pointermove",this.handleDragOver),n(document,"pointerup",this.handleDrop),n(o,"pointerout",this.handleDragLeave)},t.prototype.startCustom=function(){this.__customTglEff(!0)},t.prototype.endCustom=function(t){this.over?this.endDrop(t):this.__customTglEff(!1)},t.prototype.endDrop=function(t,e){var n=this.em,r=this.dragStop;this.counter=0,r&&r(t||!this.over),this.__customTglEff(!1),n.trigger("canvas:dragend",e)},t.prototype.handleDragLeave=function(t){this.updateCounter(-1,t)},t.prototype.updateCounter=function(t,e){this.counter+=t,0===this.counter&&this.endDrop(!0,e)},t.prototype.handleDragEnter=function(t){var e,n,r,o=this,i=this.em,a=this.canvas,s=t.dataTransfer,l=i.get("dragSource");if(((null==l?void 0:l.content)||a.getConfig().allowExternalDrop)&&(this.updateCounter(1,t),!this.over)){this.over=!0;var c,u=i.Utils,p=(null==l?void 0:l.content)||"<br>";if(i.stopDefault(),i.inAbsoluteMode()){var d=i.Components.getWrapper(),f=d.append({})[0],h=i.Commands.run("core:component-drag",{event:t,guidesInfo:1,center:1,target:f,onEnd:function(t,e,n){var r;if(!n.cancelled&&p){r=d.append(p)[0];var i=a.getOffset(),l=f.getStyle(),c=l.top,u=l.left,h=l.position,g=(0,yt.Xy)(t.target),m=parseInt("".concat(parseFloat(u)+g.x-i.left),10),v=parseInt("".concat(parseFloat(c)+g.y-i.top),10);r.addStyle({left:m+"px",top:v+"px",position:h})}o.handleDragEnd(r,s),f.remove()}});c=function(e){return h.stop(t,{cancel:e})},this.setAbsoluteDragContent=function(t){return p=t}}else{var g=new u.ComponentSorter({em:i,treeClass:qn,containerContext:{container:this.el,containerSel:"*",itemSel:"*",pfx:"gjs-",placeholderElement:a.getPlacerEl(),document:this.el.ownerDocument},dragBehavior:{dragDirection:Fn.A.BothDirections,nested:!0},positionOptions:{windowMargin:1,canvasRelative:!0},eventHandlers:{legacyOnEndMove:this.handleDragEnd}}),m=null===(e=this.getSorterOptions)||void 0===e?void 0:e.call(this,g);m&&(g.eventHandlers.legacyOnStartSort=m.legacyOnStart,g.eventHandlers.legacyOnEnd=m.legacyOnEnd,g.containerContext.customTarget=m.customTarget);var v=null===(n=this.getTempDropModel(p).view)||void 0===n?void 0:n.el,y=v?[{element:v,dragSource:l}]:[];g.startSort(y),this.sorter=g,this.draggedNode=null===(r=g.sourceNodes)||void 0===r?void 0:r[0],c=function(t){t?g.cancelDrag():g.endDrag()}}this.dragStop=c,i.trigger("canvas:dragenter",s,p)}},t.prototype.getTempDropModel=function(t){var e,n=this.em.Components.getComponents(),r={avoidChildren:1,avoidStore:1,avoidUpdateStyle:1},o=n.add(t,zn(zn({},r),{temporary:!0})),i=n.remove(o,zn(zn({},r),{temporary:!0}));return null===(e=(i=i instanceof Array?i[0]:i).view)||void 0===e||e.$el.data("model",i),i},t.prototype.handleDragEnd=function(t,e){var n=this.em;this.over=!1,t&&(n.set("dragResult",t),n.trigger("canvas:drop",e,t)),n.runDefault({preserveSelected:1})},t.prototype.handleDragOver=function(t){t.preventDefault(),this.em.trigger("canvas:dragover",t)},t.prototype.handleDrop=function(t){var e;t.preventDefault();var n=t.dataTransfer,r=this.getContentByData(n).content;this.draggedNode&&(this.draggedNode.content=r),null===(e=this.setAbsoluteDragContent)||void 0===e||e.call(this,r),this.endDrop(!r,t)},t.prototype.getContentByData=function(t){var e=this.em,n=t&&t.types,r=t&&t.files||[],o=e.get("dragSource"),a=t&&t.getData("text");if(r.length){a=[];for(var s=0;s<r.length;s++){var l=r[s],c=l.type.split("/")[0];"image"==c&&a.push({type:c,file:l,attributes:{alt:l.name}})}}else if(null==o?void 0:o.content)a=o.content;else if((0,i.indexOf)(n,"text/html")>=0)a=t&&t.getData("text/html").replace(/<\/?meta[^>]*>/g,"");else if((0,i.indexOf)(n,"text/uri-list")>=0)a={type:"link",attributes:{href:a},content:a};else if((0,i.indexOf)(n,"text/json")>=0){var u=t&&t.getData("text/json");u&&(a=JSON.parse(u))}else 1===n.length&&"text/plain"===n[0]&&(a="<div>".concat(a,"</div>"));var p={content:a};return e.trigger("canvas:dragdata",t,p),p},t}();const Gn=Wn;var Yn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kn=function(){return Kn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Kn.apply(this,arguments)},$n=function(t){function e(e,n){var r=t.call(this,{model:e})||this;r.dragging=!1,r.loaded=!1,r.lastMaxHeight=0,r.tools={},(0,i.bindAll)(r,"updateClientY","stopAutoscroll","autoscroll","_emitUpdate");var o=r.el;r.module._config=Kn(Kn({},r.config||{}),{frameView:r}),r.frameWrapView=n,r.showGlobalTools=(0,i.debounce)(r.showGlobalTools.bind(r),50);var s=r.getCanvasModel();return r.listenTo(e,"change:head",r.updateHead),r.listenTo(s,"change:styles",r.renderStyles),e.view=r,(0,a.setViewEl)(o,r),r}return Yn(e,t),Object.defineProperty(e.prototype,"tagName",{get:function(){return"iframe"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){return{allowfullscreen:"allowfullscreen"}},enumerable:!1,configurable:!0}),e.prototype.getBoxRect=function(){var t=this.el,e=this.module,n=e.getCanvasView(),r=e.getCoords(),o=t.getBoundingClientRect(),i=n.getCanvasOffset(),a=n.getViewportDelta(),s=e.getZoomMultiplier();return{x:(o.x-i.left-a.x-r.x)*s,y:(o.y-i.top-a.y-r.y)*s,width:o.width*s,height:o.height*s}},e.prototype.updateHead=function(){var t=this.model,e=this.getHead(),n=[],r=[],o=t.head,i=t.previous("head"),a=function(t){return void 0===t&&(t={}),Object.keys(t).sort().map((function(e){return"[".concat(e,'="').concat(t[e],'"]')})).join("")},s=function(t,e,n){t.forEach((function(t){var r=t.tag,o=t.attributes;!e.some((function(t){return t.tag===r&&a(t.attributes)===a(o)}))&&n.push(t)}))};s(o,i,r),s(i,o,n),n.forEach((function(t){var n,r=e.querySelector("".concat(t.tag).concat(a(t.attributes)));null===(n=null==r?void 0:r.parentNode)||void 0===n||n.removeChild(r)})),(0,yt.af)(e,r)},e.prototype.getEl=function(){return this.el},e.prototype.getCanvasModel=function(){var t;return null===(t=null==this?void 0:this.em.Canvas)||void 0===t?void 0:t.getModel()},e.prototype.getWindow=function(){return this.getEl().contentWindow},e.prototype.getDoc=function(){return this.getEl().contentDocument},e.prototype.getHead=function(){return this.getDoc().querySelector("head")},e.prototype.getBody=function(){return this.getDoc().querySelector("body")},e.prototype.getWrapper=function(){return this.getBody().querySelector("[data-gjs-type=wrapper]")},e.prototype.getJsContainer=function(){return this.jsContainer||(this.jsContainer=(0,yt.a_)("div",{class:"".concat(this.ppfx,"js-cont")})),this.jsContainer},e.prototype.getToolsEl=function(){var t;return null===(t=this.frameWrapView)||void 0===t?void 0:t.elTools},e.prototype.getGlobalToolsEl=function(){return this.em.Canvas.getGlobalToolsEl()},e.prototype.getHighlighter=function(){return this._getTool("[data-hl]")},e.prototype.getBadgeEl=function(){return this._getTool("[data-badge]")},e.prototype.getOffsetViewerEl=function(){return this._getTool("[data-offset]")},e.prototype.getRect=function(){return this.rect||(this.rect=this.el.getBoundingClientRect()),this.rect},e.prototype.getOffsetRect=function(){var t=this.el,e=this.getBody(),n=e.scrollTop,r=e.scrollLeft,o=t.offsetHeight,i=t.offsetWidth;return{top:t.offsetTop,left:t.offsetLeft,height:o,width:i,scrollTop:n,scrollLeft:r,scrollBottom:n+o,scrollRight:r+i}},e.prototype._getTool=function(t){var e=this.tools,n=this.getToolsEl();return e[t]||(e[t]=n.querySelector(t)),e[t]},e.prototype.remove=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this._toggleEffects(!1),this.tools={},null===(t=this.wrapper)||void 0===t||t.remove(),vt.prototype.remove.apply(this,e),this},e.prototype.startAutoscroll=function(){var t=this;this.lastMaxHeight=this.getWrapper().offsetHeight-this.el.offsetHeight,setTimeout((function(){t._toggleAutoscrollFx(!0),requestAnimationFrame(t.autoscroll)}),0)},e.prototype.autoscroll=function(){if(this.dragging){var t=this.lastClientY,e=this.em.Canvas,n=this.getWindow(),r=n.pageYOffset,o=t||0,a=e.getConfig().autoscrollLimit,s=this.getRect().height-a,l=r;o<a&&(l-=a-o),o>s&&(l+=o-s),!(0,i.isUndefined)(t)&&l!==r&&l>0&&l<this.lastMaxHeight&&(this.getGlobalToolsEl().style.opacity="0",this.showGlobalTools(),n.scrollTo(0,l),e.spots.refreshDbn()),requestAnimationFrame(this.autoscroll)}},e.prototype.updateClientY=function(t){t.preventDefault(),this.lastClientY=(0,yt.G2)(t).clientY*this.em.getZoomDecimal()},e.prototype.showGlobalTools=function(){this.getGlobalToolsEl().style.opacity=""},e.prototype.stopAutoscroll=function(){this.dragging&&this._toggleAutoscrollFx(!1)},e.prototype._toggleAutoscrollFx=function(t){this.dragging=t;var e=this.getWindow(),n=t?"on":"off",r={on:yt.on,off:yt.AU};r[n](e,"mousemove dragover",this.updateClientY),r[n](e,"mouseup",this.stopAutoscroll)},e.prototype.render=function(){var t=this,e=t.$el,n=t.ppfx,r=t.em;return e.attr({class:"".concat(n,"frame")}),this.renderScripts(),r.trigger("frame:render",this),this},e.prototype.renderScripts=function(){var t=this,e=this,n=e.el,r=e.model,o=e.em,a="frame:load",s={el:n,model:r,view:this},l=this.getCanvasModel(),c=function(e){var r;if(e.length>0){var l=e.shift(),u=(0,yt.a_)("script",Kn({type:"text/javascript"},(0,i.isString)(l)?{src:l}:l));null===(r=n.contentDocument)||void 0===r||r.head.appendChild(u),u.hasAttribute("nomodule")&&"noModule"in HTMLScriptElement.prototype?c(e):u.onerror=u.onload=c.bind(null,e)}else null==o||o.trigger(ht.frameLoadHead,s),t.renderBody(),null==o||o.trigger(ht.frameLoadBody,s),null==o||o.trigger(a,s)};n.onload=function(){var e=t.config.frameContent;if(e){var n=t.getDoc();n.open(),n.write(e),n.close()}s.window=t.getWindow(),null==o||o.trigger("".concat(a,":before"),s),null==o||o.trigger(ht.frameLoad,s),t.renderHead(),c(function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],l.get("scripts"),!0))}},e.prototype.renderStyles=function(t){void 0===t&&(t={});var e=this.getHead(),n=this.getCanvasModel(),r=function(t){return void 0===t&&(t=[]),t.map((function(t){return{tag:"link",attributes:Kn({rel:"stylesheet"},(0,i.isString)(t)?{href:t}:t)}}))},o=r(t.prev||n.previous("styles")),a=r(null==n?void 0:n.get("styles")),s=[],l=[],c=function(t,e,n){t.forEach((function(t){var r=t.attributes.href;!e.some((function(t){return t.attributes.href===r}))&&n.push(t)}))};c(a,o,l),c(o,a,s),s.forEach((function(t){var n,r=e.querySelector('link[href="'.concat(t.attributes.href,'"]'));null===(n=null==r?void 0:r.parentNode)||void 0===n||n.removeChild(r)})),(0,yt.af)(e,l)},e.prototype.renderHead=function(){var t,e=this.model,n=this.em,r=e.root,o=null===(t=null==n?void 0:n.Components)||void 0===t?void 0:t.getType(In).view;o&&(this.headView=new o({el:this.getHead(),model:r.head,config:Kn(Kn({},r.config),{frameView:this})}).render())},e.prototype.renderBody=function(){var t,e,n,r=this,o=this,i=o.config,s=o.em,l=o.model,c=o.ppfx,u=this.getDoc(),p=this.getBody(),d=this.getWindow(),f=l.hasAutoHeight(),h=s.config;d._isEditor=!0,this.renderStyles({prev:[]}),(0,yt.BC)(p,"<style>\n      ".concat(h.baseCss||i.frameStyle||"","\n\n      ").concat(f?"body { overflow: hidden }":"",'\n\n      [data-gjs-type="wrapper"] {\n        ').concat(f?"":"min-height: 100vh;","\n        padding-top: 0.001em;\n      }\n\n      .").concat(c,"dashed *[data-gjs-highlightable] {\n        outline: 1px dashed rgba(170,170,170,0.7);\n        outline-offset: -2px;\n      }\n\n      .").concat(c,"selected {\n        outline: 2px solid #3b97e3 !important;\n        outline-offset: -2px;\n      }\n\n      .").concat(c,"selected-parent {\n        outline: 2px solid ").concat("#ffca6f"," !important\n      }\n\n      .").concat(c,"no-select {\n        user-select: none;\n        -webkit-user-select:none;\n        -moz-user-select: none;\n      }\n\n      .").concat(c,"freezed {\n        opacity: 0.5;\n        pointer-events: none;\n      }\n\n      .").concat(c,"no-pointer {\n        pointer-events: none;\n      }\n\n      .").concat(c,"pointer-init {\n        pointer-events: initial;\n      }\n\n      .").concat(c,"plh-image {\n        background: #f5f5f5;\n        border: none;\n        height: 100px;\n        width: 100px;\n        display: block;\n        outline: 3px solid #ffca6f;\n        cursor: pointer;\n        outline-offset: -2px\n      }\n\n      .").concat(c,"grabbing {\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n      }\n\n      .").concat(c,"is__grabbing {\n        overflow-x: hidden;\n      }\n\n      .").concat(c,"is__grabbing,\n      .").concat(c,"is__grabbing * {\n        cursor: grabbing !important;\n      }\n\n      ").concat(h.canvasCss||"","\n      ").concat(h.protectedCss||"","\n    </style>"));var g=l.root,m=((null===(t=null==s?void 0:s.Components)||void 0===t?void 0:t.getType("wrapper"))||{}).view;m&&(this.wrapper=new m({model:g,config:Kn(Kn({},g.config),{em:s,frameView:this})}).render(),(0,yt.BC)(p,null===(e=this.wrapper)||void 0===e?void 0:e.el),(0,yt.BC)(p,new St({collection:l.getStyles(),config:Kn(Kn({},s.Css.getConfig()),{frameView:this})}).render().el),(0,yt.BC)(p,this.getJsContainer()),(0,yt.on)(p,"click",(function(t){var e;return t&&"A"==(null===(e=t.target)||void 0===e?void 0:e.tagName)&&t.preventDefault()})),(0,yt.on)(p,"submit",(function(t){return t&&t.preventDefault()})),[{event:"keydown keyup keypress",class:"KeyboardEvent"},{event:"mousedown mousemove mouseup",class:"MouseEvent"},{event:"pointerdown pointermove pointerup",class:"PointerEvent"},{event:"wheel",class:"WheelEvent",opts:{passive:!i.infiniteCanvas}}].forEach((function(t){return t.event.split(" ").forEach((function(e){u.addEventListener(e,(function(e){return r.el.dispatchEvent((0,yt.yL)(e,t.class))}),t.opts)}))})),this._toggleEffects(!0),(0,a.hasDnd)(s)&&(this.droppable=new Gn(s,null===(n=this.wrapper)||void 0===n?void 0:n.el)),this.loaded=!0,l.trigger("loaded"))},e.prototype._toggleEffects=function(t){var e=t?yt.on:yt.AU,n=this.getWindow();n&&e(n,"".concat(yt.D8," resize"),this._emitUpdate)},e.prototype._emitUpdate=function(){this.model._emitUpdated()},e}(vt);const Xn=$n;var Zn=r(5633),Qn=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jn=function(){return Jn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Jn.apply(this,arguments)},tr=function(t){function e(e,n){var r=t.call(this,{model:e})||this;return(0,i.bindAll)(r,"onScroll","frameLoaded","updateOffset","remove","startDrag"),Jn(Jn({},e.config),{frameWrapView:r}),r.cv=n,r.frame=new Xn(e,r),r.classAnim="".concat(r.ppfx,"frame-wrapper--anim"),r.updateOffset=(0,i.debounce)(r.updateOffset.bind(r),0),r.updateSize=(0,i.debounce)(r.updateSize.bind(r),0),r.listenTo(e,"loaded",r.frameLoaded),r.listenTo(e,"change:x change:y",r.updatePos),r.listenTo(e,"change:width change:height",r.updateSize),r.listenTo(e,"destroy remove",r.remove),r.updatePos(),r.setupDragger(),r}return Qn(e,t),e.prototype.events=function(){return{"click [data-action-remove]":"remove","mousedown [data-action-move]":"startDrag"}},e.prototype.setupDragger=function(){var t,e,n,r=this,o=this.module,i=this.model,a=function(t){o.toggleFramesEvents(t)};this.dragger=new Zn.A({onStart:function(){var o=i.attributes,s=o.x,l=o.y;n=r.em.getZoomMultiplier(),t=s,e=l,a(!1)},onEnd:function(){return a(!0)},setPosition:function(r){i.set({x:t+r.x*n,y:e+r.y*n})}})},e.prototype.startDrag=function(t){var e;t&&(null===(e=this.dragger)||void 0===e||e.start(t))},e.prototype.__clear=function(t){var e=this.frame;e&&e.remove(t),(0,yt.YZ)(this.elTools)},e.prototype.remove=function(t){var e=this;return this.__clear(t),vt.prototype.remove.apply(this,t),["frame","dragger","cv","elTools"].forEach((function(t){return e[t]=0})),this},e.prototype.updateOffset=function(){var t,e=this,n=e.em,r=e.$el,o=e.frame;n&&!n.destroyed&&(n.runDefault({preserveSelected:1}),r.removeClass(this.classAnim),null===(t=null==o?void 0:o.model)||void 0===t||t._emitUpdated())},e.prototype.updatePos=function(t){var e=this.model,n=this.el,r=e.attributes,o=r.x,i=r.y,a=n.style;this.frame.rect=void 0,a.left=isNaN(o)?o:"".concat(o,"px"),a.top=isNaN(i)?i:"".concat(i,"px"),t&&this.updateOffset()},e.prototype.updateSize=function(){this.updateDim()},e.prototype.updateDim=function(){var t=this,e=t.em,n=t.el,r=t.$el,o=t.model,a=t.classAnim,s=t.frame;if(s){s.rect=void 0,r.addClass(a);var l=this.__handleSize(),c=l.noChanges,u=l.width,p=l.height;((0,i.isNull)(u)||(0,i.isNull)(p))&&o.set(Jn(Jn({},u?{}:{width:n.offsetWidth}),p?{}:{height:n.offsetHeight}),{silent:1}),e.stopDefault({preserveSelected:1}),c?this.updateOffset():setTimeout(this.updateOffset,350)}},e.prototype.onScroll=function(){var t=this.frame;this.em.trigger("frame:scroll",{frame:t,body:t.getBody(),target:t.getWindow()})},e.prototype.frameLoaded=function(){var t=this.frame;this.config,t.getWindow().onscroll=this.onScroll,this.updateDim()},e.prototype.__handleSize=function(){var t,e,n=this.model,r=this.el.style,o=n.attributes,a=o.width,s=o.height,l=r.width||"",c=r.height||"",u=a||"",p=s||"",d=l==u&&c==p,f=(0,i.isNumber)(u)?"".concat(u).concat("px"):u,h=(0,i.isNumber)(p)?"".concat(p).concat("px"):p;if(r.width=f,n.hasAutoHeight()){var g=this.frame.el;if(g.contentDocument){var m=g.contentDocument,v=new ResizeObserver((function(){r.height="".concat(m.body.scrollHeight,"px")}));v.observe(m.body),null===(t=this.sizeObserver)||void 0===t||t.disconnect(),this.sizeObserver=v}}else r.height=h,null===(e=this.sizeObserver)||void 0===e||e.disconnect(),delete this.sizeObserver;return{noChanges:d,width:a,height:s,newW:u,newH:p}},e.prototype.render=function(){var t=this,e=t.frame,n=t.$el,r=t.ppfx,o=t.cv,i=t.model,a=t.el,s=i.attributes.onRender;this.__clear(),this.__handleSize(),e.render(),n.empty().attr({class:"".concat(r,"frame-wrapper")}).append('\n      <div class="'.concat(r,'frame-wrapper__top gjs-two-color" data-frame-top>\n        <div class="').concat(r,'frame-wrapper__name" data-action-move>\n          ').concat(i.get("name")||"",'\n        </div>\n        <div class="').concat(r,'frame-wrapper__top-r">\n          <div class="').concat(r,'frame-wrapper__icon" data-action-remove style="display: none">\n            <svg viewBox="0 0 24 24"><path d="M19 4h-3.5l-1-1h-5l-1 1H5v2h14M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12z"></path></svg>\n          </div>\n        </div>\n      </div>\n      <div class="').concat(r,'frame-wrapper__right" data-frame-right></div>\n      <div class="').concat(r,'frame-wrapper__left" data-frame-left></div>\n      <div class="').concat(r,'frame-wrapper__bottom" data-frame-bottom></div>\n      ')).append(e.el);var l=(0,yt.a_)("div",{class:"".concat(r,"tools"),style:"pointer-events:none; display: none"},'\n      <div class="'.concat(r,'highlighter" data-hl></div>\n      <div class="').concat(r,'badge" data-badge></div>\n      <div class="').concat(r,'placeholder">\n        <div class="').concat(r,'placeholder-int"></div>\n      </div>\n      <div class="').concat(r,'ghost"></div>\n      <div class="').concat(r,'toolbar" style="pointer-events:all"></div>\n      <div class="').concat(r,'resizer"></div>\n      <div class="').concat(r,'offset-v" data-offset>\n        <div class="gjs-marginName" data-offset-m>\n          <div class="gjs-margin-v-el gjs-margin-v-top" data-offset-m-t></div>\n          <div class="gjs-margin-v-el gjs-margin-v-bottom" data-offset-m-b></div>\n          <div class="gjs-margin-v-el gjs-margin-v-left" data-offset-m-l></div>\n          <div class="gjs-margin-v-el gjs-margin-v-right" data-offset-m-r></div>\n        </div>\n        <div class="gjs-paddingName" data-offset-m>\n          <div class="gjs-padding-v-el gjs-padding-v-top" data-offset-p-t></div>\n          <div class="gjs-padding-v-el gjs-padding-v-bottom" data-offset-p-b></div>\n          <div class="gjs-padding-v-el gjs-padding-v-left" data-offset-p-l></div>\n          <div class="gjs-padding-v-el gjs-padding-v-right" data-offset-p-r></div>\n        </div>\n      </div>\n      <div class="').concat(r,'offset-fixed-v"></div>\n    '));this.elTools=l;var c=null==o?void 0:o.toolsWrapper;return c&&c.appendChild(l),s&&s({el:a,elTop:a.querySelector("[data-frame-top]"),elRight:a.querySelector("[data-frame-right]"),elBottom:a.querySelector("[data-frame-bottom]"),elLeft:a.querySelector("[data-frame-left]"),frame:i,frameWrapperView:this,remove:this.remove,startDrag:this.startDrag}),this},e}(vt);const er=tr;var nr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const rr=function(t){function e(e,n){void 0===e&&(e={});var r=t.call(this,e,!0)||this;return r.listenTo(r.collection,"reset",r.render),r.canvasView=n.canvasView,r._module=n.module,r}return nr(e,t),e.prototype.onRemoveBefore=function(t,e){void 0===e&&(e={}),t.forEach((function(t){return t.remove(e)}))},e.prototype.onRender=function(){var t=this.$el,e=this.ppfx;t.attr({class:"".concat(e,"frames")})},e.prototype.clearItems=function(){(this.viewCollection||[]).forEach((function(t){return t.remove()})),this.viewCollection=[]},e.prototype.renderView=function(t,e){return new er(t,this.canvasView)},e}(_t);var or=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ir=function(){return ir=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ir.apply(this,arguments)},ar=function(t){function e(e){var n=t.call(this,{model:e})||this;n.ready=!1,(0,i.bindAll)(n,"clearOff","onKeyPress","onWheel","onPointer");var r=n,o=r.em,a=r.pfx,s=r.ppfx,l=n.module.events;return n.className="".concat(a,"canvas ").concat(s,"no-touch-actions").concat(o.config.customUI?"":" ".concat(a,"canvas-bg")),n.clsUnscale="".concat(a,"unscale"),n._initFrames(),n.listenTo(o,l.refresh,n.clearOff),n.listenTo(o,"component:selected",n.checkSelected),n.listenTo(o,"".concat(l.coords," ").concat(l.zoom),n.updateFrames),n.listenTo(e,"change:frames",n._onFramesUpdate),n.toggleListeners(!0),n}return or(e,t),e.prototype.template=function(){var t=this.pfx;return'\n      <div class="'.concat(t,'canvas__frames" data-frames>\n        <div class="').concat(t,'canvas__spots" data-spots></div>\n      </div>\n      <div id="').concat(t,'tools" class="').concat(t,'canvas__tools" data-tools></div>\n      <style data-canvas-style></style>\n    ')},e.prototype._onFramesUpdate=function(){this._initFrames(),this._renderFrames()},e.prototype._initFrames=function(){var t=this,e=t.frames,n=t.model,r=t.config,o=t.em,i=n.frames;o.set("readyCanvas",0),i.once("loaded:all",(function(){return o.set("readyCanvas",1)})),null==e||e.remove(),this.frames=new rr({collection:i},ir(ir({},r),{canvasView:this}))},e.prototype.checkSelected=function(t,e){var n;void 0===e&&(e={});var r=e.scroll,o=this.em.getCurrentFrame();r&&(null===(n=t.views)||void 0===n||n.forEach((function(t){t.frameView===o&&t.scrollIntoView(r)})))},e.prototype.remove=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return null===(t=this.frames)||void 0===t||t.remove(),this.frames=void 0,vt.prototype.remove.apply(this,e),this.toggleListeners(!1),this},e.prototype.preventDefault=function(t){var e;t&&(t.preventDefault(),null===(e=t._parentEvent)||void 0===e||e.preventDefault())},e.prototype.toggleListeners=function(t){var e=this.el,n=this.config,r=t?yt.on:yt.AU;r(document,"keypress",this.onKeyPress),r(window,"scroll resize",this.clearOff),r(e,"wheel",this.onWheel,{passive:!n.infiniteCanvas}),r(e,"pointermove",this.onPointer)},e.prototype.screenToWorld=function(t,e){var n=this.module,r=n.getCoords(),o=n.getZoomMultiplier(),i=this.getViewportDelta();return{x:(t-r.x-i.x)*o,y:(e-r.y-i.y)*o}},e.prototype.onPointer=function(t){if(this.config.infiniteCanvas){var e=this.getCanvasOffset(),n=(0,yt.Xy)(),r={x:t.clientX-e.left+n.x,y:t.clientY-e.top+n.y};if(t._parentEvent){var o=t.target.getBoundingClientRect(),i=this.module.getZoomDecimal();r.x=o.left-e.left+n.x+t.clientX*i,r.y=o.top-e.top+n.y+t.clientY*i}this.model.set({pointerScreen:r,pointer:this.screenToWorld(r.x,r.y)})}},e.prototype.onKeyPress=function(t){var e=this.em;" "!==(0,yt.Ch)(t)||1===e.getZoomDecimal()||e.Canvas.isInputFocused()||(this.preventDefault(t),e.Editor.runCommand("core:canvas-move"))},e.prototype.onWheel=function(t){var e=this.module;if(this.config.infiniteCanvas){this.preventDefault(t);var n=t.deltaX,r=t.deltaY,o=e.getZoomDecimal(),i=(0,yt.rp)(t),a=e.getCoords();if(i){var s=o-r*o*.01;e.setZoom(100*s);var l=this.model.getPointerCoords(d.x2.Screen),c=this.getCanvasOffset(),u=l.x-c.width/2,p=l.y-c.height/2,f=s/o,h=u-(u-a.x)*f,g=p-(p-a.y)*f;e.setCoords(h,g)}else this.onPointer(t),e.setCoords(a.x-n,a.y-r)}},e.prototype.updateFrames=function(t){var e=this.em,n=this.toolsWrapper,r={preserveSelected:1};this.updateFramesArea(),this.clearOff(),n.style.display="none",e.trigger("canvas:update",t),this.timerZoom&&clearTimeout(this.timerZoom),this.timerZoom=setTimeout((function(){e.stopDefault(r),e.runDefault(r),n.style.display=""}),300)},e.prototype.updateFramesArea=function(){var t=this,e=t.framesArea,n=t.model,r=t.module,o=t.cvStyle,i=t.clsUnscale,a=r.getZoomMultiplier();if(e){var s=n.attributes,l=s.x,c=s.y,u=r.getZoomDecimal();e.style.transform="scale(".concat(u,") translate(").concat(l*a,"px, ").concat(c*a,"px)")}o&&(o.innerHTML="\n        .".concat(i," { scale: ").concat(a," }\n      "))},e.prototype.fitViewport=function(t){var e,n;void 0===t&&(t={});var r=this,o=r.em,s=r.module,l=r.model,c=this.getCanvasOffset(),u=t.el,p=u&&(null===(e=(0,a.getComponentView)(u))||void 0===e?void 0:e.frameView),d=p?p.model:t.frame||o.getCurrentFrameModel()||l.frames.at(0),f=d.attributes,h=f.x,g=f.y,m={x:null!=h?h:0,y:null!=g?g:0,width:d.width,height:d.height};if(u){var v=this.getElBoxRect(u);m.x=m.x+v.x,m.y=m.y+v.y,m.width=v.width,m.height=v.height}var y=t.ignoreHeight,b=null!==(n=t.gap)&&void 0!==n?n:0,_=(0,i.isNumber)(b),w=_?b:b.x,E=_?b:b.y,x=m.width+2*w,C=m.height+2*E,T=c.width,A=c.height,O=T/x,S=A/C,k=y?O:Math.min(O,S),P=100*k;s.setZoom(P);var j={x:(-m.x+(d.width>=T?T/2-x/2:-w)+w)*k,y:(-m.y+A/2-C/2+E)*k};if(y){var N=s.getZoomMultiplier(),L=(A*N-A)/2;j.y=(-m.y+E)*k-L/N}s.setCoords(j.x,j.y)},e.prototype.isElInViewport=function(t){var e=(0,a.getElement)(t),n=(0,yt.C8)(e),r=this.getFrameOffset(e),o=n.top,i=n.left;return o>=0&&i>=0&&o<=r.height&&i<=r.width},e.prototype.offset=function(t,e){void 0===e&&(e={});var n=e.noScroll,r=(0,yt.C8)(t),o=n?{x:0,y:0}:(0,yt.Xy)(t);return{top:r.top+o.y,left:r.left+o.x,width:r.width,height:r.height}},e.prototype.getRectToScreen=function(t){var e,n,r,o,i=this.module.getZoomDecimal(),a=this.module.getCoords(),s=this.getViewportDelta();return{x:(null!==(e=t.x)&&void 0!==e?e:0)*i+a.x+s.x||0,y:(null!==(n=t.y)&&void 0!==n?n:0)*i+a.y+s.y||0,width:(null!==(r=t.width)&&void 0!==r?r:0)*i,height:(null!==(o=t.height)&&void 0!==o?o:0)*i}},e.prototype.getElBoxRect=function(t,e){var n,r,o;void 0===e&&(e={});var i=this.module,s=(0,yt.C8)(t),l=s.width,c=s.height,u=s.left,p=s.top,d=null===(n=(0,a.getComponentView)(t))||void 0===n?void 0:n.frameView,f=null==d?void 0:d.getBoxRect(),h=i.getZoomMultiplier(),g=null!==(r=null==f?void 0:f.x)&&void 0!==r?r:0,m=null!==(o=null==f?void 0:f.y)&&void 0!==o?o:0,v=this.el,y=(0,yt.Xy)(),b={x:u+g+(v.scrollLeft+y.x)*h,y:p+m+(v.scrollTop+y.y)*h,width:l,height:c};return e.local&&(b.x=u,b.y=p),e.toScreen?this.getRectToScreen(b):b},e.prototype.getViewportRect=function(t){void 0===t&&(t={});var e=this.getCanvasOffset(),n=e.top,r=e.left,o=e.width,i=e.height,a=this.module;if(t.toWorld){var s=a.getZoomMultiplier(),l=a.getCoords(),c=this.getViewportDelta();return{x:(-l.x-c.x||0)*s,y:(-l.y-c.y||0)*s,width:o*s,height:i*s}}return{x:r,y:n,width:o,height:i}},e.prototype.getViewportDelta=function(t){void 0===t&&(t={});var e=this.module.getZoomMultiplier(),n=this.getCanvasOffset(),r=n.width,o=n.height;return{x:(r*e-r)/2/e,y:(o*e-o)/2/e}},e.prototype.clearOff=function(){this.frmOff=void 0,this.cvsOff=void 0},e.prototype.getFrameOffset=function(t){var e;if(!this.frmOff||t){var n=null===(e=this.frame)||void 0===e?void 0:e.el,r=null==t?void 0:t.ownerDocument.defaultView,o=r?r.frameElement:n;this.frmOff=this.offset(o||n)}return this.frmOff},e.prototype.getCanvasOffset=function(){return this.cvsOff||(this.cvsOff=this.offset(this.el)),this.cvsOff},e.prototype.getElementPos=function(t,e){void 0===e&&(e={});var n=this.module.getZoomDecimal(),r=this.getFrameOffset(t),o=this.el,i=this.getCanvasOffset(),a=this.offset(t,e),s=e.avoidFrameOffset?0:r.top,l=e.avoidFrameOffset?0:r.left,c=e.avoidFrameZoom?a.top:a.top*n,u=e.avoidFrameZoom?a.left:a.left*n;return{top:e.avoidFrameOffset?c:c+s-i.top+o.scrollTop,left:e.avoidFrameOffset?u:u+l-i.left+o.scrollLeft,height:e.avoidFrameZoom?a.height:a.height*n,width:e.avoidFrameZoom?a.width:a.width*n,zoom:n,rect:a}},e.prototype.getElementOffsets=function(t){if(!t||(0,yt.ir)(t))return{};var e={},n=window.getComputedStyle(t),r=this.module.getZoomDecimal();return["marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"].forEach((function(t){e[t]=parseFloat(n[t])*r})),e},e.prototype.getPosition=function(t){var e;void 0===t&&(t={});var n=null===(e=this.frame)||void 0===e?void 0:e.el.contentDocument;if(!n)return{top:0,left:0,width:0,height:0};var r=n.body,o=this.module.getZoomDecimal(),i=this.getFrameOffset(),a=this.getCanvasOffset(),s=t.noScroll;return{top:i.top+(s?0:r.scrollTop)*o-a.top,left:i.left+(s?0:r.scrollLeft)*o-a.left,width:a.width,height:a.height}},e.prototype.updateScript=function(t){var e=t.model,n=e.getId(),r={component:e,view:t,el:t.el};if(!t.scriptContainer){t.scriptContainer=(0,yt.a_)("div",{"data-id":n});var o=this.getJsContainer();null==o||o.appendChild(t.scriptContainer)}t.el.id=n,t.scriptContainer.innerHTML="";var i=document.createElement("script"),a=e.getScriptString(),s=e.get("script-props")?a:"function(){\n".concat(a,"\n;}"),l=JSON.stringify(e.__getScriptProps());i.innerHTML="\n      setTimeout(function() {\n        var item = document.getElementById('".concat(n,"');\n        if (!item) return;\n        var script = (").concat(s,").bind(item);\n        script(").concat(l,", { el: item });\n      }, 1);"),setTimeout((function(){e.emitWithEitor(ct.I.scriptMountBefore,r);var n=t.scriptContainer;null==n||n.appendChild(i),e.emitWithEitor(ct.I.scriptMount,r)}),0)},e.prototype.getJsContainer=function(t){var e=this.getFrameView(t);return null==e?void 0:e.getJsContainer()},e.prototype.getFrameView=function(t){return(null==t?void 0:t.frameView)||this.em.getCurrentFrame()},e.prototype._renderFrames=function(){if(this.ready){var t=this,e=t.model,n=t.frames,r=t.em,o=t.framesArea,i=e.frames;i.listenToLoad(),n.render();var a=i.at(0),s=null==a?void 0:a.view;r.setCurrentFrame(s),null==o||o.appendChild(n.el),this.frame=s,this.updateFramesArea()}},e.prototype.renderFrames=function(){this._renderFrames()},e.prototype.render=function(){var t=this,e=t.el,n=t.$el,r=t.ppfx,o=t.config,i=t.em;n.html(this.template());var s=n.find("[data-frames]");this.framesArea=s.get(0);var l=n.find("[data-tools]");return this.toolsWrapper=l.get(0),l.append('\n      <div class="'.concat(r,"tools ").concat(r,'tools-gl" style="pointer-events:none">\n        <div class="').concat(r,'placeholder">\n          <div class="').concat(r,'placeholder-int"></div>\n        </div>\n      </div>\n      <div id="').concat(r,'tools" style="pointer-events:none">\n        ').concat(o.extHl?'<div class="'.concat(r,'highlighter-sel"></div>'):"",'\n        <div class="').concat(r,'badge"></div>\n        <div class="').concat(r,'ghost"></div>\n        <div class="').concat(r,'toolbar" style="pointer-events:all"></div>\n        <div class="').concat(r,'resizer"></div>\n        <div class="').concat(r,'offset-v"></div>\n        <div class="').concat(r,'offset-fixed-v"></div>\n      </div>\n    ')),this.toolsEl=e.querySelector("#".concat(r,"tools")),this.hlEl=e.querySelector(".".concat(r,"highlighter")),this.badgeEl=e.querySelector(".".concat(r,"badge")),this.placerEl=e.querySelector(".".concat(r,"placeholder")),this.ghostEl=e.querySelector(".".concat(r,"ghost")),this.toolbarEl=e.querySelector(".".concat(r,"toolbar")),this.resizerEl=e.querySelector(".".concat(r,"resizer")),this.offsetEl=e.querySelector(".".concat(r,"offset-v")),this.fixedOffsetEl=e.querySelector(".".concat(r,"offset-fixed-v")),this.toolsGlobEl=e.querySelector(".".concat(r,"tools-gl")),this.spotsEl=e.querySelector("[data-spots]"),this.cvStyle=e.querySelector("[data-canvas-style]"),this.el.className=(0,a.getUiClass)(i,this.className),this.ready=!0,this._renderFrames(),this},e}(vt);const sr=ar;var lr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cr=function(){return cr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},cr.apply(this,arguments)},ur=function(t){function e(e){var n=t.call(this,e,"Canvas",{stylePrefix:"cv-",scripts:[],styles:[],customBadgeLabel:void 0,autoscrollLimit:50,extHl:!1,frameContent:"<!DOCTYPE html>",frameStyle:"\n    body { background-color: #fff }\n    * ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1) }\n    * ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2) }\n    * ::-webkit-scrollbar { width: 10px }\n  ",notTextable:["button","a","input[type=checkbox]","input[type=radio]"],allowExternalDrop:!0})||this;return n.events=ft,n.framesById={},n.canvas=new st(n),n.spots=new dt(n),n.model=n.canvas,n.startAutoscroll=n.startAutoscroll.bind(n),n.stopAutoscroll=n.stopAutoscroll.bind(n),n}return lr(e,t),e.prototype.getCanvasView=function(){return this.canvasView},e.prototype.postLoad=function(){this.model.init()},e.prototype.getModel=function(){return this.canvas},e.prototype.getElement=function(){return this.getCanvasView().el},e.prototype.getFrame=function(t){return this.getFrames()[t||0]},e.prototype.getFrameEl=function(){var t=(this.canvasView||{}).frame;return null==t?void 0:t.el},e.prototype.getFramesEl=function(){var t;return null===(t=this.canvasView)||void 0===t?void 0:t.framesArea},e.prototype.getWindow=function(){var t=(this.canvasView||{}).frame;return null==t?void 0:t.getWindow()},e.prototype.getDocument=function(){var t=this.getFrameEl();return null==t?void 0:t.contentDocument},e.prototype.getBody=function(){var t=this.getDocument();return null==t?void 0:t.body},e.prototype._getLocalEl=function(t,e,n){var r=t,o=null==e?void 0:e.frameView;return o?o[n]():r},e.prototype.getGlobalToolsEl=function(){var t;return null===(t=this.canvasView)||void 0===t?void 0:t.toolsGlobEl},e.prototype.getToolsEl=function(t){return this._getLocalEl(this.getCanvasView().toolsEl,t,"getToolsEl")},e.prototype.getHighlighter=function(t){return this._getLocalEl(this.getCanvasView().hlEl,t,"getHighlighter")},e.prototype.getBadgeEl=function(t){return this._getLocalEl(this.getCanvasView().badgeEl,t,"getBadgeEl")},e.prototype.getPlacerEl=function(){return this.getCanvasView().placerEl},e.prototype.getGhostEl=function(){return this.getCanvasView().ghostEl},e.prototype.getToolbarEl=function(){return this.getCanvasView().toolbarEl},e.prototype.getResizerEl=function(){return this.getCanvasView().resizerEl},e.prototype.getOffsetViewerEl=function(t){return this._getLocalEl(this.getCanvasView().offsetEl,t,"getOffsetViewerEl")},e.prototype.getFixedOffsetViewerEl=function(){return this.getCanvasView().fixedOffsetEl},e.prototype.getSpotsEl=function(){var t;return null===(t=this.canvasView)||void 0===t?void 0:t.spotsEl},e.prototype.render=function(){var t;return null===(t=this.canvasView)||void 0===t||t.remove(),this.canvasView=new sr(this.canvas),this.canvasView.render().el},e.prototype.getOffset=function(){var t=this.offset(this.getFrameEl()),e=this.offset(this.getElement());return{top:t.top-e.top,left:t.left-e.left}},e.prototype.offset=function(t){return this.getCanvasView().offset(t)},e.prototype.setCustomBadgeLabel=function(t){this.config.customBadgeLabel=t},e.prototype.getElementPos=function(t,e){return this.getCanvasView().getElementPos(t,e)},e.prototype.getElementOffsets=function(t){return this.getCanvasView().getElementOffsets(t)},e.prototype.getRect=function(){var t,e=null!==(t=this.getCanvasView().getPosition())&&void 0!==t?t:{},n=e.top,r=void 0===n?0:n,o=e.left,i=void 0===o?0:o;return cr(cr({},this.getCanvasView().getCanvasOffset()),{topScroll:r,leftScroll:i})},e.prototype.getTargetToElementDim=function(t,e,n){void 0===n&&(n={});var r=n||{},o=this.getCanvasView().getPosition();if(o){var i=r.elPos||this.getCanvasView().getElementPos(e),a=n.toRight||0,s=r.targetHeight||t.offsetHeight,l=r.targetWidth||t.offsetWidth,c=r.event||null,u=i.top-s,p=i.left;p+=a?i.width:0;var d=(p=a?p-l:p)<o.left?o.left:p,f=u<o.top?o.top:u,h={top:f=f>i.top+i.height?i.top+i.height:f,left:d,elementTop:i.top,elementLeft:i.left,elementWidth:i.width,elementHeight:i.height,targetWidth:t.offsetWidth,targetHeight:t.offsetHeight,canvasTop:o.top,canvasLeft:o.left,canvasWidth:o.width,canvasHeight:o.height};return c&&this.em&&this.em.trigger(c,h),h}},e.prototype.canvasRectOffset=function(t,e,n){var r=this;void 0===n&&(n={});var o=function(t,e,o){void 0===e&&(e=1);var i=r.em.getZoomDecimal(),a=e?"top":"left",s=t.ownerDocument,l=n.offset?function(t){var e=t.defaultView;return null==e?void 0:e.frameElement}(s):{},c=l.offsetTop,u=void 0===c?0:c,p=l.offsetLeft,d=void 0===p?0:p,f=s.body||{},h=f.scrollTop,g=void 0===h?0:h,m=f.scrollLeft,v=e?g:void 0===m?0:m,y=e?u:d;return o[a]-(v-y)*i};return{top:o(t,1,e),left:o(t,0,e)}},e.prototype.getTargetToElementFixed=function(t,e,n){void 0===n&&(n={});var r=n.pos||this.getElementPos(t,{noScroll:!0}),o=n.canvasOff||this.canvasRectOffset(t,r),a=e.offsetHeight||0,s=e.offsetWidth||0,l=r.left+r.width,c=this.getCanvasView(),u=c.getPosition(),p=c.getFrameOffset(t),d=n.event,f=-a,h=(0,i.isUndefined)(n.left)?r.width-s:n.left;if(h=r.left<-h?-r.left:h,h=l>u.width?h-(l-u.width):h,o.top<a){var g=r.height+a;g<p.height?f+=g:f=-o.top<r.height?-o.top:r.height}var m={top:f,left:h,canvasOffsetTop:o.top,canvasOffsetLeft:o.left,elRect:r,canvasOffset:o,canvasRect:u,targetWidth:s,targetHeight:a};return d&&this.em.trigger(d,m),m},e.prototype.getMouseRelativePos=function(t,e){void 0===e&&(e={});var n=e.subWinOffset,r=t.target.ownerDocument,o=r.defaultView||r.parentWindow,i=o.frameElement,a=n?o.pageYOffset:0,s=n?o.pageXOffset:0,l=this.getZoomMultiplier(),c=0,u=0;if(i){var p=i.getBoundingClientRect();c=p.top||0,u=p.left||0}return{y:(t.clientY+c-a)*l,x:(t.clientX+u-s)*l}},e.prototype.getMouseRelativeCanvas=function(t,e){var n,r=this.getZoomDecimal(),o=null!==(n=this.getCanvasView().getPosition(e))&&void 0!==n?n:{},i=o.top,a=void 0===i?0:i,s=o.left,l=void 0===s?0:s;return{y:t.clientY*r+a,x:t.clientX*r+l}},e.prototype.startDrag=function(t){this.em.set("dragSource",t)},e.prototype.endDrag=function(){this.em.set({dragResult:null,dragSource:void 0})},e.prototype.hasFocus=function(){return this.getDocument().hasFocus()},e.prototype.isInputFocused=function(){var t=this.getDocument(),e=this.getFrameEl(),n=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}(["body"],this.config.notTextable,!0),r=e&&document.activeElement===e?t&&t.activeElement:document.activeElement;return r&&!n.some((function(t){return r.matches(t)}))},e.prototype.scrollTo=function(t,e){void 0===e&&(e={});var n=(0,a.getElement)(t),r=n&&(0,a.getViewEl)(n);r&&r.scrollIntoView(e)},e.prototype.startAutoscroll=function(t){var e=t&&t.view||this.em.getCurrentFrame();e&&e.startAutoscroll()},e.prototype.stopAutoscroll=function(t){var e=t&&t.view||this.em.getCurrentFrame();e&&e.stopAutoscroll()},e.prototype.setZoom=function(t){return this.canvas.set("zoom","string"==typeof t?parseFloat(t):t),this},e.prototype.getZoom=function(){return parseFloat(this.canvas.get("zoom"))},e.prototype.setCoords=function(t,e,n){var r;void 0===n&&(n={});var o=t||0===t,i=e||0===e,a={x:this.canvas.get("x"),y:this.canvas.get("y")};if(o&&(a.x=parseFloat("".concat(t))),i&&(a.y=parseFloat("".concat(e))),n.toWorld){var s=null===(r=this.canvasView)||void 0===r?void 0:r.getViewportDelta();s&&(o&&(a.x=a.x-s.x),i&&(a.y=a.y-s.y))}return this.canvas.set(a),this},e.prototype.getCoords=function(){var t=this.canvas.attributes;return{x:t.x,y:t.y}},e.prototype.getPointer=function(t){var e=this.canvas.attributes,n=e.pointer,r=e.pointerScreen;return t?r:n},e.prototype.getZoomDecimal=function(){return this.getZoom()/100},e.prototype.getZoomMultiplier=function(){var t=this.getZoomDecimal();return t?1/t:1},e.prototype.fitViewport=function(t){var e;null===(e=this.canvasView)||void 0===e||e.fitViewport(t)},e.prototype.toggleFramesEvents=function(t){this.getFramesEl().style.pointerEvents=t?"":"none"},e.prototype.getFrames=function(){return this.canvas.frames.map((function(t){return t}))},e.prototype.addFrame=function(t,e){return void 0===t&&(t={}),void 0===e&&(e={}),this.canvas.frames.add(new nt(this,cr({},t)),e)},e.prototype.getLastDragResult=function(){return this.em.get("dragResult")},e.prototype.addSpot=function(t,e){var n;void 0===e&&(e={});var r=t,o=this.getSpots(r);if(o.length){var i=o[0];return i.set(r),i}var a=r.componentView||(null===(n=r.component)||void 0===n?void 0:n.view),s=new lt.A(this,cr(cr({},r),{id:r.id||"cs_".concat(r.type,"_").concat(null==a?void 0:a.cid),type:r.type||""}));return this.spots.add(s,e),s},e.prototype.getSpots=function(t){return void 0===t&&(t={}),this.spots.where(t.id?{id:t.id}:t)},e.prototype.removeSpots=function(t){void 0===t&&(t={});var e=(0,i.isArray)(t)?t:this.getSpots(t);return this.spots.remove(e)},e.prototype.hasCustomSpot=function(t){var e=this.config.customSpots;return!!(!0===e||e&&t&&e[t])},e.prototype.getWorldRectToScreen=function(t){var e;return null===(e=this.canvasView)||void 0===e?void 0:e.getRectToScreen(t)},e.prototype.refresh=function(t){void 0===t&&(t={});var e=this,n=e.em,r=e.events,o=e.canvasView;null==o||o.clearOff(),(t.spots||t.all)&&(this.refreshSpots(),n.trigger("canvas:updateTools")),n.set("canvasOffset",this.getOffset()),n.trigger(r.refresh,t)},e.prototype.refreshSpots=function(){this.spots.refresh()},e.prototype.destroy=function(){var t,e=this;this.canvas.stopListening(),null===(t=this.canvasView)||void 0===t||t.remove(),["model","droppable"].forEach((function(t){return e[t]={}}))},e}(_);const pr=ur;var dr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fr=function(){return fr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},fr.apply(this,arguments)},hr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return fr(fr({},t.prototype.defaults),{tagName:"",droppable:!1,layerable:!1,selectable:!1,editable:!0})},enumerable:!1,configurable:!0}),e.prototype.toHTML=function(){var t=this.content,e=this.parent();return(null==e?void 0:e.is("script"))?t:this.__escapeContent(t)},e.prototype.__escapeContent=function(t){return(0,a.escapeNodeContent)(t)},e.isComponent=function(t){var e;if(3===t.nodeType)return{type:"textnode",content:null!==(e=t.textContent)&&void 0!==e?e:""}},e}(Nn);const gr=hr;var mr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vr=function(){return vr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},vr.apply(this,arguments)},yr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return vr({},t.prototype.defaults)},enumerable:!1,configurable:!0}),e.prototype.toHTML=function(){return"\x3c!--".concat(this.content,"--\x3e")},e.isComponent=function(t){var e;if(8==t.nodeType)return{type:"comment",content:null!==(e=t.textContent)&&void 0!==e?e:""}},e}(gr);const br=yr;var _r=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wr=function(){return wr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},wr.apply(this,arguments)},Er="iframe";const xr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _r(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return wr(wr({},t.prototype.defaults),{type:Er,tagName:Er,droppable:!1,resizable:!0,traits:["id","title","src"],attributes:{frameborder:"0"}})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===Er},e}(Nn);var Cr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tr=function(){return Tr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Tr.apply(this,arguments)},Ar='xmlns="http://www.w3.org/2000/svg" width="100" viewBox="0 0 24 24" style="fill: rgba(0,0,0,0.15); transform: scale(0.75)"',Or=function(t){function e(e,n){void 0===e&&(e={});var r=t.call(this,e,n)||this,o=r.get("attributes").src;return o&&(0,a.buildBase64UrlFromSvg)((0,i.result)(r,"defaults").src)!==o&&r.set("src",o,{silent:!0}),r}return Cr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Tr(Tr({},t.prototype.defaults),{type:"image",tagName:"img",void:!0,droppable:0,editable:1,highlightable:0,resizable:{ratioDefault:1},traits:["alt"],src:"<svg ".concat(Ar,'>\n        <path d="M8.5 13.5l2.5 3 3.5-4.5 4.5 6H5m16 1V5a2 2 0 0 0-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2z"></path>\n      </svg>'),fallback:"<svg ".concat(Ar,'>\n        <path d="M2.28 3L1 4.27l2 2V19c0 1.1.9 2 2 2h12.73l2 2L21 21.72 2.28 3m2.55 0L21 19.17V5a2 2 0 0 0-2-2H4.83M8.5 13.5l2.5 3 1-1.25L14.73 18H5l3.5-4.5z"></path>\n      </svg>'),file:""})},enumerable:!1,configurable:!0}),e.prototype.initToolbar=function(){t.prototype.initToolbar.call(this);var e=this.em;if(e){var n="image-editor";if(e.Commands.has(n)){for(var r=!1,o=this.get("toolbar"),i=0;i<o.length;i++)if("image-editor"===o[i].command){r=!0;break}r||(o.push({attributes:{class:"fa fa-pencil"},command:n}),this.set("toolbar",o))}}},e.prototype.getAttrToHTML=function(){var e=t.prototype.getAttrToHTML.call(this),n=this.getSrcResult();return n&&(e.src=n),e},e.prototype.getSrcResult=function(t){void 0===t&&(t={});var e=this.get(t.fallback?"fallback":"src")||"",n=e;return e&&"<svg"===e.substr(0,4)&&(n=(0,a.buildBase64UrlFromSvg)(e)),n},e.prototype.isDefaultSrc=function(){var t=this.get("src"),e=(0,i.result)(this,"defaults").src;return t===e||t===(0,a.buildBase64UrlFromSvg)(e)},e.prototype.toJSON=function(e){var n=t.prototype.toJSON.call(this,e),r=n.attributes;return r&&n.src===r.src&&delete n.src,n},e.prototype.parseUri=function(t){var e={};if((0,a.hasWin)())(e=document.createElement("a")).href=t;else if("undefined"!=typeof URL)try{e=new URL(t)}catch(t){}return{hostname:e.hostname||"",pathname:e.pathname||"",protocol:e.protocol||"",search:e.search||"",hash:e.hash||"",port:e.port||"",query:function(t){void 0===t&&(t="");for(var e={},n=t.substring(1).split("&"),r=0;r<n.length;r++){var o=n[r].split("="),i=decodeURIComponent(o[0]);i&&(e[i]=decodeURIComponent(o[1]||""))}return e}(e.search)}},e.isComponent=function(t){return"img"===(0,a.toLowerCase)(t.tagName)},e}(Nn);const Sr=Or;var kr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pr=function(){return Pr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Pr.apply(this,arguments)};const jr=function(t){function e(e,n){void 0===e&&(e={});var r=t.call(this,e,n)||this;return r.__checkInnerChilds(),r}return kr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Pr(Pr({},t.prototype.defaults),{type:"text",droppable:!1,editable:!0})},enumerable:!1,configurable:!0}),e.prototype.__checkInnerChilds=function(){var t=this.em.Components.config.disableTextInnerChilds;if(t){var e=function(t){t.isInstanceOf("textnode")||t.set({locked:!0,layerable:!1})};(0,i.isFunction)(t)?this.forEachChild((function(n){t(n)&&e(n)})):this.forEachChild(e)}},e}(Nn);var Nr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lr=function(){return Lr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Lr.apply(this,arguments)},Dr="label";const Ir=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Nr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Lr(Lr({},t.prototype.defaults),{type:Dr,tagName:Dr,traits:["id","title","for"]})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===Dr},e}(jr);var Rr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mr=function(){return Mr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Mr.apply(this,arguments)},Br="link";const Fr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Mr(Mr({},t.prototype.defaults),{type:Br,tagName:"a",traits:["title","href","target"]})},enumerable:!1,configurable:!0}),e.isComponent=function(t,e){var n;if(void 0===e&&(e={}),"a"===(0,a.toLowerCase)(t.tagName)){var r=e.textTags||[];n={type:Br,editable:!1};var o=t.childNodes;o.length||delete n.editable,(0,i.forEach)(o,(function(t){var e=t.tagName;(3==t.nodeType&&""!==t.textContent.trim()||e&&r.indexOf((0,a.toLowerCase)(e))>=0)&&delete n.editable}))}return n},e}(jr);var Ur=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hr=function(){return Hr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Hr.apply(this,arguments)},Vr=function(t){function e(e,n){void 0===e&&(e={});var r=t.call(this,e,n)||this;return r.get("src")?r.parseFromSrc():r.updateSrc(),r.listenTo(r,"change:address change:zoom change:mapType",r.updateSrc),r}return Ur(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){var e=t.prototype.defaults;return Hr(Hr({},e),{type:"map",src:"",void:!1,mapUrl:"https://maps.google.com/maps",tagName:"iframe",mapType:"q",address:"",zoom:"1",attributes:{frameborder:0},toolbar:e.toolbar,traits:[{label:"Address",name:"address",placeholder:"eg. London, UK",changeProp:!0},{type:"select",label:"Map type",name:"mapType",changeProp:!0,options:[{id:"q",label:"Roadmap"},{id:"w",label:"Satellite"}]},{label:"Zoom",name:"zoom",type:"range",min:1,max:20,changeProp:!0}]})},enumerable:!1,configurable:!0}),e.prototype.updateSrc=function(){this.set("src",this.getMapUrl())},e.prototype.getMapUrl=function(){var t=this.get("address"),e=this.get("zoom"),n=this.get("mapType");return t=t?"&q="+t:"",e=e?"&z="+e:"",n=n?"&t="+n:"",this.get("mapUrl")+"?"+t+e+n+"&output=embed"},e.prototype.parseFromSrc=function(){var t=this.parseUri(this.get("src")).query;t.q&&this.set("address",t.q),t.z&&this.set("zoom",t.z),t.t&&this.set("mapType",t.t)},e.isComponent=function(t){if("iframe"==(0,a.toLowerCase)(t.tagName)&&/maps\.google\.com/.test(t.src))return{type:"map",src:t.src}},e}(Sr);const qr=Vr;var zr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wr=function(){return Wr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Wr.apply(this,arguments)},Gr="script";const Yr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Wr(Wr({},t.prototype.defaults),{type:Gr,tagName:Gr,droppable:!1,draggable:!1,layerable:!1,highlightable:!1})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===Gr},e}(Nn);var Kr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$r=function(){return $r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$r.apply(this,arguments)},Xr="svg";const Zr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Kr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return $r($r({},t.prototype.defaults),{type:Xr,tagName:Xr,highlightable:!1,resizable:{ratioDefault:!0}})},enumerable:!1,configurable:!0}),e.prototype.getName=function(){var t=this.get("tagName"),e=this.get("custom-name");return t=t.charAt(0).toUpperCase()+t.slice(1),e||t},e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===Xr},e}(Nn);var Qr=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jr=function(){return Jr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Jr.apply(this,arguments)};const to=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Jr(Jr({},t.prototype.defaults),{selectable:!1,hoverable:!1,layerable:!1})},enumerable:!1,configurable:!0}),e.isComponent=function(t,e){return void 0===e&&(e={}),!!e.inSvg},e}(Zr);var eo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),no=function(){return no=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},no.apply(this,arguments)},ro="table",oo=function(t){function e(e,n){void 0===e&&(e={});var r=t.call(this,e,n)||this,o=r.get("components");return!o.length&&o.add({type:"tbody"}),r}return eo(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return no(no({},t.prototype.defaults),{type:ro,tagName:ro,droppable:["tbody","thead","tfoot"]})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===ro},e}(Nn);const io=oo;var ao=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),so=function(){return so=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},so.apply(this,arguments)},lo="tbody",co=function(t){function e(e,n){void 0===e&&(e={});var r=t.call(this,e,n)||this,o=r.get("components"),i=r.get("columns"),a=r.get("rows");if(!o.length){for(var s=[];a--;){for(var l=[],c=i;c--;)l.push({type:"cell",classes:["cell"]});s.push({type:"row",classes:["row"],components:l})}o.add(s)}return r}return ao(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return so(so({},t.prototype.defaults),{type:lo,tagName:lo,draggable:["table"],droppable:["tr"],columns:1,rows:1})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===lo},e}(Nn);const uo=co;var po=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fo=function(){return fo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},fo.apply(this,arguments)};const ho=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return po(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return fo(fo({},t.prototype.defaults),{type:"cell",tagName:"td",draggable:["tr"]})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return["td","th"].indexOf((0,a.toLowerCase)(t.tagName))>=0},e}(Nn);var go=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mo=function(){return mo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},mo.apply(this,arguments)},vo="tfoot";const yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return go(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return mo(mo({},t.prototype.defaults),{type:vo,tagName:vo})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===vo},e}(uo);var bo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_o=function(){return _o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_o.apply(this,arguments)},wo="thead";const Eo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return bo(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return _o(_o({},t.prototype.defaults),{type:wo,tagName:wo})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===wo},e}(uo);var xo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Co=function(){return Co=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Co.apply(this,arguments)};const To=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xo(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Co(Co({},t.prototype.defaults),{tagName:"tr",draggable:["thead","tbody","tfoot"],droppable:["th","td"]})},enumerable:!1,configurable:!0}),e.isComponent=function(t){return"tr"===(0,a.toLowerCase)(t.tagName)},e}(Nn);var Ao=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oo=function(){return Oo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Oo.apply(this,arguments)},So="video",ko="yt",Po="vi",jo="ytnc",No=function(t){return t&&"0"!==t},Lo=function(t){function e(e,n){void 0===e&&(e={});var r=t.call(this,e,n)||this;return r.get("src")&&r.parseFromSrc(),r.updatePropsFromAttr(),r.updateTraits(),r.on("change:provider",r.updateTraits),r.on("change:videoId change:provider",r.updateSrc),r}return Ao(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Oo(Oo({},t.prototype.defaults),{type:So,tagName:So,videoId:"",void:!1,provider:"so",ytUrl:"https://www.youtube.com/embed/",ytncUrl:"https://www.youtube-nocookie.com/embed/",viUrl:"https://player.vimeo.com/video/",loop:!1,poster:"",muted:0,autoplay:!1,controls:!0,color:"",list:"",src:"",rel:1,modestbranding:0,sources:[],attributes:{allowfullscreen:"allowfullscreen"}})},enumerable:!1,configurable:!0}),e.prototype.updatePropsFromAttr=function(){if("so"===this.get("provider")){var t=this.get("attributes"),e=t.controls,n=t.autoplay,r=t.loop,o={};(0,a.isDef)(e)&&(o.controls=!!e),(0,a.isDef)(n)&&(o.autoplay=!!n),(0,a.isDef)(r)&&(o.loop=!!r),(0,a.isEmptyObj)(o)||this.set(o)}},e.prototype.updateTraits=function(){var t,e=this.em,n="iframe";switch(this.get("provider")){case ko:case jo:t=this.getYoutubeTraits();break;case Po:t=this.getVimeoTraits();break;default:n="video",t=this.getSourceTraits()}this.set({tagName:n},{silent:!0}),this.set({traits:t}),e.get("ready")&&e.trigger("component:toggled")},e.prototype.parseFromSrc=function(){var t=this.get("provider"),e=this.parseUri(this.get("src")),n=e.query;switch(t){case ko:case jo:case Po:this.set("videoId",e.pathname.split("/").pop()),n.list&&this.set("list",n.list),No(n.autoplay)&&this.set("autoplay",!0),No(n.loop)&&this.set("loop",!0),0===parseInt(n.controls)&&this.set("controls",!1),No(n.color)&&this.set("color",n.color),"0"===n.rel&&this.set("rel",0),"1"===n.modestbranding&&this.set("modestbranding",1)}},e.prototype.updateSrc=function(){var t="";switch(this.get("provider")){case ko:t=this.getYoutubeSrc();break;case jo:t=this.getYoutubeNoCookieSrc();break;case Po:t=this.getVimeoSrc()}this.set({src:t})},e.prototype.getAttrToHTML=function(){var e=t.prototype.getAttrToHTML.call(this);switch(this.get("provider")){case ko:case jo:case Po:break;default:e.loop=!!this.get("loop"),e.autoplay=!!this.get("autoplay"),e.controls=!!this.get("controls")}return e},e.prototype.getProviderTrait=function(){return{type:"select",label:"Provider",name:"provider",changeProp:!0,options:[{value:"so",name:"HTML5 Source"},{value:ko,name:"Youtube"},{value:jo,name:"Youtube (no cookie)"},{value:Po,name:"Vimeo"}]}},e.prototype.getSourceTraits=function(){return[this.getProviderTrait(),{label:"Source",name:"src",placeholder:"eg. ./media/video.mp4",changeProp:!0},{label:"Poster",name:"poster",placeholder:"eg. ./media/image.jpg"},this.getAutoplayTrait(),this.getLoopTrait(),this.getControlsTrait()]},e.prototype.getYoutubeTraits=function(){return[this.getProviderTrait(),{label:"Video ID",name:"videoId",placeholder:"eg. jNQXAC9IVRw",changeProp:!0},this.getAutoplayTrait(),this.getLoopTrait(),this.getControlsTrait(),{type:"checkbox",label:"Related",name:"rel",changeProp:!0},{type:"checkbox",label:"Modest",name:"modestbranding",changeProp:!0}]},e.prototype.getVimeoTraits=function(){return[this.getProviderTrait(),{label:"Video ID",name:"videoId",placeholder:"eg. 123456789",changeProp:!0},{label:"Color",name:"color",placeholder:"eg. FF0000",changeProp:!0},this.getAutoplayTrait(),this.getLoopTrait()]},e.prototype.getAutoplayTrait=function(){return{type:"checkbox",label:"Autoplay",name:"autoplay",changeProp:!0}},e.prototype.getLoopTrait=function(){return{type:"checkbox",label:"Loop",name:"loop",changeProp:!0}},e.prototype.getControlsTrait=function(){return{type:"checkbox",label:"Controls",name:"controls",changeProp:!0}},e.prototype.getYoutubeSrc=function(){var t=this.get("videoId"),e=this.get("ytUrl"),n=this.get("list");return e+=t+(t.indexOf("?")<0?"?":""),e+=n?"&list=".concat(n):"",e+=this.get("autoplay")?"&autoplay=1&mute=1":"",e+=this.get("controls")?"":"&controls=0&showinfo=0",e+=this.get("loop")?"&loop=1&playlist=".concat(t):"",(e+=this.get("rel")?"":"&rel=0")+(this.get("modestbranding")?"&modestbranding=1":"")},e.prototype.getYoutubeNoCookieSrc=function(){var t=this.getYoutubeSrc();return t.replace(this.get("ytUrl"),this.get("ytncUrl"))},e.prototype.getVimeoSrc=function(){var t=this.get("viUrl");return t+=this.get("videoId")+"?",t+=this.get("autoplay")?"&autoplay=1&muted=1":"",t+=this.get("loop")?"&loop=1":"",(t+=this.get("controls")?"":"&title=0&portrait=0&badge=0")+(this.get("color")?"&color="+this.get("color"):"")},e.isComponent=function(t){var e=t.tagName,n=t.src,r=/youtube\.com\/embed/.test(n),o=/youtube-nocookie\.com\/embed/.test(n),i=/player\.vimeo\.com\/video/.test(n),s=r||o||i;if((0,a.toLowerCase)(e)==So||"iframe"==(0,a.toLowerCase)(e)&&s){var l={type:"video"};return n&&(l.src=n),s&&(r?l.provider=ko:o?l.provider=jo:i&&(l.provider=Po)),l}},e}(Sr);const Do=Lo;var Io=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ro=function(){return Ro=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ro.apply(this,arguments)},Mo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Io(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Ro(Ro({},t.prototype.defaults),{tagName:"body",removable:!1,copyable:!1,draggable:!1,components:[],traits:[],doctype:"",head:null,docEl:null,stylable:["background","background-color","background-image","background-repeat","background-attachment","background-position","background-size"]})},enumerable:!1,configurable:!0}),e.prototype.preInit=function(){var t,e,n=this.opt,r=this.attributes,o=null===(t=this.em)||void 0===t?void 0:t.Components,i=null===(e=null==o?void 0:o.getType(In))||void 0===e?void 0:e.model,a=null==o?void 0:o.getType("default").model;if(i){var s=r.head,l=r.docEl;this.set({head:s&&s instanceof Nn?s:new i(Ro({},s),n),docEl:l&&l instanceof Nn?l:new a(Ro({tagName:"html"},l),n)},{silent:!0})}},Object.defineProperty(e.prototype,"head",{get:function(){return this.get("head")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"docEl",{get:function(){return this.get("docEl")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"doctype",{get:function(){return this.attributes.doctype||""},enumerable:!1,configurable:!0}),e.prototype.clone=function(e){var n=t.prototype.clone.call(this,e);return n.set("head",this.get("head").clone(e)),n.set("docEl",this.get("docEl").clone(e)),n},e.prototype.toHTML=function(e){void 0===e&&(e={});var n=this.doctype,r=(0,i.isUndefined)(e.asDocument)?!!n:e.asDocument,o=this.head,a=this.docEl,s=t.prototype.toHTML.call(this,e),l=r&&(null==o?void 0:o.toHTML(e))||"",c=r&&(0,yt.kk)(null==a?void 0:a.getAttrToHTML())||"",u=c?" ".concat(c):"";return r?"".concat(n,"<html").concat(u,">").concat(l).concat(s,"</html>"):s},e.prototype.__postAdd=function(){var e,n=null===(e=this.em)||void 0===e?void 0:e.UndoManager;return!this.__hasUm&&(null==n||n.add(this)),t.prototype.__postAdd.call(this)},e.prototype.__postRemove=function(){var e,n=null===(e=this.em)||void 0===e?void 0:e.UndoManager;return null==n||n.remove(this),t.prototype.__postRemove.call(this)},e.isComponent=function(){return!1},e}(Nn);const Bo=Mo;var Fo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Uo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.compView=Wo,e}return Fo(e,t),e.prototype.initialize=function(t){this.opts=t||{},this.config=t.config||{},this.em=this.config.em;var e=this.collection;this.listenTo(e,"add",this.addTo),this.listenTo(e,"reset",this.resetChildren),this.listenTo(e,"remove",this.removeChildren)},e.prototype.removeChildren=function(t,e,n){var r=this;void 0===n&&(n={}),t.views.forEach((function(t){if(t){var e=t.childrenView,n=t.scriptContainer;e&&e.stopListening(),(0,yt.YZ)(n),t.remove.apply(t)}})),t.components().forEach((function(t){return r.removeChildren(t,e,n)}))},e.prototype.addTo=function(t){this.addToCollection(t,null,this.collection.indexOf(t))},e.prototype.addToCollection=function(t,e,n){for(var r=this,o=r.config,a=r.opts,s=r.em,l=o.frameView,c=(null==l?void 0:l.model)&&t.getView(l.model),u=a.componentTypes||(null==s?void 0:s.Components.getTypes()),p=t.get("type")||"default",d=this.compView,f=0;f<u.length;f++)if(u[f].id==p){d=u[f].view;break}var h,g=c||new d({model:t,config:o,componentTypes:u});try{h=g.render().el}catch(t){h=document.createTextNode(""),s.logError(t)}if(e)e.appendChild(h);else{var m=this.parentEl,v=m.childNodes;if((0,i.isUndefined)(n))m.appendChild(h);else{var y=v.length==n;y&&n--,y||!v.length?m.appendChild(h):m.insertBefore(h,v[n])}}return t.opt.temporary||null==s||s.trigger("component:mount",t),h},e.prototype.resetChildren=function(t,e){var n=this;void 0===e&&(e={});var r=e.previousModels;e.skipDomReset||(this.parentEl.innerHTML=""),null==r||r.forEach((function(t){return n.removeChildren(t,n.collection)})),t.each((function(t){return n.addToCollection(t)}))},e.prototype.render=function(t){var e=this,n=this.el,r=document.createDocumentFragment();return this.parentEl=t||this.el,this.collection.each((function(t){return e.addToCollection(t,r)})),n.innerHTML="",n.appendChild(r),this},e}(d.Ss);const Ho=Uo;var Vo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qo=function(){return qo=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},qo.apply(this,arguments)},zo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vo(e,t),e.prototype.className=function(){return this.getClasses()},e.prototype.tagName=function(){return this.model.get("tagName")},e.prototype.preinitialize=function(t){void 0===t&&(t={}),this.opts=t},e.prototype.initialize=function(t){void 0===t&&(t={});var e=this.model,n=t.config||{},r=n.em,o=e.opt||{},i=this.$el,s=this.el;this.opts=t,this.modelOpt=o,this.config=n,this.em=r,this.pfx=n.stylePrefix||"",this.ppfx=n.pStylePrefix||"",this.attr=e.get("attributes"),this.classe=this.attr.class||[],this.listenTo(e,"change:style",this.updateStyle),this.listenTo(e,"change:attributes",this.renderAttributes),this.listenTo(e,"change:highlightable",this.updateHighlight),this.listenTo(e,"change:status change:locked",this.updateStatus),this.listenTo(e,"change:script rerender",this.reset),this.listenTo(e,"change:content",this.updateContent),this.listenTo(e,"change",this.handleChange),this.listenTo(e,"active",this.onActive),this.listenTo(e,"disable",this.onDisable),i.data("model",e),(0,a.setViewEl)(s,this),e.view=this,this.frameView&&e.views.push(this),this.initClasses(),this.initComponents({avoidRender:!0}),this.events=qo(qo({},this.constructor.getEvents()),{dragstart:"handleDragStart"}),this.delegateEvents(),!o.temporary&&this.init(this._clbObj())},Object.defineProperty(e.prototype,"__cmpStyleOpts",{get:function(){return{state:"",mediaText:""}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"frameView",{get:function(){return this.opts.config.frameView},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"createDoc",{get:function(){var t,e,n=(null===(t=this.frameView)||void 0===t?void 0:t.getDoc())||document;return(null===(e=this.opts.config)||void 0===e?void 0:e.useFrameDoc)?n:document},enumerable:!1,configurable:!0}),e.prototype.__isDraggable=function(){var t=this.model,e=this.config,n=t.attributes.draggable;return e.draggableComponents&&n},e.prototype._clbObj=function(){var t=this,e=t.em,n=t.model,r=t.el;return{editor:null==e?void 0:e.getEditor(),model:n,el:r}},e.prototype.init=function(t){},e.prototype.removed=function(t){},e.prototype.onRender=function(t){},e.prototype.onActive=function(t){},e.prototype.onDisable=function(t){},e.prototype.remove=function(){var e;t.prototype.remove.call(this);var n=this.model,r=this.$el,o=n.views,i=this.frameView||{};return n.components().forEach((function(t){var e=t.getView(i.model);null==e||e.remove()})),null===(e=this.childrenView)||void 0===e||e.remove(),o.splice(o.indexOf(this),1),this.removed(this._clbObj()),r.data({model:"",collection:"",view:""}),this},e.prototype.handleDragStart=function(t){if(!this.__isDraggable())return!1;t.stopPropagation(),t.preventDefault();var e=this.em.getSelectedAll(),n=e.includes(this.model)?e:[this.model];this.em.Commands.run("tlb-move",{target:n,event:t})},e.prototype.initClasses=function(){var t=this.model,e=t.classes,n="change:classes";e instanceof $e&&(this.stopListening(t,n,this.initClasses),this.listenTo(t,n,this.initClasses),this.listenTo(e,"add remove change reset",this.updateClasses),e.length&&this.importClasses())},e.prototype.initComponents=function(t){void 0===t&&(t={});var e=this,n=e.model,r=e.$el,o=e.childrenView,i=n.get("components"),a=[n,"change:components",this.initComponents];i instanceof Ve&&(r.data("collection",i),o&&o.remove(),this.stopListening.apply(this,a),!t.avoidRender&&this.renderChildren(),this.listenTo.apply(this,a))},e.prototype.handleChange=function(){var t=this.model,e=(0,i.keys)(t.changed);if(1!==e.length||"status"!==e[0])for(var n in t.emitUpdate(),t.changed)t.emitUpdate(n)},e.prototype.importClasses=function(){var t=this.em,e=this.model,n=t.Selectors;n&&e.classes.forEach((function(t){return n.add(t.getName())}))},e.prototype.updateStatus=function(t){void 0===t&&(t={});var e=this,n=e.em,r=e.el,o=e.ppfx,a=e.model,s=null==n?void 0:n.Canvas,l=null==s?void 0:s.config.extHl,c=a.get("status"),u="".concat(o,"selected"),p="".concat(u,"-parent"),d="".concat(o,"freezed"),f="".concat(o,"hovered"),h="".concat(o,"no-pointer"),g="".concat(o,"pointer-init"),m=[u,p,d,f,h,g],v=l&&!t.noExtHl?"":u;this.$el.removeClass(m.join(" "));var y=[r.getAttribute("class")||""],b=!(null==s?void 0:s.hasCustomSpot(lt.F.Select)),_=!(null==s?void 0:s.hasCustomSpot(lt.F.Target));switch(c){case"selected":b&&y.push(v);break;case"selected-parent":_&&y.push(p);break;case"freezed":y.push(d);break;case"freezed-selected":y.push(d),b&&y.push(v);break;case"hovered":!t.avoidHover&&y.push(f)}(0,i.isBoolean)(a.locked)&&y.push(a.locked?h:g);var w=y.filter(Boolean).join(" ");w&&r.setAttribute("class",w)},e.prototype.updateHighlight=function(){var t=this.model,e=t.get("textable"),n=t.get("highlightable")&&(e||!t.isChildOf("text"));this.setAttribute("data-gjs-highlightable",!!n||"")},e.prototype.updateStyle=function(t,e,n){void 0===n&&(n={});var r=this.model,o=this.em;if(Cn(o)&&!n.inline){var a=this.__cmpStyleOpts,s=r.getStyle(qo({inline:!0},a));!(0,i.isEmpty)(s)&&r.setStyle(s,a)}else this.setAttribute("style",r.styleToString(n))},e.prototype.updateStyles=function(){this.updateStyle()},e.prototype.updateClasses=function(){var t=this.model.classes.pluck("name").join(" ");this.setAttribute("class",t),this.updateStatus(),this.onAttrUpdate()},e.prototype.setAttribute=function(t,e){var n=this.$el;e?n.attr(t,e):n.removeAttr(t)},e.prototype.getClasses=function(){return this.model.getClasses().join(" ")},e.prototype.updateAttributes=function(){var t=[],e=this,n=e.model,r=e.$el,o=e.el,a=n.attributes,s=a.textable,l=a.type,c=qo(qo({id:n.getId(),"data-gjs-type":l||"default"},this.__isDraggable()&&{draggable:!0}),s&&{contenteditable:"false"});(0,i.each)(o.attributes,(function(e){return t.push(e.nodeName)})),t.forEach((function(t){return r.removeAttr(t)})),this.updateStyle(),this.updateHighlight();var u=qo(qo({},c),n.getAttributes());(0,i.keys)(u).forEach((function(t){return!1===u[t]&&delete u[t]})),r.attr(u)},e.prototype.updateContent=function(){var t=this.model.content,e=this.model.components().length;this.getChildrenContainer().innerHTML=e?"":t},e.prototype.prevDef=function(t){t.preventDefault()},e.prototype.updateScript=function(){var t=this.model,e=this.em;t.get("script")&&(null==e||e.Canvas.getCanvasView().updateScript(this))},e.prototype.getChildrenContainer=function(){var t=this.el;return"function"==typeof this.getChildrenSelector?t=this.el.querySelector(this.getChildrenSelector()):this.getTemplate,t},e.prototype.getOffsetRect=function(){var t={top:0,left:0,bottom:0,right:0},e=this.el,n=0,r=0,o=function(i){var a=i.offsetParent;a?(n+=a.offsetTop,r+=a.offsetLeft,o(a)):(t.top=e.offsetTop+n,t.left=e.offsetLeft+r,t.bottom=t.top+e.offsetHeight,t.right=t.left+e.offsetWidth)};return o(e),t},e.prototype.isInViewport=function(){var t=this,e=t.el,n=t.em,r=t.frameView,o=n.Canvas.getCanvasView().getElBoxRect(e,{local:!0}),i=r.el,a=i.clientHeight,s=i.clientWidth,l=o.y,c=o.x,u=l+o.height,p=c+o.width;return(l>=0&&l<a||u>0&&u<a)&&(p>=0&&p<s||c>0&&c<=s)},e.prototype.scrollIntoView=function(t){var e;if(void 0===t&&(t={}),!this.isInViewport()||t.force){var n=this.el;if("smooth"!==t.behavior){var r=this.getOffsetRect();null===(e=n.ownerDocument.defaultView)||void 0===e||e.scrollTo(0,r.top)}else n.scrollIntoView(qo({behavior:"smooth",block:"nearest"},t))}},e.prototype.reset=function(){var t=this,e=t.el,n=t.model;t.scriptContainer&&n.emitWithEitor(ct.I.scriptUnmount,{component:n,view:t,el:e}),this.el="",this._ensureElement(),this._setData(),(0,yt.bG)(e,this.el),this.render()},e.prototype._setData=function(){var t=this.model,e=t.components();this.$el.data({model:t,collection:e,view:this})},e.prototype._createElement=function(t){return this.createDoc.createElement(t)},e.prototype.renderChildren=function(){this.updateContent();var t=this.getChildrenContainer(),e=this.childrenView||new Ho({collection:this.model.get("components"),config:this.config,componentTypes:this.opts.componentTypes});e.render(t),this.childrenView=e;for(var n=Array.prototype.slice.call(e.el.childNodes),r=0,o=n.length;r<o;r++)t.appendChild(n.shift())},e.prototype.renderAttributes=function(){this.updateAttributes(),this.updateClasses()},e.prototype.onAttrUpdate=function(){},e.prototype.render=function(){return this.renderAttributes(),this.modelOpt.temporary||(this.renderChildren(),this.updateScript(),(0,a.setViewEl)(this.el,this),this.postRender()),this},e.prototype.postRender=function(){this.modelOpt.temporary||this.onRender(this._clbObj())},e.getEvents=function(){return(0,i.result)(this.prototype,"events")},e}(d.Ss);const Wo=zo;var Go=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Go(e,t),e.prototype._setAttributes=function(){},e.prototype.renderAttributes=function(){},e.prototype.updateStatus=function(){},e.prototype.updateClasses=function(){},e.prototype.setAttribute=function(){},e.prototype.updateAttributes=function(){},e.prototype.initClasses=function(){},e.prototype.initComponents=function(){},e.prototype.delegateEvents=function(){return this},e.prototype._createElement=function(){return document.createTextNode("")},e.prototype.render=function(){var t=this.model,e=this.el;return t.opt.temporary||(e.textContent=t.content),this},e}(Wo);var Ko=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const $o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ko(e,t),e.prototype._createElement=function(){return document.createComment(this.model.content)},e}(Yo);var Xo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Zo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Xo(e,t),e.prototype.tagName=function(){return"div"},e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:attributes:src",this.updateSrc)},e.prototype.updateSrc=function(){var t=(0,yt.I6)(this.el,"iframe")[0];t&&(0,yt.X6)(t,{src:this.__getSrc()})},e.prototype.render=function(){t.prototype.render.call(this);var e=(0,yt.a_)("iframe",{class:"".concat(this.ppfx,"no-pointer"),style:"width: 100%; height: 100%; border: none",src:this.__getSrc()});return this.el.appendChild(e),this},e.prototype.__getSrc=function(){return this.model.getAttributes().src||""},e}(Wo);var Qo=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qo(e,t),e.prototype.tagName=function(){return"img"},e.prototype.events=function(){return{dblclick:"onActive",click:"initResize",error:"onError",load:"onLoad",dragstart:"noDrag"}},e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.listenTo(this.model,"change:src",this.updateSrc),this.classEmpty="".concat(this.ppfx,"plh-image"),this.fetchFile()},e.prototype.fetchFile=function(){if(!this.modelOpt.temporary){var t=this.model,e=this.em,n=t.get("file");if(n&&e){var r=e.Assets.FileUploader();null==r||r.uploadFile({dataTransfer:{files:[n]}},(function(e){var n=e&&e.data&&e.data[0],r=n&&((0,i.isString)(n)?n:n.src);r&&t.set({src:r})})),t.set("file","")}}},e.prototype.updateSrc=function(){var t=this.model;t.addAttributes({src:t.getSrcResult()}),this.updateClasses()},e.prototype.updateClasses=function(){t.prototype.updateClasses.call(this);var e=this,n=e.el,r=e.classEmpty,o=e.model,i=o.getSrcResult()&&!o.isDefaultSrc()?"remove":"add";n.classList[i](r)},e.prototype.onActive=function(t){null==t||t.stopPropagation();var e=this.em,n=this.model,r=null==e?void 0:e.Assets;r&&n.get("editable")&&r.open({select:function(t,e){n.set({src:t.getSrc()}),e&&r.close()},target:n,types:["image"],accept:"image/*"})},e.prototype.onError=function(){var t=this.model,e=this.el,n=t.getSrcResult({fallback:!0});n&&(e.srcset&&(e.srcset=""),e.src=n)},e.prototype.onLoad=function(){this.em.Canvas.refresh({all:!0})},e.prototype.noDrag=function(t){return t.preventDefault(),!1},e.prototype.render=function(){if(this.renderAttributes(),this.modelOpt.temporary)return this;this.updateSrc();var t=this.$el,e=this.model,n=t.attr("class")||"";return!e.get("src")&&t.attr("class","".concat(n," ").concat(this.classEmpty).trim()),this.postRender(),this},e}(Wo);const ti=Jo;var ei=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ni=function(){return ni=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ni.apply(this,arguments)},ri=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},oi=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ei(e,t),e.prototype.events=function(){return{dblclick:"onActive",input:"onInput"}},e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),(0,i.bindAll)(this,"disableEditing","onDisable");var n=this.model,r=this.em;this.listenTo(n,"focus",this.onActive),this.listenTo(n,"change:content",this.updateContentText),this.listenTo(n,"sync:content",this.syncContent),this.rte=null==r?void 0:r.RichTextEditor},e.prototype.updateContentText=function(t,e,n){void 0===n&&(n={}),!n.fromDisable&&this.disableEditing()},e.prototype.canActivate=function(){var t,e=this,n=e.model,r=e.rteEnabled,o=e.em,i=(null==o?void 0:o.getEditing())===n,a=!0,s=!1;if((r||!n.get("editable")||i||(s=n.isChildOf("text")))&&(a=!1,s&&!n.get("textable"))){for(var l=n.parent();l&&!l.isInstanceOf("text");)l=l.parent();l&&l.get("editable")?t=l:a=!0}return{result:a,delegate:t}},e.prototype.onActive=function(t){return ri(this,void 0,void 0,(function(){var e,n,r,o,i,a,s,l,c,u,p,d;return oi(this,(function(f){switch(f.label){case 0:return n=(e=this).rte,r=e.em,o=this.canActivate(),i=o.result,a=o.delegate,i?(null===(d=null==t?void 0:t.stopPropagation)||void 0===d||d.call(t),s=this,[4,this.getContent()]):(a&&(null===(p=null==t?void 0:t.stopPropagation)||void 0===p||p.call(t),r.setSelected(a),a.trigger("active",t)),[2]);case 1:if(s.lastContent=f.sent(),!n)return[3,5];f.label=2;case 2:return f.trys.push([2,4,,5]),l=this,c=this,[4,n.enable(l,this.activeRte,{event:t,view:l})];case 3:return c.activeRte=f.sent(),[3,5];case 4:return u=f.sent(),r.logError(u),[3,5];case 5:return this.toggleEvents(!0),[2]}}))}))},e.prototype.onDisable=function(t){this.disableEditing(t)},e.prototype.disableEditing=function(){return ri(this,arguments,void 0,(function(t){var e,n,r,o,i,a,s,l,c;return void 0===t&&(t={}),oi(this,(function(u){switch(u.label){case 0:return n=(e=this).model,r=e.rte,o=e.activeRte,i=e.em,a=n&&n.get("editable"),r?(s={},[4,this.getContent()]):[3,7];case 1:l=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,r.disable(this,o,t)];case 3:return s=u.sent(),[3,5];case 4:return c=u.sent(),i.logError(c),[3,5];case 5:return!a||l===this.lastContent&&!s.forceSync?[3,7]:[4,this.syncContent(ni(ni({},t),{content:l}))];case 6:u.sent(),this.lastContent="",u.label=7;case 7:return this.toggleEvents(),[2]}}))}))},e.prototype.getContent=function(){return ri(this,void 0,void 0,(function(){var t,e,n,r;return oi(this,(function(o){switch(o.label){case 0:return e=(t=this).rte,n=t.activeRte,r="",e?[4,e.getContent(this,n)]:[3,2];case 1:r=o.sent(),o.label=2;case 2:return[2,r]}}))}))},e.prototype.syncContent=function(){return ri(this,arguments,void 0,(function(t){var e,n,r,o,i,a,s,l;return void 0===t&&(t={}),oi(this,(function(c){switch(c.label){case 0:return n=(e=this).model,r=e.rte,e.rteEnabled||t.force?null===(l=t.content)||void 0===l?[3,1]:(i=l,[3,3]):[2];case 1:return[4,this.getContent()];case 2:i=c.sent(),c.label=3;case 3:return o=i,a=n.components(),s=ni({fromDisable:1},t),n.set("content","",s),(null==r?void 0:r.customRte)&&!r.customRte.parseContent?(a.length&&a.reset(void 0,ni(ni({},t),{keepIds:Fe(a)})),n.set("content",o,s)):a.resetFromString(o,t),[2]}}))}))},e.prototype.insertComponent=function(t,e){var n;void 0===e&&(e={});var r=this.model,o=this.el.ownerDocument.getSelection();if(null==o?void 0:o.rangeCount){var i=o.getRangeAt(0),s=i.startContainer,l=i.startOffset,c=(0,a.getComponentModel)(s),u=[];if(c&&(null===(n=c.is)||void 0===n?void 0:n.call(c,"textnode"))){var p=c.collection;p.forEach((function(n){if(n===c){var r="textnode",o=e.useDomContent?s.textContent||"":n.content;u.push({type:r,content:o.slice(0,l)}),u.push(t),u.push({type:r,content:o.slice(l)})}else u.push(n)}));var d=u.filter(Boolean),f=d.indexOf(t);return p.reset(d,e),p.at(f)}}return r.append(t,e)},e.prototype.onInput=function(){var t,e="component",n=["".concat(e,":update"),"".concat(e,":input")].join(" ");null===(t=this.em)||void 0===t||t.trigger(n,this.model)},e.prototype.disablePropagation=function(t){t.stopPropagation()},e.prototype.toggleEvents=function(t){var e=this,n=e.em,r=e.model,o=e.$el,i={on:yt.on,off:yt.AU},a=t?"on":"off";n.setEditing(!!t&&this),this.rteEnabled=!!t;var s=[this.el.ownerDocument,document];if(i.off(s,"mousedown",this.onDisable),i[a](s,"mousedown",this.onDisable),n[a]("toolbar:run:before",this.onDisable),r&&(r[a]("removed",this.onDisable),r.trigger("rte:".concat(t?"enable":"disable"))),null==o||o.off("mousedown",this.disablePropagation),o&&o[a]("mousedown",this.disablePropagation),this.config.draggableComponents)for(var l=this.el;l;)l.draggable=!t,(l=l.parentNode)&&"BODY"==l.tagName&&(l=0)},e}(Wo);const ai=ii;var si=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return si(e,t),e.prototype.render=function(){return t.prototype.render.call(this),this.el.addEventListener("click",this.prevDef,!0),this},e}(ai);var ci=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const ui=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ci(e,t),e}(li);var pi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const di=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pi(e,t),e.prototype.tagName=function(){return"div"},e.prototype.events=function(){return{}},e.prototype.initialize=function(e){t.prototype.initialize.call(this,e),this.classEmpty=this.ppfx+"plh-map"},e.prototype.updateSrc=function(){this.getIframe().src=this.model.get("src")},e.prototype.getIframe=function(){if(!this.iframe){var t=document.createElement("iframe");t.src=this.model.get("src"),t.frameBorder="0",t.style.height="100%",t.style.width="100%",t.className=this.ppfx+"no-pointer",this.iframe=t}return this.iframe},e.prototype.render=function(){return t.prototype.render.call(this),this.updateClasses(),this.el.appendChild(this.getIframe()),this},e}(ti);var fi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const hi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fi(e,t),e.prototype.tagName=function(){return"script"},e.prototype.events=function(){return{}},e}(Wo);var gi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gi(e,t),e.prototype._createElement=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)},e}(Wo);var vi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vi(e,t),e}(Wo);var bi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const _i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return bi(e,t),e}(Wo);var wi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wi(e,t),e}(Wo);var xi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ci=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xi(e,t),e}(Wo);var Ti=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ai=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ti(e,t),e}(Wo);var Oi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Oi(e,t),e.prototype.events=function(){return{}},e}(Wo);var ki=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ki(e,t),e.prototype.tagName=function(){return"div"},e.prototype.events=function(){return{}},e.prototype.initialize=function(){Wo.prototype.initialize.apply(this,arguments);var t=this.model,e=["loop","autoplay","controls","color","rel","modestbranding","poster"].map((function(t){return"change:".concat(t)})).join(" ");this.listenTo(t,"change:provider",this.updateProvider),this.listenTo(t,"change:src",this.updateSrc),this.listenTo(t,e,this.updateVideo)},e.prototype.updateProvider=function(){var t=this.model.get("provider");this.el.innerHTML="",this.el.appendChild(this.renderByProvider(t))},e.prototype.updateSrc=function(){var t=this.model,e=this.videoEl;if(e){var n=t.get("provider"),r=t.get("src");switch(n){case"yt":r=t.getYoutubeSrc();break;case"ytnc":r=t.getYoutubeNoCookieSrc();break;case"vi":r=t.getVimeoSrc()}e.src=r}},e.prototype.updateVideo=function(){var t=this.model,e=this.videoEl;switch(t.get("provider")){case"yt":case"ytnc":case"vi":t.trigger("change:videoId");break;default:if(e){var n=e;n.loop=t.get("loop"),n.autoplay=t.get("autoplay"),n.controls=t.get("controls"),n.poster=t.get("poster")}}},e.prototype.renderByProvider=function(t){var e;switch(t){case"yt":e=this.renderYoutube();break;case"ytnc":e=this.renderYoutubeNoCookie();break;case"vi":e=this.renderVimeo();break;default:e=this.renderSource()}return this.videoEl=e,e},e.prototype.renderSource=function(){var t=document.createElement("video");return t.src=this.model.get("src"),this.initVideoEl(t),t},e.prototype.renderYoutube=function(){var t=document.createElement("iframe");return t.src=this.model.getYoutubeSrc(),t.frameBorder="0",t.setAttribute("allowfullscreen","true"),this.initVideoEl(t),t},e.prototype.renderYoutubeNoCookie=function(){var t=document.createElement("iframe");return t.src=this.model.getYoutubeNoCookieSrc(),t.frameBorder="0",t.setAttribute("allowfullscreen","true"),this.initVideoEl(t),t},e.prototype.renderVimeo=function(){var t=document.createElement("iframe");return t.src=this.model.getVimeoSrc(),t.frameBorder="0",t.setAttribute("allowfullscreen","true"),this.initVideoEl(t),t},e.prototype.initVideoEl=function(t){t.className=this.ppfx+"no-pointer",t.style.height="100%",t.style.width="100%"},e.prototype.render=function(){Wo.prototype.render.apply(this),this.updateClasses();var t=this.model.get("provider");return this.el.appendChild(this.renderByProvider(t)),this.updateVideo(),this},e}(ti);const ji=Pi;var Ni=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Li=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ni(e,t),e.prototype.tagName=function(){return"div"},e}(Wo);var Di=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ii=function(){return Ii=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ii.apply(this,arguments)},Ri=function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;r.refreshDbn=(0,i.debounce)((function(){return r.refresh()}),0);var o=r.events;return r.on(o.update,r.onUpdate),r.on(o.updateInside,r.onUpdateDeep),r}return Di(e,t),e.prototype.removeChildren=function(e,n,r){var o;void 0===r&&(r={}),t.prototype.removeChildren.call(this,e,n,r),null===(o=Se(e))||void 0===o||o.forEach((function(t){return Ne(t,{skipRefs:!0})})),this.__trgEvent(this.events.symbolMainRemove,{component:e})},e.prototype.onAdd=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t.prototype.onAdd.apply(this,e);var r=e[0];this.__trgEvent(this.events.symbolMainAdd,{component:r})},e.prototype.onUpdate=function(t){this.__trgEvent(this.events.symbolMainUpdate,t)},e.prototype.onUpdateDeep=function(t){this.__trgEvent(this.events.symbolMainUpdateDeep,t)},e.prototype.refresh=function(){var t=this.em,e=this.events;t.trigger(e.symbol)},e.prototype.__trgEvent=function(t,e,n){void 0===n&&(n=!1);var r=this.em,o=this.events,i=n?o.symbolInstance:o.symbolMain;r.trigger(t,e),r.trigger(i,Ii(Ii({},e),{event:t})),this.refreshDbn()},e}(Ve);const Mi=Ri;var Bi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fi=function(){return Fi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Fi.apply(this,arguments)},Ui=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bi(e,t),Object.defineProperty(e.prototype,"defaults",{get:function(){return Fi(Fi({},t.prototype.defaults),{type:It,path:"",defaultValue:""})},enumerable:!1,configurable:!0}),e.prototype.getDataValue=function(){var t=this.attributes,e=t.path,n=t.defaultValue;return this.em.DataSources.getValue(e,n)},e.prototype.getInnerHTML=function(){return this.getDataValue()},e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===It},e}(Nn);const Hi=Ui;var Vi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vi(e,t),e.prototype.initialize=function(e){var n=this;void 0===e&&(e={}),t.prototype.initialize.call(this,e),this.dynamicVariableListener=new fe({em:this.em,dataVariable:this.model,updateValueFromDataVariable:function(){return n.postRender()}})},e.prototype.postRender=function(){var e=this,n=e.model,r=e.el,o=e.em,i=n.attributes,a=i.path,s=i.defaultValue;r.innerHTML=o.DataSources.getValue(a,s),t.prototype.postRender.call(this)},e}(Wo);const zi=qi;var Wi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Gi=function(t){function e(e,n){var r=this,o=e.condition,i=e.ifTrue,a=e.ifFalse,s=new ue(o,i,a,{em:n.em}),l=s.getDataValue(),c={type:ce,components:l};return(r=t.call(this,c,n)||this).componentDefinition=e,r.dataCondition=s,r.dataCondition.onValueChange=r.handleConditionChange.bind(r),r}return Wi(e,t),e.prototype.handleConditionChange=function(){this.dataCondition.reevaluate();var t=this.dataCondition.getDataValue();this.components().reset(),this.components().add(t)},e.isComponent=function(t){return(0,a.toLowerCase)(t.tagName)===ce},e.prototype.toJSON=function(){return this.dataCondition.toJSON()},e}(Nn);var Yi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ki=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yi(e,t),e}(Wo);var $i,Xi=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zi=function(){return Zi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Zi.apply(this,arguments)};!function(t){t[t.InvalidSource=0]="InvalidSource",t[t.SourceReject=1]="SourceReject",t[t.TargetReject=2]="TargetReject"}($i||($i={}));var Qi=function(t){function e(e){var n=t.call(this,e,"DomComponents",new Ve(void 0,{em:e}),ct.I,{stylePrefix:"comp-",components:[],draggableComponents:!0,disableTextInnerChilds:!1,processor:void 0,useFrameDoc:!1,voidElements:["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]})||this;n.componentTypes=[{id:ce,model:Gi,view:Ki},{id:It,model:Hi,view:zi},{id:"cell",model:ho,view:_i},{id:"row",model:To,view:Ai},{id:"table",model:io,view:Si},{id:"thead",model:Eo,view:Ci},{id:"tbody",model:uo,view:yi},{id:"tfoot",model:yo,view:Ei},{id:"map",model:qr,view:di},{id:"link",model:Fr,view:li},{id:"label",model:Ir,view:ui},{id:"video",model:Do,view:ji},{id:"image",model:Sr,view:ti},{id:"script",model:Yr,view:hi},{id:"svg-in",model:to,view:mi},{id:"svg",model:Zr,view:mi},{id:"iframe",model:xr,view:Zo},{id:"comment",model:br,view:$o},{id:"textnode",model:gr,view:Yo},{id:In,model:Bn,view:Wo},{id:"wrapper",model:Bo,view:Li},{id:"text",model:jr,view:ai},{id:"default",model:Nn,view:Wo}],n.componentsById={},n.Component=Nn,n.Components=Ve,n.ComponentView=Wo,n.ComponentsView=Ho,n.storageKey="components",n.keySymbols="symbols",n.events=ct.I;var r=n.config;n.symbols=new Mi([],{em:e,config:r,domc:n}),e&&(n.config.components=e.config.components||n.config.components);var o=n.config.pStylePrefix;if(o&&(n.config.stylePrefix=o+n.config.stylePrefix),e){e.get("Parser").compTypes=n.componentTypes,e.on("change:componentHovered",n.componentHovered,n);var i=e.get("selected");e.listenTo(i,"add",(function(t,e,r){return n.selectAdd(i.getComponent(t),r)})),e.listenTo(i,"remove",(function(t,e,r){return n.selectRemove(i.getComponent(t),r)}))}return n}return Xi(e,t),e.prototype.postLoad=function(){var t=this.em,e=this.symbols;t.UndoManager.add(e)},e.prototype.load=function(t){var e=this,n=this.loadProjectData(t,{onResult:function(t){var n=e.getWrapper();if(n||(e.em.Pages.add({},{select:!0}),n=e.getWrapper()),(0,i.isArray)(t))t.length&&n.components(t);else{var r=t.components,o=void 0===r?[]:r,a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["components"]);n.set(a),n.components(o)}}});return this.symbols.reset(t[this.keySymbols]||[]),n},e.prototype.store=function(){var t;return(t={})[this.keySymbols]=this.symbols,t},e.prototype.getComponent=function(){var t=this.em.Pages.getSelected(),e=null==t?void 0:t.getMainFrame();return null==e?void 0:e.getComponent()},e.prototype.getWrapper=function(){return this.getComponent()},e.prototype.getComponents=function(){var t=this.getWrapper();return null==t?void 0:t.components()},e.prototype.addComponent=function(t,e){return void 0===e&&(e={}),this.getComponents().add(t,e)},e.prototype.render=function(){var t;return null===(t=this.componentView)||void 0===t?void 0:t.render().el},e.prototype.clear=function(t){void 0===t&&(t={});var e=this.getComponents();return null==e||e.filter(Boolean).forEach((function(e){return e.remove(t)})),this},e.prototype.setComponents=function(t,e){void 0===e&&(e={}),this.clear(e).addComponent(t,e)},e.prototype.addType=function(t,e){var n=this.em,r=e.model,o=void 0===r?{}:r,a=e.view,s=void 0===a?{}:a,l=e.isComponent,c=e.extend,u=e.extendView,p=e.extendFn,d=void 0===p?[]:p,f=e.extendFnView,h=void 0===f?[]:f,g=e.block,m=this.getType(t),v=this.getType(c),y=this.getType(u),b=v||m||this.getType("default"),_=b.model,w=y?y.view:b.view,E=function(t,e,n){return t.reduce((function(t,r){var o=e[r],i=n.prototype[r];return o&&i&&(t[r]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i.bind(this).apply(void 0,t),o.bind(this).apply(void 0,t)}),t}),{})};if("object"==typeof o){var x={defaults:o.defaults};delete o.defaults;var C=new Set(_.typeExtends);C.add(_.getDefaults().type),e.model=_.extend(Zi(Zi({},o),E(d,o,_)),{typeExtends:C,isComponent:!m||v||l?l||function(){return 0}:_.isComponent}),Object.defineProperty(e.model.prototype,"defaults",{get:function(){return Zi(Zi({},(0,i.result)(_.prototype,"defaults")||{}),(0,i.result)(x,"defaults")||{})}})}if("object"==typeof s&&(e.view=w.extend(Zi(Zi({},s),E(h,s,w)))),m?(m.model=e.model,m.view=e.view):(e.id=t,this.componentTypes.unshift(e)),g){var T={id:t,label:t,content:{type:t}},A=!0===g?T:Zi(Zi({},T),g);n.Blocks.add(A.id||t,A)}var O="component:type:".concat(m?"update":"add");return null==n||n.trigger(O,m||e),this},e.prototype.getType=function(t){for(var e=this.componentTypes,n=0;n<e.length;n++)if(e[n].id==t)return e[n]},e.prototype.removeType=function(t){var e=this.componentTypes,n=this.getType(t);if(n){var r=e.indexOf(n);return e.splice(r,1),n}},e.prototype.getTypes=function(){return this.componentTypes},e.prototype.selectAdd=function(t,e){var n=this;void 0===e&&(e={}),t&&(t.set({status:"selected"}),["component:selected","component:toggled"].forEach((function(r){return n.em.trigger(r,t,e)})))},e.prototype.selectRemove=function(t,e){var n=this;void 0===e&&(e={}),t&&(this.em,t.set({status:"",state:""}),["component:deselected","component:toggled"].forEach((function(r){return n.em.trigger(r,t,e)})))},e.prototype.componentHovered=function(){var t=this.em,e=t.get("componentHovered"),n=t.previous("componentHovered"),r="hovered";n&&n.get("status")==r&&n.set({status:"",state:""}),e&&(0,i.isEmpty)(e.get("status"))&&e.set("status",r)},e.prototype.getShallowWrapper=function(){var t=this.shallow,e=this.em;if(!t&&e){var n=e.shallow;if(!n)return;var r=n.Components;if(r.componentTypes=this.componentTypes,t=r.getWrapper()){var o=[kn,Pn].join(" ");t.on(o,(0,i.debounce)((function(){return null==t?void 0:t.components("")}),100))}this.shallow=t}return t},e.prototype.isComponent=function(t){return(0,a.isComponent)(t)},e.prototype.addSymbol=function(t){if(!(0,i.isSymbol)(t)||Te(t)){var e=t.clone({symbol:!0});return Ee(e)&&this.symbols.add(e),this.em.trigger("component:toggled"),e}},e.prototype.getSymbols=function(){return function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],this.symbols.models,!0)},e.prototype.detachSymbol=function(t){xe(t)&&Ne(t)},e.prototype.getSymbolInfo=function(t,e){void 0===e&&(e={});var n=Ee(t),r=Oe(t),o=!!r,i=Se(n?t:r)||[],a=r||(n?t:void 0),s=Pe(t,{changed:e.withChanges}),l=n||o;return{isSymbol:l,isMain:n,isInstance:o,isRoot:l&&Te(t),main:a,instances:i,relatives:s||[]}},e.prototype.canMove=function(t,e,n){var r={result:!1,reason:$i.InvalidSource,target:t,source:null};if(!e||!t)return r;if(Ce(t)&&e instanceof Nn&&Ce(e)){var o=je(t),s=Ee(o)?o:Oe(o),l=je(e);if(s===(Ee(l)?l:Oe(l))&&o!==l)return Zi(Zi({},r),{reason:$i.TargetReject})}var c=(0,a.isComponent)(e)?e:null;if(!c){var u=this.getShallowWrapper();c=(null==u?void 0:u.append(e,{temporary:!0})[0])||null}if(r.source=c,!c)return r;var p=c.get("draggable");if((0,i.isFunction)(p))p=!!p(c,t,n);else{var d=t.getEl();p=(0,i.isArray)(p)?p.join(","):p,p=(0,i.isString)(p)?null==d?void 0:d.matches(p):p}if(!p)return Zi(Zi({},r),{reason:$i.SourceReject});var f=t.get("droppable");(0,i.isFunction)(f)?f=!!f(c,t,n):!1===f&&t.isInstanceOf("text")&&c.get("textable")?f=!0:(d=c.getEl(),f=(0,i.isArray)(f)?f.join(","):f,f=(0,i.isString)(f)?null==d?void 0:d.matches(f):f);var h=[t].concat(t.parents()).indexOf(c)>-1;return Zi(Zi({},r),!f||h?{reason:$i.TargetReject}:{result:!0})},e.prototype.allById=function(){return this.componentsById},e.prototype.getById=function(t){return this.componentsById[t]||null},e.prototype.destroy=function(){var t,e=this.allById();Object.keys(e).forEach((function(t){return e[t]&&e[t].remove()})),null===(t=this.componentView)||void 0===t||t.remove(),[this.em,this.componentsById,this.componentView].forEach((function(t){return{}}))},e}(w);const Ji=Qi;var ta=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ea=Number.MAX_VALUE,na=function(t){function e(){var e=t.call(this)||this;return(0,i.bindAll)(e,"sortRules"),e.compCls=[],e.ids=[],e}return ta(e,t),e.prototype.buildFromModel=function(t,e){var n=this;void 0===e&&(e={});var r="",o=this.em,i=o&&o.getConfig().avoidInlineStyle,a=t.styleToString(),s=t.classes;return this.ids.push("#".concat(t.getId())),s.forEach((function(t){return n.compCls.push(t.getFullName())})),!i&&a&&(r="#".concat(t.getId(),"{").concat(a,"}")),t.components().forEach((function(t){return r+=n.buildFromModel(t,e)})),r},e.prototype.build=function(t,e){var n=this;void 0===e&&(e={});var r=e.json,o=e.em,s=e.cssc||(null==o?void 0:o.Css);this.em=o,this.compCls=[],this.ids=[],this.model=t;var l=[],c=t?this.buildFromModel(t,e):"",u=(0,i.isUndefined)(e.clearStyles)&&o?o.getConfig().clearStyles:e.clearStyles;if(s){var p=e.rules||s.getAll(),d={},f=[];e.onlyMatched&&t&&(0,a.hasWin)()&&(p=this.matchedRules(t,p)),p.forEach((function(t){var o=t.getAtRule();if(o){var i=d[o];i?i.push(t):d[o]=[t]}else{var a=n.buildFromRule(t,f,e);r?l.push(a):c+=a}})),this.sortMediaObject(d).forEach((function(t){var o="",i=t.key;t.value.forEach((function(t){var a=n.buildFromRule(t,f,e);t.get("singleAtRule")?c+="".concat(i,"{").concat(a,"}"):o+=a,r&&l.push(a)})),o&&(c+="".concat(i,"{").concat(o,"}"))})),o&&u&&p.remove&&p.remove(f)}return r?l.filter((function(t){return t})):c},e.prototype.buildFromRule=function(t,e,n){var r,o=this;void 0===n&&(n={});var i,a="",s=this.model,l=t.selectorsToString({skipAdd:1}),c=t.get("selectorsAdd"),u=t.get("singleAtRule");if(null===(r=t.get("selectors"))||void 0===r||r.forEach((function(t){var e=t.getFullName();(o.compCls.indexOf(e)>=0||o.ids.indexOf(e)>=0||n.keepUnusedStyles)&&(i=1)})),l&&i||c||u||!s){var p=t.getDeclaration({body:1});p&&(n.json?a=t:a+=p)}else e.push(t);return a},e.prototype.matchedRules=function(t,e){var n=this,r=t.getEl(),o=[];return e.forEach((function(t){try{t.selectorsToString().split(",").some((function(t){return null==r?void 0:r.matches(n.__cleanSelector(t))}))&&o.push(t)}catch(t){}})),t.components().forEach((function(t){o=o.concat(n.matchedRules(t,e))})),o=o.filter((function(t,e){return o.indexOf(t)===e}))},e.prototype.getQueryLength=function(t){var e=/(-?\d*\.?\d+)\w{0,}/.exec(t);return e?parseFloat(e[1]):ea},e.prototype.sortMediaObject=function(t){var e=this;void 0===t&&(t={});var n=[];return(0,i.each)(t,(function(t,e){return n.push({key:e,value:t})})),n.sort((function(t,n){var r=[t.key,n.key].every((function(t){return-1!==t.indexOf("min-width")})),o=r?t.key:n.key,i=r?n.key:t.key;return e.getQueryLength(o)-e.getQueryLength(i)}))},e.prototype.sortRules=function(t,e){var n=function(t){return t.get("mediaText")||""},r=[n(t),n(e)].every((function(t){return-1!==t.indexOf("min-width")})),o=n(r?t:e),i=n(r?e:t);return this.getQueryLength(o)-this.getQueryLength(i)},e.prototype.__cleanSelector=function(t){return t.split(" ").map((function(t){return t.split(":")[0]})).join(" ")},e}(d.Kx);const ra=na;var oa=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ia=function(){return ia=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ia.apply(this,arguments)},aa=((0,a.hasWin)()?window:{}).CSS,sa=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this,e)||this;return r.views=[],r.dynamicVariableListeners={},r.config=e||{},r.opt=n,r.em=n.em,r.ensureSelectors(null,null,{}),r.on("change",r.__onChange),r.setStyle(r.get("style")),r}return oa(e,t),e.prototype.defaults=function(){return{selectors:[],selectorsAdd:"",style:{},mediaText:"",state:"",stylable:!0,atRuleType:"",singleAtRule:!1,important:!1,group:"",shallow:!1,_undo:!0}},e.prototype.__onChange=function(t,e){var n=this.em,r=this.changedAttributes();r&&!(0,a.isEmptyObj)(r)&&(null==n||n.changesUp(e))},e.prototype.clone=function(){var t=ia({},this.opt),e=ia({},this.attributes);return e.selectors=this.get("selectors").map((function(t){return t.clone()})),new this.constructor(e,t)},e.prototype.ensureSelectors=function(t,e,n){var r=this.em,o=null==r?void 0:r.Selectors,a=[this,"change:selectors",this.ensureSelectors],s=this.getSelectors();if(this.stopListening.apply(this,a),s.models&&(s=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],s.models,!0)),s=(0,i.isString)(s)?[s]:s,Array.isArray(s)){var l=s.filter((function(t){return t})).map((function(t){return o?o.add(t):t}));s=new $e(l)}this.set("selectors",s,n),this.listenTo.apply(this,a)},e.prototype.getAtRule=function(){var t=this.get("atRuleType"),e=this.get("mediaText"),n=t?"@".concat(t):e?"@media":"";return n+(e&&n?" ".concat(e):"")},e.prototype.selectorsToString=function(t){void 0===t&&(t={});var e=[],n=this.get("state"),r=this.get("selectorsAdd"),o={escape:function(t){return aa&&aa.escape?aa.escape(t):t}},i=this.getSelectors().getFullString(0,o),a=n&&!t.skipState?":".concat(n):"";return i&&e.push("".concat(i).concat(a)),r&&!t.skipAdd&&e.push(r),e.join(", ")},e.prototype.getDeclaration=function(t){void 0===t&&(t={});var e="",n=this.attributes.important,r=this.selectorsToString(t),o=this.styleToString(ia({important:n},t)),i=this.get("singleAtRule");return(r||i)&&(o||t.allowEmpty)&&(e=i?o:"".concat(r,"{").concat(o,"}")),e},e.prototype.getDevice=function(){var t=this.em,e=this.attributes,n=e.atRuleType,r=e.mediaText,o=(null==t?void 0:t.Devices.getDevices())||[],i=o.filter((function(t){return""===t.getWidthMedia()}))[0];return"media"===n&&r?o.filter((function(t){return t.getWidthMedia()===((e=/(-?\d*\.?\d+)\w{0,}/.exec(r))?e[0]:"");var e}))[0]||null:i||null},e.prototype.getState=function(){var t=this.em,e=this.get("state");return((null==t?void 0:t.Selectors.getStates())||[]).filter((function(t){return t.getName()===e}))[0]||null},e.prototype.getComponent=function(){var t,e=this.getSelectors(),n=1==e.length&&e.at(0),r=n&&n.isId()&&n.get("name");return r&&(null===(t=this.em)||void 0===t?void 0:t.Components.getById(r))||null},e.prototype.toCSS=function(t){void 0===t&&(t={});var e="",n=this.getAtRule(),r=this.getDeclaration(t);return(r||t.allowEmpty)&&(e=r),n&&e&&(e="".concat(n,"{").concat(e,"}")),e},e.prototype.toJSON=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=d.Kx.prototype.toJSON.apply(this,e);if(null===(t=this.em)||void 0===t?void 0:t.getConfig().avoidDefaults){var o=this.defaults();(0,i.forEach)(o,(function(t,e){r[e]===t&&delete r[e]})),delete r.style.__p,(0,i.isEmpty)(r.selectors)&&delete r.selectors,(0,i.isEmpty)(r.style)&&delete r.style}return r},e.prototype.compare=function(t,e,n,r){var o;void 0===r&&(r={});var a=e||"",s=n||"",l=r.selectorsAdd||"",c=r.atRuleType||"";s&&!c&&(c="media");var u=((0,i.isArray)(t)||t.models?t.models||t:[t]).map((function(t){return t.getFullName()})),p=null===(o=this.get("selectors"))||void 0===o?void 0:o.map((function(t){return t.getFullName()})),d=u.slice().sort(),f=p.slice().sort();return!(u.length!==p.length||!d.every((function(t,e){return t===f[e]})))&&this.get("state")===a&&this.get("mediaText")===s&&this.get("selectorsAdd")===l&&this.get("atRuleType")===c},e}(be);const la=sa;var ca=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ua=function(t){function e(e,n){var r=t.call(this,e)||this;return r.editor=null==n?void 0:n.em,setTimeout((function(){r.on("remove",r.onRemove),r.on("add",r.onAdd)})),r}return ca(e,t),e.prototype.toJSON=function(t){return d.pM.prototype.toJSON.call(this,t).filter((function(t){return t.style&&!t.shallow}))},e.prototype.onAdd=function(t,e,n){t.ensureSelectors(t,e,n)},e.prototype.onRemove=function(t){var e=this.editor;e.stopListening(t),e.UndoManager.remove(t)},e.prototype.add=function(t,e){return void 0===e&&(e={}),"string"==typeof t&&(t=this.editor.get("Parser").parseCss(t)),e.em=this.editor,d.pM.prototype.add.apply(this,[t,e])},e}(d.pM);const pa=ua;ua.prototype.model=la;var da=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fa=function(){return fa=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},fa.apply(this,arguments)},ha=function(t){function e(e){var n=t.call(this,e,"CssComposer",null,{},{stylePrefix:"css-",rules:[]})||this;n.Selectors=$e,n.storageKey="styles";var r=n.config,o=r.pStylePrefix;return o&&(r.stylePrefix=o+r.stylePrefix),r.rules=n.em.config.style||r.rules||"",n.rules=new pa([],r),n}return da(e,t),e.prototype.onLoad=function(){this.rules.add(this.config.rules,{silent:!0})},e.prototype.postLoad=function(){this.em.UndoManager.add(this.getAll())},e.prototype.store=function(){return this.getProjectData()},e.prototype.load=function(t){return this.loadProjectData(t,{all:this.rules})},e.prototype.add=function(t,e,n,r,o){void 0===r&&(r={}),void 0===o&&(o={});var i=e||"",a=n||"",s=fa({},r),l=this.get(t,i,a,s);return l&&l.config&&!l.config.singleAtRule||(s.state=i,s.mediaText=a,s.selectors=[],a&&!s.atRuleType&&(s.atRuleType="media"),(l=new la(s,this.config)).get("selectors").add(t,o),this.rules.add(l,o)),l},e.prototype.get=function(t,e,n,r){var o=t;if((0,i.isString)(t)){var a=this.em.Selectors,s=t.split(",")[0].trim(),l=this.em.Parser.parserCss.checkNode({selectors:s})[0];o=a.get(l.selectors)}return this.rules.find((function(t){return t.compare(o,e,n,r)}))||null},e.prototype.getAll=function(){return this.rules},e.prototype.addCollection=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=this.em,o=[];(0,i.isString)(t)&&(t=r.Parser.parseCss(t));for(var s=t instanceof Array?t:[t],l=0,c=s.length;l<c;l++){var u=s[l]||{};if(u.selectors){var p=null==r?void 0:r.Selectors;p||console.warn("Selector Manager not found");for(var d=u.selectors,f=d instanceof Array?d:[d],h=[],g=0,m=f.length;g<m;g++){var v=p.add(f[g]);h.push(v)}var y=this.get(h,u.state,u.mediaText,u),b=this.add(h,u.state,u.mediaText,u,e),_=!y||!e.avoidUpdateStyle,w=u.style||{};if((0,a.isObject)(n)&&b.set(n,e),_){var E=e.extend?fa(fa({},b.get("style")),w):w;b.setStyle(E,e)}o.push(b)}}return o},e.prototype.addRules=function(t){return this.addCollection(t)},e.prototype.setRule=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=n.atRuleType,o=n.atRuleParams,i=this.em.Parser.parserCss.checkNode({selectors:t,style:e})[0],a=i.state,s=i.selectorsAdd,l=this.em.Selectors.add(i.selectors),c=this.add(l,a,o,{selectorsAdd:s,atRule:r});return n.addStyles?c.addStyle(e,n):c.setStyle(e,n),c},e.prototype.getRule=function(t,e){void 0===e&&(e={});var n=this.em,r=n.Selectors,o=n.Parser.parserCss.checkNode({selectors:t})[0],i=r.get(o.selectors),a=o.state,s=o.selectorsAdd,l=e.atRuleType,c=e.atRuleParams;return i?this.get(i,a,c,{selectorsAdd:s,atRuleType:l}):void 0},e.prototype.getRules=function(t){var e=this.getAll();if(!t)return function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],e.models,!0);var n={sort:!0},r=(0,i.isString)(t)?t.split(",").map((function(t){return t.trim()})):t;return e.filter((function(t){return r.indexOf(t.getSelectors().getFullString(null,n))>=0}))},e.prototype.setIdRule=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=n.addOpts,o=void 0===r?{}:r,a=n.mediaText,s=n.state||"",l=(0,i.isUndefined)(a)?this.em.getCurrentMedia():a,c=this.em.Selectors.add({name:t,type:We.TYPE_ID},o),u=this.add(c,s,l,{},o);return u.setStyle(e,fa(fa({},n),o)),u},e.prototype.getIdRule=function(t,e){void 0===e&&(e={});var n=e.mediaText,r=e.state||"",o=(0,i.isUndefined)(n)?this.em.getCurrentMedia():n,a=this.em.Selectors.get(t,We.TYPE_ID);return a&&this.get(a,r,o)},e.prototype.setClassRule=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=n.state||"",o=n.mediaText||this.em.getCurrentMedia(),i=this.em.Selectors.add({name:t,type:We.TYPE_CLASS}),a=this.add(i,r,o);return a.setStyle(e,n),a},e.prototype.getClassRule=function(t,e){void 0===e&&(e={});var n=e.state||"",r=e.mediaText||this.em.getCurrentMedia(),o=this.em.Selectors.get(t,We.TYPE_CLASS);return o&&this.get(o,n,r)},e.prototype.remove=function(t,e){var n=(0,i.isString)(t)?this.getRules(t):t,r=this.getAll().remove(n,e);return(0,i.isArray)(r)?r:[r]},e.prototype.clear=function(t){return void 0===t&&(t={}),this.getAll().reset([],t),this},e.prototype.getComponentRules=function(t,e){void 0===e&&(e={});var n=e.state,r=e.mediaText;e.current&&(n=this.em.get("state")||"",r=this.em.getCurrentMedia());var o=t.getId();return this.getAll().filter((function(t){return!(!(0,i.isUndefined)(n)&&t.get("state")!==n||!(0,i.isUndefined)(r)&&t.get("mediaText")!==r||t.getSelectorsString()!=="#".concat(o))}))},e.prototype.render=function(){var t;return null===(t=this.rulesView)||void 0===t||t.remove(),this.rulesView=new St({collection:this.rules,config:this.config}),this.rulesView.render().el},e.prototype.checkId=function(t,e){void 0===e&&(e={});var n=e.idMap,r=void 0===n?{}:n,o=[];return Object.keys(r).length?((Array.isArray(t)?t:[t]).forEach((function(t){var e=t.selectors;if(e&&1==e.length){var n=e[0];if((0,i.isString)(n)){if("#"===n[0]){var a=n.substring(1),s=r[a];a&&s&&(e[0]="#".concat(s),o.push(t))}}else n.name&&n.type===We.TYPE_ID&&(s=r[n.name])&&(n.name=s,o.push(t))}})),o):o},e.prototype.destroy=function(){var t;this.rules.reset(),this.rules.stopListening(),null===(t=this.rulesView)||void 0===t||t.remove()},e}(w);const ga=ha;var ma=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const va=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ma(e,t),e.prototype.defaults=function(){return{label:"",content:"",media:"",category:"",activate:!1,select:void 0,resetId:!1,disable:!1,onClick:void 0,attributes:{},dragDef:{}}},Object.defineProperty(e.prototype,"category",{get:function(){var t=this.get("category");return t instanceof Qe?t:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this.collection},enumerable:!1,configurable:!0}),e.prototype.getId=function(){return this.id},e.prototype.getLabel=function(){return this.get("label")},e.prototype.getMedia=function(){return this.get("media")},e.prototype.getContent=function(){return this.get("content")},e.prototype.getDragDef=function(){return this.get("dragDef")},e.prototype.getCategoryLabel=function(){var t=this.get("category");return(0,i.isFunction)(null==t?void 0:t.get)?t.get("label"):(null==t?void 0:t.label)?null==t?void 0:t.label:t},e}(d.Kx);var ya=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ba=function(t){function e(e,n){var r=t.call(this,e)||this;return r.em=n.em,r.on("add",r.handleAdd),r}return ya(e,t),e.prototype.getCategories=function(){return this.em.Blocks.getCategories()},e.prototype.handleAdd=function(t){this.initCategory(t)},e}(nn);const _a=ba;var wa;ba.prototype.model=va,function(t){t.add="block:add",t.remove="block:remove",t.removeBefore="block:remove:before",t.update="block:update",t.dragStart="block:drag:start",t.drag="block:drag",t.dragEnd="block:drag:stop",t.categoryUpdate="block:category:update",t.custom="block:custom",t.all="block"}(wa||(wa={}));var Ea=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xa=function(){return xa=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},xa.apply(this,arguments)},Ca=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this,e)||this,o=r.model;return r.em=n.em,r.config=n,r.endDrag=r.endDrag.bind(r),r.ppfx=n.pStylePrefix||"",r.listenTo(o,"destroy remove",r.remove),r.listenTo(o,"change",r.render),r}return Ea(e,t),e.prototype.events=function(){return{click:"handleClick",mousedown:"startDrag",dragstart:"handleDragStart",drag:"handleDrag",dragend:"handleDragEnd"}},e.prototype.__getModule=function(){return this.em.Blocks},e.prototype.handleClick=function(t){var e,n,r=this,o=r.config,a=r.model,s=r.em,l=a.get("onClick")||o.appendOnClick;if(s.trigger("block:click",a,t),l){if((0,i.isFunction)(l))return l(a,null==s?void 0:s.getEditor(),{event:t});var c=null===(e=o.getSorter)||void 0===e?void 0:e.call(o);if(c){var u,p,d=a.get("content"),f=null===(n=this.getTempDropModel(d).view)||void 0===n?void 0:n.el,h=f?[{element:f,dragSource:{content:d}}]:[],g=s.getSelected();if(g)if(c.validTarget(g.getEl(),h,0))u=g;else{var m=g.parent();m&&c.validTarget(m.getEl(),h,0)&&(u=m,p=m.components().indexOf(g)+1)}if(!u){var v=s.getWrapper();c.validTarget(v.getEl(),h,0)&&(u=v)}var y=u&&u.append(d,{at:p})[0];y&&s.setSelected(y,{scroll:1})}}},e.prototype.startDrag=function(t){var e,n=this,r=n.config,o=n.em,i=n.model,a=i.get("disable");if(0===t.button&&r.getSorter&&!this.el.draggable&&!a){o.refreshCanvas();var s=r.getSorter();s.__currentBlock=i;var l=this.model.get("content"),c=null===(e=this.getTempDropModel(l).view)||void 0===e?void 0:e.el,u=c?[{element:c,dragSource:{content:l}}]:[];s.startSort(u),(0,yt.on)(document,"mouseup",this.endDrag)}},e.prototype.handleDragStart=function(t){this.__getModule().__startDrag(this.model,t)},e.prototype.handleDrag=function(t){this.__getModule().__drag(t)},e.prototype.handleDragEnd=function(){this.__getModule().__endDrag()},e.prototype.endDrag=function(){var t,e;(0,yt.AU)(document,"mouseup",this.endDrag);var n=null===(e=(t=this.config).getSorter)||void 0===e?void 0:e.call(t);n&&n.endDrag()},e.prototype.getTempDropModel=function(t){var e,n=this.em.Components.getComponents(),r={avoidChildren:1,avoidStore:1,avoidUpdateStyle:1},o=n.add(t,xa(xa({},r),{temporary:!0})),i=n.remove(o,xa(xa({},r),{temporary:!0}));return null===(e=(i=i instanceof Array?i[0]:i).view)||void 0===e||e.$el.data("model",i),i},e.prototype.render=function(){var t,e=this,n=e.em,r=e.el,o=e.$el,i=e.ppfx,s=e.model,l=s.get("disable"),c=s.get("attributes")||{},u=c.class||"",p="".concat(i,"block"),d=n&&n.t("blockManager.labels.".concat(s.id))||s.get("label"),f=s.get("render"),h=s.get("media"),g=l?"".concat(p,"--disable"):"".concat(i,"four-color-h");o.attr(c),r.className="".concat(u," ").concat(p," ").concat(i,"one-bg ").concat(g).trim(),r.innerHTML="\n      ".concat(h?'<div class="'.concat(p,'__media">').concat(h,"</div>"):"",'\n      <div class="').concat(p,'-label">').concat(d,"</div>\n    "),r.title=c.title||(null===(t=r.textContent)||void 0===t?void 0:t.trim()),r.setAttribute("draggable","".concat(!(!(0,a.hasDnd)(n)||l)));var m=f&&f({el:r,model:s,className:p,prefix:i});return m&&(r.innerHTML=m),this},e}(d.Ss);const Ta=Ca;var Aa=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oa=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.config=n;var i=n.pStylePrefix||"";return o.em=n.em,o.catName=r,o.pfx=i,o.caretR="fa fa-caret-right",o.caretD="fa fa-caret-down",o.iconClass="".concat(i,"caret-icon"),o.activeClass="".concat(i,"open"),o.className="".concat(i).concat(r,"-category"),o.listenTo(o.model,"change:open",o.updateVisibility),o.model.view=o,o}return Aa(e,t),e.prototype.events=function(){return{"click [data-title]":"toggle"}},e.prototype.template=function(t){var e,n,r=t.pfx,o=t.label,i=t.catName;return s(ka||(e=['\n      <div class="','title" data-title>\n        <i class="','caret-icon"></i>\n        ','\n      </div>\n      <div class="',"",'s-c"></div>\n    '],n=['\n      <div class="','title" data-title>\n        <i class="','caret-icon"></i>\n        ','\n      </div>\n      <div class="',"",'s-c"></div>\n    '],Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,ka=e),r,r,o,r,i)},e.prototype.attributes=function(){return this.model.get("attributes")||{}},e.prototype.updateVisibility=function(){this.model.get("open")?this.open():this.close()},e.prototype.open=function(){this.$el.addClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretD),this.getTypeEl().style.display=""},e.prototype.close=function(){this.$el.removeClass(this.activeClass),this.getIconEl().className="".concat(this.iconClass," ").concat(this.caretR),this.getTypeEl().style.display="none"},e.prototype.toggle=function(){var t=this.model;t.set("open",!t.get("open"))},e.prototype.getIconEl=function(){return this.iconEl||(this.iconEl=this.el.querySelector(".".concat(this.iconClass))),this.iconEl},e.prototype.getTypeEl=function(){return this.typeEl||(this.typeEl=this.el.querySelector(".".concat(this.pfx).concat(this.catName,"s-c"))),this.typeEl},e.prototype.append=function(t){this.getTypeEl().appendChild(t)},e.prototype.render=function(){var t=this,e=t.em,n=t.el,r=t.$el,o=t.model,i=t.pfx,a=t.catName,s=e.t("".concat(a,"Manager.categories.").concat(o.id))||o.get("label");return n.innerHTML=this.template({pfx:i,label:s,catName:a}),r.addClass(this.className),r.css({order:o.get("order")}),this.updateVisibility(),this},e}(d.Ss);const Sa=Oa;var ka,Pa=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ja=function(){return ja=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ja.apply(this,arguments)},Na=function(t){function e(e,n){var r=t.call(this,e)||this;r.renderedCategories=new Map,(0,i.bindAll)(r,"getSorter","onDrag","onDrop","onMove"),r.config=n||{},r.categories=e.categories||"";var o=r.config.pStylePrefix||"";r.ppfx=o,r.noCatClass="".concat(o,"blocks-no-cat"),r.blockContClass="".concat(o,"blocks-c"),r.catsClass="".concat(o,"block-categories");var a=r.collection;return r.listenTo(a,"add",r.addTo),r.listenTo(a,"reset",r.render),r.em=r.config.em,r.em&&(r.config.getSorter=r.getSorter),r}return Pa(e,t),e.prototype.__getModule=function(){return this.em.Blocks},e.prototype.updateConfig=function(t){void 0===t&&(t={}),this.config=ja(ja({},this.config),t)},e.prototype.getSorter=function(){var t=this.em;if(t){if(!this.sorter){var e=t.Utils,n=t.Canvas;this.sorter=new e.ComponentSorter({em:t,treeClass:qn,containerContext:{container:n.getBody(),containerSel:"*",itemSel:"*",pfx:this.ppfx,placeholderElement:n.getPlacerEl(),document:n.getBody().ownerDocument},dragBehavior:{dragDirection:Fn.A.BothDirections,nested:!0},positionOptions:{windowMargin:1,canvasRelative:!0},eventHandlers:{legacyOnStartSort:this.onDrag,legacyOnEndMove:this.onDrop,legacyOnMoveClb:this.onMove}})}return this.sorter}},e.prototype.onDrag=function(t){this.em.stopDefault(),this.__getModule().__startDrag(this.sorter.__currentBlock,t)},e.prototype.onMove=function(t){this.__getModule().__drag(t)},e.prototype.onDrop=function(t){this.em.runDefault(),this.__getModule().__endDrag({component:t}),delete this.sorter.__currentBlock},e.prototype.addTo=function(t){this.add(t)},e.prototype.add=function(t,e){var n=this.config,r=this.renderedCategories,o=t.get("attributes"),i=new Ta({model:t,attributes:o},n).render().el,a=t.parent.initCategory(t);if(a&&this.categories&&!n.ignoreCategories){var s=a.getId(),l=this.getCategoriesEl(),c=r.get(s);return!c&&l&&(c=new Sa({model:a},n,"block").render(),r.set(s,c),l.appendChild(c.el)),void(null==c||c.append(i))}e?e.appendChild(i):this.append(i)},e.prototype.getCategoriesEl=function(){return this.catsEl||(this.catsEl=this.el.querySelector(".".concat(this.catsClass))),this.catsEl},e.prototype.getBlocksEl=function(){return this.blocksEl||(this.blocksEl=this.el.querySelector(".".concat(this.noCatClass," .").concat(this.blockContClass))),this.blocksEl},e.prototype.append=function(t){var e=this.getBlocksEl();e&&e.appendChild(t)},e.prototype.render=function(){var t=this,e=this.ppfx,n=document.createDocumentFragment();delete this.catsEl,delete this.blocksEl,this.renderedCategories=new Map,this.el.innerHTML='\n      <div class="'.concat(this.catsClass,'"></div>\n      <div class="').concat(this.noCatClass,'">\n        <div class="').concat(this.blockContClass,'"></div>\n      </div>\n    '),this.collection.each((function(e){return t.add(e,n)})),this.append(n);var r="".concat(this.blockContClass,"s ").concat(e,"one-bg ").concat(e,"two-color");return this.$el.addClass(r),this.rendered=!0,this},e}(d.Ss);const La=Na;var Da=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ia=function(){return Ia=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ia.apply(this,arguments)},Ra=function(t){function e(e){var n,r=t.call(this,e,"BlockManager",new _a((null===(n=e.config.blockManager)||void 0===n?void 0:n.blocks)||[],{em:e}),wa,{appendTo:"",blocks:[],appendOnClick:!1,custom:!1})||this;return r.events=wa,r.Block=va,r.Blocks=_a,r.Category=Qe,r.Categories=an,r.storageKey="",r.blocks=r.all,r.blocksVisible=new _a(r.blocks.models,{em:e}),r.categories=new an([],{em:e,events:{update:wa.categoryUpdate}}),r.blocks.on("add",(function(t){return r.blocksVisible.add(t)})),r.blocks.on("remove",(function(t){return r.blocksVisible.remove(t)})),r.blocks.on("reset",(function(t){return r.blocksVisible.reset(t.models)})),r.__onAllEvent=(0,i.debounce)((function(){return r.__trgCustom()}),0),r}return Da(e,t),e.prototype.__trgCustom=function(){this.em.trigger(this.events.custom,this.__customData())},e.prototype.__customData=function(){var t=this,e=this.__getBehaviour();return{bm:this,blocks:this.getAll().models,container:e.container,dragStart:function(e,n){return t.startDrag(e,n)},drag:function(e){return t.__drag(e)},dragStop:function(e){return t.endDrag(e)}}},e.prototype.__startDrag=function(t,e){var n=this,r=n.em,o=n.events,i=n.blocks,a=t.getContent?t.getContent():t;this._dragBlock=t,r.set({dragResult:null,dragSource:{content:a,dragDef:t.getDragDef()}}),[r,i].map((function(n){return n.trigger(o.dragStart,t,e)}))},e.prototype.__drag=function(t){var e=this,n=e.em,r=e.events,o=e.blocks,i=this._dragBlock;[n,o].map((function(e){return e.trigger(r.drag,i,t)}))},e.prototype.__endDrag=function(t){void 0===t&&(t={});var e=this,n=e.em,r=e.events,o=e.blocks,a=this._dragBlock,s=t.component||n.get("dragResult");if(delete this._dragBlock,s&&a){var l="activeOnRender",c=s.get&&s.get(l),u=a.get("activate")||c,p=a.get("select"),d=(0,i.isArray)(s)?s[0]:s;(p||u&&!1!==p)&&n.setSelected(d),u&&(d.trigger("active"),c&&d.unset(l)),a.get("resetId")&&d.onAll((function(t){return t.resetId()}))}n.set({dragResult:null,dragSource:void 0}),a&&[n,o].map((function(t){return t.trigger(r.dragEnd,s,a)}))},e.prototype.__getFrameViews=function(){return this.em.Canvas.getFrames().map((function(t){return t.view})).filter(Boolean)},e.prototype.__behaviour=function(t){return void 0===t&&(t={}),this._bhv=Ia(Ia({},this._bhv||{}),t)},e.prototype.__getBehaviour=function(){return this._bhv||{}},e.prototype.startDrag=function(t,e){this.__startDrag(t,e),this.__getFrameViews().forEach((function(t){var e;return null===(e=t.droppable)||void 0===e?void 0:e.startCustom()}))},e.prototype.endDrag=function(t){this.__getFrameViews().forEach((function(e){var n;return null===(n=e.droppable)||void 0===n?void 0:n.endCustom(t)})),this.__endDrag()},e.prototype.postRender=function(){var t=this,e=t.categories,n=t.config,r=t.em,o=this.blocksVisible;this.blocksView=new La({collection:o,categories:e},Ia(Ia({},n),{em:r})),this.__appendTo(o.models),this.__trgCustom()},e.prototype.add=function(t,e,n){void 0===n&&(n={});var r=e||{};return r.id=t,this.blocks.add(r,n)},e.prototype.get=function(t){return this.blocks.get(t)},e.prototype.getAll=function(){return this.blocks},e.prototype.getAllVisible=function(){return this.blocksVisible},e.prototype.remove=function(t,e){return void 0===e&&(e={}),this.__remove(t,e)},e.prototype.getCategories=function(){return this.categories},e.prototype.getContainer=function(){var t;return null===(t=this.blocksView)||void 0===t?void 0:t.el},e.prototype.getDragBlock=function(){return this._dragBlock},e.prototype.getBlocksByCategory=function(t){return Je(t||this.getAll().models)},e.prototype.render=function(t,e){void 0===e&&(e={});var n=this,r=n.categories,o=n.config,i=n.em,a=t||this.getAll().models;if(e.external){var s=new _a(a,{em:i});return new La({collection:s,categories:r},Ia(Ia({em:i},o),e)).render().el}return this.blocksView&&(this.blocksView.updateConfig(e),this.blocksView.collection.reset(a),this.blocksView.rendered||(this.blocksView.render(),this.blocksView.rendered=!0)),this.getContainer()},e.prototype.destroy=function(){var t,e=[this.blocks,this.blocksVisible,this.categories];e.map((function(t){return t.stopListening()})),e.map((function(t){return t.reset()})),null===(t=this.blocksView)||void 0===t||t.remove()},e}(w);const Ma=Ra;var Ba=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ba(e,t),e.prototype.defaults=function(){return{name:"",label:""}},e.prototype.getName=function(){return this.get("name")},e.prototype.getLabel=function(){return this.get("label")||this.getName()},e}(d.Kx);const Ua=Fa;Fa.prototype.idAttribute="name";var Ha=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Va="contentEditable",qa=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this,r=e.config||{};return n.config=r,n.module=e.module,n.coll=e.coll||null,n.pfx=r.stylePrefix||"",n.ppfx=r.pStylePrefix||"",n.em=r.em,n.listenTo(n.model,"change:active",n.updateStatus),n}return Ha(e,t),e.prototype.template=function(){var t,e,n=this,r=n.pfx,o=n.model,i=n.config,a=o.get("label")||"";return s(Wa||(t=['\n      <span id="','checkbox" class="','tag-status" data-tag-status></span>\n      <span id="','tag-label" data-tag-name>','</span>\n      <span id="','close" class="','tag-close" data-tag-remove> $'," </span>\n    "],e=['\n      <span id="','checkbox" class="','tag-status" data-tag-status></span>\n      <span id="','tag-label" data-tag-name>','</span>\n      <span id="','close" class="','tag-close" data-tag-remove> $'," </span>\n    "],Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,Wa=t),r,r,r,a,r,r,i.iconTagRemove)},e.prototype.events=function(){return{"click [data-tag-remove]":"removeTag","click [data-tag-status]":"changeStatus","dblclick [data-tag-name]":"startEditTag","focusout [data-tag-name]":"endEditTag"}},e.prototype.getInputEl=function(){return this.inputEl||(this.inputEl=this.el.querySelector("[data-tag-name]")),this.inputEl},e.prototype.startEditTag=function(){var t=this.em,e=this.getInputEl();e[Va]="true",e.focus(),null==t||t.setEditing(!0)},e.prototype.endEditTag=function(){var t=this.model,e=this.em,n=this.getInputEl(),r=n.textContent||"",o=null==e?void 0:e.Selectors;n[Va]="false",null==e||e.setEditing(!1),o&&o.rename(t,r)!==t&&(n.innerText=t.getLabel())},e.prototype.changeStatus=function(){var t=this.model;t.set("active",!t.getActive())},e.prototype.removeTag=function(){this.module.removeSelected(this.model)},e.prototype.updateStatus=function(){var t=this,e=t.model,n=t.$el,r=t.config,o=r.iconTagOn,i=r.iconTagOff,a=n.find("[data-tag-status]");e.get("active")?(a.html(o),n.removeClass("opac50")):(a.html(i),n.addClass("opac50"))},e.prototype.render=function(){var t=this,e=t.pfx,n=t.ppfx,r=t.$el,o=t.model,i="".concat(e,"tag"),a=["".concat(i," ").concat(n,"three-bg")];return o.get("protected")&&a.push("".concat(i,"-protected")),r.html(this.template()),r.attr("class",a.join(" ")),this.updateStatus(),this},e}(d.Ss);const za=qa;var Wa,Ga=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ya=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},Ka=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;n.config=e.config||{},n.pfx=n.config.stylePrefix||"",n.ppfx=n.config.pStylePrefix||"",n.className=n.pfx+"tags",n.stateInputId=n.pfx+"states",n.stateInputC=n.pfx+"input-c",n.states=n.config.states||[];var r=n.config.em,o=n.collection;n.target=r;var a=r.Selectors;n.module=a,n.em=r,n.componentChanged=(0,i.debounce)(n.componentChanged.bind(n),0),n.checkSync=(0,i.debounce)(n.checkSync.bind(n),0);var s=ct.I.update,l="".concat(s,":classes"),c="component:toggled ".concat(l),u="".concat(l," ").concat(s,":attributes:id change:state");return n.listenTo(r,c,n.componentChanged),n.listenTo(r,"styleManager:update",n.componentChanged),n.listenTo(r,u,n.__handleStateChange),n.listenTo(r,"styleable:change change:device",n.checkSync),n.listenTo(o,"add",n.addNew),n.listenTo(o,"reset",n.renderClasses),n.listenTo(o,"remove",n.tagRemoved),n.listenTo(a.getAll(),a.events.state,(0,i.debounce)((function(){return n.renderStates()}),0)),n.delegateEvents(),n}return Ga(e,t),e.prototype.template=function(t){var e=t.labelInfo,n=t.labelHead,r=t.iconSync,o=t.iconAdd,i=t.pfx,a=t.ppfx;return s(Xa||(Xa=Ya([' <div id="','up" class="','header">\n        <div id="','label" class="','header-label">','</div>\n        <div id="','status-c" class="','header-status">\n          <span id="','input-c" data-states-c>\n            <div class="',"field ",'select">\n              <span id="','input-holder">\n                <select id="','states" data-states></select>\n              </span>\n              <div class="','sel-arrow">\n                <div class="','d-s-arrow"></div>\n              </div>\n            </div>\n          </span>\n        </div>\n      </div>\n      <div id="','tags-field" class="','field">\n        <div id="','tags-c" data-selectors></div>\n        <input id="','new" data-input />\n        <span id="','add-tag" class="',"tags-btn ",'tags-btn__add" data-add> $',' </span>\n        <span class="',"tags-btn ",'tags-btn__sync" style="display: none" data-sync-style> $',' </span>\n      </div>\n      <div class="','sels-info">\n        <div class="','label-sel">',':</div>\n        <div class="','sels" data-selected></div>\n      </div>'],[' <div id="','up" class="','header">\n        <div id="','label" class="','header-label">','</div>\n        <div id="','status-c" class="','header-status">\n          <span id="','input-c" data-states-c>\n            <div class="',"field ",'select">\n              <span id="','input-holder">\n                <select id="','states" data-states></select>\n              </span>\n              <div class="','sel-arrow">\n                <div class="','d-s-arrow"></div>\n              </div>\n            </div>\n          </span>\n        </div>\n      </div>\n      <div id="','tags-field" class="','field">\n        <div id="','tags-c" data-selectors></div>\n        <input id="','new" data-input />\n        <span id="','add-tag" class="',"tags-btn ",'tags-btn__add" data-add> $',' </span>\n        <span class="',"tags-btn ",'tags-btn__sync" style="display: none" data-sync-style> $',' </span>\n      </div>\n      <div class="','sels-info">\n        <div class="','label-sel">',':</div>\n        <div class="','sels" data-selected></div>\n      </div>'])),i,i,i,i,n,i,i,i,a,a,a,i,a,a,i,a,i,i,i,i,i,o,i,i,r,i,i,e,i)},e.prototype.events=function(){return{"change [data-states]":"stateChanged","click [data-add]":"startNewTag","focusout [data-input]":"endNewTag","keyup [data-input]":"onInputKeyUp","click [data-sync-style]":"syncStyle"}},e.prototype.syncStyle=function(){var t,e=this.em,n=this.getTarget(),r=e.Css,o=this.getCommonSelectors({opts:{noDisabled:1}}),i=e.get("state"),a=e.getCurrentMedia(),s=[],l=r.get(o,i,a)||r.add(o,i,a);this.getTargets().forEach((function(e){var n=r.getIdRule(e.getId(),{state:i,mediaText:a});t=n.getStyle(),n.setStyle({}),s.push(n)})),t&&l.addStyle(t),e.trigger("component:toggled"),e.trigger("component:sync-style",{component:n,selectors:o,mediaText:a,rule:l,ruleComponents:s,state:i})},e.prototype.tagRemoved=function(t){this.updateStateVis()},e.prototype.addNew=function(t){this.addToClasses(t)},e.prototype.startNewTag=function(){var t,e;null===(t=this.$addBtn)||void 0===t||t.css({display:"none"}),null===(e=this.$input)||void 0===e||e.show().focus()},e.prototype.endNewTag=function(){var t,e;null===(t=this.$addBtn)||void 0===t||t.css({display:""}),null===(e=this.$input)||void 0===e||e.hide().val("")},e.prototype.onInputKeyUp=function(t){var e;13===t.keyCode?(t.preventDefault(),this.addNewTag(null===(e=this.$input)||void 0===e?void 0:e.val())):27===t.keyCode&&this.endNewTag()},e.prototype.checkStates=function(){var t=this.em.getState(),e=this.getStates();e&&e.val(t)},e.prototype.componentChanged=function(t){var e=(void 0===t?{}:t).targets;this.updateSelection(e)},e.prototype.updateSelection=function(t){var e=t||this.getTargets(),n=[];return(e=(0,i.isArray)(e)?e:[e])&&e.length&&(n=this.getCommonSelectors({targets:e}),this.checkSync({validSelectors:n})),this.collection.reset(n),this.updateStateVis(e),this.module.__trgCustom(),n},e.prototype.getCommonSelectors=function(t){var e=void 0===t?{}:t,n=e.targets,r=e.opts,o=void 0===r?{}:r,i=n||this.getTargets();return this.module.__getCommonSelectors(i,o)},e.prototype._commonSelectors=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this.module).__common.apply(t,e)},e.prototype.checkSync=function(){var t,e=this,n=e.$btnSyncEl,r=e.config,o=e.collection,a=this.getTarget();if(a&&r.componentFirst&&o.length){var s=a.getStyle();t=!(0,i.isEmpty)(s)}n&&n[t?"show":"hide"]()},e.prototype.getTarget=function(){return this.target.getSelected()},e.prototype.getTargets=function(){return this.target.getSelectedAll()},e.prototype.updateStateVis=function(t){var e=this.em,n=e&&e.getConfig().avoidInlineStyle,r=this.collection.length||n?"":"none";this.getStatesC().css("display",r),this.updateSelector(t)},e.prototype.__handleStateChange=function(){this.updateSelector(this.getTargets())},e.prototype.updateSelector=function(t){var e=this,n=this.el.querySelector("[data-selected]"),r=[],o=t||this.getTargets();(o=(0,i.isArray)(o)?o:[o]).forEach((function(t){return r.push(e.__getName(t))})),n&&(n.innerHTML=r.join(", ")),this.checkStates()},e.prototype.__getName=function(t){var e,n=this,r=n.pfx,o=n.config,a=n.em,l=o.selectedName,c=o.componentFirst;if((0,i.isString)(t))e=s(Za||(Za=Ya(['<span class="','sel-gen">',"</span>"],['<span class="','sel-gen">',"</span>"])),r,t);else{var u=null==t?void 0:t.getSelectors();if(!u)return"";var p=u.getStyleable(),d=a.get("state"),f=t.getId?s(Qa||(Qa=Ya(['<span class="','sel-cmp">','</span>\n            <span class="','sel-id">#',"</span>"],['<span class="','sel-cmp">','</span>\n            <span class="','sel-id">#',"</span>"])),r,t.getName(),r,t.getId()):"";e=(e=this.collection.getFullString(p))?s(Ja||(Ja=Ya(['<span class="','sel-rule">',"</span>"],['<span class="','sel-rule">',"</span>"])),r,e):t.get("selectorsAdd")||f,e=c&&f?f:e,e+=d?s(ts||(ts=Ya(['<span class="','sel-state">:',"</span>"],['<span class="','sel-state">:',"</span>"])),r,d):"",e=l?l({result:e,state:d,target:t}):e}return e&&'<span class="'.concat(r,'sel">').concat(e,"</span>")},e.prototype.stateChanged=function(t){var e=this.em,n=t.target.value;e.set("state",n)},e.prototype.addNewTag=function(t){var e=t.trim();e&&(this.module.addSelected({label:e}),this.endNewTag())},e.prototype.addToClasses=function(t,e){var n=e,r=this.getClasses(),o=new za({model:t,config:this.config,coll:this.collection,module:this.module}).render().el;return n?n.appendChild(o):r.append(o),o},e.prototype.renderClasses=function(){var t=this,e=document.createDocumentFragment(),n=this.getClasses();n.empty(),this.collection.each((function(n){return t.addToClasses(n,e)})),n.append(e)},e.prototype.getClasses=function(){return this.$el.find("[data-selectors]")},e.prototype.getStates=function(){if(!this.$states){var t=this.$el.find("[data-states]");this.$states=t[0]&&t}return this.$states},e.prototype.getStatesC=function(){return this.$statesC||(this.$statesC=this.$el.find("#"+this.stateInputC)),this.$statesC},e.prototype.renderStates=function(){var t=this.module,e=this.em,n=e.t("selectorManager.emptyState"),r=t.getStates().map((function(t){var n=e.t("selectorManager.states.".concat(t.id))||t.getLabel()||t.id;return'<option value="'.concat(t.id,'">').concat(n,"</option>")})).join(""),o=this.getStates();o&&o.html('<option value="">'.concat(n,"</option>").concat(r)),this.checkStates()},e.prototype.render=function(){var t=this,e=t.em,n=t.pfx,r=t.ppfx,o=t.config,i=t.$el,a=t.el,s=o.render,l={iconSync:o.iconSync,iconAdd:o.iconAdd,labelHead:e.t("selectorManager.label"),labelInfo:e.t("selectorManager.selected"),ppfx:r,pfx:n,el:a};i.html(this.template(l));var c=s&&s(l);return c&&c!==a&&i.empty().append(c),this.$input=i.find("[data-input]"),this.$addBtn=i.find("[data-add]"),this.$classes=i.find("#"+n+"tags-c"),this.$btnSyncEl=i.find("[data-sync-style]"),this.$input.hide(),this.renderStates(),this.renderClasses(),i.attr("class","".concat(this.className," ").concat(r,"one-bg ").concat(r,"two-color")),this},e}(d.Ss);const $a=Ka;var Xa,Za,Qa,Ja,ts,es=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ns=function(){return ns=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ns.apply(this,arguments)},rs=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},os=function(t){return(0,i.isString)(t)&&"#"==t[0]},is=function(t){return(0,i.isString)(t)&&"."==t[0]},as="selector",ss="".concat(as,":"),ls="".concat(ss,"add"),cs="".concat(ss,"update"),us="".concat(ss,"remove"),ps="".concat(us,":before"),ds="".concat(ss,"custom"),fs="".concat(ss,"state"),hs={all:as,update:cs,add:ls,remove:us,removeBefore:ps,state:fs,custom:ds},gs=function(t){function e(e){var n=t.call(this,e,"SelectorManager",new $e([]),hs,{stylePrefix:"clm-",appendTo:"",selectors:[],states:[{name:"hover"},{name:"active"},{name:"nth-of-type(2n)"}],iconAdd:'<svg viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"></path></svg>',iconSync:'<svg viewBox="0 0 24 24"><path d="M12 18c-3.31 0-6-2.69-6-6 0-1 .25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4m0-11V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12c0-4.42-3.58-8-8-8z"></path></svg>',iconTagOn:'<svg viewBox="0 0 24 24"><path d="M19 19H5V5h10V3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8h-2m-11.09-.92L6.5 11.5 11 16 21 6l-1.41-1.42L11 13.17l-3.09-3.09z"></path></svg>',iconTagOff:'<svg viewBox="0 0 24 24"><path d="M19 3H5c-1.11 0-2 .89-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5a2 2 0 0 0-2-2m0 2v14H5V5h14z"></path></svg>',iconTagRemove:'<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>',componentFirst:!1,custom:!1},{skipListen:!0})||this;n.Selector=We,n.Selectors=$e,n.storageKey="",(0,i.bindAll)(n,"__updateSelectedByComponents");var r=n.config,o=r.pStylePrefix;o&&(r.stylePrefix=o+r.stylePrefix),n.all=new $e(r.selectors),n.selected=new $e([],{em:e,config:r}),n.states=new d.pM(r.states.map((function(t){return new Ua(t)})),{model:Ua}),n.model=new d.Kx({cFirst:r.componentFirst,_undo:!0}),n.__update=(0,i.debounce)((function(){return n.__trgCustom()}),0),n.__initListen({collections:[n.states,n.selected],propagate:[{entity:n.states,event:n.events.state}]}),e.on("change:state",(function(t,n){return e.trigger(fs,n)})),n.model.on("change:cFirst",(function(t,n){return e.trigger("selector:type",n)}));var a="".concat(ct.I.update,":classes");e.on("component:toggled ".concat(a),n.__updateSelectedByComponents);var s="component:toggled ".concat(a," change:device styleManager:update selector:state selector:type style:target");return n.model.listenTo(e,s,(function(){return n.__update()})),n}return es(e,t),e.prototype.__trgCustom=function(t){this.em.trigger(this.events.custom,this.__customData(t))},e.prototype.getAll=function(t){return void 0===t&&(t={}),this.all?t.array?rs([],this.all.models,!0):this.all:[]},e.prototype.__customData=function(t){return void 0===t&&(t={}),this.__ctn=this.__ctn||t.container,{states:this.getStates(),selected:this.getSelected(),container:this.__ctn}},e.prototype.postRender=function(){this.__appendTo(),this.__trgCustom()},e.prototype.select=function(t,e){void 0===e&&(e={});var n=Array.isArray(t)?t:[t],r=this.em.Styles.select(n,e);this.selected.reset(this.__getCommonSelectors(r));var o=this.selectorTags,i=r.filter((function(t){return t})).map((function(t){return(0,a.isComponent)(t)||(0,a.isRule)(t)&&!t.get("selectorsAdd")?t:t.getSelectorsString()}));return o&&o.componentChanged({targets:i}),this},e.prototype.addSelector=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=ns({},e);(0,i.isObject)(t)?r=t:r.name=t,os(r.name)?(r.name=r.name.substr(1),r.type=We.TYPE_ID):is(r.name)&&(r.name=r.name.substr(1)),r.label&&!r.name&&(r.name=this.escapeName(r.label));var o=r.name,a=this.getConfig(),s=this.all,l=this.em,c=o?this.get(o,r.type):s.where(r)[0];if(!c){var u=r instanceof We?r:new We(r,ns(ns({},n),{config:a,em:l}));return s.add(u,n)}return c},e.prototype.getSelector=function(t,e){return void 0===e&&(e=We.TYPE_CLASS),os(t)?(t=t.substr(1),e=We.TYPE_ID):is(t)&&(t=t.substr(1)),this.all.where({name:t,type:e})[0]},e.prototype.add=function(t,e){var n=this;void 0===e&&(e={});var r=(0,i.isString)(t)?{}:e;return(0,i.isArray)(t)?t.map((function(t){return n.addSelector(t,e,r)})):this.addSelector(t,e,r)},e.prototype.addClass=function(t){var e=this,n=[];return(0,i.isString)(t)&&(t=t.trim().split(" ")),t.forEach((function(t){return n.push(e.addSelector(t))})),n},e.prototype.get=function(t,e){var n=this;if((0,i.isArray)(t)){var r=[];return t.map((function(t){return n.getSelector(t)})).filter(Boolean).forEach((function(t){return r.indexOf(t)<0&&r.push(t)})),r}return this.getSelector(t,e)},e.prototype.remove=function(t,e){return this.__remove(t,e)},e.prototype.rename=function(t,e,n){var r=this.escapeName(e);return this.get(r)||t.set({name:r,label:e},n)},e.prototype.setState=function(t){return this.em.setState(t),this},e.prototype.getState=function(){return this.em.getState()},e.prototype.getStates=function(){return rs([],this.states.models,!0)},e.prototype.setStates=function(t,e){return this.states.reset(t.map((function(t){return new Ua(t)})),e)},e.prototype.getSelected=function(){return this.__getCommon()},e.prototype.getSelectedAll=function(){return rs([],this.selected.models,!0)},e.prototype.addSelected=function(t){var e=this.add(t);this.em.getSelectedAll().forEach((function(t){t.getSelectors().add(e)}))},e.prototype.removeSelected=function(t){this.em.getSelectedAll().forEach((function(e){!t.get("protected")&&e&&e.getSelectors().remove(t)}))},e.prototype.duplicateSelected=function(t,e){var n=this;void 0===e&&(e={});var r=this.em,o=this.getSelected();if(!(o.indexOf(t)<0)){var i=this.getState(),a=r.getCurrentMedia(),s=r.Css.get(o,i,a),l=null==s?void 0:s.getStyle();r.getSelectedAll().forEach((function(r){var o=r.getSelectors();if(o.includes(t)){var i=e.suffix||" copy",a=t.getLabel(),s=n.addSelector("".concat(a).concat(i)),l=o.indexOf(t);o.remove(t),o.add(s,{at:l})}})),l&&r.Css.add(this.getSelected(),i,a).setStyle(l)}},e.prototype.getSelectedTargets=function(){return this.em.Styles.getSelectedAll()},e.prototype.setComponentFirst=function(t){this.getConfig().componentFirst=t,this.model.set({cFirst:t})},e.prototype.getComponentFirst=function(){return this.getConfig().componentFirst},e.prototype.escapeName=function(t){var e=this.getConfig().escapeName;return e?e(t):We.escapeName(t)},e.prototype.render=function(t){var e=this.selectorTags,n=this.getConfig(),r=null==e?void 0:e.el;return this.selected.reset(t),this.selectorTags=new $a({el:r,collection:this.selected,module:this,config:n}),this.selectorTags.render().el},e.prototype.destroy=function(){var t=this.selectorTags;this.model.stopListening(),this.__update.cancel(),this.__destroy(),null==t||t.remove(),this.selectorTags=void 0},e.prototype.__getCommon=function(){return this.__getCommonSelectors(this.em.getSelectedAll())},e.prototype.__getCommonSelectors=function(t,e){void 0===e&&(e={});var n=t.map((function(t){return t.getSelectors&&t.getSelectors().getValid(e)})).filter(Boolean);return this.__common.apply(this,n)},e.prototype.__common=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length?1===e.length?e[0]:2===e.length?e[0].filter((function(t){return e[1].indexOf(t)>=0})):e.slice(1).reduce((function(e,n){return t.__common(e,n)}),e[0]):[]},e.prototype.__updateSelectedByComponents=function(){this.selected.reset(this.__getCommon())},e}(w);const ms=gs;var vs,ys=((vs={})[4]="media",vs[5]="font-face",vs[6]="page",vs[7]="keyframes",vs[11]="counter-style",vs[12]="supports",vs[13]="document",vs[14]="font-feature-values",vs[15]="viewport",vs),bs=(0,i.keys)(ys),_s=[5,6,11,15],ws=bs.filter((function(t){return _s.indexOf(Number(t))<0})).map((function(t){return ys[t]})).concat(["container","layer"]),Es=_s.map((function(t){return ys[t]})),xs=function(t){void 0===t&&(t="");for(var e=[],n=[],r=t.split(","),o=0,i=r.length;o<i;o++){var a=r[o].trim();if(/^(\.{1}[\w\-]+)+(:{1,2}[\w\-()]+)?$/gi.test(a)||/^(#{1}[\w\-]+){1}(:{1,2}[\w\-()]+)?$/gi.test(a)){var s=a.split(".").filter(Boolean);n.push(s)}else e.push(a)}return{result:n,add:e}},Cs=function(t){for(var e=t.style,n={},r=0,o=e.length;r<o;r++){var i=e[r],a=e.getPropertyValue(i),s=e.getPropertyPriority(i);n[i]="".concat(a).concat(s?" !".concat(s):"")}return n},Ts=function(t){return(t.conditionText||t.media&&t.media.mediaText||t.name||t.selectorText||"").trim()},As=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r={},o=t.length,i=t[o-1],a=i?i.split(/:(.+)/):[],s=a[1],l=n.atRule,c=n.selectorsAdd,u=n.mediaText;return Es.indexOf(l)>=0&&(r.singleAtRule=!0),l&&(r.atRuleType=l),c&&(r.selectorsAdd=c),u&&(r.mediaText=u),s&&(t[o-1]=a[0],r.state=s,a.splice(a.length-1,1)),r.selectors=t,r.style=e,r},Os=function(t){var e=t.cssText,n=void 0===e?"":e;return ws.find((function(t){return 0===n.indexOf("@".concat(t))}))},Ss=function(t){for(var e=[],n=t.cssRules||[],r=0,o=n.length;r<o;r++){var i=n[r],a=i.type,s=!1,l="",c="",u=i.selectorText||i.keyText||"",p=_s.indexOf(a)>=0;if(p)s=!0,l=ys[a],c=Ts(i);else if(bs.indexOf("".concat(a))>=0||!a&&Os(i)){var d=Ss(i),f=ys[a]||Os(i);c=Ts(i);for(var h=0,g=d.length;h<g;h++){var m=d[h];c&&(m.mediaText=c),m.atRuleType=f}e=e.concat(d)}if(u||p){for(var v=Cs(i),y=xs(u),b=y.add,_=y.result,w=void 0,E=0,x=_.length;E<x;E++){var C=As(_[E],v,{atRule:ys[a]});e.push(C),w=C}if(b.length){var T=b.join(", ");w?w.selectorsAdd=T:(C={selectors:[],selectorsAdd:T,style:v},s&&(C.singleAtRule=s),l&&(C.atRuleType=l),c&&(C.mediaText=c),e.push(C))}}}return e};var ks=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ps=function(){return Ps=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ps.apply(this,arguments)},js=function(t){function e(e){var n=t.call(this,e,"Parser",{textTags:["br","b","i","u","a","ul","ol"],textTypes:["text","textnode","comment"],parserCss:void 0,parserHtml:void 0,optionsHtml:{htmlType:"text/html",allowScripts:!1,allowUnsafeAttr:!1,allowUnsafeAttrValue:!1,keepEmptyTextNodes:!1}})||this;n.events=kt;var r=n.config;return n.parserCss=function(t,e){return void 0===e&&(e={}),{parse:function(n,r){var o,i=this;void 0===r&&(r={});var a,s=[],l=e.parserCss,c=null==t?void 0:t.Editor,u=[];try{u=l?l(n,c):function(t){var e=document.createElement("style");e.innerHTML=t,document.head.appendChild(e);var n=e.sheet;return document.head.removeChild(e),n?Ss(n):[]}(n)}catch(t){if(a=t,r.throwOnError)throw t}return u.forEach((function(t){return s=s.concat(i.checkNode(t))})),null===(o=null==t?void 0:t.Parser)||void 0===o||o.__emitEvent(kt.css,{input:n,output:s,nodes:u,error:a}),s},checkNode:function(t){var e=t.selectors,n=t.style,r=[t];if((0,i.isString)(e)){var o=[],a=t,s=xs(e),l=s.result,c=s.add.join(", "),u={atRule:a.atRule,mediaText:a.params};l.length?l.forEach((function(t){o.push(As(t,n,u))})):o.push(As([],n,u)),c&&(o[o.length-1].selectorsAdd=c),r=o}return r}}}(e,r),n.parserHtml=Lt(e,r),n}return ks(e,t),e.prototype.parseHtml=function(t,e){void 0===e&&(e={});var n=this.em,r=this.parserHtml;return r.compTypes=n.Components.getTypes()||[],r.parse(t,this.parserCss,e)},e.prototype.parseCss=function(t){return this.parserCss.parse(t)},e.prototype.__emitEvent=function(t,e){var n=this.em,r=this.events;n.trigger(t,e),n.trigger(r.all,Ps({event:t},e))},e.prototype.destroy=function(){},e}(_);const Ns=js;var Ls=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},Ds=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};const Is=function(){function t(){}return t.prototype.store=function(t){return Ls(this,arguments,void 0,(function(t,e){return void 0===e&&(e={}),Ds(this,(function(n){return this.hasLocal(e,!0)&&localStorage.setItem(e.key,JSON.stringify(t)),[2,t]}))}))},t.prototype.load=function(){return Ls(this,arguments,void 0,(function(t){var e;return void 0===t&&(t={}),Ds(this,(function(n){return e={},this.hasLocal(t,!0)&&(e=JSON.parse(localStorage.getItem(t.key)||"{}")),[2,e]}))}))},t.prototype.hasLocal=function(t,e){if(void 0===t&&(t={}),t.checkLocal&&(!(0,a.hasWin)()||!localStorage)){if(e)throw new Error("localStorage not available");return!1}return!0},t}();function Rs(t){return Rs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rs(t)}function Ms(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}Ms.prototype=Error.prototype;var Bs=setTimeout;function Fs(t){return Boolean(t&&void 0!==t.length)}function Us(){}function Hs(t){if(!(this instanceof Hs))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],Ys(t,this)}function Vs(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,Hs._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void zs(e.promise,t)}qs(e.promise,r)}else(1===t._state?qs:zs)(e.promise,t._value)}))):t._deferreds.push(e)}function qs(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===Rs(e)||"function"==typeof e)){var n=e.then;if(e instanceof Hs)return t._state=3,t._value=e,void Ws(t);if("function"==typeof n)return void Ys((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,Ws(t)}catch(e){zs(t,e)}var r,o}function zs(t,e){t._state=2,t._value=e,Ws(t)}function Ws(t){2===t._state&&0===t._deferreds.length&&Hs._immediateFn((function(){t._handled||Hs._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)Vs(t,t._deferreds[e]);t._deferreds=null}function Gs(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function Ys(t,e){var n=!1;try{t((function(t){n||(n=!0,qs(e,t))}),(function(t){n||(n=!0,zs(e,t))}))}catch(t){if(n)return;n=!0,zs(e,t)}}Hs.prototype.catch=function(t){return this.then(null,t)},Hs.prototype.then=function(t,e){var n=new this.constructor(Us);return Vs(this,new Gs(t,e,n)),n},Hs.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))},Hs.all=function(t){return new Hs((function(e,n){if(!Fs(t))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,a){try{if(a&&("object"===Rs(a)||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){i(t,e)}),n)}r[t]=a,0==--o&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)i(a,r[a])}))},Hs.any=function(t){var e=this;return new e((function(n,r){if(!t||void 0===t.length)return r(new TypeError("Promise.any accepts an array"));var o=Array.prototype.slice.call(t);if(0===o.length)return r();for(var i=[],a=0;a<o.length;a++)try{e.resolve(o[a]).then(n).catch((function(t){i.push(t),i.length===o.length&&r(new Ms(i,"All promises were rejected"))}))}catch(t){r(t)}}))},Hs.allSettled=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(Rs(t)+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var o=r.length;function i(t,n){if(n&&("object"===Rs(n)||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(e){i(t,e)}),(function(n){r[t]={status:"rejected",reason:n},0==--o&&e(r)}))}r[t]={status:"fulfilled",value:n},0==--o&&e(r)}for(var a=0;a<r.length;a++)i(a,r[a])}))},Hs.resolve=function(t){return t&&"object"===Rs(t)&&t.constructor===Hs?t:new Hs((function(e){e(t)}))},Hs.reject=function(t){return new Hs((function(e,n){n(t)}))},Hs.race=function(t){return new Hs((function(e,n){if(!Fs(t))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=t.length;r<o;r++)Hs.resolve(t[r]).then(e,n)}))},Hs._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){Bs(t,0)},Hs._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};const Ks=Hs;(0,a.hasWin)()&&(window.Promise=window.Promise||Ks);const $s="function"==typeof fetch?fetch.bind():function(t,e){return new Ks((function(n,r){var o=new XMLHttpRequest;for(var i in o.open(e.method||"get",t),o.withCredentials="include"==e.credentials,e.headers||{})o.setRequestHeader(i,e.headers[i]);o.onload=function(t){return n({status:o.status,statusText:o.statusText,text:function(){return Ks.resolve(o.responseText)}})},o.onerror=r,o.upload&&e.onProgress&&(o.upload.onprogress=e.onProgress),e.body?o.send(e.body):o.send()}))};var Xs=function(){return Xs=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Xs.apply(this,arguments)},Zs=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},Qs=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},Js=function(){function t(){}return t.prototype.store=function(t){return Zs(this,arguments,void 0,(function(t,e){return void 0===e&&(e={}),Qs(this,(function(n){switch(n.label){case 0:return[4,this.request(e.urlStore,this.__props(e,t),e)];case 1:return[2,n.sent()]}}))}))},t.prototype.load=function(){return Zs(this,arguments,void 0,(function(t){return void 0===t&&(t={}),Qs(this,(function(e){switch(e.label){case 0:return[4,this.request(t.urlLoad,this.__props(t),t)];case 1:return[2,e.sent()]}}))}))},t.prototype.request=function(t,e,n){return void 0===e&&(e={}),void 0===n&&(n={}),$s(t,e).then((function(t){var e=t.text();return 1==(t.status/200|0)?e:e.then(Promise.reject)})).then((function(t){var e=t&&(0,i.isString)(t);return n.contentTypeJson&&e?JSON.parse(t):t}))},t.prototype.__props=function(t,e){void 0===t&&(t={});var n,r=t.contentTypeJson,o=t.headers||{},a=t.fetchOptions||{},s="X-Requested-With",l="Content-Type";if((0,i.isUndefined)(o[s])&&(o[s]="XMLHttpRequest"),(0,i.isUndefined)(o[l])&&r&&(o[l]="application/json; charset=utf-8"),e)if(r)n=JSON.stringify(e);else for(var c in n=new FormData,e)n.append(c,e[c]);var u={method:n?"POST":"GET",credentials:t.credentials,headers:o,body:n};return Xs(Xs({},u),(0,i.isFunction)(a)?a(u):a)},t}();const tl=Js;var el;!function(t){t.start="storage:start",t.startStore="storage:start:store",t.startLoad="storage:start:load",t.load="storage:load",t.store="storage:store",t.after="storage:after",t.afterStore="storage:after:store",t.afterLoad="storage:after:load",t.end="storage:end",t.endStore="storage:end:store",t.endLoad="storage:end:load",t.error="storage:error",t.errorStore="storage:error:store",t.errorLoad="storage:error:load"}(el||(el={}));const nl=el;var rl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ol=function(){return ol=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ol.apply(this,arguments)},il=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},al=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},sl="local",ll="remote",cl=function(t){function e(e){var n=t.call(this,e,"StorageManager",{id:"gjs-",type:"local",autosave:!0,autoload:!0,stepsBeforeSave:1,recovery:!1,onStore:function(t){return t},onLoad:function(t){return t},options:{local:{key:"gjsProject",checkLocal:!0},remote:{headers:{},urlStore:"",urlLoad:"",contentTypeJson:!0,fetchOptions:"",credentials:"include",onStore:function(t){return t},onLoad:function(t){return t}}}})||this;n.storages={},n.events=nl;var r=n.config;return r._disable&&(r.type=void 0),n.storages={},n.add(sl,new Is),n.add(ll,new tl),n.setCurrent(r.type),n}return rl(e,t),e.prototype.isAutosave=function(){return!!this.config.autosave},e.prototype.setAutosave=function(t){return this.config.autosave=!!t,this},e.prototype.getStepsBeforeSave=function(){return this.config.stepsBeforeSave},e.prototype.setStepsBeforeSave=function(t){return this.config.stepsBeforeSave=t,this},e.prototype.add=function(t,e){return this.storages[t]=e,this},e.prototype.get=function(t){return this.storages[t]},e.prototype.getStorages=function(){return this.storages},e.prototype.getCurrent=function(){return this.config.currentStorage},e.prototype.setCurrent=function(t){return this.getConfig().currentStorage=t,this},e.prototype.getCurrentStorage=function(){return this.get(this.getCurrent())},e.prototype.getStorageOptions=function(t){return this.getCurrentOptions(t)},e.prototype.store=function(t){return il(this,arguments,void 0,(function(t,e){var n,r,o,i,a;return void 0===e&&(e={}),al(this,(function(s){switch(s.label){case 0:n=this.getCurrentStorage(),r=ol(ol({},this.getCurrentOptions()),e),o=this.getRecoveryStorage(),i=this.getCurrentOptions(sl),s.label=1;case 1:return s.trys.push([1,5,,9]),[4,this.__exec(n,r,t)];case 2:return s.sent(),o?[4,this.__exec(o,i,{})]:[3,4];case 3:s.sent(),s.label=4;case 4:return[3,9];case 5:return a=s.sent(),o?[4,this.__exec(o,i,t)]:[3,7];case 6:return s.sent(),[3,8];case 7:throw a;case 8:return[3,9];case 9:return[2,t]}}))}))},e.prototype.load=function(){return il(this,arguments,void 0,(function(t){var e,n,r,o,a;return void 0===t&&(t={}),al(this,(function(s){switch(s.label){case 0:return e=this.getCurrentStorage(),n=ol(ol({},this.getCurrentOptions()),t),(r=this.getRecoveryStorage())?[4,this.__exec(r,this.getCurrentOptions(sl))]:[3,5];case 1:if(a=s.sent(),(0,i.isEmpty)(a))return[3,5];s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.__askRecovery()];case 3:return s.sent(),o=a,[3,5];case 4:return s.sent(),[3,5];case 5:return o?[3,7]:[4,this.__exec(e,n)];case 6:o=s.sent(),s.label=7;case 7:return[2,o||{}]}}))}))},e.prototype.__askRecovery=function(){var t=this.em,e=this.getRecovery();return new Promise((function(n,r){(0,i.isFunction)(e)?e(n,r,null==t?void 0:t.getEditor()):confirm(null==t?void 0:t.t("storageManager.recover"))?n(null):r()}))},e.prototype.getRecovery=function(){return this.config.recovery},e.prototype.getRecoveryStorage=function(){return this.getRecovery()&&this.getCurrent()===ll&&this.get(sl)},e.prototype.__exec=function(t,e,n){return il(this,void 0,void 0,(function(){var r,o,i,a,s,l,c,u,p,d,f,h,g,m;return al(this,(function(v){switch(v.label){case 0:if(r=n?"store":"load",o=this.getConfig(),i=o.onStore,a=o.onLoad,!t)return[2,n||{}];this.onStart(r,n),v.label=1;case 1:return v.trys.push([1,14,,15]),l=null===(m=this.em)||void 0===m?void 0:m.getEditor(),c=void 0,n?(p=i)?[4,i(n,l)]:[3,3]:[3,7];case 2:p=v.sent(),v.label=3;case 3:return u=p||n,(d=e.onStore)?[4,e.onStore(u,l)]:[3,5];case 4:d=v.sent(),v.label=5;case 5:return u=d||u,[4,t.store(u,e)];case 6:return c=v.sent(),s=n,[3,13];case 7:return[4,t.load(e)];case 8:return c=v.sent(),s=this.__clearKeys(c),(f=e.onLoad)?[4,e.onLoad(s,l)]:[3,10];case 9:f=v.sent(),v.label=10;case 10:return s=f||s,(h=a)?[4,a(s,l)]:[3,12];case 11:h=v.sent(),v.label=12;case 12:s=h||s,v.label=13;case 13:return this.onAfter(r,s,c),this.onEnd(r,s,c),[3,15];case 14:throw g=v.sent(),this.onError(r,g),g;case 15:return[2,s]}}))}))},e.prototype.__clearKeys=function(t){void 0===t&&(t={});var e=this.getConfig(),n=new RegExp("^".concat(e.id)),r={};for(var o in t)r[o.replace(n,"")]=t[o];return r},e.prototype.getCurrentOptions=function(t){var e=this.getConfig(),n=t||this.getCurrent();return e.options[n]||{}},e.prototype.onStart=function(t,e){var n=this.em;if(n){var r="load"===t?nl.startLoad:nl.startStore;n.trigger(nl.start,t,e),n.trigger(r,e)}},e.prototype.onAfter=function(t,e,n){var r=this.em;if(r){var o="load"===t?nl.afterLoad:nl.afterStore;r.trigger(nl.after),r.trigger(o,e,n);var i="load"===t?nl.load:nl.store;r.trigger(i,e,n)}},e.prototype.onEnd=function(t,e,n){var r=this.em;if(r){var o="load"===t?nl.endLoad:nl.endStore;r.trigger(nl.end,t,e,n),r.trigger(o,e,n)}},e.prototype.onError=function(t,e){var n=this.em;if(n){var r="load"===t?nl.errorLoad:nl.errorStore;n.trigger(nl.error,e,t),n.trigger(r,e),this.onEnd(t,e)}},e.prototype.canAutoload=function(){return!!this.getCurrentStorage()&&!!this.config.autoload},e.prototype.destroy=function(){this.storages={}},e}(_);const ul=cl;var pl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dl=function(){return dl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},dl.apply(this,arguments)},fl=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;n.events={},n.appendInput=!0;var r=e.config,o=void 0===r?{}:r,i=n,a=i.model,s=i.eventCapture,l=a.target,c=a.attributes.type;return n.config=o,n.em=o.em,n.pfx=o.stylePrefix||"",n.ppfx=o.pStylePrefix||"",n.target=l,n.className=n.pfx+"trait",n.clsField="".concat(n.ppfx,"field ").concat(n.ppfx,"field-").concat(c),[["change:value",n.onValueChange],["remove",n.removeView]].forEach((function(t){var e=t[0],r=t[1];a.off(e,r),n.listenTo(a,e,r)})),a.view=n,n.listenTo(a,"change:label",n.render),n.listenTo(a,"change:placeholder",n.rerender),n.events={},s.forEach((function(t){return n.events[t]="onChange"})),n.delegateEvents(),n.init(),n}return pl(e,t),e.prototype.attributes=function(){return this.model.get("attributes")||{}},e.prototype.templateLabel=function(t){var e=this.ppfx,n=this.getLabel();return'<div class="'.concat(e,'label" title="').concat(n,'">').concat(n,"</div>")},e.prototype.templateInput=function(t){var e=this.clsField;return'<div class="'.concat(e,'" data-input></div>')},e.prototype.getClbOpts=function(){return{component:this.target,trait:this.model,elInput:this.getInputElem()}},e.prototype.removeView=function(){this.remove(),this.removed()},e.prototype.init=function(){},e.prototype.removed=function(){},e.prototype.onRender=function(t){},e.prototype.onUpdate=function(t){},e.prototype.onEvent=function(t){},e.prototype.onChange=function(t){var e=this.getInputElem();e&&!(0,i.isUndefined)(e.value)&&this.model.set("value",e.value),this.onEvent(dl(dl({},this.getClbOpts()),{event:t}))},e.prototype.getValueForTarget=function(){return this.model.get("value")},e.prototype.setInputValue=function(t){var e=this.getInputElem();e&&(e.value=t)},e.prototype.onValueChange=function(t,e,n){void 0===n&&(n={});var r=this.model,o=this.getValueForTarget();n.fromTarget?(this.setInputValue(o),this.postUpdate()):r.setValue(o,n)},e.prototype.renderLabel=function(){var t=this.$el,e=this.target,n=this.getLabel(),r=this.templateLabel(e);this.createLabel&&(r=this.createLabel({label:n,component:e,trait:this})||""),t.find("[data-label]").append(r)},e.prototype.getLabel=function(){var t=this.em,e=this.model.attributes,n=e.label,r=e.name;return t.t("traitManager.traits.labels.".concat(r))||(0,a.capitalize)(n||r).replace(/-/g," ")},e.prototype.getComponent=function(){return this.target},e.prototype.getInputEl=function(){if(!this.$input){var t=this.em,e=this.model,n=e,r=e.attributes.name,o=n.get("placeholder")||n.get("default")||"",a=n.get("type")||"text",s=n.get("min"),l=n.get("max"),c=this.getModelValue(),u=(0,p.default)('<input type="'.concat(a,'">')),d=t.t("traitManager.traits.attributes.".concat(r))||{};u.attr(dl({placeholder:o},d)),(0,i.isUndefined)(c)||(n.set({value:c},{silent:!0}),u.prop("value",c)),s&&u.prop("min",s),l&&u.prop("max",l),this.$input=u}return this.$input.get(0)},e.prototype.getInputElem=function(){var t=this.input,e=this.$input;return t||e&&e.get&&e.get(0)||this.getElInput()},e.prototype.getModelValue=function(){return this.model.getValue()},e.prototype.getElInput=function(){return this.elInput},e.prototype.renderField=function(){var t=this,e=t.$el,n=t.appendInput,r=t.model,o=e.find("[data-input]"),a=o[o.length-1],s=r.el;s||(s=this.createInput?this.createInput(this.getClbOpts()):this.getInputEl()),(0,i.isString)(s)?(a.innerHTML=s,this.elInput=a.firstChild):(n?a.appendChild(s):a.insertBefore(s,a.firstChild),this.elInput=s),r.el=this.elInput},e.prototype.hasLabel=function(){var t=this.model.attributes.label;return!this.noLabel&&!1!==t},e.prototype.rerender=function(){delete this.model.el,this.render()},e.prototype.postUpdate=function(){this.onUpdate(this.getClbOpts())},e.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,r=t.ppfx,o=t.model.attributes,a=o.type,s=o.id,l=this.hasLabel&&this.hasLabel(),c="".concat(n,"trait");delete this.$input;var u='<div class="'.concat(c," ").concat(c,"--").concat(a,'">\n      ').concat(l?'<div class="'.concat(r,'label-wrp" data-label></div>'):"",'\n      <div class="').concat(r,"field-wrp ").concat(r,"field-wrp--").concat(a,'" data-input>\n        ').concat(this.templateInput?(0,i.isFunction)(this.templateInput)?this.templateInput(this.getClbOpts()):this.templateInput:"","\n      </div>\n    </div>");return e.empty().append(u),l&&this.renderLabel(),this.renderField(),this.el.className="".concat(c,"__wrp ").concat(c,"__wrp-").concat(s),this.postUpdate(),this.onRender(this.getClbOpts()),this},e}(d.Ss);const hl=fl;fl.prototype.eventCapture=["change"];var gl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ml=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gl(e,t),e.prototype.templateInput=function(){return""},e.prototype.onChange=function(){this.handleClick()},e.prototype.handleClick=function(){this.model.runCommand()},e.prototype.renderLabel=function(){this.model.get("label")&&hl.prototype.renderLabel.apply(this)},e.prototype.getInputEl=function(){var t=this.model,e=this.ppfx,n=t.props(),r=n.labelButton,o=n.text,i=n.full,a=r||o,s="".concat(e,"btn");return'<button type="button" class="'.concat(s,"-prim").concat(i?" ".concat(s,"--full"):"",'">').concat(a,"</button>")},e}(hl);const vl=ml;ml.prototype.eventCapture=["click button"];var yl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const bl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.appendInput=!1,e}return yl(e,t),e.prototype.templateInput=function(){var t=this.ppfx,e=this.clsField;return'<label class="'.concat(e,'" data-input>\n    <i class="').concat(t,'chk-icon"></i>\n  </label>')},e.prototype.onChange=function(){this.model.set("value",this.getInputElem().checked)},e.prototype.setInputValue=function(t){var e=this.getInputElem();e&&(e.checked=!!t)},e.prototype.getInputEl=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=!this.$input,r=hl.prototype.getInputEl.apply(this,t);if(n){var o=void 0,a=void 0,s=this.model,l=this.target,c=s.attributes.valueFalse,u=s.getName();s.changeProp?a=o=l.get(u):o=!(!(a=l.get("attributes")[u])&&""!==a),(0,i.isUndefined)(c)||a!==c||(o=!1),r.checked=o}return r},e}(hl);var _l=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wl=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this,r=e.ppfx||"";return n.opts=e,n.ppfx=r,n.em=e.target||{},!e.onChange&&n.listenTo(n.model,"change:value",n.handleModelChange),n}return _l(e,t),e.prototype.template=function(){return'<span class="'.concat(this.holderClass(),'"></span>')},e.prototype.inputClass=function(){return"".concat(this.ppfx,"field")},e.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},e.prototype.elementUpdated=function(){this.model.trigger("el:change")},e.prototype.setValue=function(t,e){var n=this.model,r=t||n.get("defaults"),o=this.getInputEl();o&&(o.value=r)},e.prototype.handleModelChange=function(t,e,n){this.setValue(e,n)},e.prototype.handleChange=function(t){t.stopPropagation();var e=this.getInputEl().value;this.__onInputChange(e),this.elementUpdated()},e.prototype.__onInputChange=function(t){this.model.set({value:t},{fromInput:1})},e.prototype.getInputEl=function(){if(!this.inputEl){var t=this.model,e=this.opts.type||"text",n=t.get("placeholder")||t.get("defaults")||t.get("default")||"";this.inputEl=(0,p.default)('<input type="'.concat(e,'" placeholder="').concat(n,'">'))}return this.inputEl.get(0)},e.prototype.render=function(){this.inputEl=null;var t=this.$el;return t.addClass(this.inputClass()),t.html(this.template()),t.find(".".concat(this.holderClass())).append(this.getInputEl()),this},e}(d.Ss);const El=wl;wl.prototype.events={change:"handleChange"};var xl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cl=function(){return Cl=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Cl.apply(this,arguments)};p.default&&function(t,e){if((0,a.hasWin)()){var n={beforeShow:A,move:A,change:A,show:A,hide:A,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,offset:null},r=[],o=!!/msie/i.exec(window.navigator.userAgent),i=function(){function t(t,e){return!!~(""+t).indexOf(e)}var e=document.createElement("div").style;return e.cssText="background-color:rgba(0,0,0,.5)",t(e.backgroundColor,"rgba")||t(e.backgroundColor,"hsla")}(),s=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),l=function(){var t="";if(o)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}(),c="spectrum.id";t.fn.spectrum=function(a,u){if("string"==typeof a){var p=this,d=Array.prototype.slice.call(arguments,1);return this.each((function(){var e=r[t(this).data(c)];if(e){var n=e[a];if(!n)throw new Error("Spectrum: no such method: '"+a+"'");"get"==a?p=e.get():"container"==a?p=e.container:"option"==a?p=e.option.apply(e,d):"destroy"==a?(e.destroy(),t(this).removeData(c)):n.apply(e,d)}})),p}return this.spectrum("destroy").each((function(){var u=function(a,c){var u,p,d,f,h=function(e,r){var o=t.extend({},n,e);return o.callbacks={move:S(o.move,r),change:S(o.change,r),show:S(o.show,r),hide:S(o.hide,r),beforeShow:S(o.beforeShow,r)},o}(c,a),g=h.flat,m=h.showSelectionPalette,v=h.localStorageKey,b=h.theme,_=h.callbacks,w=(u=Wt,p=10,function(){var t=this,e=arguments,n=function(){f=null,u.apply(t,e)};d&&clearTimeout(f),!d&&f||(f=setTimeout(n,p))}),E=!1,x=!1,C=!0,A=0,j=0,N=0,L=0,D=0,I=0,R=0,M=0,B=0,F=0,U=1,H=[],V=[],q={},z=h.selectionPalette.slice(0),W=h.maxSelectionSize,G="sp-dragging",Y=null,K=a.ownerDocument,$=(K.body,t(a)),X=!1,Z=t(l,K).addClass(b),Q=Z.find(".sp-picker-container"),J=Z.find(".sp-color"),tt=Z.find(".sp-dragger"),et=Z.find(".sp-hue"),nt=Z.find(".sp-slider"),rt=Z.find(".sp-alpha-inner"),ot=Z.find(".sp-alpha"),it=Z.find(".sp-alpha-handle"),at=Z.find(".sp-input"),st=Z.find(".sp-palette"),lt=Z.find(".sp-initial"),ct=Z.find(".sp-cancel"),ut=Z.find(".sp-clear"),pt=Z.find(".sp-choose"),dt=Z.find(".sp-palette-toggle"),ft=$.is("input"),ht=ft&&"color"===$.attr("type")&&P(),gt=ft&&!g,mt=gt?t(s).addClass(b).addClass(h.className).addClass(h.replacerClassName):t([]),vt=gt?mt:$,yt=mt.find(".sp-preview-inner"),bt=h.color||ft&&$.val(),_t=!1,wt=h.preferredFormat,Et=!h.showButtons||h.clickoutFiresChange,xt=!bt,Ct=h.allowEmpty&&!ht;function Tt(){if(h.showPaletteOnly&&(h.showPalette=!0),dt.text(h.showPaletteOnly?h.togglePaletteMoreText:h.togglePaletteLessText),h.palette){H=h.palette.slice(0),V=t.isArray(H[0])?H:[H],q={};for(var e=0;e<V.length;e++)for(var n=0;n<V[e].length;n++){var r=y(V[e][n]).toRgbString();q[r]=!0}}Z.toggleClass("sp-flat",g),Z.toggleClass("sp-input-disabled",!h.showInput),Z.toggleClass("sp-alpha-enabled",h.showAlpha),Z.toggleClass("sp-clear-enabled",Ct),Z.toggleClass("sp-buttons-disabled",!h.showButtons),Z.toggleClass("sp-palette-buttons-disabled",!h.togglePaletteOnly),Z.toggleClass("sp-palette-disabled",!h.showPalette),Z.toggleClass("sp-palette-only",h.showPaletteOnly),Z.toggleClass("sp-initial-disabled",!h.showInitial),Z.addClass(h.className).addClass(h.containerClassName),Wt()}function At(){if(v&&window.localStorage){try{var e=window.localStorage[v].split(",#");e.length>1&&(delete window.localStorage[v],t.each(e,(function(t,e){Ot(e)})))}catch(t){}try{z=window.localStorage[v].split(";")}catch(t){}}}function Ot(e){if(m){var n=y(e).toRgbString();if(!q[n]&&-1===t.inArray(n,z))for(z.push(n);z.length>W;)z.shift();if(v&&window.localStorage)try{window.localStorage[v]=z.join(";")}catch(t){}}}function St(){var e=Ut(),n=t.map(V,(function(t,n){return T(t,e,"sp-palette-row sp-palette-row-"+n,h)}));At(),z&&n.push(T(function(){var t=[];if(h.showPalette)for(var e=0;e<z.length;e++){var n=y(z[e]).toRgbString();q[n]||t.push(z[e])}return t.reverse().slice(0,h.maxSelectionSize)}(),e,"sp-palette-row sp-palette-row-selection",h)),st.html(n.join(""))}function kt(){if(h.showInitial){var t=_t,e=Ut();lt.html(T([t,e],e,"sp-palette-row-initial",h))}}function Pt(){(j<=0||A<=0||L<=0)&&Wt(),x=!0,Z.addClass(G),Y=null,$.trigger("dragstart.spectrum",[Ut()])}function jt(){x=!1,Z.removeClass(G),$.trigger("dragstop.spectrum",[Ut()])}function Nt(){var t=at.val();if(null!==t&&""!==t||!Ct){var e=y(t);e.isValid()?(Ft(e),zt(!0)):at.addClass("sp-validation-error")}else Ft(null),zt(!0)}function Lt(){E?Mt():Dt()}function Dt(){var e=t.Event("beforeShow.spectrum");if(E)Wt();else if($.trigger("beforeShow.spectrum",[Ut()]),!1!==_.beforeShow(Ut())&&!e.isDefaultPrevented()){!function(){for(var t=0;t<r.length;t++)r[t]&&r[t].hide()}(),E=!0;var n=t(K);n.bind("keydown.spectrum",It),n.bind("click.spectrum",Rt),t(window).bind("resize.spectrum",w),mt.addClass("sp-active"),Z.removeClass("sp-hidden"),Wt(),Vt(),_t=Ut(),kt(),_.show(_t),$.trigger("show.spectrum",[_t])}}function It(t){27===t.keyCode&&Mt()}function Rt(t){2!=t.button&&(x||(Et?zt(!0):Bt(),Mt()))}function Mt(){E&&!g&&(E=!1,t(K).unbind("keydown.spectrum",It),t(K).unbind("click.spectrum",Rt),t(window).unbind("resize.spectrum",w),mt.removeClass("sp-active"),Z.addClass("sp-hidden"),_.hide(Ut()),$.trigger("hide.spectrum",[Ut()]))}function Bt(){Ft(_t,!0)}function Ft(t,e){var n,r;y.equals(t,Ut())?Vt():(!t&&Ct?xt=!0:(xt=!1,C=!t,r=(n=y(t)).toHsv(),M=r.h%360/360,B=r.s,F=r.v,U=r.a),Vt(),n&&n.isValid()&&!e&&(wt=h.preferredFormat||n.getFormat()))}function Ut(t){return t=t||{},Ct&&xt?null:y.fromRatio({h:M,s:B,v:F,a:Math.round(100*U)/100},{format:t.format||wt})}function Ht(){Vt(),_.move(Ut()),$.trigger("move.spectrum",[Ut()])}function Vt(){at.removeClass("sp-validation-error"),qt();var t=y.fromRatio({h:M,s:1,v:1});J.css("background-color",t.toHexString());var e=wt;U<1&&(0!==U||"name"!==e)&&("hex"!==e&&"hex3"!==e&&"hex6"!==e&&"name"!==e||(e="rgb"));var n=Ut({format:e}),r="";if(yt.removeClass("sp-clear-display"),yt.css("background-color","transparent"),!n&&Ct)yt.addClass("sp-clear-display");else{var a=n.toHexString(),s=n.toRgbString();if(i||1===n.alpha?yt.css("background-color",s):(yt.css("background-color","transparent"),yt.css("filter",n.toFilter())),h.showAlpha){var l=n.toRgb();l.a=0;var c=y(l).toRgbString(),u="linear-gradient(left, "+c+", "+a+")";o?rt.css("filter",y(c).toFilter({gradientType:1},a)):(rt.css("background","-webkit-"+u),rt.css("background","-moz-"+u),rt.css("background","-ms-"+u),rt.css("background","linear-gradient(to right, "+c+", "+a+")"))}r=n.toString(e)}h.showInput&&at.val(r),h.showPalette&&St(),kt()}function qt(){var t=B,e=F;if(Ct&&xt)it.hide(),nt.hide(),tt.hide();else{it.show(),nt.show(),tt.show();var n=t*A,r=j-e*j;n=Math.max(-N,Math.min(A-N,n-N)),r=Math.max(-N,Math.min(j-N,r-N)),tt.css({top:r+"px",left:n+"px"});var o=U*D;it.css({left:o-I/2+"px"});var i=M*L;nt.css({top:i-R+"px"})}}function zt(t){var e=Ut(),n="",r=!!C||!y.equals(e,_t);e&&(n=e.toString(wt),!E&&Ot(e)),ft&&$.val(n),t&&r&&(_.change(e),$.trigger("change",[e]))}function Wt(){E&&(A=J.width(),j=J.height(),N=tt.height(),et.width(),L=et.height(),R=nt.height(),D=ot.width(),I=it.width(),g||(Z.css("position","absolute"),h.offset?Z.offset(h.offset):Z.offset(function(t,e){for(var n=e[0],r=t[0],o=r.parentElement,i=n.getBoundingClientRect(),a=r.offsetWidth,s=r.offsetHeight,l={top:0,left:0,width:n.offsetWidth,height:n.offsetHeight};n&&(l.top+=n.offsetTop-n.scrollTop,l.left+=n.offsetLeft-n.scrollLeft,n!==o&&o.contains(n.offsetParent));)n=n.offsetParent;return i.right+a>window.innerWidth-window.scrollX&&i.right-a>0&&(l.left-=a-l.width),i.bottom+s<window.innerHeight-window.scrollY?l.top+=l.height:l.top-=s,l}(Z,vt))),qt(),h.showPalette&&St(),$.trigger("reflow.spectrum"))}function Gt(){Mt(),X=!0,$.attr("disabled",!0),vt.addClass("sp-disabled")}!function(){if(o&&Z.find("*:not(input)").attr("unselectable","on"),Tt(),gt&&$.after(mt).hide(),Ct||ut.hide(),g)$.after(Z).hide();else{var e="parent"===h.appendTo?$.parent():t(h.appendTo);1!==e.length&&(e=t("body")),e.append(Z)}function n(e){return e.data&&e.data.ignore?(Ft(t(e.target).closest(".sp-thumb-el").data("color")),Ht()):(Ft(t(e.target).closest(".sp-thumb-el").data("color")),Ht(),h.hideAfterPaletteSelect&&(zt(!0),Mt())),!1}At(),vt.bind("click.spectrum touchstart.spectrum",(function(e){X||Lt(),e.stopPropagation(),t(e.target).is("input")||e.preventDefault()})),($.is(":disabled")||!0===h.disabled)&&Gt(),Z.click(O),at.change(Nt),at.bind("paste",(function(){setTimeout(Nt,1)})),at.keydown((function(t){13==t.keyCode&&Nt()})),ct.text(h.cancelText),ct.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),Bt(),Mt()})),ut.attr("title",h.clearText),ut.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),xt=!0,Ht(),g&&zt(!0)})),pt.text(h.chooseText),pt.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),o&&at.is(":focus")&&at.trigger("change"),at.hasClass("sp-validation-error")||(zt(!0),Mt())})),dt.text(h.showPaletteOnly?h.togglePaletteMoreText:h.togglePaletteLessText),dt.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),h.showPaletteOnly=!h.showPaletteOnly,h.showPaletteOnly||g||Z.css("left","-="+(Q.outerWidth(!0)+5)),Tt()})),k(ot,(function(t,e,n){U=t/D,xt=!1,n.shiftKey&&(U=Math.round(10*U)/10),Ht()}),Pt,jt),k(et,(function(t,e){M=parseFloat(e/L),xt=!1,h.showAlpha||(U=1),Ht()}),Pt,jt),k(J,(function(t,e,n){if(n.shiftKey){if(!Y){var r=B*A,o=j-F*j,i=Math.abs(t-r)>Math.abs(e-o);Y=i?"x":"y"}}else Y=null;var a=!Y||"y"===Y;(!Y||"x"===Y)&&(B=parseFloat(t/A)),a&&(F=parseFloat((j-e)/j)),xt=!1,h.showAlpha||(U=1),Ht()}),Pt,jt),bt?(Ft(bt),Vt(),wt=h.preferredFormat||y(bt).getFormat(),Ot(bt)):Vt(),g&&Dt();var r=o?"mousedown.spectrum":"click.spectrum touchstart.spectrum";st.delegate(".sp-thumb-el",r,n),lt.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},n)}();var Yt={show:Dt,hide:Mt,toggle:Lt,reflow:Wt,option:function(n,r){return n===e?t.extend({},h):r===e?h[n]:(h[n]=r,"preferredFormat"===n&&(wt=h.preferredFormat),void Tt())},enable:function(){X=!1,$.attr("disabled",!1),vt.removeClass("sp-disabled")},disable:Gt,offset:function(t){h.offset=t,Wt()},set:function(t){Ft(t),zt()},get:Ut,destroy:function(){$.show(),vt.unbind("click.spectrum touchstart.spectrum"),Z.remove(),mt.remove(),r[Yt.id]=null},container:Z};return Yt.id=r.push(Yt)-1,Yt}(this,t.extend({},a,t(this).data()));t(this).data(c,u.id)}))},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=k,t.fn.spectrum.defaults=n,t.fn.spectrum.inputTypeColorSupport=function e(){if(void 0===e._cachedResult){var n=t("<input type='color'/>")[0];e._cachedResult="color"===n.type&&""!==n.value}return e._cachedResult},t.spectrum={},t.spectrum.localization={},t.spectrum.palettes={},t.fn.spectrum.processNativeColorInputs=function(){var e=t("input[type=color]");e.length&&!P()&&e.spectrum({preferredFormat:"hex6"})};var u=/^[\s,#]+/,p=/\s+$/,d=0,f=Math,h=f.round,g=f.min,m=f.max,v=f.random,y=function(t,e){if(e=e||{},(t=t||"")instanceof y)return t;if(!(this instanceof y))return new y(t,e);var n=function(t){var e,n,r,o={r:0,g:0,b:0},i=1,a=!1,s=!1;return"string"==typeof t&&(t=function(t){t=t.replace(u,"").replace(p,"").toLowerCase();var e,n,r=!1;if(E[t])t=E[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=C.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=C.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=C.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=C.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=C.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=C.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=C.hex8.exec(t))?{a:(n=e[1],Z(n)/255),r:Z(e[2]),g:Z(e[3]),b:Z(e[4]),format:r?"name":"hex8"}:(e=C.hex6.exec(t))?{r:Z(e[1]),g:Z(e[2]),b:Z(e[3]),format:r?"name":"hex"}:!!(e=C.hex3.exec(t))&&{r:Z(e[1]+""+e[1]),g:Z(e[2]+""+e[2]),b:Z(e[3]+""+e[3]),format:r?"name":"hex"}}(t)),"object"==typeof t&&(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")?(e=t.r,n=t.g,r=t.b,o={r:255*$(e,255),g:255*$(n,255),b:255*$(r,255)},a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")?(t.s=J(t.s),t.v=J(t.v),o=function(t,e,n){t=6*$(t,360),e=$(e,100),n=$(n,100);var r=f.floor(t),o=t-r,i=n*(1-e),a=n*(1-o*e),s=n*(1-(1-o)*e),l=r%6;return{r:255*[n,a,i,i,s,n][l],g:255*[s,n,n,a,i,i][l],b:255*[i,i,s,n,n,a][l]}}(t.h,t.s,t.v),a=!0,s="hsv"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")&&(t.s=J(t.s),t.l=J(t.l),o=function(t,e,n){var r,o,i;function a(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}if(t=$(t,360),e=$(e,100),n=$(n,100),0===e)r=o=i=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;r=a(l,s,t+1/3),o=a(l,s,t),i=a(l,s,t-1/3)}return{r:255*r,g:255*o,b:255*i}}(t.h,t.s,t.l),a=!0,s="hsl"),t.hasOwnProperty("a")&&(i=t.a)),i=K(i),{ok:a,format:t.format||s,r:g(255,m(o.r,0)),g:g(255,m(o.g,0)),b:g(255,m(o.b,0)),a:i}}(t);this._originalInput=t,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=h(100*this._a)/100,this._format=e.format||n.format,this._gradientType=e.gradientType,this._r<1&&(this._r=h(this._r)),this._g<1&&(this._g=h(this._g)),this._b<1&&(this._b=h(this._b)),this._ok=n.ok,this._tc_id=d++};y.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},setAlpha:function(t){return this._a=K(t),this._roundA=h(100*this._a)/100,this},toHsv:function(){var t=N(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=N(this._r,this._g,this._b),e=h(360*t.h),n=h(100*t.s),r=h(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=j(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=j(this._r,this._g,this._b),e=h(360*t.h),n=h(100*t.s),r=h(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+r+"%)":"hsla("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return L(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return D(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:h(this._r),g:h(this._g),b:h(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+h(this._r)+", "+h(this._g)+", "+h(this._b)+")":"rgba("+h(this._r)+", "+h(this._g)+", "+h(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:h(100*$(this._r,255))+"%",g:h(100*$(this._g,255))+"%",b:h(100*$(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+h(100*$(this._r,255))+"%, "+h(100*$(this._g,255))+"%, "+h(100*$(this._b,255))+"%)":"rgba("+h(100*$(this._r,255))+"%, "+h(100*$(this._g,255))+"%, "+h(100*$(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(x[L(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+D(this._r,this._g,this._b,this._a),n=e,r=this._gradientType?"GradientType = 1, ":"";return t&&(n=y(t).toHex8String()),"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+e+",endColorstr="+n+")"},toString:function(t){var e=!!t;t=t||this._format;var n=!1,r=this._a<1&&this._a>=0;return e||!r||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"name"!==t?("rgb"===t&&(n=this.toRgbString()),"prgb"===t&&(n=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(n=this.toHexString()),"hex3"===t&&(n=this.toHexString(!0)),"hex8"===t&&(n=this.toHex8String()),"name"===t&&(n=this.toName()),"hsl"===t&&(n=this.toHslString()),"hsv"===t&&(n=this.toHsvString()),n||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},_applyModification:function(t,e){var n=t.apply(null,[this].concat([].slice.call(e)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(B,arguments)},brighten:function(){return this._applyModification(F,arguments)},darken:function(){return this._applyModification(U,arguments)},desaturate:function(){return this._applyModification(I,arguments)},saturate:function(){return this._applyModification(R,arguments)},greyscale:function(){return this._applyModification(M,arguments)},spin:function(){return this._applyModification(H,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(G,arguments)},complement:function(){return this._applyCombination(V,arguments)},monochromatic:function(){return this._applyCombination(Y,arguments)},splitcomplement:function(){return this._applyCombination(W,arguments)},triad:function(){return this._applyCombination(q,arguments)},tetrad:function(){return this._applyCombination(z,arguments)}},y.fromRatio=function(t,e){if("object"==typeof t){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:J(t[r]));t=n}return y(t,e)},y.equals=function(t,e){return!(!t||!e)&&y(t).toRgbString()==y(e).toRgbString()},y.random=function(){return y.fromRatio({r:v(),g:v(),b:v()})},y.mix=function(t,e,n){n=0===n?0:n||50;var r,o=y(t).toRgb(),i=y(e).toRgb(),a=n/100,s=2*a-1,l=i.a-o.a,c=1-(r=((r=s*l==-1?s:(s+l)/(1+s*l))+1)/2),u={r:i.r*r+o.r*c,g:i.g*r+o.g*c,b:i.b*r+o.b*c,a:i.a*a+o.a*(1-a)};return y(u)},y.readability=function(t,e){var n=y(t),r=y(e),o=n.toRgb(),i=r.toRgb(),a=n.getBrightness(),s=r.getBrightness(),l=Math.max(o.r,i.r)-Math.min(o.r,i.r)+Math.max(o.g,i.g)-Math.min(o.g,i.g)+Math.max(o.b,i.b)-Math.min(o.b,i.b);return{brightness:Math.abs(a-s),color:l}},y.isReadable=function(t,e){var n=y.readability(t,e);return n.brightness>125&&n.color>500},y.mostReadable=function(t,e){for(var n=null,r=0,o=!1,i=0;i<e.length;i++){var a=y.readability(t,e[i]),s=a.brightness>125&&a.color>500,l=a.brightness/125*3+a.color/500;(s&&!o||s&&o&&l>r||!s&&!o&&l>r)&&(o=s,r=l,n=y(e[i]))}return n};var b,_,w,E=y.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},x=y.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(E),C=(_="[\\s|\\(]+("+(b="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",w="[\\s|\\(]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")[,|\\s]+("+b+")\\s*\\)?",{rgb:new RegExp("rgb"+_),rgba:new RegExp("rgba"+w),hsl:new RegExp("hsl"+_),hsla:new RegExp("hsla"+w),hsv:new RegExp("hsv"+_),hsva:new RegExp("hsva"+w),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});window.tinycolor=y,t((function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()}))}function T(e,n,r,o){for(var a=[],s=0;s<e.length;s++){var l=e[s];if(l){var c=y(l),u=c.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";u+=y.equals(n,l)?" sp-thumb-active":"";var p=c.toString(o.preferredFormat||"rgb"),d=i?"background-color:"+c.toRgbString():"filter:"+c.toFilter();a.push('<span title="'+p+'" data-color="'+c.toRgbString()+'" class="'+u+'"><span class="sp-thumb-inner" style="'+d+';"></span></span>')}else a.push(t("<div />").append(t('<span data-color="" style="background-color:transparent;" class="sp-clear-display"></span>').attr("title",o.noColorSelectedText)).html())}return"<div class='sp-cf "+r+"'>"+a.join("")+"</div>"}function A(){}function O(t){t.stopPropagation()}function S(t,e){var n=Array.prototype.slice,r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}function k(e,n,r,i){n=n||function(){},r=r||function(){},i=i||function(){};var a=document,s=!1,l={},c=0,u=0,p="ontouchstart"in window,d={};function f(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function h(t){if(s){if(o&&a.documentMode<9&&!t.button)return g();var r=t&&t.touches&&t.touches[0],i=r&&r.pageX||t.pageX,d=r&&r.pageY||t.pageY,h=Math.max(0,Math.min(i-l.left,u)),m=Math.max(0,Math.min(d-l.top,c));p&&f(t),n.apply(e,[h,m,t])}}function g(){s&&(t(a).unbind(d),t(a.body).removeClass("sp-dragging"),setTimeout((function(){i.apply(e,arguments)}),0)),s=!1}d.selectstart=f,d.dragstart=f,d["touchmove mousemove"]=h,d["touchend mouseup"]=g,t(e).bind("touchstart mousedown",(function(n){(n.which?3==n.which:2==n.button)||s||!1!==r.apply(e,arguments)&&(s=!0,c=t(e).height(),u=t(e).width(),l=t(e).offset(),t(a).bind(d),t(a.body).addClass("sp-dragging"),h(n),f(n))}))}function P(){return t.fn.spectrum.inputTypeColorSupport()}function j(t,e,n){t=$(t,255),e=$(e,255),n=$(n,255);var r,o,i=m(t,e,n),a=g(t,e,n),s=(i+a)/2;if(i==a)r=o=0;else{var l=i-a;switch(o=s>.5?l/(2-i-a):l/(i+a),i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,l:s}}function N(t,e,n){t=$(t,255),e=$(e,255),n=$(n,255);var r,o,i=m(t,e,n),a=g(t,e,n),s=i,l=i-a;if(o=0===i?0:l/i,i==a)r=0;else{switch(i){case t:r=(e-n)/l+(e<n?6:0);break;case e:r=(n-t)/l+2;break;case n:r=(t-e)/l+4}r/=6}return{h:r,s:o,v:s}}function L(t,e,n,r){var o=[Q(h(t).toString(16)),Q(h(e).toString(16)),Q(h(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function D(t,e,n,r){var o;return[Q((o=r,Math.round(255*parseFloat(o)).toString(16))),Q(h(t).toString(16)),Q(h(e).toString(16)),Q(h(n).toString(16))].join("")}function I(t,e){e=0===e?0:e||10;var n=y(t).toHsl();return n.s-=e/100,n.s=X(n.s),y(n)}function R(t,e){e=0===e?0:e||10;var n=y(t).toHsl();return n.s+=e/100,n.s=X(n.s),y(n)}function M(t){return y(t).desaturate(100)}function B(t,e){e=0===e?0:e||10;var n=y(t).toHsl();return n.l+=e/100,n.l=X(n.l),y(n)}function F(t,e){e=0===e?0:e||10;var n=y(t).toRgb();return n.r=m(0,g(255,n.r-h(-e/100*255))),n.g=m(0,g(255,n.g-h(-e/100*255))),n.b=m(0,g(255,n.b-h(-e/100*255))),y(n)}function U(t,e){e=0===e?0:e||10;var n=y(t).toHsl();return n.l-=e/100,n.l=X(n.l),y(n)}function H(t,e){var n=y(t).toHsl(),r=(h(n.h)+e)%360;return n.h=r<0?360+r:r,y(n)}function V(t){var e=y(t).toHsl();return e.h=(e.h+180)%360,y(e)}function q(t){var e=y(t).toHsl(),n=e.h;return[y(t),y({h:(n+120)%360,s:e.s,l:e.l}),y({h:(n+240)%360,s:e.s,l:e.l})]}function z(t){var e=y(t).toHsl(),n=e.h;return[y(t),y({h:(n+90)%360,s:e.s,l:e.l}),y({h:(n+180)%360,s:e.s,l:e.l}),y({h:(n+270)%360,s:e.s,l:e.l})]}function W(t){var e=y(t).toHsl(),n=e.h;return[y(t),y({h:(n+72)%360,s:e.s,l:e.l}),y({h:(n+216)%360,s:e.s,l:e.l})]}function G(t,e,n){e=e||6,n=n||30;var r=y(t).toHsl(),o=360/n,i=[y(t)];for(r.h=(r.h-(o*e>>1)+720)%360;--e;)r.h=(r.h+o)%360,i.push(y(r));return i}function Y(t,e){e=e||6;for(var n=y(t).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/e;e--;)a.push(y({h:r,s:o,v:i})),i=(i+s)%1;return a}function K(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function $(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var n=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=g(e,m(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),f.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function X(t){return g(1,m(0,t))}function Z(t){return parseInt(t,16)}function Q(t){return 1==t.length?"0"+t:""+t}function J(t){return t<=1&&(t=100*t+"%"),t}}(p.default);var Tl=function(t){var e="name"===t.getFormat()&&t.toName(),n=1==t.getAlpha()?t.toHexString():t.toRgbString();return e||n.replace(/ /g,"")},Al=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xl(e,t),e.prototype.template=function(){var t=this.ppfx;return'\n      <div class="'.concat(this.holderClass(),'"></div>\n      <div class="').concat(t,'field-colorp">\n        <div class="').concat(t,'field-colorp-c" data-colorp-c>\n          <div class="').concat(t,'checker-bg"></div>\n        </div>\n      </div>\n    ')},e.prototype.inputClass=function(){var t=this.ppfx;return"".concat(t,"field ").concat(t,"field-color")},e.prototype.holderClass=function(){return"".concat(this.ppfx,"input-holder")},e.prototype.remove=function(){return t.prototype.remove.call(this),this.colorEl.spectrum("destroy"),this},e.prototype.handleChange=function(t){t.stopPropagation();var e=t.target.value;(0,i.isUndefined)(e)||this.__onInputChange(e)},e.prototype.__onInputChange=function(t){var e=this.model,n=this.opts.onChange,r=t,o=this.getColorEl();if(o){o.spectrum("set",r);var i=o.spectrum("get"),a=r&&Tl(i);a&&(r=a)}n?n(r):e.set({value:r},{fromInput:1})},e.prototype.setValue=function(t,e){void 0===e&&(e={});var n=this.model,r=(0,i.isUndefined)(e.def)?n.get("defaults"):e.def,o=(0,i.isUndefined)(t)?(0,i.isUndefined)(r)?"":r:t,a=this.getInputEl(),s=this.getColorEl(),l="none"!=o?o:"";a.value=o,s.get(0).style.backgroundColor=l,(e.fromTarget||e.fromInput&&!e.avoidStore)&&(s.spectrum("set",l),this.noneColor="none"==o,this.movedColor=l)},e.prototype.getColorEl=function(){var t=this;if(!this.colorEl){var e=this,n=e.em,r=e.model,o=e.opts,i=this.ppfx,a=o.onChange,s=(0,p.default)('<div class="'.concat(this.ppfx,'field-color-picker"></div>')),l=s.get(0).style,c=n&&n.getConfig&&n.getConfig().colorPicker||{};this.movedColor="";var u,d=!1;this.$el.find("[data-colorp-c]").append(s);var f=function(t,e){void 0===e&&(e=!0),a?a(t,!e):(e&&r.setValueFromInput(0,!1),r.setValueFromInput(t,e))};s.spectrum(Cl(Cl(Cl({color:r.getValue()||!1,containerClassName:"".concat(i,"one-bg ").concat(i,"two-color ").concat(i,"editor-sp"),maxSelectionSize:8,showPalette:!0,showAlpha:!0,chooseText:"Ok",cancelText:"⨯",palette:[]},c),r.get("colorPicker")||{}),{move:function(e){var n=Tl(e);t.movedColor=n,l.backgroundColor=n,f(n,!1)},change:function(e){d=!0;var n=Tl(e);l.backgroundColor=n,f(n),t.noneColor=!1},show:function(e){d=!1,t.movedColor="",u=a?r.getValue({noDefault:!0}):Tl(e)},hide:function(){d||!u&&!a||(t.noneColor&&(u=""),l.backgroundColor=u,s.spectrum("set",u),f(u,!1))}})),n&&n.on&&this.listenTo(n,"component:selected",(function(){t.movedColor&&f(t.movedColor),d=!0,t.movedColor="",s.spectrum("hide")})),this.colorEl=s}return this.colorEl},e.prototype.render=function(){return El.prototype.render.call(this),this.getColorEl(),this},e}(El);const Ol=Al;var Sl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const kl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Sl(e,t),e.prototype.templateInput=function(){return""},e.prototype.getInputEl=function(){if(!this.input){var t=this.model,e=this.getModelValue(),n=new Ol({model:t,target:this.config.em,contClass:this.ppfx+"field-color",ppfx:this.ppfx}).render();n.setValue(e,{fromTarget:1}),this.input=n.el}return this.input},e}(hl);var Pl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jl=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return(0,i.bindAll)(n,"moveIncrement","upIncrement"),n.doc=document,n.listenTo(n.model,"change:unit",n.handleModelChange),n}return Pl(e,t),e.prototype.template=function(){var t=this.ppfx;return'\n      <span class="'.concat(t,'input-holder"></span>\n      <span class="').concat(t,'field-units"></span>\n      <div class="').concat(t,'field-arrows" data-arrows>\n        <div class="').concat(t,'field-arrow-u" data-arrow-up></div>\n        <div class="').concat(t,'field-arrow-d" data-arrow-down></div>\n      </div>\n    ')},e.prototype.inputClass=function(){var t=this.ppfx;return this.opts.contClass||"".concat(t,"field ").concat(t,"field-integer")},e.prototype.setValue=function(t,e){var n=e||{},r=this.validateInputValue(t,{deepCheck:1}),o={value:r.value,unit:""};(r.unit||r.force)&&(o.unit=r.unit),this.model.set(o,n),n.silent&&this.handleModelChange()},e.prototype.handleChange=function(t){t.stopPropagation(),this.setValue(this.getInputEl().value),this.elementUpdated()},e.prototype.handleUnitChange=function(t){t.stopPropagation();var e=this.getUnitEl().value;this.model.set("unit",e),this.elementUpdated()},e.prototype.handleKeyDown=function(t){"ArrowUp"===t.key&&(t.preventDefault(),this.upArrowClick()),"ArrowDown"===t.key&&(t.preventDefault(),this.downArrowClick())},e.prototype.elementUpdated=function(){this.model.trigger("el:change")},e.prototype.handleModelChange=function(){var t=this.model;this.getInputEl().value=t.get("value");var e=this.getUnitEl();e&&(e.value=t.get("unit")||"")},e.prototype.getUnitEl=function(){if(!this.unitEl){var t=this.model,e=t.get("units")||[];if(e.length){var n=['<option value="" disabled hidden>-</option>'];e.forEach((function(e){var r=e==t.get("unit")?"selected":"";n.push("<option ".concat(r,">").concat(e,"</option>"))}));var r=document.createElement("div");r.innerHTML='<select class="'.concat(this.ppfx,'input-unit">').concat(n.join(""),"</select>"),this.unitEl=r.firstChild}}return this.unitEl},e.prototype.upArrowClick=function(){var t=this.model.get("step"),e=parseFloat(this.getInputEl().value);this.setValue(this.normalizeValue(e+t)),this.elementUpdated()},e.prototype.downArrowClick=function(){var t=this.model.get("step"),e=parseFloat(this.getInputEl().value);this.setValue(this.normalizeValue(e-t)),this.elementUpdated()},e.prototype.downIncrement=function(t){t.preventDefault(),this.moved=!1;var e=this.model.get("value")||0;e=this.normalizeValue(e),this.current={y:t.pageY,val:e},(0,yt.on)(this.doc,"mousemove",this.moveIncrement),(0,yt.on)(this.doc,"mouseup",this.upIncrement)},e.prototype.moveIncrement=function(t){this.moved=!0;var e=this.model,n=e.get("step"),r=this.current,o=this.normalizeValue(r.val+(r.y-t.pageY)*n),i=this.validateInputValue(o),a=i.value,s=i.unit;return this.prValue=a,e.set({value:a,unit:s},{avoidStore:1}),!1},e.prototype.upIncrement=function(){var t=this.model,e=t.get("step");if((0,yt.AU)(this.doc,"mouseup",this.upIncrement),(0,yt.AU)(this.doc,"mousemove",this.moveIncrement),this.prValue&&this.moved){var n=this.prValue-e;t.set("value",n,{avoidStore:1}).set("value",n+e),this.elementUpdated()}},e.prototype.normalizeValue=function(t,e){void 0===e&&(e=0);var n=this.model.get("step"),r=0;if(isNaN(t))return e;if(t=parseFloat(t),Math.floor(t)!==t){var o=n.toString().split(".")[1];r=o?o.length:0}return r?parseFloat(t.toFixed(r)):t},e.prototype.validateInputValue=function(t,e){void 0===e&&(e={});var n=0,r=e||{},o=this.model,a=(0,i.isUndefined)(t)?"":t,s=e.units||o.get("units")||[],l=o.get("unit")||s.length&&s[0]||"",c=(0,i.isUndefined)(e.max)?o.get("max"):e.max,u=(0,i.isUndefined)(e.min)?o.get("min"):e.min,p=!!o.get("limitlessMax"),d=!!o.get("limitlessMin");if(r.deepCheck){var f=o.get("fixedValues")||[];if(""===a&&(l=""),a){var h=new RegExp("^"+f.join("|"),"g");if(f.length&&h.test(a))a=a.match(h)[0],l="",n=1;else{var g=a+"";a+="",a=parseFloat(a.replace(",",".")),a=isNaN(a)?"":a;var m=g.replace(a,"");(0,i.indexOf)(s,m)>=0&&(l=m)}}}return p||(0,i.isUndefined)(c)||""===c||(a=a>c?c:a),d||(0,i.isUndefined)(u)||""===u||(a=a<u?u:a),{force:n,value:a,unit:l}},e.prototype.render=function(){El.prototype.render.call(this),this.unitEl=null;var t=this.getUnitEl();return t&&this.$el.find(".".concat(this.ppfx,"field-units")).get(0).appendChild(t),this},e}(El);const Nl=jl;jl.prototype.events={"change input":"handleChange","change select":"handleUnitChange","click [data-arrow-up]":"upArrowClick","click [data-arrow-down]":"downArrowClick","mousedown [data-arrows]":"downIncrement",keydown:"handleKeyDown"};var Ll=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ll(e,t),e.prototype.getValueForTarget=function(){var t=this.model,e=t.attributes,n=e.value,r=e.unit;return(0,i.isUndefined)(n)||""===n?t.get("default"):n+r},e.prototype.getInputEl=function(){if(!this.input){var t=this.ppfx,e=this.model,n=this.getModelValue(),r=new Nl({contClass:"".concat(t,"field-int"),type:"number",model:e,ppfx:t});r.render(),this.$input=r.inputEl,this.$unit=r.unitEl,e.set("value",n,{fromTarget:!0}),this.$input.val(n),this.input=r.el}return this.input},e}(hl);const Il=Dl;var Rl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ml=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.listenTo(n.model,"change:options",n.rerender),n}return Rl(e,t),e.prototype.templateInput=function(){var t=this.ppfx,e=this.clsField;return'<div class="'.concat(e,'">\n      <div data-input></div>\n      <div class="').concat(t,'sel-arrow">\n        <div class="').concat(t,'d-s-arrow"></div>\n      </div>\n    </div>')},e.prototype.getInputEl=function(){if(!this.$input){var t=this.model,e=this.em,n=t.get("name"),r=t.get("options")||[],o=[],a="<select>";r.forEach((function(t){var r,s,l,c="";(0,i.isString)(t)?(r=t,s=t):(r=t.name||t.label||t.value,s="".concat((0,i.isUndefined)(t.value)?t.id:t.value).replace(/"/g,"&quot;"),c+=(l=t.style?t.style.replace(/"/g,"&quot;"):"")?' style="'.concat(l,'"'):"");var u=e.t("traitManager.traits.options.".concat(n,".").concat(s))||r;a+='<option value="'.concat(s,'"').concat(c,">").concat(u,"</option>"),o.push(s)})),a+="</select>",this.$input=(0,p.default)(a);var s=t.getTargetValue(),l=o.indexOf(s)>=0?s:t.get("default");!(0,i.isUndefined)(l)&&this.$input.val(l)}return this.$input.get(0)},e}(hl);var Bl=r(91),Fl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ul="data-categories",Hl="data-no-categories",Vl=function(t){function e(e,n){var r=t.call(this,e)||this;r.reuseView=!0,r.renderedCategories=new Map,r.itemsView=n;var o=e.config||{};r.config=o;var i=e.editor;r.em=i;var a=o.pStylePrefix||"";return r.ppfx=a,r.pfx=a+o.stylePrefix||"",r.className="".concat(r.pfx,"traits"),r.traitContClass="".concat(a,"traits-c"),r.classNoCat="".concat(a,"traits-empty-c"),r.catsClass="".concat(a,"trait-categories"),r.collection=new mn([],{em:i}),r.listenTo(i,"component:toggled",r.updatedCollection),r.updatedCollection(),r}return Fl(e,t),e.prototype.updatedCollection=function(){var t=this.ppfx,e=this.em,n=e.getSelected();this.el.className="".concat(this.traitContClass,"s ").concat(t,"one-bg ").concat(t,"two-color"),this.collection=(null==n?void 0:n.traits)||new mn([],{em:e}),this.render()},e.prototype.add=function(t,e){var n=this.config,r=this.renderedCategories,o=this.itemView,i=t.get(this.itemType);this.itemsView&&this.itemsView[i]&&(o=this.itemsView[i]);var a=new o({config:n,model:t,attributes:t.get("attributes")}).render().el,s=t.parent.initCategory(t);if(s){var l=s.getId(),c=this.getCategoriesEl(),u=r.get(l);return!u&&c&&(u=new Sa({model:s},n,"trait").render(),r.set(l,u),c.appendChild(u.el)),void(null==u||u.append(a))}e?e.appendChild(a):this.append(a)},e.prototype.getCategoriesEl=function(){return this.catsEl||(this.catsEl=this.el.querySelector("[".concat(Ul,"]"))),this.catsEl},e.prototype.getTraitsEl=function(){return this.traitsEl||(this.traitsEl=this.el.querySelector("[".concat(Hl,"]"))),this.traitsEl},e.prototype.append=function(t){var e=this.getTraitsEl();null==e||e.appendChild(t)},e.prototype.render=function(){var t=this,e=this,n=e.el,r=e.ppfx,o=e.catsClass,i=e.traitContClass,a=e.classNoCat,s=document.createDocumentFragment();delete this.catsEl,delete this.traitsEl,this.renderedCategories=new Map,n.innerHTML='\n      <div class="'.concat(o,'" ').concat(Ul,'></div>\n      <div class="').concat(a," ").concat(i,'" ').concat(Hl,"></div>\n    "),this.collection.forEach((function(e){return t.add(e,s)})),this.append(s);var l="".concat(i,"s ").concat(r,"one-bg ").concat(r,"two-color");return this.$el.addClass(l),this.rendered=!0,this},e}(Bl.A);const ql=Vl;Vl.prototype.itemView=hl;var zl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wl=function(t){function e(e){var n=t.call(this,e,"TraitManager",{stylePrefix:"trt-",appendTo:"",optionsTarget:[{value:!1},{value:"_blank"}],custom:!1})||this;n.TraitsView=ql,n.events=sn,n.state=new d.Kx({traits:[]}),n.types={text:hl,number:Il,select:Ml,checkbox:bl,color:kl,button:vl};var r=n,o=r.state,a=r.config,s=r.events,l=a.pStylePrefix;l&&(a.stylePrefix="".concat(l).concat(a.stylePrefix)),(0,i.bindAll)(n,"__onSelect");var c=(0,i.debounce)((function(){return n.__upSel()}),0),u=(0,i.debounce)((function(){return n.__onUp()}),0);return o.listenTo(e,"component:toggled",c),o.listenTo(e,s.value,u),o.on("change:traits",n.__onSelect),n.debounced=[c,u],n}return zl(e,t),e.prototype.select=function(t){var e=(null==t?void 0:t.getTraits())||[];this.state.set({component:t,traits:e}),this.__trgCustom()},e.prototype.getCategories=function(){var t,e=this.getComponent();return function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],(null===(t=null==e?void 0:e.traits.categories)||void 0===t?void 0:t.models)||[],!0)},e.prototype.getTraits=function(){return this.getCurrent()},e.prototype.getTraitsByCategory=function(t){return Je(t||this.getTraits())},e.prototype.getComponent=function(){return this.state.attributes.component},e.prototype.addType=function(t,e){var n=this.getType("text");this.types[t]=n.extend(e)},e.prototype.getType=function(t){return this.getTypes()[t]},e.prototype.getTypes=function(){return this.types},e.prototype.getTraitsViewer=function(){return this.view},e.prototype.getCurrent=function(){return this.state.get("traits")||[]},e.prototype.render=function(){var t=this.view,e=this.em;return t=new ql({el:null==t?void 0:t.el,collection:[],editor:e,config:this.getConfig()},this.getTypes()),this.view=t,t.el},e.prototype.postRender=function(){this.__appendTo()},e.prototype.__onSelect=function(){var t=this,e=t.em,n=t.events,r=t.state.attributes,o=r.component,i=r.traits;e.trigger(n.select,{component:o,traits:i})},e.prototype.__trgCustom=function(t){void 0===t&&(t={});var e=this,n=e.em,r=e.events,o=e.__ctn;this.__ctn=o||t.container,n.trigger(r.custom,this.__customData())},e.prototype.__customData=function(){return{container:this.__ctn}},e.prototype.__upSel=function(){this.select(this.em.getSelected())},e.prototype.__onUp=function(){this.select(this.getComponent())},e}(_);const Gl=Wl;var Yl=r(3253),Kl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._dropAreaConfig={ratio:.4,minUndroppableDimension:3,maxUndroppableDimension:20},e}return Kl(e,t),Object.defineProperty(e.prototype,"view",{get:function(){return this.model.viewLayer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){var t;return null===(t=this.model.viewLayer)||void 0===t?void 0:t.el},enumerable:!1,configurable:!0}),e}(Yl.h);const Xl=$l;var Zl=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ql=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;n.items=[],n.opt=e;var r=e.config||{};n.config=r,n.module=e.module,n.parentView=e.parentView;var o=r.stylePrefix||"",i=(r.pStylePrefix,n.collection);n.listenTo(i,"add",n.addTo),n.listenTo(i,"reset resetNavigator",n.render),n.listenTo(i,"remove",n.removeChildren),n.className="".concat(o,"layers");var a=r.em;if(r.sortable&&!n.opt.sorter){var s=a.Utils,l=r.sortContainer||n.el,c=n.createPlaceholder(o);n.opt.sorter=new s.ComponentSorter({em:a,treeClass:Xl,containerContext:{container:l,containerSel:".".concat(n.className),itemSel:".".concat(o,"layer"),pfx:r.pStylePrefix,document,placeholderElement:c},dragBehavior:{dragDirection:Fn.A.Vertical,nested:!0}})}return n.$el.data("collection",i),e.parent&&n.$el.data("model",e.parent),n}return Zl(e,t),e.prototype.createPlaceholder=function(t){var e=document.createElement("div"),n=document.createElement("div");return this.el.parentNode,e.className=t+"placeholder",e.style.display="none",e.style.pointerEvents="none",n.className=t+"placeholder-int",e.appendChild(n),e},e.prototype.removeChildren=function(t){var e=t.viewLayer;e&&(e.remove(),delete t.viewLayer)},e.prototype.addTo=function(t){this.addToCollection(t,null,this.collection.indexOf(t))},e.prototype.addToCollection=function(t,e,n){var r=this,o=r.parentView,a=r.opt,s=r.config,l=r.el,c=a.ItemView,u=a.opened,p=a.module,d=a.level,f=a.sorter,h=t.viewLayer||new c({ItemView:c,level:d,model:t,parentView:o,config:s,sorter:f,opened:u,module:p}),g=h.render().el;if(e)e.appendChild(g);else{var m=l,v=m.childNodes;if((0,i.isUndefined)(n))m.appendChild(g);else{var y=v.length==n;y&&n--,y||!v.length?m.appendChild(g):m.insertBefore(g,v[n])}}return this.items.push(h),g},e.prototype.remove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return d.Ss.prototype.remove.apply(this,t),this.items.map((function(t){return t.remove()})),this},e.prototype.render=function(){var t=this,e=this.el,n=this.module,r=document.createDocumentFragment();return e.innerHTML="",this.collection.map((function(t){return n.__getLayerFromComponent(t)})).forEach((function(e){return t.addToCollection(e,r)})),e.appendChild(r),e.className=this.className,this},e}(d.Ss);const Jl=Ql;var tc=r(5301);var ec=r(8351),nc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rc=function(){return rc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},rc.apply(this,arguments)},oc=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},ic=[["preview","Preview","preview"],["resize","Resize","resize"],["fullscreen","Fullscreen","fullscreen"],["copy","CopyComponent"],["paste","PasteComponent"],["canvas-move","CanvasMove"],["canvas-clear","CanvasClear"],["open-code","ExportTemplate","export-template"],["open-layers","OpenLayers","open-layers"],["open-styles","OpenStyleManager","open-sm"],["open-traits","OpenTraitManager","open-tm"],["open-blocks","OpenBlocks","open-blocks"],["open-assets","OpenAssets","open-assets"],["component-select","SelectComponent","select-comp"],["component-outline","SwitchVisibility","sw-visibility"],["component-offset","ShowOffset","show-offset"],["component-move","MoveComponent","move-comp"],["component-next","ComponentNext"],["component-prev","ComponentPrev"],["component-enter","ComponentEnter"],["component-exit","ComponentExit","select-parent"],["component-delete","ComponentDelete"],["component-style-clear","ComponentStyleClear"],["component-drag","ComponentDrag"]],ac={preserveSelected:1},sc=function(t){return function(e){return t.trigger("".concat(Tn,":start"),e)}},lc=function(t){return function(e){return t.trigger(Tn,e)}},cc=function(t,e,n){return void 0===n&&(n={}),function(r,o,i){setTimeout((function(){e.forEach((function(t){return t.set("status",t.get("selectable")?"selected":"")})),t.setSelected(e),e[0].emitUpdate()})),t.trigger("".concat(Tn,":end"),i),setTimeout((function(){return t.runDefault(ac)})),(n.altMode||i.cancelled)&&t.set("_cmpDrag",1)}},uc=function(t){function e(e){var n=t.call(this,e,"Commands",{stylePrefix:"com-",defaults:{},strict:!0})||this;n.CommandAbstract=tc.default,n.defaultCommands={},n.commands={},n.active={},n.events=ec.A;var o=n.config,a=o.pStylePrefix,s=n.defaultCommands;for(var l in a&&(o.stylePrefix=a+o.stylePrefix),Object.keys(o.defaults).forEach((function(t){var e=o.defaults[t];e.id&&n.add(e.id,e)})),s["tlb-delete"]={run:function(t){return t.runCommand("core:component-delete")}},s["tlb-clone"]={run:function(t){t.runCommand("core:copy"),t.runCommand("core:paste",{action:"clone-component"})}},s["tlb-move"]={run:function(t,e,n){var r;void 0===n&&(n={});var o=t.getModel(),a=n.event,s=n.target,l=(Array.isArray(s)?s:s?[s]:oc([],t.getSelectedAll(),!0)).map((function(t){var e,n;return(null===(n=null===(e=t.delegate)||void 0===e?void 0:e.move)||void 0===n?void 0:n.call(e,t))||t})).filter(Boolean),c=l[l.length-1],u="dragstart"===(null==a?void 0:a.type);if(!(null==c?void 0:c.get("draggable")))return o.logWarning("The element is not draggable");var p=c.get("dmode")||o.get("dmode"),d=function(){return o.stopDefault(ac)},f=(0,i.includes)(["absolute","translate"],p);l.forEach((function(t){return t.trigger("disable",{fromMove:!0})})),u?setTimeout(d,0):d();var h=sc(o),g=lc(o),m=cc(o,l,{altMode:f});if(f)t.runCommand("core:component-drag",{guidesInfo:1,mode:p,target:c,onStart:h,onDrag:g,onEnd:m,event:a});else{u&&a.dataTransfer.setDragImage(null===(r=c.view)||void 0===r?void 0:r.el,0,0);var v=t.Commands.get("move-comp");v.onStart=h,v.onDrag=g,v.onEndMoveFromModel=m,v.initSorterFromModels(l)}l.filter((function(t){return t.get("selectable")})).forEach((function(t){return t.set("status","freezed-selected")}))}},s["core:undo"]=function(t){return t.UndoManager.undo()},s["core:redo"]=function(t){return t.UndoManager.redo()},ic.forEach((function(t){var n=t[2],o=r(585)("./".concat(t[1])).default,i="core:".concat(t[0]);s[i]=o,n&&(s[n]=o,["run","stop"].forEach((function(t){e.on("".concat(t,":").concat(n),(function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.trigger.apply(e,oc(["".concat(t,":").concat(i)],n,!1))}))})))})),o.model=e.Canvas,s)n.add(l,s[l]);return n}return nc(e,t),e.prototype.add=function(t,e){var n=(0,i.isFunction)(e)?{run:e}:e;return n.stop||(n.noStop=!0),delete n.initialize,n.id=t,this.commands[t]=tc.default.extend(n),this},e.prototype.get=function(t){var e=this.commands[t];return(0,i.isFunction)(e)?(e=new e(this.config),this.commands[t]=e):e||this.em.logWarning("'".concat(t,"' command not found")),e},e.prototype.extend=function(t,e){void 0===e&&(e={});var n=this.get(t);if(n){var r=rc(rc({},n.constructor.prototype),e);this.add(t,r);var o=ic.filter((function(e){return"core:".concat(e[0])===t&&e[2]}))[0];o&&this.add(o[2],r)}return this},e.prototype.has=function(t){return!!this.commands[t]},e.prototype.getAll=function(){return this.commands},e.prototype.run=function(t,e){return void 0===e&&(e={}),this.runCommand(this.get(t),e)},e.prototype.stop=function(t,e){return void 0===e&&(e={}),this.stopCommand(this.get(t),e)},e.prototype.isActive=function(t){return this.getActive().hasOwnProperty(t)},e.prototype.getActive=function(){return this.active},e.prototype.runCommand=function(t,e){var n;if(void 0===e&&(e={}),t&&t.run){var r=this.em,o=this.config,i=t.id,a=r.Editor;this.isActive(i)&&!e.force&&o.strict||(n=a&&t.callRun(a,e),i&&t.stop&&!t.noStop&&!e.abort&&(this.active[i]=n))}return n},e.prototype.stopCommand=function(t,e){var n;if(void 0===e&&(e={}),t&&t.run){var r=this.em,o=this.config,i=t.id,a=r.Editor;(this.isActive(i)||e.force||!o.strict)&&(i&&delete this.active[i],n=t.callStop(a,e))}return n},e.prototype.create=function(t){return t.stop||(t.noStop=!0),new(tc.default.extend(t))(this.config)},e.prototype.__onRun=function(t,e){var n=this.em,r=this.events;n.on("".concat(r.runCommand).concat(t),e)},e.prototype.__onStop=function(t,e){var n=this.em,r=this.events;n.on("".concat(r.stopCommand).concat(t),e)},e.prototype.destroy=function(){this.defaultCommands={},this.commands={},this.active={}},e}(_);const pc=uc;var dc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fc=function(){return fc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},fc.apply(this,arguments)},hc="contentEditable",gc="data-toggle-move",mc=function(t){function e(e){var n=t.call(this,e)||this;(0,i.bindAll)(n,"__render"),n.opt=e,n.module=e.module,n.config=e.config||{},n.sorter=e.sorter||"",n.parentView=e.parentView;var r=n,o=r.model,a=r.pfx,s=r.ppfx,l=o.get("type")||"default";return n.className="".concat(a,"layer ").concat(a,"layer__t-").concat(l," no-select ").concat(s,"two-color"),n.inputNameCls="".concat(s,"layer-name"),n.clsTitleC="".concat(a,"layer-title-c"),n.clsTitle="".concat(a,"layer-title"),n.clsCaret="".concat(a,"layer-caret"),n.clsCount="".concat(a,"layer-count"),n.clsMove="".concat(a,"layer-move"),n.clsChildren="".concat(a,"layer-children"),n.clsNoChild="".concat(a,"layer-no-chld"),n.clsEdit="".concat(n.inputNameCls,"--edit"),n.clsNoEdit="".concat(n.inputNameCls,"--no-edit"),n.initComponent(),n}return dc(e,t),e.prototype.events=function(){var t;return(t={})["mousedown [".concat(gc,"]")]="startSort",t["touchstart [".concat(gc,"]")]="startSort",t["click [data-toggle-visible]"]="toggleVisibility",t["click [data-toggle-open]"]="toggleOpening",t["click [data-toggle-select]"]="handleSelect",t["mouseover [data-toggle-select]"]="handleHover",t["mouseout [data-toggle-select]"]="handleHoverOut",t["dblclick [data-name]"]="handleEdit",t["keydown [data-name]"]="handleEditKey",t["focusout [data-name]"]="handleEditEnd",t},e.prototype.template=function(t){var e=this,n=e.pfx,r=e.ppfx,o=e.config,i=e.clsNoEdit,a=e.module,s=e.opt,l=e.em,c=o.hidable,u=a.getComponents(t).length,p=u?"":this.clsNoChild,d="".concat(this.clsTitle," ").concat(p),f="".concat(this.clsTitleC),h="".concat(this.inputNameCls," ").concat(i," ").concat(r,"no-app"),g=s.level||0,m="".concat(10*g,"px"),v=t.getName(),y=t.getIcon(),b="".concat(n,"layer"),_=(null==l?void 0:l.getConfig()).icons,w=_.move,E=_.eye,x=_.eyeOff,C=_.chevron;return'\n      <div class="'.concat(n,"layer-item ").concat(r,'one-bg" data-toggle-select>\n        <div class="').concat(n,'layer-item-left">\n          ').concat(c?'<i class="'.concat(n,'layer-vis" data-toggle-visible>\n                <i class="').concat(n,'layer-vis-on">').concat(E,'</i>\n                <i class="').concat(n,'layer-vis-off">').concat(x,"</i>\n              </i>"):"",'\n          <div class="').concat(f,'">\n            <div class="').concat(d,'" style="padding-left: ').concat(m,'">\n              <div class="').concat(n,'layer-title-inn" title="').concat(v,'">\n                <i class="').concat(this.clsCaret,'" data-toggle-open>').concat(C,"</i>\n                  ").concat(y?'<span class="'.concat(b,'__icon">').concat(y,"</span>"):"",'\n                <span class="').concat(h,'" data-name>').concat(v,'</span>\n              </div>\n            </div>\n          </div>\n        </div>\n        <div class="').concat(n,'layer-item-right">\n          <div class="').concat(this.clsCount,'" data-count>').concat(u||"",'</div>\n          <div class="').concat(this.clsMove,'" ').concat(gc,">").concat(w||"",'</div>\n        </div>\n      </div>\n      <div class="').concat(this.clsChildren,'"></div>\n    ')},Object.defineProperty(e.prototype,"em",{get:function(){return this.module.em},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ppfx",{get:function(){return this.em.getConfig().stylePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pfx",{get:function(){return this.config.stylePrefix},enumerable:!1,configurable:!0}),e.prototype.initComponent=function(){var t=this,e=this.model,n=this.config.onInit,r=e.components();this.listenTo(r,"remove add reset",this.checkChildren),[["change:status",this.updateStatus],["change:open",this.updateOpening],["change:layerable",this.updateLayerable],["change:style:display",this.updateVisibility],["change:draggable",this.updateMove],["rerender:layer",this.render],["change:name change:custom-name",this.updateName]].forEach((function(n){return t.listenTo(e,n[0],n[1])})),this.$el.data("model",e),this.$el.data("collection",r),e.viewLayer=this,n.bind(this)({component:e,render:this.__render,listenTo:this.listenTo})},e.prototype.updateName=function(){this.getInputName().innerText=this.model.getName()},e.prototype.getVisibilityEl=function(){return this.getItemContainer().find("[data-toggle-visible]")},e.prototype.updateVisibility=function(){var t=this,e=t.pfx,n=t.model,r=t.module,o="".concat(e,"layer-hidden"),i=r.isVisible(n)?"removeClass":"addClass";this.$el[i](o),this.getVisibilityEl()[i]("".concat(e,"layer-off"))},e.prototype.updateMove=function(){var t=this.model,e=this.config,n=this.getItemContainer().find("[".concat(gc,"]"))[0];if(n){var r=t.get("draggable")&&e.sortable;n.style.display=r?"":"none"}},e.prototype.toggleVisibility=function(t){null==t||t.stopImmediatePropagation();var e=this.module,n=this.model;e.setVisible(n,!e.isVisible(n))},e.prototype.handleEdit=function(t){null==t||t.stopPropagation();var e=this,n=e.em,r=e.$el,o=e.clsNoEdit,i=e.clsEdit,a=this.getInputName();a[hc]="true",a.focus(),document.execCommand("selectAll",!1),n.setEditing(!0),r.find(".".concat(this.inputNameCls)).removeClass(o).addClass(i)},e.prototype.handleEditKey=function(t){t.stopPropagation(),((0,yt.v$)(t)||(0,yt.Ci)(t))&&this.handleEditEnd(t)},e.prototype.handleEditEnd=function(t){null==t||t.stopPropagation();var e=this,n=e.em,r=e.$el,o=e.clsNoEdit,i=e.clsEdit,a=e.model,s=this.getInputName(),l=s.textContent;s.scrollLeft=0,s[hc]="false",a.setName(l),n.setEditing(!1),r.find(".".concat(this.inputNameCls)).addClass(o).removeClass(i),this.updateName()},e.prototype.getInputName=function(){return this.inputName||(this.inputName=this.el.querySelector(".".concat(this.inputNameCls))),this.inputName},e.prototype.updateOpening=function(){var t=this,e=t.$el,n=t.model,r=t.pfx,o="open",i="".concat(r,"layer-open"),a=this.getCaret();this.module.isOpen(n)?(e.addClass(o),a.addClass(i)):(e.removeClass(o),a.removeClass(i))},e.prototype.toggleOpening=function(t){var e=this.model,n=this.module;null==t||t.stopImmediatePropagation(),e.get("components").length&&n.setOpen(e,!n.isOpen(e))},e.prototype.handleSelect=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{selected:!0},{event:t})},e.prototype.handleHover=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!0})},e.prototype.handleHoverOut=function(t){null==t||t.stopPropagation();var e=this.module,n=this.model;e.setLayerData(n,{hovered:!1})},e.prototype.startSort=function(t){var e,n,r;t.stopPropagation();var o=this,i=o.em,a=o.sorter,s=o.model;if((!t.button||0===t.button)&&a){var l=(null===(n=null===(e=s.delegate)||void 0===e?void 0:e.move)||void 0===n?void 0:n.call(e,s))||s;a.eventHandlers=fc({legacyOnStartSort:sc(i),legacyOnMoveClb:lc(i),legacyOnEndMove:cc(i,[l])},a.eventHandlers);var c=(null===(r=l.viewLayer)||void 0===r?void 0:r.el)||t.target;a.startSort([{element:c}])}},e.prototype.updateStatus=function(){Wo.prototype.updateStatus.apply(this,[{avoidHover:!this.config.highlightHover,noExtHl:!0}])},e.prototype.getItemContainer=function(){return this.$el.children("[data-toggle-select]")},e.prototype.checkChildren=function(){var t=this,e=t.model,n=t.clsNoChild,r=t.module,o=r.getComponents(e).length,i=this.getItemContainer(),a=i.find(".".concat(this.clsTitle)),s=i.find("[data-count]");a[o?"removeClass":"addClass"](n),s.html("".concat(o||"")),!o&&r.setOpen(e,!1)},e.prototype.getCaret=function(){return this.caret&&this.caret.length||(this.caret=this.getItemContainer().find(".".concat(this.clsCaret))),this.caret},e.prototype.setRoot=function(t){var e,n=(0,i.isString)(t)?null===(e=this.em.getWrapper())||void 0===e?void 0:e.find(t)[0]:t;n&&(this.stopListening(),this.model=n,this.initComponent(),this._rendered&&this.render())},e.prototype.updateLayerable=function(){(this.parentView||this).render()},e.prototype.__clearItems=function(){var t;null===(t=this.items)||void 0===t||t.remove()},e.prototype.remove=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return d.Ss.prototype.remove.apply(this,t),delete this.model.viewLayer,this.__clearItems(),this},e.prototype.render=function(){var t=this,e=t.model,n=t.config,r=t.pfx,o=t.ppfx,i=t.opt,a=t.sorter;this.__clearItems();var s=i.opened,l=i.module,c=i.ItemView,u=!l.__isLayerable(e),p=this.$el.empty(),d=i.level+1;delete this.inputName,this.items=new Jl({ItemView:c,collection:e.get("components"),config:n,sorter:a,opened:s,parentView:this,parent:e,level:d,module:l});var f=this.items.render().$el;return n.showWrapper||1!==d?(p.html(this.template(e)),p.find(".".concat(this.clsChildren)).append(f)):p.append(f),!l.isVisible(e)&&(this.className+=" ".concat(r,"hide")),u&&(this.className+=" ".concat(o,"hidden")),p.attr("class",this.className),this.updateStatus(),this.updateOpening(),this.updateVisibility(),this.updateMove(),this.__render(),this._rendered=!0,this},e.prototype.__render=function(){var t=this,e=t.model,n=t.config,r={component:e,el:t.el};n.onRender.bind(this)(r),this.em.trigger("layer:render",r)},e}(d.Ss);const vc=mc;var yc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bc=function(){return bc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},bc.apply(this,arguments)},_c="layer",wc="".concat(_c,":"),Ec="".concat(wc,"root"),xc="".concat(wc,"component"),Cc="".concat(wc,"custom"),Tc={all:_c,root:Ec,component:xc,custom:Cc},Ac={mediaText:""},Oc=["open","status","locked","custom-name","components","classes"].map((function(t){return"".concat(ct.I.update,":").concat(t)})).join(" "),Sc=function(t){function e(e){var n=t.call(this,e,"LayerManager",{stylePrefix:"",appendTo:"",sortable:!0,hidable:!0,hideTextnode:!0,root:"",showWrapper:!0,showHover:!0,scrollCanvas:{behavior:"smooth",block:"nearest"},scrollLayers:{behavior:"auto",block:"nearest"},highlightHover:!0,custom:!1,onInit:function(){},onRender:function(){},extend:{}})||this;return n.events=Tc,(0,i.bindAll)(n,"componentChanged","__onRootChange","__onComponent"),n.model=new E.A(n,{opened:{}}),n.config.stylePrefix=n.config.pStylePrefix,n}return yc(e,t),e.prototype.onLoad=function(){var t=this,e=this,n=e.em,r=e.config,o=e.model;o.listenTo(n,"component:selected",this.componentChanged),o.on("change:root",this.__onRootChange),o.listenTo(n,Oc,this.__onComponent),this.componentChanged(),o.listenToOnce(n,"load",(function(){t.setRoot(r.root),t.__appendTo()}))},e.prototype.setRoot=function(t){var e=this.em.getWrapper(),n=(0,a.isComponent)(t)?t:e;t&&(0,i.isString)(t)&&(0,a.hasWin)()&&(n=e.find(t)[0]||e);var r=this.__getLayerFromComponent(n);return this.model.set("root",r),r},e.prototype.getRoot=function(){return this.model.get("root")},e.prototype.getComponents=function(t){var e=this;return t.components().map((function(t){return e.__getLayerFromComponent(t)})).filter((function(t){return e.__isLayerable(t)}))},e.prototype.setOpen=function(t,e){t.set("open",e)},e.prototype.isOpen=function(t){return!!t.get("open")},e.prototype.setVisible=function(t,e){var n="__prev-display",r=t.getStyle(Ac),o=r.display;if(e){var i=t.get(n);delete r.display,i&&(r.display=i,t.unset(n))}else o&&t.set(n,o),r.display="none";t.setStyle(r,Ac),this.updateLayer(t),this.em.trigger("component:toggled")},e.prototype.isVisible=function(t){return void 0===(e=t.getStyle(Ac))&&(e={}),!(0===(e.display||"").trim().indexOf("none"));var e},e.prototype.setLocked=function(t,e){t.set("locked",e)},e.prototype.isLocked=function(t){return!!t.get("locked")},e.prototype.setName=function(t,e){t.set("custom-name",e)},e.prototype.getName=function(t){return t.getName()},e.prototype.getLayerData=function(t){var e=t.get("status");return{name:t.getName(),open:this.isOpen(t),selected:"selected"===e,hovered:"hovered"===e,visible:this.isVisible(t),locked:this.isLocked(t),components:this.getComponents(t)}},e.prototype.setLayerData=function(t,e,n){var r;void 0===n&&(n={});var o=this.em,i=this.config,s=e.open,l=e.selected,c=e.hovered,u=e.visible,p=e.locked,d=e.name,f=bc({fromLayers:!0},n);if((0,a.isDef)(s)&&this.setOpen(t,s),(0,a.isDef)(l))if(l){o.setSelected(t,f);var h=i.scrollCanvas;h&&(null===(r=t.views)||void 0===r||r.forEach((function(t){return t.scrollIntoView(h)})))}else o.removeSelected(t,f);(0,a.isDef)(c)&&i.showHover&&(c?o.setHovered(t,f):o.setHovered(null,f)),(0,a.isDef)(u)&&u!==this.isVisible(t)&&this.setVisible(t,u),(0,a.isDef)(p)&&this.setLocked(t,p),(0,a.isDef)(d)&&this.setName(t,d)},e.prototype.componentChanged=function(t,e){var n;if(void 0===e&&(e={}),!e.fromLayers){var r=this.em,o=this.config.scrollLayers,i=this.model.get("opened"),a=r.getSelected(),s=null==a?void 0:a.parent();for(var l in i)i[l].set("open",!1),delete i[l];for(;s;)s.set("open",!0),i[s.cid]=s,s=s.parent();if(a&&o){var c=null===(n=a.viewLayer)||void 0===n?void 0:n.el;null==c||c.scrollIntoView(o)}}},e.prototype.getAll=function(){return this.view},e.prototype.render=function(){var t,e,n=this.config,r=this.model,o=vc.extend(n.extend);return this.view=new o({el:null===(t=this.view)||void 0===t?void 0:t.el,ItemView:o,level:0,config:n,opened:r.get("opened"),model:this.getRoot(),module:this}),null===(e=this.view)||void 0===e?void 0:e.render().el},e.prototype.destroy=function(){var t;null===(t=this.view)||void 0===t||t.remove()},e.prototype.__onRootChange=function(){var t,e=this.getRoot();null===(t=this.view)||void 0===t||t.setRoot(e),this.em.trigger(Ec,e),this.__trgCustom()},e.prototype.__getLayerFromComponent=function(t){var e,n;return(null===(n=null===(e=t.delegate)||void 0===e?void 0:e.layer)||void 0===n?void 0:n.call(e,t))||t},e.prototype.__onComponent=function(t){this.updateLayer(t)},e.prototype.__isLayerable=function(t){var e=t.tagName;return(!this.config.hideTextnode||!t.isInstanceOf("textnode")&&"br"!==e)&&t.get("layerable")},e.prototype.__trgCustom=function(t){var e=this,n=e.__ctn,r=e.em,o=e.events;this.__ctn=n||(null==t?void 0:t.container),r.trigger(o.custom,{container:this.__ctn,root:this.getRoot()})},e.prototype.updateLayer=function(t,e){this.em.trigger(xc,t,e)},e}(_);const kc=Sc;var Pc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pc(e,t),e.getDefaults=function(){return(0,i.result)(this.prototype,"defaults")},e.prototype.defaults=function(){return{type:"",src:""}},e.prototype.getType=function(){return this.get("type")},e.prototype.getSrc=function(){return this.get("src")},e.prototype.getFilename=function(){return this.get("src").split("/").pop().split("?").shift()},e.prototype.getExtension=function(){return this.getFilename().split(".").pop()},e}(d.Kx);const Nc=jc;jc.prototype.idAttribute="src";var Lc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dc=function(){return Dc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Dc.apply(this,arguments)};const Ic=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Lc(e,t),e.prototype.defaults=function(){return Dc(Dc({},Nc.getDefaults()),{type:"image",unitDim:"px",height:0,width:0})},e}(Nc);var Rc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Mc=function(t){function e(e){var n=t.call(this,e)||this;n.options=e,n.collection=e.collection;var r=e.config||{};n.config=r,n.pfx=r.stylePrefix||"",n.ppfx=r.pStylePrefix||"",n.em=r.em,n.className=n.pfx+"asset",n.listenTo(n.model,"destroy remove",n.remove),n.model.view=n;var o=n.init&&n.init.bind(n);return o&&o(e),n}return Rc(e,t),e.prototype.__getBhv=function(){var t=this.em,e=null==t?void 0:t.Assets;return(null==e?void 0:e.__getBehaviour())||{}},e.prototype.template=function(t,e){var n=this.pfx;return'\n      <div class="'.concat(n,'preview-cont">\n        ').concat(this.getPreview(),'\n      </div>\n      <div class="').concat(n,'meta">\n        ').concat(this.getInfo(),'\n      </div>\n      <div class="').concat(n,'close" data-toggle="asset-remove">\n        &Cross;\n      </div>\n    ')},e.prototype.updateTarget=function(t){t&&t.set&&(t.set("attributes",(0,i.clone)(t.get("attributes"))),t.set("src",this.model.get("src")))},e.prototype.getPreview=function(){return""},e.prototype.getInfo=function(){return""},e.prototype.render=function(){var t=this.el;return t.innerHTML=this.template(this,this.model),t.className=this.className,this},e}(d.Ss);var Bc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fc=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},Uc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bc(e,t),e.prototype.getPreview=function(){var t=this,e=t.pfx,n=t.ppfx,r=t.model.get("src");return s(Vc||(Vc=Fc(['\n      <div class="','preview" style="background-image: url(\'','\');"></div>\n      <div class="',"preview-bg ",'checker-bg"></div>\n    '],['\n      <div class="','preview" style="background-image: url(\'','\');"></div>\n      <div class="',"preview-bg ",'checker-bg"></div>\n    '])),e,r,e,n)},e.prototype.getInfo=function(){var t=this.pfx,e=this.model,n=e.get("name"),r=e.get("width"),o=e.get("height"),i=e.get("unitDim"),a=r&&o?"".concat(r,"x").concat(o).concat(i):"";return n=n||e.getFilename(),s(qc||(qc=Fc(['\n      <div class="','name">','</div>\n      <div class="','dimensions">',"</div>\n    "],['\n      <div class="','name">','</div>\n      <div class="','dimensions">',"</div>\n    "])),t,n,t,a)},e.prototype.init=function(t){var e=this.pfx;this.className+=" ".concat(e,"asset-image")},e.prototype.onClick=function(){var t=this.model,e=this.pfx,n=this.__getBhv().select,r=this.config.onClick,o=this.collection;o.trigger("deselectAll"),this.$el.addClass(e+"highlight"),(0,i.isFunction)(n)?n(t,!1):(0,i.isFunction)(r)?r(t):this.updateTarget(o.target)},e.prototype.onDblClick=function(){var t=this.em,e=this.model,n=this.__getBhv().select,r=this.config.onDblClick,o=this.collection,a=o.target,s=o.onSelect;(0,i.isFunction)(n)?n(e,!0):(0,i.isFunction)(r)?r(e):(this.updateTarget(a),null==t||t.Modal.close()),(0,i.isFunction)(s)&&s(e)},e.prototype.onRemove=function(t){t.stopImmediatePropagation(),this.model.collection.remove(this.model)},e}(Mc);const Hc=Uc;var Vc,qc;Uc.prototype.events={"click [data-toggle=asset-remove]":"onRemove",click:"onClick",dblclick:"onDblClick"};var zc=function(){return zc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},zc.apply(this,arguments)},Wc={types:[],initialize:function(t,e){var n=this;void 0===e&&(e={});var r=e.em;this.em=r,this.opts=e,this.model=function(t,e){var o,i,a;if(void 0===t&&(t={}),void 0===e&&(e={}),t&&t.type){var s=n.getBaseType();o=(a=n.getType(t.type))?a.model:s.model,i=a?a.view:s.view}else{var l=n.recognizeType(t);o=(a=l.type).model,i=a.view,t=l.attributes}var c=new o(t,zc(zc({},e),{em:r}));return c.typeView=i,n.model.prototype=o.prototype,c};var o=this.init&&this.init.bind(this);o&&o()},recognizeType:function(t){for(var e=this.getTypes(),n=0;n<e.length;n++){var r=e[n],o=r.isType(t);if(o="boolean"==typeof o&&o?{type:r.id}:o)return{type:r,attributes:o}}return{type:this.getBaseType(),attributes:t}},getBaseType:function(){var t=this.getTypes();return t[t.length-1]},getTypes:function(){return this.types},getType:function(t){for(var e=this.getTypes(),n=0;n<e.length;n++){var r=e[n];if(r.id===t)return r}},addType:function(t,e){var n=this.getType(t),r=this.getBaseType(),o=n?n.model:r.model,a=n?n.view:r.view,s=e.model,l=e.view,c=e.isType;s=s instanceof d.Kx||(0,i.isFunction)(s)?s:o.extend(s||{}),l=l instanceof d.Ss||(0,i.isFunction)(l)?l:a.extend(l||{}),!this.extendViewApi||e.model||e.view||(l=l.extend(e)),n?(n.model=s,n.view=l,n.isType=c||n.isType):(e.id=t,e.model=s,e.view=l,e.isType=c||function(e){if(e&&e.type==t)return!0},this.getTypes().unshift(e))}};const Gc=Wc;var Yc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yc(e,t),e}(d.pM.extend(Gc));const $c=Kc;var Xc;Kc.prototype.types=[{id:"image",model:Ic,view:Hc,isType:function(t){return"string"==typeof t?{type:"image",src:t}:t}}],function(t){t.add="asset:add",t.remove="asset:remove",t.removeBefore="asset:remove:before",t.update="asset:update",t.open="asset:open",t.close="asset:close",t.uploadStart="asset:upload:start",t.uploadEnd="asset:upload:end",t.uploadError="asset:upload:error",t.uploadResponse="asset:upload:response",t.custom="asset:custom",t.all="asset"}(Xc||(Xc={}));const Zc=Xc;var Qc=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jc=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;n.options=e,n.config=e.config,n.pfx=n.config.stylePrefix||"",n.ppfx=n.config.pStylePrefix||"",n.em=n.config.em;var r=n.collection;return n.listenTo(r,"reset",n.renderAssets),n.listenTo(r,"add",n.addToAsset),n.listenTo(r,"remove",n.removedAsset),n.listenTo(r,"deselectAll",n.deselectAll),n}return Qc(e,t),e.prototype.template=function(t){var e=t.pfx,n=t.ppfx,r=t.em,o="";return this.config.showUrlInput&&(o='\n          <form class="'.concat(e,'add-asset">\n            <div class="').concat(n,"field ").concat(e,'add-field">\n              <input placeholder="').concat(null==r?void 0:r.t("assetManager.inputPlh"),'"/>\n            </div>\n            <button class="').concat(n,'btn-prim">').concat(null==r?void 0:r.t("assetManager.addButton"),'</button>\n            <div style="clear:both"></div>\n          </form>\n      ')),'\n    <div class="'.concat(e,'assets-cont">\n      <div class="').concat(e,'assets-header">\n        ').concat(o,'\n      </div>\n      <div class="').concat(e,'assets" data-el="assets"></div>\n      <div style="clear:both"></div>\n    </div>\n    ')},e.prototype.handleSubmit=function(t){t.preventDefault();var e=this.getAddInput(),n=e&&e.value.trim(),r=this.config.handleAdd;if(n){e.value="";var o=this.getAssetsEl();o&&(o.scrollTop=0),r?r.bind(this)(n):this.options.globalCollection.add(n,{at:0})}},e.prototype.getAssetsEl=function(){return this.el.querySelector(".".concat(this.pfx,"assets"))},e.prototype.getAddInput=function(){return this.inputUrl&&this.inputUrl.value||(this.inputUrl=this.el.querySelector(".".concat(this.pfx,"add-asset input"))),this.inputUrl},e.prototype.removedAsset=function(t){this.collection.length||this.toggleNoAssets()},e.prototype.addToAsset=function(t){1==this.collection.length&&this.toggleNoAssets(!0),this.addAsset(t)},e.prototype.addAsset=function(t,e){void 0===e&&(e=null);var n=e,r=this.collection,o=this.config,i=new t.typeView({model:t,collection:r,config:o}).render().el;if(n)n.appendChild(i);else{var a=this.getAssetsEl();a&&a.insertBefore(i,a.firstChild)}return i},e.prototype.toggleNoAssets=function(t){void 0===t&&(t=!1);var e=this.$el.find(".".concat(this.pfx,"assets"));if(t)e.empty();else{var n=this.config.noAssets;n&&e.append(n)}},e.prototype.deselectAll=function(){var t=this.pfx;this.$el.find(".".concat(t,"highlight")).removeClass("".concat(t,"highlight"))},e.prototype.renderAssets=function(){var t=this,e=document.createDocumentFragment(),n=this.$el.find(".".concat(this.pfx,"assets"));n.empty(),this.toggleNoAssets(!!this.collection.length),this.collection.each((function(n){return t.addAsset(n,e)})),n.append(e)},e.prototype.render=function(){var t=this.options.fu.render().el;return this.$el.empty(),this.$el.append(t).append(this.template(this)),this.el.className="".concat(this.ppfx,"asset-manager"),this.renderAssets(),this},e}(d.Ss);const tu=Jc;Jc.prototype.events={submit:"handleSubmit"};var eu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nu=function(t){function e(n){void 0===n&&(n={});var r=t.call(this,n)||this;r.options=n;var o=n.config||{};r.module=n.module,r.config=o,r.em=r.config.em,r.pfx=o.stylePrefix||"",r.ppfx=o.pStylePrefix||"",r.target=r.options.globalCollection||{},r.uploadId=r.pfx+"uploadFile",r.disabled=void 0!==o.disableUpload?o.disableUpload:!o.upload&&!o.embedAsBase64,r.multiUpload=void 0===o.multiUpload||o.multiUpload;var i=o.uploadFile;return i?r.uploadFile=i.bind(r):!o.upload&&o.embedAsBase64&&(r.uploadFile=e.embedAsBase64),r.delegateEvents(),r}return eu(e,t),e.prototype.template=function(t){var e,n,r=t.pfx,o=t.title,i=t.uploadId,a=t.disabled,l=t.multiUpload;return s(ou||(e=['\n      <form>\n        <div id="','title">','</div>\n        <input\n          data-input\n          type="file"\n          id="','"\n          name="file"\n          accept="*/*"\n          ',"\n          ",'\n        />\n        <div style="clear:both;"></div>\n      </form>\n    '],n=['\n      <form>\n        <div id="','title">','</div>\n        <input\n          data-input\n          type="file"\n          id="','"\n          name="file"\n          accept="*/*"\n          ',"\n          ",'\n        />\n        <div style="clear:both;"></div>\n      </form>\n    '],Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,ou=e),r,o,i,a?"disabled":"",l?"multiple":"")},e.prototype.events=function(){return{"change [data-input]":"uploadFile"}},e.prototype.onUploadStart=function(){var t=this.module;null==t||t.__propEv(t.events.uploadStart)},e.prototype.onUploadEnd=function(t){var e=this.$el,n=this.module;null==n||n.__propEv(n.events.uploadEnd,t);var r=e.find("input");r&&r.val("")},e.prototype.onUploadError=function(t){var e=this.module;console.error(t),this.onUploadEnd(t),null==e||e.__propEv(e.events.uploadError,t)},e.prototype.onUploadResponse=function(t,e){var n,r=this,o=r.module,i=r.config,a=r.target;try{n="string"==typeof t?JSON.parse(t):t}catch(e){n=t}null==o||o.__propEv(o.events.uploadResponse,n),i.autoAdd&&a&&a.add(n.data,{at:0}),this.onUploadEnd(t),null==e||e(n)},e.prototype.uploadFile=function(t,e){var n=this,r=t.dataTransfer?t.dataTransfer.files:t.target.files,o=this.config,i=o.beforeUpload;if(!1!==(i&&i(r))){var a=new FormData,s=o.params,l=o.customFetch,c=o.fetchOptions;for(var u in s)a.append(u,s[u]);if(this.multiUpload)for(var p=0;p<r.length;p++)a.append("".concat(o.uploadName).concat(o.multiUploadSuffix),r[p]);else r.length&&a.append(o.uploadName,r[0]);var d=o.upload,f=o.headers,h="X-Requested-With";if(void 0===f[h]&&(f[h]="XMLHttpRequest"),d){this.onUploadStart();var g={method:"post",credentials:o.credentials||"include",headers:f,body:a},m=(null==c?void 0:c(g))||g;return(l?l(d,m):$s(d,m).then((function(t){return 1==(t.status/200|0)?t.text():t.text().then((function(t){return Promise.reject(t)}))}))).then((function(t){return n.onUploadResponse(t,e)})).catch((function(t){return n.onUploadError(t)}))}}},e.prototype.initDrop=function(){var t=this;if(!this.uploadForm){this.uploadForm=this.$el.find("form").get(0);var e=this.uploadForm;"draggable"in e&&(this.uploadForm.ondragover=function(){return e.className=t.pfx+"hover",!1},this.uploadForm.ondragleave=function(){return e.className="",!1},this.uploadForm.ondrop=function(n){e.className="",n.preventDefault(),t.uploadFile(n)})}},e.prototype.initDropzone=function(t){var e=this,n=0,r=this.config,o=t.model,i=t.el,a=o.Editor,s=o.Canvas.getBody(),l=this.ppfx,c="".concat(l,"dropzone-active"),u="".concat(l,"dropzone"),p=function(){i.className=i.className.replace(c,"").trim(),n=0},d=function(){return n||(i.className+=" ".concat(c),n=1),!1},f=function(){return p(),!1},h=function(t){if(p(),t.preventDefault(),t.stopPropagation(),e.uploadFile(t),r.openAssetsOnDrop&&a){var n=a.getSelected();a.runCommand("open-assets",{target:n,onSelect:function(){a.Modal.close(),a.AssetManager.setTarget(null)}})}return!1};t.$el.append('<div class="'.concat(u,'">').concat(r.dropzoneContent,"</div>")),p(),"draggable"in i&&[i,s].forEach((function(t){t.ondragover=d,t.ondragleave=f,t.ondrop=h}))},e.prototype.render=function(){var t=this,e=t.$el,n=t.pfx,r=t.em;return e.html(this.template({title:r&&r.t("assetManager.uploadTitle"),uploadId:this.uploadId,disabled:this.disabled,multiUpload:this.multiUpload,pfx:n})),this.initDrop(),e.attr("class",n+"file-uploader"),this},e.embedAsBase64=function(t,e){var n=this,r=t.dataTransfer?t.dataTransfer.files:t.target.files,o={data:[]};if(FileReader){for(var i=[],a=/^(.+)\/(.+)$/,s=function(t){var e=new Promise((function(e,n){var r=new FileReader;r.addEventListener("load",(function(o){var i,s=t.name,l=a.exec(t.type);if("image"===(i=l?l[1]:t.type)){var c={src:r.result,name:s,type:i,height:0,width:0},u=new Image;u.addEventListener("error",(function(t){n(t)})),u.addEventListener("load",(function(){c.height=u.height,c.width=u.width,e(c)})),u.src=c.src}else e(i?{src:r.result,name:s,type:i}:r.result)})),r.addEventListener("error",(function(t){n(t)})),r.addEventListener("abort",(function(t){n("Aborted")})),r.readAsDataURL(t)}));i.push(e)},l=0,c=r;l<c.length;l++)s(c[l]);return Promise.all(i).then((function(t){o.data=t,n.onUploadResponse(o,e)}),(function(t){n.onUploadError(t)}))}this.onUploadError(new Error("Unsupported platform, FileReader is not defined"))},e}(d.Ss);const ru=nu;var ou,iu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),au=function(){return au=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},au.apply(this,arguments)},su=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},lu="open-assets",cu=function(t){function e(e){var n=t.call(this,e,"AssetManager",new $c([],e),Zc,{assets:[],noAssets:"",stylePrefix:"am-",upload:"",uploadName:"files",headers:{},params:{},credentials:"include",multiUpload:!0,multiUploadSuffix:"[]",autoAdd:!0,customFetch:void 0,uploadFile:void 0,embedAsBase64:!0,handleAdd:void 0,beforeUpload:void 0,showUrlInput:!0,custom:!1,dropzone:!1,openAssetsOnDrop:!0,dropzoneContent:""})||this;n.storageKey="assets",n.Asset=Nc,n.Assets=$c,n.events=Zc;var r=n,o=r.all,a=r.config;n.assetsVis=new $c([]);var s=a.pStylePrefix;return s&&(a.stylePrefix="".concat(s).concat(a.stylePrefix)),o.on("add",(function(t){return n.getAllVisible().add(t)})),o.on("remove",(function(t){return n.getAllVisible().remove(t)})),n.__onAllEvent=(0,i.debounce)((function(){return n.__trgCustom()}),0),n}return iu(e,t),e.prototype.open=function(t){void 0===t&&(t={}),this.em.Commands.run(lu,au({types:["image"],select:function(){}},t))},e.prototype.close=function(){this.em.Commands.stop(lu)},e.prototype.isOpen=function(){var t=this.em.Commands;return!!(null==t?void 0:t.isActive(lu))},e.prototype.add=function(t,e){return void 0===e&&(e={}),void 0===e.at&&(e.at=0),this.all.add(t,e)},e.prototype.get=function(t){return this.all.where({src:t})[0]||null},e.prototype.getAll=function(){return this.all},e.prototype.getAllVisible=function(){return this.assetsVis},e.prototype.remove=function(t,e){return this.__remove(t,e)},e.prototype.store=function(){return this.getProjectData()},e.prototype.load=function(t){return this.loadProjectData(t)},e.prototype.getContainer=function(){var t;return this.__getBehaviour().container||(null===(t=this.am)||void 0===t?void 0:t.el)},e.prototype.getAssetsEl=function(){var t;return null===(t=this.am)||void 0===t?void 0:t.el.querySelector("[data-el=assets]")},e.prototype.render=function(t){if(!this.getConfig().custom){var e=t||this.getAll().models;if(!this.am){var n=this.__viewParams();n.fu=this.FileUploader(),this.am=new tu(au({},n)),this.am.render()}return this.assetsVis.reset(e),this.getContainer()}},e.prototype.__viewParams=function(){return{collection:this.assetsVis,globalCollection:this.all,config:this.config,module:this,fu:void 0}},e.prototype.addType=function(t,e){this.getAll().addType(t,e)},e.prototype.getType=function(t){return this.getAll().getType(t)},e.prototype.getTypes=function(){return this.getAll().getTypes()},e.prototype.AssetsView=function(){return this.am},e.prototype.FileUploader=function(){return this.fu||(this.fu=new ru(this.__viewParams())),this.fu},e.prototype.onLoad=function(){var t=this;this.getAll().reset(this.config.assets);var e=this.em,n=this.events;e.Commands.__onRun(lu,(function(){return t.__propEv(n.open)})),e.Commands.__onStop(lu,(function(){return t.__propEv(n.close)}))},e.prototype.postRender=function(t){var e;this.config.dropzone&&(null===(e=this.fu)||void 0===e||e.initDropzone(t))},e.prototype.setTarget=function(t){this.assetsVis.target=t},e.prototype.onSelect=function(t){this.assetsVis.onSelect=t},e.prototype.onClick=function(t){this.config.onClick=t},e.prototype.onDblClick=function(t){this.config.onDblClick=t},e.prototype.__propEv=function(t){for(var e,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];(e=this.em).trigger.apply(e,su([t],r,!1)),(n=this.getAll()).trigger.apply(n,su([t],r,!1))},e.prototype.__trgCustom=function(){var t=this.__getBehaviour(),e=this.getConfig().custom;(t.container||e.open)&&this.em.trigger(this.events.custom,this.__customData())},e.prototype.__customData=function(){var t=this,e=this.__getBehaviour();return{am:this,open:this.isOpen(),assets:this.getAll().models,types:e.types||[],container:e.container,close:function(){return t.close()},remove:function(e,n){return t.remove(e,n)},select:function(n,r){var o=t.add(n);(0,i.isFunction)(e.select)&&e.select(o,r)},options:e.options||{}}},e.prototype.__behaviour=function(t){return void 0===t&&(t={}),this._bhv=au(au({},this._bhv||{}),t)},e.prototype.__getBehaviour=function(t){return void 0===t&&(t={}),this._bhv||{}},e.prototype.destroy=function(){var t,e;this.all.stopListening(),this.all.reset(),this.assetsVis.stopListening(),this.assetsVis.reset(),null===(t=this.fu)||void 0===t||t.remove(),null===(e=this.am)||void 0===e||e.remove(),this._bhv={}},e}(w);const uu=cu;var pu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const du=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this,e,n)||this,o=n.em,i={};r.em=o,e.frames||(i.component=e.component,i.styles=e.styles,["component","styles"].map((function(t){return r.unset(t)})));var a=e.frames||[i],s=new ot(o.Canvas,a);return s.page=r,r.set("frames",s),!r.getId()&&r.set("id",null==o?void 0:o.Pages._createId()),null==o||o.UndoManager.add(s),r}return pu(e,t),e.prototype.defaults=function(){return{name:"",frames:[],_undo:!0}},e.prototype.onRemove=function(){this.getFrames().reset()},e.prototype.getFrames=function(){return this.get("frames")},e.prototype.getId=function(){return this.id},e.prototype.getName=function(){return this.get("name")},e.prototype.setName=function(t){return this.set({name:t})},e.prototype.getAllFrames=function(){return this.getFrames().models||[]},e.prototype.getMainFrame=function(){return this.getFrames().at(0)},e.prototype.getMainComponent=function(){var t=this.getMainFrame();return null==t?void 0:t.getComponent()},e.prototype.toJSON=function(t){void 0===t&&(t={});var e=d.Kx.prototype.toJSON.call(this,t),n=(0,i.result)(this,"defaults");return(0,i.forEach)(e,(function(t,n){0===n.indexOf("_")&&delete e[n]})),(0,i.forEach)(n,(function(t,n){e[n]===t&&delete e[n]})),e},e}(d.Kx);var fu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hu=function(){return hu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},hu.apply(this,arguments)},gu=function(t){function e(e,n){var r=t.call(this,e)||this;return r.on("reset",r.onReset),r.on("remove",r.onRemove),r.model=function(t,e){return void 0===e&&(e={}),new du(t,hu(hu({},e),{em:n}))},r}return fu(e,t),e.prototype.onReset=function(t,e){var n,r=this;null===(n=null==e?void 0:e.previousModels)||void 0===n||n.map((function(t){return r.onRemove(t,r,e)}))},e.prototype.onRemove=function(t,e,n){void 0===n&&(n={}),n.fromUndo||null==t||t.onRemove()},e}(d.pM);const mu=gu;var vu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yu="change:selected",bu="main",_u=function(t){function e(e){var n=t.call(this,e,"PageManager",new mu([],e),W)||this;n.events=W,n.storageKey="pages",(0,i.bindAll)(n,"_onPageChange");var r=new E.A(n,{_undo:!0});return n.model=r,n.pages.on("reset",(function(t){return t.at(0)&&n.select(t.at(0))})),n.pages.on("all",n.__onChange,n),r.on(yu,n._onPageChange),n}return vu(e,t),Object.defineProperty(e.prototype,"pages",{get:function(){return this.all},enumerable:!1,configurable:!0}),e.prototype.getAll=function(){return function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],this.all.models,!0)},e.prototype.__onChange=function(t,e,n,r){var o=this.em,i=this.events,a=r||n;o.trigger(i.all,{event:t,page:e,options:a})},e.prototype.onLoad=function(){var t,e=this,n=e.pages,r=e.config,o=e.em,i={silent:!0},a=(null===(t=r.pages)||void 0===t?void 0:t.map((function(t){return new du(t,{em:o,config:r})})))||[];n.add(a,i);var s=n.length?this._initPage():this.add({type:bu},i);s&&this.select(s,i)},e.prototype._onPageChange=function(t,e,n){var r=this.em,o=this.events,i=r.Layers,a=e.getMainComponent();i&&a&&i.setRoot(a),r.trigger(o.select,e,t.previous("selected")),this.__onChange(yu,e,n)},e.prototype.postLoad=function(){var t=this,e=t.em,n=t.model,r=t.pages,o=e.UndoManager;o.add(n),o.add(r),r.on("add remove reset change",(function(t,n,r){return e.changesUp(r||n)}))},e.prototype.add=function(t,e){var n=this;void 0===e&&(e={});var r=this.em,o=this.events;t.id=t.id||this._createId();var i=function(){var r=n.pages.add(new du(t,{em:n.em,config:n.config}),e);return e.select&&n.select(r),r};return!e.silent&&r.trigger(o.addBefore,t,i,e),e.abort?void 0:i()},e.prototype.remove=function(t,e){var n=this;void 0===e&&(e={});var r=this.em,o=this.events,a=(0,i.isString)(t)?this.get(t):t,s=function(){return a&&n.pages.remove(a,e),a};return!e.silent&&r.trigger(o.removeBefore,a,s,e),!e.abort&&s()},e.prototype.get=function(t){return this.pages.filter((function(e){return e.get(e.idAttribute)===t}))[0]},e.prototype.getMain=function(){var t=this.pages;return t.filter((function(t){return t.get("type")===bu}))[0]||t.at(0)},e.prototype.getAllWrappers=function(){var t=this.getAll();return(0,i.unique)((0,i.flatten)(t.map((function(t){return t.getAllFrames().map((function(t){return t.getComponent()}))}))))},e.prototype.select=function(t,e){void 0===e&&(e={});var n=this,r=n.em,o=n.model,a=n.events,s=(0,i.isString)(t)?this.get(t):t;return s&&(r.trigger(a.selectBefore,s,e),o.set("selected",s,e)),this},e.prototype.getSelected=function(){return this.model.get("selected")},e.prototype.destroy=function(){var t=this;this.pages.off().reset(),this.model.stopListening(),this.model.clear({silent:!0}),["selected","model"].map((function(e){return t[e]=0}))},e.prototype.store=function(){return this.getProjectData()},e.prototype.load=function(t){var e=this.loadProjectData(t,{all:this.pages,reset:!0});return this.pages.forEach((function(t){return t.getFrames().initRefs()})),e},e.prototype._initPage=function(){return this.get(this.config.selected)||this.getMain()},e.prototype._createId=function(){var t,e=this.getAll().length+16,n=this.getAllMap();do{t=(0,a.createId)(e)}while(n[t]);return t},e}(w);const wu=_u;var Eu={placeholder:"eg. Text here"};const xu={assetManager:{addButton:"Add image",inputPlh:"http://path/to/the/image.jpg",modalTitle:"Select Image",uploadTitle:"Drop files here or click to upload"},blockManager:{labels:{},categories:{}},domComponents:{names:{"":"Box",wrapper:"Body",text:"Text",comment:"Comment",image:"Image",video:"Video",label:"Label",link:"Link",map:"Map",tfoot:"Table foot",tbody:"Table body",thead:"Table head",table:"Table",row:"Table row",cell:"Table cell"}},deviceManager:{device:"Device",devices:{desktop:"Desktop",tablet:"Tablet",mobileLandscape:"Mobile Landscape",mobilePortrait:"Mobile Portrait"}},panels:{buttons:{titles:{preview:"Preview",fullscreen:"Fullscreen","sw-visibility":"View components","export-template":"View code","open-sm":"Open Style Manager","open-tm":"Settings","open-layers":"Open Layer Manager","open-blocks":"Open Blocks"}}},selectorManager:{label:"Classes",selected:"Selected",emptyState:"- State -",states:{hover:"Hover",active:"Click","nth-of-type(2n)":"Even/Odd"}},styleManager:{empty:"Select an element before using Style Manager",layer:"Layer",fileButton:"Images",sectors:{general:"General",layout:"Layout",typography:"Typography",decorations:"Decorations",extra:"Extra",flex:"Flex",dimension:"Dimension"},properties:{"text-shadow-h":"X","text-shadow-v":"Y","text-shadow-blur":"Blur","text-shadow-color":"Color","box-shadow-h":"X","box-shadow-v":"Y","box-shadow-blur":"Blur","box-shadow-spread":"Spread","box-shadow-color":"Color","box-shadow-type":"Type","margin-top-sub":"Top","margin-right-sub":"Right","margin-bottom-sub":"Bottom","margin-left-sub":"Left","padding-top-sub":"Top","padding-right-sub":"Right","padding-bottom-sub":"Bottom","padding-left-sub":"Left","border-width-sub":"Width","border-style-sub":"Style","border-color-sub":"Color","border-top-left-radius-sub":"Top Left","border-top-right-radius-sub":"Top Right","border-bottom-right-radius-sub":"Bottom Right","border-bottom-left-radius-sub":"Bottom Left","transform-rotate-x":"Rotate X","transform-rotate-y":"Rotate Y","transform-rotate-z":"Rotate Z","transform-scale-x":"Scale X","transform-scale-y":"Scale Y","transform-scale-z":"Scale Z","transition-property-sub":"Property","transition-duration-sub":"Duration","transition-timing-function-sub":"Timing","background-image-sub":"Image","background-repeat-sub":"Repeat","background-position-sub":"Position","background-attachment-sub":"Attachment","background-size-sub":"Size"}},traitManager:{empty:"Select an element before using Trait Manager",label:"Component settings",categories:{},traits:{labels:{},attributes:{id:Eu,alt:Eu,title:Eu,href:{placeholder:"eg. https://google.com"}},options:{target:{false:"This window",_blank:"New window"}}}},storageManager:{recover:"Do you want to recover unsaved changes?"}};var Cu;!function(t){t.add="i18n:add",t.update="i18n:update",t.locale="i18n:locale"}(Cu||(Cu={}));const Tu=Cu;var Au=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ou=function(t){function e(e){var n=t.call(this,e,"I18n",{locale:"en",localeFallback:"en",detectLocale:!0,debug:!1,messages:{en:xu},messagesAdd:void 0})||this;n.events=Tu;var r=n.config.messagesAdd;return r&&n.addMessages(r),n.config.detectLocale&&(n.config.locale=n._localLang()),n}return Au(e,t),e.prototype.setLocale=function(t){var e=this,n=e.em,r=e.config,o=e.events;return n.trigger(o.locale,{value:t,valuePrev:r.locale}),r.locale=t,this},e.prototype.getLocale=function(){return this.config.locale},e.prototype.getMessages=function(t,e){void 0===e&&(e={});var n=this.config.messages;return t&&!n[t]&&this._debug("'".concat(t,"' i18n lang not found"),e),t?n[t]:n},e.prototype.setMessages=function(t){var e=this,n=e.em,r=e.config,o=e.events;return r.messages=t,n.trigger(o.update,t),this},e.prototype.addMessages=function(t){var e=this,n=e.em,r=e.events,o=e.config.messages;return n.trigger(r.add,t),this.setMessages((0,a.deepMerge)(o,t)),this},e.prototype.t=function(t,e){void 0===e&&(e={});var n=this.config,r=e.params||{},o=e.l||this.getLocale(),a=e.lFlb||n.localeFallback,s=this._getMsg(t,o,e);return s||(s=this._getMsg(t,a,e)),!s&&this._debug("'".concat(t,"' i18n key not found in '").concat(o,"' lang"),e),s&&(0,i.isString)(s)?this._addParams(s,r):s},e.prototype._localLang=function(){var t=(0,a.hasWin)()&&window.navigator||{},e=t.language||t.userLanguage;return e?e.split("-")[0]:"en"},e.prototype._addParams=function(t,e){var n=new RegExp("{([\\w\\d-]*)}","g");return t.replace(n,(function(t,n){return e[n]||""})).trim()},e.prototype._getMsg=function(t,e,n){void 0===n&&(n={});var r=this.getMessages(e,n);if(r){var o=r[t];return!o&&t.indexOf(".")>0&&(o=t.split(".").reduce((function(t,e){if(!(0,i.isUndefined)(t))return t[e]}),r)),o}},e.prototype._debug=function(t,e){void 0===e&&(e={});var n=this.em,r=this.config;(e.debug||r.debug)&&n&&n.logWarning(t)},e.prototype.destroy=function(){},e}(_);const Su=Ou;var ku=function(){return ku=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ku.apply(this,arguments)},Pu=function(){function t(t){void 0===t&&(t={}),this.defOpts={ratioDefault:!1,onUpdateContainer:function(){},step:1,minDim:10,maxDim:1/0,unitHeight:"px",unitWidth:"px",keyHeight:"height",keyWidth:"width",currentUnit:!0,silentFrames:!1,avoidContainerUpdate:!1,keepAutoHeight:!1,keepAutoWidth:!1,autoHeight:!1,autoWidth:!1,tl:!0,tc:!0,tr:!0,cl:!0,cr:!0,bl:!0,bc:!0,br:!0},this.opts=ku({},this.defOpts),this.setOptions(t),(0,i.bindAll)(this,"handleKeyDown","handleMouseDown","move","stop")}return t.prototype.getConfig=function(){return this.opts},t.prototype.setOptions=function(t,e){void 0===t&&(t={}),this.opts=ku(ku({},e?this.defOpts:this.opts),t),this.setup()},t.prototype.setup=function(){var t=this.opts,e=t.prefix||"",n=t.appendTo||document.body,r=this.container;for(r||((r=document.createElement("div")).className="".concat(e,"resizer-c"),n.appendChild(r),this.container=r);r.firstChild;)r.removeChild(r.firstChild);var o={};for(var i in["tl","tc","tr","cl","cr","bl","bc","br"].forEach((function(e){return o[e]=t[e]?function(t,e){void 0===e&&(e={});var n=e.prefix||"",r=document.createElement("i");return r.className=n+"resizer-h "+n+"resizer-h-"+t,r.setAttribute("data-"+n+"handler",t),r}(e,t):null})),o){var a=o[i];a&&r.appendChild(a)}this.handlers=o,this.mousePosFetcher=t.mousePosFetcher,this.updateTarget=t.updateTarget,this.posFetcher=t.posFetcher,this.onStart=t.onStart,this.onMove=t.onMove,this.onEnd=t.onEnd,this.onUpdateContainer=t.onUpdateContainer},t.prototype.toggleFrames=function(t){if(this.opts.silentFrames){var e=document.querySelectorAll("iframe");(0,i.each)(e,(function(e){return e.style.pointerEvents=t?"none":""}))}},t.prototype.isHandler=function(t){var e=this.handlers;for(var n in e)if(e[n]===t)return!0;return!1},t.prototype.getFocusedEl=function(){return this.el},t.prototype.getParentEl=function(){var t;return null===(t=this.el)||void 0===t?void 0:t.parentElement},t.prototype.getDocumentEl=function(){return[this.el.ownerDocument,document]},t.prototype.getElementPos=function(t,e){void 0===e&&(e={});var n=this.posFetcher;return n?n(t,e):function(t){var e=window,n=t.getBoundingClientRect();return{left:n.left+e.pageXOffset,top:n.top+e.pageYOffset,width:n.width,height:n.height}}(t)},t.prototype.focus=function(t){t&&t===this.el||(this.el=t,this.updateContainer({forceShow:!0}),(0,yt.on)(this.getDocumentEl(),"pointerdown",this.handleMouseDown))},t.prototype.blur=function(){this.container.style.display="none",this.el&&((0,yt.AU)(this.getDocumentEl(),"pointerdown",this.handleMouseDown),delete this.el)},t.prototype.start=function(t){var e=t;if(0===e.button){e.preventDefault(),e.stopPropagation();var n=this.el,r=this.getParentEl(),o=this.opts||{},a=this.mousePosFetcher,s="data-"+o.prefix+"handler",l=this.getElementPos(n,{avoidFrameZoom:!0,avoidFrameOffset:!0}),c=this.getElementPos(r),u=e.target;this.handlerAttr=u.getAttribute(s),this.clickedHandler=u,this.startDim={t:l.top,l:l.left,w:l.width,h:l.height},this.rectDim={t:l.top,l:l.left,w:l.width,h:l.height},this.startPos=a?a(e):{x:e.clientX,y:e.clientY},this.parentDim={t:c.top,l:c.left,w:c.width,h:c.height};var p=this.getDocumentEl();this.docs=p,(0,yt.on)(p,"pointermove",this.move),(0,yt.on)(p,"keydown",this.handleKeyDown),(0,yt.on)(p,"pointerup",this.stop),(0,i.isFunction)(this.onStart)&&this.onStart(e,{docs:p,config:o,el:n,resizer:this}),this.toggleFrames(!0),this.move(e)}},t.prototype.move=function(t){var e=t,n=this.onMove,r=this.mousePosFetcher,o=r?r(e):{x:e.clientX,y:e.clientY};this.currentPos=o,this.delta={x:o.x-this.startPos.x,y:o.y-this.startPos.y},this.keys={shift:e.shiftKey,ctrl:e.ctrlKey,alt:e.altKey},this.rectDim=this.calc(this),this.updateRect(!1),n&&n(e)},t.prototype.stop=function(t){var e=this.el,n=this.opts,r=this.docs||this.getDocumentEl();(0,yt.AU)(r,"pointermove",this.move),(0,yt.AU)(r,"keydown",this.handleKeyDown),(0,yt.AU)(r,"pointerup",this.stop),this.updateRect(!0),this.toggleFrames(),(0,i.isFunction)(this.onEnd)&&this.onEnd(t,{docs:r,config:n,el:e,resizer:this}),delete this.docs},t.prototype.updateRect=function(t){var e=this.el,n=this.opts,r=this.rectDim,o=this.updateTarget,a=this.getSelectedHandler(),s=n.unitHeight,l=n.unitWidth,c=n.keyWidth,u=n.keyHeight;if((0,i.isFunction)(o))o(e,r,{store:t,selectedHandler:a,resizer:this,config:n});else{var p=e.style;p[c]=r.w+l,p[u]=r.h+s}this.updateContainer()},t.prototype.updateContainer=function(t){var e;void 0===t&&(t={});var n=this,r=n.opts,o=n.container,i=n.el,a=o.style;!r.avoidContainerUpdate&&i&&t.forceShow&&(a.display="block"),null===(e=this.onUpdateContainer)||void 0===e||e.call(this,{el:o,resizer:this,opts:ku(ku({},r),t)})},t.prototype.getSelectedHandler=function(){var t=this.handlers;if(this.selectedHandler)for(var e in t)if(t[e]===this.selectedHandler)return e},t.prototype.handleKeyDown=function(t){27===t.keyCode&&(this.rectDim=this.startDim,this.stop(t))},t.prototype.handleMouseDown=function(t){var e=t.target;this.isHandler(e)?(this.selectedHandler=e,this.start(t)):e!==this.el&&(delete this.selectedHandler,this.blur())},t.prototype.calc=function(t){var e,n=this.opts||{},r=n.step,o=this.startDim,i=n.minDim,s=n.maxDim,l=t.delta.x,c=t.delta.y,u=this.parentDim.w,p=this.parentDim.h,d=this.opts.unitWidth,f=this.opts.unitHeight,h="%"===d?o.w/100*u:o.w,g="%"===f?o.h/100*p:o.h,m={t:o.t,l:o.l,w:h,h:g};if(t){var v=t.handlerAttr;~v.indexOf("r")&&(e="%"===d?(0,a.normalizeFloat)((h+l*r)/u*100,.01):(0,a.normalizeFloat)(h+l*r,r),e=Math.max(i,e),s&&(e=Math.min(s,e)),m.w=e),~v.indexOf("b")&&(e="%"===f?(0,a.normalizeFloat)((g+c*r)/p*100,.01):(0,a.normalizeFloat)(g+c*r,r),e=Math.max(i,e),s&&(e=Math.min(s,e)),m.h=e),~v.indexOf("l")&&(e="%"===d?(0,a.normalizeFloat)((h-l*r)/u*100,.01):(0,a.normalizeFloat)(h-l*r,r),e=Math.max(i,e),s&&(e=Math.min(s,e)),m.w=e),~v.indexOf("t")&&(e="%"===f?(0,a.normalizeFloat)((g-c*r)/p*100,.01):(0,a.normalizeFloat)(g-c*r,r),e=Math.max(i,e),s&&(e=Math.min(s,e)),m.h=e);var y=n.ratioDefault?!t.keys.shift:t.keys.shift;if(v.indexOf("c")<0&&y){var b=o.w/o.h;m.w/m.h>b?m.h=Math.round(m.w/b):m.w=Math.round(m.h*b)}for(var _ in~v.indexOf("l")&&(m.l+=o.w-m.w),~v.indexOf("t")&&(m.t+=o.h-m.h),m){var w=_;m[w]=parseInt("".concat(m[w]),10)}return m}},t}();const ju=Pu;var Nu=function(){return Nu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Nu.apply(this,arguments)};function Lu(t){var e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}}function Du(t,e){return a.matches.call(t,e)}function Iu(t){return t?[t].concat(Iu(t.parent())):[]}var Ru=function(){function t(t){this.timeout=null,this.threshold=t}return t.prototype.updateArgs=function(t){this.lastArgs=t},t.prototype.execute=function(t){var e=this;this.timeout||(this.timeout=setTimeout((function(){e.lastArgs&&t(e.lastArgs),e.timeout=null}),this.threshold))},t.prototype.clearTimeout=function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=null),delete this.lastArgs},t}(),Mu=function(){return Mu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Mu.apply(this,arguments)},Bu=function(){function t(t){this.top=t.top,this.left=t.left,this.height=t.height,this.width=t.width,this.offsets=t.offsets,this.dir=t.dir}return t.prototype.calculateDimensionDifference=function(t){return{topDifference:t.top-this.top,leftDifference:t.left-this.left}},t.prototype.adjustDimensions=function(t){return this.top+=t.topDifference,this.left+=t.leftDifference,this},t.prototype.determinePlacement=function(t,e){var n=this.left+this.width/2,r=this.top+this.height/2;return this.dir?e<r?"before":"after":t<n?"before":"after"},t.prototype.equals=function(t){return!!t&&this.top===t.top&&this.left===t.left&&this.height===t.height&&this.width===t.width&&this.dir===t.dir&&JSON.stringify(this.offsets)===JSON.stringify(t.offsets)},t.prototype.clone=function(){return new t({top:this.top,left:this.left,height:this.height,width:this.width,offsets:Mu({},this.offsets),dir:this.dir})},t.prototype.getDropArea=function(t){var e=this.clone(),n=this.adjustDropDimension(this.width,this.left,t),r=n.newSize,o=n.newPosition;e.width=r,e.left=o;var i=this.adjustDropDimension(this.height,this.top,t),a=i.newSize,s=i.newPosition;return e.height=a,e.top=s,e},t.prototype.adjustDropDimension=function(t,e,n){var r=n.ratio,o=n.minUndroppableDimension,i=n.maxUndroppableDimension,a=t*(1-r)/2;return a=Math.max(a,o),{newSize:t-2*(a=Math.min(a,i)),newPosition:e+a}},t.prototype.isWithinBounds=function(t,e){return t>=this.left&&t<=this.left+this.width&&e>=this.top&&e<=this.top+this.height},t}();const Fu=Bu;var Uu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hu=function(){return Hu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Hu.apply(this,arguments)},Vu=function(t){function e(e){var n=t.call(this)||this;return n.sourceNodes=[],n.containerOffset={top:0,left:0},n.moveThreshold=20,n.treeClass=e.treeClass,n.em=e.em,n.containerContext=e.containerContext,n.positionOptions=e.positionOptions,n.dragDirection=e.dragDirection,n.eventHandlers=e.eventHandlers,(0,i.bindAll)(n,"endDrag","cancelDrag","recalculateTargetOnScroll","startSort","onDragStart","onMove"),n.restLastMoveData(),n.rateLimiter=new Ru(n.moveThreshold),n}return Uu(e,t),e.prototype.startSort=function(t){this.sourceNodes=t,this.bindDragEventHandlers()},e.prototype.bindDragEventHandlers=function(){(0,yt.on)(this.containerContext.container,"dragstart",this.onDragStart),(0,yt.on)(this.containerContext.container,"mousemove dragover",this.onMove),(0,yt.on)(this.containerContext.document,"mouseup dragend touchend",this.endDrag)},e.prototype.recalculateTargetOnScroll=function(){var t=this.lastMoveData.mouseEvent;t&&this.onMove(t)},e.prototype.onMove=function(t){this.rateLimiter.updateArgs(t),this.rateLimiter.execute(this.handleMove.bind(this))},e.prototype.handleMove=function(t){var e,n,r,o,i,a;this.adjustForScroll();var s=this.lastMoveData.targetNode;null===(n=(e=this.eventHandlers).onMouseMove)||void 0===n||n.call(e,t);var l=this.getMousePositionRelativeToContainer(t.clientX,t.clientY),c=l.mouseXRelative,u=l.mouseYRelative,p=this.getTargetNode(t);if(!(null==p?void 0:p.equals(s))&&(null===(o=(r=this.eventHandlers).onTargetChange)||void 0===o||o.call(r,s,p)),!p)return this.triggerLegacyOnMoveCallback(t,0),this.triggerMoveEvent(c,u),void this.restLastMoveData();var d=this.getDropPosition(p,c,u),f=d.index,h=d.placement,g=d.placeholderDimensions;(!g.equals(this.lastMoveData.placeholderDimensions)||h!==this.lastMoveData.placement)&&(null===(a=(i=this.eventHandlers).onPlaceholderPositionChange)||void 0===a||a.call(i,g,h)),this.lastMoveData=Hu(Hu({},this.lastMoveData),{targetNode:p,mouseEvent:t,index:f,placement:h,placeholderDimensions:g}),this.triggerMoveEvent(c,u),this.triggerLegacyOnMoveCallback(t,f)},e.prototype.adjustForScroll=function(){var t,e,n=this.lastMoveData.targetNode;if(null==n?void 0:n.element){var r=this.getDim(null==n?void 0:n.element);(o=null===(t=n.nodeDimensions)||void 0===t?void 0:t.calculateDimensionDifference(r))&&n.adjustDimensions(o)}var o,i=this.lastMoveData.hoveredNode;(null==i?void 0:i.element)&&(r=this.getDim(null==i?void 0:i.element),(o=null===(e=i.nodeDimensions)||void 0===e?void 0:e.calculateDimensionDifference(r))&&i.adjustDimensions(o))},e.prototype.restLastMoveData=function(){this.lastMoveData={targetNode:void 0,index:void 0,placement:void 0,mouseEvent:void 0}},e.prototype.triggerLegacyOnMoveCallback=function(t,e){var n,r,o,i,a=null===(n=this.sourceNodes[0])||void 0===n?void 0:n.model;null===(o=(r=this.eventHandlers).legacyOnMoveClb)||void 0===o||o.call(r,{event:t,target:a,parent:null===(i=this.lastMoveData.targetNode)||void 0===i?void 0:i.model,index:e})},e.prototype.triggerMoveEvent=function(t,e){var n,r=this.lastMoveData,o=r.targetNode,i=r.placement,a=r.index,s=a?a+("after"===i?-1:0):0;this.em.trigger("sorter:drag",{target:(null==o?void 0:o.element)||null,targetModel:null===(n=this.lastMoveData.targetNode)||void 0===n?void 0:n.model,sourceModel:this.sourceNodes[0].model,dims:(null==o?void 0:o.childrenDimensions)||[],pos:{index:s,indexEl:s,placement:i},x:t,y:e})},e.prototype.getDropPosition=function(t,e,n){var r,o=t.nodeDimensions,i=t.childrenDimensions,a=t.getChildren(),s=a&&a.length>0;o=o||this.getDim(t.element),t.nodeDimensions=o,i=i||this.getChildrenDim(t),t.childrenDimensions=i;var l=o.clone(),c=0,u="inside";return s&&(c=(r=function(t,e,n){for(var r,o={index:0,placement:"before"},i=0,a=0,s=0,l=0,c=0,u=0,p=0,d=t.length;p<d;p++){var f=(r=t[p]).top,h=r.left,g=r.height,m=r.width;if(u=f+g,l=h+m/2,c=f+g/2,!(a&&h>a||s&&c>=s||i&&h+m<i))if(o.index=p,r.dir){if(n<c){o.placement="before";break}o.placement="after"}else n<u&&(s=u),e<l?(a=l,o.placement="before"):(i=l,o.placement="after")}return o}(i,e,n)).index,u=r.placement,l=i[c].clone(),c+="after"==u?1:0),{index:c,placement:u,placeholderDimensions:l}},e.prototype.getTargetNode=function(t){var e;this.cacheContainerPosition(this.containerContext.container);var n=this.getMousePositionRelativeToContainer(t.clientX,t.clientY),r=n.mouseXRelative,o=n.mouseYRelative,i=this.getMouseTargetElement(t),a=this.getFirstElementWithAModel(i);if(a){var s=null===(e=(0,p.default)(a))||void 0===e?void 0:e.data("model");if(s){var l=this.getOrCreateHoveredNode(s),c=this.getDropPosition(l,r,o).index,u=this.getValidParent(l,c,r,o);return this.getOrReuseTargetNode(u)}}},e.prototype.getOrCreateHoveredNode=function(t){var e=this.lastMoveData.hoveredNode,n=new this.treeClass(t),r=n.equals(e)?e:n;return this.lastMoveData.hoveredNode=r,r},e.prototype.getOrReuseTargetNode=function(t){var e=this.lastMoveData.targetNode;return(null==t?void 0:t.equals(e))?e:t},e.prototype.getMouseTargetElement=function(t){var e=this.containerContext.customTarget,n=this.containerContext.document.elementFromPoint(t.clientX,t.clientY);return e?e({event:t}):n},e.prototype.onDragStart=function(t){this.eventHandlers.onDragStart&&this.eventHandlers.onDragStart(t)},e.prototype.endDrag=function(){this.dropDragged()},e.prototype.cancelDrag=function(){var t,e,n=this.lastMoveData.targetNode;null===(e=(t=this.eventHandlers).onTargetChange)||void 0===e||e.call(t,n,void 0),this.finalizeMove()},e.prototype.finalizeMove=function(){var t,e,n,r;this.cleanupEventListeners(),this.triggerOnDragEndEvent(),null===(e=(t=this.eventHandlers).onEnd)||void 0===e||e.call(t),null===(r=(n=this.eventHandlers).legacyOnEnd)||void 0===r||r.call(n),this.restLastMoveData(),this.rateLimiter.clearTimeout()},e.prototype.dropDragged=function(){var t,e,n=this.lastMoveData,r=n.targetNode,o=n.index;null===(e=(t=this.eventHandlers).onDrop)||void 0===e||e.call(t,r,this.sourceNodes,o),this.finalizeMove()},e.prototype.triggerOnDragEndEvent=function(){var t=this.lastMoveData.targetNode,e=this.sourceNodes[0];this.em.trigger("sorter:drag:end",{targetCollection:t?t.getChildren():null,modelToDrop:null==e?void 0:e.model,warns:[""],validResult:{result:!0,src:this.sourceNodes.map((function(t){return t.element})),srcModel:null==e?void 0:e.model,trg:null==t?void 0:t.element,trgModel:null==t?void 0:t.model,draggable:!0,droppable:!0},dst:null==t?void 0:t.element,srcEl:null==e?void 0:e.element})},e.prototype.getFirstElementWithAModel=function(t){for(var e;t&&this.containerContext.container.contains(t);){if(e=t,void 0!==(0,p.default)(e).data("model"))return t;t=t.parentElement}return null},e.prototype.getValidParent=function(t,e,n,r){if(t){var o=this.lastMoveData.targetNode,i=t.equals(o);if(t.nodeDimensions=i?o.nodeDimensions:this.getDim(t.element),!t.isWithinDropBounds(n,r))return this.handleParentTraversal(t,n,r);if(i&&e===this.lastMoveData.index)return o;var a=this.sourceNodes.some((function(n){return t.canMove(n,e)}));return this.triggerDragValidation(a,t),a?t:this.handleParentTraversal(t,n,r)}},e.prototype.handleParentTraversal=function(t,e,n){var r=t.getParent();if(r){var o=this.getIndexInParent(r,t,t.nodeDimensions,e,n);return this.getValidParent(r,o,e,n)}},e.prototype.getIndexInParent=function(t,e,n,r,o){var i=null==t?void 0:t.indexOfChild(e);return n.dir=this.getDirection(e.element,t.element),i+("after"==n.determinePlacement(r,o)?1:0)},e.prototype.triggerDragValidation=function(t,e){var n=this.sourceNodes[0];return this.em.trigger("sorter:drag:validation",{valid:t,src:null==n?void 0:n.element,srcModel:null==n?void 0:n.model,trg:e.element,trgModel:e.model}),n},e.prototype.cleanupEventListeners=function(){var t=this.containerContext.container;(0,yt.AU)(t,"dragstart",this.onDragStart),(0,yt.AU)(t,"mousemove dragover",this.onMove),(0,yt.AU)(this.containerContext.document,"mouseup dragend touchend",this.endDrag)},e.prototype.getDirection=function(t,e){var n;return n=this.dragDirection===Fn.A.Vertical||this.dragDirection!==Fn.A.Horizontal&&function(t,e){if((0,yt.ir)(t))return!1;var n=t.style||{},r=(0,p.default)(t),o=(0,p.default)(e);if(n.overflow&&"visible"!==n.overflow)return!1;var i=r.css("float");return(!i||"none"===i)&&("flex"!==o.css("display")||"column"===o.css("flex-direction"))&&!!function(t){switch(t){case"static":case"relative":case"":return!0;default:return!1}}(n.position)&&(function(t){return["TR","TBODY","THEAD","TFOOT"].includes(t.tagName)}(t)||function(t){var e=t.css("display");return["block","list-item","table","flex","grid"].includes(e)}(r))}(t,e),n},e.prototype.getChildrenDim=function(t){var e=this,n=[],r=t.element;if(!r)return[];var o=t.getChildren();return o&&0!==o.length?((0,i.each)(o,(function(t,o){var i=t.element;if(i&&((0,yt.ir)(i)||Du(i,e.containerContext.itemSel))){var a=e.getDim(i);a.dir=e.getDirection(i,r),n.push(a)}})),n):[]},e.prototype.getMousePositionRelativeToContainer=function(t,e){var n=e-this.containerOffset.top+this.containerContext.container.scrollTop,r=t-this.containerOffset.left+this.containerContext.container.scrollLeft;if(this.positionOptions.canvasRelative){var o=this.em.Canvas.getMouseRelativeCanvas({clientX:t,clientY:e},{noScroll:1});r=o.x,n=o.y}return{mouseXRelative:r,mouseYRelative:n}},e.prototype.cacheContainerPosition=function(t){var e=Lu(t),n=this.positionOptions.windowMargin?Math.abs(e.top):e.top,r=this.positionOptions.windowMargin?Math.abs(e.left):e.left;this.containerOffset={top:n,left:r}},e.prototype.getDim=function(t){var e,n,r,o,i=this.em,a=this.positionOptions.relative,s=this.positionOptions.windowMargin,l=null==i?void 0:i.Canvas,c=l?l.getElementOffsets(t):{};if(this.positionOptions.canvasRelative&&this.em){var u=l.getElementPos(t,{noScroll:1});e=u.top,n=u.left,r=u.height,o=u.width}else{var p=Lu(t);e=a?t.offsetTop:p.top-(s?-1:1)*this.containerOffset.top,n=a?t.offsetLeft:p.left-(s?-1:1)*this.containerOffset.left,r=t.offsetHeight,o=t.offsetWidth}return new Fu({top:e,left:n,height:r,width:o,offsets:c})},e}(d.Ss),qu=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zu=function(t){function e(e){var n=t.call(this)||this;return n.pfx=e.pfx||"",n.allowNesting=e.allowNesting||!1,n.container=e.container,n.setElement(e.el),n.offset={top:e.offset.top||0,left:e.offset.left||0},n.moveLimiter=new Ru(100),n}return qu(e,t),e.prototype.show=function(){this.el.style.display="block"},e.prototype.hide=function(){this.moveLimiter.clearTimeout(),this.el.style.display="none"},e.prototype.move=function(t,e){var n=this,r={elementDimension:t,placement:e};this.moveLimiter.updateArgs(r),this.moveLimiter.execute((function(t){var e=t.elementDimension,r=t.placement;n._move(e,r)}))},e.prototype._move=function(t,e){var n=0,r=0,o="",i="";this.setOrientationForDimension(t);var a=t.top,s=t.left,l=t.height,c=t.width,u=t.dir,p=t.offsets;if("inside"===e){if(this.setOrientation("horizontal"),!this.allowNesting)return void this.hide();var d=(null==p?void 0:p.paddingTop)||5,f=(null==p?void 0:p.paddingLeft)||5,h=(null==p?void 0:p.borderTopWidth)||0,g=(null==p?void 0:p.borderLeftWidth)||0,m=g+((null==p?void 0:p.borderRightWidth)||0);n=a+d+h,r=s+f+g,o=Math.max(c-2*f-m,1)+"px",i="auto"}else u?(o=c+"px",i="auto",n="before"===e?a-0:a+l-0,r=s):(o="auto",i=l-0+"px",n=a+0,r="before"===e?s-0:s+c-0,this.setOrientation("vertical"));this.updateStyles(n,r,o,i),this.adjustOffset()},e.prototype.setOrientationForDimension=function(t){this.el.classList.remove("vertical"),this.el.classList.add("horizontal"),t&&!t.dir&&this.setOrientation("vertical")},e.prototype.setOrientation=function(t){this.el.classList.remove("horizontal"),this.el.classList.remove("vertical"),this.el.classList.add(t)},e.prototype.updateStyles=function(t,e,n,r){this.el.style.top=t+"px",this.el.style.left=e+"px",n&&(this.el.style.width=n),r&&(this.el.style.height=r)},e.prototype.adjustOffset=function(){this.$el.css("top","+="+this.offset.top+"px"),this.$el.css("left","+="+this.offset.left+"px")},e}(d.Ss),Wu=function(){return Wu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Wu.apply(this,arguments)},Gu=function(){function t(t){var e=function(t){var e={containerContext:{container:"",placeholderElement:"",containerSel:"*",itemSel:"*",pfx:"",document},positionOptions:{borderOffset:10,relative:!1,windowMargin:0,offsetTop:0,offsetLeft:0,scale:1,canvasRelative:!1},dragBehavior:{dragDirection:Fn.A.Vertical,nested:!1,selectOnEnd:!0},eventHandlers:{}};return Nu(Nu(Nu({},e),t),{containerContext:Nu(Nu({},e.containerContext),t.containerContext),positionOptions:Nu(Nu({},e.positionOptions),t.positionOptions),dragBehavior:Nu(Nu({},e.dragBehavior),t.dragBehavior),eventHandlers:Nu(Nu({},e.eventHandlers),t.eventHandlers)})}(t);(0,i.bindAll)(this,"startSort","cancelDrag","recalculateTargetOnScroll","rollback","updateOffset","handlePlaceholderMove","finalizeMove"),this.containerContext=e.containerContext,this.positionOptions=e.positionOptions,this.dragBehavior=e.dragBehavior,this.eventHandlers=Wu(Wu({},e.eventHandlers),{onPlaceholderPositionChange:this.handlePlaceholderMove,onEnd:this.finalizeMove}),this.em=t.em,this.treeClass=t.treeClass,this.updateOffset(),this.em.on(this.em.Canvas.events.refresh,this.updateOffset),this.placeholder=this.createPlaceholder(),this.dropLocationDeterminer=new Vu({em:this.em,treeClass:this.treeClass,containerContext:this.containerContext,positionOptions:this.positionOptions,dragDirection:this.dragBehavior.dragDirection,eventHandlers:this.eventHandlers})}return t.prototype.startSort=function(t){var e,n,r,o,i,a,s,l=this.getSourceNodes(t),c=l.sourceNodes,u=l.sourcesWithModel;this.sourceNodes=c,this.dropLocationDeterminer.startSort(c),this.bindDragEventHandlers(),null===(n=(e=this.eventHandlers).onStartSort)||void 0===n||n.call(e,this.sourceNodes,this.containerContext.container);var p=null===(r=this.sourceNodes[0])||void 0===r?void 0:r.model;null===(i=(o=this.eventHandlers).legacyOnStartSort)||void 0===i||i.call(o,{sorter:this,target:p,parent:p&&(null===(a=p.parent)||void 0===a?void 0:a.call(p)),index:p&&(null===(s=p.index)||void 0===s?void 0:s.call(p))}),this.em.trigger("sorter:drag:start",t[0],u[0])},t.prototype.validTarget=function(t,e,n){if(!t)return!1;var r=(0,p.default)(t).data("model");if(!r)return!1;var o=new this.treeClass(r);return this.getSourceNodes(e).sourceNodes.some((function(t){return o.canMove(t,n)}))},t.prototype.getSourceNodes=function(t){var e=this,n=t.filter((function(t){return!!t.dragSource||e.findValidSourceElement(t.element)})).map((function(t){var e;return{model:null===(e=(0,p.default)(t.element))||void 0===e?void 0:e.data("model"),content:t.dragSource}}));return{sourceNodes:n.sort((function(t,e){return function(t,e){var n=Iu(t),r=Iu(e),o=r.filter((function(t){return n.includes(t)}))[0];if(!o)return t.model.index()-e.model.index();var i=r[r.indexOf(o)-1];return n[n.indexOf(o)-1].index()-i.index()}(t.model,e.model)})).map((function(t){return new e.treeClass(t.model,t.content)})),sourcesWithModel:n}},t.prototype.recalculateTargetOnScroll=function(){this.dropLocationDeterminer.recalculateTargetOnScroll()},t.prototype.cancelDrag=function(){this.triggerNullOnEndMove(!0),this.dropLocationDeterminer.cancelDrag()},t.prototype.endDrag=function(){this.dropLocationDeterminer.endDrag()},t.prototype.handlePlaceholderMove=function(t,e){this.ensurePlaceholderElement(),this.updatePlaceholderPosition(t,e)},t.prototype.createPlaceholder=function(){return new zu({container:this.containerContext.container,allowNesting:this.dragBehavior.nested,pfx:this.containerContext.pfx,el:this.containerContext.placeholderElement,offset:{top:this.positionOptions.offsetTop,left:this.positionOptions.offsetLeft}})},t.prototype.ensurePlaceholderElement=function(){var t=this.placeholder.el,e=this.containerContext.container;t.ownerDocument.contains(t)||e.append(this.placeholder.el)},t.prototype.updateOffset=function(){var t,e=(null===(t=this.em)||void 0===t?void 0:t.get("canvasOffset"))||{};this.positionOptions.offsetTop=e.top,this.positionOptions.offsetLeft=e.left},t.prototype.findValidSourceElement=function(t){return t&&!Du(t,"".concat(this.containerContext.itemSel,", ").concat(this.containerContext.containerSel))&&(t=function(t,e){if(t)for(var n=t.parentNode;n&&1===n.nodeType;){if(Du(n,e))return n;n=n.parentNode}}(t,this.containerContext.itemSel)),t},t.prototype.bindDragEventHandlers=function(){(0,yt.on)(this.containerContext.document,"keydown",this.rollback)},t.prototype.updatePlaceholderPosition=function(t,e){this.placeholder.move(t,e)},t.prototype.cleanupEventListeners=function(){(0,yt.AU)(this.containerContext.document,"keydown",this.rollback)},t.prototype.finalizeMove=function(){this.cleanupEventListeners(),this.placeholder.hide(),delete this.sourceNodes},t.prototype.rollback=function(t){(0,yt.AU)(this.containerContext.document,"keydown",this.rollback),"Escape"===t.key&&this.cancelDrag()},t.prototype.triggerNullOnEndMove=function(t){var e,n,r,o,i,a=null===(e=this.sourceNodes)||void 0===e?void 0:e[0].model,s={target:a,parent:a&&(null===(n=a.parent)||void 0===n?void 0:n.call(a)),index:a&&(null===(r=a.index)||void 0===r?void 0:r.call(a))};null===(i=(o=this.eventHandlers).legacyOnEndMove)||void 0===i||i.call(o,null,this,Wu(Wu({},s),{cancelled:t}))},t}();const Yu=Gu;var Ku=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$u=function(){return $u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$u.apply(this,arguments)},Xu={id:"sorter-target",type:lt.F.Target},Zu=function(t){function e(e){var n=e.em,r=e.treeClass,o=e.containerContext,a=e.dragBehavior,s=e.positionOptions,l=void 0===s?{}:s,c=e.eventHandlers,u=void 0===c?{}:c,p=t.call(this,{em:n,treeClass:r,containerContext:o,positionOptions:l,dragBehavior:a,eventHandlers:$u($u({},u),{onStartSort:function(t,e){var n;null===(n=u.onStartSort)||void 0===n||n.call(u,t,e),p.onStartSort()},onDrop:function(t,e,n){var r;null===(r=u.onDrop)||void 0===r||r.call(u,t,e,n),p.onDrop(t,e,n)},onTargetChange:function(t,e){var n;null===(n=u.onTargetChange)||void 0===n||n.call(u,t,e),p.onTargetChange(t,e)},onMouseMove:function(t){var e;null===(e=u.onMouseMove)||void 0===e||e.call(u,t),p.onMouseMove(t)}})})||this;return p.targetIsText=!1,p.onMouseMove=function(t){var e;p.targetIsText&&(null===(e=p.sourceNodes)||void 0===e?void 0:e.some((function(t){return t.isTextable()})))&&p.updateTextViewCursorPosition(t)},p.onDrop=function(t,e,n){var r="number"==typeof n?n:-1;t&&e.length>0?0===p.handleNodeAddition(t,e,r).length&&p.triggerNullOnEndMove(!1):p.triggerNullOnEndMove(!0),null==t||t.restNodeState(),p.placeholder.hide()},p.onTargetChange=function(t,e){var n;null==t||t.restNodeState();var r=p.em.Canvas;if(!e)return p.placeholder.hide(),void r.removeSpots(Xu);null==e||e.setSelectedParentState(),p.targetIsText=e.isTextNode(),p.targetIsText&&(null===(n=p.sourceNodes)||void 0===n?void 0:n.some((function(t){return t.isTextable()})))?(e.setContentEditable(!0),p.placeholder.hide()):p.placeholder.show(),[lt.F.Select,lt.F.Hover,lt.F.Spacing].forEach((function(t){return r.removeSpots({type:t})})),r.addSpot($u($u({},Xu),{component:e.model}))},(0,i.bindAll)(p,"handleScrollEvent"),p}return Ku(e,t),e.prototype.onStartSort=function(){this.em.clearSelection(),this.setAutoCanvasScroll(!0)},e.prototype.bindDragEventHandlers=function(){this.em.on("frame:scroll",this.handleScrollEvent),t.prototype.bindDragEventHandlers.call(this)},e.prototype.cleanupEventListeners=function(){this.em.off("frame:scroll",this.handleScrollEvent),t.prototype.cleanupEventListeners.call(this)},e.prototype.handleScrollEvent=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=null===(t=null==e?void 0:e[0])||void 0===t?void 0:t.frame;this.em.Canvas.getCanvasView().frame===r&&this.recalculateTargetOnScroll()},e.prototype.handleNodeAddition=function(t,e,n){var r=this;return e.reduce((function(e,o){if(!t.canMove(o,n))return e;if(r.isPositionChanged(t,o,n)){var i=r.moveNode(t,o,n),a=i.index,s=i.addedNode;e.push(s),n=a}return n++,e}),[])},e.prototype.isPositionChanged=function(t,e,n){var r=e.getParent(),o=r?r.indexOfChild(e):-1;(null==r?void 0:r.model.cid)===t.model.cid&&o<n&&n--;var i=(null==r?void 0:r.model.cid)===t.model.cid,a=o===n,s=this.targetIsText&&e.isTextable();return!(i&&a&&!s)},e.prototype.moveNode=function(t,e,n){var r=e.getParent();if(r){var o=r.indexOfChild(e);r.removeChildAt(o,{temporary:!0}),r.model.cid===t.model.cid&&o<n&&n--}var i=t.addChildAt(e,n,{action:"move-component"});return this.triggerEndMoveEvent(i),{addedNode:i,index:n}},e.prototype.triggerEndMoveEvent=function(t){var e,n,r,o,i,a;null===(n=(e=this.eventHandlers).legacyOnEndMove)||void 0===n||n.call(e,t.model,this,{target:t.model,parent:t.model&&(null===(o=(r=t.model).parent)||void 0===o?void 0:o.call(r)),index:t.model&&(null===(a=(i=t.model).index)||void 0===a?void 0:a.call(i))})},e.prototype.finalizeMove=function(){var e,n;null===(e=this.em)||void 0===e||e.Canvas.removeSpots(Xu),null===(n=this.sourceNodes)||void 0===n||n.forEach((function(t){return t.restNodeState()})),this.setAutoCanvasScroll(!1),t.prototype.finalizeMove.call(this)},e.prototype.updateTextViewCursorPosition=function(t){var e=this.em;if(e){var n=e.Canvas,r=n.getDocument(),o=null,i=(0,yt.G2)(t);if(r.caretPositionFromPoint){var a=r.caretPositionFromPoint(i.clientX,i.clientY);a&&(o=r.createRange()).setStart(a.offsetNode,a.offset)}else r.caretRangeFromPoint?o=r.caretRangeFromPoint(i.clientX,i.clientY):t.rangeParent&&(o=r.createRange()).setStart(t.rangeParent,t.rangeOffset);var s=n.getWindow().getSelection();n.getFrameEl().focus(),null==s||s.removeAllRanges(),o&&(null==s||s.addRange(o))}},e.prototype.setAutoCanvasScroll=function(t){var e=this.em,n=null==e?void 0:e.Canvas;n&&(t?n.startAutoscroll():n.stopAutoscroll())},e}(Yu);const Qu=Zu;var Ju=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tp=function(){return tp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tp.apply(this,arguments)},ep=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ju(e,t),e.prototype.defaults=function(){return{values:{}}},e.prototype.initialize=function(){var t=this.collection;this.prop=null==t?void 0:t.prop},e.prototype.getId=function(){return this.cid},e.prototype.getIndex=function(){var t=this.collection;return t?t.indexOf(this):-1},e.prototype.getValues=function(t){void 0===t&&(t={});var e=this.get("values");return t.camelCase?Object.keys(e).reduce((function(t,n){return t[(0,a.camelCase)(n)]=e[n],t}),{}):e},e.prototype.getLabel=function(){var t;return null===(t=this.prop)||void 0===t?void 0:t.getLayerLabel(this)},e.prototype.isSelected=function(){var t;return(null===(t=this.prop)||void 0===t?void 0:t.getSelectedLayer())===this},e.prototype.select=function(){var t;return null===(t=this.prop)||void 0===t?void 0:t.selectLayer(this)},e.prototype.remove=function(){var t;return null===(t=this.prop)||void 0===t?void 0:t.removeLayer(this)},e.prototype.move=function(t){var e;return null===(e=this.prop)||void 0===e?void 0:e.moveLayer(this,t)},e.prototype.getStylePreview=function(t){var e;return void 0===t&&(t={}),null===(e=this.prop)||void 0===e?void 0:e.getStylePreview(this,t)},e.prototype.hasPreview=function(){var t;return!!(null===(t=this.prop)||void 0===t?void 0:t.get("preview"))},e.prototype.upValues=function(t){return void 0===t&&(t={}),this.set("values",tp(tp({},this.getValues()),t))},e}(d.Kx);const np=ep;var rp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),op=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rp(e,t),e.prototype.initialize=function(t,e){void 0===e&&(e={}),this.prop=e.prop},e}(d.pM);const ip=op;op.prototype.model=np;var ap=r(3161),sp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lp=function(t){function e(e){return t.call(this,e)||this}return sp(e,t),e.prototype.getChildren=function(){return this.model instanceof ip?this.model.models.map((function(t){return new e(t)})):null},e.prototype.getParent=function(){var t=this.model instanceof np?this.model.collection:null;return t?new e(t):null},e.prototype.addChildAt=function(t,n){if(this.model instanceof np)throw Error("Cannot add a layer model to another layer model");return new e(this.model.add(t.model,{at:n}))},e.prototype.removeChildAt=function(t){if(this.model instanceof np)throw Error("Cannot remove a layer model from another layer model");var e=this.model.at(t);e&&this.model.remove(e)},e.prototype.indexOfChild=function(t){return t.model instanceof np&&this.model instanceof ip?this.model.indexOf(t.model):-1},e.prototype.canMove=function(t,e){return this.model instanceof ip&&!!t.model},Object.defineProperty(e.prototype,"view",{get:function(){return this.model.view},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){var t;return null===(t=this.view)||void 0===t?void 0:t.el},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this._model},enumerable:!1,configurable:!0}),e}(ap.$),cp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),up=function(){return up=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},up.apply(this,arguments)},pp=function(t){function e(e){var n=e.em,r=e.containerContext,o=e.dragBehavior,i=e.positionOptions,a=void 0===i?{}:i,s=e.eventHandlers,l=void 0===s?{}:s,c=t.call(this,{em:n,treeClass:lp,containerContext:r,positionOptions:a,dragBehavior:o,eventHandlers:up({onStartSort:function(t,e){var n;null===(n=l.onStartSort)||void 0===n||n.call(l,t,e),c.onLayerStartSort(t)},onDrop:function(t,e,n){var r;null===(r=l.onDrop)||void 0===r||r.call(l,t,e,n),c.onLayerDrop(t,e,n)},onEnd:function(){c.placeholder.hide()}},l)})||this;return c.onLayerStartSort=function(t){c.em.clearSelection();var e=t[0];c.em.trigger("sorter:drag:start",null==e?void 0:e.element,null==e?void 0:e.model),c.placeholder.show()},c.onLayerDrop=function(t,e,n){if(t){n="number"==typeof n?n:-1;for(var r=0;r<e.length;r++){var o=e[r];if(t.canMove(o,r)){var i=o.getParent(),a=-1;i&&(a=i.indexOfChild(o),i.removeChildAt(a)),n=a<n?n-1:n,t.addChildAt(o,n)}}c.placeholder.hide()}},c}return cp(e,t),e}(Yu);const dp=pp;var fp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hp=function(){return hp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},hp.apply(this,arguments)};const gp=function(t){function e(e){var n=t.call(this,e,"Utils")||this;return n.Sorter=Qu,n.Resizer=ju,n.Dragger=Zn.A,n.ComponentSorter=Qu,n.StyleManagerSorter=dp,n.helpers=hp({},a),n}return fp(e,t),e.prototype.destroy=function(){},e}(_);var mp,vp={},yp={16:!1,18:!1,17:!1,91:!1},bp="all",_p={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},wp={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},Ep=function(t){return wp[t]||t.toUpperCase().charCodeAt(0)},xp=[];for(mp=1;mp<20;mp++)wp["f"+mp]=111+mp;function Cp(t,e){for(var n=t.length;n--;)if(t[n]===e)return n;return-1}function Tp(t,e){if(t.length!=e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}var Ap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};function Op(t){for(mp in yp)yp[mp]=t[Ap[mp]]}function Sp(t){var e,n=t.keyCode,r=Cp(xp,n);if(r>=0&&xp.splice(r,1),93!=n&&224!=n||(n=91),n in yp)for(e in yp[n]=!1,_p)_p[e]==n&&(Pp[e]=!1)}function kp(){for(mp in yp)yp[mp]=!1;for(mp in _p)Pp[mp]=!1}function Pp(t,e,n){var r,o;r=Np(t),void 0===n&&(n=e,e="all");for(var i=0;i<r.length;i++)o=[],(t=r[i].split("+")).length>1&&(o=Lp(t),t=[t[t.length-1]]),t=t[0],(t=Ep(t))in vp||(vp[t]=[]),vp[t].push({shortcut:r[i],scope:e,method:n,key:r[i],mods:o})}for(mp in _p)Pp[mp]=!1;function jp(){return bp||"all"}function Np(t){var e;return""==(e=(t=t.replace(/\s/g,"")).split(","))[e.length-1]&&(e[e.length-2]+=","),e}function Lp(t){for(var e=t.slice(0,t.length-1),n=0;n<e.length;n++)e[n]=_p[e[n]];return e}function Dp(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on"+e,(function(){n(window.event)}))}Pp.setScope=function(t){bp=t||"all"},Pp.getScope=jp,Pp.deleteScope=function(t){var e,n,r;for(e in vp)for(n=vp[e],r=0;r<n.length;)n[r].scope===t?n.splice(r,1):r++},Pp.filter=function(t){var e=(t.target||t.srcElement).tagName;return!("INPUT"==e||"SELECT"==e||"TEXTAREA"==e)},Pp.isPressed=function(t){return"string"==typeof t&&(t=Ep(t)),-1!=Cp(xp,t)},Pp.getPressedKeyCodes=function(){return xp.slice(0)},Pp.unbind=function(t,e){var n,r,o,i,a,s=[];for(n=Np(t),i=0;i<n.length;i++){if((r=n[i].split("+")).length>1&&(s=Lp(r)),t=r[r.length-1],t=Ep(t),void 0===e&&(e=jp()),!vp[t])return;for(o=0;o<vp[t].length;o++)(a=vp[t][o]).scope===e&&Tp(a.mods,s)&&(vp[t][o]={})}},Pp.handlers=vp,Pp.init=function(t){Dp(t.document,"keydown",(function(t){!function(t){var e,n,r,o,i,a;if(e=t.keyCode,-1==Cp(xp,e)&&xp.push(e),93!=e&&224!=e||(e=91),e in yp)for(r in yp[e]=!0,_p)_p[r]==e&&(Pp[r]=!0);else if(Op(t),Pp.filter.call(this,t)&&e in vp)for(a=jp(),o=0;o<vp[e].length;o++)if((n=vp[e][o]).scope==a||"all"==n.scope){for(r in i=n.mods.length>0,yp)(!yp[r]&&Cp(n.mods,+r)>-1||yp[r]&&-1==Cp(n.mods,+r))&&(i=!1);(0!=n.mods.length||yp[16]||yp[18]||yp[17]||yp[91])&&!i||!1===n.method(t,n)&&(t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),t.cancelBubble&&(t.cancelBubble=!0))}}(t)})),Dp(t.document,"keyup",Sp),Dp(t,"focus",kp)};const Ip=Pp;var Rp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mp=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))};(0,a.hasWin)()&&Ip.init(window);var Bp=function(t){function e(e){var n=t.call(this,e,"Keymaps",{defaults:{"core:undo":{keys:"⌘+z, ctrl+z",handler:"core:undo",opts:{prevent:!0}},"core:redo":{keys:"⌘+shift+z, ctrl+shift+z",handler:"core:redo",opts:{prevent:!0}},"core:copy":{keys:"⌘+c, ctrl+c",handler:"core:copy"},"core:paste":{keys:"⌘+v, ctrl+v",handler:"core:paste"},"core:component-next":{keys:"s",handler:"core:component-next"},"core:component-prev":{keys:"w",handler:"core:component-prev"},"core:component-enter":{keys:"d",handler:"core:component-enter"},"core:component-exit":{keys:"a",handler:"core:component-exit"},"core:component-delete":{keys:"backspace, delete",handler:"core:component-delete",opts:{prevent:!0}}}})||this;return n.keymaster=Ip,n.keymaps={},n}return Rp(e,t),e.prototype.onLoad=function(){var t=this.config.defaults;for(var e in t){var n=t[e];this.add(e,n.keys,n.handler,n.opts||{})}},e.prototype.add=function(t,e,n,r){void 0===r&&(r={});var o=this.em,a=o.Commands,s=o.getEditor(),l=o.Canvas,c={id:t,keys:e,handler:n};return this.keymaps[t]&&this.remove(t),this.keymaps[t]=c,Ip(e,(function(e,c){var u={event:e,h:c},p=(0,i.isString)(n)?a.get(n):n;if(!o.isEditing()&&!s.Canvas.isInputFocused()||r.force){r.prevent&&l.getCanvasView().preventDefault(e),(0,i.isFunction)(p)?p(s,0,u):a.runCommand(p,u);var d=[t,c.shortcut,e];o.trigger.apply(o,Mp(["keymap:emit"],d,!1)),o.trigger.apply(o,Mp(["keymap:emit:".concat(t)],d,!1))}}),void 0),o.trigger("keymap:add",c),c},e.prototype.get=function(t){return this.keymaps[t]},e.prototype.getAll=function(){return this.keymaps},e.prototype.remove=function(t){var e=this.em,n=this.get(t);if(n)return delete this.keymaps[t],n.keys.split(", ").forEach((function(t){Ip.unbind(t.trim())})),null==e||e.trigger("keymap:remove",n),n},e.prototype.removeAll=function(){var t=this;return Object.keys(this.keymaps).forEach((function(e){return t.remove(e)})),Ip.handlers={},this},e.prototype.destroy=function(){this.removeAll(),this.keymaps={}},e}(_);const Fp=Bp;var Up=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Hp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Up(e,t),e.prototype.defaults=function(){return{title:"",content:"",attributes:{},open:!1}},e.prototype.open=function(){this.set("open",!0)},e.prototype.close=function(){this.set("open",!1)},e}(E.A);var Vp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qp=function(){return qp=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},qp.apply(this,arguments)},zp=function(t){function e(e){var n=t.call(this,e)||this,r=n.model;return n.listenTo(r,"change:open",n.updateOpen),n.listenTo(r,"change:title",n.updateTitle),n.listenTo(r,"change:content",n.updateContent),n}return Vp(e,t),e.prototype.template=function(t){var e=t.pfx,n=t.ppfx,r=t.content,o=t.title;return'<div class="'.concat(e,"dialog ").concat(n,"one-bg ").concat(n,'two-color">\n      <div class="').concat(e,'header">\n        <div class="').concat(e,'title">').concat(o,'</div>\n        <div class="').concat(e,'btn-close" data-close-modal>&Cross;</div>\n      </div>\n      <div class="').concat(e,'content">\n        <div id="').concat(e,'c">').concat(r,'</div>\n        <div style="clear:both"></div>\n      </div>\n    </div>\n    <div class="').concat(e,'collector" style="display: none"></div>')},e.prototype.events=function(){return{click:"onClick","click [data-close-modal]":"hide"}},e.prototype.onClick=function(t){this.config.backdrop&&t.target===this.el&&this.hide()},e.prototype.getCollector=function(){return this.$collector||(this.$collector=this.$el.find("."+this.pfx+"collector")),this.$collector},e.prototype.getContent=function(){var t=this.pfx;return this.$content||(this.$content=this.$el.find(".".concat(t,"content #").concat(t,"c"))),this.$content},e.prototype.getTitle=function(t){return void 0===t&&(t={}),this.$title||(this.$title=this.$el.find("."+this.pfx+"title")),t.$?this.$title:this.$title.get(0)},e.prototype.updateContent=function(){var t=this.getContent(),e=t.children(),n=this.getCollector(),r=this.model.get("content");e.length&&n.append(e),t.empty().append(r)},e.prototype.updateTitle=function(){var t=this.getTitle({$:!0});t&&t.empty().append(this.model.get("title"))},e.prototype.updateOpen=function(){this.el.style.display=this.model.get("open")?"":"none"},e.prototype.hide=function(){this.model.close()},e.prototype.show=function(){this.model.open()},e.prototype.updateAttr=function(t){var e=this,n=e.pfx,r=e.$el,o=e.el,i=[].slice.call(o.attributes).map((function(t){return t.name}));r.removeAttr(i.join(" ")),r.attr(qp(qp({},t||{}),{class:"".concat(n,"container ").concat(t&&t.class||"").trim()}))},e.prototype.render=function(){var t=this.$el,e=this.model.toJSON();return e.pfx=this.pfx,e.ppfx=this.ppfx,t.html(this.template(e)),this.updateAttr(),this.updateOpen(),this},e}(vt);const Wp=zp;var Gp=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yp=function(t){function e(e){var n=t.call(this,e,"Modal",{stylePrefix:"mdl-",title:"",content:"",backdrop:!0,custom:!1,extend:{}})||this;return n.model=new Hp(n),n.model.on("change:open",(function(t,n){e.trigger("modal:".concat(n?"open":"close"))})),n.model.on("change",(0,i.debounce)((function(){var t=n._evData(),r=n.config.custom;(0,i.isFunction)(r)&&r(t),e.trigger("modal",t)}),0)),n}return Gp(e,t),e.prototype._evData=function(){var t=this,e=this.getTitle(),n=this.getContent(),r=this.model.attributes;return{open:r.open,attributes:r.attributes,title:(0,i.isString)(e)?(0,yt.GZ)(e):e,content:(0,i.isString)(n)?(0,yt.GZ)(n):n.get?n.get(0):n,close:function(){t.close()}}},e.prototype.postRender=function(t){var e=t.model.config.el||t.el,n=this.render();n&&(null==e||e.appendChild(n))},e.prototype.open=function(t){void 0===t&&(t={});var e=t.attributes||{};return t.title&&this.setTitle(t.title),t.content&&this.setContent(t.content),this.model.set("attributes",e),this.model.open(),this.modal&&this.modal.updateAttr(e),this},e.prototype.close=function(){return this.model.close(),this},e.prototype.onceClose=function(t){return this.em.once("modal:close",t),this},e.prototype.onceOpen=function(t){return this.em.once("modal:open",t),this},e.prototype.isOpen=function(){return!!this.model.get("open")},e.prototype.setTitle=function(t){return this.model.set("title",t),this},e.prototype.getTitle=function(){return this.model.get("title")},e.prototype.setContent=function(t){return this.model.set("content"," "),this.model.set("content",t),this},e.prototype.getContent=function(){return this.model.get("content")},e.prototype.getContentEl=function(){var t;return null===(t=this.modal)||void 0===t?void 0:t.getContent().get(0)},e.prototype.getModel=function(){return this.model},e.prototype.render=function(){var t;if(!this.config.custom){var e=Wp.extend(this.config.extend),n=this.modal&&this.modal.el;return this.modal=new e({el:n,model:this.model,config:this.config}),null===(t=this.modal)||void 0===t?void 0:t.render().el}},e.prototype.destroy=function(){var t;null===(t=this.modal)||void 0===t||t.remove()},e}(_);const Kp=Yp;var $p="sw-visibility",Xp="export-template",Zp="open-sm",Qp="open-tm",Jp="open-layers",td="open-blocks",ed="fullscreen",nd="preview";var rd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const od=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.get("buttons").length&&r.set("buttons",new sd(r.module,r.get("buttons"))),r}return rd(e,t),e.prototype.defaults=function(){return{id:"",label:"",tagName:"span",className:"",command:"",context:"",buttons:[],attributes:{},options:{},active:!1,dragDrop:!1,togglable:!0,runDefaultCommand:!0,stopDefaultCommand:!1,disable:!1}},Object.defineProperty(e.prototype,"className",{get:function(){return this.get("className")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"command",{get:function(){return this.get("command")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"active",{get:function(){return this.get("active")},set:function(t){this.set("active",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"togglable",{get:function(){return this.get("togglable")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"runDefaultCommand",{get:function(){return this.get("runDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"stopDefaultCommand",{get:function(){return this.get("stopDefaultCommand")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"disable",{get:function(){return this.get("disable")},enumerable:!1,configurable:!0}),e}(E.A);var id=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ad=function(t){function e(e,n){return t.call(this,e,n,od)||this}return id(e,t),e.prototype.deactivateAllExceptOne=function(t,e){this.forEach((function(n,r){n!==t&&(n.set("active",!1),e&&n.get("buttons").length&&n.get("buttons").deactivateAllExceptOne(t,e))}))},e.prototype.deactivateAll=function(t,e){var n=t||"";this.forEach((function(t){t.get("context")==n&&t!==e&&t.set("active",!1,{fromCollection:!0})}))},e.prototype.disableAllButtons=function(t){var e=t||"";this.forEach((function(t,n){t.get("context")==e&&t.set("disable",!0)}))},e.prototype.disableAllButtonsExceptOne=function(t,e){this.forEach((function(n,r){n!==t&&(n.set("disable",!0),e&&n.get("buttons").length&&n.get("buttons").disableAllButtonsExceptOne(t,e))}))},e}(K);const sd=ad;ad.prototype.model=od;var ld=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const cd=function(t){function e(e,n){var r=t.call(this,e,n)||this,o=r.get("buttons")||[];return r.buttons=new sd(e,o),r}return ld(e,t),e.prototype.defaults=function(){return{id:"",content:"",visible:!0,buttons:[],attributes:{}}},Object.defineProperty(e.prototype,"buttons",{get:function(){return this.get("buttons")},set:function(t){this.set("buttons",t)},enumerable:!1,configurable:!0}),e}(E.A);var ud=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pd=function(t){function e(e,n){return t.call(this,e,n,cd)||this}return ud(e,t),e}(K);const dd=pd;pd.prototype.model=cd;var fd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hd=function(){return hd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},hd.apply(this,arguments)},gd=function(t){function e(e){var n=t.call(this,e)||this,r=n,o=r.model,a=r.em,s=r.pfx,l=r.ppfx,c=o.className,u=o.attributes,p=u.command,d=u.listen;if(n.id=s+o.get("id"),n.activeCls="".concat(s,"active ").concat(l,"four-color"),n.disableCls="".concat(l,"disabled"),n.btnsVisCls="".concat(s,"visible"),n.className=s+"btn"+(c?" "+c:""),n.listenTo(o,"change",n.render),n.listenTo(o,"change:active updateActive",n.updateActive),n.listenTo(o,"checkActive",n.checkActive),n.listenTo(o,"change:bntsVis",n.updateBtnsVis),n.listenTo(o,"change:attributes",n.updateAttributes),n.listenTo(o,"change:className",n.updateClassName),n.listenTo(o,"change:disable",n.updateDisable),a&&(0,i.isString)(p)&&d){var f={fromListen:!0};n.listenTo(a,"run:".concat(p),(function(){return o.set("active",!0,f)})),n.listenTo(a,"stop:".concat(p),(function(){return o.set("active",!1,f)}))}return a&&a.get&&(n.commands=a.get("Commands")),n}return fd(e,t),e.prototype.tagName=function(){return this.model.get("tagName")},e.prototype.events=function(){return{click:"clicked"}},e.prototype.updateClassName=function(){var t=this.model,e=this.pfx,n=t.className,r=t.get("attributes").class,o="".concat(r||""," ").concat(e,"btn ").concat(n||"");this.$el.attr("class",o.trim())},e.prototype.updateAttributes=function(){var t=this,e=t.em,n=t.model,r=t.$el,o=n.get("attributes")||{},i=e&&e.t&&e.t("panels.buttons.titles.".concat(n.id));r.attr(o),i&&r.attr({title:i}),this.updateClassName()},e.prototype.updateBtnsVis=function(){this.$buttons&&(this.model.get("bntsVis")?this.$buttons.addClass(this.btnsVisCls):this.$buttons.removeClass(this.btnsVisCls))},e.prototype.updateActive=function(t,e,n){var r;void 0===n&&(n={});var o=this,a=o.model,s=o.commands,l=o.$el,c=o.activeCls,u=n.fromCollection,p=n.fromListen,d=a.get("context"),f=a.get("options"),h=a.command,g={};h&&(s&&(0,i.isString)(h)?g=s.get(h)||{}:(0,i.isFunction)(h)?g=s.create({run:h}):null!==h&&(0,i.isObject)(h)&&(g=s.create(h)),a.active?(!u&&(null===(r=a.collection)||void 0===r||r.deactivateAll(d,a)),a.set("active",!0,{silent:!0}).trigger("checkActive"),!p&&s.runCommand(g,hd(hd({},f),{sender:a})),g.noStop&&a.set("active",!1)):(l.removeClass(c),!p&&s.stopCommand(g,hd(hd({},f),{sender:a,force:1}))))},e.prototype.updateDisable=function(){var t=this.disableCls,e=this.model.disable;this.$el[e?"addClass":"removeClass"](t)},e.prototype.checkActive=function(){var t=this,e=t.model,n=t.$el,r=t.activeCls;e.active?n.addClass(r):n.removeClass(r)},e.prototype.clicked=function(){var t=this.model;t.get("bntsVis")||t.disable||!t.command||this.toggleActive()},e.prototype.toggleActive=function(){var t=this.model,e=this.em,n=t.active,r=t.togglable;n&&!r||(t.active=!n,n?t.runDefaultCommand&&e.runDefault():t.stopDefaultCommand&&e.stopDefault())},e.prototype.render=function(){var t=this.model,e=t.get("label"),n=this.$el;return!t.get("el")&&n.empty(),this.updateAttributes(),e&&n.append(e),this.checkActive(),this.updateDisable(),this},e}(vt);const md=gd;var vd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const yd=function(t){function e(e){var n=t.call(this,{collection:e})||this;return n.listenTo(n.collection,"add",n.addTo),n.listenTo(n.collection,"reset remove",n.render),n.className=n.pfx+"buttons",n}return vd(e,t),e.prototype.addTo=function(t){this.addToCollection(t)},e.prototype.addToCollection=function(t,e){var n=e||null,r=t.get("el"),o=new md({el:r,model:t}).render().el;return n?n.appendChild(o):this.$el.append(o),o},e.prototype.render=function(){var t=this,e=document.createDocumentFragment();return this.$el.empty(),this.collection.each((function(n){return t.addToCollection(n,e)})),this.$el.append(e),this.$el.attr("class",(0,i.result)(this,"className")),this},e}(vt);var bd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_d=function(){return _d=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},_d.apply(this,arguments)},wd=function(t){function e(e){var n=t.call(this,{model:e,el:e.get("el")})||this;return n.className=n.pfx+"panel",n.id=n.pfx+e.get("id"),n.listenTo(e,"change:appendContent",n.appendContent),n.listenTo(e,"change:content",n.updateContent),n.listenTo(e,"change:visible",n.toggleVisible),e.view=n,n}return bd(e,t),e.prototype.appendContent=function(){this.$el.append(this.model.get("appendContent"))},e.prototype.updateContent=function(){this.$el.html(this.model.get("content"))},e.prototype.toggleVisible=function(){this.model.get("visible")?this.$el.removeClass("".concat(this.ppfx,"hidden")):this.$el.addClass("".concat(this.ppfx,"hidden"))},e.prototype.attributes=function(){return this.model.get("attributes")},e.prototype.initResize=function(){var t=this.em,e=null==t?void 0:t.Editor,n=this.model.get("resizable");if(e&&n){var r=!0===n?[!0,!0,!0,!0]:n,o=r.length,i=void 0,a=void 0,s=void 0,l=!1;if(2==o)i=(c=r)[0],s=c[0],a=c[1],l=c[1];else if(4==o){var c;i=(c=r)[0],a=c[1],s=c[2],l=c[3]}var u=new e.Utils.Resizer(_d({tc:i,cr:a,bc:s,cl:l,tl:!1,tr:!1,bl:!1,br:!1,appendTo:this.el,silentFrames:!0,avoidContainerUpdate:!0,prefix:e.getConfig().stylePrefix,onEnd:function(){t.Canvas.refresh({all:!0})},posFetcher:function(t,e){var n=e.target,r=t.style,o=u.getConfig(),i=o.keyWidth,a=o.keyHeight,s=t.getBoundingClientRect(),l="container"==n,c=r[i],p=r[a];return{left:0,top:0,width:c&&!l?parseFloat(c):s.width,height:p&&!l?parseFloat(p):s.height}}},n&&"boolean"!=typeof n?n:{}));u.blur=function(){},u.focus(this.el)}},e.prototype.render=function(){var t=this.model.buttons,e=this.$el,n=this.ppfx,r="".concat(this.className," ").concat(this.id," ").concat(n,"one-bg ").concat(n,"two-color");if(e.addClass(r),this.toggleVisible(),t.length){var o=new yd(t);e.append(o.render().el)}return e.append(this.model.get("content")),this},e}(vt);const Ed=wd;var xd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Cd=function(t){function e(e){var n=t.call(this,{collection:e})||this;return n.listenTo(e,"add",n.addTo),n.listenTo(e,"reset",n.render),n.listenTo(e,"remove",n.onRemove),n.className=n.pfx+"panels",n}return xd(e,t),e.prototype.onRemove=function(t){var e=t.view;e&&e.remove()},e.prototype.addTo=function(t){this.addToCollection(t)},e.prototype.addToCollection=function(t,e){var n=e||null,r=t.get("el"),o=new Ed(t),i=o.render().el,a=t.get("appendTo");if(r);else if(a){var s=document.querySelector(a);null==s||s.appendChild(i)}else n?n.appendChild(i):this.$el.append(i);return o.initResize(),i},e.prototype.render=function(){var t=this,e=this.$el,n=document.createDocumentFragment();return e.empty(),this.collection.each((function(e){return t.addToCollection(e,n)})),e.append(n),e.attr("class",this.className),this},e}(vt);var Td=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ad=function(t){function e(e){var n=t.call(this,e,"Panels",{stylePrefix:"pn-",defaults:[{id:"commands",buttons:[{}]},{id:"options",buttons:[{active:!0,id:$p,className:"fa fa-square-o",command:"core:component-outline",context:$p,attributes:{title:"View components"}},{id:nd,className:"fa fa-eye",command:nd,context:nd,attributes:{title:"Preview"}},{id:ed,className:"fa fa-arrows-alt",command:ed,context:ed,attributes:{title:"Fullscreen"}},{id:Xp,className:"fa fa-code",command:Xp,attributes:{title:"View code"}}]},{id:"views",buttons:[{id:Zp,className:"fa fa-paint-brush",command:Zp,active:!0,togglable:!1,attributes:{title:"Open Style Manager"}},{id:Qp,className:"fa fa-cog",command:Qp,togglable:!1,attributes:{title:"Settings"}},{id:Jp,className:"fa fa-bars",command:Jp,togglable:!1,attributes:{title:"Open Layer Manager"}},{id:td,className:"fa fa-th-large",command:td,togglable:!1,attributes:{title:"Open Blocks"}}]}]})||this;return n.panels=new dd(n,n.config.defaults),n}return Td(e,t),e.prototype.getPanels=function(){return this.panels},e.prototype.getPanelsEl=function(){var t;return null===(t=this.PanelsViewObj)||void 0===t?void 0:t.el},e.prototype.addPanel=function(t){return this.panels.add(t)},e.prototype.removePanel=function(t){return this.panels.remove(t)},e.prototype.getPanel=function(t){var e=this.panels.where({id:t});return e.length?e[0]:null},e.prototype.addButton=function(t,e){var n=this.getPanel(t);return n?n.buttons.add(e):null},e.prototype.removeButton=function(t,e){var n=this.getPanel(t);return n&&n.buttons.remove(e)},e.prototype.getButton=function(t,e){var n=this.getPanel(t);if(n){var r=n.buttons.where({id:e});return r.length?r[0]:null}return null},e.prototype.render=function(){var t;return null===(t=this.PanelsViewObj)||void 0===t||t.remove(),this.PanelsViewObj=new Cd(this.panels),this.PanelsViewObj.render().el},e.prototype.active=function(){this.getPanels().each((function(t){t.buttons.each((function(t){t.get("active")&&t.trigger("updateActive")}))}))},e.prototype.disableButtons=function(){this.getPanels().each((function(t){t.buttons.each((function(t){t.get("disable")&&t.trigger("change:disable")}))}))},e.prototype.destroy=function(){this.panels.reset(),this.panels.stopListening(),this.PanelsViewObj&&this.PanelsViewObj.remove()},e}(_);const Od=Ad;var Sd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const kd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Sd(e,t),e.prototype.build=function(t,e){void 0===e&&(e={});var n=e.em,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["em"]);if(e.cleanId&&n){var o=n.Css.getAll().toJSON().map((function(t){var e=t.selectors,n=e&&1===e.length&&e.models[0];return n&&n.isId()&&n.get("name")})).filter(Boolean);r.attributes||(r.attributes=function(t,e){var n=e.id;return n&&"i"===n[0]&&!t.get("script")&&!t.get("script-export")&&!t.get("attributes").id&&o.indexOf(n)<0&&delete e.id,e})}return t.toHTML(r)},e}(d.Kx);var Pd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Pd(e,t),e.prototype.build=function(t){var e=this,n=t.toJSON();return this.beforeEach(n),(0,i.each)(n,(function(t,r){var o=n[r];if(o instanceof d.Kx)n[r]=e.build(o);else if(o instanceof d.pM){var i=o;n[r]=[],i.length&&i.forEach((function(t,o){n[r][o]=e.build(t)}))}})),n},e.prototype.beforeEach=function(t){delete t.status},e}(d.Kx);const Nd=jd;var Ld=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Dd(t){var e;return 0===((null===(e=t.toString().match(/\{([\s\S]*)\}/m))||void 0===e?void 0:e[1])||"").replace(/^\s*\/\/.*$/gm,"").trim().length}var Id=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ld(e,t),e.prototype.mapModel=function(t){var e,n=this,r="",o=t.get("script-export")||t.get("script"),a=t.get("type"),s=t.get("components"),l=t.getId();if(o){var c=t.get("attributes");c=(0,i.extend)({},c,{id:l}),t.set("attributes",c,{silent:!0});var u=t.getScriptString(o),p=t.get("script-props");if(t.get("scriptUpdated")&&!p)this.mapJs[a+"-"+l]={ids:[l],code:u};else{var d=void 0,f=this.mapJs[a];if(p&&(d=t.__getScriptProps()),f)f.ids.push(l),d&&(f.props[l]=d);else{var h={ids:[l],code:u};d&&(h.props=((e={})[l]=d,e)),this.mapJs[a]=h}}}return s.forEach((function(t){r+=n.mapModel(t)})),r},e.prototype.build=function(t){this.mapJs={},this.mapModel(t);var e="";for(var n in this.mapJs){var r=this.mapJs[n];if(r.code)if(r.props){if(Dd(r.code))continue;e+="\n          var props = ".concat(JSON.stringify(r.props),";\n          var ids = Object.keys(props).map(function(id) { return '#'+id }).join(',');\n          var els = document.querySelectorAll(ids);\n          for (var i = 0, len = els.length; i < len; i++) {\n            var el = els[i];\n            (").concat(r.code,".bind(el))(props[el.id]);\n          }")}else{var o="#"+r.ids.join(", #");e+="\n          var items = document.querySelectorAll('".concat(o,"');\n          for (var i = 0, len = items.length; i < len; i++) {\n            (function(){\n").concat(r.code,"\n}.bind(items[i]))();\n          }")}}return e},e}(d.Kx);const Rd=Id;var Md,Bd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fd=function(){return Fd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Fd.apply(this,arguments)};(0,a.hasWin)()&&(Md=r(4408),r(8253),r(7389),r(3640));var Ud=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bd(e,t),e.prototype.defaults=function(){return{input:"",label:"",codeName:"",theme:"hopscotch",readOnly:!0,lineNumbers:!0,autoFormat:!0}},e.prototype.init=function(t){return(0,i.bindAll)(this,"onChange"),this.editor=Md.fromTextArea(t,Fd({dragDrop:!1,lineWrapping:!0,mode:this.get("codeName")},this.attributes)),this.element=t,this.editor.on("change",this.onChange),this},e.prototype.onChange=function(){this.trigger("update",this)},e.prototype.getEditor=function(){return this.editor},e.prototype.getElement=function(){return this.element},e.prototype.setElement=function(t){return this.element=t,this},e.prototype.refresh=function(){return this.getEditor().refresh(),this},e.prototype.focus=function(){return this.getEditor().focus(),this},e.prototype.getContent=function(){var t=this.getEditor();return t&&t.getValue()},e.prototype.setContent=function(t,e){var n=this;void 0===e&&(e={});var r=this.editor;if(r){r.setValue(t);var o=this.get("autoFormat");r.autoFormatRange&&(!0===o||Array.isArray(o)&&o.includes(this.get("codeName")))&&(Md.commands.selectAll(r),r.autoFormatRange(r.getCursor(!0),r.getCursor(!1)),Md.commands.goDocStart(r)),!e.noRefresh&&setTimeout((function(){return n.refresh()}))}},e}(d.Kx);const Hd=Ud;Ud.prototype.CodeMirror=Md;var Vd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vd(e,t),e.prototype.template=function(t){var e,n,r=t.pfx,o=t.codeName,i=t.label;return s(Wd||(e=['\n      <div class="','editor" id="',"",'">\n        <div id="','title">','</div>\n        <div id="','code"></div>\n      </div>\n    '],n=['\n      <div class="','editor" id="',"",'">\n        <div id="','title">','</div>\n        <div id="','code"></div>\n      </div>\n    '],Object.defineProperty?Object.defineProperty(e,"raw",{value:n}):e.raw=n,Wd=e),r,r,o,r,i,r)},e.prototype.initialize=function(t){this.config=t.config||{},this.pfx=this.config.stylePrefix},e.prototype.render=function(){var t,e,n=this,r=n.model,o=n.pfx,i=n.$el,a=r.toJSON(),s=r.get("input")||(null===(e=(t=r).getElement)||void 0===e?void 0:e.call(t));return a.pfx=o,i.html(this.template(a)),i.attr("class","".concat(o,"editor-c")),i.find("#".concat(o,"code")).append(s),this},e}(d.Ss);const zd=qd;var Wd,Gd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yd=function(){return Yd=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yd.apply(this,arguments)},Kd=function(t){function e(e){var n=t.call(this,e,"CodeManager",{stylePrefix:"cm-",optsCodeViewer:{}})||this;n.EditorView=zd;var r=n.config,o=r.pStylePrefix;return o&&(r.stylePrefix=o+r.stylePrefix),n.generators={},n.viewers={},n.defGenerators={html:new kd,css:new ra,json:new Nd,js:new Rd},n.defViewers={CodeMirror:new Hd},n.loadDefaultGenerators().loadDefaultViewers(),n}return Gd(e,t),e.prototype.addGenerator=function(t,e){return this.generators[t]=e,this},e.prototype.getGenerator=function(t){return this.generators[t]},e.prototype.getGenerators=function(){return this.generators},e.prototype.addViewer=function(t,e){return this.viewers[t]=e,this},e.prototype.getViewer=function(t){return this.viewers[t]},e.prototype.getViewers=function(){return this.viewers},e.prototype.createViewer=function(t){void 0===t&&(t={});var e=(0,i.isUndefined)(t.type)?"CodeMirror":t.type,n=this.getViewer(e)&&this.getViewer(e).clone(),r=document.createElement("div"),o=document.createElement("textarea");return r.appendChild(o),n.set(Yd(Yd({},this.config.optsCodeViewer),t)),n.init(o),n.setElement(r),n},e.prototype.updateViewer=function(t,e){t.setContent(e)},e.prototype.getCode=function(t,e,n){void 0===n&&(n={}),n.em=this.em;var r=this.getGenerator(e);return r?r.build(t,n):""},e.prototype.loadDefaultGenerators=function(){for(var t in this.defGenerators)this.addGenerator(t,this.defGenerators[t]);return this},e.prototype.loadDefaultViewers=function(){for(var t in this.defViewers)this.addViewer(t,this.defViewers[t]);return this},e.prototype.destroy=function(){},e}(_);const $d=Kd;var Xd=r(4729),Zd=r.n(Xd);var Qd;!function(t){t.update="update",t.undo="undo",t.redo="redo",t.load="load",t.projectLoad="project:load",t.log="log",t.telemetryInit="telemetry:init",t.destroy="destroy",t.destroyed="destroyed"}(Qd||(Qd={}));var Jd=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tf=function(){return tf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},tf.apply(this,arguments)},ef=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},nf=function(t){return t.avoidStore||t.noUndo||t.partial},rf=function(t){return Object.keys(t.changedAttributes())},of=new WeakMap,af=function(t){function e(e){var n=t.call(this,e,"UndoManager",{maximumStackLength:500,trackSelection:!0})||this;n.config._disable&&(n.config.maximumStackLength=0);var r=!0;return n.um=new(Zd())(tf({track:!0,register:[]},n.config)),n.um.changeUndoType("change",{condition:function(t){var e=t.get("_undo");if(e){var n=t.get("_undoexc");if((0,i.isArray)(n)&&rf(t).some((function(t){return n.indexOf(t)>=0})))return!1;if((0,i.isBoolean)(e))return!0;if((0,i.isArray)(e)&&rf(t).some((function(t){return e.indexOf(t)>=0})))return!0}return!1},on:function(t,e,n){var o=of.get(t);o||(o=t.previousAttributes(),of.set(t,o));var a=n||e||{};if(a.noUndo&&setTimeout((function(){of.delete(t)})),!nf(a)){var s=t.toJSON({fromUndo:r}),l={object:t,before:o,after:s};if(of.delete(t),!(0,i.isEmpty)(s))return l}}}),n.um.changeUndoType("add",{on:function(t,e,o){if(void 0===o&&(o={}),!nf(o)&&n.isRegistered(e))return{object:e,before:void 0,after:t,options:tf(tf({},o),{fromUndo:r})}}}),n.um.changeUndoType("remove",{on:function(t,e,o){if(void 0===o&&(o={}),!nf(o)&&n.isRegistered(e))return{object:e,before:t,after:void 0,options:tf(tf({},o),{fromUndo:r})}}}),n.um.changeUndoType("reset",{undo:function(t,e){t.reset(e,{fromUndo:r})},redo:function(t,e,n){t.reset(n,{fromUndo:r})},on:function(t,e){if(void 0===e&&(e={}),!nf(e)&&n.isRegistered(t))return{object:t,before:e.previousModels,after:ef([],t.models,!0),options:tf(tf({},e),{fromUndo:r})}}}),n.um.on("undo redo",(function(){e.getSelectedAll().map((function(t){return t.trigger("rerender:layer")}))})),[Qd.undo,Qd.redo].forEach((function(t){return n.um.on(t,(function(){return e.trigger(t)}))})),n}return Jd(e,t),e.prototype.postLoad=function(){var t=this.config,e=this.em;t.trackSelection&&e&&this.add(e.get("selected"))},e.prototype.add=function(t){return this.um.register(t),this},e.prototype.remove=function(t){return this.um.unregister(t),this},e.prototype.removeAll=function(){return this.um.unregisterAll(),this},e.prototype.start=function(){return this.um.startTracking(),this},e.prototype.stop=function(){return this.um.stopTracking(),this},e.prototype.undo=function(t){void 0===t&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.undo(t),this},e.prototype.undoAll=function(){return this.um.undoAll(),this},e.prototype.redo=function(t){void 0===t&&(t=!0);var e=this.em,n=this.um;return!e.isEditing()&&n.redo(t),this},e.prototype.redoAll=function(){return this.um.redoAll(),this},e.prototype.hasUndo=function(){return!!this.um.isAvailable("undo")},e.prototype.hasRedo=function(){return!!this.um.isAvailable("redo")},e.prototype.isRegistered=function(t){return!!this.getInstance().objectRegistry.isRegistered(t)},e.prototype.getStack=function(){return this.um.stack},e.prototype.getStackGroup=function(){var t=[],e=[];return this.getStack().forEach((function(n){var r=n.get("magicFusionIndex");e.indexOf(r)<0&&(e.push(r),t.push(n))})),t},e.prototype.skip=function(t){var e=!!this.um.isTracking();e&&this.stop(),t(),e&&this.start()},e.prototype.getGroupedStack=function(){var t={};return this.getStack().forEach((function(e,n){var r=e.get("magicFusionIndex"),o=function(t,e){var n=t.attributes,r=n.type,o=n.after,i=n.before,a=n.object,s=n.options;return{index:e,type:r,after:o,before:i,object:a,options:void 0===s?{}:s}}(e,n);t[r]?t[r].push(o):t[r]=[o]})),Object.keys(t).map((function(e){var n=t[e];return{index:n[n.length-1].index,actions:n,labels:(0,i.unique)(n.reduce((function(t,e){var n,r=null===(n=e.options)||void 0===n?void 0:n.action;return r&&t.push(r),t}),[]))}}))},e.prototype.goToGroup=function(t){var e=this;if(t){var n=this.getPointer(),r=t.index-n;(0,i.times)(Math.abs(r),(function(){e[r<0?"undo":"redo"](!1)}))}},e.prototype.getPointer=function(){return this.getStack().pointer},e.prototype.clear=function(){return this.um.clear(),this},e.prototype.getInstance=function(){return this.um},e.prototype.destroy=function(){this.clear().removeAll()},e}(_);const sf=af;var lf,cf=function(){return cf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},cf.apply(this,arguments)};!function(t){t[t.ACTIVE=1]="ACTIVE",t[t.INACTIVE=0]="INACTIVE",t[t.DISABLED=-1]="DISABLED"}(lf||(lf={}));var uf="_rte",pf=function(t,e){void 0===e&&(e="A");var n=t.selection()||{},r=n.anchorNode,o=n.focusNode,i=null==r?void 0:r.parentNode,a=null==o?void 0:o.parentNode;return(null==i?void 0:i.nodeName)==e||(null==a?void 0:a.nodeName)==e},df="data-selectme",ff={bold:{name:"bold",icon:"<b>B</b>",attributes:{title:"Bold"},result:function(t){return t.exec("bold")}},italic:{name:"italic",icon:"<i>I</i>",attributes:{title:"Italic"},result:function(t){return t.exec("italic")}},underline:{name:"underline",icon:"<u>U</u>",attributes:{title:"Underline"},result:function(t){return t.exec("underline")}},strikethrough:{name:"strikethrough",icon:"<s>S</s>",attributes:{title:"Strike-through"},result:function(t){return t.exec("strikeThrough")}},link:{icon:'<svg viewBox="0 0 24 24">\n          <path fill="currentColor" d="M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z" />\n        </svg>',name:"link",attributes:{style:"font-size:1.4rem;padding:0 4px 2px;",title:"Link"},state:function(t){return t&&t.selection()&&pf(t)?1:0},result:function(t){pf(t)?t.exec("unlink"):t.insertHTML('<a href="" '.concat(df,">").concat(t.selection(),"</a>"),{select:!0})}},wrap:{name:"wrap",icon:'<svg viewBox="0 0 24 24">\n            <path fill="currentColor" d="M20.71,4.63L19.37,3.29C19,2.9 18.35,2.9 17.96,3.29L9,12.25L11.75,15L20.71,6.04C21.1,5.65 21.1,5 20.71,4.63M7,14A3,3 0 0,0 4,17C4,18.31 2.84,19 2,19C2.92,20.22 4.5,21 6,21A4,4 0 0,0 10,17A3,3 0 0,0 7,14Z" />\n        </svg>',attributes:{title:"Wrap for style"},state:function(t){return(null==t?void 0:t.selection())&&pf(t,"SPAN")?-1:0},result:function(t){!pf(t,"SPAN")&&t.insertHTML("<span ".concat(df,">").concat(t.selection(),"</span>"),{select:!0})}}},hf=function(){function t(t,e,n){void 0===n&&(n={});var r=this;if(this.em=t,this.settings=n,e[uf])return e[uf];e[uf]=this,this.setEl(e),this.updateActiveActions=this.updateActiveActions.bind(this),this.__onKeydown=this.__onKeydown.bind(this),this.__onPaste=this.__onPaste.bind(this);var o=(n.actions||[]).map((function(t){var e=t;return(0,i.isString)(t)?e=cf({},ff[t]):ff[t.name]&&(e=cf(cf({},ff[t.name]),t)),e})),a=o.length?o:Object.keys(ff).map((function(t){return ff[t]}));n.classes=cf({actionbar:"actionbar",button:"action",active:"active",disabled:"disabled",inactive:"inactive"},n.classes);var s=n.classes,l=n.actionbar;if(this.actionbar=l,this.classes=s,this.actions=a,!l){if(!this.isCustom(n.module)){var c=n.actionbarContainer;(l=document.createElement("div")).className=s.actionbar,null==c||c.appendChild(l),this.actionbar=l}a.forEach((function(t){return r.addAction(t)}))}return n.styleWithCSS&&this.exec("styleWithCSS"),this}return t.prototype.isCustom=function(t){var e=t||this.em.RichTextEditor;return!(!(null==e?void 0:e.config.custom)&&!(null==e?void 0:e.customRte))},t.prototype.destroy=function(){},t.prototype.setEl=function(t){this.el=t,this.doc=t.ownerDocument},t.prototype.updateActiveActions=function(){var t=this,e=this.getActions();e.forEach((function(e){var n=e.update,r=e.btn,o=t.classes,i=o.active,a=o.inactive,s=o.disabled,l=e.state,c=e.name,u=t.doc,p=lf.INACTIVE;if(r&&(r.className=r.className.replace(i,"").trim(),r.className=r.className.replace(a,"").trim(),r.className=r.className.replace(s,"").trim()),l){var d=l(t,u);if(p=d,r)switch(d){case 1:r.className+=" ".concat(i);break;case 0:r.className+=" ".concat(a);break;case-1:r.className+=" ".concat(s)}}else u.queryCommandSupported(c)&&u.queryCommandState(c)&&(r&&(r.className+=" ".concat(i)),p=lf.ACTIVE);e.currentState=p,null==n||n(t,e)})),e.length&&this.em.RichTextEditor.__dbdTrgCustom()},t.prototype.enable=function(t){return this.enabled?this:this.__toggleEffects(!0,t)},t.prototype.disable=function(){return this.__toggleEffects(!1)},t.prototype.__toggleEffects=function(t,e){void 0===t&&(t=!1),void 0===e&&(e={});var n=t?yt.on:yt.AU,r=this.el,o=this.doc,i=this.actionbarEl();if(i&&(i.style.display=t?"":"none"),r.contentEditable="".concat(!!t),n(r,"mouseup keyup",this.updateActiveActions),n(o,"keydown",this.__onKeydown),n(o,"paste",this.__onPaste),this.enabled=t,t){var a=e.event;if(this.syncActions(),this.updateActiveActions(),a){var s=null;if(o.caretRangeFromPoint){var l=(0,yt.G2)(a);s=o.caretRangeFromPoint(l.clientX,l.clientY)}else a.rangeParent&&(s=o.createRange()).setStart(a.rangeParent,a.rangeOffset);var c=o.getSelection();null==c||c.removeAllRanges(),s&&(null==c||c.addRange(s))}r.focus()}return this},t.prototype.__onKeydown=function(t){var e=this.em,n=e.RichTextEditor.getConfig().onKeydown;if(n)return n({ev:t,rte:this,editor:e.getEditor()});var r=this.doc;"Enter"!==t.key||["insertOrderedList","insertUnorderedList"].some((function(t){return r.queryCommandState(t)}))||(r.execCommand("insertLineBreak"),t.preventDefault())},t.prototype.__onPaste=function(t){var e=this.em,n=e.RichTextEditor.getConfig().onPaste;if(n)return n({ev:t,rte:this,editor:e.getEditor()});var r=t.clipboardData,o=r.getData("text"),i=r.getData("text/html");if(o&&!i){t.preventDefault();var a=o.replace(/(?:\r\n|\r|\n)/g,"<br/>");this.doc.execCommand("insertHTML",!1,a)}},t.prototype.syncActions=function(){var t=this;this.getActions().forEach((function(e){if(t.actionbar&&(!e.state||e.state&&e.state(t,t.doc)>=0)){var n=e.event||"click",r=e.btn;r&&(r["on".concat(n)]=function(){e.result(t,e),t.updateActiveActions()})}}))},t.prototype.addAction=function(t,e){void 0===e&&(e={});var n=e.sync,r=this.actionbarEl();if(r){var o=t.icon,i=t.attributes,a=void 0===i?{}:i,s=document.createElement("span");for(var l in s.className=this.classes.button,t.btn=s,a)s.setAttribute(l,a[l]);"string"==typeof o?s.innerHTML=o:s.appendChild(o),r.appendChild(s)}n&&(this.actions.push(t),this.syncActions())},t.prototype.getActions=function(){return this.actions},t.prototype.selection=function(){return this.doc.getSelection()},t.prototype.exec=function(t,e){this.doc.execCommand(t,!1,e)},t.prototype.actionbarEl=function(){return this.actionbar},t.prototype.insertHTML=function(t,e){var n=(void 0===e?{}:e).select,r=this,o=r.em,s=r.doc,l=r.el,c=s.getSelection();if(c&&c.rangeCount){var u=(0,a.getComponentModel)(l)||o.getSelected(),p=s.createElement("div"),d=c.getRangeAt(0);d.deleteContents(),(0,i.isString)(t)?p.innerHTML=t:t&&p.appendChild(t),Array.prototype.slice.call(p.childNodes).forEach((function(t){d.insertNode(t)})),c.removeAllRanges(),c.addRange(d),l.focus(),n&&u&&(u.once("rte:disable",(function(){var t=u.find("[".concat(df,"]"))[0];t&&(o.setSelected(t),t.removeAttributes(df))})),u.trigger("disable"))}},t}();const gf=hf;var mf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vf=function(){return vf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},vf.apply(this,arguments)},yf=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},bf=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},_f="".concat(ht.refresh," frame:scroll ").concat(ct.I.update),wf={enable:"rte:enable",disable:"rte:disable",custom:"rte:custom"},Ef=function(t){function e(e){var n=t.call(this,e,"RichTextEditor",{stylePrefix:"rte-",adjustToolbar:!0,actions:["bold","italic","underline","strikethrough","link","wrap"],custom:!1})||this;n.events=wf;var r=n.config,o=r.pStylePrefix;o&&(r.stylePrefix=o+r.stylePrefix),n.pfx=r.stylePrefix,n.actions=r.actions||[];var a=new d.Kx;return n.model=a,a.on("change:currentView",n.__trgCustom,n),n.__dbdTrgCustom=(0,i.debounce)((function(){return n.__trgCustom()}),0),n}return mf(e,t),e.prototype.onLoad=function(){if((0,a.hasWin)()){var t=this.config,e=t.pStylePrefix,n=t.custom,r=(0,yt.a_)("div",{class:(0,yt.cx)("".concat(e,"rte-toolbar"),!n&&"".concat(e,"one-bg ").concat(e,"rte-toolbar-ui"))});this.toolbar=r,this.initRte((0,yt.a_)("div")),(0,yt.on)(r,"mousedown",(function(t){return t.stopPropagation()}))}},e.prototype.__trgCustom=function(){var t=this,e=t.model,n=t.em,r=t.events;n.trigger(r.custom,{enabled:!!e.get("currentView"),container:this.getToolbarEl(),actions:this.getAll()})},e.prototype.destroy=function(){var t,e,n;null===(t=this.globalRte)||void 0===t||t.destroy(),null===(n=null===(e=this.customRte)||void 0===e?void 0:e.destroy)||void 0===n||n.call(e),this.model.stopListening().clear({silent:!0}),this.__dbdTrgCustom.cancel(),(0,yt.YZ)(this.toolbar)},e.prototype.postRender=function(t){var e=t.model.get("Canvas");this.toolbar.style.pointerEvents="all",this.hideToolbar(),e.getToolsEl().appendChild(this.toolbar)},e.prototype.initRte=function(t){var e=this.globalRte,n=this,r=n.em,o=n.pfx,i=n.actionbar,a=n.config,s=this.actions||function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],a.actions,!0),l={actionbar:"".concat(o,"actionbar"),button:"".concat(o,"action"),active:"".concat(o,"active"),inactive:"".concat(o,"inactive"),disabled:"".concat(o,"disabled")};return e?(e.em=r,e.setEl(t)):(e=new gf(r,t,{classes:l,actions:s,actionbar:i,actionbarContainer:this.toolbar,module:this}),this.globalRte=e),e.actionbar&&(this.actionbar=e.actionbar),e.actions&&(this.actions=e.actions),e},e.prototype.add=function(t,e){var n;void 0===e&&(e={}),e.name=t,null===(n=this.globalRte)||void 0===n||n.addAction(e,{sync:!0})},e.prototype.get=function(t){var e,n;return null===(e=this.globalRte)||void 0===e||e.getActions().forEach((function(e){e.name==t&&(n=e)})),n},e.prototype.getAll=function(){var t;return(null===(t=this.globalRte)||void 0===t?void 0:t.getActions())||[]},e.prototype.remove=function(t){var e,n=this.getAll(),r=this.get(t);if(r){var o=r.btn,i=n.indexOf(r);null===(e=null==o?void 0:o.parentNode)||void 0===e||e.removeChild(o),n.splice(i,1)}return r},e.prototype.run=function(t){var e=this.globalRte,n=(0,i.isString)(t)?this.get(t):t;e&&n&&(n.result(e,n),e.updateActiveActions())},e.prototype.getToolbarEl=function(){return this.toolbar},e.prototype.updatePosition=function(){var t=this.em,e=this.toolbar,n=t.Canvas,r=e.style,o=n.getTargetToElementFixed(this.lastEl,e,{event:"rteToolbarPosUpdate",left:0});["top","left","bottom","right"].forEach((function(t){var e=o[t];(0,a.isDef)(e)&&(r[t]=(0,i.isString)(e)?e:(e||0)+"px")}))},e.prototype.enable=function(t,e,n){return yf(this,void 0,void 0,(function(){var r,o,i,a,s;return bf(this,(function(l){switch(l.label){case 0:return this.lastEl=t.el,o=(r=this).customRte,i=r.em,a=t.getChildrenContainer(),this.toolbar.style.display="",[4,o?o.enable(a,e,n):this.initRte(a).enable(n)];case 1:return s=l.sent(),i&&(setTimeout(this.updatePosition.bind(this),0),i.off(_f,this.updatePosition,this),i.on(_f,this.updatePosition,this),i.trigger("rte:enable",t,s)),this.model.set({currentView:t}),[2,s]}}))}))},e.prototype.getContent=function(t,e){return yf(this,void 0,void 0,(function(){var n,r;return bf(this,(function(o){switch(o.label){case 0:return n=this.customRte,r=t.getChildrenContainer(),n&&e&&(0,i.isFunction)(n.getContent)?[4,n.getContent(r,e,{view:t})]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r.innerHTML]}}))}))},e.prototype.hideToolbar=function(){var t=this.toolbar.style,e="-1000px";t.top=e,t.left=e,t.display="none"},e.prototype.disable=function(t,e){return yf(this,arguments,void 0,(function(t,e,n){var r,o,i,a;return void 0===n&&(n={}),bf(this,(function(s){switch(s.label){case 0:return r={},o=this.em,(i=this.customRte)?[4,i.disable(t.getChildrenContainer(),e,vf(vf({},n),{view:t}))]:[3,2];case 1:return(a=s.sent())&&(r=a),[3,3];case 2:e&&e.disable(),s.label=3;case 3:return this.hideToolbar(),o&&(o.off(_f,this.updatePosition,this),!n.fromMove&&o.trigger("rte:disable",t,e)),this.model.unset("currentView"),[2,r]}}))}))},e}(_);const xf=Ef;var Cf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tf=function(){return Tf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Tf.apply(this,arguments)},Af=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Of=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Cf(e,t),e.getDefaults=function(){return(0,i.result)(this.prototype,"defaults")},e.prototype.defaults=function(){return{name:"",property:"",type:"",defaults:"",info:"",value:"",icon:"",functionName:"",status:"",visible:!0,fixedValues:["initial","inherit"],full:!1,important:!1,toRequire:!1,requires:void 0,requiresParent:null,parentTarget:null}},e.prototype.initialize=function(t,n){void 0===t&&(t={}),void 0===n&&(n={}),this.em=n.em;var r=this.getId()||"",o=this.get("name")||this.get("label")||"";!this.get("property")&&this.set("property",(o||r).replace(/ /g,"-"));var i=this.get("property");!this.get("id")&&this.set("id",i),!o&&this.set("name",(0,a.capitalize)(i).replace(/-/g," ")),this.on("change",this.__upTargets),e.callInit(this,t,n)},e.prototype.__getParentProp=function(){var t,e;return null===(e=null===(t=this.collection)||void 0===t?void 0:t.opts)||void 0===e?void 0:e.parentProp},e.prototype.__upTargets=function(t,e){var n,r=this;void 0===e&&(e={});var o=this.em.Styles,a=this.getName(),s=e.__clear,l=s?"":this.__getFullValue(e),c=this.__getParentProp(),u=this.changedAttributes(),p=(0,i.keys)(u).reduce((function(t,e){return t[e]=r.previous(e),t}),{}),d=Af(Af([],(0,i.keys)(this.__getClearProps()),!0),["__p"],!1),f=(0,i.keys)(u),h=!e.__up&&!c&&(s||d.some((function(t){return f.indexOf(t)>=0}))),g=this.get("onChange"),m={property:this,from:p,to:u,value:l,opts:e};o.__trgEv(o.events.propertyUpdate,m),g&&g(m),h&&this.__upTargetsStyle(((n={})[a]=l,n),e)},e.prototype.__upTargetsStyle=function(t,e){var n,r=null===(n=this.em)||void 0===n?void 0:n.get("StyleManager");null==r||r.addStyleTargets(Tf(Tf({},t),{__p:!!e.avoidStore}),e)},e.prototype._up=function(t,e){void 0===e&&(e={}),e.noTarget&&(e.__up=!0);var n=e.partial,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["partial"]);return t.__p=!(!r.avoidStore&&!n),this.set(t,Tf(Tf({},r),{avoidStore:t.__p}))},e.prototype.up=function(t,e){void 0===e&&(e={}),this.set(t,Tf(Tf({},e),{__up:!0}))},e.prototype.init=function(){},e.prototype.getId=function(){return this.get("id")},e.prototype.getType=function(){return this.get("type")},e.prototype.getName=function(){return this.get("property")},e.prototype.getLabel=function(t){var e;void 0===t&&(t={});var n=t.locale,r=void 0===n||n,o=this.getId(),i=this.get("name")||this.get("label");return r&&(null===(e=this.em)||void 0===e?void 0:e.t("styleManager.properties.".concat(o)))||i},e.prototype.getValue=function(t){void 0===t&&(t={});var e=t.noDefault,n=this.get("value");return this.hasValue()||e?n:this.getDefaultValue()},e.prototype.hasValue=function(t){void 0===t&&(t={});var e=t.noParent&&this.getParentTarget(),n=this.get("value");return!(0,i.isUndefined)(n)&&""!==n&&!e},e.prototype.hasValueParent=function(){return this.hasValue()&&!this.hasValue({noParent:!0})},e.prototype.getStyle=function(t){var e;void 0===t&&(t={});var n=this.getName();return(e={})[t.camelCase?(0,a.camelCase)(n):n]=this.__getFullValue(t),e},e.prototype.getDefaultValue=function(){var t=this.get("default");return"".concat((0,i.isUndefined)(t)?this.get("defaults"):t)},e.prototype.upValue=function(t,e){void 0===e&&(e={});var n=null===t||""===t?this.__getClearProps():this.__parseValue(t,e);return this._up(n,e)},e.prototype.isVisible=function(){return!!this.get("visible")},e.prototype.clear=function(t){return void 0===t&&(t={}),this._up(this.__getClearProps(),Tf(Tf({},t),{__clear:!0})),this},e.prototype.canClear=function(){var t=this.getParent();return t?t.__canClearProp(this):this.hasValue({noParent:!0})},e.prototype.getParent=function(){return this.__getParentProp()},e.prototype.isFull=function(){return!!this.get("full")},e.prototype.__parseValue=function(t,e){return this.parseValue(t,e)},e.prototype.__getClearProps=function(){return{value:""}},e.prototype.setValue=function(t,e,n){void 0===e&&(e=!0),void 0===n&&(n={});var r=this.parseValue(t),o=!e;!o&&this.set({value:void 0},{avoidStore:o,silent:!0}),this.set(r,Tf({avoidStore:o},n))},e.prototype.setValueFromInput=function(t,e,n){void 0===n&&(n={}),this.setValue(t,e,Tf(Tf({},n),{fromInput:1}))},e.prototype.parseValue=function(t,e){void 0===e&&(e={});var n={value:t},r="!important",o=this.get("functionName")||"";if((0,i.isString)(t)&&-1!==t.indexOf(r)&&(n.value=t.replace(r,"").trim(),n.important=!0),!o&&!e.complete)return n;var a=[],s="".concat(n.value).trim(),l=s.indexOf("(")+1,c=o||s.substring(0,l-1);if(c&&(n.functionName=c),!o||0===s.indexOf("".concat(o,"("))){var u=s.lastIndexOf(")");a.push(l),u>=0&&a.push(u),n.value=String.prototype.substring.apply(s,a)}if(e.numeric){var p=parseFloat(n.value);n.unit=n.value.replace(p,""),n.value=p}return n},e.prototype.__getFullValue=function(t){var e=(void 0===t?{}:t).withDefault;return!this.hasValue()&&e?this.getDefaultValue():this.getFullValue()},e.prototype.getFullValue=function(t,e){void 0===e&&(e={});var n=this.get("functionName"),r=this.getDefaultValue(),o=(0,i.isUndefined)(t)?this.get("value"):t,a=!(0,i.isUndefined)(o)&&""!==o;if(o&&r&&o===r)return r;if(n&&a){var s="url"===n?"'".concat(o.replace(/'|"/g,""),"'"):o;o="".concat(n,"(").concat(s,")")}return a&&this.get("important")&&!e.skipImportant&&(o="".concat(o," !important")),o||""},e.prototype.__setParentTarget=function(t){this.up({parentTarget:t})},e.prototype.getParentTarget=function(){return this.get("parentTarget")||null},e.prototype.__parseFn=function(t){void 0===t&&(t="");var e=t.indexOf("(")+1,n=t.lastIndexOf(")");return{name:t.substring(0,e-1).trim(),value:String.prototype.substring.apply(t,[e,n>=0?n:void 0]).trim()}},e.prototype.__checkVisibility=function(t){var e=t.target,n=t.component,r=t.sectors,o=n||e;if(!o)return!1;var s=this.getId(),l=this.getName(),c=this.get("toRequire"),u=this.get("requires"),p=this.get("requiresParent"),d=o.get("unstylable"),f=o.get("stylable-require"),h=o.get("stylable");if((0,i.isArray)(h)&&(h=h.indexOf(l)>=0),(0,i.isArray)(d)&&(h=d.indexOf(l)<0),c&&(h=!e||f&&(f.indexOf(s)>=0||f.indexOf(l)>=0)),r&&u){var g=(0,i.keys)(u);r.forEach((function(t){t.getProperties().forEach((function(t){if((0,i.includes)(g,t.id)){var e=u[t.id];h=h&&(0,i.includes)(e,t.get("value"))}}))}))}if(p){var m=n&&n.parent(),v=m&&m.getEl();if(v){var y=(0,a.hasWin)()?window.getComputedStyle(v):{};(0,i.each)(p,(function(t,e){h=h&&y[e]&&(0,i.includes)(t,y[e])}))}else h=!1}return!!h},e}(d.Kx);const Sf=Of;Of.callParentInit=function(t,e,n,r){void 0===r&&(r={}),t.prototype.initialize.apply(e,[n,Tf(Tf({},r),{skipInit:1})])},Of.callInit=function(t,e,n){void 0===n&&(n={}),!n.skipInit&&t.init(e,n)};var kf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pf=function(){return Pf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Pf.apply(this,arguments)},jf=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Nf=function(t){return"integer"===t||"number"===t},Lf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kf(e,t),e.prototype.defaults=function(){return Pf(Pf({},Sf.getDefaults()),{detached:!1,properties:[],separator:" ",join:null,fromStyle:null,toStyle:null,full:!0})},e.prototype.initialize=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Sf.callParentInit(Sf,this,t,e);var n=this.em,r=new Hh(this.get("properties")||[],{em:n,parentProp:this});this.set("properties",r,{silent:!0}),this.listenTo(r,"change",this.__upProperties),Sf.callInit(this,t,e)},Object.defineProperty(e.prototype,"properties",{get:function(){return this.get("properties")||[]},enumerable:!1,configurable:!0}),e.prototype.getProperties=function(){return jf([],this.get("properties").models,!0)},e.prototype.getProperty=function(t){return this.properties.filter((function(e){return e.getId()===t||e.getName()===t}))[0]},e.prototype.getPropertyAt=function(t){return this.get("properties").at(t)},e.prototype.isDetached=function(){return!!this.get("detached")},e.prototype.getValues=function(t){var e=(void 0===t?{}:t).byName;return this.getProperties().reduce((function(t,n){return t[e?n.getName():n.getId()]="".concat(n.__getFullValue()),t}),{})},e.prototype.getSeparator=function(){return this.getSplitSeparator()},e.prototype.getJoin=function(){return this.__getJoin()},e.prototype.getStyleFromProps=function(t){var e;void 0===t&&(t={});var n=this.getName(),r=this.__getJoin(),o=this.get("toStyle"),i=this.getValues(),s={};if(o)s=o(i,{join:r,name:n,property:this});else if(i=this.getValues({byName:!0}),this.isDetached())s=i;else{var l=this.getProperties().map((function(t){return t.__getFullValue({withDefault:1})})).filter(Boolean).join(r);(e={})[n]=l,s=e}return this.isDetached()?s[n]="":(s[n]=s[n]||"",s=Pf(Pf({},s),this.getProperties().reduce((function(t,e){return t[e.getName()]="",t}),{}))),t.camelCase?Object.keys(s).reduce((function(t,e){return t[(0,a.camelCase)(e)]=s[e],t}),{}):s},e.prototype.getSplitSeparator=function(){return new RegExp("".concat(this.get("separator"),"(?![^\\(]*\\))"))},e.prototype.__upProperties=function(t,e){if(void 0===e&&(e={}),!e.__up&&!e.__clearIn){var n=this.__getParentProp();if(n)return n.__upProperties(this,e);this.__upTargetsStyleProps(e,t)}},e.prototype.__upTargetsStyleProps=function(t,e){var n;void 0===t&&(t={});var r=this.getStyleFromProps();if(this.isDetached()&&e){var o=e.getName();(n={})[o]=r[o],r=n}this.__upTargetsStyle(r,t)},e.prototype._up=function(t,e){return void 0===e&&(e={}),this.__setProperties(this.__getSplitValue(t.value),e),Sf.prototype._up.call(this,t,e),this},e.prototype.getStyle=function(t){return this.getStyleFromProps(t)},e.prototype.__getFullValue=function(t){if(void 0===t&&(t={}),this.isDetached()||t.__clear)return"";var e=this.getStyleFromProps()[this.getName()]||"";return ve(e)},e.prototype.__getJoin=function(){var t=this.get("join");return(0,i.isString)(t)?t:this.get("separator")},e.prototype.__styleHasProps=function(t){void 0===t&&(t={});var e=this.getName(),n=this.getProperties().map((function(t){return t.getName()}));return jf([e],n,!0).some((function(e){return!(0,i.isUndefined)(t[e])&&""!==t[e]}))},e.prototype.__splitValue=function(t,e){return ve(t).split(e).map((function(t){return t.trim()})).filter(Boolean)},e.prototype.__splitStyleName=function(t,e,n){var r=t[e];return this.__splitValue(r||"",n)},e.prototype.__getSplitValue=function(t,e){void 0===t&&(t="");var n=(void 0===e?{}:e).byName,r=this.getProperties(),o=4===r.length&&r.every((function(t){return Nf(t.getType())})),a=this.__splitValue(t,this.getSplitSeparator()),s={};return r.forEach((function(t,e){var r=a[e],l=(0,i.isUndefined)(r)?"":r;if(o){var c=a.length;l=a[e]||a[e%c+(1!=c&&c%2?1:0)]||l}var u=n?t.getName():t.getId();s[u]=l||""})),s},e.prototype.__getPropsFromStyle=function(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!this.__styleHasProps(t))return null;var n=e.byName,r=this.getName(),o=this.getProperties(),a=this.getSplitSeparator(),s=this.get("fromStyle"),l=s?s(t,{property:this,name:r,separator:a}):{};if(!s){var c=t[r];l=this.__getSplitValue(c||"",{byName:n}),o.forEach((function(e){var r=t[e.getName()],o=n?e.getName():e.getId();(0,i.isUndefined)(r)||""===r||(l[o]=r)}))}return l},e.prototype.__setProperties=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this.getProperties().forEach((function(n){var r=t[n.getId()];n.__getFullValue()!==r&&n.upValue(r,e)}));var n=(0,i.keys)(t).map((function(e){return t[e]})).join(" ");this.set("value",n,{silent:!0})},e.prototype.clear=function(){var t=this;return this.getProperties().map((function(e){return e.clear({__clearIn:!t.isDetached()})})),Sf.prototype.clear.call(this),this},e.prototype.hasValue=function(t){return this.getProperties().some((function(e){return e.hasValue(t)}))},e.prototype.getFullValue=function(){return this.__getFullValue()},e.prototype.__canClearProp=function(t){return this.isDetached()&&t.hasValue({noParent:!0})},e}(Sf);const Df=Lf;var If=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rf=function(){return Rf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Rf.apply(this,arguments)},Mf=/,(?![^\(]*\))/,Bf=/\s(?![^(]*\))/,Ff=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return If(e,t),e.prototype.defaults=function(){return Rf(Rf({},Df.getDefaults()),{layers:[],emptyValue:"unset",layerSeparator:", ",layerJoin:"",prepend:0,preview:!1,layerLabel:null,selectedLayer:null})},e.prototype.initialize=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Df.callParentInit(Df,this,t,e);var n=this.get("layers"),r=new ip(n,{prop:this});r.property=this,r.properties=this.get("properties"),this.set("layers",r,{silent:!0}),this.on("change:selectedLayer",this.__upSelected),this.listenTo(r,"add remove",this.__upLayers),Df.callInit(this,t,e)},Object.defineProperty(e.prototype,"layers",{get:function(){return this.get("layers")},enumerable:!1,configurable:!0}),e.prototype.getLayers=function(){return this.layers.models},e.prototype.hasLayers=function(){return this.getLayers().length>0},e.prototype.getLayer=function(t){return void 0===t&&(t=0),this.layers.at(t)||void 0},e.prototype.getSelectedLayer=function(){var t=this.get("selectedLayer");return t&&t.getIndex()>=0?t:void 0},e.prototype.selectLayer=function(t){return this.set("selectedLayer",t,{__select:!0})},e.prototype.selectLayerAt=function(t){void 0===t&&(t=0);var e=this.getLayer(t);return e&&this.selectLayer(e)},e.prototype.moveLayer=function(t,e){void 0===e&&(e=0);var n=this.layers,r=t?t.getIndex():-1;r>=0&&(0,i.isNumber)(e)&&e>=0&&e<n.length&&r!==e&&(this.removeLayer(t),n.add(t,{at:e}))},e.prototype.addLayer=function(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n={};return this.getProperties().forEach((function(e){var r=e.getId(),o=t[r];n[r]=(0,i.isUndefined)(o)?e.getDefaultValue():o})),this.layers.push({values:n},e)},e.prototype.removeLayer=function(t){return this.layers.remove(t)},e.prototype.removeLayerAt=function(t){void 0===t&&(t=0);var e=this.getLayer(t);return e?this.removeLayer(e):null},e.prototype.getLayerLabel=function(t){var e="";if(t){var n=this.get("layerLabel"),r=t.getValues(),o=t.getIndex();if(n)e=n(t,{index:o,values:r,property:this});else{var i=[];this.getProperties().map((function(t){i.push(r[t.getId()])})),e=i.filter(Boolean).join(" ")}}return e},e.prototype.getStyleFromLayer=function(t,e){var n;void 0===e&&(e={});var r,o=this.__getJoin(),s=this.__getJoinLayers(),l=this.get("toStyle"),c=this.getName(),u=t.getValues();if(l)r=l(u,{join:o,joinLayers:s,name:c,layer:t,property:this});else{var p=this.getProperties().map((function(t){var n=t.getName(),r=u[t.getId()],o=(0,i.isUndefined)(r)?t.getDefaultValue():r;if(e.number&&Nf(t.getType())){var a=t.parseValue(r,e.number);o="".concat(a.value).concat(a.unit)}return{name:n,value:o}}));r=this.isDetached()?p.reduce((function(t,e){return t[e.name]=e.value,t}),{}):((n={})[this.getName()]=p.map((function(t){return t.value})).join(o),n)}return e.camelCase?Object.keys(r).reduce((function(t,e){return t[(0,a.camelCase)(e)]=r[e],t}),{}):r},e.prototype.getStylePreview=function(t,e){void 0===e&&(e={});var n={};return this.get("preview")&&(n=this.getStyleFromLayer(t,e)),n},e.prototype.getLayerSeparator=function(){var t=this.get("layerSeparator");return(0,i.isString)(t)?new RegExp("".concat(t,"(?![^\\(]*\\))")):t},e.prototype.hasEmptyValue=function(){return!this.hasLayers()&&!!this.attributes.isEmptyValue},e.prototype.__upProperties=function(t,e){var n;void 0===e&&(e={});var r=this.getSelectedLayer();r&&(r.upValues(((n={})[t.getId()]=t.__getFullValue(),n)),e.__up||this.__upTargetsStyleProps(e))},e.prototype.__upLayers=function(t,e,n){this.__upTargetsStyleProps(n||e)},e.prototype.__upTargets=function(t,e){if(void 0===e&&(e={}),!e.__select)return Sf.prototype.__upTargets.call(this,t,e)},e.prototype.__upTargetsStyleProps=function(t){void 0===t&&(t={}),this.__upTargetsStyle(this.getStyleFromLayers(t),t)},e.prototype.__upTargetsStyle=function(t,e){return Sf.prototype.__upTargetsStyle.call(this,t,e)},e.prototype.__upSelected=function(t,e){var n=(void 0===t?{}:t).noEvent;void 0===e&&(e={});var r=this.em.Styles,o=this.getSelectedLayer(),i=null==o?void 0:o.getValues();i&&this.getProperties().forEach((function(t){var n,r=null!==(n=i[t.getId()])&&void 0!==n?n:"";t.__getFullValue()!==r&&t.upValue(r,Rf(Rf({},e),{__up:!0}))})),!n&&r.__trgEv(r.events.layerSelect,{property:this})},e.prototype._up=function(t,e){void 0===e&&(e={});var n=t.__layers,r=void 0===n?[]:n,o=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["__layers"]);return!this.isDetached()&&this.__setLayers(r),this.__upSelected({noEvent:!0},e),Sf.prototype._up.call(this,o,e),this},e.prototype.__setLayers=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={});var n=this.layers,r=t.map((function(t){return{values:t}}));n.length===r.length?r.map((function(t,e){var r;return null===(r=n.at(e))||void 0===r?void 0:r.upValues(t.values)})):n.reset(r),this.set({isEmptyValue:!!e.isEmptyValue}),this.__upSelected({noEvent:!0})},e.prototype.__parseValue=function(t){var e=this,n=this.parseValue(t);return n.__layers=t.split(Mf).map((function(t){return t.trim()})).map((function(t){return e.__parseLayer(t)})).filter(Boolean),n},e.prototype.__parseLayer=function(t){var e=this.get("parseLayer"),n=t.split(Bf),r=this.getProperties();return e?e({value:t,values:n}):r.reduce((function(t,e,r){var o=n[r];return t[e.getId()]=(0,i.isUndefined)(o)?e.getDefaultValue():o,t}),{})},e.prototype.__getLayersFromStyle=function(t){var e=this;if(void 0===t&&(t={}),!this.__styleHasProps(t))return null;if(this.isEmptyValueStyle(t))return[];var n=this.getName(),r=this.getProperties(),o=this.getLayerSeparator(),a=this.attributes.fromStyle,s=a?a(t,{property:this,name:n,separatorLayers:o}):[];if(!a){var l=this.__splitStyleName(t,n,o).map((function(t){return t.split(e.getSplitSeparator())})).map((function(t){var e={};return r.forEach((function(n,r){var o=t[r];e[n.getId()]=(0,i.isUndefined)(o)?n.getDefaultValue():o})),e}));r.forEach((function(n){var r=n.getId();e.__splitStyleName(t,n.getName(),o).map((function(t){var e;return(e={})[r]=t||n.getDefaultValue(),e})).forEach((function(t,e){l[e]=l[e]?Rf(Rf({},l[e]),t):t}))})),s=l}return(0,i.isArray)(s)?s:[s]},e.prototype.getStyle=function(t){return void 0===t&&(t={}),this.getStyleFromLayers(t)},e.prototype.getStyleFromLayers=function(t){var e=this;void 0===t&&(t={});var n={},r=this.getName(),o=this.getLayers(),a=this.getProperties();if(o.map((function(n){return e.getStyleFromLayer(n,t)})).forEach((function(t){(0,i.keys)(t).map((function(e){n[e]||(n[e]=[]),n[e].push(t[e])}))})),(0,i.keys)(n).map((function(t){n[t]=n[t].join(e.__getJoinLayers())})),this.isDetached())n[r]="",!o.length&&a.map((function(t){n[t.getName()]=""}));else{var s=a.reduce((function(t,e){return t[e.getName()]="",t}),{});n[r]=n[r]||"",n=Rf(Rf({},n),s)}return Rf(Rf({},n),t.__clear?{}:this.getEmptyValueStyle())},e.prototype.isEmptyValueStyle=function(t){void 0===t&&(t={});var e=this.getEmptyValueStyle({force:!0}),n=(0,i.keys)(e);return!!n.length&&n.every((function(n){return e[n]===t[n]}))},e.prototype.getEmptyValueStyle=function(t){void 0===t&&(t={});var e=this.attributes.emptyValue;if(!e||this.hasLayers()&&!t.force)return{};var n=this.getName(),r=this.getProperties(),o=(0,i.isString)(e)?e:e({property:this});if((0,i.isString)(o)){var a={};return this.isDetached()?r.map((function(t){a[t.getName()]=o})):a[n]=o,a}return o},e.prototype.__getJoinLayers=function(){var t=this.get("layerJoin"),e=this.get("layerSeparator");return t||((0,i.isString)(e)?e:t)},e.prototype.__getFullValue=function(){if(this.get("detached"))return"";var t=this.getStyleFromLayers();return ve(t[this.getName()])},e.prototype.hasValue=function(t){void 0===t&&(t={});var e=t.noParent&&this.getParentTarget();return(this.hasLayers()||this.hasEmptyValue())&&!e},e.prototype.clear=function(t){return void 0===t&&(t={}),this.layers.reset(),this.__upTargetsStyleProps(Rf(Rf({},t),{__clear:!0})),Sf.prototype.clear.call(this),this},e.prototype.__canClearProp=function(){return!1},e.prototype.__getLayers=function(){return this.layers},e}(Df);const Uf=Ff;var Hf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vf=function(){return Vf=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Vf.apply(this,arguments)},qf="data-clear-style",zf=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;(0,i.bindAll)(n,"__change","__updateStyle");var r=e.config||{},o=r.em;n.config=r,n.em=o,n.pfx=r.stylePrefix||"",n.ppfx=r.pStylePrefix||"",n.__destroyFn=n.destroy?n.destroy.bind(n):function(){};var a=n.model;a.view=n,n.onValueChange=(0,i.debounce)(n.onValueChange.bind(n),10),n.updateStatus=(0,i.debounce)(n.updateStatus.bind(n),0),n.listenTo(a,"destroy remove",n.remove),n.listenTo(a,"change:visible",n.updateVisibility),n.listenTo(a,"change:name change:className change:full",n.render),n.listenTo(a,"change:value",n.onValueChange),n.listenTo(a,"change:parentTarget",n.updateStatus),n.listenTo(o,"change:device",n.onValueChange);var s=n.init&&n.init.bind(n);return s&&s(),n}return Hf(e,t),e.prototype.events=function(){var t;return(t={change:"inputValueChanged"})["click [".concat(qf,"]")]="clear",t},e.prototype.template=function(t){var e=this.pfx,n=this.ppfx;return'\n      <div class="'.concat(e,'label" data-sm-label></div>\n      <div class="').concat(n,'fields" data-sm-fields></div>\n    ')},e.prototype.templateLabel=function(t){var e=this.pfx,n=this.em,r=t.parent,o=t.attributes,i=o.icon,a=void 0===i?"":i,s=o.info,l=void 0===s?"":s,c=null==n?void 0:n.getConfig().icons,u=(null==c?void 0:c.close)||"";return'\n      <span class="'.concat(e,"icon ").concat(a,'" title="').concat(l,'">\n        ').concat(t.getLabel(),"\n      </span>\n      ").concat(r?"":'<div class="'.concat(e,'clear" style="display: none" ').concat(qf,">").concat(u,"</div>"),"\n    ")},e.prototype.templateInput=function(t){return'\n      <div class="'.concat(this.ppfx,'field">\n        <input placeholder="').concat(t.getDefaultValue(),'"/>\n      </div>\n    ')},e.prototype.remove=function(){var t=this;return d.Ss.prototype.remove.apply(this,arguments),["em","input","$input","view"].forEach((function(e){return t[e]=null})),this.__destroyFn(this._getClbOpts()),this},e.prototype.updateStatus=function(){var t,e=this,n=e.model,r=e.pfx,o=e.ppfx,i=e.config,a="".concat(o,"four-color"),s="".concat(o,"color-warn"),l=this.$el.children(".".concat(r,"label")),c=this.getClearEl(),u=c?c.style:{};l.removeClass("".concat(a," ").concat(s)),u.display="none",n.hasValue({noParent:!0})&&i.highlightChanged?(l.addClass(a),i.clearProperties&&(u.display="")):n.hasValue()&&i.highlightComputed&&l.addClass(s),null===(t=this.parent)||void 0===t||t.updateStatus()},e.prototype.clear=function(t){t&&t.stopPropagation(),this.model.clear()},e.prototype.getClearEl=function(){return this.clearEl||(this.clearEl=this.el.querySelector("[".concat(qf,"]"))),this.clearEl},e.prototype.inputValueChanged=function(t){t&&t.stopPropagation(),this.emit||this.model.upValue(t.target.value)},e.prototype.onValueChange=function(t,e,n){void 0===n&&(n={}),this.setValue(this.model.getFullValue(void 0,{skipImportant:!0})),this.updateStatus()},e.prototype.setValue=function(t){var e=this.model,n=(0,i.isUndefined)(t)||""===t?e.getDefaultValue():t;if(this.update)return this.__update(n);this.__setValueInput(n)},e.prototype.__setValueInput=function(t){var e=this.getInputEl();e&&(e.value=t)},e.prototype.getInputEl=function(){return this.input||(this.input=this.el.querySelector("input")),this.input},e.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},e.prototype.clearCached=function(){delete this.clearEl,delete this.input,delete this.$input},e.prototype.__unset=function(){var t=this.unset&&this.unset.bind(this);t&&t(this._getClbOpts())},e.prototype.__update=function(t){var e=this.update&&this.update.bind(this);e&&e(Vf(Vf({},this._getClbOpts()),{value:t}))},e.prototype.__change=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.emit&&this.emit.bind(this);n&&n.apply(void 0,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([this._getClbOpts()],t,!1))},e.prototype.__updateStyle=function(t,e){void 0===e&&(e={});var n=e.complete,r=e.partial,o=(function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}}(e,["complete","partial"]),this.model),i=!1!==n&&!0!==r;(0,a.isObject)(t)?o.__upTargetsStyle(t,{avoidStore:!i}):o.upValue(t,{partial:!i})},e.prototype._getClbOpts=function(){var t=this,e=t.model;return{el:t.el,createdEl:t.createdEl,property:e,props:e.attributes,change:this.__change,updateStyle:this.__updateStyle}},e.prototype.render=function(){this.clearCached();var t=this,e=t.pfx,n=t.model,r=t.el,o=t.$el,i=n.getName(),a=n.getType(),s=n.get("className")||"",l="".concat(e,"property"),c="number"===a?"".concat(e).concat(a," ").concat(e,"integer"):"".concat(e).concat(a);this.createdEl&&this.__destroyFn(this._getClbOpts()),o.empty().append(this.template(n)),o.find("[data-sm-label]").append(this.templateLabel(n));var u=this.create&&this.create.bind(this);this.createdEl=u&&u(this._getClbOpts()),o.find("[data-sm-fields]").append(this.createdEl||this.templateInput(n)),r.className="".concat(l," ").concat(c," ").concat(l,"__").concat(i," ").concat(s).trim(),r.className+=n.isFull()?" ".concat(l,"--full"):"";var p=this.onRender&&this.onRender.bind(this);return p&&p(),this.setValue(n.getValue()),this},e.prototype.onRender=function(){},e}(d.Ss);const Wf=zf;var Gf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Yf=function(t){function e(e){var n=t.call(this,e)||this;n.config=e.config||{},n.pfx=n.config.stylePrefix||"",n.properties=[],n.parent=e.parent;var r=n.collection;return n.listenTo(r,"add",n.addTo),n.listenTo(r,"reset",n.render),n}return Gf(e,t),e.prototype.addTo=function(t,e,n){this.add(t,null,n)},e.prototype.add=function(t,e,n){void 0===n&&(n={});var r=this.parent,o=this.config,i=e||this.el,a=new t.typeView({model:t,config:o});r&&(a.parent=r),a.render();var s=a.el;this.properties.push(a),(0,yt.Sc)(i,s,n.at)},e.prototype.remove=function(){return d.Ss.prototype.remove.apply(this,arguments),this.clearItems(),this},e.prototype.clearItems=function(){this.properties.forEach((function(t){return t.remove()})),this.properties=[]},e.prototype.render=function(){var t=this,e=this.$el,n=this.pfx;this.clearItems();var r=document.createDocumentFragment();return this.collection.forEach((function(e){return t.add(e,r)})),e.empty(),e.append(r),e.attr("class","".concat(n,"properties")),this},e}(d.Ss);var Kf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$f=function(){return $f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$f.apply(this,arguments)},Xf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Kf(e,t),e.prototype.templateInput=function(){var t=this.pfx;return'\n      <div class="'.concat(t,"field ").concat(t,'composite">\n        <span id="').concat(t,'input-holder"></span>\n      </div>\n    ')},e.prototype.remove=function(){var t;return null===(t=this.props)||void 0===t||t.remove(),Wf.prototype.remove.apply(this,arguments),this},e.prototype.onValueChange=function(){},e.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.get("properties");if(n.length&&!this.props){var r=e.isDetached(),o=new Yf({config:$f($f({},this.config),{highlightComputed:r,highlightChanged:r}),collection:n,parent:this});o.render(),this.$el.find("#".concat(t,"input-holder")).append(o.el),this.props=o}},e.prototype.clearCached=function(){Wf.prototype.clearCached.apply(this,arguments),delete this.props},e}(Wf);const Zf=Xf;var Qf=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qf(e,t),e.prototype.events=function(){return{click:"select","click [data-close-layer]":"removeItem","mousedown [data-move-layer]":"initSorter","touchstart [data-move-layer]":"initSorter"}},e.prototype.template=function(){var t=this,e=t.pfx,n=t.ppfx,r=t.em,o=null==r?void 0:r.getConfig().icons,i=(null==o?void 0:o.close)||"",a=(null==o?void 0:o.move)||"";return'\n      <div class="'.concat(e,'label-wrp">\n        <div id="').concat(e,'move" class="').concat(n,'no-touch-actions" data-move-layer>\n          ').concat(a,'\n        </div>\n        <div id="').concat(e,'label" data-label></div>\n        <div id="').concat(e,'preview-box" class="').concat(e,'layer-preview" style="display: none" data-preview-box>\n          <div id="').concat(e,'preview" class="').concat(e,'layer-preview-cnt" data-preview></div>\n        </div>\n        <div id="').concat(e,'close-layer" class="').concat(e,'btn-close" data-close-layer>\n          ').concat(i,'\n        </div>\n      </div>\n      <div id="').concat(e,'inputs" data-properties></div>\n    ')},e.prototype.initialize=function(t){void 0===t&&(t={});var e=this.model,n=t.config||{};this.em=n.em,this.config=n,this.sorter=t.sorter,this.pfx=n.stylePrefix||"",this.ppfx=n.pStylePrefix||"",this.propertyView=t.propertyView;var r=this.propertyView.model;this.listenTo(e,"destroy remove",this.remove),this.listenTo(e,"change:values",this.updateLabel),this.listenTo(r,"change:selectedLayer",this.updateVisibility),e.view=this,e.set({droppable:0,draggable:1}),this.$el.data("model",e)},e.prototype.initSorter=function(){var t;null===(t=this.sorter)||void 0===t||t.startSort([{element:this.el}])},e.prototype.removeItem=function(t){t&&t.stopPropagation(),this.model.remove()},e.prototype.select=function(){this.model.select()},e.prototype.getPropertiesWrapper=function(){return this.propsWrapEl||(this.propsWrapEl=this.el.querySelector("[data-properties]")),this.propsWrapEl},e.prototype.getPreviewEl=function(){return this.previewEl||(this.previewEl=this.el.querySelector("[data-preview]")),this.previewEl},e.prototype.getLabelEl=function(){return this.labelEl||(this.labelEl=this.el.querySelector("[data-label]")),this.labelEl},e.prototype.updateLabel=function(){var t=this.model,e=t.getLabel();if(this.getLabelEl().innerHTML=e,t.hasPreview()){var n=this.getPreviewEl(),r=t.getStylePreview({number:{min:-3,max:3}}),o=(0,i.keys)(r).map((function(t){return"".concat(t,":").concat(r[t])})).join(";");n.setAttribute("style",o)}},e.prototype.updateVisibility=function(){var t,e=this,n=e.pfx,r=e.model,o=e.propertyView,i=this.getPropertiesWrapper(),a=r.isSelected();i.style.display=a?"":"none",this.$el[a?"addClass":"removeClass"]("".concat(n,"active")),a&&i.appendChild(null===(t=o.props)||void 0===t?void 0:t.el)},e.prototype.render=function(){var t=this,e=t.el,n=t.pfx,r=t.model;return e.innerHTML=this.template(),e.className="".concat(n,"layer"),r.hasPreview()&&(e.querySelector("[data-preview-box]").style.display=""),this.updateLabel(),this.updateVisibility(),this},e}(d.Ss);const th=Jf;var eh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nh=function(t){function e(e){var n=t.call(this,e)||this,r=n.collection,o=e.config||{},i=o.em,a=o.stylePrefix||"",s=o.pStylePrefix||"";n.config=o,n.pfx=a,n.ppfx=s,n.propertyView=e.propertyView,n.className="".concat(a,"layers ").concat(s,"field"),n.listenTo(r,"add",n.addTo),n.listenTo(r,"reset",n.reset),n.items=[];var l=n.createPlaceholder(o.pStylePrefix);n.$el.append(l);var c=null==i?void 0:i.Utils;return n.sorter=c?new c.StyleManagerSorter({em:i,containerContext:{container:n.el,containerSel:".".concat(a,"layers"),itemSel:".".concat(a,"layer"),pfx:o.pStylePrefix,document,placeholderElement:l},dragBehavior:{dragDirection:Fn.A.Vertical,nested:!1}}):void 0,r.view=n,n.$el.data("model",r),n.$el.data("collection",r),n}return eh(e,t),e.prototype.addTo=function(t){var e=this.collection.indexOf(t);this.addToCollection(t,null,e)},e.prototype.addToCollection=function(t,e,n){var r=e||null,o=this,i=o.propertyView,a=o.config,s=o.sorter,l=o.$el,c=new th({model:t,config:a,sorter:s,propertyView:i}),u=c.render().el;if(this.items.push(c),r)r.appendChild(u);else if(void 0!==n){var p="before";l.children().length===n&&(n--,p="after"),n<0?l.append(u):l.children().eq(n)[p](u)}else l.append(u);return u},e.prototype.reset=function(t,e){this.clearItems(),this.render()},e.prototype.remove=function(){return this.clearItems(),d.Ss.prototype.remove.apply(this,arguments),this},e.prototype.clearItems=function(){this.items.forEach((function(t){return t.remove()})),this.items=[]},e.prototype.render=function(){var t=this,e=this.$el,n=document.createDocumentFragment();return e.empty(),this.collection.forEach((function(e){return t.addToCollection(e,n)})),e.append(n),e.attr("class",this.className),this},e.prototype.createPlaceholder=function(t){var e=document.createElement("div"),n=document.createElement("div");return this.el.parentNode,e.className=t+"placeholder",e.style.display="none",e.style.pointerEvents="none",n.className=t+"placeholder-int",e.appendChild(n),e},e}(d.Ss);const rh=nh;var oh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ih=function(){return ih=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ih.apply(this,arguments)},ah=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oh(e,t),e.prototype.events=function(){return ih(ih({},Zf.prototype.events()),{"click [data-add-layer]":"addLayer",change:""})},e.prototype.templateInput=function(){var t=this.pfx,e=this.em,n=null==e?void 0:e.getConfig().icons,r=(null==n?void 0:n.plus)||"+";return'\n      <div class="'.concat(t,"field ").concat(t,'stack">\n        <button type="button" id="').concat(t,'add" data-add-layer>\n          ').concat(r,"\n        </button>\n        <div data-layers-wrapper></div>\n      </div>\n    ")},e.prototype.init=function(){var t=this.model;this.listenTo(t.layers,"change reset",this.updateStatus),this.listenTo(t,"change:isEmptyValue",this.updateStatus)},e.prototype.addLayer=function(){this.model.addLayer({},{at:0})},e.prototype.setValue=function(){},e.prototype.remove=function(){var t;return null===(t=this.layersView)||void 0===t||t.remove(),Zf.prototype.remove.apply(this,arguments),this},e.prototype.clearCached=function(){Zf.prototype.clearCached.apply(this,arguments),delete this.layersView},e.prototype.onRender=function(){var t=this,e=t.model,n=t.el,r=t.config,o=e.get("properties");if(o.length&&!this.props){var i=new Yf({config:ih(ih({},r),{highlightComputed:!1,highlightChanged:!1}),collection:o,parent:this});i.render();var a=new rh({collection:e.layers,config:r,propertyView:this});a.render(),n.querySelector("[data-layers-wrapper]").appendChild(a.el),this.props=i,this.layersView=a}},e}(Zf);const sh=ah;var lh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ch=function(){return ch=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},ch.apply(this,arguments)},uh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lh(e,t),e.prototype.events=function(){return ch(ch({},Wf.prototype.events()),{"click [data-clear-asset]":"clear","click [data-open-assets]":"openAssetManager"})},e.prototype.templateInput=function(){var t,e=this.pfx,n=this.em,r=null===(t=this.em)||void 0===t?void 0:t.getConfig().icons,o=null==r?void 0:r.close;return'\n      <div class="'.concat(e,"field ").concat(e,"file\">\n        <div id='").concat(e,"input-holder'>\n          <div class=\"").concat(e,'btn-c">\n            <button class="').concat(e,'btn" id="').concat(e,'images" type="button" data-open-assets>\n              ').concat(n.t("styleManager.fileButton"),'\n            </button>\n          </div>\n          <div style="clear:both;"></div>\n        </div>\n        <div id="').concat(e,'preview-box" class="').concat(e,'preview-file" data-preview-box>\n          <div id="').concat(e,'preview-file" class="').concat(e,'preview-file-cnt" data-preview></div>\n          <div id="').concat(e,'close" class="').concat(e,'preview-file-close" data-clear-asset>').concat(o,"</div>\n        </div>\n      </div>\n    ")},e.prototype.__setValueInput=function(t){var e=this.model,n=this.el,r=e.getDefaultValue(),o=n.querySelector("[data-preview-box]"),i=n.querySelector("[data-preview]");o.style.display=t&&t!==r?"":"none",i.style.backgroundImage=t||e.getDefaultValue()},e.prototype.openAssetManager=function(){var t,e=this,n=null===(t=this.em)||void 0===t?void 0:t.Assets;null==n||n.open({select:function(t,r){var o=(0,i.isString)(t)?t:t.get("src");e.model.upValue(o,{partial:!r}),r&&n.close()},types:["image"],accept:"image/*"})},e}(Wf);const ph=uh;var dh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dh(e,t),e.prototype.templateInput=function(t){return""},e.prototype.init=function(){var t=this.model;this.listenTo(t,"change:unit",this.onValueChange),this.listenTo(t,"change:units",this.render)},e.prototype.setValue=function(t){},e.prototype.onRender=function(){var t=this,e=t.ppfx,n=t.model,r=t.el;if(!this.inputInst){var o=n.input;o.ppfx=e,o.render(),r.querySelector(".".concat(e,"fields")).appendChild(o.el),this.input=o.inputEl.get(0),this.inputInst=o}},e.prototype.clearCached=function(){Wf.prototype.clearCached.apply(this,arguments),this.inputInst=null},e}(Wf);const hh=fh;var gh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gh(e,t),e.prototype.setValue=function(t){var e;null===(e=this.inputInst)||void 0===e||e.setValue(t,{fromTarget:1,def:this.model.getDefaultValue()})},e.prototype.remove=function(){var t=this;hh.prototype.remove.apply(this,arguments);var e=this.inputInst;return e&&e.remove&&e.remove(),["inputInst","$color"].forEach((function(e){return t[e]=null})),this},e.prototype.__handleChange=function(t,e){this.model.upValue(t,{partial:e})},e.prototype.onRender=function(){var t;if(!this.inputInst){this.__handleChange=this.__handleChange.bind(this);var e=this,n=e.ppfx,r=e.model,o=e.em,i=e.el,a=new Ol({target:o,model:r,ppfx:n,onChange:this.__handleChange}).render();i.querySelector(".".concat(n,"fields")).appendChild(a.el),this.input=null===(t=a.inputEl)||void 0===t?void 0:t.get(0),this.inputInst=a}},e}(hh);const vh=mh;var yh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bh=function(){return bh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},bh.apply(this,arguments)},_h=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},wh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yh(e,t),e.prototype.defaults=function(){return bh(bh({},Sf.getDefaults()),{options:[],full:0})},e.prototype.getOptions=function(){var t=this.attributes,e=t.options,n=t.list;return(e&&e.length?e:n)||[]},e.prototype.getOption=function(t){var e=this,n=(0,a.isDef)(t)?t:this.getValue();return this.getOptions().filter((function(t){return e.getOptionId(t)===n}))[0]||null},e.prototype.setOptions=function(t){return void 0===t&&(t=[]),this.set("options",t),this},e.prototype.addOption=function(t){if(t){var e=this.getOptions();this.setOptions(_h(_h([],e,!0),[t],!1))}return this},e.prototype.getOptionId=function(t){return(0,a.isDef)(t.id)?t.id:t.value},e.prototype.getOptionLabel=function(t,e){var n;void 0===e&&(e={});var r=e.locale,o=void 0===r||r,a=((0,i.isString)(t)?this.getOption(t):t)||{},s=this.getOptionId(a),l=a.label||a.name||s,c=e.property||this.getId();return o&&(null===(n=this.em)||void 0===n?void 0:n.t("styleManager.options.".concat(c,".").concat(s)))||l},e.prototype.initialize=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];Sf.prototype.initialize.apply(this,t),this.listenTo(this,"change:options",this.__onOptionChange)},e.prototype.__onOptionChange=function(){this.set("list",this.get("options"))},e}(Sf);const Eh=wh;var xh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();const Ch=function(t){function e(e){var n=t.call(this,e)||this;return n.listenTo(n.model,"change:options",n.updateOptions),n}return xh(e,t),e.prototype.templateInput=function(){var t=this.pfx,e=this.ppfx;return'\n      <div class="'.concat(e,"field ").concat(e,'select">\n        <span id="').concat(t,'input-holder"></span>\n        <div class="').concat(e,'sel-arrow">\n          <div class="').concat(e,'d-s-arrow"></div>\n        </div>\n      </div>\n    ')},e.prototype.updateOptions=function(){delete this.input,this.onRender()},e.prototype.onRender=function(){var t=this.pfx,e=this.model,n=e.getOptions();if(!this.input){var r=[];n.forEach((function(t){var n=e.getOptionId(t),o=e.getOptionLabel(n),i=t.style?t.style.replace(/"/g,"&quot;"):"",a=i?'style="'.concat(i,'"'):"",s=n.replace(/"/g,"&quot;");r.push('<option value="'.concat(s,'" ').concat(a,">").concat(o,"</option>"))}));var o=this.el.querySelector("#".concat(t,"input-holder"));o.innerHTML="<select>".concat(r.join(""),"</select>"),this.input=o.firstChild}},e.prototype.__setValueInput=function(t){var e=this.model,n=this.getInputEl(),r=e.getOptions()[0],o=r?e.getOptionId(r):"";n&&(n.value=t||o)},e}(Wf);var Th=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ah=function(){return Ah=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ah.apply(this,arguments)};const Oh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Th(e,t),e.prototype.defaults=function(){return Ah(Ah({},Eh.getDefaults()),{full:1})},e}(Eh);var Sh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Sh(e,t),e.prototype.templateInput=function(){var t=this.ppfx;return'<div class="'.concat(t,"field ").concat(t,'field-radio"></div>')},e.prototype.onRender=function(){var t=this.pfx,e=this.ppfx,n=this.model,r="".concat(e,"radio-item-label"),o=n.getName(),i=n.getOptions(),a="".concat(t,"radio ").concat(t,"radio-").concat(o),s=n.cid;if(!this.input){var l=[];i.forEach((function(i){var c=i.className?"".concat(i.className," ").concat(t,"icon ").concat(r):"",u=n.getOptionId(i),p="".concat(o,"-").concat(u,"-").concat(s),d=c?"":n.getOptionLabel(u),f=i.title?'title="'.concat(i.title,'"'):"",h=n.getValue()===u?"checked":"";l.push('\n          <div class="'.concat(e,'radio-item">\n            <input type="radio" class="').concat(a,'" id="').concat(p,'" name="').concat(o,"-").concat(s,'" value="').concat(u,'" ').concat(h,'/>\n            <label class="').concat(c||r,'" ').concat(f,' for="').concat(p,'">').concat(d,"</label>\n          </div>\n        "))}));var c=this.el.querySelector(".".concat(e,"field"));c.innerHTML='<div class="'.concat(e,'radio-items">').concat(l.join(""),"</div>"),this.input=c.firstChild}},e.prototype.__setValueInput=function(t){var e,n=this.model,r=t||n.getDefaultValue(),o=null===(e=this.getInputEl())||void 0===e?void 0:e.querySelector('[value="'.concat(r,'"]'));o&&(o.checked=!0)},e}(Ch);const Ph=kh;var jh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nh=function(){return Nh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Nh.apply(this,arguments)},Lh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jh(e,t),e.prototype.defaults=function(){return Nh(Nh({},Sf.getDefaults()),{units:[],unit:"",min:"",max:"",step:1})},e.prototype.getUnits=function(){return this.get("units")||[]},e.prototype.getUnit=function(){return this.get("unit")},e.prototype.getMin=function(){return this.get("min")},e.prototype.getMax=function(){return this.get("max")},e.prototype.getStep=function(){return this.get("step")},e.prototype.upUnit=function(t,e){return void 0===e&&(e={}),this._up({unit:t},e)},e.prototype.initialize=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Sf.callParentInit(Sf,this,t,e);var n=this.get("unit"),r=this.getUnits();this.input=(0,a.hasWin)()?new Nl({model:this}):void 0,r.length&&!n&&this.set("unit",r[0],{silent:!0}),Sf.callInit(this,t,e)},e.prototype.__getClearProps=function(){return Nh(Nh({},Sf.prototype.__getClearProps()),{unit:""})},e.prototype.parseValue=function(t,e){void 0===e&&(e={});var n=Sf.prototype.parseValue.apply(this,arguments),r=this.input.validateInputValue(n.value,Nh({deepCheck:1},e)),o=r.value,i=r.unit;return n.value=o,n.unit=i,n},e.prototype.getFullValue=function(){var t=this.get("value"),e=this.get("unit"),n=(0,i.isUndefined)(t)?"":"".concat(t),r=!(0,i.isUndefined)(e)&&n?e:"",o="".concat(n).concat(r);return Sf.prototype.getFullValue.apply(this,[o])},e}(Sf);const Dh=Lh;var Ih=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rh=function(){return Rh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Rh.apply(this,arguments)};const Mh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ih(e,t),e.prototype.defaults=function(){return Rh(Rh({},Dh.getDefaults()),{showInput:1})},e}(Dh);var Bh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fh=function(){return Fh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Fh.apply(this,arguments)};const Uh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bh(e,t),e.prototype.events=function(){return Fh(Fh({},hh.prototype.events()),{"change [type=range]":"inputValueChanged","input [type=range]":"inputValueChangedSoft",change:""})},e.prototype.templateInput=function(t){var e=this.ppfx;return'\n      <div class="'.concat(e,"field ").concat(e,'field-range">\n        <input type="range" min="').concat(t.get("min"),'" max="').concat(t.get("max"),'" step="').concat(t.get("step"),'"/>\n      </div>\n    ')},e.prototype.getSliderEl=function(){return this.slider||(this.slider=this.el.querySelector("input[type=range]")),this.slider},e.prototype.inputValueChanged=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value)},e.prototype.inputValueChangedSoft=function(t){t.stopPropagation(),this.model.upValue(this.getSliderEl().value,{partial:!0})},e.prototype.setValue=function(t){var e=this.model,n=e.parseValue(t);this.getSliderEl().value=""===t?e.getDefaultValue():parseFloat(n.value),hh.prototype.setValue.apply(this,arguments)},e.prototype.onRender=function(){hh.prototype.onRender.apply(this,arguments),this.model.get("showInput")||(this.inputInst.el.style.display="none")},e.prototype.clearCached=function(){hh.prototype.clearCached.apply(this,arguments),delete this.slider},e}(hh),Hh=d.pM.extend(Gc).extend({extendViewApi:1,init:function(){var t=this.opts,e=this.em,n=t.module||(null==e?void 0:e.get("StyleManager"));n&&(n.__listenAdd(this,n.events.propertyAdd),n.__listenRemove(this,n.events.propertyRemove))},types:[{id:"stack",model:Uf,view:sh,isType:function(t){if(t&&"stack"==t.type)return t}},{id:"composite",model:Df,view:Zf,isType:function(t){if(t&&"composite"==t.type)return t}},{id:"file",model:Sf,view:ph,isType:function(t){if(t&&"file"==t.type)return t}},{id:"color",model:Sf,view:vh,isType:function(t){if(t&&"color"==t.type)return t}},{id:"select",model:Eh,view:Ch,isType:function(t){if(t&&"select"==t.type)return t}},{id:"radio",model:Oh,view:Ph,isType:function(t){if(t&&"radio"==t.type)return t}},{id:"slider",model:Mh,view:Uh,isType:function(t){if(t&&"slider"==t.type)return t}},{id:"integer",model:Dh,view:hh,isType:function(t){if(t&&"integer"==t.type)return t}},{id:"number",model:Dh,view:hh,isType:function(t){if(t&&"number"==t.type)return t}},{id:"base",model:Sf,view:Wf,isType:function(t){return t.type="base",t}}]});var Vh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qh=function(){return qh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},qh.apply(this,arguments)},zh=function(t){function e(e,n){void 0===n&&(n={});var r=t.call(this,e)||this,o=n.em;r.em=o;var a=e||{},s=r.buildProperties(a.buildProps),l=r.get("name")||"",c=[];!r.get("id")&&r.set("id",l.replace(/ /g,"_").toLowerCase()),c=(c=s?r.extendProperties(s):r.get("properties").map((function(t){return(0,i.isString)(t)?r.buildProperties(t)[0]:t})).filter(Boolean)).map((function(t){return r.checkExtend(t)}));var u=new Hh(c,{em:o});return u.sector=r,r.set("properties",u),r}return Vh(e,t),e.prototype.defaults=function(){return{id:"",name:"",open:!0,visible:!0,extendBuilded:!0,properties:[]}},Object.defineProperty(e.prototype,"properties",{get:function(){return this.get("properties")},enumerable:!1,configurable:!0}),e.prototype.getId=function(){return this.get("id")},e.prototype.getName=function(){var t,e=this.getId();return(null===(t=this.em)||void 0===t?void 0:t.t("styleManager.sectors.".concat(e)))||this.get("name")},e.prototype.setName=function(t){return this.set("name",t)},e.prototype.isOpen=function(){return!!this.get("open")},e.prototype.setOpen=function(t){return this.set("open",t)},e.prototype.isVisible=function(){return!!this.get("visible")},e.prototype.getProperties=function(t){void 0===t&&(t={});var e=this.properties;return(e.models?function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],e.models,!0):e).filter((function(e){var n=!0;return t.withValue&&(n=e.hasValue({noParent:!0})),t.withParentValue&&(n=!e.hasValue({noParent:!0})&&e.hasValue()),n}))},e.prototype.getProperty=function(t){return this.getProperties().filter((function(e){return e.get("id")===t}))[0]||void 0},e.prototype.addProperty=function(t,e){return this.properties.add(this.checkExtend(t),e)},e.prototype.extendProperties=function(t,e,n){void 0===n&&(n=!1);for(var r=t.length,o=e||this.get("properties"),a=this.get("extendBuilded"),s=[],l=0,c=o.length;l<c;l++){for(var u=o[l],p=0,d=0;d<r;d++){var f=t[d];if(u.property!=f.property&&u.id!=f.property);else{var h=u.properties;h&&h.length&&(u.properties=this.extendProperties(f.properties||[],h,1)),t[d]=a?(0,i.extend)(f,u):u,s[d]=t[d],p=1}}p||(t.push(u),s.push(u))}return n?s.filter((function(t){return t})):t},e.prototype.checkExtend=function(t){var e=((0,i.isString)(t)?{extend:t}:t)||{},n=e.extend,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(e,["extend"]);return n?qh(qh({},this.buildProperties([n])[0]||{}),r):t},e.prototype.buildProperties=function(t){var e,n=t||[];if(!n.length)return[];var r=null===(e=this.em)||void 0===e?void 0:e.Styles.builtIn;return null==r?void 0:r.build(n)},e}(d.Kx);const Wh=zh;var Gh=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yh=function(){return Yh=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Yh.apply(this,arguments)};const Kh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Gh(e,t),e.prototype.initialize=function(t,e){void 0===e&&(e={});var n=e.module,r=e.em;this.em=r,this.module=n,this.listenTo(this,"reset",this.onReset)},e.prototype.model=function(t,e){void 0===e&&(e={});var n=e.collection.em;return new Wh(t,Yh(Yh({},e),{em:n}))},e.prototype.onReset=function(t,e){void 0===e&&(e={}),(e.previousModels||[]).forEach((function(t){return t.get("properties").reset()}))},e}(d.pM);var $h=function(){return $h=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},$h.apply(this,arguments)},Xh=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},Zh=function(t){return t.map((function(t){return{id:t}}))},Qh=function(){function t(){this.props={},this.typeNumber="number",this.typeColor="color",this.typeRadio="radio",this.typeSelect="select",this.typeFile="file",this.typeSlider="slider",this.typeComposite="composite",this.typeStack="stack",this.unitsSize=["px","%","em","rem","vh","vw"],this.unitsSizeNoPerc=["px","em","rem","vh","vw"],this.unitsTime=["s","ms"],this.unitsAngle=["deg","rad","grad"],this.fixedValues=["initial","inherit","auto"];var t=", sans-serif",e=["flex-start","flex-end","center"],n=Xh(Xh([],e,!0),["baseline","stretch"],!1);this.optsBgSize=Zh(["auto","cover","contain"]),this.optsBgAttach=Zh(["scroll","fixed","local"]),this.optsBgRepeat=Zh(["repeat","repeat-x","repeat-y","no-repeat"]),this.optsWrap=Zh(["nowrap","wrap","wrap-reverse"]),this.optsOverflow=Zh(["visible","hidden","scroll","auto"]),this.optsDir=Zh(["row","row-reverse","column","column-reverse"]),this.opstDisplay=Zh(["block","inline","inline-block","flex","none"]),this.optsTransitFn=Zh(["linear","ease","ease-in","ease-out","ease-in-out"]),this.optsCursor=Zh(["auto","pointer","copy","crosshair","grab","grabbing","help","move","text"]),this.optsFloat=Zh(["none","left","right"]),this.optsPos=Zh(["static","relative","absolute","fixed"]),this.optsTextAlign=Zh(["left","center","right","justify"]),this.optsFlexAlign=Zh(n),this.optsJustCont=Zh(Xh(Xh([],e,!0),["space-between","space-around","space-evenly"],!1)),this.optsAlignCont=Zh(Xh(Xh([],e,!0),["space-between","space-around","stretch"],!1)),this.optsAlignSelf=Zh(Xh(["auto"],n,!0)),this.optsTransitProp=Zh(["all","width","height","background-color","transform","box-shadow","opacity"]),this.optsBorderStyle=Zh(["none","solid","dotted","dashed","double","groove","ridge","inset","outset"]),this.optsBgPos=Zh(["left top","left center","left bottom","right top","right center","right bottom","center top","center center","center bottom"]),this.optsWeight=[{id:"100",label:"Thin"},{id:"200",label:"Extra-Light"},{id:"300",label:"Light"},{id:"400",label:"Normal"},{id:"500",label:"Medium"},{id:"600",label:"Semi-Bold"},{id:"700",label:"Bold"},{id:"800",label:"Extra-Bold"},{id:"900",label:"Ultra-Bold"}],this.optsShadowType=[{id:"",label:"Outside"},{id:"inset",label:"Inside"}],this.optsFonts=["Arial, Helvetica"+t,"Arial Black, Gadget"+t,"Brush Script MT"+t,"Comic Sans MS, cursive"+t,"Courier New, Courier, monospace","Georgia, serif","Helvetica"+t,"Impact, Charcoal"+t,"Lucida Sans Unicode, Lucida Grande"+t,"Tahoma, Geneva"+t,"Times New Roman, Times, serif","Trebuchet MS, Helvetica"+t,"Verdana, Geneva"+t].map((function(t){return{id:t,label:t.split(",")[0]}})),this.fixedFontSizes=["medium","xx-small","x-small","small","large","x-large","xx-large","smaller","larger","length","initial","inherit"],this.fixedLetSpace=["normal","initial","inherit"],this.requireFlex={display:["flex"]},this.init()}return t.prototype.__sub=function(t){var e=this;return function(){return t.map((function(t){if((0,i.isString)(t))return e.get(t);var n=t.extend,r=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(t,["extend"]);return $h($h({},e.get(n)),r)}))}},t.prototype.init=function(){var t=this,e=this,n=e.fixedValues,r=e.requireFlex,o=e.typeNumber;this.props={};var i=[["text-shadow-h",{type:o,default:"0",units:this.unitsSizeNoPerc}],["top",{default:"auto",units:this.unitsSize,fixedValues:n},"text-shadow-h"],["right",{},"top"],["bottom",{},"top"],["left",{},"top"],["margin-top",{default:"0"},"top"],["margin-right",{},"margin-top"],["margin-bottom",{},"margin-top"],["margin-left",{},"margin-top"],["padding-top",{min:0},"margin-top"],["padding-right",{},"padding-top"],["padding-bottom",{},"padding-top"],["padding-left",{},"padding-top"],["width",{min:0},"top"],["min-width",{},"width"],["max-width",{},"width"],["height",{},"width"],["min-height",{},"width"],["max-height",{},"width"],["flex-basis",{requiresParent:r},"width"],["font-size",{default:"medium",fixedValues:this.fixedFontSizes},"width"],["letter-spacing",{default:"normal",fixedValues:this.fixedLetSpace},"top"],["line-height",{},"letter-spacing"],["text-shadow-v",{},"text-shadow-h"],["text-shadow-blur",{min:0},"text-shadow-h"],["border-radius-c",{property:"border-radius",fixedValues:void 0},"padding-top"],["border-top-left-radius",{},"border-radius-c"],["border-top-right-radius",{},"border-radius-c"],["border-bottom-left-radius",{},"border-radius-c"],["border-bottom-right-radius",{},"border-radius-c"],["border-width",{units:this.unitsSizeNoPerc},"border-radius-c"],["box-shadow-h",{},"text-shadow-h"],["box-shadow-v",{},"text-shadow-h"],["box-shadow-blur",{default:"5px"},"text-shadow-blur"],["box-shadow-spread",{},"text-shadow-h"],["transition-duration",{default:"2s",units:this.unitsTime},"border-radius-c"],["perspective",{},"border-radius-c"],["order",{type:o,default:"0",requiresParent:r}],["flex-grow",{},"order"],["flex-shrink",{default:"1"},"order"],["float",{type:this.typeRadio,default:"none",options:this.optsFloat}],["position",{default:"static",options:this.optsPos},"float"],["text-align",{default:"left",options:this.optsTextAlign},"float"],["color",{type:this.typeColor,default:"black",full:!0}],["text-shadow-color",{},"color"],["border-color",{},"color"],["box-shadow-color",{},"color"],["background-color",{default:"none"},"color"],["background-image",{type:this.typeFile,functionName:"url",default:"none",full:!0}],["opacity",{type:this.typeSlider,default:"1",min:0,max:1,step:.01,full:!0}],["display",{type:this.typeSelect,default:"block",options:this.opstDisplay}],["flex-direction",{default:"row",options:this.optsDir,requires:r},"display"],["flex-wrap",{default:"nowrap",options:this.optsWrap},"flex-direction"],["justify-content",{default:"flex-start",options:this.optsJustCont},"flex-wrap"],["align-items",{default:"stretch",options:this.optsFlexAlign},"flex-wrap"],["align-content",{options:this.optsAlignCont},"align-items"],["align-self",{default:"auto",options:this.optsAlignSelf,requiresParent:r},"display"],["font-family",{default:"Arial, Helvetica, sans-serif",options:this.optsFonts},"display"],["font-weight",{default:"400",options:this.optsWeight},"display"],["border-style",{default:"solid",options:this.optsBorderStyle},"display"],["box-shadow-type",{default:"",options:this.optsShadowType},"display"],["background-repeat",{default:"repeat",options:this.optsBgRepeat},"display"],["background-position",{default:"left top",options:this.optsBgPos},"display"],["background-attachment",{default:"scroll",options:this.optsBgAttach},"display"],["background-size",{default:"auto",options:this.optsBgSize},"display"],["transition-property",{default:"width",options:this.optsTransitProp},"display"],["transition-timing-function",{default:"ease",options:this.optsTransitFn},"display"],["cursor",{default:"auto",options:this.optsCursor},"display"],["overflow",{default:"visible",options:this.optsOverflow},"display"],["overflow-x",{},"overflow"],["overflow-y",{},"overflow"],["margin",{type:this.typeComposite,properties:this.__sub([{extend:"margin-top",id:"margin-top-sub"},{extend:"margin-right",id:"margin-right-sub"},{extend:"margin-bottom",id:"margin-bottom-sub"},{extend:"margin-left",id:"margin-left-sub"}])}],["padding",{properties:this.__sub([{extend:"padding-top",id:"padding-top-sub"},{extend:"padding-right",id:"padding-right-sub"},{extend:"padding-bottom",id:"padding-bottom-sub"},{extend:"padding-left",id:"padding-left-sub"}])},"margin"],["border",{properties:this.__sub([{extend:"border-width",id:"border-width-sub"},{extend:"border-style",id:"border-style-sub"},{extend:"border-color",id:"border-color-sub"}])},"margin"],["border-radius",{properties:this.__sub([{extend:"border-top-left-radius",id:"border-top-left-radius-sub"},{extend:"border-top-right-radius",id:"border-top-right-radius-sub"},{extend:"border-bottom-right-radius",id:"border-bottom-right-radius-sub"},{extend:"border-bottom-left-radius",id:"border-bottom-left-radius-sub"}])},"margin"],["transition",{type:this.typeStack,properties:this.__sub([{extend:"transition-property",id:"transition-property-sub"},{extend:"transition-duration",id:"transition-duration-sub"},{extend:"transition-timing-function",id:"transition-timing-function-sub"}])}],["box-shadow",{preview:!0,layerLabel:function(t,e){var n=e.values,r=n["box-shadow-h"],o=n["box-shadow-v"],i=n["box-shadow-blur"],a=n["box-shadow-spread"];return"".concat(r," ").concat(o," ").concat(i," ").concat(a)},properties:this.__sub(["box-shadow-h","box-shadow-v","box-shadow-blur","box-shadow-spread","box-shadow-color","box-shadow-type"])},"transition"],["text-shadow",{default:"none",layerLabel:function(t,e){var n=e.values,r=n["text-shadow-h"],o=n["text-shadow-v"],i=n["text-shadow-blur"];return"".concat(r," ").concat(o," ").concat(i)},properties:this.__sub(["text-shadow-h","text-shadow-v","text-shadow-blur","text-shadow-color"])},"box-shadow"],["background",{detached:!0,layerLabel:function(t,e){var n=e.values;return[n["background-repeat-sub"]||"",n["background-position-sub"]||"",n["background-attachment-sub"]||"",n["background-size-sub"]||""].join(" ")},properties:this.__sub([{extend:"background-image",id:"background-image-sub"},{extend:"background-repeat",id:"background-repeat-sub"},{extend:"background-position",id:"background-position-sub"},{extend:"background-attachment",id:"background-attachment-sub"},{extend:"background-size",id:"background-size-sub"}])},"box-shadow"],["transform",{type:"stack",layerSeparator:" ",fromStyle:function(t,e){var n=e.property,r=t[e.name]||"",o=n.getLayerSeparator();return r?r.split(o).map((function(t){var e=n.__parseFn(t);return{"transform-type":e.name,"transform-value":e.value}})):[]},toStyle:function(t,e){var n;return(n={})[e.name]="".concat(t["transform-type"],"(").concat(t["transform-value"],")"),n},properties:[{property:"transform-type",name:"Type",type:this.typeSelect,default:"rotateZ",full:!0,options:[{id:"scaleX",propValue:{units:[""],step:.01}},{id:"scaleY",propValue:{units:[""],step:.01}},{id:"scaleZ",propValue:{units:[""],step:.01}},{id:"rotateX",propValue:{units:this.unitsAngle,step:1}},{id:"rotateY",propValue:{units:this.unitsAngle,step:1}},{id:"rotateZ",propValue:{units:this.unitsAngle,step:1}},{id:"translateX",propValue:{units:this.unitsSize,step:1}},{id:"translateY",propValue:{units:this.unitsSize,step:1}}],onChange:function(t){var e=t.property;if(t.to.value){var n=e.getOption(),r=$h({},n.propValue||{}),o=e.getParent().getProperty("transform-value"),i=o.getUnit();(!i||(null==r?void 0:r.units.indexOf(i))<0)&&(r.unit=(null==r?void 0:r.units[0])||""),o.up(r)}}},{property:"transform-value",type:this.typeNumber,default:"0",full:!0}]}]];return i.forEach((function(e){var n=e[0],r=e[1],o=e[2];t.add(n,r||{},{from:o})})),this},t.prototype.add=function(t,e,n){void 0===e&&(e={}),void 0===n&&(n={});var r=n.from||"",o=this.props[r||t]||{},a=$h($h($h({},o),{property:t}),e);return a.properties&&(0,i.isFunction)(a.properties)&&(a.properties=a.properties()),this.props[t]=a,a},t.prototype.get=function(t){return this.props[t]},t.prototype.build=function(t){var e=this,n=[];return((0,i.isString)(t)?[t]:t).forEach((function(t){n.push(e.get(t)||{property:t})})),n},t}();const Jh=Qh;var tg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eg=function(t){function e(e){var n=t.call(this,e)||this,r=e.config||{},o=n.model,i=r.em;return n.config=r,n.em=i,n.pfx=r.stylePrefix||"",n.listenTo(o,"destroy remove",n.remove),n.listenTo(o,"change:open",n.updateOpen),n.listenTo(o,"change:visible",n.updateVisibility),n}return tg(e,t),e.prototype.template=function(t){var e,n,r,o=t.pfx,i=t.label,a=null===(e=this.em)||void 0===e?void 0:e.getConfig().icons,l=(null==a?void 0:a.caret)||"",c="".concat(o,"sector-");return s(rg||(n=['\n      <div class="','title" data-sector-title>\n        <div class="','caret">$','</div>\n        <div class="','label">',"</div>\n      </div>\n    "],r=['\n      <div class="','title" data-sector-title>\n        <div class="','caret">$','</div>\n        <div class="','label">',"</div>\n      </div>\n    "],Object.defineProperty?Object.defineProperty(n,"raw",{value:r}):n.raw=r,rg=n),c,c,l,c,i)},e.prototype.events=function(){return{"click [data-sector-title]":"toggle"}},e.prototype.updateOpen=function(){var t=this,e=t.$el,n=t.model,r=t.pfx,o=n.isOpen();e[o?"addClass":"removeClass"]("".concat(r,"open")),this.getPropertiesEl().style.display=o?"":"none"},e.prototype.updateVisibility=function(){this.el.style.display=this.model.isVisible()?"":"none"},e.prototype.getPropertiesEl=function(){var t=this.$el,e=this.pfx;return t.find(".".concat(e,"properties")).get(0)},e.prototype.toggle=function(){var t=this.model;t.setOpen(!t.get("open"))},e.prototype.renderProperties=function(){var t=this.model,e=this.config,n=t.get("properties");if(n){var r=new Yf({collection:n,config:e});this.$el.append(r.render().el)}},e.prototype.render=function(){var t=this,e=t.pfx,n=t.model,r=t.$el,o=n.getId(),i=n.getName();return r.html(this.template({pfx:e,label:i})),this.renderProperties(),r.attr("class","".concat(e,"sector ").concat(e,"sector__").concat(o," no-select")),this.updateOpen(),this},e}(d.Ss);const ng=eg;var rg,og=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ig=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this,r=e.module,o=e.config,i=n.collection;return n.pfx=(null==o?void 0:o.stylePrefix)||"",n.ppfx=(null==o?void 0:o.pStylePrefix)||"",n.config=o,n.module=r,n.listenTo(i,"add",n.addTo),n.listenTo(i,"reset",n.render),n}return og(e,t),e.prototype.remove=function(){var t=this;return d.Ss.prototype.remove.apply(this,arguments),["config","module","em"].forEach((function(e){return t[e]={}})),this},e.prototype.addTo=function(t,e,n){void 0===n&&(n={}),this.addToCollection(t,null,n)},e.prototype.addToCollection=function(t,e,n){void 0===n&&(n={});var r=this.config,o=this.el,i=e||o,a=new ng({model:t,config:r}).render().el;return(0,yt.Sc)(i,a,n.at),a},e.prototype.render=function(){var t=this,e=this,n=e.$el,r=e.pfx,o=e.ppfx;n.empty();var i=document.createDocumentFragment();return this.collection.each((function(e){return t.addToCollection(e,i)})),n.append(i),n.addClass("".concat(r,"sectors ").concat(o,"one-bg ").concat(o,"two-color")),this},e}(d.Ss);const ag=ig;var sg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lg=function(){return lg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},lg.apply(this,arguments)},cg=function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))},ug="style",pg="".concat(ug,":"),dg="".concat(pg,"sector"),fg="".concat(dg,":add"),hg="".concat(dg,":remove"),gg="".concat(dg,":update"),mg="".concat(pg,"property"),vg="".concat(mg,":add"),yg="".concat(mg,":remove"),bg="".concat(mg,":update"),_g="".concat(pg,"layer:select"),wg="".concat(pg,"target"),Eg="".concat(pg,"custom"),xg=function(t){return t||0===t},Cg={all:ug,sectorAdd:fg,sectorRemove:hg,sectorUpdate:gg,propertyAdd:vg,propertyRemove:yg,propertyUpdate:bg,layerSelect:_g,target:wg,custom:Eg},Tg=function(t){function e(e){var n=t.call(this,e,"StyleManager",new Kh([],{em:e}),Cg,{sectors:[{name:"General",open:!1,properties:["display","float","position","top","right","left","bottom"]},{name:"Flex",open:!1,properties:["flex-direction","flex-wrap","justify-content","align-items","align-content","order","flex-basis","flex-grow","flex-shrink","align-self"]},{name:"Dimension",open:!1,properties:["width","height","max-width","min-height","margin","padding"]},{name:"Typography",open:!1,properties:["font-family","font-size","font-weight","letter-spacing","color","line-height","text-align","text-shadow"]},{name:"Decorations",open:!1,properties:["background-color","border-radius","border","box-shadow","background"]},{name:"Extra",open:!1,properties:["opacity","transition","transform"]}],appendTo:"",stylePrefix:"sm-",custom:!1,hideNotStylable:!0,highlightChanged:!0,highlightComputed:!0,showComputed:!0,clearProperties:!0,avoidComputed:["width","height"]})||this;n.Sector=Wh,n.storageKey="",(0,i.bindAll)(n,"__clearStateTarget");var r=n.config,o=r.pStylePrefix;o&&(r.stylePrefix=o+r.stylePrefix),n.builtIn=new Jh,n.properties=new Hh([],{em:e,module:n}),n.sectors=n.all;var a=new d.Kx({targets:[]});n.model=a;var s=ct.I.update,l="component:toggled ".concat(s,":classes change:state change:device frame:resized selector:type");n.upAll=(0,i.debounce)((function(){return n.__upSel()}),0),a.listenTo(e,l,n.upAll),a.listenTo(e,"component:toggled",n.__clearStateTarget);var c=(0,i.debounce)((function(){n.__upProps(),n.__trgCustom()}),0);a.listenTo(e,"styleable:change undo redo",c);var u=(0,i.debounce)((function(){return n.__trgCustom()}),0);return a.listenTo(e,"".concat(_g," ").concat(wg),u),a.on("change:lastTarget",(function(){return e.trigger(wg,n.getSelected())})),n}return sg(e,t),e.prototype.__upSel=function(){this.select(this.em.getSelectedAll())},e.prototype.__trgCustom=function(t){void 0===t&&(t={}),this.__ctn=this.__ctn||t.container,this.em.trigger(this.events.custom,{container:this.__ctn})},e.prototype.__trgEv=function(t){for(var e,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(e=this.em).trigger.apply(e,cg([t],n,!1))},e.prototype.__clearStateTarget=function(){var t=this,e=this.em,n=this.__getStateTarget();n&&(null==e||e.skip((function(){e.Css.remove(n),t.model.set({stateTarget:null})})))},e.prototype.onLoad=function(){this.sectors.add(this.config.sectors,{silent:!0})},e.prototype.postRender=function(){this.__appendTo()},e.prototype.addSector=function(t,e,n){void 0===n&&(n={});var r=this.getSector(t);return r||(e.id=t,r=this.sectors.add(e,n)),r},e.prototype.getSector=function(t,e){void 0===e&&(e={});var n=this.sectors.where({id:t})[0];return!n&&e.warn&&this._logNoSector(t),n||null},e.prototype.getSectors=function(t){void 0===t&&(t={});var e=this.sectors,n=e&&e.models?t.array?cg([],e.models,!0):e:[];return t.visible?n.filter((function(t){return t.isVisible()})):n},e.prototype.removeSector=function(t){return this.getSectors().remove(this.getSector(t,{warn:!0}))},e.prototype.addProperty=function(t,e,n){void 0===n&&(n={});var r,o=this.getSector(t,{warn:!0});return o&&(r=o.addProperty(e,n)),r},e.prototype.getProperty=function(t,e){var n,r=this.getSector(t,{warn:!0});return r&&(n=r.properties.filter((function(t){return t.get("property")===e||t.get("id")===e}))[0]),n},e.prototype.getProperties=function(t){var e,n=this.getSector(t,{warn:!0});return n&&(e=n.properties),e},e.prototype.removeProperty=function(t,e){var n=this.getProperties(t);return n?n.remove(this.getProperty(t,e)):null},e.prototype.select=function(t,e){var n=this;void 0===e&&(e={});var r=this.em,o=(0,i.isArray)(t)?t:[t],s=e.stylable,l=r.Css,c=[];o.filter(Boolean).forEach((function(t){var e=t;if((0,i.isString)(t)){var n=l.getRule(t)||l.setRule(t);!(0,i.isUndefined)(s)&&n.set({stylable:s}),e=n}c.push(e)}));var u=e.component||c.filter((function(t){return(0,a.isComponent)(t)})).reverse()[0];c=c.map((function(t){return n.getModelToStyle(t)}));var p=r.getState(),d=c.slice().reverse()[0],f=this.getParentRules(d,{state:p,component:u}),h=this.__getStateTarget();return r.skip((function(){var t;if(p&&(null===(t=null==d?void 0:d.getState)||void 0===t?void 0:t.call(d))){var e=d.getStyle();h?h.setStyle(e):h=l.getAll().add({selectors:"gjs-selected",style:e,shallow:!0,important:!0})}else h&&(l.remove(h),h=void 0)})),this.model.set({targets:c,lastTarget:d,lastTargetParents:f,stateTarget:h,component:u}),this.__upProps(e),c},e.prototype.getSelected=function(){return this.model.get("lastTarget")},e.prototype.getSelectedAll=function(){return this.model.get("targets")},e.prototype.getSelectedParents=function(){return this.model.get("lastTargetParents")||[]},e.prototype.__getStateTarget=function(){return this.model.get("stateTarget")},e.prototype.addStyleTargets=function(t,e){this.getSelectedAll().map((function(n){return n.addStyle(t,e)}));var n=this.getSelected();n&&this.__emitCmpStyleUpdate(t);var r=this.__getStateTarget();n&&(null==r||r.setStyle(n.getStyle(),e))},e.prototype.getBuiltIn=function(t){return this.builtIn.get(t)},e.prototype.getBuiltInAll=function(){return this.builtIn.props},e.prototype.addBuiltIn=function(t,e){return this.builtIn.add(t,e)},e.prototype.getModelToStyle=function(t,e){void 0===e&&(e={});var n=this.em,r=e.skipAdd;if(n&&(null==t?void 0:t.toHTML)){var o=n.getConfig(),i=n.UndoManager,a=n.Css,s=n.Selectors,l=s?s.getConfig():{},c=o.devicePreviewMode?"":n.get("state"),u=t.get("classes").getStyleable(),p=u.length,d=!l.componentFirst||e.useClasses,f={noCount:1},h={state:c,addOpts:f};i.skip((function(){var e;if(p&&d){var i=n.getCurrentMedia();(e=a.get(u,c,i))||r||(e=a.add(u,c,i,{},f))}else if(o.avoidInlineStyle){var s=t.getId();!(e=a.getIdRule(s,h))&&!r&&(e=a.setIdRule(s,{},h)),t.is("wrapper")&&e.set("wrapper",1,f)}e&&(t=e)}))}return t},e.prototype.getParentRules=function(t,e){var n=void 0===e?{}:e,r=n.state,o=n.component,a=this.em,s=[];if(a&&t){var l=o,c=a.Css,u=a.CodeManager.getGenerator("css"),p=t.toHTML?t:t.getComponent(),d={array:!0},f=[],h=[],g=[],m=[],v=function(t){return t.length?c.getRules().filter((function(e){var n=e.getSelectors().map((function(t){return t.getFullName()}));return 0!==n.length&&n.every((function(e){return t.indexOf(e)>=0}))})):[]},y=function(t){return t?c.getRules().filter((function(e){return e.selectorsToString()===t})):[]};p?(f=c.getRules("#".concat(p.getId())),h=y(p.get("tagName")),m=(l?v(l.getSelectors().getFullName(d)):[]).concat(h).concat(f)):(f=l?c.getRules("#".concat(l.getId())):[],h=y((null==l?void 0:l.get("tagName"))||""),g=v(((null==l?void 0:l.getSelectors().getFullName(d))||[]).filter((function(e){return-1===t.getSelectors().getFullName(d).findIndex((function(t){return t===e}))})).concat(t.getSelectors().getFullName(d))),m=h.concat(f).concat(g));var b=m.filter((function(t){return(0,i.isUndefined)(r)?1:t.get("state")===r})).sort(u.sortRules).reverse();s=b.slice(b.indexOf(t)+1)}return s},e.prototype.addType=function(t,e){this.properties.addType(t,e)},e.prototype.getType=function(t){return this.properties.getType(t)},e.prototype.getTypes=function(){return this.properties.getTypes()},e.prototype.createType=function(t,e){var n=void 0===e?{}:e,r=n.model,o=void 0===r?{}:r,i=n.view,a=void 0===i?{}:i,s=this.config,l=this.getType(t);if(l)return new l.view(lg({model:new l.model(o),config:s},a))},e.prototype.render=function(){var t=this,e=t.config,n=t.em,r=t.SectView,o=r&&r.el;return this.SectView=new ag({el:o,em:n,config:e,module:this,collection:this.sectors}),this.SectView.render().el},e.prototype._logNoSector=function(t){var e=this.em;e&&e.logWarning("'".concat(t,"' sector not found"))},e.prototype.__emitCmpStyleUpdate=function(t,e){void 0===e&&(e={});var n=this.em;if(!t.__p){var r=this.getSelectedAll(),o=e.components||n.getSelectedAll(),i=Array.isArray(o)?o:[o],a=lg({},t);delete a.__p,i.forEach((function(t){return!r.includes(t)&&t.__onStyleChange(a)}))}},e.prototype.__upProps=function(t){var e=this;void 0===t&&(t={});var n=this.getSelected();if(n){var r=this.sectors,o=this.model.get("component"),i=this.getSelectedParents(),a=n.getStyle(),s=i.map((function(t){return{target:t,style:t.getStyle()}}));r.map((function(n){n.getProperties().map((function(n){e.__upProp(n,a,s,t)}))})),r.forEach((function(t){var e=t.getProperties();e.forEach((function(t){var e=t.__checkVisibility({target:n,component:o,sectors:r});t.set("visible",e)}));var i=e.some((function(t){return t.isVisible()}));t.set("visible",i)}))}},e.prototype.__upProp=function(t,e,n,r){var o=this,i=t.getName(),a=e[i],s=xg(a),l="stack"===t.getType(),c="composite"===t.getType(),u=lg(lg({},r),{__up:!0}),p=!c&&!l,d=t,f=t,h=l?d.__getLayersFromStyle(e):[],g=c?f.__getPropsFromStyle(e):{},m=s?a:null,v=null;if(l&&null===h||c&&null===g){var y=l?"__getLayersFromStyle":"__getPropsFromStyle";if(_=n.filter((function(t){return null!==d[y](t.style)}))[0]){m=_.style[i],v=_.target;var b=d[y](_.style);l?h=b:g=b}}else if(!s){var _;m=null,(_=n.filter((function(t){return xg(t.style[i])}))[0])&&(m=_.style[i],v=_.target)}if(t.__setParentTarget(v),p&&t.__getFullValue()!==m&&t.upValue(m,u),l&&d.__setLayers(h||[],{isEmptyValue:d.isEmptyValueStyle(e)}),c){var w=f.getProperties();if(f.isDetached()){var E=f.__getPropsFromStyle(e,{byName:!0})||{},x=n.map((function(t){return lg(lg({},t),{style:f.__getPropsFromStyle(t.style,{byName:!0})||{}})}));w.map((function(t){return o.__upProp(t,E,x,r)}))}else f.__setProperties(g||{},u),f.getProperties().map((function(t){return t.__setParentTarget(v)}))}},e.prototype.destroy=function(){var t;[this.properties,this.sectors].forEach((function(t){t.reset(),t.stopListening()})),null===(t=this.SectView)||void 0===t||t.remove(),this.model.stopListening(),this.upAll.cancel()},e}(w);const Ag=Tg;var Og=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sg=function(){return Sg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Sg.apply(this,arguments)},kg=function(t){function e(e,n){var r;void 0===n&&(n={});var o=t.call(this,e,n)||this;return o.mutable=null===(r=e.mutable)||void 0===r||r,o.on("change",o.handleChange),o}return Og(e,t),Object.defineProperty(e.prototype,"cl",{get:function(){return this.collection},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataSource",{get:function(){return this.cl.dataSource},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"em",{get:function(){return this.dataSource.em},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.cl.indexOf(this)},enumerable:!1,configurable:!0}),e.prototype.handleChange=function(){var t=this,e=this.changedAttributes();(0,i.keys)(e).forEach((function(e){return t.triggerChange(e)}))},e.prototype.getPath=function(t,e){void 0===e&&(e={});var n=this,r=n.dataSource,o=n.id,i=n.index,a=r.id,s=t?".".concat(t):"";return"".concat(a,".").concat(e.useIndex?i:o).concat(s)},e.prototype.getPaths=function(t){return[this.getPath(t),this.getPath(t,{useIndex:!0})]},e.prototype.triggerChange=function(t){var e=this.dataSource,n=this.em,r={dataSource:e,dataRecord:this};this.getPaths(t).forEach((function(t){return n.trigger("".concat(Ht.path,":").concat(t),Sg(Sg({},r),{path:t}))}))},e.prototype.set=function(e,n,r){var o,i,a=this;if(!this.isNew()&&!1===this.attributes.mutable)throw new Error("Cannot modify immutable record");var s=null===(i=null===(o=this.dataSource)||void 0===o?void 0:o.transformers)||void 0===i?void 0:i.onRecordSetValue,l=function(e,n,r){void 0===r&&(r={});var o=(null==r?void 0:r.avoidTransformers)||!s?n:s({id:a.id,key:e,value:n});t.prototype.set.call(a,e,o,r),t.prototype.set.call(a,{__p:!!r.partial||void 0},r)};if("object"==typeof e&&null!==e)for(var c=e,u=0,p=Object.entries(c);u<p.length;u++){var d=p[u];l(d[0],d[1],n)}else l(e,n,r);return this},e}(d.Kx);const Pg=kg;var jg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ng=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.dataSource=n.dataSource,r}return jg(e,t),e}(d.pM);const Lg=Ng;Ng.prototype.model=Pg;var Dg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ig=function(){return Ig=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Ig.apply(this,arguments)};const Rg=function(t){function e(e,n){var r=t.call(this,Ig(Ig({},e),{records:[]}),n)||this,o=e.records,i=e.transformers;return r.transformers=i||{},o instanceof Lg||r.set({records:new Lg(o,{dataSource:r})}),r.listenTo(r.records,"add",r.onAdd),r.listenTo(r.records,d.e2,r.handleChanges),r}return Dg(e,t),e.prototype.defaults=function(){return{records:[],transformers:{}}},Object.defineProperty(e.prototype,"records",{get:function(){return this.attributes.records},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"em",{get:function(){return this.collection.em},enumerable:!1,configurable:!0}),e.prototype.onAdd=function(t){t.triggerChange()},e.prototype.addRecord=function(t,e){return this.records.add(t,e)},e.prototype.getRecord=function(t){return this.records.get(t)},e.prototype.getRecords=function(){var t=this;return function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([],this.records.models,!0).map((function(e){return t.getRecord(e.id)}))},e.prototype.removeRecord=function(t,e){var n=this.getRecord(t);if(!1===(null==n?void 0:n.mutable)&&!(null==e?void 0:e.dangerously))throw new Error("Cannot remove immutable record");return this.records.remove(t,e)},e.prototype.setRecords=function(t){var e=this;this.records.reset([],{silent:!0}),t.forEach((function(t){e.records.add(t)}))},e.prototype.handleChanges=function(t,e,n){this.em.changesUp(n||e)},e}(d.Kx);var Mg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bg=function(){return Bg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Bg.apply(this,arguments)};const Fg=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.em=n,r.model=function(t,e){return void 0===e&&(e={}),new Rg(t,Bg(Bg({},e),{em:n}))},r}return Mg(e,t),e}(d.pM);var Ug=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Hg=function(t){function e(e){var n=t.call(this,e,"DataSources",new Fg([],e),Ht)||this;return n.storageKey="dataSources",n.events=Ht,Object.assign(n,c.Events),n}return Ug(e,t),e.prototype.destroy=function(){},e.prototype.add=function(t,e){void 0===e&&(e={});var n=this.all;return t.id=t.id||this._createId(),n.add(t,e)},e.prototype.get=function(t){return this.all.get(t)},e.prototype.getValue=function(t,e){return(0,a.get)(this.getContext(),t,e)},e.prototype.getContext=function(){return this.all.reduce((function(t,e){return t[e.id]=e.records.reduce((function(t,e,n){var r=e;return t[r.id||n]=r.attributes,t}),{}),t}),{})},e.prototype.remove=function(t,e){return this.__remove(t,e)},e.prototype.fromPath=function(t){var e=[],n=(0,a.stringToPath)(t||""),r=n[0],o=n[1],i=n.slice(2),s=this.get(r),l=null==s?void 0:s.records.get(o);return s&&e.push(s),l&&(e.push(l),i.length&&e.push(i.join("."))),e},e.prototype.store=function(){var t,e=[];return this.all.forEach((function(t){var n=t.get("skipFromStorage");n||e.push({id:t.id,name:t.get("name"),records:t.records.toJSON(),skipFromStorage:n})})),(t={})[this.storageKey]=e,t},e.prototype.load=function(t){return this.loadProjectData(t)},e.prototype.postLoad=function(){var t=this.em,e=this.all;t.listenTo(e,d.e2,(function(e,n,r){return t.changesUp(r||n)}))},e}(w);const Vg=Hg;var qg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zg=function(){return zg=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},zg.apply(this,arguments)},Wg=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},Gg=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}};u().$=p.default;var Yg=[gp,Su,Fp,sf,ul,q,Ns,Ag,ms,Kp,$d,Od,xf,Gl,kc,pr,pc,Ma,Vg],Kg=[uu,ga,wu,Ji,Vg];!function(t){var e=t.$;if(e&&e.prototype&&"jQuery"!==e.prototype.constructor.name){var n=e.fn;n.hide=function(){return this.css("display","none")},n.show=function(){return this.css("display","block")},n.focus=function(){var t=this.get(0);return t&&t.focus(),this},n.bind=function(t,e){return this.on(t,e)},n.unbind=function(t,e){if((0,i.isObject)(t)){for(var n in t)t.hasOwnProperty(n)&&this.off(n,t[n]);return this}return this.off(t,e)},n.click=function(t){return t?this.on("click",t):this.trigger("click")},n.change=function(t){return t?this.on("change",t):this.trigger("change")},n.keydown=function(t){return t?this.on("keydown",t):this.trigger("keydown")},n.delegate=function(t,e,n,r){return r||(r=n),this.on(e,t,(function(t){t.data=n,r(t)}))},n.scrollLeft=function(){var t=this.get(0),e=(t=9==t.nodeType?t.defaultView:t)instanceof Window?t:null;return e?e.pageXOffset:t.scrollLeft||0},n.scrollTop=function(){var t=this.get(0),e=(t=9==t.nodeType?t.defaultView:t)instanceof Window?t:null;return e?e.pageYOffset:t.scrollTop||0};var r=e.prototype.offset;n.offset=function(t){var e,n;return t&&(e=t.top,n=t.left),void 0!==e&&this.css("top","".concat(e,"px")),void 0!==n&&this.css("left","".concat(n,"px")),r.call(this)},e.map=function(t,e){for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n};var o=Array.prototype.indexOf;e.inArray=function(t,e,n){return null==e?-1:o.call(e,t,n)},e.Event=function(t,n){if(!(this instanceof e.Event))return new e.Event(t,n);this.type=t,this.isDefaultPrevented=function(){return!1}}}}({$:p.default});var $g={debug:console.log,info:console.info,warning:console.warn,error:console.error},Xg=function(t){function e(e){void 0===e&&(e={});var n=t.call(this)||this;n.Model=d.Kx,n.Collection=d.pM,n.__skip=!1,n.defaultRunning=!1,n.destroyed=!1,n._config=e;var r=n.config;n.set("Config",e),n.set("modules",[]),n.set("toLoad",[]),n.set("storables",[]),n.set("selected",new g),n.set("dmode",r.dragMode);var o=r.el,a=r.log,s=!0===a?(0,i.keys)($g):(0,i.isArray)(a)?a:[];return(0,i.bindAll)(n,"initBaseColorPicker"),o&&r.fromElement&&(r.components=o.innerHTML),n.attrsOrig=o?(0,i.toArray)(o.attributes).reduce((function(t,e){return t[e.nodeName]=e.nodeValue,t}),{}):"",r.components&&!r.pageManager&&(r.pageManager={pages:[{component:r.components}]}),Yg.forEach((function(t){return n.loadModule(t)})),Kg.forEach((function(t){return n.loadStorableModule(t)})),n.on("change:componentHovered",n.componentHovered,n),n.on("change:changesCount",n.updateChanges,n),n.on("change:readyLoad change:readyCanvas",n._checkReady,n),s.forEach((function(t){return n.listenLog(t)})),[{from:"change:selectedComponent",to:"component:toggled"}].forEach((function(t){var e=t.from,r=t.to;n.listenTo(n,e,(function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];n.trigger.apply(n,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([r],t,!1)),n.logWarning("The event '".concat(e,"' is deprecated, replace it with '").concat(r,"'"))}))})),n}return qg(e,t),e.prototype.defaults=function(){return{editing:0,selected:0,clipboard:null,dmode:0,componentHovered:null,previousModel:null,changesCount:0,storables:[],modules:[],toLoad:[],opened:{},device:""}},Object.defineProperty(e.prototype,"storables",{get:function(){return this.get("storables")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"modules",{get:function(){return this.get("modules")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"toLoad",{get:function(){return this.get("toLoad")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.get("selected")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shallow",{get:function(){return this.get("shallow")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"I18n",{get:function(){return this.get("I18n")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Utils",{get:function(){return this.get("Utils")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Commands",{get:function(){return this.get("Commands")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Keymaps",{get:function(){return this.get("Keymaps")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Modal",{get:function(){return this.get("Modal")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Panels",{get:function(){return this.get("Panels")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CodeManager",{get:function(){return this.get("CodeManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"UndoManager",{get:function(){return this.get("UndoManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RichTextEditor",{get:function(){return this.get("RichTextEditor")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Canvas",{get:function(){return this.get("Canvas")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Editor",{get:function(){return this.get("Editor")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Components",{get:function(){return this.get("DomComponents")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Css",{get:function(){return this.get("CssComposer")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Blocks",{get:function(){return this.get("BlockManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Selectors",{get:function(){return this.get("SelectorManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Storage",{get:function(){return this.get("StorageManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Traits",{get:function(){return this.get("TraitManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Parser",{get:function(){return this.get("Parser")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Layers",{get:function(){return this.get("LayerManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Assets",{get:function(){return this.get("AssetManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Devices",{get:function(){return this.get("DeviceManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Pages",{get:function(){return this.get("PageManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Styles",{get:function(){return this.get("StyleManager")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"DataSources",{get:function(){return this.get("DataSources")},enumerable:!1,configurable:!0}),e.prototype._checkReady=function(){this.get("readyLoad")&&this.get("readyCanvas")&&!this.get("ready")&&this.set("ready",!0)},e.prototype.getContainer=function(){return this.config.el},e.prototype.listenLog=function(t){this.listenTo(this,"log:".concat(t),$g[t])},Object.defineProperty(e.prototype,"config",{get:function(){return this._config},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){var t;return(null===(t=this.config.grapesjs)||void 0===t?void 0:t.version)||""},enumerable:!1,configurable:!0}),e.prototype.getConfig=function(t){var e=this.config;return(0,i.isUndefined)(t)?e:e[t]},e.prototype.loadOnStart=function(){var t=this,n=this.config,r=n.projectData,o=n.headless,i={initial:!0},a=this.Storage;this.toLoad.reverse().forEach((function(t){return t.onLoad()}));var s=function(){t.modules.forEach((function(e){return e.postLoad&&e.postLoad(t)})),t.set("readyLoad",1)};o?(r&&this.loadData(r,i),s()):this._storageTimeout=setTimeout((function(){return Wg(t,void 0,void 0,(function(){var t;return Gg(this,(function(e){switch(e.label){case 0:return r?(this.loadData(r,i),[3,5]):[3,1];case 1:if(!(null==a?void 0:a.canAutoload()))return[3,5];e.label=2;case 2:return e.trys.push([2,4,,5]),[4,this.load({},i)];case 3:return e.sent(),[3,5];case 4:return t=e.sent(),this.logError(t),[3,5];case 5:return s(),[2]}}))}))}));var l=new e({noticeOnUnload:!1,storageManager:!1,undoManager:!1});l.set({isShallow:!0}),l.Pages.onLoad(),l.Canvas.postLoad(),this.set("shallow",l)},e.prototype.updateChanges=function(t,e,n){var r=this,o=this.Storage,i=this.getDirtyCount();n.isClear||(this.updateItr&&clearTimeout(this.updateItr),this.updateItr=setTimeout((function(){return r.trigger(Qd.update)}))),this.config.noticeOnUnload&&(window.onbeforeunload=i?function(){return!0}:null),o.isAutosave()&&i>=o.getStepsBeforeSave()&&this.store().catch((function(t){return r.logError(t)}))},e.prototype.loadModule=function(t){var e=new t(this);return this.set(e.name,e),e.onLoad&&this.toLoad.push(e),this.modules.push(e),e},e.prototype.loadStorableModule=function(t){var e=this.loadModule(t);return this.storables.push(e),e},e.prototype.init=function(t,e){void 0===e&&(e={}),this.destroyed&&(this.initialize(e),this.destroyed=!1),this.set("Editor",t)},e.prototype.getEditor=function(){return this.get("Editor")},e.prototype.handleUpdates=function(t,e,n){var r=this;void 0===n&&(n={}),this.__skip||n.temporary||n.noCount||n.avoidStore||n.partial||!this.get("ready")||(this.timedInterval&&clearTimeout(this.timedInterval),this.timedInterval=setTimeout((function(){var t=r.getDirtyCount()||0,e=(n.unset,function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n}(n,["unset"]));r.set("changesCount",t+1,e)}),0))},e.prototype.changesUp=function(t){this.handleUpdates(0,0,t)},e.prototype.componentHovered=function(t,e,n){var r=this.previous("componentHovered");r&&this.trigger("component:unhovered",r,n),e&&this.trigger("component:hovered",e,n)},e.prototype.getSelected=function(){return this.selected.lastComponent()},e.prototype.getSelectedAll=function(){return this.selected.allComponents()},e.prototype.setSelected=function(t,e){var n=this;void 0===e&&(e={});var r=e.event,o=r&&(r.ctrlKey||r.metaKey),a=(r||{}).shiftKey,s=((0,i.isArray)(t)?t:[t]).map((function(t){var e,n;return(null===(n=null===(e=null==t?void 0:t.delegate)||void 0===e?void 0:e.select)||void 0===n?void 0:n.call(e,t))||t})).filter(Boolean),l=this.getSelectedAll(),c=this.getConfig().multipleSelection,u=(0,i.isArray)(t);!u&&t||this.removeSelected(l.filter((function(t){return!(0,i.contains)(s,t)}))),s.forEach((function(t){if(t&&(n.trigger(ct.I.selectBefore,t,e),!t.get("selectable")||e.abort)){if(!e.useValid)return;for(var r=t.parent();r&&!r.get("selectable");)r=r.parent();t=r}if(o&&c)return n.toggleSelected(t);if(a&&c){n.clearSelection(n.Canvas.getWindow());var s,p,d=t.collection,f=t.index();if(n.getSelectedAll().forEach((function(t){var e=t.collection,n=t.index();e===d&&(n<f?s=(0,i.isUndefined)(s)?n:Math.max(s,n):n>f&&(p=(0,i.isUndefined)(p)?n:Math.min(p,n)))})),!(0,i.isUndefined)(s))for(;s!==f;)n.addSelected(d.at(s),e),s++;if(!(0,i.isUndefined)(p))for(;p!==f;)n.addSelected(d.at(p),e),p--;return n.addSelected(t,e)}!u&&n.removeSelected(l.filter((function(e){return e!==t}))),n.addSelected(t,e)}))},e.prototype.addSelected=function(t,e){var n=this;void 0===e&&(e={}),((0,i.isArray)(t)?t:[t]).forEach((function(t){var r=n.selected;t&&t.get("selectable")&&!t.parents().some((function(t){return r.hasComponent(t)}))&&(e.forceChange&&n.removeSelected(t,e),r.allComponents().filter((function(e){return(0,i.contains)(e.parents(),t)})).forEach((function(t){return n.removeSelected(t,e)})),r.addComponent(t,e),n.trigger(ct.I.select,t,e),n.Canvas.addSpot({type:lt.F.Select,component:t}))}))},e.prototype.removeSelected=function(t,e){var n=this;void 0===e&&(e={}),this.selected.removeComponent(t,e),((0,i.isArray)(t)?t:[t]).forEach((function(t){return n.Canvas.removeSpots({type:lt.F.Select,component:t})}))},e.prototype.toggleSelected=function(t,e){var n=this;void 0===e&&(e={}),((0,i.isArray)(t)?t:[t]).forEach((function(t){n.selected.hasComponent(t)?n.removeSelected(t,e):n.addSelected(t,e)}))},e.prototype.setHovered=function(t,e){var n=this;void 0===e&&(e={});var r=function(t,e){var r=n,o=r.config,i=r.Canvas,a=n.getHovered(),s=n.getSelectedAll(),l=lt.F.Hover,c=lt.F.Spacing;n.set("componentHovered",t||null,e),a&&(i.removeSpots({type:l,component:a}),i.removeSpots({type:c,component:a})),t&&(i.addSpot({type:l,component:t}),s.includes(t)&&!o.showOffsetsSelected||i.addSpot({type:c,component:t}))};if(!t)return r();var o="component:hover";if(e.forceChange&&r(),this.trigger("".concat(o,":before"),t,e),!t.get("hoverable")){if(!e.useValid||e.abort)return;for(var i=t.parent();i&&!i.get("hoverable");)i=i.parent();t=i}e.abort||(r(t,e),this.trigger(o,t,e))},e.prototype.getHovered=function(){return this.get("componentHovered")},e.prototype.setComponents=function(t,e){return void 0===e&&(e={}),this.Components.setComponents(t,e)},e.prototype.getComponents=function(){var t=this.Components,e=this.CodeManager;if(t&&e){var n=t.getComponents();return e.getCode(n,"json")}},e.prototype.setStyle=function(t,e){void 0===e&&(e={});var n=this.Css;return n.clear(e),n.getAll().add(t,e),this},e.prototype.addStyle=function(t,e){void 0===e&&(e={});var n=this.getStyle().add(t,e);return(0,i.isArray)(n)?n:[n]},e.prototype.getStyle=function(){return this.Css.getAll()},e.prototype.setState=function(t){return this.set("state",t),this},e.prototype.getState=function(){return this.get("state")||""},e.prototype.getHtml=function(t){void 0===t&&(t={});var e=this.config,n=e.optsHtml,r=e.jsInHtml?this.getJs(t):"",o=t.component||this.Components.getComponent();return(o?this.CodeManager.getCode(o,"html",zg(zg({},n),t)):"")+(r?"<script>".concat(r,"<\/script>"):"")},e.prototype.getCss=function(t){void 0===t&&(t={});var e=this.config,n=e.optsCss,r=t.avoidProtected,o=(0,i.isUndefined)(t.keepUnusedStyles)?e.keepUnusedStyles:t.keepUnusedStyles,a=this.Css,s=t.component||this.Components.getComponent(),l=r?"":e.protectedCss,c=s&&this.CodeManager.getCode(s,"css",zg(zg({cssc:a,keepUnusedStyles:o},n),t));return s?t.json?c:l+c:""},e.prototype.getJs=function(t){void 0===t&&(t={});var e=t.component||this.Components.getWrapper();return e?this.CodeManager.getCode(e,"js").trim():""},e.prototype.store=function(t){return Wg(this,void 0,void 0,(function(){var e;return Gg(this,(function(n){switch(n.label){case 0:return e=this.storeData(),[4,this.Storage.store(e,t)];case 1:return n.sent(),this.clearDirtyCount(),[2,e]}}))}))},e.prototype.load=function(t){return Wg(this,arguments,void 0,(function(t,e){var n;return void 0===e&&(e={}),Gg(this,(function(r){switch(r.label){case 0:return[4,this.Storage.load(t)];case 1:return n=r.sent(),this.loadData(n,e),[4,(0,a.wait)()];case 2:return r.sent(),e.clear&&(this.UndoManager.clear(),this.clearDirtyCount()),[2,n]}}))}))},e.prototype.storeData=function(){var t={},e=this.getEditing();return e&&e.trigger("sync:content",{noCount:!0}),this.storables.forEach((function(e){t=zg(zg({},t),e.store(1))})),JSON.parse(JSON.stringify(t))},e.prototype.loadData=function(t,e){void 0===t&&(t={}),void 0===e&&(e={});var n=!1;return(0,a.isEmptyObj)(t)||(this.storables.forEach((function(t){return t.clear()})),this.storables.forEach((function(e){return e.load(t)})),n=!0),this.trigger(Qd.projectLoad,{project:t,loaded:n,initial:!!e.initial}),t},e.prototype.getDeviceModel=function(){var t=this.get("device");return this.Devices.get(t)},e.prototype.runDefault=function(t){void 0===t&&(t={});var e=this.get("Commands").get(this.config.defaultCommand);e&&!this.defaultRunning&&(e.stop(this,this,t),e.run(this,this,t),this.defaultRunning=!0)},e.prototype.stopDefault=function(t){void 0===t&&(t={});var e=this.get("Commands");if(e){var n=e.get(this.config.defaultCommand);n&&this.defaultRunning&&(n.stop(this,this,t),this.defaultRunning=!1)}},e.prototype.refreshCanvas=function(t){void 0===t&&(t={}),this.Canvas.refresh({spots:t.tools})},e.prototype.clearSelection=function(t){var e;null===(e=(t||window).getSelection())||void 0===e||e.removeAllRanges()},e.prototype.getCurrentMedia=function(){var t=this.config,e=this.getDeviceModel(),n=t.mediaCondition,r=t.devicePreviewMode,o=e&&e.get("widthMedia");return e&&o&&!r?"(".concat(n,": ").concat(o,")"):""},e.prototype.getWrapper=function(){return this.Components.getWrapper()},e.prototype.setCurrentFrame=function(t){return this.set("currentFrame",t)},e.prototype.getCurrentFrame=function(){return this.get("currentFrame")},e.prototype.getCurrentFrameModel=function(){var t;return null===(t=this.getCurrentFrame()||{})||void 0===t?void 0:t.model},e.prototype.getIcon=function(t){return(this.config.icons||{})[t]||""},e.prototype.getDirtyCount=function(){return this.get("changesCount")},e.prototype.clearDirtyCount=function(){return this.set({changesCount:0},{isClear:!0})},e.prototype.getZoomDecimal=function(){return this.Canvas.getZoomDecimal()},e.prototype.getZoomMultiplier=function(){return this.Canvas.getZoomMultiplier()},e.prototype.setDragMode=function(t){return this.set("dmode",t)},e.prototype.getDragMode=function(t){return(null==t?void 0:t.getDragMode())||this.get("dmode")||""},e.prototype.t=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.get("I18n");return null==n?void 0:n.t.apply(n,t)},e.prototype.inAbsoluteMode=function(t){return"absolute"===this.getDragMode(t)},e.prototype.destroyAll=function(){var t=this,e=this.config,n=this.view;this.trigger(Qd.destroy);var r=this.getEditor(),o=(e.grapesjs||{}).editors,i=void 0===o?[]:o,s=this.get("shallow");this._storageTimeout&&clearTimeout(this._storageTimeout),null==s||s.destroyAll(),this.stopListening(),this.stopDefault(),(this.modules||[]).slice().reverse().forEach((function(t){return t.destroy()})),(null==n?void 0:n.remove)&&n.remove(),this.clear({silent:!0}),this.destroyed=!0,["_config","view","_previousAttributes","_events","_listeners"].forEach((function(e){return t[e]={}})),i.splice(i.indexOf(r),1),(0,a.hasWin)()&&(0,p.default)(e.el).empty().attr(this.attrsOrig),this.trigger(Qd.destroyed)},e.prototype.getEditing=function(){var t=this.get("editing");return t&&t.model||void 0},e.prototype.setEditing=function(t){return this.set("editing",t),this},e.prototype.isEditing=function(){return!!this.get("editing")},e.prototype.log=function(t,e){void 0===e&&(e={});var n=Qd.log,r=e.ns,o=e.level,i=void 0===o?"debug":o;if(this.trigger(n,t,e),i&&this.trigger("".concat(n,":").concat(i),t,e),r){var a="".concat(n,"-").concat(r);this.trigger(a,t,e),i&&this.trigger("".concat(a,":").concat(i),t,e)}},e.prototype.logInfo=function(t,e){this.log(t,zg(zg({},e),{level:"info"}))},e.prototype.logWarning=function(t,e){this.log(t,zg(zg({},e),{level:"warning"}))},e.prototype.logError=function(t,e){this.log(t,zg(zg({},e),{level:"error"}))},e.prototype.initBaseColorPicker=function(t,e){void 0===e&&(e={});var n=this.config,r=n.colorPicker,o=void 0===r?{}:r,i=n.el,a=n.stylePrefix;return(0,p.default)(t).spectrum(zg(zg({containerClassName:"".concat(a,"one-bg ").concat(a,"two-color"),appendTo:i||"body",maxSelectionSize:8,showPalette:!0,palette:[],showAlpha:!0,chooseText:"Ok",cancelText:"⨯"},e),o))},e.prototype.skip=function(t){this.__skip=!0;var e=this.UndoManager;e?e.skip(t):t(),this.__skip=!1},e.prototype.data=function(t,e,n){var r="_gjs-data";if(t[r]||(t[r]={}),(0,i.isUndefined)(n))return t[r][e];t[r][e]=n},e}(d.Kx);const Zg=Xg;var Qg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jg=function(t){function e(e){var n=t.call(this,{model:e})||this,r=e.Panels,o=e.UndoManager;return e.view=n,e.once("change:ready",(function(){r.active(),r.disableButtons(),o.clear(),e.getConfig().telemetry&&n.sendTelemetryData().catch((function(){})),setTimeout((function(){e.trigger(Qd.load,e.Editor),e.clearDirtyCount()}))})),n}return Qg(e,t),e.prototype.render=function(){var t=this,e=this.$el,n=this.model,r=n.Panels,o=n.Canvas,i=n.config,s=n.modules,l=i.stylePrefix,c=["".concat(l,"editor")];!i.customUI&&c.push("".concat(l,"one-bg ").concat(l,"two-color"));var u=(0,p.default)(i.el||"body ".concat(i.container));i.cssIcons&&(0,a.appendStyles)(i.cssIcons,{unique:!0,prepand:!0}),e.empty(),i.width&&u.css("width",i.width),i.height&&u.css("height",i.height),e.append(o.render()),e.append(r.render());var d=n.shallow.Canvas.render();return d.style.display="none",e.append(d),e.attr("class",c.join(" ")),u.addClass("".concat(l,"editor-cont")).empty().append(e),s.forEach((function(e){var n;return null===(n=e.postRender)||void 0===n?void 0:n.call(e,t)})),this},e.prototype.sendTelemetryData=function(){return t=this,e=void 0,r=function(){var t,e,n,r,o,i,a;return function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,(function(s){switch(s.label){case 0:return"localhost"===(t=window.location.hostname)||t.includes("localhost")?[2]:(e="gjs_telemetry_sent_",n=this.model.version,r="".concat(e).concat(n),sessionStorage.getItem(r)?[2]:[4,fetch("".concat("https://app.grapesjs.com","/api/gjs/telemetry/collect"),{method:"POST",body:JSON.stringify({domain:t,version:n})})]);case 1:return(o=s.sent()).ok?[3,3]:(i=Error.bind,a="Failed to send telemetry data ".concat,[4,o.text()]);case 2:throw new(i.apply(Error,[void 0,a.apply("Failed to send telemetry data ",[s.sent()])]));case 3:return sessionStorage.setItem(r,"true"),Object.keys(sessionStorage).forEach((function(t){t.startsWith(e)&&t!==r&&sessionStorage.removeItem(t)})),this.trigger(Qd.telemetryInit),[2]}}))},new((n=void 0)||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}));var t,e,n,r},e}(d.Ss);const tm=Jg;var em=function(){return em=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},em.apply(this,arguments)},nm=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{l(r.next(t))}catch(t){i(t)}}function s(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))},rm=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}},om=function(){function t(t,e){var n;void 0===t&&(t={}),void 0===e&&(e={}),this.events=Qd,this.html=s;var r={stylePrefix:"gjs-",components:"",style:"",fromElement:!1,projectData:void 0,noticeOnUnload:!0,showOffsets:!1,showOffsetsSelected:!1,forceClass:!0,height:"900px",width:"100%",log:["warning","error"],baseCss:"",protectedCss:"* { box-sizing: border-box; } body {margin: 0;}",canvasCss:"",defaultCommand:"select-comp",showToolbar:!0,showDevices:!0,devicePreviewMode:!1,mediaCondition:"max-width",tagVarStart:"{[ ",tagVarEnd:" ]}",keepEmptyTextNodes:!1,jsInHtml:!0,nativeDnD:!0,multipleSelection:!0,optsHtml:{},optsCss:{},avoidInlineStyle:!0,avoidDefaults:!0,clearStyles:!1,listenToEl:[],cssIcons:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css",icons:{close:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"></path></svg>',move:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,6V11H18V7.75L22.25,12L18,16.25V13H13V18H16.25L12,22.25L7.75,18H11V13H6V16.25L1.75,12L6,7.75V11H11V6H7.75L12,1.75L16.25,6H13Z"/></svg>',plus:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z" /></svg>',caret:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M7,10L12,15L17,10H7Z" /></svg>',delete:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" /></svg>',copy:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" /></svg>',arrowUp:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z" /></svg>',chevron:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z" /></svg>',eye:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z" /></svg>',eyeOff:'<svg viewBox="0 0 24 24"><path fill="currentColor" d="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z" /></svg>'},i18n:{},undoManager:{},assetManager:{},canvas:{},layerManager:{},storageManager:{},richTextEditor:{},domComponents:{},modal:{},codeManager:{},panels:{},commands:{},cssComposer:{},selectorManager:{},deviceManager:{},styleManager:{},blockManager:{},traitManager:{},textViewCode:"Code",keepUnusedStyles:!1,customUI:!1,telemetry:!0};this.config=em(em(em({},r),t),{pStylePrefix:null!==(n=t.stylePrefix)&&void 0!==n?n:r.stylePrefix}),this.em=new Zg(this.config),this.$=e.$,this.em.init(this),this.editor=this.em}return Object.defineProperty(t.prototype,"Config",{get:function(){return this.em.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"I18n",{get:function(){return this.em.I18n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Utils",{get:function(){return this.em.Utils},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Commands",{get:function(){return this.em.Commands},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Keymaps",{get:function(){return this.em.Keymaps},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Modal",{get:function(){return this.em.Modal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Panels",{get:function(){return this.em.Panels},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Canvas",{get:function(){return this.em.Canvas},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Parser",{get:function(){return this.em.Parser},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CodeManager",{get:function(){return this.em.CodeManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UndoManager",{get:function(){return this.em.UndoManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RichTextEditor",{get:function(){return this.em.RichTextEditor},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Pages",{get:function(){return this.em.Pages},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Components",{get:function(){return this.em.Components},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DomComponents",{get:function(){return this.em.Components},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Layers",{get:function(){return this.em.Layers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LayerManager",{get:function(){return this.em.Layers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Css",{get:function(){return this.em.Css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CssComposer",{get:function(){return this.em.Css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Storage",{get:function(){return this.em.Storage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StorageManager",{get:function(){return this.em.Storage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Assets",{get:function(){return this.em.Assets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AssetManager",{get:function(){return this.em.Assets},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Blocks",{get:function(){return this.em.Blocks},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BlockManager",{get:function(){return this.em.Blocks},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Traits",{get:function(){return this.em.Traits},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TraitManager",{get:function(){return this.em.Traits},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Selectors",{get:function(){return this.em.Selectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SelectorManager",{get:function(){return this.em.Selectors},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Styles",{get:function(){return this.em.Styles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StyleManager",{get:function(){return this.em.Styles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Devices",{get:function(){return this.em.Devices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DeviceManager",{get:function(){return this.em.Devices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DataSources",{get:function(){return this.em.DataSources},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EditorModel",{get:function(){return this.em},enumerable:!1,configurable:!0}),t.prototype.getConfig=function(t){return this.em.getConfig(t)},t.prototype.getHtml=function(t){return this.em.getHtml(t)},t.prototype.getCss=function(t){return this.em.getCss(t)},t.prototype.getJs=function(t){return this.em.getJs(t)},t.prototype.getComponents=function(){return this.Components.getComponents()},t.prototype.getWrapper=function(){return this.Components.getWrapper()},t.prototype.setComponents=function(t,e){return void 0===e&&(e={}),this.em.setComponents(t,e),this},t.prototype.addComponents=function(t,e){return this.getWrapper().append(t,e)},t.prototype.getStyle=function(){return this.em.Css.getAll()},t.prototype.setStyle=function(t,e){return void 0===e&&(e={}),this.em.setStyle(t,e),this},t.prototype.addStyle=function(t,e){return void 0===e&&(e={}),this.em.addStyle(t,e)},t.prototype.getSelected=function(){return this.em.getSelected()},t.prototype.getSelectedAll=function(){return this.em.getSelectedAll()},t.prototype.getSelectedToStyle=function(){var t=this.em.getSelected();if(t)return this.StyleManager.getModelToStyle(t)},t.prototype.select=function(t,e){return this.em.setSelected(t,e),this},t.prototype.selectAdd=function(t){return this.em.addSelected(t),this},t.prototype.selectRemove=function(t){return this.em.removeSelected(t),this},t.prototype.selectToggle=function(t){return this.em.toggleSelected(t),this},t.prototype.getEditing=function(){return this.em.getEditing()},t.prototype.setDevice=function(t){return this.em.set("device",t),this},t.prototype.getDevice=function(){return this.em.get("device")},t.prototype.runCommand=function(t,e){return void 0===e&&(e={}),this.Commands.run(t,e)},t.prototype.stopCommand=function(t,e){return void 0===e&&(e={}),this.Commands.stop(t,e)},t.prototype.store=function(t){return nm(this,void 0,void 0,(function(){return rm(this,(function(e){switch(e.label){case 0:return[4,this.em.store(t)];case 1:return[2,e.sent()]}}))}))},t.prototype.load=function(t){return nm(this,arguments,void 0,(function(t,e){return void 0===e&&(e={}),rm(this,(function(n){switch(n.label){case 0:return[4,this.em.load(t,e)];case 1:return[2,n.sent()]}}))}))},t.prototype.getProjectData=function(){return this.em.storeData()},t.prototype.loadProjectData=function(t){return this.em.loadData(t)},t.prototype.storeData=function(){return this.em.storeData()},t.prototype.loadData=function(t){return this.em.loadData(t)},t.prototype.getContainer=function(){return this.config.el},t.prototype.getDirtyCount=function(){return this.em.getDirtyCount()},t.prototype.clearDirtyCount=function(){return this.em.clearDirtyCount()},t.prototype.refresh=function(t){this.em.refreshCanvas(t)},t.prototype.setCustomRte=function(t){this.RichTextEditor.customRte=t},t.prototype.setCustomParserCss=function(t){return this.Parser.getConfig().parserCss=t,this},t.prototype.setDragMode=function(t){return this.em.setDragMode(t),this},t.prototype.log=function(t,e){return void 0===e&&(e={}),this.em.log(t,e),this},t.prototype.t=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this.em).t.apply(t,e)},t.prototype.on=function(t,e){return this.em.on(t,e),this},t.prototype.once=function(t,e){return this.em.once(t,e),this},t.prototype.off=function(t,e){return this.em.off(t,e),this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.em.trigger.apply(this.em,function(t,e,n){if(n||2===arguments.length)for(var r,o=0,i=e.length;o<i;o++)!r&&o in e||(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}([t],e,!0)),this},t.prototype.destroy=function(){this.em&&(this.em.destroyAll(),this.editorView=void 0)},t.prototype.getEl=function(){var t;return null===(t=this.editorView)||void 0===t?void 0:t.el},t.prototype.getModel=function(){return this.em},t.prototype.render=function(){var t;return null===(t=this.editorView)||void 0===t||t.remove(),this.editorView=new tm(this.em),this.editorView.render().el},t.prototype.onReady=function(t){this.em.get("ready")?t(this):this.em.on("load",t)},t}();const im=om;var am=function(t,e){return(0,i.isString)(t)?function(t,e){var n=e.get(t);if(!n){var r=(0,a.getGlobal)()[t];n=(null==r?void 0:r.default)||r}return n}(t,e):(null==t?void 0:t.default)||t},sm=function(t,e){t.getModel().logWarning("Plugin ".concat(e," not found"),{context:"plugins",plugin:e})};const lm=function(){function t(){this.plugins={}}return t.prototype.add=function(t,e){return this.get(t)||(this.plugins[t]=e,e)},t.prototype.get=function(t){return this.plugins[t]},t.prototype.getAll=function(){return this.plugins},t}();var cm=function(){return cm=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},cm.apply(this,arguments)};!function(){if((0,a.hasWin)()&&function(){for(var t,e=window.navigator.userAgent,n=[["edge",/Edge\/([0-9\._]+)/],["ie",/MSIE\s(7\.0)/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/]],r=0;r<n.length&&!(t=n[r][1].exec(e));r++);return!!t}()){var t=DOMImplementation.prototype.createHTMLDocument;DOMImplementation.prototype.createHTMLDocument=function(e){return e||(e=""),t.apply(document.implementation,[e])}}}();var um=new lm,pm=[],dm=function(t,e){var n=am(t,um);return function(r){n?n(r,e||{}):sm(r,t)}},fm={$:p.default,editors:pm,plugins:um,usePlugin:dm,version:"0.22.5",init:function(t){void 0===t&&(t={});var e=t.headless,n=t.container;if(!n&&!e)throw new Error("'container' is required");var r=cm(cm({autorender:!0,plugins:[],pluginsOpts:{}},t),{grapesjs:this,el:e?void 0:(0,i.isElement)(n)?n:document.querySelector(n)}),o=new im(r,{$:p.default}),a=o.getModel();return r.plugins.forEach((function(t){var e=am(t,um),n=r.pluginsOpts[t]||{};e?e(o,n):sm(o,t)})),a.loadOnStart(),r.autorender&&!e&&o.render(),pm.push(o),o}};const hm=fm;var gm=o.Ay,mm=n(716),vm=n.n(mm),ym=n(459),bm=n.n(ym);function _m(){var t=Math.random().toString(16).slice(2);return[{classes:[{name:"es-form-field-container"}],type:"form-field-container",components:[{classes:[{name:"gjs-row",private:1}],components:[{classes:[{name:"gjs-cell",private:1}],components:[{type:"text",tagName:"label",attributes:{for:"esfpx_name_"+t},classes:"es-field-label",components:[{type:"textnode",content:"Name"}]},{tagName:"input",type:"name",void:!0,attributes:{type:"text",id:"esfpx_name_"+t,required:!0,name:"esfpx_name",placeholder:"Enter your name",autocomplete:"off"}}]}]},{classes:[{name:"gjs-row",private:1}],components:[{classes:[{name:"gjs-cell",private:1}],components:[{type:"text",tagName:"label",attributes:{for:"esfpx_email_"+t},classes:"es-field-label",components:[{type:"textnode",content:"Email"}]},{tagName:"input",type:"email",void:!0,attributes:{type:"email",id:"esfpx_email_"+t,required:!0,name:"esfpx_email",placeholder:"Enter your email",autocomplete:"off"}}]}]},{classes:[{name:"gjs-row",private:1}],components:[{classes:[{name:"gjs-cell",private:1}],components:[{tagName:"input",type:"submit",void:!0,attributes:{type:"submit",required:!0,value:"Subscribe",name:"submit"}}]}]}]}]}function wm(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"block";if("class"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"class"))for(var n=document.getElementsByClassName(t),r=0;r<n.length;r++)Em(n[r],e);else Em(document.getElementById(t),e)}function Em(t,e){t.style.display=e}var xm={twoOneColumn:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M15 4V20M20 6C20 5.46957 19.7893 4.96086 19.4142 4.58579C19.0391 4.21071 18.5304 4 18 4H6C5.46957 4 4.96086 4.21071 4.58579 4.58579C4.21071 4.96086 4 5.46957 4 6V18C4 18.5304 4.21071 19.0391 4.58579 19.4142C4.96086 19.7893 5.46957 20 6 20H18C18.5304 20 19.0391 19.7893 19.4142 19.4142C19.7893 19.0391 20 18.5304 20 18V6Z" stroke="#575362" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n  </svg>',oneTwoColumn:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M9 4V20M4 6C4 5.46957 4.21071 4.96086 4.58579 4.58579C4.96086 4.21071 5.46957 4 6 4H18C18.5304 4 19.0391 4.21071 19.4142 4.58579C19.7893 4.96086 20 5.46957 20 6V18C20 18.5304 19.7893 19.0391 19.4142 19.4142C19.0391 19.7893 18.5304 20 18 20H6C5.46957 20 4.96086 19.7893 4.58579 19.4142C4.21071 19.0391 4 18.5304 4 18V6Z" stroke="#575362" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n  </svg>',spacer:'<svg viewBox="0 0 100 100" width="36" height="36"><path style="fill: #000000" d="m3 6h94v10h-94v-10zm0 78h94v10h-94v-10z" /><path style="fill: #000000" d="m51.27 81.31c-0.32 0.46-0.7 0.69-1.14 0.69c-0.44 0-0.82-0.23-1.14-0.69l-6.5-9.29c-0.32-0.46-0.48-1-0.48-1.63c0-0.63 0.16-1.17 0.48-1.63c0.32-0.46 0.7-0.69 1.14-0.69h3.25l0-37.14h-3.25c-0.44 0-0.82-0.23-1.14-0.69c-0.32-0.46-0.48-1-0.48-1.63c0-0.63 0.16-1.17 0.48-1.63l6.5-9.29c0.32-0.46 0.7-0.69 1.14-0.69c0.44 0 0.82 0.23 1.14 0.69l6.5 9.29c0.32 0.46 0.48 1 0.48 1.63c0 0.63-0.16 1.17-0.48 1.63c-0.32 0.46-0.7 0.69-1.14 0.69h-3.25l0 37.14h3.25c0.44 0 0.82 0.23 1.14 0.69c0.32 0.46 0.48 1 0.48 1.63c0 0.63-0.16 1.17-0.48 1.63l-6.5 9.29v0z" /></svg>',divider:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <g clip-path="url(#clip0_565_2537)">\n  <path fill-rule="evenodd" clip-rule="evenodd" d="M17.7008 4.39993C17.7008 4.74972 17.4172 5.03327 17.0674 5.03327H6.93411C6.58433 5.03327 6.30078 4.74972 6.30078 4.39993C6.30078 4.05015 6.58433 3.7666 6.93411 3.7666H17.0674C17.4172 3.7666 17.7008 4.05015 17.7008 4.39993ZM15.1674 8.19993C15.1674 8.54971 14.8839 8.83327 14.5341 8.83327H6.93411C6.58433 8.83327 6.30078 8.54971 6.30078 8.19993C6.30078 7.85015 6.58433 7.5666 6.93411 7.5666H14.5341C14.8839 7.5666 15.1674 7.85015 15.1674 8.19993ZM17.7008 15.7999C17.7008 16.1497 17.4172 16.4333 17.0674 16.4333H6.93411C6.58433 16.4333 6.30078 16.1497 6.30078 15.7999C6.30078 15.4502 6.58433 15.1666 6.93411 15.1666H17.0674C17.4172 15.1666 17.7008 15.4502 17.7008 15.7999ZM15.1674 19.5999C15.1674 19.9497 14.8839 20.2333 14.5341 20.2333H6.93411C6.58433 20.2333 6.30078 19.9497 6.30078 19.5999C6.30078 19.2502 6.58433 18.9666 6.93411 18.9666H14.5341C14.8839 18.9666 15.1674 19.2502 15.1674 19.5999Z" fill="#A4A4A4"/>\n  <path d="M3.13333 12.6332H20.8667C21.2164 12.6332 21.5 12.3497 21.5 11.9999C21.5 11.6501 21.2164 11.3666 20.8667 11.3666H3.13333C2.78355 11.3666 2.5 11.6501 2.5 11.9999C2.5 12.3497 2.78355 12.6332 3.13333 12.6332Z" fill="#575362"/>\n  </g>\n  <defs>\n  <clipPath id="clip0_565_2537">\n  <rect width="19" height="19" fill="white" transform="translate(2.5 2.5)"/>\n  </clipPath>\n  </defs>\n  </svg>',twoColumn:'<svg  width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#000000" stroke="#cccccc" stroke-linejoin="round"><path d="M154.8,13.76c1.89978,0.00019 3.43981,1.54022 3.44,3.44v137.6c-0.00019,1.89978 -1.54022,3.43981 -3.44,3.44h-137.6c-1.89978,-0.00019 -3.43981,-1.54022 -3.44,-3.44v-137.6c0.00019,-1.89978 1.54022,-3.43981 3.44,-3.44zM20.64,151.36h61.92v-130.72h-61.92zM89.44,151.36h61.92v-130.72h-61.92z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#000000" stroke="none" stroke-linejoin="miter"><path d="M17.2,13.76c-1.89978,0.00019 -3.43981,1.54022 -3.44,3.44v137.6c0.00019,1.89978 1.54022,3.43981 3.44,3.44h137.6c1.89978,-0.00019 3.43981,-1.54022 3.44,-3.44v-137.6c-0.00019,-1.89978 -1.54022,-3.43981 -3.44,-3.44zM20.64,20.64h61.92v130.72h-61.92zM89.44,20.64h61.92v130.72h-61.92z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>',oneColumn:'<svg  width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform=""><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="none" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><path d="M0,172v-172h172v172z" stroke="none" stroke-width="1"></path><path d="" stroke="none" stroke-width="1"></path><g stroke="#000000" stroke-width="6.88"><path d="M130.72,154.8c0,3.784 -3.096,6.88 -6.88,6.88h-75.68c-3.784,0 -6.88,-3.096 -6.88,-6.88v-137.6c0,-3.784 3.096,-6.88 6.88,-6.88h75.68c3.784,0 6.88,3.096 6.88,6.88z"></path></g></g></g></svg>',social:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M16.0219 7.10862C15.3961 6.04624 15.7531 4.69589 16.8193 4.09254C17.8854 3.48918 19.2569 3.86129 19.8826 4.92368C20.5084 5.98606 20.1514 7.33641 19.0852 7.93976C18.0191 8.54312 16.6476 8.17101 16.0219 7.10862Z" stroke="#575362" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>\n  <path d="M16.0219 19.0764C15.3961 18.014 15.7531 16.6637 16.8193 16.0603C17.8854 15.4569 19.2569 15.8291 19.8826 16.8914C20.5084 17.9538 20.1514 19.3042 19.0852 19.9075C18.0191 20.5109 16.6476 20.1388 16.0219 19.0764Z" stroke="#575362" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>\n  <path d="M4.11758 13.0924C3.49184 12.03 3.84884 10.6797 4.91496 10.0763C5.98108 9.47294 7.35259 9.84505 7.97833 10.9074C8.60407 11.9698 8.24707 13.3202 7.18095 13.9235C6.11483 14.5269 4.74331 14.1548 4.11758 13.0924Z" stroke="#575362" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>\n  <path d="M15.5723 7.21289L8.43696 10.7999" stroke="#575362" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>\n  <path d="M15.9453 16.9751L8.05528 13.0087" stroke="#575362" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>\n  </svg>',navbar:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M2.8457 6.10526C2.8457 5.81213 2.96626 5.531 3.18084 5.32372C3.39543 5.11645 3.68646 5 3.98993 5H20.0092C20.3126 5 20.6037 5.11645 20.8183 5.32372C21.0328 5.531 21.1534 5.81213 21.1534 6.10526C21.1534 6.3984 21.0328 6.67953 20.8183 6.8868C20.6037 7.09408 20.3126 7.21053 20.0092 7.21053H3.98993C3.68646 7.21053 3.39543 7.09408 3.18084 6.8868C2.96626 6.67953 2.8457 6.3984 2.8457 6.10526ZM2.8457 12C2.8457 11.7069 2.96626 11.4257 3.18084 11.2185C3.39543 11.0112 3.68646 10.8947 3.98993 10.8947H20.0092C20.3126 10.8947 20.6037 11.0112 20.8183 11.2185C21.0328 11.4257 21.1534 11.7069 21.1534 12C21.1534 12.2931 21.0328 12.5743 20.8183 12.7815C20.6037 12.9888 20.3126 13.1053 20.0092 13.1053H3.98993C3.68646 13.1053 3.39543 12.9888 3.18084 12.7815C2.96626 12.5743 2.8457 12.2931 2.8457 12ZM2.8457 17.8947C2.8457 17.6016 2.96626 17.3205 3.18084 17.1132C3.39543 16.9059 3.68646 16.7895 3.98993 16.7895H20.0092C20.3126 16.7895 20.6037 16.9059 20.8183 17.1132C21.0328 17.3205 21.1534 17.6016 21.1534 17.8947C21.1534 18.1879 21.0328 18.469 20.8183 18.6763C20.6037 18.8836 20.3126 19 20.0092 19H3.98993C3.68646 19 3.39543 18.8836 3.18084 18.6763C2.96626 18.469 2.8457 18.1879 2.8457 17.8947Z" fill="#565861"/>\n  </svg>',footer:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M16.6666 21.3336C17.2855 21.3336 17.879 21.0878 18.3166 20.6502C18.7542 20.2126 19 19.6191 19 19.0002L19 4.99983C19 4.38097 18.7542 3.78746 18.3166 3.34987C17.879 2.91227 17.2855 2.66643 16.6666 2.66643L7.33301 2.66643C6.71415 2.66643 6.12064 2.91227 5.68304 3.34987C5.24545 3.78746 4.99961 4.38097 4.99961 4.99983L4.99961 19.0002C4.99961 19.6191 5.24545 20.2126 5.68305 20.6502C6.12064 21.0878 6.71415 21.3336 7.33301 21.3336L16.6666 21.3336ZM17.8333 19.0002C17.8333 19.3096 17.7104 19.6064 17.4916 19.8252C17.2728 20.044 16.976 20.1669 16.6666 20.1669L7.33301 20.1669C7.02358 20.1669 6.72682 20.044 6.50803 19.8252C6.28923 19.6064 6.16631 19.3096 6.16631 19.0002L6.16631 4.99983C6.16631 4.6904 6.28923 4.39364 6.50802 4.17485C6.72682 3.95605 7.02358 3.83313 7.33301 3.83313L16.6666 3.83313C16.976 3.83313 17.2728 3.95605 17.4916 4.17484C17.7104 4.39364 17.8333 4.6904 17.8333 4.99983L17.8333 19.0002ZM15.4999 19.0002C15.8093 19.0002 16.1061 18.8773 16.3249 18.6585C16.5437 18.4397 16.6666 18.1429 16.6666 17.8335C16.6666 17.5241 16.5437 17.2273 16.3249 17.0085C16.1061 16.7897 15.8093 16.6668 15.4999 16.6668L8.49971 16.6668C8.19028 16.6668 7.89352 16.7897 7.67473 17.0085C7.45593 17.2273 7.33301 17.5241 7.33301 17.8335C7.33301 18.1429 7.45593 18.4397 7.67473 18.6585C7.89352 18.8773 8.19028 19.0002 8.49971 19.0002L15.4999 19.0002Z" fill="#575362"/>\n  </svg>',header:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M7.33327 2.66687C6.71445 2.66687 6.12097 2.9127 5.6834 3.35027C5.24583 3.78784 5 4.38132 5 5.00014V18.9997C5 19.6186 5.24583 20.212 5.6834 20.6496C6.12097 21.0872 6.71445 21.333 7.33327 21.333H16.6663C17.2852 21.333 17.8786 21.0872 18.3162 20.6496C18.7538 20.212 18.9996 19.6186 18.9996 18.9997V5.00014C18.9996 4.38132 18.7538 3.78784 18.3162 3.35027C17.8786 2.9127 17.2852 2.66687 16.6663 2.66687H7.33327ZM6.16663 5.00014C6.16663 4.69073 6.28955 4.39399 6.50833 4.1752C6.72712 3.95642 7.02386 3.8335 7.33327 3.8335H16.6663C16.9758 3.8335 17.2725 3.95642 17.4913 4.1752C17.7101 4.39399 17.833 4.69073 17.833 5.00014V18.9997C17.833 19.3092 17.7101 19.6059 17.4913 19.8247C17.2725 20.0435 16.9758 20.1664 16.6663 20.1664H7.33327C7.02386 20.1664 6.72712 20.0435 6.50833 19.8247C6.28955 19.6059 6.16663 19.3092 6.16663 18.9997V5.00014ZM8.4999 5.00014C8.19049 5.00014 7.89375 5.12305 7.67497 5.34184C7.45618 5.56062 7.33327 5.85736 7.33327 6.16677C7.33327 6.47618 7.45618 6.77292 7.67497 6.99171C7.89375 7.21049 8.19049 7.33341 8.4999 7.33341H15.4997C15.8091 7.33341 16.1059 7.21049 16.3246 6.99171C16.5434 6.77292 16.6663 6.47618 16.6663 6.16677C16.6663 5.85736 16.5434 5.56062 16.3246 5.34184C16.1059 5.12305 15.8091 5.00014 15.4997 5.00014H8.4999Z" fill="#575362"/>\n  </svg>',image:'<svg  width="36" height="36" viewBox="0 0 172 172" style=" fill:#000000;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#000000" stroke="#cccccc" stroke-linejoin="round"><path d="M172,17.2v137.6h-172v-137.6zM6.88,94.89563l31.4975,-31.4975l14.80813,22.22562l16.74312,-3.35937l14.05563,14.05562h20.3175l24.08,17.2h36.73812v-89.44h-158.24zM144.48,60.2c0,8.50594 -6.97406,15.48 -15.48,15.48c-8.50594,0 -15.48,-6.97406 -15.48,-15.48c0,-8.50594 6.97406,-15.48 15.48,-15.48c8.50594,0 15.48,6.97406 15.48,15.48zM120.4,60.2c0,4.78375 3.81625,8.6 8.6,8.6c4.78375,0 8.6,-3.81625 8.6,-8.6c0,-4.78375 -3.81625,-8.6 -8.6,-8.6c-4.78375,0 -8.6,3.81625 -8.6,8.6zM6.88,104.62438v43.29562h158.24v-27.52h-38.94187l-24.08,-17.2h-20.9625l-13.46438,-13.46437l-17.65687,3.52062l-12.71188,-19.05437z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#000000" stroke="none" stroke-linejoin="miter"><path d="M0,17.2v137.6h172v-137.6zM6.88,24.08h158.24v89.44h-36.73812l-24.08,-17.2h-20.3175l-14.05563,-14.05562l-16.74312,3.35937l-14.80813,-22.22562l-31.4975,31.4975zM129,44.72c-8.50594,0 -15.48,6.97406 -15.48,15.48c0,8.50594 6.97406,15.48 15.48,15.48c8.50594,0 15.48,-6.97406 15.48,-15.48c0,-8.50594 -6.97406,-15.48 -15.48,-15.48zM129,51.6c4.78375,0 8.6,3.81625 8.6,8.6c0,4.78375 -3.81625,8.6 -8.6,8.6c-4.78375,0 -8.6,-3.81625 -8.6,-8.6c0,-4.78375 3.81625,-8.6 8.6,-8.6zM37.3025,74.20188l12.71188,19.05437l17.65687,-3.52062l13.46438,13.46437h20.9625l24.08,17.2h38.94187v27.52h-158.24v-43.29562z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>\n  ',button:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M21.625 8.625L20.375 7.375C20.125 7.125 19.875 7 19.5 7H3.25C2.5 7 2 7.5 2 8.25V14.5C2 14.875 2.125 15.25 2.375 15.375L3.625 16.625C3.875 16.875 4.125 17 4.5 17H20.75C21.5 17 22 16.5 22 15.75V9.5C22 9.125 21.875 8.875 21.625 8.625ZM19.5 14.5H3.25V8.25H19.5V14.5Z" fill="#565861"/>\n  </svg>\n  ',text:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <g clip-path="url(#clip0_655_5005)">\n  <path d="M23.6431 3.78564H1.35742M23.6431 8.9285H1.35742M23.6431 14.0714H1.35742M13.4196 19.2142H1.35742" stroke="#575362" stroke-width="1.71429" stroke-linecap="round" stroke-linejoin="round"/>\n  </g>\n  <defs>\n  <clipPath id="clip0_655_5005">\n  <rect width="24" height="24" fill="white"/>\n  </clipPath>\n  </defs>\n  </svg>\n  ',video:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M10.4559 8.34517C10.3613 8.28604 10.2526 8.25331 10.1411 8.25038C10.0296 8.24746 9.91929 8.27443 9.82171 8.32851C9.72414 8.3826 9.64282 8.46181 9.58619 8.55793C9.52957 8.65406 9.49971 8.76358 9.49971 8.87515V15.3124C9.49969 15.4253 9.53028 15.5362 9.58824 15.6332C9.6462 15.7301 9.72935 15.8095 9.82885 15.863C9.92835 15.9165 10.0405 15.942 10.1533 15.9368C10.2662 15.9316 10.3755 15.896 10.4697 15.8336L15.4695 12.5225C15.5565 12.4648 15.6277 12.3862 15.6766 12.2939C15.7254 12.2016 15.7504 12.0985 15.7491 11.9941C15.7479 11.8897 15.7205 11.7872 15.6695 11.6961C15.6184 11.605 15.5454 11.5281 15.457 11.4725L10.4559 8.34517ZM5.12488 3.25037C4.29611 3.25037 3.50128 3.57959 2.91526 4.16562C2.32923 4.75165 2 5.54647 2 6.37524V17.6248C2 18.4536 2.32923 19.2484 2.91526 19.8344C3.50128 20.4205 4.29611 20.7497 5.12488 20.7497H18.8743C19.7031 20.7497 20.4979 20.4205 21.084 19.8344C21.67 19.2484 21.9992 18.4536 21.9992 17.6248V6.37524C21.9992 5.54647 21.67 4.75165 21.084 4.16562C20.4979 3.57959 19.7031 3.25037 18.8743 3.25037H5.12488ZM3.24995 6.37524C3.24995 5.87798 3.44749 5.40109 3.7991 5.04947C4.15072 4.69785 4.62762 4.50032 5.12488 4.50032H18.8743C19.3716 4.50032 19.8485 4.69785 20.2001 5.04947C20.5517 5.40109 20.7493 5.87798 20.7493 6.37524V17.6248C20.7493 18.1221 20.5517 18.599 20.2001 18.9506C19.8485 19.3022 19.3716 19.4997 18.8743 19.4997H5.12488C4.62762 19.4997 4.15072 19.3022 3.7991 18.9506C3.44749 18.599 3.24995 18.1221 3.24995 17.6248V6.37524Z" fill="#575362"/>\n  </svg>',customCode:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path fill-rule="evenodd" clip-rule="evenodd" d="M15.4112 5.01008C15.4473 4.92117 15.466 4.82561 15.4664 4.72901C15.4668 4.6324 15.4488 4.53668 15.4134 4.44746C15.3781 4.35825 15.3261 4.27733 15.2606 4.20944C15.1951 4.14156 15.1173 4.08807 15.0318 4.05213C14.9463 4.01618 14.8548 3.99849 14.7627 4.0001C14.6706 4.00171 14.5797 4.02258 14.4954 4.06149C14.4111 4.1004 14.335 4.15657 14.2717 4.22671C14.2083 4.29684 14.159 4.37953 14.1265 4.46993L8.58878 18.9899C8.55273 19.0788 8.53397 19.1744 8.53359 19.271C8.53321 19.3676 8.55122 19.4633 8.58656 19.5525C8.6219 19.6418 8.67386 19.7227 8.7394 19.7906C8.80494 19.8584 8.88274 19.9119 8.96824 19.9479C9.05374 19.9838 9.14522 20.0015 9.23732 19.9999C9.32942 19.9983 9.42029 19.9774 9.5046 19.9385C9.58891 19.8996 9.66497 19.8434 9.72832 19.7733C9.79167 19.7032 9.84103 19.6205 9.87352 19.5301L15.4112 5.01008ZM6.95239 8.582C7.01685 8.64943 7.06799 8.72955 7.10289 8.81775C7.13779 8.90595 7.15575 9.00051 7.15575 9.096C7.15575 9.1915 7.13779 9.28605 7.10289 9.37425C7.06799 9.46246 7.01685 9.54257 6.95239 9.61001L4.67224 12L6.95239 14.39C7.08237 14.5263 7.15539 14.7112 7.15539 14.904C7.15539 15.0968 7.08237 15.2817 6.95239 15.418C6.82241 15.5543 6.64612 15.6309 6.4623 15.6309C6.27848 15.6309 6.10219 15.5543 5.97221 15.418L3.20336 12.514C3.1389 12.4466 3.08776 12.3665 3.05286 12.2783C3.01796 12.1901 3 12.0955 3 12C3 11.9045 3.01796 11.81 3.05286 11.7217C3.08776 11.6335 3.1389 11.5534 3.20336 11.486L5.97221 8.582C6.03651 8.51439 6.1129 8.46074 6.197 8.42414C6.28109 8.38754 6.37125 8.36871 6.4623 8.36871C6.55335 8.36871 6.64351 8.38754 6.7276 8.42414C6.8117 8.46074 6.88809 8.51439 6.95239 8.582ZM17.0476 8.582C17.1119 8.51439 17.1883 8.46074 17.2724 8.42414C17.3565 8.38754 17.4467 8.36871 17.5377 8.36871C17.6287 8.36871 17.7189 8.38754 17.803 8.42414C17.8871 8.46074 17.9635 8.51439 18.0278 8.582L20.7966 11.486C20.8611 11.5534 20.9122 11.6335 20.9471 11.7217C20.982 11.81 21 11.9045 21 12C21 12.0955 20.982 12.1901 20.9471 12.2783C20.9122 12.3665 20.8611 12.4466 20.7966 12.514L18.0278 15.418C17.8978 15.5543 17.7215 15.6309 17.5377 15.6309C17.3539 15.6309 17.1776 15.5543 17.0476 15.418C16.9176 15.2817 16.8446 15.0968 16.8446 14.904C16.8446 14.7112 16.9176 14.5263 17.0476 14.39L19.3278 12L17.0476 9.61001C16.9832 9.54257 16.932 9.46246 16.8971 9.37425C16.8622 9.28605 16.8443 9.1915 16.8443 9.096C16.8443 9.00051 16.8622 8.90595 16.8971 8.81775C16.932 8.72955 16.9832 8.64943 17.0476 8.582Z" fill="#565861"/>\n  </svg>',email:'<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd"><path d="M12 0c6.623 0 12 5.377 12 12s-5.377 12-12 12-12-5.377-12-12 5.377-12 12-12zm8.127 19.41c-.282-.401-.772-.654-1.624-.85-3.848-.906-4.097-1.501-4.352-2.059-.259-.565-.19-1.23.205-1.977 1.726-3.257 2.09-6.024 1.027-7.79-.674-1.119-1.875-1.734-3.383-1.734-1.521 0-2.732.626-3.409 1.763-1.066 1.789-.693 4.544 1.049 7.757.402.742.476 1.406.22 1.974-.265.586-.611 1.19-4.365 2.066-.852.196-1.342.449-1.623.848 2.012 2.207 4.91 3.592 8.128 3.592s6.115-1.385 8.127-3.59zm.65-.782c1.395-1.844 2.223-4.14 2.223-6.628 0-6.071-4.929-11-11-11s-11 4.929-11 11c0 2.487.827 4.783 2.222 6.626.409-.452 1.049-.81 2.049-1.041 2.025-.462 3.376-.836 3.678-1.502.122-.272.061-.628-.188-1.087-1.917-3.535-2.282-6.641-1.03-8.745.853-1.431 2.408-2.251 4.269-2.251 1.845 0 3.391.808 4.24 2.218 1.251 2.079.896 5.195-1 8.774-.245.463-.304.821-.179 1.094.305.668 1.644 1.038 3.667 1.499 1 .23 1.64.59 2.049 1.043z"/></svg>',captcha:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">\n  <path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />\n</svg>',customField:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">\n  <path stroke-linecap="round" stroke-linejoin="round" d="M14 10l-2 1m0 0l-2-1m2 1v2.5M20 7l-2 1m2-1l-2-1m2 1v2.5M14 4l-2-1-2 1M4 7l2-1M4 7l2 1M4 7v2.5M12 21l-2-1m2 1l2-1m-2 1v-2.5M6 18l-2-1v-2.5M18 18l2-1v-2.5" />\n</svg>',gdpr:'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 111.82 122.88" style="enable-background:new 0 0 111.82 122.88" xml:space="preserve"><style type="text/css">.st0{fill-rule:evenodd;clip-rule:evenodd;}</style><g><path class="st0" d="M55.72,0c20.87,13.2,39.67,19.47,55.85,17.99c2.84,57.11-18.25,90.84-55.63,104.89 C19.84,109.72-1.5,77.42,0.08,17.11C19.07,18.1,37.69,14.01,55.72,0L55.72,0z M55.91,79.01l3.13,7.64l8.23,0.61l-6.3,5.34 l1.96,8.02l-7.02-4.34l-7.02,4.34l1.96-8.02l-6.3-5.34l8.23-0.61L55.91,79.01L55.91,79.01z M29.4,44.83v-3.59h8.25v7.34 c-1.58,1.08-2.97,1.81-4.18,2.2c-1.21,0.39-2.65,0.58-4.32,0.58c-2.05,0-3.72-0.35-5.01-1.05c-1.29-0.7-2.29-1.74-3-3.12 c-0.71-1.38-1.07-2.97-1.07-4.76c0-1.89,0.39-3.52,1.17-4.92c0.78-1.39,1.91-2.45,3.41-3.17c1.17-0.56,2.75-0.84,4.72-0.84 c1.91,0,3.33,0.17,4.28,0.52c0.95,0.35,1.73,0.88,2.36,1.61c0.62,0.73,1.09,1.65,1.41,2.76l-5.14,0.92 c-0.21-0.66-0.57-1.16-1.08-1.5c-0.51-0.35-1.15-0.52-1.94-0.52c-1.17,0-2.1,0.41-2.79,1.22c-0.7,0.81-1.04,2.1-1.04,3.86 c0,1.87,0.35,3.2,1.05,4c0.7,0.8,1.68,1.2,2.93,1.2c0.6,0,1.16-0.08,1.7-0.26c0.54-0.17,1.16-0.47,1.86-0.88v-1.62H29.4L29.4,44.83 z M40.12,33.81h7.93c1.56,0,2.83,0.21,3.79,0.63c0.96,0.43,1.76,1.03,2.39,1.82c0.63,0.8,1.08,1.72,1.36,2.77 c0.29,1.05,0.43,2.17,0.43,3.34c0,1.85-0.21,3.28-0.63,4.29c-0.42,1.02-1,1.87-1.75,2.56c-0.75,0.69-1.55,1.15-2.4,1.37 c-1.17,0.31-2.23,0.47-3.18,0.47h-7.93V33.81L40.12,33.81z M45.45,37.72v9.43h1.31c1.12,0,1.91-0.12,2.39-0.37 c0.47-0.25,0.84-0.68,1.11-1.29c0.27-0.62,0.4-1.62,0.4-3c0-1.83-0.3-3.08-0.9-3.75c-0.6-0.68-1.59-1.01-2.98-1.01H45.45 L45.45,37.72z M58.02,33.81h8.88c1.93,0,3.38,0.46,4.35,1.38c0.96,0.92,1.44,2.23,1.44,3.93c0,1.74-0.53,3.11-1.58,4.09 c-1.05,0.98-2.65,1.48-4.81,1.48h-2.93v6.39h-5.35V33.81L58.02,33.81z M63.38,41.19h1.31c1.04,0,1.76-0.18,2.18-0.54 c0.42-0.36,0.63-0.82,0.63-1.37c0-0.54-0.18-1-0.55-1.38c-0.36-0.38-1.05-0.57-2.05-0.57h-1.53V41.19L63.38,41.19z M74.78,51.08 V33.81h8.89c1.65,0,2.91,0.14,3.78,0.43c0.87,0.28,1.58,0.81,2.11,1.57c0.53,0.77,0.8,1.7,0.8,2.81c0,0.96-0.2,1.78-0.62,2.48 c-0.41,0.7-0.97,1.26-1.69,1.7c-0.45,0.27-1.08,0.5-1.87,0.68c0.64,0.21,1.1,0.42,1.39,0.63c0.19,0.14,0.48,0.45,0.85,0.91 c0.37,0.46,0.62,0.82,0.74,1.07l2.59,4.99h-6.03l-2.85-5.27c-0.36-0.68-0.68-1.13-0.96-1.33c-0.39-0.27-0.82-0.4-1.31-0.4h-0.47 v6.99H74.78L74.78,51.08z M80.13,40.83h2.26c0.24,0,0.72-0.08,1.42-0.24c0.35-0.07,0.64-0.25,0.86-0.54c0.23-0.29,0.34-0.63,0.34-1 c0-0.56-0.18-0.99-0.53-1.29c-0.35-0.3-1.02-0.45-1.99-0.45h-2.35V40.83L80.13,40.83z"/></g></svg>',list:'<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">\n  <path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 10h16M4 14h16M4 18h16" />\n</svg>',posts:'<svg style=" fill:#000000;" width="36" height="36" id="Line" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><path d="M152.972,30.315v-9.7H35.373V168.193h15.87v10.583h113.2V30.315ZM113.343,164.348l-.05-.152V136.445H148.6a33.838,33.838,0,0,1-33.266,27.9ZM39.219,24.459H149.126v106.1c0,.686-.026,1.365-.067,2.041H109.447v31.749H39.219ZM160.594,174.93H55.089v-6.737h60.247a37.678,37.678,0,0,0,37.636-37.635V34.16h7.622Z"/><rect height="3.846" width="63.49" x="66.396" y="67.753"/><rect height="3.846" width="63.49" x="66.396" y="90.68"/><rect height="3.846" width="63.49" x="66.396" y="112.725"/></svg>',survey:'<svg version="1.1" viewBox="0 0 55 60" width="40" height="36" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" id="People" stroke="none" stroke-width="2"><g fill="#000000" id="Icon-4" transform="translate(-4.000000, 0.000000)"><path d="M25,46 L35,46 C35.553,46 36,45.552 36,45 C36,44.448 35.553,44 35,44 L25,44 C24.447,44 24,44.448 24,45 C24,45.552 24.447,46 25,46 L25,46 Z M25,40 L41,40 C41.553,40 42,39.552 42,39 C42,38.448 41.553,38 41,38 L25,38 C24.447,38 24,38.448 24,39 C24,39.552 24.447,40 25,40 L25,40 Z M24,33 C24,33.552 24.447,34 25,34 L43,34 C43.553,34 44,33.552 44,33 C44,32.448 43.553,32 43,32 L25,32 C24.447,32 24,32.448 24,33 L24,33 Z M25,28 L39,28 C39.553,28 40,27.552 40,27 C40,26.448 39.553,26 39,26 L25,26 C24.447,26 24,26.448 24,27 C24,27.552 24.447,28 25,28 L25,28 Z M25,22 L41,22 C41.553,22 42,21.552 42,21 C42,20.448 41.553,20 41,20 L25,20 C24.447,20 24,20.448 24,21 C24,21.552 24.447,22 25,22 L25,22 Z M19,44 L17,44 C16.447,44 16,44.448 16,45 C16,45.552 16.447,46 17,46 L19,46 C19.553,46 20,45.552 20,45 C20,44.448 19.553,44 19,44 L19,44 Z M19,38 L17,38 C16.447,38 16,38.448 16,39 C16,39.552 16.447,40 17,40 L19,40 C19.553,40 20,39.552 20,39 C20,38.448 19.553,38 19,38 L19,38 Z M19,32 L17,32 C16.447,32 16,32.448 16,33 C16,33.552 16.447,34 17,34 L19,34 C19.553,34 20,33.552 20,33 C20,32.448 19.553,32 19,32 L19,32 Z M19,26 L17,26 C16.447,26 16,26.448 16,27 C16,27.552 16.447,28 17,28 L19,28 C19.553,28 20,27.552 20,27 C20,26.448 19.553,26 19,26 L19,26 Z M17,22 L19,22 C19.553,22 20,21.552 20,21 C20,20.448 19.553,20 19,20 L17,20 C16.447,20 16,20.448 16,21 C16,21.552 16.447,22 17,22 L17,22 Z M20,10 L40,10 L40,6 L34.899,6 C34.424,6 34.014,5.665 33.92,5.199 C33.543,3.345 31.895,2 30,2 C28.105,2 26.457,3.345 26.08,5.199 C25.986,5.665 25.576,6 25.101,6 L20,6 L20,10 Z M18,11 L18,5 C18,4.448 18.447,4 19,4 L24.343,4 C25.178,1.64 27.439,0 30,0 C32.561,0 34.822,1.64 35.657,4 L41,4 C41.553,4 42,4.448 42,5 L42,11 C42,11.552 41.553,12 41,12 L19,12 C18.447,12 18,11.552 18,11 L18,11 Z M30,4 C28.897,4 28,4.897 28,6 C28,7.103 28.897,8 30,8 C31.103,8 32,7.103 32,6 C32,4.897 31.103,4 30,4 L30,4 Z M45,56 C45.256,56 45.512,55.902 45.707,55.707 L51.707,49.707 C51.895,49.52 52,49.265 52,49 L52,9 C52,8.448 51.553,8 51,8 L45,8 C44.447,8 44,8.448 44,9 C44,9.552 44.447,10 45,10 L50,10 L50,48.586 L44.293,54.293 C43.902,54.684 43.902,55.316 44.293,55.707 C44.488,55.902 44.744,56 45,56 L45,56 Z M15,8 L9,8 C8.447,8 8,8.448 8,9 L8,52 C8,54.206 9.794,56 12,56 L41,56 C41.553,56 42,55.552 42,55 L42,49 C42,48.547 42.446,48 43,48 L47,48 C47.553,48 48,47.552 48,47 C48,46.448 47.553,46 47,46 L43,46 C41.402,46 40,47.402 40,49 L40,54 L12,54 C10.897,54 10,53.103 10,52 L10,10 L15,10 C15.553,10 16,9.552 16,9 C16,8.448 15.553,8 15,8 L15,8 Z M56,9 L56,55 C56,57.57 53.57,60 51,60 L9,60 C6.43,60 4,57.57 4,55 L4,9 C4,6.43 6.43,4 9,4 L15,4 C15.553,4 16,4.448 16,5 C16,5.552 15.553,6 15,6 L9,6 C7.542,6 6,7.542 6,9 L6,55 C6,56.458 7.542,58 9,58 L51,58 C52.458,58 54,56.458 54,55 L54,9 C54,7.542 52.458,6 51,6 L45,6 C44.447,6 44,5.552 44,5 C44,4.448 44.447,4 45,4 L51,4 C53.57,4 56,6.43 56,9 L56,9 Z" id="notepad"/></g></g></svg>',postFormat:'<svg  width="16" height="16" viewBox="0 0 172 172" style=" fill:#ffffff;"><g transform="translate(0.516,0.516) scale(0.994,0.994)"><g fill="none" fill-rule="nonzero" stroke="none" stroke-width="1" stroke-linecap="butt" stroke-miterlimit="10" stroke-dasharray="" stroke-dashoffset="0" font-family="none" font-size="none" style="mix-blend-mode: normal"><g fill="#ffffff" stroke="#ffffff" stroke-linejoin="round"><path d="M165.12,24.08v123.84h-6.88v-116.96h-144.48v116.96h-6.88v-123.84zM144.48,44.72v30.96h-116.96v-30.96zM34.4,68.8h103.2v-17.2h-103.2zM123.84,96.32v6.88h-92.88v-6.88zM137.6,110.08v6.88h-106.64v-6.88zM110.08,123.84v6.88h-79.12v-6.88zM30.96,141.04v6.88h-10.32v-6.88zM48.16,141.04v6.88h-10.32v-6.88zM65.36,141.04v6.88h-10.32v-6.88zM82.56,141.04v6.88h-10.32v-6.88zM99.76,141.04v6.88h-10.32v-6.88zM116.96,141.04v6.88h-10.32v-6.88zM134.16,141.04v6.88h-10.32v-6.88zM151.36,141.04v6.88h-10.32v-6.88z"></path></g><path d="M0,172v-172h172v172z" fill="none" stroke="none" stroke-linejoin="miter"></path><g fill="#ffffff" stroke="none" stroke-linejoin="miter"><path d="M6.88,24.08v123.84h6.88v-116.96h144.48v116.96h6.88v-123.84zM27.52,44.72v30.96h116.96v-30.96zM34.4,51.6h103.2v17.2h-103.2zM30.96,96.32v6.88h92.88v-6.88zM30.96,110.08v6.88h106.64v-6.88zM30.96,123.84v6.88h79.12v-6.88zM20.64,141.04v6.88h10.32v-6.88zM37.84,141.04v6.88h10.32v-6.88zM55.04,141.04v6.88h10.32v-6.88zM72.24,141.04v6.88h10.32v-6.88zM89.44,141.04v6.88h10.32v-6.88zM106.64,141.04v6.88h10.32v-6.88zM123.84,141.04v6.88h10.32v-6.88zM141.04,141.04v6.88h10.32v-6.88z"></path></g><path d="" fill="none" stroke="none" stroke-linejoin="miter"></path></g></g></svg>',imageDateExcerptPostFormat:'\n  <svg width="32" height="30" viewBox="0 0 32 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <g clip-path="url(#clip0_1632_8634)">\n  <rect x="1.49107" y="1.50133" width="29.0181" height="26.8672" rx="1.66071" stroke="#575362" stroke-width="1.10714"/>\n  <path d="M27.595 18.75H4.40521C3.96079 18.75 3.6001 19.0853 3.6001 19.5C3.6001 19.9147 3.96079 20.25 4.40521 20.25H27.595C28.0394 20.25 28.4001 19.9147 28.4001 19.5C28.4001 19.086 28.0402 18.75 27.595 18.75Z" fill="#CCCAD2"/>\n  <path d="M26.8451 22.5H4.38005C3.94952 22.5 3.6001 22.8353 3.6001 23.25C3.6001 23.6647 3.94952 24 4.38005 24H26.8451C27.2757 24 27.6251 23.6647 27.6251 23.25C27.6251 22.8353 27.2765 22.5 26.8451 22.5Z" fill="#CCCAD2"/>\n  <path d="M14.0979 15H3.95234C3.7579 15 3.6001 15.3353 3.6001 15.75C3.6001 16.1647 3.7579 16.5 3.95234 16.5H14.0979C14.2923 16.5 14.4501 16.1647 14.4501 15.75C14.4501 15.3353 14.2926 15 14.0979 15Z" fill="#575362"/>\n  <path d="M28.374 4.04581C28.3531 4.00231 28.3331 3.97795 28.3146 3.95185C28.2989 3.93009 28.2866 3.9066 28.2676 3.88833C28.2476 3.86876 28.2225 3.85571 28.1987 3.84005C28.1731 3.82308 28.1493 3.80394 28.1204 3.79176C28.0971 3.78176 28.0705 3.77915 28.0453 3.77306C28.0107 3.76436 27.9769 3.75479 27.9404 3.75348C27.9242 3.75 4.07503 3.75 4.07503 3.75C4.02136 3.75392 3.98669 3.76392 3.9506 3.77306C3.92638 3.77915 3.90168 3.78176 3.87936 3.79089C3.84944 3.80351 3.82522 3.82308 3.79862 3.84092C3.77582 3.85658 3.75113 3.86876 3.73165 3.8879C3.71218 3.9066 3.69983 3.93009 3.68416 3.95228C3.66564 3.97795 3.64617 4.00231 3.63382 4.03189C3.61672 4.06886 3.61957 4.09192 3.6153 4.11497C3.61102 4.1389 3.6001 4.16022 3.6001 4.18501V11.5646C3.6001 11.5893 3.61102 11.6107 3.6153 11.6346C3.61957 11.6576 3.61625 11.6811 3.62479 11.7042C3.64142 11.7359 3.65139 11.7499 3.66041 11.7651C3.67846 11.7968 3.69888 11.826 3.72453 11.8521C3.73735 11.8656 3.75113 11.8769 3.76585 11.8886C3.79482 11.9121 3.82617 11.9308 3.86036 11.9469C3.87651 11.9548 3.89123 11.963 3.9088 11.9691C3.962 11.9874 4.01756 12 4.0755 12H27.9247C27.9826 12 28.0387 11.9874 28.0914 11.9691C28.1085 11.963 28.1237 11.9548 28.1398 11.9469C28.174 11.9308 28.2054 11.9121 28.2343 11.8886C28.2491 11.8769 28.2624 11.8656 28.2757 11.8521C28.3008 11.826 28.3213 11.7968 28.3398 11.7651C28.3488 11.7499 28.3588 11.7364 28.3659 11.7199C28.3835 11.6807 28.3806 11.6576 28.3849 11.6342C28.3892 11.6107 28.4001 11.5893 28.4001 11.5646V4.18501C28.4001 4.16022 28.3892 4.1389 28.3849 4.11541C28.3797 4.09192 28.3825 4.06886 28.374 4.04581ZM25.0347 4.62002L15.9996 7.41584L6.96452 4.62002H25.0347ZM4.54996 4.79098L14.5159 7.87478L4.54996 10.9586V4.79098ZM6.96452 11.1295L15.9996 8.33372L25.0347 11.1295H6.96452ZM27.4493 10.9586L17.4833 7.87478L27.4493 4.79098V10.9586Z" fill="#575362"/>\n  </g>\n  <defs>\n  <clipPath id="clip0_1632_8634">\n  <rect width="31" height="30" fill="white" transform="translate(0.5)"/>\n  </clipPath>\n  </defs>\n  </svg>\n  ',blankPostFormat:'<svg width="32" height="29" viewBox="0 0 32 29" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <rect x="1.0226" y="1.51869" width="29.9541" height="26.8315" rx="1.71429" stroke="#575362" stroke-width="1.14286"/>\n  </svg>',titleDatePostFormat:'<svg width="30" height="32" viewBox="0 0 30 32" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <g clip-path="url(#clip0_1632_8034)">\n  <rect x="0.491071" y="2.03306" width="29.0181" height="27.7997" rx="1.66071" stroke="#575362" stroke-width="1.10714"/>\n  <path d="M19.0961 4.375H3.15313C2.84759 4.375 2.59961 4.72142 2.59961 5.15C2.59961 5.57857 2.84759 5.925 3.15313 5.925H19.0961C19.4016 5.925 19.6496 5.57857 19.6496 5.15C19.6496 4.7222 19.4022 4.375 19.0961 4.375Z" fill="#575362"/>\n  <path d="M13.0974 8.25H2.95185C2.75741 8.25 2.59961 8.59642 2.59961 9.025C2.59961 9.45357 2.75741 9.8 2.95185 9.8H13.0974C13.2918 9.8 13.4496 9.45357 13.4496 9.025C13.4496 8.59642 13.2922 8.25 13.0974 8.25Z" fill="#575362"/>\n  </g>\n  <defs>\n  <clipPath id="clip0_1632_8034">\n  <rect width="30" height="31" fill="white" transform="translate(0 0.5)"/>\n  </clipPath>\n  </defs>\n  </svg>',titleExcerptPostFormat:'\n  <svg width="32" height="30" viewBox="0 0 32 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <g clip-path="url(#clip0_1632_8064)">\n  <rect x="1.49107" y="1.50148" width="29.0181" height="26.8672" rx="1.66071" stroke="#575362" stroke-width="1.10714"/>\n  <path d="M20.0971 3.75H4.1541C3.84856 3.75 3.60059 4.08525 3.60059 4.5C3.60059 4.91475 3.84856 5.25 4.1541 5.25H20.0971C20.4026 5.25 20.6506 4.91475 20.6506 4.5C20.6506 4.086 20.4032 3.75 20.0971 3.75Z" fill="#575362"/>\n  <path d="M27.5955 11.25H4.4057C3.96128 11.25 3.60059 11.5853 3.60059 12C3.60059 12.4148 3.96128 12.75 4.4057 12.75H27.5955C28.0399 12.75 28.4006 12.4148 28.4006 12C28.4006 11.586 28.0407 11.25 27.5955 11.25Z" fill="#CCCAD2"/>\n  <path d="M27.5955 7.5H4.4057C3.96128 7.5 3.60059 7.83525 3.60059 8.25C3.60059 8.66475 3.96128 9 4.4057 9H27.5955C28.0399 9 28.4006 8.66475 28.4006 8.25C28.4006 7.836 28.0407 7.5 27.5955 7.5Z" fill="#CCCAD2"/>\n  <path d="M26.8456 15H4.38054C3.95001 15 3.60059 15.3353 3.60059 15.75C3.60059 16.1648 3.95001 16.5 4.38054 16.5H26.8456C27.2762 16.5 27.6256 16.1648 27.6256 15.75C27.6256 15.3353 27.2769 15 26.8456 15Z" fill="#CCCAD2"/>\n  <path d="M26.8456 18.75H4.38054C3.95001 18.75 3.60059 19.0853 3.60059 19.5C3.60059 19.9148 3.95001 20.25 4.38054 20.25H26.8456C27.2762 20.25 27.6256 19.9148 27.6256 19.5C27.6256 19.0853 27.2769 18.75 26.8456 18.75Z" fill="#CCCAD2"/>\n  <path d="M26.8456 22.5H4.38054C3.95001 22.5 3.60059 22.8353 3.60059 23.25C3.60059 23.6648 3.95001 24 4.38054 24H26.8456C27.2762 24 27.6256 23.6648 27.6256 23.25C27.6256 22.8353 27.2769 22.5 26.8456 22.5Z" fill="#CCCAD2"/>\n  </g>\n  <defs>\n  <clipPath id="clip0_1632_8064">\n  <rect width="31" height="30" fill="white" transform="translate(0.5)"/>\n  </clipPath>\n  </defs>\n  </svg>\n  ',titleDateExcerptPostFormat:'\n  <svg width="32" height="30" viewBox="0 0 32 30" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <g clip-path="url(#clip0_1632_7601)">\n  <rect x="1.49107" y="1.50133" width="29.0181" height="26.8672" rx="1.66071" stroke="#575362" stroke-width="1.10714"/>\n  <path d="M20.0966 3.75H4.15362C3.84807 3.75 3.6001 4.08525 3.6001 4.5C3.6001 4.91475 3.84807 5.25 4.15362 5.25H20.0966C20.4021 5.25 20.6501 4.91475 20.6501 4.5C20.6501 4.086 20.4027 3.75 20.0966 3.75Z" fill="#575362"/>\n  <path d="M27.595 11.25H4.40521C3.96079 11.25 3.6001 11.5853 3.6001 12C3.6001 12.4147 3.96079 12.75 4.40521 12.75H27.595C28.0394 12.75 28.4001 12.4147 28.4001 12C28.4001 11.586 28.0402 11.25 27.595 11.25Z" fill="#CCCAD2"/>\n  <path d="M26.8451 15H4.38005C3.94952 15 3.6001 15.3353 3.6001 15.75C3.6001 16.1647 3.94952 16.5 4.38005 16.5H26.8451C27.2757 16.5 27.6251 16.1647 27.6251 15.75C27.6251 15.3353 27.2765 15 26.8451 15Z" fill="#CCCAD2"/>\n  <path d="M26.8451 18.75H4.38005C3.94952 18.75 3.6001 19.0853 3.6001 19.5C3.6001 19.9147 3.94952 20.25 4.38005 20.25H26.8451C27.2757 20.25 27.6251 19.9147 27.6251 19.5C27.6251 19.0853 27.2765 18.75 26.8451 18.75Z" fill="#CCCAD2"/>\n  <path d="M26.8451 22.5H4.38005C3.94952 22.5 3.6001 22.8353 3.6001 23.25C3.6001 23.6647 3.94952 24 4.38005 24H26.8451C27.2757 24 27.6251 23.6647 27.6251 23.25C27.6251 22.8353 27.2765 22.5 26.8451 22.5Z" fill="#CCCAD2"/>\n  <path d="M14.0979 7.5H3.95234C3.7579 7.5 3.6001 7.83525 3.6001 8.25C3.6001 8.66475 3.7579 9 3.95234 9H14.0979C14.2923 9 14.4501 8.66475 14.4501 8.25C14.4501 7.83525 14.2926 7.5 14.0979 7.5Z" fill="#575362"/>\n  </g>\n  <defs>\n  <clipPath id="clip0_1632_7601">\n  <rect width="31" height="30" fill="white" transform="translate(0.5)"/>\n  </clipPath>\n  </defs>\n  </svg>\n  ',desktop:'<svg width="20" height="20" style="fill:none" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M8.75 16.875H11.25M8.75 16.875L9.0625 14.375H10.9375L11.25 16.875M8.75 16.875H6.875M11.25 16.875H13.125M3.125 3.125H16.875C17.2065 3.125 17.5245 3.2567 17.7589 3.49112C17.9933 3.72554 18.125 4.04348 18.125 4.375V13.125C18.125 13.4565 17.9933 13.7745 17.7589 14.0089C17.5245 14.2433 17.2065 14.375 16.875 14.375H3.125C2.79348 14.375 2.47554 14.2433 2.24112 14.0089C2.0067 13.7745 1.875 13.4565 1.875 13.125V4.375C1.875 4.04348 2.0067 3.72554 2.24112 3.49112C2.47554 3.2567 2.79348 3.125 3.125 3.125Z" stroke="#575362" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>\n  </svg>\n  ',tablet:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M11.7863 14.7622V15.9527H8.21484V14.7622H11.7863Z" fill="#AAA8AE"/>\n  <path d="M15.3579 18.3332H4.6436C4.32796 18.3329 4.02534 18.2073 3.80216 17.9841C3.57897 17.761 3.45344 17.4583 3.45312 17.1427V2.85698C3.45344 2.54134 3.57897 2.23872 3.80216 2.01553C4.02534 1.79235 4.32796 1.66682 4.6436 1.6665H15.3579C15.6735 1.66682 15.9761 1.79235 16.1993 2.01553C16.4225 2.23872 16.548 2.54134 16.5484 2.85698V17.1427C16.5479 17.4583 16.4223 17.7608 16.1992 17.984C15.976 18.2071 15.6735 18.3327 15.3579 18.3332ZM4.6436 2.85698V17.1427H15.3579V2.85698H4.6436Z" fill="#AAA8AE"/>\n  </svg>\n  ',mobile:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M6.25 1C5.01625 1 4 2.01625 4 3.25V16.75C4 17.9837 5.01625 19 6.25 19H13.75C14.9838 19 16 17.9837 16 16.75V3.25C16 2.01625 14.9838 1 13.75 1H6.25ZM6.25 2.5H13.75C14.1663 2.5 14.5 2.83375 14.5 3.25V16.75C14.5 17.1663 14.1663 17.5 13.75 17.5H6.25C5.83375 17.5 5.5 17.1663 5.5 16.75V3.25C5.5 2.83375 5.83375 2.5 6.25 2.5ZM10 15.25C9.5875 15.25 9.25 15.5875 9.25 16C9.25 16.4125 9.5875 16.75 10 16.75C10.4125 16.75 10.75 16.4125 10.75 16C10.75 15.5875 10.4125 15.25 10 15.25Z" fill="#AAA8AE"/>\n  </svg>\n  ',reset:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <rect width="24" height="24" rx="2" fill="#F4F2F7"/>\n  <path d="M6.32635 15.6517C6.21569 15.6518 6.1072 15.621 6.01302 15.5629C5.91884 15.5048 5.8427 15.4216 5.79312 15.3227C5.08929 13.9224 4.84524 12.3356 5.09572 10.7885C5.34621 9.24138 6.07845 7.81273 7.18818 6.706C10.0959 3.79787 14.8274 3.79787 17.7352 6.706C17.8437 6.81841 17.9038 6.96896 17.9025 7.12523C17.9011 7.28151 17.8384 7.43099 17.7279 7.5415C17.6174 7.652 17.4679 7.71468 17.3116 7.71604C17.1554 7.7174 17.0048 7.65733 16.8924 7.54876C14.4484 5.10552 10.475 5.10552 8.03094 7.54876C7.09859 8.47862 6.48342 9.67896 6.27303 10.9788C6.06264 12.2787 6.26776 13.6118 6.85919 14.7883C6.9048 14.8791 6.92641 14.9801 6.92197 15.0817C6.91754 15.1833 6.8872 15.282 6.83384 15.3685C6.78048 15.4551 6.70588 15.5265 6.61712 15.5761C6.52837 15.6256 6.42841 15.6517 6.32675 15.6517H6.32635Z" fill="#575362"/>\n  <path d="M12.4614 19.4342C11.4821 19.436 10.512 19.2443 9.60705 18.87C8.70206 18.4958 7.87992 17.9465 7.18786 17.2536C7.1325 17.1983 7.08858 17.1326 7.05861 17.0603C7.02864 16.9879 7.0132 16.9104 7.01318 16.8322C7.01317 16.7539 7.02856 16.6764 7.0585 16.604C7.08844 16.5317 7.13233 16.466 7.18767 16.4106C7.243 16.3553 7.3087 16.3114 7.38101 16.2814C7.45332 16.2514 7.53083 16.236 7.6091 16.236C7.68738 16.2359 7.76489 16.2513 7.83722 16.2813C7.90954 16.3112 7.97526 16.3551 8.03062 16.4104C10.4747 18.8537 14.4481 18.8537 16.8921 16.4104C17.8244 15.4806 18.4396 14.2802 18.65 12.9804C18.8604 11.6805 18.6553 10.3474 18.0639 9.17091C17.993 9.02959 17.9812 8.86591 18.031 8.71588C18.0808 8.56584 18.1882 8.44173 18.3295 8.37087C18.4708 8.3 18.6345 8.28817 18.7845 8.33798C18.9345 8.3878 19.0586 8.49517 19.1295 8.63649C19.6999 9.77342 19.9699 11.0374 19.9137 12.3081C19.8576 13.5789 19.4773 14.8141 18.809 15.8964C18.1406 16.9786 17.2065 17.8719 16.0954 18.4911C14.9844 19.1103 13.7333 19.435 12.4614 19.4342Z" fill="#575362"/>\n  <path d="M14.7747 7.97647C14.6222 7.97571 14.4758 7.91652 14.3656 7.8111C14.2554 7.70567 14.1898 7.56203 14.1824 7.40972C14.1749 7.25741 14.2261 7.10803 14.3254 6.99231C14.4247 6.87659 14.5646 6.80334 14.7162 6.78763L16.6008 6.59969L16.223 4.70557C16.1941 4.55138 16.2272 4.39205 16.3151 4.26211C16.403 4.13218 16.5385 4.04213 16.6924 4.01148C16.8462 3.98084 17.0059 4.01208 17.1369 4.09843C17.2679 4.18477 17.3595 4.31926 17.3919 4.47273L17.8981 7.01292C17.9144 7.09447 17.9134 7.17852 17.8953 7.25967C17.8771 7.34082 17.8422 7.41727 17.7927 7.48411C17.7432 7.55094 17.6803 7.60669 17.608 7.64776C17.5357 7.68883 17.4556 7.71431 17.3729 7.72257L14.8347 7.97568C14.8144 7.97568 14.7945 7.97647 14.7747 7.97647Z" fill="#575362"/>\n  <path d="M8.11499 19.966C7.9772 19.9659 7.8437 19.918 7.73721 19.8306C7.63072 19.7431 7.55782 19.6215 7.5309 19.4864L7.02469 16.9482C7.00842 16.8666 7.00941 16.7825 7.0276 16.7013C7.04578 16.6202 7.08076 16.5437 7.13027 16.4768C7.17978 16.41 7.24274 16.3543 7.3151 16.3132C7.38745 16.2722 7.46759 16.2467 7.55037 16.2385L10.0886 15.9854C10.2459 15.9696 10.403 16.0169 10.5254 16.117C10.6478 16.217 10.7254 16.3616 10.7412 16.5188C10.757 16.6761 10.7097 16.8332 10.6097 16.9556C10.5096 17.078 10.3651 17.1557 10.2078 17.1715L8.3232 17.3594L8.70067 19.2535C8.71791 19.3401 8.71571 19.4294 8.69425 19.5149C8.67278 19.6005 8.63258 19.6803 8.57654 19.7484C8.52051 19.8166 8.45004 19.8715 8.37022 19.9091C8.2904 19.9467 8.20323 19.9661 8.11499 19.966Z" fill="#575362"/>\n  </svg>\n  ',undo:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path opacity="0.6" d="M5.875 15.9374V15.9375V18.5625C5.875 18.7109 5.93269 18.8536 6.03619 18.9593C6.13978 19.0651 6.28083 19.125 6.42847 19.125C6.57611 19.125 6.71716 19.0651 6.82075 18.9593C6.92425 18.8536 6.98194 18.7109 6.98194 18.5625V15.9376C6.98372 14.23 7.64889 12.5934 8.83069 11.3867C10.0124 10.1801 11.6141 9.50188 13.2841 9.50006H16.55L13.7768 12.0177C13.7767 12.0177 13.7767 12.0177 13.7767 12.0177C13.6671 12.1171 13.6012 12.2562 13.5926 12.4043C13.584 12.5524 13.6333 12.6984 13.7304 12.8101C13.8276 12.9218 13.9648 12.9902 14.1122 12.9991C14.2596 13.0081 14.404 12.9568 14.5137 12.8574L14.5137 12.8574L17.6526 10.011L17.6527 10.011C17.8014 9.87596 17.9203 9.71046 18.0016 9.52548C18.083 9.34051 18.125 9.14015 18.125 8.93756C18.125 8.73498 18.083 8.53462 18.0016 8.34965C17.9203 8.16466 17.8014 7.99917 17.6527 7.86414L17.6526 7.8641L14.5137 5.01774L14.5137 5.01772C14.404 4.91831 14.2596 4.86705 14.1122 4.876C13.9648 4.88496 13.8276 4.9533 13.7304 5.06507C13.6333 5.17676 13.584 5.32273 13.5926 5.47084C13.6012 5.61894 13.6671 5.75806 13.7767 5.85738L5.875 15.9374ZM5.875 15.9374C5.87731 13.9333 6.658 12.0114 8.04663 10.5935C9.43535 9.17557 11.3187 8.37742 13.2838 8.37507H13.284H16.55L13.7768 5.85745L5.875 15.9374Z" fill="#575362" stroke="#575362" stroke-width="0.25"/>\n  </svg>\n  ',redo:'<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <rect width="28" height="28" rx="2" fill="#F4F2F7"/>\n  <path d="M20.125 17.9374V17.9375V20.5625C20.125 20.7109 20.0673 20.8536 19.9638 20.9593C19.8602 21.0651 19.7192 21.125 19.5715 21.125C19.4239 21.125 19.2828 21.0651 19.1793 20.9593C19.0758 20.8536 19.0181 20.7109 19.0181 20.5625V17.9376C19.0163 16.23 18.3511 14.5934 17.1693 13.3867C15.9876 12.1801 14.3859 11.5019 12.7159 11.5001H9.44996L12.2232 14.0177C12.2233 14.0177 12.2233 14.0177 12.2233 14.0177C12.3329 14.1171 12.3988 14.2562 12.4074 14.4043C12.416 14.5524 12.3667 14.6984 12.2696 14.8101C12.1724 14.9218 12.0352 14.9902 11.8878 14.9991C11.7404 15.0081 11.596 14.9568 11.4863 14.8574L11.4863 14.8574L8.34735 12.011L8.3473 12.011C8.19857 11.876 8.07969 11.7105 7.99835 11.5255C7.91701 11.3405 7.875 11.1401 7.875 10.9376C7.875 10.735 7.91701 10.5346 7.99835 10.3496C8.07969 10.1647 8.19857 9.99917 8.3473 9.86414L8.34735 9.8641L11.4863 7.01774L11.4863 7.01772C11.596 6.91831 11.7404 6.86705 11.8878 6.876C12.0352 6.88496 12.1724 6.9533 12.2696 7.06507C12.3667 7.17676 12.416 7.32273 12.4074 7.47084C12.3988 7.61894 12.3329 7.75806 12.2233 7.85738L20.125 17.9374ZM20.125 17.9374C20.1227 15.9333 19.342 14.0114 17.9534 12.5935C16.5647 11.1756 14.6813 10.3774 12.7162 10.3751H12.716H9.44996L12.2232 7.85745L20.125 17.9374Z" fill="#575362" stroke="#575362" stroke-width="0.25"/>\n  </svg>\n  ',show_blocks:'<svg width="16"  height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n  <path d="M15 8.86138V7.11149L12.9172 6.77114C12.7938 6.27796 12.6002 5.81424 12.345 5.3896L13.5589 3.65954L12.3213 2.42266L10.6133 3.6505C10.1875 3.39268 9.72083 3.19611 9.22412 3.07245L8.861 1H7.111L6.77383 3.06575C6.27683 3.18765 5.80754 3.3816 5.38054 3.63825L3.6775 2.42149L2.43996 3.65838L3.63783 5.37152C3.37883 5.80024 3.18196 6.26892 3.05683 6.7691L1 7.11149V8.86138L3.0545 9.22565C3.17846 9.72466 3.37563 10.1933 3.6355 10.6226L2.42129 12.3209L3.65825 13.559L5.37354 12.3577C5.80171 12.6149 6.26983 12.8103 6.76683 12.9331L7.111 15H8.861L9.22879 12.9278C9.72317 12.8024 10.1904 12.6056 10.6145 12.3475L12.3418 13.5593L13.579 12.3212L12.3461 10.6092C12.6013 10.1846 12.795 9.72029 12.9172 9.22711L15 8.86138ZM8 10.333C6.71142 10.333 5.66667 9.28836 5.66667 7.99985C5.66667 6.71135 6.71142 5.66667 8 5.66667C9.28858 5.66667 10.3333 6.71135 10.3333 7.99985C10.3333 9.28836 9.28858 10.333 8 10.333Z" stroke="#575362" stroke-width="0.95" stroke-miterlimit="10" stroke-linecap="round"/>\n  </svg>\n  '},Cm=function(t){return function(e){return e.tagName===t.toUpperCase()}};function Tm(t){return t.replace("<!doctype html>","").replace(/\s{2,}/g," ").replace(/'/g,'"').replaceAll('url("',"url('").replaceAll('");',"');")}function Am(t){return Am="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Am(t)}function Om(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Sm(r.key),r)}}function Sm(t){var e=function(t){if("object"!=Am(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Am(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Am(e)?e:e+""}const km=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=Sm(r="blockManager"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.blockManager=e,this.addOneColumn(),this.addTwoColumns(),this.addOneRatioTwoColumns(),this.addTwoRatioOneColumns()},(e=[{key:"addTwoRatioOneColumns",value:function(){this.blockManager.add("lock_two_ratio_one_columns",{category:"Section",label:"2:1 Columns",media:xm.twoOneColumn,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addOneRatioTwoColumns",value:function(){this.blockManager.add("lock_one_ratio_two_columns",{category:"Section",label:"1:2 Columns",media:xm.oneTwoColumn,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addOneColumn",value:function(){var t;t="form"===window.esPage?'\n      <div class="gjs-cell"></div>\n    ':'\n      <mj-section background-color="#FFFFFF">\n          <mj-column width="100%">\n            <mj-text line-height="26px">\n            Your content...\n            </mj-text>\n          </mj-column>\n      </mj-section>\n      ',this.blockManager.add("one_column",{category:"Section",label:"1 Column",media:xm.oneColumn,content:t})}},{key:"addTwoColumns",value:function(){var t;t="form"===window.esPage?'<div class="gjs-row">\n      <div class="gjs-cell"></div>\n      <div class="gjs-cell"></div>\n    </div>':'\n      <mj-section background-color="#FFFFFF">\n          <mj-column width="50%" >\n            <mj-text line-height="26px">\n            Your content...\n            </mj-text>\n          </mj-column>\n          <mj-column width="50%" >\n            <mj-text line-height="26px">\n            Your content...\n            </mj-text>\n          </mj-column>\n      </mj-section>\n      ',this.blockManager.add("two_columns",{category:"Section",label:"2 Columns",media:xm.twoColumn,content:t})}}])&&Om(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Pm(t){return Pm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pm(t)}function jm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Nm(r.key),r)}}function Nm(t){var e=function(t){if("object"!=Pm(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Pm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Pm(e)?e:e+""}const Lm=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=Nm(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,"form"===window.esPage?this.addESFormElements():(this.addTextElement(),this.addButtonElement(),this.addImageElement(),this.addHeaderElement(),this.addFooterElement(),this.addDividerElement(),this.addSpacerElement(),this.addNavbarElement(),this.addSocialGroupElement(),this.addVideoElement(),this.addSurveyElement(),this.addPostsElement(),this.addBroadcastPostsElement())},(e=[{key:"addCustomCodeElement",value:function(){this.editor.BlockManager.add("lock_custom_code_element",{category:"Elements",label:"Custom code",media:xm.customCode,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addVideoElement",value:function(){this.editor.BlockManager.add("lock_video_element",{category:"Elements",label:"Video",media:xm.video,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addSocialGroupElement",value:function(){this.editor.BlockManager.add("lock_social_group_element",{category:"Elements",label:"Social Group",media:xm.social,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addNavbarElement",value:function(){this.editor.BlockManager.add("lock_navbar_element",{category:"Elements",label:"Navbar",media:xm.navbar,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addSpacerElement",value:function(){this.editor.BlockManager.add("lock_spacer_element",{category:"Elements",label:"Spacer",media:xm.spacer,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addDividerElement",value:function(){this.editor.BlockManager.add("lock_divider_element",{category:"Elements",label:"Divider",media:xm.divider,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addFooterElement",value:function(){this.editor.BlockManager.add("lite_footer_element",{category:"Elements",label:"Footer",media:xm.footer,content:'\n        <mj-section background-color="#f3f3f3">\n          <mj-column width="100%">\n            <mj-text align="center" line-height="26px">@2022, Icegram Express.</mj-text>\n            <mj-text align="center" line-height="26px">You are receiving this email because you have visited our site or asked about our regular newsletter. If you wish to unsubscribe from our newsletter, click <a data-gjs-type="link" href="{{UNSUBSCRIBE-LINK}}">here </a></mj-text>\n          </mj-column>\n        </mj-section>\n      '})}},{key:"addHeaderElement",value:function(){this.editor.BlockManager.add("lite_header_element",{category:"Elements",label:"Header",media:xm.header,content:'\n        <mj-section background-color="#FFFFFF">\n          <mj-column width="100%">\n            <mj-image src="https://webstockreview.net/images/sample-png-images-14.png" height="70px" width="140px"/>\n          </mj-column>\n        </mj-section>\n      '})}},{key:"addImageElement",value:function(){this.editor.BlockManager.add("image_element",{category:"Elements",label:"Image",media:xm.image,content:'\n        <mj-image src="https://via.placeholder.com/350x250/78c5d6/fff"/>\n      '})}},{key:"addButtonElement",value:function(){this.editor.BlockManager.add("button_element",{category:"Elements",label:"Button",media:xm.button,content:"\n        <mj-button>Button</mj-button>\n      "})}},{key:"addTextElement",value:function(){this.editor.BlockManager.add("text_element",{category:"Elements",label:"Text",media:xm.text,content:'\n        <mj-text line-height="26px">\n          Your content...\n        </mj-text>\n      '})}},{key:"addSurveyElement",value:function(){this.editor.BlockManager.add("lock_survey_element",{category:"Elements",label:"Survey",media:xm.survey,content:"",disable:!0,attributes:{class:"lock-block"}})}},{key:"addPostsElement",value:function(){var t=this;this.editor.BlockManager.add("posts_element",{category:"Elements",label:"Add Posts",media:xm.posts,content:'\n      <div class="es-posts" style="pointer-events: all;display: table; width: 100%;">\n        <span style="visibility:hidden;font-size:3px">{{campaign.posts}}</span>\n          <div class="post-format-content"></div>\n        <span style="visibility:hidden;font-size:3px">{{/campaign.posts}}</span>\n      </div>',draggable:!0,campaignTypes:["post_notification","post_digest"]});var e=ig_es_campaign_editor_data.postTags;void 0!==e&&e.length>0&&e.forEach((function(e){var n="es-"+e.keyword.replace(".","-");t.editor.BlockManager.add(n,{media:e.icon?e.icon:xm.customField,label:e.label,content:'<mj-text line-height="26px" class="'.concat(n,'">\n                  {{').concat(e.keyword,"}}\n            </mj-text>"),draggable:!0,droppable:!0,category:"Post blocks",textable:1,campaignTypes:["post_notification","post_digest"]})}))}},{key:"addBroadcastPostsElement",value:function(){this.editor.BlockManager.add("lock_broadcast_posts_element",{category:"Elements",label:"Add Posts",media:xm.posts,draggable:!0,campaignTypes:["newsletter"],content:"",disable:!0,attributes:{class:"lock-block starter"}})}},{key:"addESFormElements",value:function(){this.addFormTextElement(),this.addFormImageElement(),this.addNameElement(),this.addListsElement(),this.addCaptchaElement(),this.addGDPRElement()}},{key:"addFormTextElement",value:function(){this.editor.BlockManager.add("es-text",{label:"Text",media:xm.text,content:"<p>Your content...</p>",category:"Form"})}},{key:"addFormImageElement",value:function(){this.editor.BlockManager.add("es-image",{label:"Image",media:xm.image,content:{type:"es-image",draggable:!0,droppable:!0},category:"Form"})}},{key:"addNameElement",value:function(){this.editor.BlockManager.add("es-name",{label:"Name",media:xm.user,content:{classes:"gjs-row",tagName:"div",components:[{classes:"gjs-cell",tagName:"div",components:[{type:"text",tagName:"label",classes:"es-field-label",content:"Name"},{type:"name"}]}]},category:"Form"})}},{key:"addEmailElement",value:function(){this.editor.BlockManager.add("es-email",{label:"Email",media:xm.email,content:{type:"es-email"},category:"Form"})}},{key:"addListsElement",value:function(){this.editor.BlockManager.add("es-list",{label:"List",media:xm.list,content:{classes:"gjs-row",tagName:"div",components:[{classes:"gjs-cell",tagName:"div",components:[{type:"text",content:"Select list(s) *",tagName:"label",classes:"es-field-label"},{type:"es-list"}]}]},draggable:!0,droppable:!0,category:"Form"})}},{key:"addGDPRElement",value:function(){this.editor.BlockManager.add("es-gdpr",{label:"GDPR",media:xm.gdpr,content:{classes:"gjs-row",tagName:"div",components:[{classes:"gjs-cell",tagName:"div",components:[{classes:"es_gdpr",tagName:"div",components:[{type:"text",content:'<input type="checkbox" name="es_gdpr_consent" value="true" required="required"/>Please read our <a href="'+ig_es_form_editor_data.site_url+'">terms and conditions</a>',tagName:"label",classes:"es-field-label"}]}]}]},draggable:!0,droppable:!0,category:"Form"})}},{key:"addCaptchaElement",value:function(){this.editor.BlockManager.add("lock_captcha_element",{category:"Form",label:"Captcha",media:xm.captcha,content:"",disable:!0,attributes:{class:"lock-block starter"}})}},{key:"addSubmitElement",value:function(){this.editor.BlockManager.add("es-submit",{label:"Submit",content:{type:"es-submit"},draggable:!0,droppable:!0,category:"Form"})}}])&&jm(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Dm(t){return Dm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dm(t)}function Im(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Rm(r.key),r)}}function Rm(t){var e=function(t){if("object"!=Dm(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Dm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Dm(e)?e:e+""}var Mm=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=Rm(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.addBlocks(),this.removeBlocks(),this.handleBlocksFilter()},e=[{key:"handleBlocksFilter",value:function(){var t=this,e=document.getElementById("gj-blocks-container-search");e&&e.addEventListener("keyup",(function(e){var n=e.target.value,r=t.editor.BlockManager,o=r.getAll().filter((function(t){return t.attributes.label.toLowerCase().includes(n)}));r.render(o)}))}},{key:"addBlocks",value:function(){new km(this.editor.BlockManager),new Lm(this.editor)}},{key:"removeBlocks",value:function(){var t=this.editor.BlockManager;t.remove("mj-1-column"),t.remove("mj-2-columns"),t.remove("mj-3-columns"),t.remove("mj-text"),t.remove("mj-button"),t.remove("mj-image"),t.remove("mj-divider"),t.remove("mj-social-group"),t.remove("mj-social-element"),t.remove("mj-spacer"),t.remove("mj-navbar"),t.remove("mj-navbar-link"),t.remove("mj-hero"),t.remove("mj-wrapper"),t.remove("mj-raw")}}],e&&Im(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();const Bm=Mm;function Fm(t){return Fm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fm(t)}function Um(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Hm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Um(Object(n),!0).forEach((function(e){Vm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Um(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Vm(t,e,n){return(e=function(t){var e=function(t){if("object"!=Fm(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Fm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Fm(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qm(t){return qm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qm(t)}function zm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wm(r.key),r)}}function Wm(t){var e=function(t){if("object"!=qm(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=qm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==qm(e)?e:e+""}var Gm=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=Wm(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.addPanels(),this.removePanels(),this.addCommands()},e=[{key:"addCommands",value:function(){var t=this.editor,e=t.Commands;!function(t,e){e.add("reset-to-default-template",{run:function(e){var n="form"===window.esPage?'Are you sure want to "Reset" your form?':'Are you sure want to "Reset" your template?';if(confirm(n))if("form"===window.esPage){var r=_m();t.setComponents(r)}else t.setComponents('<mjml>\n        <mj-body>\n            <mj-section background-color="#FFFFFF">\n                <mj-column width="100%">\n                    <mj-image src="https://webstockreview.net/images/sample-png-images-14.png" height="70px"\n                              width="140px"/>\n                </mj-column>\n            </mj-section>\n            <mj-section background-color="#FFFFFF">\n                <mj-column width="100%">\n                    <mj-text line-height="26px">Your content...</mj-text>\n                </mj-column>\n            </mj-section>\n            <mj-section background-color="#f3f3f3">\n                <mj-column width="100%">\n                    <mj-text align="center" line-height="26px">@2022, Your Brand Name.</mj-text>\n                    <mj-text align="center" line-height="26px">You are receiving this email because you have visited our site or asked\n                        about our regular newsletter. If you wish to unsubscribe from our newsletter, click <a data-gjs-type="link" href="{{UNSUBSCRIBE-LINK}}" >here </a>\n                    </mj-text>\n                </mj-column>\n            </mj-section>\n        </mj-body>\n    </mjml> \n    ')}})}(t,e),function(t,e){e.add("export-html-template",{run:function(e){var n=e.store(),r=Tm(e.runCommand("mjml-get-code").html);document.getElementById("ig-es-export-html-data-textarea").value=r,document.getElementById("ig-es-export-json-data-textarea").value=n.components;var o=document.createElement("div");o.classList.add("export-html-container");var i=document.createElement("textarea");i.classList.add("export-html-textarea"),i.value=r,o.append(i),t.Modal.open({title:"HTML",content:o,attributes:{class:"export-html"}})}})}(t,e),function(t,e){var n={},r=function(t,e){e instanceof HTMLElement?t.appendChild(e):e&&t.insertAdjacentHTML("beforeend",e)},o="custom-code-plugin__code";e.add("custom-code:open-modal",Hm({keyCustomCode:o,run:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.editor=t,this.options=n,this.target=n.target||t.getSelected();var r=this.target;r&&r.get("editable")&&this.showCustomCode(r)},stop:function(t){t.Modal.close()},showCustomCode:function(t){var e=this,n=this.editor,r=this.options.title||"Insert your code",i=this.getContent(),a=t.get(o)||"";n.Modal.open({title:r,content:i}).getModel().once("change:open",(function(){return n.stopCommand(e.id)})),this.getCodeViewer().setContent(a)},getPreContent:function(){},getPostContent:function(){},getContent:function(){var t=this.editor,e=document.createElement("div"),n=this.getCodeViewer(),o=t.getConfig("stylePrefix");return e.className="".concat(o,"custom-code"),r(e,this.getPreContent()),e.appendChild(n.getElement()),r(e,this.getPostContent()),r(e,this.getContentActions()),n.refresh(),setTimeout((function(){return n.focus()}),0),e},getContentActions:function(){var t=this,e=this.editor,n=document.createElement("div");n.classList.add("icca-con");var r=document.createElement("button");r.setAttribute("type","button");var o=e.getConfig("stylePrefix");return r.innerHTML="Insert",r.className="".concat(o,"btn-prim ").concat(o,"btn-import__custom-code"),r.onclick=function(){return t.handleSave()},n.append(r),n},handleSave:function(){var t=this.editor,e=this.target,n=this.getCodeViewer().getContent();e.set(o,n),t.Modal.close()},getCodeViewer:function(){var t=this.editor;return this.codeViewer||(this.codeViewer=t.CodeManager.createViewer(Hm({codeName:"htmlmixed",theme:"hopscotch",readOnly:0},n))),this.codeViewer}},{}))}(0,e)}},{key:"addPanels",value:function(){var t=this.editor.Panels;t.addPanel({id:"basic-actions",el:"#undo-redo-actions",buttons:[{id:"undo",className:"",label:xm.undo,command:"core:undo",attributes:{title:"Undo"}},{id:"redo",className:"",label:xm.redo,command:"core:redo",attributes:{title:"Redo"}}]}),t.addPanel({id:"basic-action",el:"#reset-actions",buttons:[{id:"reset",className:"",label:xm.reset,command:"reset-to-default-template",attributes:{title:"Reset"}}]}),t.addPanel({id:"resize-actions",el:"#resize-devices",buttons:[{id:"desktop",active:!0,className:" mr-2 text-xs flex items-center",label:xm.desktop+'<span class="">Desktop</span>',command:"set-device-desktop",attributes:{title:"View in desktop size"}},{id:"tablet",className:"mr-2 text-xs flex items-center",command:"set-device-tablet",label:xm.tablet+'<span class="">Tablet</span>',attributes:{title:"View in tablet size"}},{id:"mobile",className:" mr-2 text-xs flex items-center",command:"set-device-mobile",label:xm.mobile+'<span class="">Mobile</span>',attributes:{title:"View in mobile phone size"}}]})}},{key:"removePanels",value:function(){}}],e&&zm(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();const Ym=Gm,{entries:Km,setPrototypeOf:$m,isFrozen:Xm,getPrototypeOf:Zm,getOwnPropertyDescriptor:Qm}=Object;let{freeze:Jm,seal:tv,create:ev}=Object,{apply:nv,construct:rv}="undefined"!=typeof Reflect&&Reflect;Jm||(Jm=function(t){return t}),tv||(tv=function(t){return t}),nv||(nv=function(t,e,n){return t.apply(e,n)}),rv||(rv=function(t,e){return new t(...e)});const ov=bv(Array.prototype.forEach),iv=bv(Array.prototype.lastIndexOf),av=bv(Array.prototype.pop),sv=bv(Array.prototype.push),lv=bv(Array.prototype.splice),cv=bv(String.prototype.toLowerCase),uv=bv(String.prototype.toString),pv=bv(String.prototype.match),dv=bv(String.prototype.replace),fv=bv(String.prototype.indexOf),hv=bv(String.prototype.trim),gv=bv(Object.prototype.hasOwnProperty),mv=bv(RegExp.prototype.test),vv=(yv=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return rv(yv,e)});var yv;function bv(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return nv(t,e,r)}}function _v(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:cv;$m&&$m(t,null);let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(Xm(e)||(e[r]=t),o=t)}t[o]=!0}return t}function wv(t){for(let e=0;e<t.length;e++)gv(t,e)||(t[e]=null);return t}function Ev(t){const e=ev(null);for(const[n,r]of Km(t))gv(t,n)&&(Array.isArray(r)?e[n]=wv(r):r&&"object"==typeof r&&r.constructor===Object?e[n]=Ev(r):e[n]=r);return e}function xv(t,e){for(;null!==t;){const n=Qm(t,e);if(n){if(n.get)return bv(n.get);if("function"==typeof n.value)return bv(n.value)}t=Zm(t)}return function(){return null}}const Cv=Jm(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Tv=Jm(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Av=Jm(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ov=Jm(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sv=Jm(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),kv=Jm(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pv=Jm(["#text"]),jv=Jm(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Nv=Jm(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Lv=Jm(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dv=Jm(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Iv=tv(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Rv=tv(/<%[\w\W]*|[\w\W]*%>/gm),Mv=tv(/\$\{[\w\W]*/gm),Bv=tv(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fv=tv(/^aria-[\-\w]+$/),Uv=tv(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Hv=tv(/^(?:\w+script|data):/i),Vv=tv(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qv=tv(/^html$/i),zv=tv(/^[a-z][.\w]*(-[.\w]+)+$/i);var Wv=Object.freeze({__proto__:null,ARIA_ATTR:Fv,ATTR_WHITESPACE:Vv,CUSTOM_ELEMENT:zv,DATA_ATTR:Bv,DOCTYPE_NAME:qv,ERB_EXPR:Rv,IS_ALLOWED_URI:Uv,IS_SCRIPT_OR_DATA:Hv,MUSTACHE_EXPR:Iv,TMPLIT_EXPR:Mv});const Gv=function(){return"undefined"==typeof window?null:window};var Yv=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Gv();const n=e=>t(e);if(n.version="3.2.4",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let{document:r}=e;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:h}=e,g=c.prototype,m=xv(g,"cloneNode"),v=xv(g,"remove"),y=xv(g,"nextSibling"),b=xv(g,"childNodes"),_=xv(g,"parentNode");if("function"==typeof s){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let w,E="";const{implementation:x,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:A}=r,{importNode:O}=o;let S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Km&&"function"==typeof _&&x&&void 0!==x.createHTMLDocument;const{MUSTACHE_EXPR:k,ERB_EXPR:P,TMPLIT_EXPR:j,DATA_ATTR:N,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:D,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:R}=Wv;let{IS_ALLOWED_URI:M}=Wv,B=null;const F=_v({},[...Cv,...Tv,...Av,...Sv,...Pv]);let U=null;const H=_v({},[...jv,...Nv,...Lv,...Dv]);let V=Object.seal(ev(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,z=null,W=!0,G=!0,Y=!1,K=!0,$=!1,X=!0,Z=!1,Q=!1,J=!1,tt=!1,et=!1,nt=!1,rt=!0,ot=!1,it=!0,at=!1,st={},lt=null;const ct=_v({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ut=null;const pt=_v({},["audio","video","img","source","image","track"]);let dt=null;const ft=_v({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ht="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let vt=mt,yt=!1,bt=null;const _t=_v({},[ht,gt,mt],uv);let wt=_v({},["mi","mo","mn","ms","mtext"]),Et=_v({},["annotation-xml"]);const xt=_v({},["title","style","font","a","script"]);let Ct=null;const Tt=["application/xhtml+xml","text/html"];let At=null,Ot=null;const St=r.createElement("form"),kt=function(t){return t instanceof RegExp||t instanceof Function},Pt=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ot||Ot!==t){if(t&&"object"==typeof t||(t={}),t=Ev(t),Ct=-1===Tt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,At="application/xhtml+xml"===Ct?uv:cv,B=gv(t,"ALLOWED_TAGS")?_v({},t.ALLOWED_TAGS,At):F,U=gv(t,"ALLOWED_ATTR")?_v({},t.ALLOWED_ATTR,At):H,bt=gv(t,"ALLOWED_NAMESPACES")?_v({},t.ALLOWED_NAMESPACES,uv):_t,dt=gv(t,"ADD_URI_SAFE_ATTR")?_v(Ev(ft),t.ADD_URI_SAFE_ATTR,At):ft,ut=gv(t,"ADD_DATA_URI_TAGS")?_v(Ev(pt),t.ADD_DATA_URI_TAGS,At):pt,lt=gv(t,"FORBID_CONTENTS")?_v({},t.FORBID_CONTENTS,At):ct,q=gv(t,"FORBID_TAGS")?_v({},t.FORBID_TAGS,At):{},z=gv(t,"FORBID_ATTR")?_v({},t.FORBID_ATTR,At):{},st=!!gv(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,G=!1!==t.ALLOW_DATA_ATTR,Y=t.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,$=t.SAFE_FOR_TEMPLATES||!1,X=!1!==t.SAFE_FOR_XML,Z=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,nt=t.RETURN_TRUSTED_TYPE||!1,J=t.FORCE_BODY||!1,rt=!1!==t.SANITIZE_DOM,ot=t.SANITIZE_NAMED_PROPS||!1,it=!1!==t.KEEP_CONTENT,at=t.IN_PLACE||!1,M=t.ALLOWED_URI_REGEXP||Uv,vt=t.NAMESPACE||mt,wt=t.MATHML_TEXT_INTEGRATION_POINTS||wt,Et=t.HTML_INTEGRATION_POINTS||Et,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&kt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&kt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$&&(G=!1),et&&(tt=!0),st&&(B=_v({},Pv),U=[],!0===st.html&&(_v(B,Cv),_v(U,jv)),!0===st.svg&&(_v(B,Tv),_v(U,Nv),_v(U,Dv)),!0===st.svgFilters&&(_v(B,Av),_v(U,Nv),_v(U,Dv)),!0===st.mathMl&&(_v(B,Sv),_v(U,Lv),_v(U,Dv))),t.ADD_TAGS&&(B===F&&(B=Ev(B)),_v(B,t.ADD_TAGS,At)),t.ADD_ATTR&&(U===H&&(U=Ev(U)),_v(U,t.ADD_ATTR,At)),t.ADD_URI_SAFE_ATTR&&_v(dt,t.ADD_URI_SAFE_ATTR,At),t.FORBID_CONTENTS&&(lt===ct&&(lt=Ev(lt)),_v(lt,t.FORBID_CONTENTS,At)),it&&(B["#text"]=!0),Z&&_v(B,["html","head","body"]),B.table&&(_v(B,["tbody"]),delete q.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw vv('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw vv('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=t.TRUSTED_TYPES_POLICY,E=w.createHTML("")}else void 0===w&&(w=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,i)),null!==w&&"string"==typeof E&&(E=w.createHTML(""));Jm&&Jm(t),Ot=t}},jt=_v({},[...Tv,...Av,...Ov]),Nt=_v({},[...Sv,...kv]),Lt=function(t){sv(n.removed,{element:t});try{_(t).removeChild(t)}catch(e){v(t)}},Dt=function(t,e){try{sv(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){sv(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(tt||et)try{Lt(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},It=function(t){let e=null,n=null;if(J)t="<remove></remove>"+t;else{const e=pv(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ct&&vt===mt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=w?w.createHTML(t):t;if(vt===mt)try{e=(new f).parseFromString(o,Ct)}catch(t){}if(!e||!e.documentElement){e=x.createDocument(vt,"template",null);try{e.documentElement.innerHTML=yt?E:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),vt===mt?A.call(e,Z?"html":"body")[0]:Z?e.documentElement:i},Rt=function(t){return C.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Mt=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof p)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Bt=function(t){return"function"==typeof l&&t instanceof l};function Ft(t,e,r){ov(t,(t=>{t.call(n,e,r,Ot)}))}const Ut=function(t){let e=null;if(Ft(S.beforeSanitizeElements,t,null),Mt(t))return Lt(t),!0;const r=At(t.nodeName);if(Ft(S.uponSanitizeElement,t,{tagName:r,allowedTags:B}),t.hasChildNodes()&&!Bt(t.firstElementChild)&&mv(/<[/\w]/g,t.innerHTML)&&mv(/<[/\w]/g,t.textContent))return Lt(t),!0;if(7===t.nodeType)return Lt(t),!0;if(X&&8===t.nodeType&&mv(/<[/\w]/g,t.data))return Lt(t),!0;if(!B[r]||q[r]){if(!q[r]&&Vt(r)){if(V.tagNameCheck instanceof RegExp&&mv(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(it&&!lt[r]){const e=_(t)||t.parentNode,n=b(t)||t.childNodes;if(n&&e)for(let r=n.length-1;r>=0;--r){const o=m(n[r],!0);o.__removalCount=(t.__removalCount||0)+1,e.insertBefore(o,y(t))}}return Lt(t),!0}return t instanceof c&&!function(t){let e=_(t);e&&e.tagName||(e={namespaceURI:vt,tagName:"template"});const n=cv(t.tagName),r=cv(e.tagName);return!!bt[t.namespaceURI]&&(t.namespaceURI===gt?e.namespaceURI===mt?"svg"===n:e.namespaceURI===ht?"svg"===n&&("annotation-xml"===r||wt[r]):Boolean(jt[n]):t.namespaceURI===ht?e.namespaceURI===mt?"math"===n:e.namespaceURI===gt?"math"===n&&Et[r]:Boolean(Nt[n]):t.namespaceURI===mt?!(e.namespaceURI===gt&&!Et[r])&&!(e.namespaceURI===ht&&!wt[r])&&!Nt[n]&&(xt[n]||!jt[n]):!("application/xhtml+xml"!==Ct||!bt[t.namespaceURI]))}(t)?(Lt(t),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!mv(/<\/no(script|embed|frames)/i,t.innerHTML)?($&&3===t.nodeType&&(e=t.textContent,ov([k,P,j],(t=>{e=dv(e,t," ")})),t.textContent!==e&&(sv(n.removed,{element:t.cloneNode()}),t.textContent=e)),Ft(S.afterSanitizeElements,t,null),!1):(Lt(t),!0)},Ht=function(t,e,n){if(rt&&("id"===e||"name"===e)&&(n in r||n in St))return!1;if(G&&!z[e]&&mv(N,e));else if(W&&mv(L,e));else if(!U[e]||z[e]){if(!(Vt(t)&&(V.tagNameCheck instanceof RegExp&&mv(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&mv(V.attributeNameCheck,e)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(e))||"is"===e&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&mv(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(dt[e]);else if(mv(M,dv(n,I,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==fv(n,"data:")||!ut[t])if(Y&&!mv(D,dv(n,I,"")));else if(n)return!1;return!0},Vt=function(t){return"annotation-xml"!==t&&pv(t,R)},qt=function(t){Ft(S.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Mt(t))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:U,forceKeepAttr:void 0};let o=e.length;for(;o--;){const i=e[o],{name:a,namespaceURI:s,value:l}=i,c=At(a);let u="value"===a?l:hv(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,Ft(S.uponSanitizeAttribute,t,r),u=r.attrValue,!ot||"id"!==c&&"name"!==c||(Dt(a,t),u="user-content-"+u),X&&mv(/((--!?|])>)|<\/(style|title)/i,u)){Dt(a,t);continue}if(r.forceKeepAttr)continue;if(Dt(a,t),!r.keepAttr)continue;if(!K&&mv(/\/>/i,u)){Dt(a,t);continue}$&&ov([k,P,j],(t=>{u=dv(u,t," ")}));const p=At(t.nodeName);if(Ht(p,c,u)){if(w&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(s);else switch(h.getAttributeType(p,c)){case"TrustedHTML":u=w.createHTML(u);break;case"TrustedScriptURL":u=w.createScriptURL(u)}try{s?t.setAttributeNS(s,a,u):t.setAttribute(a,u),Mt(t)?Lt(t):av(n.removed)}catch(t){}}}Ft(S.afterSanitizeAttributes,t,null)},zt=function t(e){let n=null;const r=Rt(e);for(Ft(S.beforeSanitizeShadowDOM,e,null);n=r.nextNode();)Ft(S.uponSanitizeShadowNode,n,null),Ut(n),qt(n),n.content instanceof a&&t(n.content);Ft(S.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(yt=!t,yt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Bt(t)){if("function"!=typeof t.toString)throw vv("toString is not a function");if("string"!=typeof(t=t.toString()))throw vv("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Q||Pt(e),n.removed=[],"string"==typeof t&&(at=!1),at){if(t.nodeName){const e=At(t.nodeName);if(!B[e]||q[e])throw vv("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)r=It("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!tt&&!$&&!Z&&-1===t.indexOf("<"))return w&&nt?w.createHTML(t):t;if(r=It(t),!r)return tt?null:nt?E:""}r&&J&&Lt(r.firstChild);const u=Rt(at?t:r);for(;s=u.nextNode();)Ut(s),qt(s),s.content instanceof a&&zt(s.content);if(at)return t;if(tt){if(et)for(c=T.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(U.shadowroot||U.shadowrootmode)&&(c=O.call(o,c,!0)),c}let p=Z?r.outerHTML:r.innerHTML;return Z&&B["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&mv(qv,r.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+p),$&&ov([k,P,j],(t=>{p=dv(p,t," ")})),w&&nt?w.createHTML(p):p},n.setConfig=function(){Pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Ot=null,Q=!1},n.isValidAttribute=function(t,e,n){Ot||Pt({});const r=At(t),o=At(e);return Ht(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&sv(S[t],e)},n.removeHook=function(t,e){if(void 0!==e){const n=iv(S[t],e);return-1===n?void 0:lv(S[t],n,1)[0]}return av(S[t])},n.removeHooks=function(t){S[t]=[]},n.removeAllHooks=function(){S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Kv(t){return Kv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kv(t)}function $v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Zv(r.key),r)}}function Xv(t,e,n){return(e=Zv(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zv(t){var e=function(t){if("object"!=Kv(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Kv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Kv(e)?e:e+""}var Qv=function(){return t=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Xv(this,"editor",void 0),Xv(this,"onSelectComponent",void 0),this.editor=e,this.onSelectComponent=n,this.handleComponentsSelection()},(e=[{key:"handleComponentsSelection",value:function(){var t=this,e=this.editor;e.StyleManager,e.on("component:add",(function(t){})),e.on("component:remove",(function(t){})),e.on("component:selected",(function(t){var e=document.querySelector(".prev-sector-cta span");e&&(e.textContent="Go to Blocks");var n=t.getTrait("src"),r=t.getTrait("href");n&&n.set({label:"Image"}),r&&r.set({label:"Link"})})),e.on("block:drag:stop",(function(t){e.select(t)})),e.on("component:update:attributes",(function(e){t.sanitizeAttributes(e)}))}},{key:"sanitizeAttributes",value:function(t){var e=t.getAttributes(),n=!1;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r],i=Yv.sanitize(o,{ALLOWED_ATTR:[r]});o!==i&&(n=!0,e[r]=i)}n&&t.setAttributes(e)}}])&&$v(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();const Jv=Qv;function ty(t){return ty="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ty(t)}function ey(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ny(r.key),r)}}function ny(t){var e=function(t){if("object"!=ty(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ty(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ty(e)?e:e+""}var ry=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=ny(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e},(e=[{key:"handleStyleManager",value:function(){var t=this.editor;if(t.on("load",(function(){document.querySelector("#gjs-sm-dimension .gjs-sm-title").innerHTML='<i id="gjs-sm-caret" class="fa fa-caret-right"></i> Spacing',document.querySelector("#gjs-sm-decorations .gjs-sm-title").innerHTML='<i id="gjs-sm-caret" class="fa fa-caret-right"></i> Colors',document.querySelector("#gjs-sm-typography .gjs-sm-title").innerHTML='<i id="gjs-sm-caret" class="fa fa-caret-right"></i> Text styles';var e=t.StyleManager.getSectors();e.each((function(t){t.set("open",!1).on("change:open",(function(t){t.get("open")&&e.each((function(e){e!==t&&e.set("open",!1)}))}))}))})),"form"===window.esPage){var e=_m();t.setComponents(e)}else t.setComponents('<mjml>\n        <mj-body>\n            <mj-section background-color="#FFFFFF">\n                <mj-column width="100%">\n                    <mj-image src="https://webstockreview.net/images/sample-png-images-14.png" height="70px"\n                              width="140px"/>\n                </mj-column>\n            </mj-section>\n            <mj-section background-color="#FFFFFF">\n                <mj-column width="100%">\n                    <mj-text line-height="26px">Your content...</mj-text>\n                </mj-column>\n            </mj-section>\n            <mj-section background-color="#f3f3f3">\n                <mj-column width="100%">\n                    <mj-text align="center" line-height="26px">@2022, Your Brand Name.</mj-text>\n                    <mj-text align="center" line-height="26px">You are receiving this email because you have visited our site or asked\n                        about our regular newsletter. If you wish to unsubscribe from our newsletter, click <a data-gjs-type="link" href="{{UNSUBSCRIBE-LINK}}" >here </a>\n                    </mj-text>\n                </mj-column>\n            </mj-section>\n        </mj-body>\n    </mjml> \n    ')}}])&&ey(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();const oy=ry;function iy(t){return iy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iy(t)}function ay(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,sy(r.key),r)}}function sy(t){var e=function(t){if("object"!=iy(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=iy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==iy(e)?e:e+""}const ly=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=sy(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.handleTraitsManager()},(e=[{key:"handleTraitsManager",value:function(){var t=this.editor;!function(t){t.TraitManager.addType("radio",{createInput:function(t){var e=t.trait,n=t.component,r=e.get("options")||[],o=e.get("name"),i=r.length?r:[],a=document.createElement("div"),s=n.get(o);return a.innerHTML='\n          <div class="mt-2 flex flex-row gap-3 text-sm '.concat(o,'">\n            ').concat(i.map((function(t){var e=o+"-"+t.id,n=t.id;return'<div class="radio-section">\n                <input type="radio" id="'.concat(e,'" name="').concat(o,'" value="').concat(n,'" ').concat(s===n?"checked":"",'/>\n                <label for="').concat(e,'" title="').concat(t.name,'" class="radio-item-label ml-1">\n                ').concat(t.name,"\n                </label>\n              </div>")})).join(""),"\n          </div>\n        "),jQuery(a).find('input[type="radio"]').on("change",(function(t){var e=jQuery(a).find('input[type="radio"]:checked').val();n.set(o,e)})),a}})}(t),function(t){t.TraitManager.addType("radio-icon",{createInput:function(t){var e=t.trait,n=t.component,r=e.get("options")||[],o=e.get("name"),i=r.length?r:[],a=document.createElement("div"),s=n.get(o);return a.innerHTML='\n          <div class="mt-2 flex flex-row gap-3 text-sm '.concat(o,'" style="text-align:center">\n            ').concat(i.map((function(t){var e=o+"-"+t.id,n=t.id,r=t.icon;return'<div class="radio-section">\n              <input type="radio"  id="'.concat(e,'" name="').concat(o,'" value="').concat(n,'" ').concat(s===n?"checked":"","/>\n              ").concat(r,'\n              <label for="').concat(e,'" title="').concat(t.name,'" class="radio-item-label ml-1">\n              ').concat(t.name,"\n              </label>\n\n                \n               \n              </div>")})).join(""),"\n          </div>\n        "),jQuery(a).find('input[type="radio"]').on("change",(function(t){var e=jQuery(a).find('input[type="radio"]:checked').val();n.set(o,e)})),a}})}(t),function(t){t.TraitManager.addType("multiselect",{createInput:function(t){var e=t.trait.get("options")||[],n=e.length?e:[],r=document.createElement("div");return r.innerHTML='\n          <select class="es-list ig-es-form-multiselect" multiple>\n            '.concat(n.map((function(t){return'<option value="'.concat(t.id,'">').concat(t.name,"</option>")})).join(""),"\n          </select>\n        "),r},onUpdate:function(t){var e=t.elInput,n=t.component.view.model.get("es-list");void 0===n&&(n=[]),e.querySelectorAll(".es-list option").forEach((function(t){t.selected=n.includes(t.value)}))},onEvent:function(t){var e=t.elInput,n=t.component,r=(t.event,function(t){for(var e,n=[],r=t&&t.options,o=0,i=r.length;o<i;o++)(e=r[o]).selected&&n.push(e.value||e.text);return n}(e.querySelector(".es-list")));n.view.model.set("es-list",r)}})}(t),function(t){t.TraitManager.addType("select2",{createInput:function(t){var e=t.trait,n=t.component,r=e.get("options")||[],o=e.get("name"),i=r.length?r:[],a=document.createElement("div"),s=n.get(o);return a.innerHTML='\n          <select class="'.concat(o,'" multiple>\n            ').concat(i.map((function(t){return'<option value="'.concat(t.id,'" ').concat(s.indexOf(t.id)>-1?"selected":"",">").concat(t.name,"</option>")})).join(""),"\n          </select>\n        "),jQuery(a).find("select").ig_es_select2(),jQuery(a).find("select").on("change",(function(t){var e=jQuery(a).find("select").val();n.set(o,e)})),a}})}(t),function(t){t.TraitManager.addType("textarea",{createInput:function(t){var e=t.trait,n=document.createElement("textarea");return n.rows="3",n.value=e.get("value"),n},onEvent:function(t){var e=t.elInput,n=t.component,r=e.value;n.addAttributes({"survey-message":r})},onUpdate:function(t){var e=t.elInput,n=t.component.getAttributes()["survey-message"]||"";e.value=n,e.dispatchEvent(new CustomEvent("change"))}})}(t),function(t){t.TraitManager.addType("post-cpt",{createInput:function(t){var e=this,n=t.trait,r=t.component,o=n.get("options")||[],i=n.get("name"),a=o.length?o:[],s=document.createElement("div"),l=r.get(i);return s.innerHTML='\n          <div class="mt-2 '.concat(i,'">\n            ').concat(a.map((function(t){var n=i+"-"+t.id,o=t.id;return'<div class="checkbox-section">  \n                <input type="checkbox" id="'.concat(n,'" name="').concat(i,'" value="').concat(o,'" ').concat(l.indexOf(o)>-1?"checked":"",'/>\n                <label for="').concat(n,'" title="').concat(t.name,'" class="checkbox-item-label ml-1">\n                ').concat(t.name,"\n                </label>\n                ")+e.addCustomPostTypeCategories(r,o)+"\n              </div>"})).join(""),"\n          </div>\n        "),jQuery(s).find('input[type="checkbox"]').on("change",(function(t){var e=jQuery(s).find('input[type="checkbox"]:checked'),n=[];e.each((function(){n.push(jQuery(this).val())})),r.set(i,n)})),jQuery(s).find("select").ig_es_select2(),jQuery(s).find("select").on("change",(function(){var t=jQuery(this).val(),e=jQuery(this).data("post-type"),n=r.get("custom-post-types-terms");void 0===n&&(n={}),n[e]=t,r.set("custom-post-types-terms",n)})),s},addCustomPostTypeCategories:function(t,e){var n,r=null!==(n=ig_es_main_js_data)&&void 0!==n&&n.custom_post_types_categories?ig_es_main_js_data.custom_post_types_categories:{};if("pro"!==ig_es_main_js_data.es_plan||void 0===r[e])return"";var o=t.get("custom-post-types-terms"),i=[];return void 0!==o[e]&&(i=o[e]),'<select class="cpt-categories" data-post-type="'+e+'" multiple>'+Object.keys(r[e]).map((function(t){return'<option value="'.concat(t,'" checked="').concat(i.indexOf(t)>-1?"checked":"",'">').concat(r[e][t],"</option>")})).join("")}})}(t)}}])&&ay(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function cy(t){return cy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cy(t)}function uy(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,dy(r.key),r)}}function py(t,e,n){return e&&uy(t.prototype,e),n&&uy(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function dy(t){var e=function(t){if("object"!=cy(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=cy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==cy(e)?e:e+""}var fy=py((function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=dy(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.editor.importMjml=function(t){e.DomComponents.getWrapper().set("content",""),e.setComponents(t),e.runCommand("mjml-import:change")},this.editor.exportEditorContent=function(){var t=Tm("form"===window.esPage?e.getHtml():e.runCommand("mjml-code-to-html").html),n=e.getComponents();return{html:t,data:JSON.stringify(n)}}}));const hy=fy;function gy(t){return gy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gy(t)}function my(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,vy(r.key),r)}}function vy(t){var e=function(t){if("object"!=gy(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=gy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==gy(e)?e:e+""}const yy=function(){return t=function t(e){var n,r,o;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=this,o=void 0,(r=vy(r="editor"))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.editor=e,this.addLink(),this.addForeColor()},(e=[{key:"addForeColor",value:function(){var t=this;this.editor.RichTextEditor.add("forecolor",{icon:'<div style="position: relative"><input type="text" id="fore-color-picker" value="rgba(0,0,0,1)" style="cursor: pointer;"/></div>',event:"change",attributes:{title:"Text color"},result:function(t,e){t.exec("forecolor",e.btn.querySelector("#fore-color-picker").value)},update:function(t,e){e.btn.querySelector("#fore-color-picker").value="rgba(0,0,0,1)"}}),setTimeout((function(){var e=document.getElementById("fore-color-picker");t.editor.getModel().initBaseColorPicker(e,{offset:{top:30,left:0,background:"#ffffff"},showInput:!0,showAlpha:!1,className:"fa fa-font color-picker-icon"})}),1e3)}},{key:"addLink",value:function(){this.editor.RichTextEditor.remove("link"),this.editor.RichTextEditor.add("link",{icon:'<i class="fa fa-link"></i>',attributes:{title:"Link"},result:function(t){var e=t.selection().anchorNode,n=e&&e.nextSibling;n&&"A"==n.nodeName?t.exec("unlink"):t.insertHTML('<a class="link" href="#">'.concat(t.selection(),"</a>"))}})}},{key:"removeActions",value:function(){var t=this;this.editor.on("component:selected",(function(e){var n=t.editor.RichTextEditor.getToolbarEl();e&&"mj-button"===e.get("type")?n.style.visibility="hidden":n.style.visibility="visible"}))}}])&&my(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function by(t){return by="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},by(t)}function _y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function wy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_y(Object(n),!0).forEach((function(e){Ey(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ey(t,e,n){return(e=function(t){var e=function(t){if("object"!=by(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=by(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==by(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!window.wp||!window.wp.media)return!1;var n=wy(wy({},{title:"Select image",button:{text:"Select"},library:{type:["image"]},multiple:!1}),e),r=window.wp.media(n),o=t.AssetManager;r.on("close",(function(){o.close()})),r.on("select",(function(){var t=r.state().get("selection").first().toJSON();o.add([{category:"wpmedia",src:t.url}]),o.render();var e=document.getElementsByClassName("gjs-am-asset-image");e.length>0&&e[0].click(),o.remove(t.url),o.close()})),t.on("asset:open",(function(){r.open()}))}function Cy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ty(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Cy(Object(n),!0).forEach((function(e){Ay(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ay(t,e,n){return(e=function(t){var e=function(t){if("object"!=Oy(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Oy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Oy(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oy(t){return Oy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oy(t)}function Sy(t){return Sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sy(t)}function ky(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Py(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ky(Object(n),!0).forEach((function(e){jy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ky(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function jy(t,e,n){return(e=function(t){var e=function(t){if("object"!=Sy(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Sy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Sy(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ny(t){return Ny="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ny(t)}function Ly(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Dy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ly(Object(n),!0).forEach((function(e){Iy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ly(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Iy(t,e,n){return(e=function(t){var e=function(t){if("object"!=Ny(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ny(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ny(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ry(t){return Ry="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ry(t)}function My(t){return function(t){if(Array.isArray(t))return By(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return By(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?By(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function By(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Fy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Uy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Fy(Object(n),!0).forEach((function(e){Hy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hy(t,e,n){return(e=function(t){var e=function(t){if("object"!=Ry(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Ry(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Ry(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vy(t){return Vy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vy(t)}function qy(){qy=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),s=new P(r||[]);return o(a,"_invoke",{value:A(t,n,s)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",g="completed",m={};function v(){}function y(){}function b(){}var _={};c(_,a,(function(){return this}));var w=Object.getPrototypeOf,E=w&&w(w(j([])));E&&E!==n&&r.call(E,a)&&(_=E);var x=b.prototype=v.prototype=Object.create(_);function C(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function n(o,i,a,s){var l=p(t[o],t,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==Vy(u)&&r.call(u,"__await")?e.resolve(u.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(u).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,o){n(t,r,e,o)}))}return i=i?i.then(o,o):o()}})}function A(e,n,r){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=O(s,r);if(l){if(l===m)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=p(e,n,r);if("normal"===c.type){if(o=r.done?g:f,c.arg===m)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=g,r.method="throw",r.arg=c.arg)}}}function O(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=p(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(Vy(e)+" is not iterable")}return y.prototype=b,o(x,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:y,configurable:!0}),y.displayName=c(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,l,"GeneratorFunction")),t.prototype=Object.create(x),t},e.awrap=function(t){return{__await:t}},C(T.prototype),c(T.prototype,s,(function(){return this})),e.AsyncIterator=T,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new T(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(x),c(x,l,"Generator"),c(x,a,(function(){return this})),c(x,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=j,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(k),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function zy(t,e,n,r,o,i,a){try{var s=t[i](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,o)}function Wy(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(t){zy(i,r,o,a,s,"next",t)}function s(t){zy(i,r,o,a,s,"throw",t)}a(void 0)}))}}function Gy(t){return function(t){if(Array.isArray(t))return Yy(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Yy(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Yy(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Yy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ky(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ky(Object(n),!0).forEach((function(e){Xy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ky(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xy(t,e,n){return(e=function(t){var e=function(t){if("object"!=Vy(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Vy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Vy(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zy(t){return Zy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zy(t)}function Qy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qy(Object(n),!0).forEach((function(e){tb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function tb(t,e,n){return(e=function(t){var e=function(t){if("object"!=Zy(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=Zy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zy(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eb(t){var e,n,r,o,i,a,s={dc:t.DomComponents,coreMjmlModel:{init:function(){var t=Jy({},this.get("attributes")),e=Jy(Jy({},this.get("style-default")),this.get("style"));for(var n in e)n in t||(t[n]=e[n]);this.set("attributes",t),this.set("style",t),this.listenTo(this,"change:style",this.handleStyleChange),this.listenTo(this,"change:attributes",this.handleAttributeChange)},handleAttributeChange:function(){this.set("style",this.get("attributes"))},handleStyleChange:function(){this.set("attributes",this.get("style"))},getMjmlAttributes:function(){var t=this.get("attributes")||{};return delete t.style,t},getAttrToHTML:function(){var t=Jy({},this.get("attributes")),e=Jy({},this.get("style-default"));for(var n in delete t.style,t){var r=t[n];r&&r===e[n]&&delete t[n]}return t}},coreMjmlView:{render:function(){return this.el.innerHTML=this.getTemplateFromMjml(),this}}};!function(t,e){var n=e.dc,r=e.coreMjmlView,o=e.coreMjmlModel,i="mj-video",a=n.getType("mj-raw"),s=a.model,l=a.view,c='<tr><td style="{{style-attr}}"><table style="width: 100%;height:100%;"><tr><td style="width:100%;height:100%;background-image: url(\'{{poster}}\');background-size: 100% 100%;background-repeat: no-repeat;text-align:center;"><a href="{{video-src}}" title="" target="_blank"><img src="https://www.freeiconspng.com/uploads/play-button-icon-png-15.png" style="height: 75px; margin: auto;" /></a></td></tr></table></td></tr>',u=["height","border","border-width","border-style","border-color","background-color","padding","padding-top","padding-left","padding-right","padding-bottom"],p=function(t){var e="";for(var n in t){var r=t[n];u.includes(n)&&r&&(e+="".concat(n,":").concat(r,";"))}var o=t.poster,i=t["video-src"];if(void 0!==Oy(o)&&""!==o){return c.replaceAll("{{style-attr}}",e).replaceAll("{{poster}}",o).replaceAll("{{video-src}}",void 0!==i?i:"#")}return""};n.addType(i,{isComponent:Cm(i),model:Ty(Ty({},o),{},{defaults:Ty(Ty({},s.prototype.defaults),{},{name:"Video",draggable:"[data-gjs-type=mj-column]",droppable:!1,content:c,stylable:u,"style-default":{height:"300px","padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px"},traits:[{type:"url",label:"Thumbnail",name:"poster",placeholder:"eg. https://yourdomainname.com/video/poster.jpg"},{type:"url",label:"Link",name:"video-src",placeholder:"eg. https://yourdomainname.com/video.mp4"}]}),toHTML:function(){var t=this.getMjmlAttributes(),e="<mj-raw>";return(e+=p(t))+"</mj-raw>"}}),view:Ty(Ty(Ty({},l.prototype.defaults),r),{},{init:function(t){var e=t.model;this.listenTo(e,"change:attributes",this.render)},tagName:"tr",attributes:{style:"pointer-events: all;"},getTemplateFromMjml:function(){var t=this.model.getMjmlAttributes();return p(t)}})})}(0,s),r={propsCustomCode:{},placeholderContent:"<span>Insert here your custom code</span>",toolbarBtnCustomCode:{},modalTitle:"Insert your code",codeViewOptions:{},buttonLabel:"Save",commandCustomCode:{}},o=(n=s.dc).getType("mj-raw"),i=o.model,o.view,a="custom-code-plugin__code",n.addType("mj-custom-code",{model:{defaults:Py(Py({},i.prototype.defaults),{},{name:"Custom Code",editable:!0,draggable:"[data-gjs-type=mj-column]",droppable:!1}),init:function(){this.listenTo(this,"change:".concat(a),this.onCustomCodeChange);var t=this.get(a)||r.placeholderContent;!this.components().length&&this.components(t);var e=this.get("toolbar"),n="custom-code";r.toolbarBtnCustomCode&&!e.filter((function(t){return t.id===n})).length&&e.unshift(Py({id:n,command:"custom-code:open-modal",label:'<svg viewBox="0 0 24 24">\n              <path d="M14.6 16.6l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4m-5.2 0L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4z"></path>\n            </svg>'},r.toolbarBtnCustomCode))},toHTML:function(){var t=this.get(a);return t?'<mj-raw><tr><td><div style="all:initial;font:initial;margin:initial;padding:initial;color:initial;">'.concat(t,"</div></td></tr></mj-raw>"):""},onCustomCodeChange:function(){this.components(this.get(a))}},isComponent:function(){return!1},view:{events:{dblclick:"onActive"},tagName:"tr",init:function(){this.listenTo(this.model.components(),"add remove reset",this.onComponentsChange),this.onComponentsChange()},onComponentsChange:function(){var t=this;e&&clearInterval(e),e=setTimeout((function(){var e=t.model,n=1;(e.get(a)||"").indexOf("<script")>=0&&(t.el.innerHTML=r.placeholderScript,n=0),e.set({droppable:n})}),0)},onActive:function(){var t=this.model;this.em.get("Commands").run("custom-code:open-modal",{target:t})}}}),function(t,e){var n=e.dc,r=e.coreMjmlView,o=e.coreMjmlModel,i=n.getType("mj-raw"),a=i.model,s=i.view,l=[],c={};n.addType("es-survey",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es-survey"))return{type:"es-survey"}},model:Dy(Dy({},o),{},{defaults:Dy(Dy({},a.prototype.defaults),{},{name:"Survey",draggable:"[data-gjs-type=mj-column]",droppable:!1,content:"<tr><td style=\"{{style-attr}}\"><table style=\"width: 100%;height:100%;\"><tr><td>{{campaign.survey | type='' , message=''}}{{/campaign.survey}}</td></tr></table></td></tr>",stylable:l,classes:["es-survey"],"style-default":Iy({"padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px"},"padding-bottom","1.2rem"),"survey-type":"like_dislike","survey-message":ig_es_campaign_editor_data.i18n.survey_block_default_thank_you_text,traits:[{type:"select",label:ig_es_campaign_editor_data.i18n.survey_type_field_label,name:"survey-type",options:[{id:"like_dislike",name:"like/dislike"},{id:"yes_no",name:"yes/no"}],changeProp:1},{type:"textarea",label:ig_es_campaign_editor_data.i18n.survey_message_field_label,name:"survey-message",changeProp:1}]}),init:function(){var t=this;this.on("change:survey-type",(function(){var e=t.get("survey-type");t.collection.indexOf(),t.get("components").each((function(n){if(n.getClasses().includes("survey-options"))if("yes_no"==e){var r;r=c.hasOwnProperty("yes_no")?c.yes_no:'<mj-section class="survey-options" background-color="#ffffff" padding-top="0px" padding-bottom="0px">\n                <mj-group>\n                  <mj-column> \n                    <mj-button href="{{campaign_survey_yes_url}}" align="right" padding-top="0px" padding-bottom="0px" padding-right="5px" padding-left="5px">\n                      Yes\n                    </mj-button>\n                  </mj-column>\n                  <mj-column>\n                    <mj-button href="{{campaign_survey_no_url}}" align="left" padding-top="0px" padding-bottom="0px" padding-right="5px" padding-left="5px">\n                      No\n                    </mj-button>\n                  </mj-column>\n                </mj-group>\n              </mj-section>',n.replaceWith(r),c.like_dislike=n}else{var o;c.yes_no=n,o=c.hasOwnProperty("like_dislike")?c.like_dislike:'<mj-section class="survey-options" background-color="#ffffff" padding-top="0px" padding-bottom="0px">\n                <mj-group>\n                  <mj-column> \n                    <mj-image  href="{{campaign_survey_like_url}}" width="36px" height="36px" src="'.concat(ig_es_campaign_editor_data.plugin_url,'pro/assets/images/like-icon.png" align="right" padding-top="0px" padding-bottom="0px" padding-right="5px" padding-left="5px"></mj-image>\n                  </mj-column>\n                  <mj-column>\n                    <mj-image  href="{{campaign_survey_dislike_url}}" width="36px" height="36px" src="').concat(ig_es_campaign_editor_data.plugin_url,'pro/assets/images/dislike-icon.png" align="left" padding-top="0px" padding-bottom="0px" padding-right="5px" padding-left="5px"></mj-image>\n                  </mj-column>\n                </mj-group>\n              </mj-section>'),n.replaceWith(o)}t.view.render()}))}))},updated:function(){this.view.render()},postRender:function(){var t=this.getTrait("survey-message"),e=this.get("survey-message");t&&e&&(t.el.value=e)},toHTML:function(t){var e=this.getMjmlAttributes();for(var n in e){var r=e[n];l.includes(n)&&r&&"".concat(n,":").concat(r,";")}var o=this.get("survey-message"),i=this.get("survey-type"),a="";this.get("components").each((function(t){t.getClasses().includes("survey-heading")&&(a=t.view.el.textContent.trim())})),i=void 0!==i?i:"yes_no",o=void 0!==o?o:"Thank you for your response.",e["survey-message"]=o,e["survey-type"]=i;var s="";return this.get("components").each((function(t){s+=t.toHTML()})),"<mj-section><mj-text><span style='display:none'>{{ campaign.survey | type:'"+i+"', message:'"+o+"', heading:'"+a+"' }}</span></mj-text>"+s+'<mj-text><span style="display:none">{{/campaign.survey}}</span></mj-text></mj-section>'},generateHtml:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.view.el;return t.innerHTML=this.attributes.template,t}}),view:Dy(Dy(Dy({},s.prototype.defaults),r),{},{init:function(t){var e=t.model;this.listenTo(e,"change:survey-type",this.render),this.listenTo(e,"change:survey-message",this.render)},loadType:function(t,e){"yes_no"===t?e.innerHTML='\n            <div class="survey-option">Yes</div>\n            <div class="survey-option">No</div>\n          ':"like_dislike"===t&&(e.innerHTML='\n            <div class="survey-option">Like</div>\n            <div class="survey-option">Dislike</div>\n          ')},render:function(t){return this.renderAttributes(),this.modelOpt.temporary||(this.renderChildren(),this.updateScript(),this.el.__gjsv=this,this.postRender()),this},tagName:"tr",attributes:{style:"pointer-events: all;","survey-heading":""}})})}(0,s),function(t,e){var n=e.dc,r=e.coreMjmlView,o=e.coreMjmlModel,i=n.getType("mj-raw"),a=i.model,s=i.view;n.addType("es-posts",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es-posts"))return{type:"es-posts"}},model:Uy(Uy({},o),{},{defaults:Uy(Uy({},a.prototype.defaults),{},{name:"Posts",draggable:"[data-gjs-type=mj-column]",droppable:!1,stylable:[],classes:["es-posts"],"style-default":Hy({"padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px"},"padding-bottom","1.2rem"),"post-category":"all","post-categories":[],"post-count":1,"custom-post-types":[],"custom-post-types-terms":{},"sorting-order":"descending","content-alignment":"left",traits:function(t){var e=[{type:"select",label:__("Post category","email-subscribers"),name:"post-category",options:[{id:"none",name:__("None","email-subscribers")},{id:"all",name:__("All","email-subscribers")},{id:"custom",name:__("Custom","email-subscribers")}],changeProp:1}];if("pro"===ig_es_main_js_data.es_plan){var n={type:"number",label:__("Number of posts","email-subscribers"),name:"post-count",changeProp:1,min:1};e.splice(0,0,n)}if("custom"===t.get("post-category")){var r=e.findIndex((function(t){return"post-category"===t.name}));if(r>-1){var o=t.getPostCategoriesTrait();e.splice(r+1,0,o)}}if(Object.keys(ig_es_main_js_data.post_types_name).length>0){var i=e.findIndex((function(t){return"post-categories"===t.name}));-1===i&&(i=e.findIndex((function(t){return"post-category"===t.name})));var a={type:"post-cpt",label:__("Post types","email-subscribers"),name:"custom-post-types",options:My(Object.keys(ig_es_main_js_data.post_types_name).map((function(t){return{id:t,name:ig_es_main_js_data.post_types_name[t]}}))),changeProp:1};e.splice(i+1,0,a)}var s=t.get("post-count");if("pro"===ig_es_main_js_data.es_plan&&void 0!==s&&parseInt(s)>1){var l=t.getSortingOrderTrait();e.push(l)}return e}}),init:function(){this.registerToolbarCommands(),this.addTitleToToolbarItems(),this.on("change:post-format",this.handleFormatChange),this.on("change:post-category",this.handleCategoryChange),this.on("change:post-count",this.handlepostCountChange)},registerToolbarCommands:function(){this.registerResetPostFormatCommand(),this.registerBlockManagerCommand()},registerBlockManagerCommand:function(){var t=this,e="block-manager",n=this.get("toolbar");n.filter((function(t){return t.id===e})).length||n.unshift({id:e,command:function(){t.showBlockManager()},label:xm.show_blocks,attributes:{title:"Show Block Manager"}})},showBlockManager:function(){t.trigger("show_es_dnd_block_manager")},registerResetPostFormatCommand:function(){var t=this,e="reset-post-format",n=this.get("toolbar");n.filter((function(t){return t.id===e})).length||n.unshift({id:e,command:function(){t.resetPostFormat()},label:xm.postFormat,attributes:{title:"Reset Post Format"}})},resetPostFormat:function(){this.set("post-format","")},addTitleToToolbarItems:function(){var t=this.get("toolbar");t.forEach((function(t){"tlb-move"===t.command&&(t.attributes=Uy(Uy({},t.attributes),{},{title:"Move"})),"tlb-clone"===t.command&&(t.attributes=Uy(Uy({},t.attributes),{},{title:"Clone"})),"tlb-delete"===t.command&&(t.attributes=Uy(Uy({},t.attributes),{},{title:"Delete"})),"tlb-move-up"===t.command&&(t.attributes=Uy(Uy({},t.attributes),{},{title:"Move Up"}))})),this.set("toolbar",t)},handleFormatChange:function(){var e=this,n=this.get("post-format");n&&this.get("components").each((function(t){if(t.getClasses().includes("post-format-content")){var r=e.getPostFormatDefaultContent(n);t.replaceWith(r)}}));var r=t.getWrapper().find(".es-posts")[0];r&&t.select(r)},handleCategoryChange:function(t){"custom"===t.get("post-category")?this.addPostCategoriesTrait(t):t.removeTrait("post-categories")},addPostCategoriesTrait:function(t){var e=this.calculatePostCategoriesTraitIndex(t.get("traits"));if(e>-1){var n=this.getPostCategoriesTrait();t.addTrait(n,{at:e})}},calculatePostCategoriesTraitIndex:function(t){var e=t.findIndex((function(t){return"post-category"===t.props().name}));return e>-1?e+1:-1},getPostCategoriesTrait:function(){return{type:"select2",name:"post-categories",options:[{id:"",name:__("Select","email-subscribers")}].concat(My(Object.keys(ig_es_main_js_data.post_categories).map((function(t){return{id:t,name:ig_es_main_js_data.post_categories[t]}})))),changeProp:1}},handlepostCountChange:function(t){var e=t.get("post-count");parseInt(e)>1?this.addSortingOrderTrait(t):this.removeTrait("sorting-order")},addSortingOrderTrait:function(t){var e=t.get("traits").length,n=this.getSortingOrderTrait();t.addTrait(n,{at:e})},getSortingOrderTrait:function(){return{type:"radio",label:__("Sorting order","email-subscribers"),name:"sorting-order",options:[{id:"descending",name:__("Newest First","email-subscribers")},{id:"ascending",name:__("Oldedst First","email-subscribers")}],changeProp:1}},getPostFormatDefaultContent:function(t){var e='<mj-section class="post-format-content" background-color="#ffffff" padding-top="0px" padding-bottom="0px">';switch(t){case"blank":e+=this.getBlankFormatContent();break;case"title_date":e+=this.getTitleDateFormatContent();break;case"title_excerpt":e+=this.getTitleExcerptFormatContent();break;case"title_date_excerpt":e+=this.getTitleDateExcerptFormatContent();break;case"image_date_excerpt":e+=this.getImageDateExcerptFormatContent()}return e+"</mj-section>"},getBlankFormatContent:function(){return'<style type="text/css">table:empty { height: 70px; border: 1px dotted #ccc }</style><mj-group>\n            <mj-column width="100%"></mj-column>\n        </mj-group>'},getTitleDateFormatContent:function(){return'<mj-group>\n            <mj-column width="100%">\n              <mj-text align="center" font-size="30px" line-height="36px">\n                {{post.title}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.date}}\n              </mj-text>\n              <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n                Read More\n              </mj-button>\n            </mj-column>\n        </mj-group>'},getTitleExcerptFormatContent:function(){return'<mj-group>\n            <mj-column width="100%">\n              <mj-text align="center" font-size="30px" line-height="36px">\n                {{post.title}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.excerpt}}\n              </mj-text>\n              <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n                Read More\n              </mj-button>\n            </mj-column>\n        </mj-group>'},getTitleDateExcerptFormatContent:function(){return'<mj-group>\n            <mj-column width="100%">\n              <mj-text align="center" font-size="30px" line-height="36px">\n                {{post.title}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.date}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.excerpt}}\n              </mj-text>\n              <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n                Read More\n              </mj-button>\n            </mj-column>\n        </mj-group>'},getImageDateExcerptFormatContent:function(){return'<mj-group>\n            <mj-column width="100%">\n              <mj-text align="center" font-size="30px" line-height="36px">\n                {{post.image}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.date}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.excerpt}}\n              </mj-text>\n              <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n                Read More\n              </mj-button>\n            </mj-column>\n        </mj-group>'},handlePostDataChange:function(){},updated:function(){this.view.render()},toHTML:function(t){var e=this.get("post-format");if(void 0===e||""===e)return"";var n="";return this.get("components").each((function(t){n+=t.toHTML()})),"<mj-section><mj-text><span style='display:none'>{{campaign.posts}}</span></mj-text>"+n+'<mj-text><span style="display:none">{{/campaign.posts}}</span></mj-text></mj-section>'}}),view:Uy(Uy(Uy({},s.prototype.defaults),r),{},{init:function(t){var e=t.model;this.listenTo(e,"change:post-format",this.render),this.listenTo(e,"change:post-category",this.render),this.listenTo(e,"change:post-categories",this.render),this.listenTo(e,"change:post-count",this.render),this.model.set()},render:function(t){return this.renderAttributes(),this.modelOpt.temporary||(this.renderChildren(),this.updateScript(),this.el.__gjsv=this,this.postRender()),this},previewRendered:!1,onRender:function(){this.model.get("post-format")||(this.showAvailablePostFormats(),this.registerChangePostFormatClickHandlers())},showPreview:function(){var t=this;if(!this.previewRendered){var e=this.el.querySelector(".post-format-content").innerHTML;if(""!==e){var n={postCount:this.model.get("post-count"),postCategory:this.model.get("post-category")};this.fetchBlockPreview(e,n).then((function(e){e.success?(t.el.querySelector(".post-format-content").innerHTML=e.data.content,t.previewRendered=!0):alert(__("Failed to fetch preview for block posts.","email-subscribers"))}))}}},showAvailablePostFormats:function(){var t=[{name:"blank",label:__("Start Blank","email-subscirbers"),icon:xm.blankPostFormat},{name:"title_date",label:__("Title & Date","email-subscirbers"),icon:xm.titleDatePostFormat},{name:"title_excerpt",label:__("Title & Excerpt","email-subscirbers"),icon:xm.titleExcerptPostFormat},{name:"title_date_excerpt",label:__("Title, Date & Excerpt","email-subscirbers"),icon:xm.titleDateExcerptPostFormat},{name:"image_date_excerpt",label:__("Image, Date & Excerpt","email-subscirbers"),icon:xm.imageDateExcerptPostFormat}];this.el.innerHTML='<style type="text/css">\n                                  #post-format-selection-wrapper {\n                                    padding: 10px 15px 25px;\n                                  }\n\n                                  .row {\n                                    display: flex;\n                                    flex-wrap: wrap;\n                                  }\n                                  \n                                  .col {\n                                    flex: 1 0 18%;\n                                    margin: 5px;\n                                    color: #000;\n                                    border: 1px solid #ECECEC;\n                                    cursor: pointer;\n                                    border-radius: 5px;\n                                  }\n                                  .heading {\n                                    font-family: \'Inter\';\n                                    font-weight: normal;\n                                    font-size: 17px;\n                                    color: #1c1b1e;\n                                    text-align: center;\n                                  }\n                                  .post-format {\n                                    font-size: 15px;\n                                    text-align: center;\n                                    padding: 1rem 0.5rem;\n                                  }\n                                  .post-format-label {\n                                    font-size: 12px;\n                                    font-family: \'Inter\';\n                                  }\n                                </style>\n                                <div id="post-format-selection-wrapper">\n                                <h2 class="heading">'.concat(__("Select a format for the post from below variations","email-subscribers"),'</h2>\n                                <div class="row">\n                                  ').concat(t.map((function(t){return'<div class="col post-format" data-post-format="'.concat(t.name,'">\n                                      <div class="post-format-icon">\n                                        ').concat(t.icon,'\n                                      </div>\n                                      <div class="post-format-label">\n                                        ').concat(t.label,"\n                                      </div>\n                                    </div>")})),"\n                                </div>\n                              </div>")},registerChangePostFormatClickHandlers:function(){var t=this;this.el.querySelectorAll(".post-format").forEach((function(e){e.addEventListener("click",(function(){var n=e.dataset.postFormat;t.model.set("post-format",n)}))}))},fetchBlockPreview:function(t,e){var n=ig_es_js_data.security,r=ajaxurl+"?action=icegram-express",o=new FormData,i={data:{postsBlockContent:t,postsBlockSetting:e},security:n,handler:"campaign",method:"get_posts_block_preview",responseType:"json"};return this.appendNestedJSONToFormData(o,i),m.request({url:r,method:"POST",params:{action:"icegram-express"},body:o})},appendNestedJSONToFormData:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";for(var r in e)if(e.hasOwnProperty(r)){var o=n?"".concat(n,"[").concat(r,"]"):r;"object"===Ry(e[r])?this.appendNestedJSONToFormData(t,e[r],o):t.append(o,e[r])}},tagName:"tr",attributes:{style:"pointer-events: all;"}})}),"undefined"!=typeof ig_es_campaign_editor_data&&ig_es_campaign_editor_data.postTags.forEach((function(t){!function(t){var e="es-"+t.keyword.replace(".","-");n.addType(e,{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes(e))return{type:e}},extend:"mj-text",model:{defaults:{draggable:".es-posts, .es-posts *"}}})}(t)}))}(t,s),function(t,e){var n=e.dc,r=e.coreMjmlView,o=e.coreMjmlModel,i=n.getType("mj-raw"),a=i.model,s=i.view;function l(t){var e=ig_es_js_data.security,n=ajaxurl+"?action=icegram-express";return m.request({url:n,method:"POST",params:{action:"icegram-express",handler:"campaign",method:"get_posts_by_post_type",responseType:"json",security:e,data:{postsType:t}}})}n.addType("es-broadcast-posts",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es-broadcast-posts"))return{type:"es-broadcast-posts"}},model:$y($y({},o),{},{defaults:$y($y({},a.prototype.defaults),{},{name:"Posts",draggable:"[data-gjs-type=mj-column]",droppable:!1,stylable:[],classes:["es-broadcast-posts"],"style-default":Xy({"padding-top":"10px","padding-bottom":"10px","padding-right":"25px","padding-left":"25px"},"padding-bottom","1.2rem"),"post-count":1,post:[],"post-formats":[],"custom-post-types":[],"custom-post-types-terms":{},"content-alignment":"left",traits:function(t){var e=[];if(Object.keys(ig_es_main_js_data.post_types_name).length>0){var n={type:"select2",label:__("Post types","email-subscribers"),name:"custom-post-types",options:Gy(Object.keys(ig_es_main_js_data.post_types_name).map((function(t){return{id:t,name:ig_es_main_js_data.post_types_name[t]}}))),changeProp:1};e.splice(0,0,n)}var r={type:"radio-icon",label:__("Post Formats","email-subscribers"),name:"post-formats",options:[{id:"title_date",name:"Title Date",icon:xm.titleDatePostFormat},{id:"title_excerpt",name:"Title Excerpt",icon:xm.titleExcerptPostFormat},{id:"title_date_excerpt",name:"Title Date & Excerpt",icon:xm.titleDateExcerptPostFormat},{id:"image_date_excerpt",name:"Image Date & Excerpt",icon:xm.imageDateExcerptPostFormat}],changeProp:1};return e.splice(2,0,r),e}}),init:function(){this.registerToolbarCommands(),this.addTitleToToolbarItems(),this.on("change:custom-post-types",this.handlePostTypeChange),this.on("change:post-formats",this.handleFormatChange),this.on("change:post",this.handlePostChange),t.on("component:selected",this.handlePostComponentSelected)},handlePostComponentSelected:function(t){if("es-broadcast-posts"===t.get("type")){var e=t.get("custom-post-types");void 0!==e&&t.loadPostTrait(e).then((function(e){t.addTrait(e,{at:1})})).catch((function(t){console.error(__("Error loading post trait:","email-subscribers"),t)}))}},addTitleToToolbarItems:function(){var t=this.get("toolbar");t.forEach((function(t){"tlb-move"===t.command&&(t.attributes=$y($y({},t.attributes),{},{title:"Move"})),"tlb-clone"===t.command&&(t.attributes=$y($y({},t.attributes),{},{title:"Clone"})),"tlb-delete"===t.command&&(t.attributes=$y($y({},t.attributes),{},{title:"Delete"})),"tlb-move-up"===t.command&&(t.attributes=$y($y({},t.attributes),{},{title:"Move Up"}))})),this.set("toolbar",t)},registerToolbarCommands:function(){this.registerBlockManagerCommand()},registerBlockManagerCommand:function(){var t=this,e="block-manager",n=this.get("toolbar");n.filter((function(t){return t.id===e})).length||n.unshift({id:e,command:function(){t.showBlockManager()},label:xm.show_blocks,attributes:{title:"Show Block Manager"}})},showBlockManager:function(){t.trigger("show_es_dnd_block_manager")},loadPostTrait:function(t){var e=this;return Wy(qy().mark((function n(){var r,o;return qy().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.getPostDetails(t);case 3:return r=n.sent,o={type:"select2",name:"post",label:__("Posts (Maximum post selection is limited to 5.)","email-subscribers"),options:[{id:"",name:__("Select","email-subscribers")}].concat(Gy(r)),changeProp:1},n.abrupt("return",o);case 8:throw n.prev=8,n.t0=n.catch(0),console.error(__("Error loading post trait:","email-subscribers"),n.t0),n.t0;case 12:case"end":return n.stop()}}),n,null,[[0,8]])})))()},handlePostChange:function(t){document.querySelectorAll('input[name="post-formats"]').forEach((function(t){t.checked=!1}))},handlePostTypeChange:function(t){""!=t.get("custom-post-types")?(t.removeTrait("post"),this.addPostTrait(t)):t.removeTrait("post")},addPostTrait:function(t){var e=this.calculatePostTraitIndex(t.get("traits"));e>-1&&this.getPostTrait(t).then((function(n){t.addTrait(n,{at:e})})).catch((function(t){console.error(__("Error getting post trait:","email-subscribers"),t)}))},calculatePostTraitIndex:function(t){var e=t.findIndex((function(t){return"custom-post-types"===t.props().name}));return e>-1?e+1:-1},getPostTrait:function(t){return l(t.get("custom-post-types")).then((function(t){var e=t.map((function(t){return{id:t.ID,name:t.post_title}}));return{type:"select2",name:"post",label:__("Posts (Maximum post selection is limited to 5.)","email-subscribers"),options:[{id:"",name:__("Select","email-subscribers")}].concat(Gy(e)),changeProp:1,maximumSelectionLength:5}})).catch((function(t){throw console.error(__("Error fetching posts:","email-subscribers"),t),t}))},getPostDetails:function(t){return Wy(qy().mark((function e(){var n;return qy().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l(t);case 3:return n=e.sent,e.abrupt("return",n.map((function(t){return{id:t.ID,name:t.post_title}})));case 7:throw e.prev=7,e.t0=e.catch(0),console.error(__("Error fetching posts:","email-subscribers"),e.t0),e.t0;case 11:case"end":return e.stop()}}),e,null,[[0,7]])})))()},handleFormatChange:function(t){var e=this,n=t.view.el.querySelector("#loader");n&&(n.style.display="block");var r=this.get("post-formats"),o=t.get("post");if(void 0===r||""===r)return alert(__("Please select the post format:","email-subscribers")),!1;if(o&&o.length>5)return alert(__("(Maximum post selection is limited to 5.):","email-subscribers")),!1;if(r&&o){var i='<mj-section class="post-format-content" background-color="#ffffff" padding-top="0px" padding-bottom="0px">';this.get("components").each((function(n){n.getClasses().includes("post-format-content")&&(i+=e.getPostFormatDefaultContent(r),function(t,e){var n=ig_es_js_data.security,r=ajaxurl+"?action=icegram-express";return m.request({url:r,method:"POST",params:{action:"icegram-express",handler:"campaign",method:"replace_posts_blocks",responseType:"json",security:n,data:{postIds:t,innerHTML:e}}})}(o,i).then((function(e){var r=t.view.el.querySelector("#loader");r&&(r.style.display="none"),n.replaceWith(e.data.preview_HTML)})).catch((function(t){throw console.error(__("Error Replacing posts:","email-subscribers"),t),t})))})),i+="</mj-section>"}},getPostFormatDefaultContent:function(t){var e="";switch(t){case"title_date":e+=this.getTitleDateFormatContent();break;case"title_excerpt":e+=this.getTitleExcerptFormatContent();break;case"title_date_excerpt":e+=this.getTitleDateExcerptFormatContent();break;case"image_date_excerpt":e+=this.getImageDateExcerptFormatContent()}return e},getTitleDateFormatContent:function(){return'<mj-group>\n            <mj-column width="100%">\n              <mj-text align="center" font-size="30px" line-height="36px">\n                {{post.title}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.date}}\n              </mj-text>\n              <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n                Read More\n              </mj-button>\n            </mj-column>\n        </mj-group>'},getTitleExcerptFormatContent:function(){return'<mj-group>\n            <mj-column width="100%">\n              <mj-text align="center" font-size="30px" line-height="36px">\n                {{post.title}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.excerpt}}\n              </mj-text>\n              <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n                Read More\n              </mj-button>\n            </mj-column>\n        </mj-group>'},getTitleDateExcerptFormatContent:function(){return'<mj-group>\n            <mj-column width="100%">\n              <mj-text align="center" font-size="30px" line-height="36px">\n                {{post.title}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.date}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.excerpt}}\n              </mj-text>\n              <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n                Read More\n              </mj-button>\n            </mj-column>\n        </mj-group>'},getImageDateExcerptFormatContent:function(){return'<mj-group>\n            <mj-column width="100%">\n              <mj-text align="center" font-size="30px" line-height="36px">\n                {{post.image}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.date}}\n              </mj-text>\n              <mj-text align="center" line-height="21px" font-size="18px">\n                {{post.excerpt}}\n              </mj-text>\n              <mj-button border-radius="3px 3px 3px 3px" align="center" href="{{post.link_only}}" container-background-color="#ffffff" background-color="#DB7226">\n                Read More\n              </mj-button>\n            </mj-column>\n        </mj-group>'},updated:function(){this.view.render()},toHTML:function(t){var e=this.get("post-formats");if(void 0===e||""===e)return"";var n="";return this.get("components").each((function(t){n+=t.toHTML()})),"<mj-section><mj-text><span style='display:none'>{{campaign.posts}}</span></mj-text>"+n+'<mj-text><span style="display:none">{{/campaign.posts}}</span></mj-text></mj-section>'}}),view:$y($y($y({},s.prototype.defaults),r),{},{init:function(t){t.model,this.model.set()},render:function(t){return this.renderAttributes(),this.modelOpt.temporary||(this.renderChildren(),this.updateScript(),this.el.__gjsv=this,this.postRender()),this},onRender:function(){this.addLoader()},addLoader:function(){this.el.innerHTML='<div id="loader" class="absolute w-full mt-48 flex flex-col justify-center items-end space-y-4 z-50" style="width: 70px;\n        height: 70px;\n        left: 50%;\n        position: absolute;\n        transform: translate(-50%, 0);\n        display: none;">\n        <div class="text-lg text-gray-600">Loading...</div>\n        <div class="text-indigo-600">\n            <svg xmlns="http://www.w3.org/2000/svg" class="w-16 h-16" stroke="currentColor" fill="none" viewBox="0 0 57 57">\n                <g transform="translate(1 1)" stroke-width="2" fill="none" fill-rule="evenodd">\n                    <circle cx="5" cy="50" r="5">\n                        <animate attributeName="cy" begin="0s" dur="2.2s" values="50;5;50;50" calcMode="linear" repeatCount="indefinite" />\n                        <animate attributeName="cx" begin="0s" dur="2.2s" values="5;27;49;5" calcMode="linear" repeatCount="indefinite" />\n                    </circle>\n                    <circle cx="27" cy="5" r="5">\n                        <animate attributeName="cy" begin="0s" dur="2.2s" from="5" to="5" values="5;50;50;5" calcMode="linear" repeatCount="indefinite" />\n                        <animate attributeName="cx" begin="0s" dur="2.2s" from="27" to="27" values="27;49;5;27" calcMode="linear" repeatCount="indefinite" />\n                    </circle>\n                    <circle cx="49" cy="50" r="5">\n                        <animate attributeName="cy" begin="0s" dur="2.2s" values="50;50;5;50" calcMode="linear" repeatCount="indefinite" />\n                        <animate attributeName="cx" from="49" to="49" begin="0s" dur="2.2s" values="49;5;27;49" calcMode="linear" repeatCount="indefinite" />\n                    </circle>\n                </g>\n            </svg>\n        </div>\n    </div>\n    '},previewRendered:!1,tagName:"tr",attributes:{style:"pointer-events: all;"}})})}(t,s)}var nb=n(109),rb=n.n(nb);function ob(t){return ob="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ob(t)}function ib(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ab(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ib(Object(n),!0).forEach((function(e){sb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ib(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function sb(t,e,n){return(e=function(t){var e=function(t){if("object"!=ob(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ob(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ob(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lb(t){var e=t.required,n=t.placeholder,r=t.type,o=(t.label,t.meta),i=t.slug,a="ig_es_"+i,s="";switch(r){case"text":s+='<input type="text" name="es_custom_field['+i+']" class="es_form_cf '+a+'"  placeholder="'+n+'"',s+="yes"===e?" required":"",s+=' value=""/>';break;case"textarea":s+='<textarea class="form-textarea text-sm" cols="50" name="es_custom_field['+i+']" class="es_form_cf '+a+'" placeholder="'+n+'"',s+="yes"===e?" required":"",s+="></textarea>";break;case"dropdown":s+='<select name="es_custom_field['+i+']" class="es_form_cf '+a+'"',s+="yes"===e?" required>":">",s+='<option value="">Select option</option>',o.values&&o.values.forEach((function(t){s+='<option value="'+t+'">'+t+"</option>"})),s+="</select>";break;case"radio":s+='<table class="ig-es-form-radio-selection"><tbody>',o.values&&o.values.forEach((function(t){s+='<tr><td><input type="radio" name="es_custom_field['+i+']" class="es_form_cf '+a+'" placeholder="'+n+'"',s+="yes"===e?" required":"",s+=' value="'+t+'">',s+=t+"</td></tr>"})),s+="</tbody></table>";break;case"number":s+='<input type="number" name="es_custom_field['+i+']" class="es_form_cf '+a+'" placeholder="'+n+'"',s+="yes"===e?" required":"",s+=' value=""/>';break;case"date":s+='<input type="date" name="es_custom_field['+i+']" class="es_form_cf '+a+'" placeholder="'+n+'"',s+="yes"===e?" required":"",s+=' value=""/>'}return s}function cb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t){t.DomComponents.addType("form-field-container",{extend:"default",isComponent:function(t){return t.className&&"string"==typeof t.className&&t.className.includes("es-form-field-container")},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"}],unstylable:["container-background-color"]}}})}(t),function(t){t.DomComponents.addType("input",{isComponent:function(t){return"INPUT"==t.tagName},model:{defaults:{tagName:"input",toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],traits:["placeholder",{type:"checkbox",name:"required"}],attributes:{type:"text",required:!0},stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","background-color","color","vertical-align"]}}})}(t),function(t){var e=t.DomComponents,n=e.getType("default").view;e.addType("es-text",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es-text"))return{type:"es-text"}},model:{defaults:{editable:!0,required:!1,toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","background-color","color","vertical-align"],unstylable:["container-background-color"]},toHTML:function(){return'<div class="es-text"><mj-text line-height="26px">Your content...</mj-text></div>'}},view:n.extend({onRender:function(){this.el.innerHTML='<div class="es-text"><mj-text line-height="26px">Your content...</mj-text></div>'}})})}(t),function(t){t.DomComponents.addType("email",{extend:"input",isComponent:function(t){return t.className&&"string"==typeof t.className&&t.className.includes("es-email")},model:{defaults:{traits:[{name:"placeholder"}],attributes:{type:"email",required:!0,class:"es-email",name:"esfpx_email",autocomplete:"off",placeholder:"Enter your email"},toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"}]}}})}(t),function(t){t.DomComponents.addType("name",{extend:"input",isComponent:function(t){return t.className&&"string"==typeof t.className&&t.className.includes("es-name")},model:{defaults:{attributes:{type:"text",name:"esfpx_name",autocomplete:"off",placeholder:"Enter your name",class:"es-name"},traits:[{type:"checkbox",name:"required"},{name:"placeholder"}],toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],stylable:["icon-size","text-decoration","align","font-family","font-size","line-height","padding","padding-top","padding-left","padding-right","padding-bottom","border-radius","border-top-left-radius","border-top-right-radius","border-bottom-left-radius","border-bottom-right-radius","background-color","color","vertical-align","border"]}}})}(t),void 0!==e.lists&&function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.DomComponents,r=n.getType("default").view;n.addType("es-list",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es-list"))return{type:"es-list"}},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],traits:[{type:"multiselect",label:"Select list",name:"es-list",changeProp:1,options:e.lists.map((function(t){return{id:t.id,name:t.name}})),typeid:0}],unstylable:["container-background-color"]},toHTML:function(){var t,n=this.get("es-list");Array.isArray(n)||(n=[n]);var r=e.lists.filter((function(t){return n.includes(t.id)})),o='<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es-list">');return r.forEach((function(t){o+='<div><label><input type="checkbox" class="pl-6 form-checkbox " name="esfpx_lists[]" value="'.concat(t?t.hash:"",'"><span>').concat(t?t.name:"","</span></label></div>")})),o+="</div>"}},view:r.extend({init:function(t){var e=t.model;this.listenTo(e,"change:es-list",this.render)},onRender:function(){var t=this.model.get("es-list");void 0===t?t=e.lists[0].id:Array.isArray(t)||(t=[t]);var n=e.lists.filter((function(e){return t.includes(e.id)})),r='<div class="es-list">';n.forEach((function(t){r+='<div><label><input type="checkbox" class="pl-6 form-checkbox " name="esfpx_lists[]" value="'.concat(t?t.hash:"",'"><span>').concat(t?t.name:"","</span></label></div>")})),r+="</div>",this.el.innerHTML=r}})})}(t,e),function(t){var e=t.DomComponents,n=e.getType("default").view;e.addType("es-captcha",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es_captcha"))return{type:"es-captcha"}},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],captcha_text:"Are You a Human?",traits:[{type:"text",label:"Captcha text",name:"captcha_text",changeProp:1}]},toHTML:function(){var t,e=this.get("captcha_text");return'<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es_captcha es-field-wrap"><label>').concat(e," [es_captcha_field]</label></div>")}},view:n.extend({init:function(t){var e=t.model;this.listenTo(e,"change:captcha_text",this.render)},onRender:function(){var t,e=this.model.get("captcha_text"),n='<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es_captcha es-field-wrap"><label>').concat(e,' 3 + 7 = <br/><input class="es_form_field es_captcha_input" name="esfpx_es_captcha" type="number"><input class="es_form_field es_captcha_key" value="Nzq5OPUwj1" name="esfpx_es_captcha_key" type="hidden"></label></div>');this.el.innerHTML=n}})})}(t),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.DomComponents,r=n.getType("default").view,o=e.siteURL;n.addType("es-gdpr",{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes("es_gdpr"))return{type:"es-gdpr"}},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],gdpr_text:'Please read our <a href="'+o+'">terms and conditions</a>',traits:[{type:"text",label:"GDPR text",name:"gdpr_text",changeProp:1}],unstylable:["container-background-color"]},toHTML:function(){var t,e=this.get("gdpr_text");return'<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es_gdpr"><label><input type="checkbox" name="es_gdpr_consent" value="true" required="required"/>').concat(e,"</label></div>")}},view:r.extend({init:function(t){var e=t.model;this.listenTo(e,"change:gdpr_text",this.render)},onRender:function(){var t,e=this.model.get("gdpr_text"),n='<div id="'.concat(null===(t=this.attributes)||void 0===t||null===(t=t.attributes)||void 0===t?void 0:t.id,'" class="es_gdpr"><label><input type="checkbox" name="es_gdpr_consent" value="true" required="required"/>').concat(e,"</label></div>");this.el.innerHTML=n}})})}(t,e),function(t){t.DomComponents.addType("submit",{extend:"input",isComponent:function(t){return"INPUT"==t.tagName&&"submit"==t.type},model:{defaults:{copyable:!1,removable:!1,attributes:{type:"submit",name:"es-submit",value:"Subscribe"},traits:[{name:"value",label:"Button text"}],toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"}],unstylable:["container-background-color"]}}})}(t),void 0!==e.customFields&&e.customFields.forEach((function(e){!function(t,e){var n=t.DomComponents,r=n.getType("default").view,o=e.slug,i=e.type,a=e.label,s="es-"+o,l=!1;["text","textarea","email","number","password","tel"].indexOf(i)>-1&&(l=!0);var c=[{label:"Required",type:"checkbox",name:"required",changeProp:1,valueTrue:"yes",valueFalse:"no"}];l&&c.push({label:"Placeholder",type:"text",name:"placeholder",changeProp:1}),n.addType(s,{isComponent:function(t){if(t.className&&"string"==typeof t.className&&t.className.includes(s))return{type:s}},model:{defaults:{toolbar:[{attributes:{class:"fa fa-arrows"},command:"tlb-move"},{attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}],placeholder:"Enter "+a,required:!1,traits:c},toHTML:function(){var t=this.get("required"),n="";return l&&(n=this.get("placeholder")),lb(e=ab(ab({},e),{},{required:t,placeholder:n}))}},view:r.extend({init:function(t){var e=t.model;this.listenTo(e,"change:placeholder",this.render),this.listenTo(e,"change:required",this.render)},onRender:function(){var t=this.model.get("required"),n="";l&&(n=this.model.get("placeholder"));var r=lb(e=ab(ab({},e),{},{required:t,placeholder:n}));this.el.innerHTML=r}})})}(t,e)}))}function ub(t){return ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ub(t)}function pb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function db(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,hb(r.key),r)}}function fb(t,e,n){return(e=hb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function hb(t){var e=function(t){if("object"!=ub(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=ub(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ub(e)?e:e+""}var gb=function(){return t=function t(e,n,r,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),fb(this,"editor",void 0),fb(this,"saveUrl",void 0),fb(this,"loadUrl",void 0),fb(this,"container",void 0),fb(this,"onSelectComponent",void 0),fb(this,"isPro",void 0),this.loadUrl=n,this.saveUrl=e,this.container=r,this.onSelectComponent=o,this.isPro=i;var a=[vm(),bm(),xy,eb],s=fb(fb({},vm(),{resetBlocks:!0}),bm(),{options:{toolbarGroups:[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard","undo"]},{name:"editing",groups:["find","selection","spellchecker","editing"]},{name:"forms",groups:["forms"]},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align","bidi","paragraph"]},{name:"links",groups:["links"]},{name:"insert",groups:["insert"]},{name:"styles",groups:["styles"]},{name:"colors",groups:["colors"]},{name:"tools",groups:["tools"]},{name:"others",groups:["others"]},{name:"about",groups:["about"]}],removeButtons:"Source,Save,Templates,NewPage,ExportPdf,Preview,Print,Cut,Copy,Paste,PasteText,PasteFromWord,Undo,Redo,Replace,Find,SelectAll,Scayt,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,BidiLtr,BidiRtl,Language,Anchor,Image,Table,HorizontalRule,Smiley,SpecialChar,PageBreak,Iframe,Maximize,ShowBlocks,About,JustifyLeft,JustifyCenter,JustifyRight,JustifyBlock,FontSize,Styles,Format,Font,Outdent,Indent",extraPlugins:"colorbutton,colordialog",colorButton_enableMore:!0,colorButton_enableAutomatic:!1,versionCheck:!1}});if("form"===window.esPage){a=[rb(),cb,vm(),bm(),xy];var l={};"undefined"!=typeof ig_es_form_editor_data&&(void 0!==ig_es_form_editor_data.site_url&&(l.siteURL=ig_es_form_editor_data.site_url),void 0!==ig_es_form_editor_data.lists&&(l.lists=ig_es_form_editor_data.lists),void 0!==ig_es_form_editor_data.custom_fields&&(l.customFields=ig_es_form_editor_data.custom_fields)),s=fb(fb(fb(fb({},vm(),{blocks:[]}),bm(),function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pb(Object(n),!0).forEach((function(e){fb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},{base:{bold:!0,italic:!0,underline:!0,strikethrough:!0,link:!1},fonts:{fontSize:!0},format:{heading1:!0,heading2:!0,paragraph:!1,clearFormatting:!1},list:!1,align:!1})),rb(),{blocks:["column1"]}),cb,l)}this.editor=gm.init({container:this.container,noticeOnUnload:0,fromElement:1,height:"100%",width:"auto",storageManager:!1,assetManager:{},plugins:a,pluginsOpts:s,blockManager:{custom:!0},selectorManager:{componentFirst:1},panels:{defaults:[]},styleManager:{custom:!0},traitManager:{appendTo:"#gj-settings-container"},colorPicker:{appendTo:"parent",offset:{top:26,left:-176,background:"#ffffff"}},canvas:{}}),this.handleBlocks(),this.handlePanels(),this.handleComponents(),this.handleStyleManager(),this.handleTraitsManager(),this.handleStorageManager(),this.handleRTE()},(e=[{key:"handleBlocks",value:function(){new Bm(this.editor)}},{key:"handlePanels",value:function(){new Ym(this.editor)}},{key:"handleStyleManager",value:function(){new oy(this.editor)}},{key:"handleTraitsManager",value:function(){new ly(this.editor)}},{key:"handleStorageManager",value:function(){new hy(this.editor)}},{key:"handleRTE",value:function(){new yy(this.editor)}},{key:"handleComponents",value:function(){new Jv(this.editor,this.onSelectComponent)}},{key:"getEditor",value:function(){return this.editor}}])&&db(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();const mb=gb;var vb=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"blocks",e=document.getElementById("bs-container");wm("gj-design-container","none","id"),wm("gj-blocks-container","none","id"),"blocks"===t?(wm("gj-blocks-container","block","id"),e.style.height="630px"):"design"===t?(wm("gj-design-container","block","id"),e.style.height="690px"):(wm("gj-settings-container","block","id"),e.style.height="690px")};function yb(t){var e=document.getElementById(t);if(e){var n=e.getAttribute("data-page");e.innerHTML='<div class="es-editor"> \n                         \n                          <div class="es-content"> \n                              <div id="es-email-subscribers"></div>\n                              <div class="es-top-bar"> \n                              <div> \n                             <div id="reset-actions"></div> \n                              </div>\n                              <div> \n                              <div id="resize-devices"></div>\n                              </div>\n                              <div> \n                              <div id="undo-redo-actions"></div> \n                              </div>\n                          </div>\n                          </div>\n                        </div>';var r=e.getAttribute("data-html-textarea-name"),o=e.getAttribute("data-json-textarea-name"),i=document.createElement("textarea");i.setAttribute("id","ig-es-export-html-data-textarea"),i.style.display="none",r&&i.setAttribute("name",r),e.append(i);var a=document.createElement("textarea");a.setAttribute("id","ig-es-export-json-data-textarea"),a.style.display="none",o&&a.setAttribute("name",o),e.append(a),window.esPage=n;var s=new mb("","","#es-email-subscribers",vb);window.esVisualEditor=s.getEditor(),window.esVisualEditor.onReady((function(){var t=new Event("es_drag_and_drop_editor_loaded");document.dispatchEvent(t)}))}}document.addEventListener("DOMContentLoaded",(function(t){yb("ig-es-dnd-builder")})),window.renderESDNDEditor=yb})()})();