/*! For license information please see main.js.LICENSE.txt */ (()=>{var t={176:function(t,e,n){var r;t.exports=(r=n(341),function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{});n(2).default(t,e)}))},function(t,e){t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=t.BlockManager,i=e.blocks,o=e.stylePrefix,a=e.flexGrid,s=e.addBasicStyle,u=o+"row",c=o+"cell",l=a?"\n ."+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 ."+u+" {\n flex-wrap: wrap;\n }\n }":"\n ."+u+" {\n display: table;\n padding: 10px;\n width: 100%;\n }\n @media (max-width: 768px) {\n ."+o+"cell, ."+o+"cell30, ."+o+"cell70 {\n width: 100%;\n display: block;\n }\n }",f=a?"\n ."+c+" {\n min-height: 75px;\n flex-grow: 1;\n flex-basis: 100%;\n }":"\n ."+c+" {\n width: 8%;\n display: table-cell;\n height: 75px;\n }",h="\n ."+o+"cell30 {\n width: 30%;\n }",d="\n ."+o+"cell70 {\n width: 70%;\n }",p={tl:0,tc:0,tr:0,cl:0,cr:0,bl:0,br:0,minDim:1},g=r({},p,{cr:1,bc:0,currentUnit:1,minDim:1,step:.2});a&&(g.keyWidth="flex-basis");var m={class:u,"data-gjs-droppable":"."+c,"data-gjs-resizable":p,"data-gjs-name":"Row"},b={class:c,"data-gjs-draggable":"."+u,"data-gjs-resizable":g,"data-gjs-name":"Cell"};a&&(b["data-gjs-unstylable"]=["width"],b["data-gjs-stylable-require"]=["flex-basis"]);var v=["."+u,"."+c];t.on("selector:add",(function(t){return v.indexOf(t.getFullName())>=0&&t.set("private",1)}));var y=function(t){var e=[];for(var n in t){var r=t[n],i=r instanceof Array||r instanceof Object;r=i?JSON.stringify(r):r,e.push(n+"="+(i?"'"+r+"'":'"'+r+'"'))}return e.length?" "+e.join(" "):""},_=function(t){return i.indexOf(t)>=0},w=y(m),x=y(b);_("column1")&&n.add("column1",{label:e.labelColumn1,category:e.category,attributes:{class:"gjs-fonts gjs-f-b1"},content:"
\n
\n
\n "+(s?"":"")}),_("column2")&&n.add("column2",{label:e.labelColumn2,attributes:{class:"gjs-fonts gjs-f-b2"},category:e.category,content:"
\n
\n
\n
\n "+(s?"":"")}),_("column3")&&n.add("column3",{label:e.labelColumn3,category:e.category,attributes:{class:"gjs-fonts gjs-f-b3"},content:"
\n
\n
\n
\n
\n "+(s?"":"")}),_("column3-7")&&n.add("column3-7",{label:e.labelColumn37,category:e.category,attributes:{class:"gjs-fonts gjs-f-b37"},content:"
\n
\n
\n
\n '+(s?"":"")}),_("text")&&n.add("text",{label:e.labelText,category:e.category,attributes:{class:"gjs-fonts gjs-f-text"},content:{type:"text",content:"Insert your text here",style:{padding:"10px"},activeOnRender:1}}),_("link")&&n.add("link",{label:e.labelLink,category:e.category,attributes:{class:"fa fa-link"},content:{type:"link",content:"Link",style:{color:"#d983a6"}}}),_("image")&&n.add("image",{label:e.labelImage,category:e.category,attributes:{class:"gjs-fonts gjs-f-image"},content:{style:{color:"black"},type:"image",activeOnRender:1}}),_("video")&&n.add("video",{label:e.labelVideo,category:e.category,attributes:{class:"fa fa-youtube-play"},content:{type:"video",src:"img/video2.webm",style:{height:"350px",width:"615px"}}}),_("map")&&n.add("map",{label:e.labelMap,category:e.category,attributes:{class:"fa fa-map-o"},content:{type:"map",style:{height:"350px"}}})}}]))},325: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:()=>c});var n="custom-code-plugin__code",r="custom-code",i="custom-code:open-modal",o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n\n \n \n \n Custom code with <script> can\'t be rendered on the canvas\n ',modalTitle:"Insert your code",codeViewOptions:{},buttonLabel:"Save",commandCustomCode:{}},e);!function(t,e){void 0===e&&(e={});var o,a=t.Components,u=e.toolbarBtnCustomCode;a.addType("script",{view:{onRender:function(){var t=this.model,e=this.el;t.closestType(r)&&(e.innerHTML="")}}}),a.addType(r,{model:{defaults:s({name:"Custom Code",editable:!0,components:{tagName:"span",components:{type:"textnode",content:"Insert here your custom code"}}},e.propsCustomCode),init:function(){this.on("change:".concat(n),this.onCustomCodeChange);var t=this.get(n);!this.components().length&&this.components(t);var e=this.get("toolbar"),r="custom-code";u&&!e.filter((function(t){return t.id===r})).length&&e.unshift(s({id:r,command:i,label:'\n \n '},u))},onCustomCodeChange:function(){this.components(this.get(n))}},view:{events:{dblclick:"onActive"},init:function(){this.listenTo(this.model.components(),"add remove reset",this.onComponentsChange),this.onComponentsChange()},onComponentsChange:function(){var t=this;o&&clearInterval(o),o=setTimeout((function(){var r=t,i=r.model,o=r.el,a=!0;(i.get(n)||"").indexOf("=0&&e.placeholderScript&&(o.innerHTML=e.placeholderScript,a=!1),i.set({droppable:a})}),0)},onActive:function(){var t=this.model;this.em.get("Commands").run(i,{target:t})}}})}(t,c),function(t,e){var n=(void 0===e?{}:e).blockCustomCode,i=t.Blocks;n&&i.add(r,o({label:"Custom Code",media:'\n \n \n \n ',category:"Extra",activate:!0,select:!0,content:{type:r}},n))}(t,c),function(t,e){void 0===e&&(e={});var r=e.modalTitle,o=e.codeViewOptions,s=e.commandCustomCode,u=function(t,e){e instanceof HTMLElement?t.appendChild(e):e&&t.insertAdjacentHTML("beforeend",e)};t.Commands.add(i,a({keyCustomCode:n,target:null,codeViewer:null,run:function(t,e,n){void 0===n&&(n={});var r=n.target||t.getSelected();this.target=r,(null==r?void 0:r.get("editable"))&&this.showCustomCode(r,n)},stop:function(t){t.Modal.close()},showCustomCode:function(e,o){var a=o.title||r,s=e.get(n)||"",u=this.getContent();t.Modal.open({title:a,content:u}).onceClose((function(){return t.stopCommand(i)})),this.getCodeViewer().setContent(s)},getPreContent:function(){},getPostContent:function(){},getContent:function(){var e=this.getCodeViewer(),n=document.createElement("div"),r=t.getConfig("stylePrefix");return n.className="".concat(r,"custom-code"),u(n,this.getPreContent()),n.appendChild(e.getElement()),u(n,this.getPostContent()),u(n,this.getContentActions()),e.refresh(),setTimeout((function(){return e.focus()}),0),n},getContentActions:function(){var n=this,r=document.createElement("button");r.setAttribute("type","button");var i=t.getConfig("stylePrefix");return r.innerHTML=e.buttonLabel,r.className="".concat(i,"btn-prim ").concat(i,"btn-import__custom-code"),r.onclick=function(){return n.handleSave()},r},handleSave:function(){var e=this.target,r=this.getCodeViewer().getContent();null==e||e.set(n,r),t.Modal.close()},getCodeViewer:function(){return this.codeViewer||(this.codeViewer=t.CodeManager.createViewer(a({codeName:"htmlmixed",theme:"hopscotch",readOnly:0},o))),this.codeViewer}},s))}(t,c)};return e})(),t.exports=e()},318:function(t){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([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.__esModule=!0,t.exports.default=t.exports},function(t,e){function n(e){return t.exports=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.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r;window,r=function(){return e=[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){"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){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(119);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(200),i=n(201),o=n(359);t.exports=function(t){var e=i();return function(){var n,i=r(t);return i=e?(n=r(this).constructor,Reflect.construct(i,arguments,n)):i.apply(this,arguments),o(this,i)}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(11),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");return t=i(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 i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e){function n(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},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,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,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}($);try{for(Z.s();!(F=Z.n()).done;){var Q=F.value;(0,j.assignComponents)(Y,Q.components),(0,S.assignDependencies)(X,Q.dependencies)}}catch(e){Z.e(e)}finally{Z.f()}"string"==typeof e&&(e=(0,T.default)(e,{keepComments:z,components:Y,filePath:i,actualPath:K,preprocessors:M,ignoreIncludes:u})),e=(0,C.handleMjml3)(e,{noMigrateWarn:G});var J,tt={backgroundColor:"",breakpoint:"480px",classes:{},classesDefault:{},defaultAttributes:{},htmlAttributes:{},fonts:H,inlineStyle:[],headStyle:{},componentsHeadStyle:[],headRaw:[],mediaQueries:{},preview:"",style:[],title:"",forceOWADesktop:"desktop"===(0,y.default)(e,"attributes.owa","mobile"),lang:(0,y.default)(e,"attributes.lang")},et={components:Y,dependencies:X,initializeType:L.initializeType};switch(f){case"skip":break;case"strict":if(0<(s=(0,S.default)(e,et)).length)throw new B("ValidationError: \n ".concat(s.map((function(t){return t.formattedMessage})).join("\n")),s);break;default:s=(0,S.default)(e,et)}function nt(t,e,n){if(n=2=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.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 A(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(r)return A(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,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(i?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){var o=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/=o=2,s/=2,n/=2}function u(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i)for(var c=-1,l=n;l>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(t){var e=t.length;if(e<=_)return String.fromCharCode.apply(String,t);for(var n="",r=0;rthis.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||rn&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.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===i&&(i=this.length),(e=void 0===e?0:e)<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&n<=e)return 0;if(i<=r)return-1;if(n<=e)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n),f=0;fthis.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o=!1;;)switch(r){case"hex":return function(t,e,n,r){n=Number(n)||0;var i=t.length-n;if((!r||i<(r=Number(r)))&&(r=i),(i=e.length)%2!=0)throw new TypeError("Invalid hex string");i/2>8,i.push(r%=256),i.push(n);return i}(e,t.length-n),t,n,r)}(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.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(nt.length)throw new RangeError("Index out of range")}function O(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function E(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function k(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 T(t,e,n,r,o){return o||k(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function S(t,e,n,r,o){return o||k(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):n>>8):O(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):E(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):E(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){t=+t,e|=0,r||x(this,t,e,n,(r=Math.pow(2,8*n-1))-1,-r);var i=0,o=1,a=0;for(this[e]=255&t;++i>>8):O(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):O(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):E(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||x(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):E(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return T(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return T(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return S(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return S(this,t,e,!1,n)},u.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=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 i,o=(r=t.length-e>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(t=t||0))for(s=e;s>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.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;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function j(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(C,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function M(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(12))},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){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(159);function i(t,e){t.output.push("string"==typeof e?e:e[1])}function o(){return{output:[],store:i}}t.exports={all:function(t){var e=o();return r.all(e,t),e.output.join("")},body:function(t){var e=o();return r.body(e,t),e.output.join("")},property:function(t,e){var n=o();return r.property(n,t,e,!0),n.output.join("")},rules:function(t){var e=o();return r.rules(e,t),e.output.join("")},value:function(t){var e=o();return r.value(e,t),e.output.join("")}}},function(t,e,n){(function(t){function e(t){return(e="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(t,r){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){function n(){}t.super_=e,n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function a(t,e,n){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,(this.red=null)!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;"object"===e(t)?t.exports=a:r.BN=a,(a.BN=a).wordSize=26;try{s=("undefined"!=typeof window&&void 0!==window.Buffer?window:n(736)).Buffer}catch(t){}function u(t,e){return 65<=(e=t.charCodeAt(e))&&e<=70?e-55:97<=e&&e<=102?e-87:e-48&15}function c(t,e,n){var r=u(t,n);return e<=n-1&&(r|=u(t,n-1)<<4),r}function l(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a>>26-s&67108863,26<=(s+=24)&&(s-=26,r++);else if("le"===n)for(r=a=0;a>>26-s&67108863,26<=(s+=24)&&(s-=26,r++);return this.strip()},a.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r>>26):o+=8;this.strip()},a.prototype._parseBase=function(t,e,n){this.words=[0];for(var r=0,i=this.length=1;i<=67108863;i*=e)r++;i=i/e|0;for(var o=t.length-n,a=o%--r,s=Math.min(o,o-a)+n,u=0,c=n;c"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0,i=(r=(n.length=r)-1|0,(a=(0|t.words[0])*(0|e.words[0]))/67108864|0);n.words[0]=67108863&a;for(var o=1;o>>26,u=67108863&i,c=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=c;l++)s+=(a=(0|t.words[o-l|0])*(0|e.words[l])+u)/67108864|0,u=67108863&a;n.words[o]=0|u,i=0|s}return 0!==i?n.words[o]=0|i:n.length--,n.strip()}a.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var n="",r=0,o=0,a=0;a>>24-r&16777215)||a!==this.length-1?f[6-u.length]+u+n:u+n,26<=(r+=2)&&(r-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative?"-"+n:n}if(t===(0|t)&&2<=t&&t<=36){var c=h[t],l=d[t];for(n="",(p=this.clone()).negative=0;!p.isZero();){var p,g=p.modn(l).toString(t);n=(p=p.idivn(l)).isZero()?g+n:f[c-g.length]+g+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative?"-"+n:n}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t;return t=0,!(8191&e)&&(t+=13,e>>>=13),!(127&e)&&(t+=7,e>>>=7),!(15&e)&&(t+=4,e>>>=4),!(3&e)&&(t+=2,e>>>=2),!(1&e)&&t++,t},a.prototype.bitLength=function(){var t=this.words[this.length-1];return t=this._countBits(t),26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){for(var e,n=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0>26-t),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&0<=t);var n=t/26|0;return t%=26,this._expand(1+n),this.words[n]=e?this.words[n]|1<t.length?(n=this,t):(n=t,this),i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var i=0>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,c=8191&(W=0|r[1]),l=W>>>13,f=8191&(K=0|r[2]),h=K>>>13,d=0|r[3],p=8191&d,g=d>>>13,m=8191&(G=0|r[4]),b=G>>>13,v=8191&($=0|r[5]),y=$>>>13,_=0|r[6],w=8191&_,x=_>>>13,O=8191&(Y=0|r[7]),E=Y>>>13,k=8191&(X=0|r[8]),T=X>>>13,S=8191&(Z=0|r[9]),C=Z>>>13,A=8191&(Q=0|i[0]),j=Q>>>13,M=0|i[1],P=8191&M,R=M>>>13,N=0|i[2],L=8191&N,D=N>>>13,I=8191&(J=0|i[3]),B=J>>>13,F=0|i[4],U=8191&F,H=F>>>13,z=0|i[5],q=8191&z,V=z>>>13,W=8191&(a=0|i[6]),K=a>>>13,G=8191&(d=0|i[7]),$=d>>>13,Y=8191&(_=0|i[8]),X=_>>>13,Z=8191&(r=0|i[9]),Q=r>>>13;n.negative=t.negative^e.negative,n.length=19;var J=(0+Math.imul(s,A)|0)+((8191&(N=Math.imul(s,j)+Math.imul(u,A)|0))<<13)|0,tt=(Math.imul(u,j)+(N>>>13)|0)+(J>>>26)|0;return J&=67108863,M=Math.imul(c,A),N=Math.imul(c,j)+Math.imul(l,A)|0,F=Math.imul(l,j),z=(tt+(M+Math.imul(s,P)|0)|0)+((8191&(N=(N+Math.imul(s,R)|0)+Math.imul(u,P)|0))<<13)|0,tt=((F+Math.imul(u,R)|0)+(N>>>13)|0)+(z>>>26)|0,z&=67108863,M=Math.imul(f,A),N=Math.imul(f,j)+Math.imul(h,A)|0,F=Math.imul(h,j),M=M+Math.imul(c,P)|0,N=(N+Math.imul(c,R)|0)+Math.imul(l,P)|0,F=F+Math.imul(l,R)|0,a=(tt+(M+Math.imul(s,L)|0)|0)+((8191&(N=(N+Math.imul(s,D)|0)+Math.imul(u,L)|0))<<13)|0,tt=((F+Math.imul(u,D)|0)+(N>>>13)|0)+(a>>>26)|0,a&=67108863,M=Math.imul(p,A),N=Math.imul(p,j)+Math.imul(g,A)|0,F=Math.imul(g,j),M=M+Math.imul(f,P)|0,N=(N+Math.imul(f,R)|0)+Math.imul(h,P)|0,F=F+Math.imul(h,R)|0,M=M+Math.imul(c,L)|0,N=(N+Math.imul(c,D)|0)+Math.imul(l,L)|0,F=F+Math.imul(l,D)|0,d=(tt+(M+Math.imul(s,I)|0)|0)+((8191&(N=(N+Math.imul(s,B)|0)+Math.imul(u,I)|0))<<13)|0,tt=((F+Math.imul(u,B)|0)+(N>>>13)|0)+(d>>>26)|0,d&=67108863,M=Math.imul(m,A),N=Math.imul(m,j)+Math.imul(b,A)|0,F=Math.imul(b,j),M=M+Math.imul(p,P)|0,N=(N+Math.imul(p,R)|0)+Math.imul(g,P)|0,F=F+Math.imul(g,R)|0,M=M+Math.imul(f,L)|0,N=(N+Math.imul(f,D)|0)+Math.imul(h,L)|0,F=F+Math.imul(h,D)|0,M=M+Math.imul(c,I)|0,N=(N+Math.imul(c,B)|0)+Math.imul(l,I)|0,F=F+Math.imul(l,B)|0,_=(tt+(M+Math.imul(s,U)|0)|0)+((8191&(N=(N+Math.imul(s,H)|0)+Math.imul(u,U)|0))<<13)|0,tt=((F+Math.imul(u,H)|0)+(N>>>13)|0)+(_>>>26)|0,_&=67108863,M=Math.imul(v,A),N=Math.imul(v,j)+Math.imul(y,A)|0,F=Math.imul(y,j),M=M+Math.imul(m,P)|0,N=(N+Math.imul(m,R)|0)+Math.imul(b,P)|0,F=F+Math.imul(b,R)|0,M=M+Math.imul(p,L)|0,N=(N+Math.imul(p,D)|0)+Math.imul(g,L)|0,F=F+Math.imul(g,D)|0,M=M+Math.imul(f,I)|0,N=(N+Math.imul(f,B)|0)+Math.imul(h,I)|0,F=F+Math.imul(h,B)|0,M=M+Math.imul(c,U)|0,N=(N+Math.imul(c,H)|0)+Math.imul(l,U)|0,F=F+Math.imul(l,H)|0,i=(tt+(M+Math.imul(s,q)|0)|0)+((8191&(N=(N+Math.imul(s,V)|0)+Math.imul(u,q)|0))<<13)|0,tt=((F+Math.imul(u,V)|0)+(N>>>13)|0)+(i>>>26)|0,i&=67108863,M=Math.imul(w,A),N=Math.imul(w,j)+Math.imul(x,A)|0,F=Math.imul(x,j),M=M+Math.imul(v,P)|0,N=(N+Math.imul(v,R)|0)+Math.imul(y,P)|0,F=F+Math.imul(y,R)|0,M=M+Math.imul(m,L)|0,N=(N+Math.imul(m,D)|0)+Math.imul(b,L)|0,F=F+Math.imul(b,D)|0,M=M+Math.imul(p,I)|0,N=(N+Math.imul(p,B)|0)+Math.imul(g,I)|0,F=F+Math.imul(g,B)|0,M=M+Math.imul(f,U)|0,N=(N+Math.imul(f,H)|0)+Math.imul(h,U)|0,F=F+Math.imul(h,H)|0,M=M+Math.imul(c,q)|0,N=(N+Math.imul(c,V)|0)+Math.imul(l,q)|0,F=F+Math.imul(l,V)|0,r=(tt+(M+Math.imul(s,W)|0)|0)+((8191&(N=(N+Math.imul(s,K)|0)+Math.imul(u,W)|0))<<13)|0,tt=((F+Math.imul(u,K)|0)+(N>>>13)|0)+(r>>>26)|0,r&=67108863,M=Math.imul(O,A),N=Math.imul(O,j)+Math.imul(E,A)|0,F=Math.imul(E,j),M=M+Math.imul(w,P)|0,N=(N+Math.imul(w,R)|0)+Math.imul(x,P)|0,F=F+Math.imul(x,R)|0,M=M+Math.imul(v,L)|0,N=(N+Math.imul(v,D)|0)+Math.imul(y,L)|0,F=F+Math.imul(y,D)|0,M=M+Math.imul(m,I)|0,N=(N+Math.imul(m,B)|0)+Math.imul(b,I)|0,F=F+Math.imul(b,B)|0,M=M+Math.imul(p,U)|0,N=(N+Math.imul(p,H)|0)+Math.imul(g,U)|0,F=F+Math.imul(g,H)|0,M=M+Math.imul(f,q)|0,N=(N+Math.imul(f,V)|0)+Math.imul(h,q)|0,F=F+Math.imul(h,V)|0,M=M+Math.imul(c,W)|0,N=(N+Math.imul(c,K)|0)+Math.imul(l,W)|0,F=F+Math.imul(l,K)|0,t=(tt+(M+Math.imul(s,G)|0)|0)+((8191&(N=(N+Math.imul(s,$)|0)+Math.imul(u,G)|0))<<13)|0,tt=((F+Math.imul(u,$)|0)+(N>>>13)|0)+(t>>>26)|0,t&=67108863,M=Math.imul(k,A),N=Math.imul(k,j)+Math.imul(T,A)|0,F=Math.imul(T,j),M=M+Math.imul(O,P)|0,N=(N+Math.imul(O,R)|0)+Math.imul(E,P)|0,F=F+Math.imul(E,R)|0,M=M+Math.imul(w,L)|0,N=(N+Math.imul(w,D)|0)+Math.imul(x,L)|0,F=F+Math.imul(x,D)|0,M=M+Math.imul(v,I)|0,N=(N+Math.imul(v,B)|0)+Math.imul(y,I)|0,F=F+Math.imul(y,B)|0,M=M+Math.imul(m,U)|0,N=(N+Math.imul(m,H)|0)+Math.imul(b,U)|0,F=F+Math.imul(b,H)|0,M=M+Math.imul(p,q)|0,N=(N+Math.imul(p,V)|0)+Math.imul(g,q)|0,F=F+Math.imul(g,V)|0,M=M+Math.imul(f,W)|0,N=(N+Math.imul(f,K)|0)+Math.imul(h,W)|0,F=F+Math.imul(h,K)|0,M=M+Math.imul(c,G)|0,N=(N+Math.imul(c,$)|0)+Math.imul(l,G)|0,F=F+Math.imul(l,$)|0,e=(tt+(M+Math.imul(s,Y)|0)|0)+((8191&(N=(N+Math.imul(s,X)|0)+Math.imul(u,Y)|0))<<13)|0,tt=((F+Math.imul(u,X)|0)+(N>>>13)|0)+(e>>>26)|0,e&=67108863,M=Math.imul(S,A),N=Math.imul(S,j)+Math.imul(C,A)|0,F=Math.imul(C,j),M=M+Math.imul(k,P)|0,N=(N+Math.imul(k,R)|0)+Math.imul(T,P)|0,F=F+Math.imul(T,R)|0,M=M+Math.imul(O,L)|0,N=(N+Math.imul(O,D)|0)+Math.imul(E,L)|0,F=F+Math.imul(E,D)|0,M=M+Math.imul(w,I)|0,N=(N+Math.imul(w,B)|0)+Math.imul(x,I)|0,F=F+Math.imul(x,B)|0,M=M+Math.imul(v,U)|0,N=(N+Math.imul(v,H)|0)+Math.imul(y,U)|0,F=F+Math.imul(y,H)|0,M=M+Math.imul(m,q)|0,N=(N+Math.imul(m,V)|0)+Math.imul(b,q)|0,F=F+Math.imul(b,V)|0,M=M+Math.imul(p,W)|0,N=(N+Math.imul(p,K)|0)+Math.imul(g,W)|0,F=F+Math.imul(g,K)|0,M=M+Math.imul(f,G)|0,N=(N+Math.imul(f,$)|0)+Math.imul(h,G)|0,F=F+Math.imul(h,$)|0,M=M+Math.imul(c,Y)|0,N=(N+Math.imul(c,X)|0)+Math.imul(l,Y)|0,F=F+Math.imul(l,X)|0,s=(tt+(M+Math.imul(s,Z)|0)|0)+((8191&(N=(N+Math.imul(s,Q)|0)+Math.imul(u,Z)|0))<<13)|0,tt=((F+Math.imul(u,Q)|0)+(N>>>13)|0)+(s>>>26)|0,s&=67108863,M=Math.imul(S,P),N=Math.imul(S,R)+Math.imul(C,P)|0,F=Math.imul(C,R),M=M+Math.imul(k,L)|0,N=(N+Math.imul(k,D)|0)+Math.imul(T,L)|0,F=F+Math.imul(T,D)|0,M=M+Math.imul(O,I)|0,N=(N+Math.imul(O,B)|0)+Math.imul(E,I)|0,F=F+Math.imul(E,B)|0,M=M+Math.imul(w,U)|0,N=(N+Math.imul(w,H)|0)+Math.imul(x,U)|0,F=F+Math.imul(x,H)|0,M=M+Math.imul(v,q)|0,N=(N+Math.imul(v,V)|0)+Math.imul(y,q)|0,F=F+Math.imul(y,V)|0,M=M+Math.imul(m,W)|0,N=(N+Math.imul(m,K)|0)+Math.imul(b,W)|0,F=F+Math.imul(b,K)|0,M=M+Math.imul(p,G)|0,N=(N+Math.imul(p,$)|0)+Math.imul(g,G)|0,F=F+Math.imul(g,$)|0,M=M+Math.imul(f,Y)|0,N=(N+Math.imul(f,X)|0)+Math.imul(h,Y)|0,F=F+Math.imul(h,X)|0,c=(tt+(M+Math.imul(c,Z)|0)|0)+((8191&(N=(N+Math.imul(c,Q)|0)+Math.imul(l,Z)|0))<<13)|0,tt=((F+Math.imul(l,Q)|0)+(N>>>13)|0)+(c>>>26)|0,c&=67108863,M=Math.imul(S,L),N=Math.imul(S,D)+Math.imul(C,L)|0,F=Math.imul(C,D),M=M+Math.imul(k,I)|0,N=(N+Math.imul(k,B)|0)+Math.imul(T,I)|0,F=F+Math.imul(T,B)|0,M=M+Math.imul(O,U)|0,N=(N+Math.imul(O,H)|0)+Math.imul(E,U)|0,F=F+Math.imul(E,H)|0,M=M+Math.imul(w,q)|0,N=(N+Math.imul(w,V)|0)+Math.imul(x,q)|0,F=F+Math.imul(x,V)|0,M=M+Math.imul(v,W)|0,N=(N+Math.imul(v,K)|0)+Math.imul(y,W)|0,F=F+Math.imul(y,K)|0,M=M+Math.imul(m,G)|0,N=(N+Math.imul(m,$)|0)+Math.imul(b,G)|0,F=F+Math.imul(b,$)|0,M=M+Math.imul(p,Y)|0,N=(N+Math.imul(p,X)|0)+Math.imul(g,Y)|0,F=F+Math.imul(g,X)|0,f=(tt+(M+Math.imul(f,Z)|0)|0)+((8191&(N=(N+Math.imul(f,Q)|0)+Math.imul(h,Z)|0))<<13)|0,tt=((F+Math.imul(h,Q)|0)+(N>>>13)|0)+(f>>>26)|0,f&=67108863,M=Math.imul(S,I),N=Math.imul(S,B)+Math.imul(C,I)|0,F=Math.imul(C,B),M=M+Math.imul(k,U)|0,N=(N+Math.imul(k,H)|0)+Math.imul(T,U)|0,F=F+Math.imul(T,H)|0,M=M+Math.imul(O,q)|0,N=(N+Math.imul(O,V)|0)+Math.imul(E,q)|0,F=F+Math.imul(E,V)|0,M=M+Math.imul(w,W)|0,N=(N+Math.imul(w,K)|0)+Math.imul(x,W)|0,F=F+Math.imul(x,K)|0,M=M+Math.imul(v,G)|0,N=(N+Math.imul(v,$)|0)+Math.imul(y,G)|0,F=F+Math.imul(y,$)|0,M=M+Math.imul(m,Y)|0,N=(N+Math.imul(m,X)|0)+Math.imul(b,Y)|0,F=F+Math.imul(b,X)|0,p=(tt+(M+Math.imul(p,Z)|0)|0)+((8191&(N=(N+Math.imul(p,Q)|0)+Math.imul(g,Z)|0))<<13)|0,tt=((F+Math.imul(g,Q)|0)+(N>>>13)|0)+(p>>>26)|0,p&=67108863,M=Math.imul(S,U),N=Math.imul(S,H)+Math.imul(C,U)|0,F=Math.imul(C,H),M=M+Math.imul(k,q)|0,N=(N+Math.imul(k,V)|0)+Math.imul(T,q)|0,F=F+Math.imul(T,V)|0,M=M+Math.imul(O,W)|0,N=(N+Math.imul(O,K)|0)+Math.imul(E,W)|0,F=F+Math.imul(E,K)|0,M=M+Math.imul(w,G)|0,N=(N+Math.imul(w,$)|0)+Math.imul(x,G)|0,F=F+Math.imul(x,$)|0,M=M+Math.imul(v,Y)|0,N=(N+Math.imul(v,X)|0)+Math.imul(y,Y)|0,F=F+Math.imul(y,X)|0,m=(tt+(M+Math.imul(m,Z)|0)|0)+((8191&(N=(N+Math.imul(m,Q)|0)+Math.imul(b,Z)|0))<<13)|0,tt=((F+Math.imul(b,Q)|0)+(N>>>13)|0)+(m>>>26)|0,m&=67108863,M=Math.imul(S,q),N=Math.imul(S,V)+Math.imul(C,q)|0,F=Math.imul(C,V),M=M+Math.imul(k,W)|0,N=(N+Math.imul(k,K)|0)+Math.imul(T,W)|0,F=F+Math.imul(T,K)|0,M=M+Math.imul(O,G)|0,N=(N+Math.imul(O,$)|0)+Math.imul(E,G)|0,F=F+Math.imul(E,$)|0,M=M+Math.imul(w,Y)|0,N=(N+Math.imul(w,X)|0)+Math.imul(x,Y)|0,F=F+Math.imul(x,X)|0,v=(tt+(M+Math.imul(v,Z)|0)|0)+((8191&(N=(N+Math.imul(v,Q)|0)+Math.imul(y,Z)|0))<<13)|0,tt=((F+Math.imul(y,Q)|0)+(N>>>13)|0)+(v>>>26)|0,v&=67108863,M=Math.imul(S,W),N=Math.imul(S,K)+Math.imul(C,W)|0,F=Math.imul(C,K),M=M+Math.imul(k,G)|0,N=(N+Math.imul(k,$)|0)+Math.imul(T,G)|0,F=F+Math.imul(T,$)|0,M=M+Math.imul(O,Y)|0,N=(N+Math.imul(O,X)|0)+Math.imul(E,Y)|0,F=F+Math.imul(E,X)|0,w=(tt+(M+Math.imul(w,Z)|0)|0)+((8191&(N=(N+Math.imul(w,Q)|0)+Math.imul(x,Z)|0))<<13)|0,tt=((F+Math.imul(x,Q)|0)+(N>>>13)|0)+(w>>>26)|0,w&=67108863,M=Math.imul(S,G),N=Math.imul(S,$)+Math.imul(C,G)|0,F=Math.imul(C,$),M=M+Math.imul(k,Y)|0,N=(N+Math.imul(k,X)|0)+Math.imul(T,Y)|0,F=F+Math.imul(T,X)|0,O=(tt+(M+Math.imul(O,Z)|0)|0)+((8191&(N=(N+Math.imul(O,Q)|0)+Math.imul(E,Z)|0))<<13)|0,tt=((F+Math.imul(E,Q)|0)+(N>>>13)|0)+(O>>>26)|0,O&=67108863,M=Math.imul(S,Y),N=Math.imul(S,X)+Math.imul(C,Y)|0,F=Math.imul(C,X),k=(tt+(M+Math.imul(k,Z)|0)|0)+((8191&(N=(N+Math.imul(k,Q)|0)+Math.imul(T,Z)|0))<<13)|0,tt=((F+Math.imul(T,Q)|0)+(N>>>13)|0)+(k>>>26)|0,k&=67108863,Z=(tt+Math.imul(S,Z)|0)+((8191&(N=Math.imul(S,Q)+Math.imul(C,Z)|0))<<13)|0,tt=(Math.imul(C,Q)+(N>>>13)|0)+(Z>>>26)|0,Z&=67108863,o[0]=J,o[1]=z,o[2]=a,o[3]=d,o[4]=_,o[5]=i,o[6]=r,o[7]=t,o[8]=e,o[9]=s,o[10]=c,o[11]=f,o[12]=p,o[13]=m,o[14]=v,o[15]=w,o[16]=O,o[17]=k,o[18]=Z,0!=tt&&(o[19]=tt,n.length++),n};function m(t,e,n){return(new b).mulp(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(g=p),a.prototype.mulTo=function(t,e){var n=this.length+t.length;return(10===this.length&&10===t.length?g:n<63?p:n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}:m)(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=a.prototype._countBits(t)-1,r=0;r>=1;return r},b.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)n++;return 1<>>=13),o>>>=13;for(a=2*e;a>=26,e+=r/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>r}return e}(t);if(0===e.length)return new a(1);for(var n=this,r=0;r>>26-e<<26-e;if(0!=e){for(var o=0,a=0;a>>26-e}o&&(this.words[a]=o,this.length++)}if(0!=n){for(a=this.length-1;0<=a;a--)this.words[a+n]=this.words[a];for(a=0;a>>o<a)for(this.length-=a,c=0;c>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t||!(this.words[t]&1<>>e<>26)-(u/67108864|0),this.words[a+n]=67108863&s}for(;a>26,this.words[a+n]=67108863&s;if(0===o)return this.strip();for(i(-1===o),a=o=0;a>26,this.words[a]=67108863&s;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){this.length,t.length;var n,r=this.clone(),i=t,o=0|i.words[i.length-1];0!=(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new a(null)).length=1+u,s.words=new Array(s.length);for(var c=0;cthis.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),(r=n.cmp(r))<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,r=this.length-1;0<=r;r--)n=(e*n+(0|this.words[r]))%t;return n},a.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;0<=n;n--){var r=(0|this.words[n])+67108864*e;this.words[n]=r/t|0,e=r%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());for(var e=this,n=t.clone(),r=(e=0!==e.negative?e.umod(t):e.clone(),new a(1)),o=new a(0),s=new a(0),u=new a(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;!(e.words[0]&d)&&h<26;++h,d<<=1);if(0>>26,o&=67108863,this.words[r]=o}return 0!==n&&(this.words[r]=n,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this.strip(),t=1t.length)return 1;if(this.lengththis.n;);return 0===(t=e>>22,i=o}0==(t.words[r-10]=i>>>=22)&&10>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new w;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new O}return v[t]=e},E.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){i(!(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return(this.prime?this.prime.ireduce(t):t.umod(this.m))._forceRed(this)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){return this._verify2(t,e),0<=(e=t.add(e)).cmp(this.m)&&e.isub(this.m),e._forceRed(this)},E.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(e=t.iadd(e)).cmp(this.m)&&e.isub(this.m),e},E.prototype.sub=function(t,e){return this._verify2(t,e),(e=t.sub(e)).cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},E.prototype.isub=function(t,e){return this._verify2(t,e),(e=t.isub(e)).cmpn(0)<0&&e.iadd(this.m),e},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e)return e=this.m.add(new a(1)).iushrn(2),this.pow(t,e);for(var n=this.m.subn(1),r=0;!n.isZero()&&0===n.andln(1);)r++,n.iushrn(1);i(!n.isZero());for(var o=new a(1).toRed(this),s=o.redNeg(),u=this.m.subn(1).iushrn(1),c=new a(2*(c=this.m.bitLength())*c).toRed(this);0!==this.pow(c,u).cmp(s);)c.redIAdd(s);for(var l=this.pow(c,n),f=this.pow(t,n.addn(1).iushrn(1)),h=this.pow(t,n),d=r;0!==h.cmp(o);){for(var p=h,g=0;0!==p.cmp(o);g++)p=p.redSqr();i(g>l&1;i!==n[0]&&(i=this.sqr(i)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[o]),o=s=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},a.mont=function(t){return new k(t)},o(k,E),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},k.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},k.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new a(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(27)(t))},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 i=n(204);n="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,n=i||n||Function("return this")(),t.exports=n},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 i=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){t[r=void 0===r?n:r]=e[n]}),o=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var a=n(58),s=n(237);o(n(237),e);var u=/\s+/g,c={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};function l(t,e,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof e&&(n=e,e=c),"object"===r(t)&&(e=t,t=void 0),this.callback=null!=t?t:null,this.options=null!=e?e:c,this.elementCB=null!=n?n:null}l.prototype.onparserinit=function(t){this.parser=t},l.prototype.onreset=function(){var t;this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null!==(t=this.parser)&&void 0!==t?t:null},l.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},l.prototype.onerror=function(t){this.handleCallback(t)},l.prototype.onclosetag=function(){this.lastNode=null;var t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)},l.prototype.onopentag=function(t,e){var n=this.options.xmlMode?a.ElementType.Tag:void 0;n=new s.Element(t,e,void 0,n),this.addNode(n),this.tagStack.push(n)},l.prototype.ontext=function(t){var e=this.options.normalizeWhitespace,n=this.lastNode;n&&n.type===a.ElementType.Text?e?n.data=(n.data+t).replace(u," "):n.data+=t:(e&&(t=t.replace(u," ")),t=new s.Text(t),this.addNode(t),this.lastNode=t)},l.prototype.oncomment=function(t){this.lastNode&&this.lastNode.type===a.ElementType.Comment?this.lastNode.data+=t:(t=new s.Comment(t),this.addNode(t),this.lastNode=t)},l.prototype.oncommentend=function(){this.lastNode=null},l.prototype.oncdatastart=function(){var t=new s.Text(""),e=new s.NodeWithChildren(a.ElementType.CDATA,[t]);this.addNode(e),t.parent=e,this.lastNode=t},l.prototype.oncdataend=function(){this.lastNode=null},l.prototype.onprocessinginstruction=function(t,e){e=new s.ProcessingInstruction(t,e),this.addNode(e)},l.prototype.handleCallback=function(t){if("function"==typeof this.callback)this.callback(t,this.dom);else if(t)throw t},l.prototype.addNode=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},n=l,e.DomHandler=n,e.default=n},function(t,e){(t.exports=function(t,e){if(!t)throw new Error(e||"Assertion failed")}).equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},function(t,e,n){"use strict";var r=e,i=n(15);e=n(19),n=n(336),r.assert=e,r.toArray=n.toArray,r.zero2=n.zero2,r.toHex=n.toHex,r.encode=n.encode,r.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var i=1<>1)-1>1)-u:u):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,i=0,o=0;0>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function o(t){return 1===t.length?"0"+t:t}function a(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}n=n(1),e.inherits=n,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192:(function(t,e){return 55296==(64512&t.charCodeAt(e))&&!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128):n[r++]=o>>12|224,n[r++]=o>>6&63|128),n[r++]=63&o|128)}else for(i=0;i>>0}return o},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0;t[e]=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,a,s){var u,c=0;return c+=(u=e+r>>>0)>>0)>>0>>0},e.sum64_4_lo=function(t,e,n,r,i,o,a,s){return e+r+o+s>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,a,s,u,c){var l,f=0;return f+=(l=e+r>>>0)>>0)>>0)>>0>>0},e.sum64_5_lo=function(t,e,n,r,i,o,a,s,u,c){return e+r+o+s+c>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},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 i=n(381),o=n(415),a=n(28),s=n(13),u=n(422);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==r(t)?s(t)?o(t[0],t[1]):i(t):u(t)}},function(t,e,n){"use strict";function r(t,e){for(var n=0;ni[0]&&a[1]=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0n&&!o.warned&&(o.warned=!0,(n=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",n.emitter=t,n.type=e,n.count=o.length,function(t){console&&console.warn&&console.warn(t)}(n))),t}function d(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 p(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",'"',"`"," ","\r","\n","\t"]),["'"].concat(e)),f=["%","/","?",";","#"].concat(l),h=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=n(565);function y(t,e,n){if(t&&o.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(!o.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+r(t));var a=t.indexOf("?"),u=-1!==a&&a>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/;e.isHtml=function(t){return o.test(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(e,r){var i,o,a,s={};for(i in e)a=e[i],Array.isArray(a)?s[i]=a.slice(0):"object"==n(a)&&null!==a?s[i]=t(a,{}):s[i]=a;for(o in r)a=r[o],o in s&&Array.isArray(a)?s[o]=a.slice(0):o in s&&"object"==n(a)&&null!==a?s[o]=t(s[o],a):s[o]=a;return s}},function(t,e,n){var r=n(157),i=n(16),o=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)||0t.length)&&(n=t.length),t.substring(n-9,n)===e}(t," argument")?"The ".concat(t," ").concat(i," ").concat(a(e,"type")):(o=function(t,e,n){return!((n="number"!=typeof n?0:n)+1>t.length)&&-1!==t.indexOf(".",n)}(t)?"property":"argument",'The "'.concat(t,'" ').concat(o," ").concat(i," ").concat(a(e,"type"))))+". Received type ".concat(r(n))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e,n=[];for(e in t)n.push(e);return n};t.exports=c;var i=n(305),o=n(309);n(1)(c,i);for(var a=r(o.prototype),s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0)),(e=8*this._len)<=4294967295?this._block.writeUInt32BE(e,this._blockSize-4):(this._block.writeUInt32BE((e-(n=(4294967295&e)>>>0))/4294967296,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)),this._update(this._block);var n=this._hash();return t?n.toString(t):n},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},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 i={};function o(t,e,n){var r=function(t){function n(n,r,i){return t.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,i))||this}return function(t,e){t.prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e}(n,t),n}(n=n||Error);r.prototype.name=n.name,r.prototype.code=t,i[t]=r}function a(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),2t.length)&&(n=t.length),t.substring(n-9,n)===e}(t," argument")?"The ".concat(t," ").concat(i," ").concat(a(e,"type")):(o=function(t,e,n){return!((n="number"!=typeof n?0:n)+1>t.length)&&-1!==t.indexOf(".",n)}(t)?"property":"argument",'The "'.concat(t,'" ').concat(o," ").concat(i," ").concat(a(e,"type"))))+". Received type ".concat(r(n))}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e,n=[];for(e in t)n.push(e);return n};t.exports=c;var i=n(330),o=n(334);n(1)(c,i);for(var a=r(o.prototype),s=0;s=this._delta8){e=(t=this.pending).length%this._delta8,this.pending=t.slice(t.length-e,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-e,this.endian);for(var n=0;n>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","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","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","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":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","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":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","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":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","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":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","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":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","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":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","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":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","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":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","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":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","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":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","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":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","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":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","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":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","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":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","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":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","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":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","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":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","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":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","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":"‌"}')},function(t){t.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(t,e,n){"use strict";function r(t,e){for(var n=0;n=u.DIGIT_0&&t<=u.DIGIT_9}function Ft(t){return t>=u.LATIN_CAPITAL_A&&t<=u.LATIN_CAPITAL_Z}function Ut(t){return t>=u.LATIN_SMALL_A&&t<=u.LATIN_SMALL_Z}function Ht(t){return Ut(t)||Ft(t)}function zt(t){return Ht(t)||Bt(t)}function qt(t){return t>=u.LATIN_CAPITAL_A&&t<=u.LATIN_CAPITAL_F}function Vt(t){return t>=u.LATIN_SMALL_A&&t<=u.LATIN_SMALL_F}function Wt(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(t>>>10&1023|55296)+String.fromCharCode(56320|1023&t))}function Kt(t){return String.fromCharCode(t+32)}function Gt(t,e){for(var n=a[++t],r=++t,i=r+n-1;r<=i;){var o=r+i>>>1,s=a[o];if(s")):t===u.NULL?(this._err(s.unexpectedNullCharacter),this.state=j,this._emitChars(o.REPLACEMENT_CHARACTER)):t===u.EOF?(this._err(s.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=j,this._emitCodePoint(t))}},{key:R,value:function(t){t===u.SOLIDUS?(this.tempBuff=[],this.state=N):Ht(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(D)):(this._emitChars("<"),this._reconsumeInState(j))}},{key:N,value:function(t){Ht(t)?(this._createEndTagToken(),this._reconsumeInState(L)):(this._emitChars("")):t===u.NULL?(this._err(s.unexpectedNullCharacter),this.state=I,this._emitChars(o.REPLACEMENT_CHARACTER)):t===u.EOF?(this._err(s.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=I,this._emitCodePoint(t))}},{key:U,value:function(t){t===u.SOLIDUS?(this.tempBuff=[],this.state=H,this._emitChars("/")):this._reconsumeInState(I)}},{key:H,value:function(t){It(t)||t===u.SOLIDUS||t===u.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?j:I,this._emitCodePoint(t)):Ft(t)?(this.tempBuff.push(t+32),this._emitCodePoint(t)):Ut(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(I)}},{key:z,value:function(t){It(t)||(t===u.SOLIDUS||t===u.GREATER_THAN_SIGN||t===u.EOF?this._reconsumeInState(V):t===u.EQUALS_SIGN?(this._err(s.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=q):(this._createAttr(""),this._reconsumeInState(q)))}},{key:q,value:function(t){It(t)||t===u.SOLIDUS||t===u.GREATER_THAN_SIGN||t===u.EOF?(this._leaveAttrName(V),this._unconsume()):t===u.EQUALS_SIGN?this._leaveAttrName(W):Ft(t)?this.currentAttr.name+=Kt(t):t===u.QUOTATION_MARK||t===u.APOSTROPHE||t===u.LESS_THAN_SIGN?(this._err(s.unexpectedCharacterInAttributeName),this.currentAttr.name+=Wt(t)):t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentAttr.name+=o.REPLACEMENT_CHARACTER):this.currentAttr.name+=Wt(t)}},{key:V,value:function(t){It(t)||(t===u.SOLIDUS?this.state=X:t===u.EQUALS_SIGN?this.state=W:t===u.GREATER_THAN_SIGN?(this.state=f,this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(q)))}},{key:W,value:function(t){It(t)||(t===u.QUOTATION_MARK?this.state=K:t===u.APOSTROPHE?this.state=G:t===u.GREATER_THAN_SIGN?(this._err(s.missingAttributeValue),this.state=f,this._emitCurrentToken()):this._reconsumeInState($))}},{key:K,value:function(t){t===u.QUOTATION_MARK?this.state=Y:t===u.AMPERSAND?(this.returnState=K,this.state=Ct):t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):t===u.EOF?(this._err(s.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Wt(t)}},{key:G,value:function(t){t===u.APOSTROPHE?this.state=Y:t===u.AMPERSAND?(this.returnState=G,this.state=Ct):t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):t===u.EOF?(this._err(s.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Wt(t)}},{key:$,value:function(t){It(t)?this._leaveAttrValue(z):t===u.AMPERSAND?(this.returnState=$,this.state=Ct):t===u.GREATER_THAN_SIGN?(this._leaveAttrValue(f),this._emitCurrentToken()):t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentAttr.value+=o.REPLACEMENT_CHARACTER):t===u.QUOTATION_MARK||t===u.APOSTROPHE||t===u.LESS_THAN_SIGN||t===u.EQUALS_SIGN||t===u.GRAVE_ACCENT?(this._err(s.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Wt(t)):t===u.EOF?(this._err(s.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Wt(t)}},{key:Y,value:function(t){It(t)?this._leaveAttrValue(z):t===u.SOLIDUS?this._leaveAttrValue(X):t===u.GREATER_THAN_SIGN?(this._leaveAttrValue(f),this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInTag),this._emitEOFToken()):(this._err(s.missingWhitespaceBetweenAttributes),this._reconsumeInState(z))}},{key:X,value:function(t){t===u.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=f,this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInTag),this._emitEOFToken()):(this._err(s.unexpectedSolidusInTag),this._reconsumeInState(z))}},{key:Z,value:function(t){t===u.GREATER_THAN_SIGN?(this.state=f,this._emitCurrentToken()):t===u.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):this.currentToken.data+=Wt(t)}},{key:Q,value:function(t){this._consumeSequenceIfMatch(c.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=J):this._consumeSequenceIfMatch(c.DOCTYPE_STRING,t,!1)?this.state=ct:this._consumeSequenceIfMatch(c.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=kt:(this._err(s.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=Z):this._ensureHibernation()||(this._err(s.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(Z))}},{key:J,value:function(t){t===u.HYPHEN_MINUS?this.state=tt:t===u.GREATER_THAN_SIGN?(this._err(s.abruptClosingOfEmptyComment),this.state=f,this._emitCurrentToken()):this._reconsumeInState(et)}},{key:tt,value:function(t){t===u.HYPHEN_MINUS?this.state=st:t===u.GREATER_THAN_SIGN?(this._err(s.abruptClosingOfEmptyComment),this.state=f,this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(et))}},{key:et,value:function(t){t===u.HYPHEN_MINUS?this.state=at:t===u.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=nt):t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentToken.data+=o.REPLACEMENT_CHARACTER):t===u.EOF?(this._err(s.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Wt(t)}},{key:nt,value:function(t){t===u.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=rt):t===u.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(et)}},{key:rt,value:function(t){t===u.HYPHEN_MINUS?this.state=it:this._reconsumeInState(et)}},{key:it,value:function(t){t===u.HYPHEN_MINUS?this.state=ot:this._reconsumeInState(at)}},{key:ot,value:function(t){t!==u.GREATER_THAN_SIGN&&t!==u.EOF&&this._err(s.nestedComment),this._reconsumeInState(st)}},{key:at,value:function(t){t===u.HYPHEN_MINUS?this.state=st:t===u.EOF?(this._err(s.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(et))}},{key:st,value:function(t){t===u.GREATER_THAN_SIGN?(this.state=f,this._emitCurrentToken()):t===u.EXCLAMATION_MARK?this.state=ut:t===u.HYPHEN_MINUS?this.currentToken.data+="-":t===u.EOF?(this._err(s.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(et))}},{key:ut,value:function(t){t===u.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=at):t===u.GREATER_THAN_SIGN?(this._err(s.incorrectlyClosedComment),this.state=f,this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(et))}},{key:ct,value:function(t){It(t)?this.state=lt:t===u.GREATER_THAN_SIGN?this._reconsumeInState(lt):t===u.EOF?(this._err(s.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(s.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(lt))}},{key:lt,value:function(t){It(t)||(Ft(t)?(this._createDoctypeToken(Kt(t)),this.state=ft):t===u.NULL?(this._err(s.unexpectedNullCharacter),this._createDoctypeToken(o.REPLACEMENT_CHARACTER),this.state=ft):t===u.GREATER_THAN_SIGN?(this._err(s.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=f):t===u.EOF?(this._err(s.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Wt(t)),this.state=ft))}},{key:ft,value:function(t){It(t)?this.state=ht:t===u.GREATER_THAN_SIGN?(this.state=f,this._emitCurrentToken()):Ft(t)?this.currentToken.name+=Kt(t):t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentToken.name+=o.REPLACEMENT_CHARACTER):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Wt(t)}},{key:ht,value:function(t){It(t)||(t===u.GREATER_THAN_SIGN?(this.state=f,this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(c.PUBLIC_STRING,t,!1)?this.state=dt:this._consumeSequenceIfMatch(c.SYSTEM_STRING,t,!1)?this.state=yt:this._ensureHibernation()||(this._err(s.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Et)))}},{key:dt,value:function(t){It(t)?this.state=pt:t===u.QUOTATION_MARK?(this._err(s.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=gt):t===u.APOSTROPHE?(this._err(s.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=mt):t===u.GREATER_THAN_SIGN?(this._err(s.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=f,this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(s.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Et))}},{key:pt,value:function(t){It(t)||(t===u.QUOTATION_MARK?(this.currentToken.publicId="",this.state=gt):t===u.APOSTROPHE?(this.currentToken.publicId="",this.state=mt):t===u.GREATER_THAN_SIGN?(this._err(s.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=f,this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(s.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Et)))}},{key:gt,value:function(t){t===u.QUOTATION_MARK?this.state=bt:t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):t===u.GREATER_THAN_SIGN?(this._err(s.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=f):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Wt(t)}},{key:mt,value:function(t){t===u.APOSTROPHE?this.state=bt:t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentToken.publicId+=o.REPLACEMENT_CHARACTER):t===u.GREATER_THAN_SIGN?(this._err(s.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=f):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Wt(t)}},{key:bt,value:function(t){It(t)?this.state=vt:t===u.GREATER_THAN_SIGN?(this.state=f,this._emitCurrentToken()):t===u.QUOTATION_MARK?(this._err(s.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=wt):t===u.APOSTROPHE?(this._err(s.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=xt):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(s.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Et))}},{key:vt,value:function(t){It(t)||(t===u.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=f):t===u.QUOTATION_MARK?(this.currentToken.systemId="",this.state=wt):t===u.APOSTROPHE?(this.currentToken.systemId="",this.state=xt):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(s.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Et)))}},{key:yt,value:function(t){It(t)?this.state=_t:t===u.QUOTATION_MARK?(this._err(s.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=wt):t===u.APOSTROPHE?(this._err(s.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=xt):t===u.GREATER_THAN_SIGN?(this._err(s.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=f,this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(s.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Et))}},{key:_t,value:function(t){It(t)||(t===u.QUOTATION_MARK?(this.currentToken.systemId="",this.state=wt):t===u.APOSTROPHE?(this.currentToken.systemId="",this.state=xt):t===u.GREATER_THAN_SIGN?(this._err(s.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=f,this._emitCurrentToken()):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(s.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Et)))}},{key:wt,value:function(t){t===u.QUOTATION_MARK?this.state=Ot:t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):t===u.GREATER_THAN_SIGN?(this._err(s.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=f):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Wt(t)}},{key:xt,value:function(t){t===u.APOSTROPHE?this.state=Ot:t===u.NULL?(this._err(s.unexpectedNullCharacter),this.currentToken.systemId+=o.REPLACEMENT_CHARACTER):t===u.GREATER_THAN_SIGN?(this._err(s.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=f):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Wt(t)}},{key:Ot,value:function(t){It(t)||(t===u.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=f):t===u.EOF?(this._err(s.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(s.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Et)))}},{key:Et,value:function(t){t===u.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=f):t===u.NULL?this._err(s.unexpectedNullCharacter):t===u.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}},{key:kt,value:function(t){t===u.RIGHT_SQUARE_BRACKET?this.state=Tt:t===u.EOF?(this._err(s.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}},{key:Tt,value:function(t){t===u.RIGHT_SQUARE_BRACKET?this.state=St:(this._emitChars("]"),this._reconsumeInState(kt))}},{key:St,value:function(t){t===u.GREATER_THAN_SIGN?this.state=f:t===u.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(kt))}},{key:Ct,value:function(t){this.tempBuff=[u.AMPERSAND],t===u.NUMBER_SIGN?(this.tempBuff.push(t),this.state=Mt):zt(t)?this._reconsumeInState(At):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}},{key:At,value:function(t){var e=this._matchNamedCharacterReference(t);this._ensureHibernation()?this.tempBuff=[u.AMPERSAND]:e?(t=this.tempBuff[this.tempBuff.length-1]===u.SEMICOLON,this._isCharacterReferenceAttributeQuirk(t)||(t||this._errOnNextCodePoint(s.missingSemicolonAfterCharacterReference),this.tempBuff=e),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState):(this._flushCodePointsConsumedAsCharacterReference(),this.state=jt)}},{key:jt,value:function(t){zt(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Wt(t):this._emitCodePoint(t):(t===u.SEMICOLON&&this._err(s.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}},{key:Mt,value:function(t){this.charRefCode=0,t===u.LATIN_SMALL_X||t===u.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=Pt):this._reconsumeInState(Rt)}},{key:Pt,value:function(t){!function(t){return Bt(t)||qt(t)||Vt(t)}(t)?(this._err(s.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)):this._reconsumeInState(Nt)}},{key:Rt,value:function(t){Bt(t)?this._reconsumeInState(Lt):(this._err(s.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}},{key:Nt,value:function(t){qt(t)?this.charRefCode=16*this.charRefCode+t-55:Vt(t)?this.charRefCode=16*this.charRefCode+t-87:Bt(t)?this.charRefCode=16*this.charRefCode+t-48:t===u.SEMICOLON?this.state=Dt:(this._err(s.missingSemicolonAfterCharacterReference),this._reconsumeInState(Dt))}},{key:Lt,value:function(t){Bt(t)?this.charRefCode=10*this.charRefCode+t-48:t===u.SEMICOLON?this.state=Dt:(this._err(s.missingSemicolonAfterCharacterReference),this._reconsumeInState(Dt))}},{key:Dt,value:function(){var t;this.charRefCode===u.NULL?(this._err(s.nullCharacterReference),this.charRefCode=u.REPLACEMENT_CHARACTER):1114111\+~]/,c=[":after",":before",":first-letter",":first-line",":lang"],l=["::after","::before","::first-letter","::first-line"],f="double-quote",h="single-quote",d="root";t.exports=function(t,e,n,p){for(var g,m=i(t,r.COMMA),b=0,v=m.length;b>>24]^l[p>>>16&255]^f[g>>>8&255]^h[255&m]^e[b++],a=c[p>>>24]^l[g>>>16&255]^f[m>>>8&255]^h[255&d]^e[b++],s=c[g>>>24]^l[m>>>16&255]^f[d>>>8&255]^h[255&p]^e[b++],u=c[m>>>24]^l[d>>>16&255]^f[p>>>8&255]^h[255&g]^e[b++],d=o,p=a,g=s,m=u;return o=(r[d>>>24]<<24|r[p>>>16&255]<<16|r[g>>>8&255]<<8|r[255&m])^e[b++],a=(r[p>>>24]<<24|r[g>>>16&255]<<16|r[m>>>8&255]<<8|r[255&d])^e[b++],s=(r[g>>>24]<<24|r[m>>>16&255]<<16|r[d>>>8&255]<<8|r[255&p])^e[b++],u=(r[m>>>24]<<24|r[d>>>16&255]<<16|r[p>>>8&255]<<8|r[255&g])^e[b++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;n[a]=c=c>>>8^255&c^99;var l=t[r[c]=a],f=t[l],h=t[f],d=257*t[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,o[0][c]=(d=16843009*h^65537*f^257*l^16843008*a)<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=l^t[t[t[h^l]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),i=[],o=0;o>>24)>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):6>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-e]^a}for(var c=[],l=0;l>>24]]^u.INV_SUB_MIX[1][u.SBOX[h>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[h>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&h]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t);return(t=r.allocUnsafe(16)).writeUInt32BE(e[0],0),t.writeUInt32BE(e[1],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[3],12),t},c.prototype.decryptBlock=function(t){var e=(t=i(t))[1];return t[1]=t[3],t[3]=e,e=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),(t=r.allocUnsafe(16)).writeUInt32BE(e[0],0),t.writeUInt32BE(e[3],4),t.writeUInt32BE(e[2],8),t.writeUInt32BE(e[1],12),t},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},function(t,e,n){var r=n(5).Buffer,i=n(182);t.exports=function(t,e,n,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&8!==(e=r.isBuffer(e)?e:r.from(e,"binary")).length)throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),u=r.alloc(o||0),c=r.alloc(0);0>1]):u.mixedAdd(i[-f-1>>1].neg()):0>1]):u.add(i[-f-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,n,r,i){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,l=0,f=0;f>1]:T<0&&(h=u[k][-T-1>>1].neg()),w="affine"===h.type?w.mixedAdd(h):w.add(h))}}for(f=0;f=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i","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":"ÿ"}')},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});var i=r(n(466)),o=String.fromCodePoint||function(t){var e="";return 65535>>10&1023|55296),t=56320|1023&t),e+String.fromCharCode(t)};e.default=function(t){return 55296<=t&&t<=57343||1114111e[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(9))},function(t,e,n){var 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(){var n;!function(){"use strict";var t=[function(t,e,n){var r=n(1).Beautifier,i=n(5).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,n){var r=n(2).Output,i=n(3).Token,o=n(4),a=n(5).Options,s=n(7).Tokenizer,u=n(7).line_starters,c=n(7).positionable_operators,l=n(7).TOKEN;function f(t,e){return-1!==e.indexOf(t)}function h(t,e){return t&&t.type===l.RESERVED&&t.text===e}function d(t,e){return t&&t.type===l.RESERVED&&f(t.text,e)}var p=["case","return","do","if","throw","else","await","break","continue","async"],g=function(t){for(var e={},n=0;nn&&(n=t.line_indent_level)),{mode:e,parent:t,last_token:t?t.last_token:new i(l.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&&o.lineBreak.test(t||"")&&(e=t.match(o.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===l.START_EXPR?this.handle_start_expr(t):t.type===l.END_EXPR?this.handle_end_expr(t):t.type===l.START_BLOCK?this.handle_start_block(t):t.type===l.END_BLOCK?this.handle_end_block(t):t.type===l.WORD||t.type===l.RESERVED?this.handle_word(t):t.type===l.SEMICOLON?this.handle_semicolon(t):t.type===l.STRING?this.handle_string(t):t.type===l.EQUALS?this.handle_equals(t):t.type===l.OPERATOR?this.handle_operator(t):t.type===l.COMMA?this.handle_comma(t):t.type===l.BLOCK_COMMENT?this.handle_block_comment(t,e):t.type===l.COMMENT?this.handle_comment(t,e):t.type===l.DOT?this.handle_dot(t):t.type===l.EOF?this.handle_eof(t):(t.type,l.UNKNOWN,this.handle_unknown(t,e))},_.prototype.handle_whitespace_and_comments=function(t,e){var n=t.newlines,r=this._options.keep_array_indentation&&v(this._flags.mode);if(t.comments_before)for(var i=t.comments_before.next();i;)this.handle_whitespace_and_comments(i,e),this.handle_token(i,e),i=t.comments_before.next();if(r)for(var o=0;othis._options.max_preserve_newlines&&(n=this._options.max_preserve_newlines),this._options.preserve_newlines&&1this._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._flags.last_token.text||!f(this._flags.last_token.type,[l.EQUALS,l.START_EXPR,l.COMMA,l.OPERATOR])&&!d(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===l.END_EXPR,this._options.brace_preserve_inline){var r=0,i=null;this._flags.inline_frame=!0;do{if((i=this._tokens.peek((r+=1)-1)).newlines){this._flags.inline_frame=!1;break}}while(i.type!==l.EOF&&(i.type!==l.END_BLOCK||i.opened!==t))}("expand"===this._options.brace_style||"none"===this._options.brace_style&&t.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==l.OPERATOR&&(e||this._flags.last_token.type===l.EQUALS||d(this._flags.last_token,p)&&"else"!==this._flags.last_token.text)?this._output.space_before_token=!0:this.print_newline(!1,!0):(!v(this._previous_flags.mode)||this._flags.last_token.type!==l.START_EXPR&&this._flags.last_token.type!==l.COMMA||(this._flags.last_token.type!==l.COMMA&&!this._options.space_in_paren||(this._output.space_before_token=!0),(this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.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!==l.OPERATOR&&this._flags.last_token.type!==l.START_EXPR&&(this._flags.last_token.type!==l.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===l.START_BLOCK;this._flags.inline_frame&&!e?this._output.space_before_token=!0:"expand"===this._options.brace_style?e||this.print_newline():e||(v(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===l.RESERVED&&(f(t.text,["set","get"])&&"ObjectLiteral"!==this._flags.mode||"import"===t.text&&"("===this._tokens.peek().text||f(t.text,["as","from"])&&!this._flags.import_block||"ObjectLiteral"===this._flags.mode&&":"===this._tokens.peek().text)&&(t.type=l.WORD),this.start_of_statement(t)?d(this._flags.last_token,["var","let","const"])&&t.type===l.WORD&&(this._flags.declaration_statement=!0):!t.newlines||y(this._flags.mode)||this._flags.last_token.type===l.OPERATOR&&"--"!==this._flags.last_token.text&&"++"!==this._flags.last_token.text||this._flags.last_token.type===l.EQUALS||!this._options.preserve_newlines&&d(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(h(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&&h(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&&d(t,["case","default"]))return this.print_newline(),this._flags.last_token.type!==l.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!==l.COMMA&&this._flags.last_token.type!==l.START_EXPR&&this._flags.last_token.type!==l.EQUALS&&this._flags.last_token.type!==l.OPERATOR||this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t),h(t,"function"))return(f(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!f(this._flags.last_token.text,["(","[","{",":","=",","])&&this._flags.last_token.type!==l.OPERATOR)&&(this._output.just_added_blankline()||t.comments_before||(this.print_newline(),this.print_newline(!0))),this._flags.last_token.type===l.RESERVED||this._flags.last_token.type===l.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,w)||h(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===l.OPERATOR||"="===this._flags.last_token.text?this._output.space_before_token=!0:!this._flags.multiline_frame&&(y(this._flags.mode)||v(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===l.END_BLOCK?this._previous_flags.inline_frame?e="SPACE":!d(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===l.SEMICOLON&&"BlockStatement"===this._flags.mode?e="NEWLINE":this._flags.last_token.type===l.SEMICOLON&&y(this._flags.mode)?e="SPACE":this._flags.last_token.type===l.STRING?e="NEWLINE":this._flags.last_token.type===l.RESERVED||this._flags.last_token.type===l.WORD||"*"===this._flags.last_token.text&&(f(this._last_last_text,["function","yield"])||"ObjectLiteral"===this._flags.mode&&f(this._last_last_text,["{",","]))?e="SPACE":this._flags.last_token.type===l.START_BLOCK?e=this._flags.inline_frame?"SPACE":"NEWLINE":this._flags.last_token.type===l.END_EXPR&&(this._output.space_before_token=!0,e="NEWLINE"),d(t,u)&&")"!==this._flags.last_token.text&&(e=this._flags.inline_frame||"else"===this._flags.last_token.text||"export"===this._flags.last_token.text?"SPACE":"NEWLINE"),d(t,["else","catch","finally"])?(this._flags.last_token.type!==l.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?d(this._flags.last_token,p)||"declare"===this._flags.last_token.text&&d(t,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==l.END_EXPR?this._flags.last_token.type===l.START_EXPR&&d(t,["var","let","const"])||":"===this._flags.last_token.text||(h(t,"if")&&h(t.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(t,u)&&")"!==this._flags.last_token.text&&this.print_newline():this._flags.multiline_frame&&v(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!==l.WORD&&t.previous.type!==l.RESERVED||(this._output.space_before_token=!0),this.print_token(t),this._flags.last_word=t.text,t.type===l.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&&h(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&&h(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===l.WORD)||(this.start_of_statement(t)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(t),this._flags.last_token.type===l.RESERVED||this._flags.last_token.type===l.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===l.COMMA||this._flags.last_token.type===l.START_EXPR||this._flags.last_token.type===l.EQUALS||this._flags.last_token.type===l.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(t):!t.text.startsWith("`")||this._flags.last_token.type!==l.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?(y(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&&(d(this._flags.last_token,["function","yield"])||f(this._flags.last_token.type,[l.START_BLOCK,l.COMMA,l.END_BLOCK,l.SEMICOLON])),n=f(t.text,["-","+"])&&(f(this._flags.last_token.type,[l.START_BLOCK,l.START_EXPR,l.EQUALS,l.OPERATOR])||f(this._flags.last_token.text,u)||","===this._flags.last_token.text);if(this.start_of_statement(t)||this.handle_whitespace_and_comments(t,!e),d(this._flags.last_token,p))return this._output.space_before_token=!0,void this.print_token(t);if("*"!==t.text||this._flags.last_token.type!==l.DOT)if("::"!==t.text){if(this._flags.last_token.type===l.OPERATOR&&f(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!==l.START_BLOCK?(this.indent(),this.print_newline()):this._output.space_before_token=!0);var r=!0,i=!0,o=!1;if(":"===t.text?0===this._flags.ternary_depth?r=!1:(--this._flags.ternary_depth,o=!0):"?"===t.text&&(this._flags.ternary_depth+=1),!n&&!e&&this._options.preserve_newlines&&f(t.text,c)){var a=":"===t.text,s=a&&o,h=a&&!o;switch(this._options.operator_position){case g.before_newline:return this._output.space_before_token=!h,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 h||this.allow_wrap_or_preserved_newline(t),r=!(this._output.just_added_newline()||h),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,i=(e=this._tokens.peek())&&f(e.type,[l.WORD,l.RESERVED])):"..."===t.text?(this.allow_wrap_or_preserved_newline(t),r=this._flags.last_token.type===l.START_BLOCK,i=!1):(f(t.text,["--","++","!","~"])||n)&&(this._flags.last_token.type!==l.COMMA&&this._flags.last_token.type!==l.START_EXPR||this.allow_wrap_or_preserved_newline(t),i=r=!1,!t.newlines||"--"!==t.text&&"++"!==t.text||this.print_newline(!1,!0),";"===this._flags.last_token.text&&y(this._flags.mode)&&(r=!0),this._flags.last_token.type===l.RESERVED?r=!0:this._flags.last_token.type===l.END_EXPR?r=!("]"===this._flags.last_token.text&&("--"===t.text||"++"===t.text)):this._flags.last_token.type===l.OPERATOR&&(r=f(t.text,["--","-","++","+"])&&f(this._flags.last_token.text,["--","-","++","+"]),f(t.text,["+","-"])&&f(this._flags.last_token.text,["--","++"])&&(i=!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=i}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(o.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,i,a=function(t){for(var e=[],n=(t=t.replace(o.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,u=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),1this.__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.__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>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),o=(o="\\?\\.(?!\\d) "+(o=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |").replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")).replace(/ /g,"|");var m,b=new RegExp(o),v=(o=(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("^(?:"+o.join("|")+")$"));((o=function(t,e){i.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 u(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(d),punct:t.matching(b),comment:t.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:t.starting_with(/\/\*/).until_after(/\*\//),html_comment_start: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 i)._is_comment=function(t){return t.type===f.COMMENT||t.type===f.BLOCK_COMMENT||t.type===f.UNKNOWN},o.prototype._is_opening=function(t){return t.type===f.START_BLOCK||t.type===f.START_EXPR},o.prototype._is_closing=function(t,e){return(t.type===f.END_BLOCK||t.type===f.END_EXPR)&&e&&("]"===t.text&&"["===e.text||")"===t.text&&"("===e.text||"}"===t.text&&"{"===e.text)},o.prototype._reset=function(){m=!1},o.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(f.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(f.UNKNOWN,this._input.next())},o.prototype._read_word=function(t){var e=this.__patterns.identifier.read();return""!==e?(e=e.replace(s.allLineBreaks,"\n"),t.type!==f.DOT&&(t.type!==f.RESERVED||"set"!==t.text&&"get"!==t.text)&&v.test(e)?"in"===e||"of"===e?this._create_token(f.OPERATOR,e):this._create_token(f.RESERVED,e):this._create_token(f.WORD,e)):""!==(e=this.__patterns.number.read())?this._create_token(f.WORD,e):void 0},o.prototype._read_singles=function(t){var e=null;return"("===t||"["===t?e=this._create_token(f.START_EXPR,t):")"===t||"]"===t?e=this._create_token(f.END_EXPR,t):"{"===t?e=this._create_token(f.START_BLOCK,t):"}"===t?e=this._create_token(f.END_BLOCK,t):";"===t?e=this._create_token(f.SEMICOLON,t):"."===t&&g.test(this._input.peek(1))?e=this._create_token(f.DOT,t):","===t&&(e=this._create_token(f.COMMA,t)),e&&this._input.next(),e},o.prototype._read_punctuation=function(){var t=this.__patterns.punct.read();if(""!==t)return"="===t?this._create_token(f.EQUALS,t):"?."===t?this._create_token(f.DOT,t):this._create_token(f.OPERATOR,t)},o.prototype._read_non_javascript=function(t){var e="";if("#"===t){if(this._is_first_token()&&(e=this.__patterns.shebang.read()))return this._create_token(f.UNKNOWN,e.trim()+"\n");if(e=this.__patterns.include.read())return this._create_token(f.UNKNOWN,e.trim()+"\n");t=this._input.next();var n="#";if(this._input.hasNext()&&this._input.testChar(p)){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(f.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(f.COMMENT,e)}}else if(m&&"-"===t&&(e=this.__patterns.html_comment_end.read()))return m=!1,this._create_token(f.COMMENT,e);return null},o.prototype._read_comment=function(t){var e,n=null;return"/"===t&&(e="","*"===this._input.peek(1)?(e=this.__patterns.block_comment.read(),(t=h.get_directives(e))&&"start"===t.ignore&&(e+=h.readIgnored(this._input)),e=e.replace(s.allLineBreaks,"\n"),(n=this._create_token(f.BLOCK_COMMENT,e)).directives=t):"/"===this._input.peek(1)&&(e=this.__patterns.comment.read(),n=this._create_token(f.COMMENT,e))),n},o.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="",i=new r(t),o=null;i.hasNext();)if((o=i.match(/([\s]|[^\\]|\\\\)+/g))&&(n+=o[0]),"\\"===i.peek()){if(i.next(),"x"===i.peek())o=i.match(/x([0-9A-Fa-f]{2})/g);else{if("u"!==i.peek()){n+="\\",i.hasNext()&&(n+=i.next());continue}o=i.match(/u([0-9A-Fa-f]{4})/g)}if(!o)return t;if(126<(e=parseInt(o[1],16))&&e<=255&&0===o[0].indexOf("x"))return t;n+=0<=e&&e<32?"\\"+o[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(f.STRING,e)},o.prototype._allow_regexp_or_xml=function(t){return t.type===f.RESERVED&&l(t.text,["return","case","throw","else","do","typeof","yield"])||t.type===f.END_EXPR&&")"===t.text&&t.opened.previous.type===f.RESERVED&&l(t.opened.previous.text,["if","while","for"])||l(t.type,[f.COMMENT,f.START_EXPR,f.START_BLOCK,f.START,f.END_BLOCK,f.OPERATOR,f.EQUALS,f.EOF,f.SEMICOLON,f.COMMA])},o.prototype._read_regexp=function(t,e){if("/"===t&&this._allow_regexp_or_xml(e)){for(var n=this._input.next(),r=!1,i=!1;this._input.hasNext()&&(r||i||this._input.peek()!==t)&&!this._input.testChar(s.newline);)n+=this._input.peek(),r?r=!1:(r="\\"===this._input.peek(),"["===this._input.peek()?i=!0:"]"===this._input.peek()&&(i=!1)),this._input.next();return this._input.peek()===t&&(n+=this._input.next(),n+=this._input.read(s.identifier)),this._create_token(f.STRING,n)}return null},o.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 i=r[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),o=0===i.indexOf("{"),a=0;r;){var u=!!r[1],c=r[2];if(!r[r.length-1]&&"![CDATA["!==c.slice(0,8)&&(c===i||o&&c.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(u?--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(f.STRING,n)}}return null},o.prototype._read_string_recursive=function(t,e,n){var r,i;"'"===t?i=this.__patterns.single_quote:'"'===t?i=this.__patterns.double_quote:"`"===t?i=this.__patterns.template_text:"}"===t&&(i=this.__patterns.template_expression);for(var o=i.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()))),o+=a+=i.read()}return o},t.exports.Tokenizer=o,t.exports.TOKEN=f,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=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var r=n(8).InputScanner,i=n(3).Token,o=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 o,this._reset();for(var e=new i(s.START,""),n=null,r=[],a=new o;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 o),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 i(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/),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}/)}}(o.prototype=new r)._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},o.prototype.read_options=function(t){var e,n=this._create();for(e in i)n._disabled[e]=-1===t.templating.indexOf(e);return n._update(),n},o.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},o.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},o.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("|")+")")},o.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=o}],e={},r=function n(r){var i=e[r];return void 0!==i||(i=e[r]={exports:{}},t[r](i,i.exports,n)),i.exports}(0);n=r}();var o=n;void 0===(r=function(){return{js_beautify:o}}.apply(e,[]))||(t.exports=r)}()},function(t,e,n){var 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(){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||"",0this.__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.__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=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,i=n(17).Options;t.exports=function(t,e){return new r(t,e).beautify()},t.exports.defaultOptions=function(){return new i}},function(t,e,n){var r=n(17).Options,i=n(2).Output,o=n(8).InputScanner,a=new(n(13).Directives)(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,u=/\r\n|[\r\n]/g,c=/\s/,l=/(?:\s|\n)+/g,f=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,h=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function d(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}}d.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},d.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._nestedLevel):this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&b&&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(),"{"===d&&this._output.trim(!0),_=w=!1,v&&(this.outdent(),v=!1),this.print_string(this._ch),b=!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?!b&&!y||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(":"),v||(this._output.space_before_token=v=!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?(v&&(this.outdent(),v=!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||v||0!==m||w||_?this._output.space_before_token=!0:this._output.add_new_line()):">"!==this._ch&&"+"!==this._ch&&"~"!==this._ch||v||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=d},function(t,e,n){var r=n(6).Options;function i(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;ne[1]?1:-1}t.exports=function(t,e){switch(e){case"natural":return t.sort(i);case"standard":return t.sort(o);case"none":case!1:return t}}},function(t,e,n){var r=n(105).Spaces,i=n(16),o=n(106),a=/[\s"'][iI]\s*\]/,s=/([\d\w])([iI])\]/g,u=/="([a-zA-Z][a-zA-Z\d\-_]+)"([iI])/g,c=/="([a-zA-Z][a-zA-Z\d\-_]+)"(\s|\])/g,l=/^(?:(?:)\s*)+/,f=/='([a-zA-Z][a-zA-Z\d\-_]+)'([iI])/g,h=/='([a-zA-Z][a-zA-Z\d\-_]+)'(\s|\])/g,d=/[>\+~]/,p=/\s/;t.exports=function(t,e,n,g,m){var b=[],v=[];function y(t,e){return m.push("HTML comment '"+e+"' at "+o(t[2][0])+". Removing."),""}for(var _=0,w=t.length;_~]/.test(i(e[1])),u=0,c=e[2].length;ut.length)&&(e=t.length);for(var n=0,r=new Array(e);n")?"".concat(c,""):c;c=t(c,s(s({},n),{},{filePath:o,actualPath:o}),[].concat(i(R.includedIn),[{file:R.absoluteFilePath,line:r}])),o=function(t){var e=1t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=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,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,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(o);try{for(b.s();!(m=b.n()).done;){var v=m.value;u.push.apply(u,r(t(v,n)))}}catch(e){b.e(e)}finally{b.f()}}return u},Object.defineProperty(e,"rulesCollection",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"registerRule",{enumerable:!0,get:function(){return l.registerRule}}),Object.defineProperty(e,"dependencies",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"registerDependencies",{enumerable:!0,get:function(){return f.registerDependencies}}),Object.defineProperty(e,"assignDependencies",{enumerable:!0,get:function(){return f.assignDependencies}}),e.formatValidationError=void 0,c=c(n(64));var l=u(n(653)),f=u(n(659)),h=["mjml"];c=c.default,e.formatValidationError=c},function(t,e){t.exports=function(t){return null==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 i=n(95),o=n(38),a=n(92),s=n(21);t.exports=function(t,e,n){if(!s(n))return!1;var u=r(e);return!!("number"==u?o(n)&&a(e,n.length):"string"==u&&e in n)&&i(n[e],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=181},function(t,e,n){"use strict";var r=n(1),i=n(304),o=n(5).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<>>32-e}function c(t,e,n,r,i,o,a){return u(t+(e&n|~e&r)+i+o|0,a)+e|0}function l(t,e,n,r,i,o,a){return u(t+(e&r|n&~r)+i+o|0,a)+e|0}function f(t,e,n,r,i,o,a){return u(t+(e^n^r)+i+o|0,a)+e|0}function h(t,e,n,r,i,o,a){return u(t+(n^(e|~r))+i+o|0,a)+e|0}r(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=c(this._a,o=this._b,i=this._c,r=this._d,t[0],3614090360,7),r=c(r,n,o,i,t[1],3905402710,12),i=c(i,r,n,o,t[2],606105819,17),o=c(o,i,r,n,t[3],3250441966,22);n=c(n,o,i,r,t[4],4118548399,7),r=c(r,n,o,i,t[5],1200080426,12),i=c(i,r,n,o,t[6],2821735955,17),o=c(o,i,r,n,t[7],4249261313,22),n=c(n,o,i,r,t[8],1770035416,7),r=c(r,n,o,i,t[9],2336552879,12),i=c(i,r,n,o,t[10],4294925233,17),o=c(o,i,r,n,t[11],2304563134,22),n=c(n,o,i,r,t[12],1804603682,7),r=c(r,n,o,i,t[13],4254626195,12),i=c(i,r,n,o,t[14],2792965006,17),n=l(n,o=c(o,i,r,n,t[15],1236535329,22),i,r,t[1],4129170786,5),r=l(r,n,o,i,t[6],3225465664,9),i=l(i,r,n,o,t[11],643717713,14),o=l(o,i,r,n,t[0],3921069994,20),n=l(n,o,i,r,t[5],3593408605,5),r=l(r,n,o,i,t[10],38016083,9),i=l(i,r,n,o,t[15],3634488961,14),o=l(o,i,r,n,t[4],3889429448,20),n=l(n,o,i,r,t[9],568446438,5),r=l(r,n,o,i,t[14],3275163606,9),i=l(i,r,n,o,t[3],4107603335,14),o=l(o,i,r,n,t[8],1163531501,20),n=l(n,o,i,r,t[13],2850285829,5),r=l(r,n,o,i,t[2],4243563512,9),i=l(i,r,n,o,t[7],1735328473,14),n=f(n,o=l(o,i,r,n,t[12],2368359562,20),i,r,t[5],4294588738,4),r=f(r,n,o,i,t[8],2272392833,11),i=f(i,r,n,o,t[11],1839030562,16),o=f(o,i,r,n,t[14],4259657740,23),n=f(n,o,i,r,t[1],2763975236,4),r=f(r,n,o,i,t[4],1272893353,11),i=f(i,r,n,o,t[7],4139469664,16),o=f(o,i,r,n,t[10],3200236656,23),n=f(n,o,i,r,t[13],681279174,4),r=f(r,n,o,i,t[0],3936430074,11),i=f(i,r,n,o,t[3],3572445317,16),o=f(o,i,r,n,t[6],76029189,23),n=f(n,o,i,r,t[9],3654602809,4),r=f(r,n,o,i,t[12],3873151461,11),i=f(i,r,n,o,t[15],530742520,16),n=h(n,o=f(o,i,r,n,t[2],3299628645,23),i,r,t[0],4096336452,6),r=h(r,n,o,i,t[7],1126891415,10),i=h(i,r,n,o,t[14],2878612391,15),o=h(o,i,r,n,t[5],4237533241,21),n=h(n,o,i,r,t[12],1700485571,6),r=h(r,n,o,i,t[3],2399980690,10),i=h(i,r,n,o,t[10],4293915773,15),o=h(o,i,r,n,t[1],2240044497,21),n=h(n,o,i,r,t[8],1873313359,6),r=h(r,n,o,i,t[15],4264355552,10),i=h(i,r,n,o,t[6],2734768916,15),o=h(o,i,r,n,t[13],1309151649,21),n=h(n,o,i,r,t[4],4149444226,6),r=h(r,n,o,i,t[11],3174756917,10),i=h(i,r,n,o,t[2],718787259,15),o=h(o,i,r,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+o|0,this._c=this._c+i|0,this._d=this._d+r|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,56>>32-e}function g(t,e,n,r,i,o,a,s){return p(t+(e^n^r)+o+a|0,s)+i|0}function m(t,e,n,r,i,o,a,s){return p(t+(e&n|~e&r)+o+a|0,s)+i|0}function b(t,e,n,r,i,o,a,s){return p(t+((e|~n)^r)+o+a|0,s)+i|0}function v(t,e,n,r,i,o,a,s){return p(t+(e&r|n&~r)+o+a|0,s)+i|0}function y(t,e,n,r,i,o,a,s){return p(t+(e^(n|~r))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,_=0|this._a,w=0|this._b,x=0|this._c,O=0|this._d,E=0|this._e,k=0;k<80;k+=1){var T,S=k<16?(T=g(n,r,i,o,d,t[s[k]],f[0],c[k]),y(_,w,x,O,E,t[u[k]],h[0],l[k])):k<32?(T=m(n,r,i,o,d,t[s[k]],f[1],c[k]),v(_,w,x,O,E,t[u[k]],h[1],l[k])):k<48?(T=b(n,r,i,o,d,t[s[k]],f[2],c[k]),b(_,w,x,O,E,t[u[k]],h[2],l[k])):k<64?(T=v(n,r,i,o,d,t[s[k]],f[3],c[k]),m(_,w,x,O,E,t[u[k]],h[3],l[k])):(T=y(n,r,i,o,d,t[s[k]],f[4],c[k]),g(_,w,x,O,E,t[u[k]],h[4],l[k]));n=d,d=o,o=p(i,10),i=r,r=T,_=E,E=O,O=p(x,10),x=w,w=S}var C=this._b+i+O|0;this._b=this._c+o+E|0,this._c=this._d+d+_|0,this._d=this._e+n+w|0,this._e=this._a+r+x|0,this._a=C},d.prototype._digest=function(){this._block[this._blockOffset++]=128,56":"child","<":"parent","~":"sibling","+":"adjacent"},u={"#":["id","equals"],".":["class","element"]},c=new Set(["has","not","matches","is","host","host-context"]),l=new Set(r(["descendant"],Object.keys(s).map((function(t){return s[t]})))),f=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 h(t){return l.has(t.type)}e.isTraversal=h;var d=new Set(["contains","icontains"]),p=new Set(['"',"'"]);function g(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 m(t){return t.replace(o,g)}function b(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function v(t,e){if(0"}(e);case s.Comment:return function(t){return"\x3c!--"+t.data+"--\x3e"}(e);case s.CDATA:return function(t){return""}(e);case s.Script:case s.Style:case s.Tag:return function(e,n){"foreign"===n.xmlMode&&(e.name=null!==(o=c.elementNames.get(e.name))&&void 0!==o?o:e.name,e.parent&&h.has(e.parent.name)&&(n=r(r({},n),{xmlMode:!1}))),!n.xmlMode&&d.has(e.name)&&(n=r(r({},n),{xmlMode:"foreign"}));var i="<"+e.name,o=function(t,e){if(t)return Object.keys(t).map((function(n){var r,i=null!==(r=t[n])&&void 0!==r?r:"";return"foreign"===e.xmlMode&&(n=null!==(r=c.attributeNames.get(n))&&void 0!==r?r:n),e.emptyAttrs||e.xmlMode||""!==i?n+'="'+(!1!==e.decodeEntities?u.encodeXML(i):i.replace(/"/g,"""))+'"':n})).join(" ")}(e.attribs,n);return o&&(i+=" "+o),0===e.children.length&&(n.xmlMode?!1!==n.selfClosingTags:n.selfClosingTags&&f.has(e.name))?(n.xmlMode||(i+=" "),i+="/>"):(i+=">",0")),i}(e,n);case s.Text:return function(t,e){var n=t.data||"";return!1===e.decodeEntities||!e.xmlMode&&t.parent&&l.has(t.parent.name)?n:u.encodeXML(n)}(e,n)}}(i[a],n);return o};var h=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),d=new Set(["svg","math"])},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.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var i=r(n(102)),o=r(n(142)),a=r(n(103)),s=r(n(143)),u=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;function c(t){var e=f(t);return function(t){return String(t).replace(u,e)}}function l(t,e){return tthis.sectionStart&&this.cbs.ontext(this.getSection()),this._state=2,this.sectionStart=this._index):!this.decodeEntities||"&"!==t||1!==this.special&&4!==this.special||(this._index>this.sectionStart&&this.cbs.ontext(this.getSection()),this.baseState=1,this._state=62,this.sectionStart=this._index)},H.prototype.isTagStartChar=function(t){return c(t)||this.xmlMode&&!u(t)&&"/"!==t&&">"!==t},H.prototype.stateBeforeTagName=function(t){"/"===t?this._state=5:"<"===t?(this.cbs.ontext(this.getSection()),this.sectionStart=this._index):">"===t||1!==this.special||u(t)?this._state=1:"!"===t?(this._state=15,this.sectionStart=this._index+1):"?"===t?(this._state=17,this.sectionStart=this._index+1):this.isTagStartChar(t)?(this._state=this.xmlMode||"s"!==t&&"S"!==t?this.xmlMode||"t"!==t&&"T"!==t?3:52:32,this.sectionStart=this._index):this._state=1},H.prototype.stateInTagName=function(t){"/"!==t&&">"!==t&&!u(t)||(this.emitToken("onopentagname"),this._state=8,this._index--)},H.prototype.stateBeforeClosingTagName=function(t){u(t)||(">"===t?this._state=1:1!==this.special?4===this.special||"s"!==t&&"S"!==t?4!==this.special||"t"!==t&&"T"!==t?(this._state=1,this._index--):this._state=53:this._state=33:(this.isTagStartChar(t)?this._state=6:this._state=20,this.sectionStart=this._index))},H.prototype.stateInClosingTagName=function(t){">"!==t&&!u(t)||(this.emitToken("onclosetag"),this._state=7,this._index--)},H.prototype.stateAfterClosingTagName=function(t){">"===t&&(this._state=1,this.sectionStart=this._index+1)},H.prototype.stateBeforeAttributeName=function(t){">"===t?(this.cbs.onopentagend(),this._state=1,this.sectionStart=this._index+1):"/"===t?this._state=4:u(t)||(this._state=9,this.sectionStart=this._index)},H.prototype.stateInSelfClosingTag=function(t){">"===t?(this.cbs.onselfclosingtag(),this._state=1,this.sectionStart=this._index+1,this.special=1):u(t)||(this._state=8,this._index--)},H.prototype.stateInAttributeName=function(t){"="!==t&&"/"!==t&&">"!==t&&!u(t)||(this.cbs.onattribname(this.getSection()),this.sectionStart=-1,this._state=10,this._index--)},H.prototype.stateAfterAttributeName=function(t){"="===t?this._state=11:"/"===t||">"===t?(this.cbs.onattribend(void 0),this._state=8,this._index--):u(t)||(this.cbs.onattribend(void 0),this._state=9,this.sectionStart=this._index)},H.prototype.stateBeforeAttributeValue=function(t){'"'===t?(this._state=12,this.sectionStart=this._index+1):"'"===t?(this._state=13,this.sectionStart=this._index+1):u(t)||(this._state=14,this.sectionStart=this._index,this._index--)},H.prototype.handleInAttributeValue=function(t,e){t===e?(this.emitToken("onattribdata"),this.cbs.onattribend(e),this._state=8):this.decodeEntities&&"&"===t&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},H.prototype.stateInAttributeValueDoubleQuotes=function(t){this.handleInAttributeValue(t,'"')},H.prototype.stateInAttributeValueSingleQuotes=function(t){this.handleInAttributeValue(t,"'")},H.prototype.stateInAttributeValueNoQuotes=function(t){u(t)||">"===t?(this.emitToken("onattribdata"),this.cbs.onattribend(null),this._state=8,this._index--):this.decodeEntities&&"&"===t&&(this.emitToken("onattribdata"),this.baseState=this._state,this._state=62,this.sectionStart=this._index)},H.prototype.stateBeforeDeclaration=function(t){this._state="["===t?23:"-"===t?18:16},H.prototype.stateInDeclaration=function(t){">"===t&&(this.cbs.ondeclaration(this.getSection()),this._state=1,this.sectionStart=this._index+1)},H.prototype.stateInProcessingInstruction=function(t){">"===t&&(this.cbs.onprocessinginstruction(this.getSection()),this._state=1,this.sectionStart=this._index+1)},H.prototype.stateBeforeComment=function(t){"-"===t?(this._state=19,this.sectionStart=this._index+1):this._state=16},H.prototype.stateInComment=function(t){"-"===t&&(this._state=21)},H.prototype.stateInSpecialComment=function(t){">"===t&&(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index)),this._state=1,this.sectionStart=this._index+1)},H.prototype.stateAfterComment1=function(t){this._state="-"===t?22:19},H.prototype.stateAfterComment2=function(t){">"===t?(this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"-"!==t&&(this._state=19)},H.prototype.stateBeforeCdata6=function(t){"["===t?(this._state=29,this.sectionStart=this._index+1):(this._state=16,this._index--)},H.prototype.stateInCdata=function(t){"]"===t&&(this._state=30)},H.prototype.stateAfterCdata1=function(t){this._state="]"===t?31:29},H.prototype.stateAfterCdata2=function(t){">"===t?(this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2)),this._state=1,this.sectionStart=this._index+1):"]"!==t&&(this._state=29)},H.prototype.stateBeforeSpecialS=function(t){"c"===t||"C"===t?this._state=34:"t"===t||"T"===t?this._state=44:(this._state=3,this._index--)},H.prototype.stateBeforeSpecialSEnd=function(t){2!==this.special||"c"!==t&&"C"!==t?3!==this.special||"t"!==t&&"T"!==t?this._state=1:this._state=48:this._state=39},H.prototype.stateBeforeSpecialLast=function(t,e){"/"!==t&&">"!==t&&!u(t)||(this.special=e),this._state=3,this._index--},H.prototype.stateAfterSpecialLast=function(t,e){">"===t||u(t)?(this.special=1,this._state=6,this.sectionStart=this._index-e,this._index--):this._state=1},H.prototype.parseFixedEntity=function(t){var e;void 0===t&&(t=(this.xmlMode?s:o).default),this.sectionStart+1t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new i(o.length),s=0;st._pos&&(t.push(new i(new Uint8Array(c.result.slice(t._pos)))),t._pos=c.result.byteLength)},c.onload=function(){t.push(null)},c.readAsArrayBuffer(n)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,n(9),n(12),n(11).Buffer)},function(t,e,n){"use strict";(function(e,r){var i=n(111);t.exports=b;var o,a=n(253);function s(t,e){return t.listeners(e).length}b.ReadableState=m,n(32).EventEmitter;var u=n(268),c=n(163).Buffer,l=e.Uint8Array||function(){},f=Object.create(n(78));f.inherits=n(1),e=n(554);var h,d=void 0,p=(d=e&&e.debuglog?e.debuglog("stream"):function(){},n(555));e=n(269),f.inherits(b,u);var g=["error","close","destroy","pause","resume"];function m(t,e){var r=e instanceof(o=o||n(42));this.objectMode=!!(t=t||{}).objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark;e=this.objectMode?16:16384,this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:e,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new p,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&&(h=h||n(43).StringDecoder,this.decoder=new h(t.encoding),this.encoding=t.encoding)}function b(t){if(o=o||n(42),!(this instanceof b))return new b(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)),u.call(this)}function v(t,e,n,r,i){var o,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)):(o=i?o:function(t,e){return function(t){return c.isBuffer(t)||t instanceof l}(e)||"string"==typeof e||void 0===e||t.objectMode?undefined:new TypeError("Invalid non-string/buffer chunk")}(a,e))?t.emit("error",o):a.objectMode||e&&0e.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||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(x,t):x(t))}function x(t){d("emit readable"),t.emit("readable"),S(t)}function O(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(E,t,e))}function E(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=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 to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0==(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n).data=o.slice(a);break}++r}return e.length-=r,i}:function(t,e){var n=c.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0==(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r).data=o.slice(a);break}++i}return e.length-=i,n})(t,e),r}(t,e.buffer,e.decoder),n);var n}function A(t){var e=t._readableState;if(0=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),(0===e.length&&e.ended?A:w)(this),null;if(0===(t=_(t,e))&&e.ended)return 0===e.length&&A(this),null;var r=e.needReadable;return d("need readable",r),(0===e.length||e.length-t>>=5)&&(e|=32),n+=r.encode(e),0>1;return 1&~t?e:-e}(s),n.rest=e}},function(t,e,n){var r=n(79),i=Object.prototype.hasOwnProperty,o="undefined"!=typeof Map;function a(){this._array=[],this._set=o?new Map:Object.create(null)}a.fromArray=function(t,e){for(var n=new a,r=0,i=t.length;rthis._sectionStart&&this._cbs.ontext(this._getSection()),this._state=2,this._sectionStart=this._index):this._decodeEntities&&1===this._special&&"&"===t&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=1,this._state=51,this._sectionStart=this._index)},P.prototype._stateBeforeTagName=function(t){"/"===t?this._state=5:"<"===t?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===t||1!==this._special||u(t)?this._state=1:"!"===t?(this._state=15,this._sectionStart=this._index+1):"?"===t?(this._state=17,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==t&&"S"!==t?3:31,this._sectionStart=this._index)},P.prototype._stateInTagName=function(t){"/"!==t&&">"!==t&&!u(t)||(this._emitToken("onopentagname"),this._state=8,this._index--)},P.prototype._stateBeforeClosingTagName=function(t){u(t)||(">"===t?this._state=1:1!==this._special?"s"===t||"S"===t?this._state=32:(this._state=1,this._index--):(this._state=6,this._sectionStart=this._index))},P.prototype._stateInClosingTagName=function(t){">"!==t&&!u(t)||(this._emitToken("onclosetag"),this._state=7,this._index--)},P.prototype._stateAfterClosingTagName=function(t){">"===t&&(this._state=1,this._sectionStart=this._index+1)},P.prototype._stateBeforeAttributeName=function(t){">"===t?(this._cbs.onopentagend(),this._state=1,this._sectionStart=this._index+1):"/"===t?this._state=4:u(t)||(this._state=9,this._sectionStart=this._index)},P.prototype._stateInSelfClosingTag=function(t){">"===t?(this._cbs.onselfclosingtag(),this._state=1,this._sectionStart=this._index+1):u(t)||(this._state=8,this._index--)},P.prototype._stateInAttributeName=function(t){"="!==t&&"/"!==t&&">"!==t&&!u(t)||(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=10,this._index--)},P.prototype._stateAfterAttributeName=function(t){"="===t?this._state=11:"/"===t||">"===t?(this._cbs.onattribend(),this._state=8,this._index--):u(t)||(this._cbs.onattribend(),this._state=9,this._sectionStart=this._index)},P.prototype._stateBeforeAttributeValue=function(t){'"'===t?(this._state=12,this._sectionStart=this._index+1):"'"===t?(this._state=13,this._sectionStart=this._index+1):u(t)||(this._state=14,this._sectionStart=this._index,this._index--)},P.prototype._stateInAttributeValueDoubleQuotes=function(t){'"'===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},P.prototype._stateInAttributeValueSingleQuotes=function(t){"'"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},P.prototype._stateInAttributeValueNoQuotes=function(t){u(t)||">"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=8,this._index--):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=51,this._sectionStart=this._index)},P.prototype._stateBeforeDeclaration=function(t){this._state="["===t?22:"-"===t?18:16},P.prototype._stateInDeclaration=function(t){">"===t&&(this._cbs.ondeclaration(this._getSection()),this._state=1,this._sectionStart=this._index+1)},P.prototype._stateInProcessingInstruction=function(t){">"===t&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=1,this._sectionStart=this._index+1)},P.prototype._stateBeforeComment=function(t){"-"===t?(this._state=19,this._sectionStart=this._index+1):this._state=16},P.prototype._stateInComment=function(t){"-"===t&&(this._state=20)},P.prototype._stateAfterComment1=function(t){this._state="-"===t?21:19},P.prototype._stateAfterComment2=function(t){">"===t?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"-"!==t&&(this._state=19)},P.prototype._stateBeforeCdata6=function(t){"["===t?(this._state=28,this._sectionStart=this._index+1):(this._state=16,this._index--)},P.prototype._stateInCdata=function(t){"]"===t&&(this._state=29)},P.prototype._stateAfterCdata1=function(t){this._state="]"===t?30:28},P.prototype._stateAfterCdata2=function(t){">"===t?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=1,this._sectionStart=this._index+1):"]"!==t&&(this._state=28)},P.prototype._stateBeforeSpecial=function(t){"c"===t||"C"===t?this._state=33:"t"===t||"T"===t?this._state=43:(this._state=3,this._index--)},P.prototype._stateBeforeSpecialEnd=function(t){2!==this._special||"c"!==t&&"C"!==t?3!==this._special||"t"!==t&&"T"!==t?this._state=1:this._state=47:this._state=38},P.prototype._stateBeforeScript5=function(t){"/"!==t&&">"!==t&&!u(t)||(this._special=2),this._state=3,this._index--},P.prototype._stateAfterScript5=function(t){">"===t||u(t)?(this._special=1,this._state=6,this._sectionStart=this._index-6,this._index--):this._state=1},P.prototype._stateBeforeStyle4=function(t){"/"!==t&&">"!==t&&!u(t)||(this._special=3),this._state=3,this._index--},P.prototype._stateAfterStyle4=function(t){">"===t||u(t)?(this._special=1,this._state=6,this._sectionStart=this._index-5,this._index--):this._state=1},P.prototype._parseNamedEntityStrict=function(){var t,e;this._sectionStart+1t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},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,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,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;t[a.componentName||(0,o.default)(a.name)]=a}}catch(t){i.e(t)}finally{i.f()}}e.default=a},function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n(65),e.createHash=e.Hash=n(83),e.createHmac=e.Hmac=n(313);var r=n(718),i=(r=Object.keys(r),["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(r));e.getHashes=function(){return i},r=n(316),e.pbkdf2=r.pbkdf2,e.pbkdf2Sync=r.pbkdf2Sync,r=n(720),e.Cipher=r.Cipher,e.createCipher=r.createCipher,e.Cipheriv=r.Cipheriv,e.createCipheriv=r.createCipheriv,e.Decipher=r.Decipher,e.createDecipher=r.createDecipher,e.Decipheriv=r.Decipheriv,e.createDecipheriv=r.createDecipheriv,e.getCiphers=r.getCiphers,e.listCiphers=r.listCiphers,r=n(735),e.DiffieHellmanGroup=r.DiffieHellmanGroup,e.createDiffieHellmanGroup=r.createDiffieHellmanGroup,e.getDiffieHellman=r.getDiffieHellman,e.createDiffieHellman=r.createDiffieHellman,e.DiffieHellman=r.DiffieHellman,r=n(740),e.createSign=r.createSign,e.Sign=r.Sign,e.createVerify=r.createVerify,e.Verify=r.Verify,e.createECDH=n(781),r=n(782),e.publicEncrypt=r.publicEncrypt,e.privateEncrypt=r.privateEncrypt,e.publicDecrypt=r.publicDecrypt,e.privateDecrypt=r.privateDecrypt,n=n(785),e.randomFill=n.randomFill,e.randomFillSync=n.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,n){"use strict";var r=n(5).Buffer,i=n(700).Transform;function o(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(1)(o,i),o.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!r.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer")}(t),this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;oe.highWaterMark&&(e.highWaterMark=function(t){return 1073741824<=t?t=1073741824:(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 S(t){var e=t._readableState;d("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(C,t))}function C(t){var e=t._readableState;d("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function A(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function D(t){var e=t._readableState;d("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(I,e,t))}function I(t,e){d("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"),!t.autoDestroy||(!(t=e._writableState)||t.autoDestroy&&t.finished)&&e.destroy())}function B(t,e){for(var n=0,r=t.length;n=e.highWaterMark:0>>17|t<<15)^(t>>>19|t<<13)^t>>>10}(e[f-2])+e[f-7]+function(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}(e[f-15])+e[f-16]|0;for(var h=0;h<64;++h){var d=l+function(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}(s)+function(t,e,n){return n^t&(e^n)}(s,u,c)+a[h]+e[h]|0,p=function(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}(n)+function(t,e,n){return t&e|n&(t|e)}(n,r,i)|0;l=c,c=u,u=s,s=o+d|0,o=i,i=r,r=n,n=d+p|0}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=u+this._f|0,this._g=c+this._g|0,this._h=l+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},function(t,e,n){var r=n(1),i=n(68),o=n(5).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function f(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return t>>>0>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,p=0|this._gh,g=0|this._hh,m=0|this._al,b=0|this._bl,v=0|this._cl,y=0|this._dl,_=0|this._el,w=0|this._fl,x=0|this._gl,O=0|this._hl,E=0;E<32;E+=2)e[E]=t.readInt32BE(4*E),e[E+1]=t.readInt32BE(4*E+4);for(;E<160;E+=2){var k=function(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}(P=e[E-30],M=e[E-30+1]),T=function(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}(M,P),S=function(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}(P=e[E-4],M=e[E-4+1]),C=function(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}(M,P),A=e[E-14],j=e[E-14+1],M=e[E-32],P=e[E-32+1],R=(R=(R=k+A+d(L=T+j|0,T)|0)+S+d(L=L+C|0,C)|0)+M+d(L=L+P|0,P)|0;e[E]=R,e[E+1]=L}for(var N=0;N<160;N+=2){R=e[N];var L=e[N+1],D=l(n,r,i),I=l(m,b,v),B=f(n,m),F=f(m,n),U=h(s,_),H=h(_,s),z=a[N+1],q=c(s,u,p),V=c(_,w,x);U=(((g+U+d(H=O+H|0,O)|0)+q+d(H=H+V|0,V)|0)+a[N]+d(H=H+z|0,z)|0)+R+d(H=H+L|0,L)|0,F=B+D+d(I=F+I|0,F)|0,g=p,O=x,p=u,x=w,u=s,w=_,s=o+U+d(_=y+H|0,y)|0,o=i,y=v,i=r,v=b,r=n,b=m,n=U+F+d(m=H+I|0,H)|0}this._al=this._al+m|0,this._bl=this._bl+b|0,this._cl=this._cl+v|0,this._dl=this._dl+y|0,this._el=this._el+_|0,this._fl=this._fl+w|0,this._gl=this._gl+x|0,this._hl=this._hl+O|0,this._ah=this._ah+n+d(this._al,m)|0,this._bh=this._bh+r+d(this._bl,b)|0,this._ch=this._ch+i+d(this._cl,v)|0,this._dh=this._dh+o+d(this._dl,y)|0,this._eh=this._eh+s+d(this._el,_)|0,this._fh=this._fh+u+d(this._fl,w)|0,this._gh=this._gh+p+d(this._gl,x)|0,this._hh=this._hh+g+d(this._hl,O)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},function(t,e,n){"use strict";var r=n(1),i=n(717),o=n(35),a=n(5).Buffer,s=n(314),u=n(184),c=n(185),l=a.alloc(128);function f(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;this._alg=t,(this._key=e).length>n?e=("rmd160"===t?new u:c(t)).update(e).digest():e.lengthu?e=s(e):e.length>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){for(var i=0,o=0,a=6;0<=a;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;0<=a;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},e.rip=function(t,e,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;0<=s;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;0<=s;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.pc1=function(t,e,n,r){for(var i=0,o=0,a=7;5<=a;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u>>r[u]&1;for(u=s;u>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},e.expand=function(t,e,n){for(var r=0,i=0,o=(r=(1&t)<<5|t>>>27,23);15<=o;o-=4)r<<=6,r|=t>>>o&63;for(o=11;3<=o;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,r=0;r<4;r++)n<<=4,n|=i[64*r+(t>>>18-6*r&63)];for(r=0;r<4;r++)n<<=4,n|=i[256+64*r+(e>>>18-6*r&63)];return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n>>o[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var r=t.toString(2);r.length>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,t.keys,a)}},u.prototype._update=function(t,e,n,r){var i=this._desState,a=o.readUInt32BE(t,e);e=o.readUInt32BE(t,e+4),o.ip(a,e,i.tmp,0),a=i.tmp[0],e=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,e,i.tmp,0):this._decrypt(i,a,e,i.tmp,0),a=i.tmp[0],e=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,e,r+4)},u.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r>>0,a=l}o.rip(s,a,r,i)},u.prototype._decrypt=function(t,e,n,r,i){for(var a=n,s=e,u=t.keys.length-2;0<=u;u-=2){var c=t.keys[u],l=t.keys[u+1];o.expand(a,t.tmp,0),c^=t.tmp[0],l^=t.tmp[1],c=o.substitute(c,l),l=a,a=(s^o.permute(c))>>>0,s=l}o.rip(a,s,r,i)}},function(t,e,n){var r=n(84),i=n(5).Buffer,o=n(324);e.encrypt=function(t,e){var n=Math.ceil(e.length/16),a=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*n)]);for(var s=0;st;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(u),e.cmp(u)){if(!e.cmp(c))for(;n.mod(l).cmp(f);)n.iadd(d)}else for(;n.mod(o).cmp(h);)n.iadd(d);if(g(p=n.shrn(1))&&g(n)&&m(p)&&m(n)&&a.test(p)&&a.test(n))return n}}},function(t,e,n){var r=n(15),i=n(189);function o(t){this.rand=t||new i.Rand}(t.exports=o).create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var i=new r(this.rand.generate(n))}while(0<=i.cmp(t));return i},o.prototype._randrange=function(t,e){return e=e.sub(t),t.add(this._randbelow(e))},o.prototype.test=function(t,e,n){var i=t.bitLength(),o=r.mont(t),a=new r(1).toRed(o);e=e||Math.max(1,i/48|0);for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var c=t.shrn(u),l=s.toRed(o);0e.highWaterMark&&(e.highWaterMark=function(t){return 1073741824<=t?t=1073741824:(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 S(t){var e=t._readableState;d("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(C,t))}function C(t){var e=t._readableState;d("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function A(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(j,t,e))}function j(t,e){for(;!e.reading&&!e.ended&&(e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function D(t){var e=t._readableState;d("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(I,e,t))}function I(t,e){d("endReadableNT",t.endEmitted,t.length),t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"),!t.autoDestroy||(!(t=e._writableState)||t.autoDestroy&&t.finished)&&e.destroy())}function B(t,e){for(var n=0,r=t.length;n=e.highWaterMark:0>8,o=255&o;i?n.push(i,o):n.push(o)}return n},e.zero2=r,e.toHex=i,e.encode=function(t,e){return"hex"===e?i(t):t}},function(t,e,n){"use strict";e.base=n(117),e.short=n(753),e.mont=n(754),e.edwards=n(755)},function(t,e,n){"use strict";var r=n(24).rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?e^n^r:2===t?o(e,n,r):void 0},e.ch32=i,e.maj32=o,e.p32=function(t,e,n){return t^e^n},e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,n){"use strict";var r=n(24),i=n(85),o=n(338),a=n(19),s=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,d=o.s1_256,p=o.g0_256,g=o.g1_256,m=i.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}r.inherits(v,m),(t.exports=v).blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r>>26-s&67108863,26<=(s+=24)&&(s-=26,r++);else if("le"===n)for(r=a=0;a>>26-s&67108863,26<=(s+=24)&&(s-=26,r++);return this._strip()},a.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r>>26):o+=8;this._strip()},a.prototype._parseBase=function(t,e,n){this.words=[0];for(var r=0,i=this.length=1;i<=67108863;i*=e)r++;i=i/e|0;for(var o=t.length-n,a=o%--r,s=Math.min(o,o-a)+n,u=0,c=n;c"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0,i=(r=(n.length=r)-1|0,(a=(0|t.words[0])*(0|e.words[0]))/67108864|0);n.words[0]=67108863&a;for(var o=1;o>>26,u=67108863&i,c=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=c;l++)s+=(a=(0|t.words[o-l|0])*(0|e.words[l])+u)/67108864|0,u=67108863&a;n.words[o]=0|u,i=0|s}return 0!==i?n.words[o]=0|i:n.length--,n._strip()}a.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var n="",r=0,o=0,a=0;a>>24-r&16777215)||a!==this.length-1?d[6-u.length]+u+n:u+n,26<=(r+=2)&&(r-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative?"-"+n:n}if(t===(0|t)&&2<=t&&t<=36){var c=p[t],l=g[t];for(n="",(f=this.clone()).negative=0;!f.isZero();){var f,h=f.modrn(l).toString(t);n=(f=f.idivn(l)).isZero()?h+n:d[c-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative?"-"+n:n}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2>8&255),n>16&255),6===o?(n>24&255),o=r=0):(r=a>>>24,o+=2)}if(n>8&255),0<=n&&(t[n--]=a>>16&255),6===o?(0<=n&&(t[n--]=a>>24&255),o=r=0):(r=a>>>24,o+=2)}if(0<=n)for(t[n--]=r;0<=n;)t[n--]=0},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t;return t=0,4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t;return t=0,!(8191&e)&&(t+=13,e>>>=13),!(127&e)&&(t+=7,e>>>=7),!(15&e)&&(t+=4,e>>>=4),!(3&e)&&(t+=2,e>>>=2),!(1&e)&&t++,t},a.prototype.bitLength=function(){var t=this.words[this.length-1];return t=this._countBits(t),26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){for(var e,n=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0>26-t),this._strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&0<=t);var n=t/26|0;return t%=26,this._expand(1+n),this.words[n]=e?this.words[n]|1<t.length?(n=this,t):(n=t,this),i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var i=0>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,c=8191&(W=0|r[1]),l=W>>>13,f=8191&(K=0|r[2]),h=K>>>13,d=0|r[3],p=8191&d,g=d>>>13,m=8191&(G=0|r[4]),b=G>>>13,v=8191&($=0|r[5]),y=$>>>13,_=0|r[6],w=8191&_,x=_>>>13,O=8191&(Y=0|r[7]),E=Y>>>13,k=8191&(X=0|r[8]),T=X>>>13,S=8191&(Z=0|r[9]),C=Z>>>13,A=8191&(Q=0|i[0]),j=Q>>>13,M=0|i[1],P=8191&M,R=M>>>13,N=0|i[2],L=8191&N,D=N>>>13,I=8191&(J=0|i[3]),B=J>>>13,F=0|i[4],U=8191&F,H=F>>>13,z=0|i[5],q=8191&z,V=z>>>13,W=8191&(a=0|i[6]),K=a>>>13,G=8191&(d=0|i[7]),$=d>>>13,Y=8191&(_=0|i[8]),X=_>>>13,Z=8191&(r=0|i[9]),Q=r>>>13;n.negative=t.negative^e.negative,n.length=19;var J=(0+Math.imul(s,A)|0)+((8191&(N=Math.imul(s,j)+Math.imul(u,A)|0))<<13)|0,tt=(Math.imul(u,j)+(N>>>13)|0)+(J>>>26)|0;return J&=67108863,M=Math.imul(c,A),N=Math.imul(c,j)+Math.imul(l,A)|0,F=Math.imul(l,j),z=(tt+(M+Math.imul(s,P)|0)|0)+((8191&(N=(N+Math.imul(s,R)|0)+Math.imul(u,P)|0))<<13)|0,tt=((F+Math.imul(u,R)|0)+(N>>>13)|0)+(z>>>26)|0,z&=67108863,M=Math.imul(f,A),N=Math.imul(f,j)+Math.imul(h,A)|0,F=Math.imul(h,j),M=M+Math.imul(c,P)|0,N=(N+Math.imul(c,R)|0)+Math.imul(l,P)|0,F=F+Math.imul(l,R)|0,a=(tt+(M+Math.imul(s,L)|0)|0)+((8191&(N=(N+Math.imul(s,D)|0)+Math.imul(u,L)|0))<<13)|0,tt=((F+Math.imul(u,D)|0)+(N>>>13)|0)+(a>>>26)|0,a&=67108863,M=Math.imul(p,A),N=Math.imul(p,j)+Math.imul(g,A)|0,F=Math.imul(g,j),M=M+Math.imul(f,P)|0,N=(N+Math.imul(f,R)|0)+Math.imul(h,P)|0,F=F+Math.imul(h,R)|0,M=M+Math.imul(c,L)|0,N=(N+Math.imul(c,D)|0)+Math.imul(l,L)|0,F=F+Math.imul(l,D)|0,d=(tt+(M+Math.imul(s,I)|0)|0)+((8191&(N=(N+Math.imul(s,B)|0)+Math.imul(u,I)|0))<<13)|0,tt=((F+Math.imul(u,B)|0)+(N>>>13)|0)+(d>>>26)|0,d&=67108863,M=Math.imul(m,A),N=Math.imul(m,j)+Math.imul(b,A)|0,F=Math.imul(b,j),M=M+Math.imul(p,P)|0,N=(N+Math.imul(p,R)|0)+Math.imul(g,P)|0,F=F+Math.imul(g,R)|0,M=M+Math.imul(f,L)|0,N=(N+Math.imul(f,D)|0)+Math.imul(h,L)|0,F=F+Math.imul(h,D)|0,M=M+Math.imul(c,I)|0,N=(N+Math.imul(c,B)|0)+Math.imul(l,I)|0,F=F+Math.imul(l,B)|0,_=(tt+(M+Math.imul(s,U)|0)|0)+((8191&(N=(N+Math.imul(s,H)|0)+Math.imul(u,U)|0))<<13)|0,tt=((F+Math.imul(u,H)|0)+(N>>>13)|0)+(_>>>26)|0,_&=67108863,M=Math.imul(v,A),N=Math.imul(v,j)+Math.imul(y,A)|0,F=Math.imul(y,j),M=M+Math.imul(m,P)|0,N=(N+Math.imul(m,R)|0)+Math.imul(b,P)|0,F=F+Math.imul(b,R)|0,M=M+Math.imul(p,L)|0,N=(N+Math.imul(p,D)|0)+Math.imul(g,L)|0,F=F+Math.imul(g,D)|0,M=M+Math.imul(f,I)|0,N=(N+Math.imul(f,B)|0)+Math.imul(h,I)|0,F=F+Math.imul(h,B)|0,M=M+Math.imul(c,U)|0,N=(N+Math.imul(c,H)|0)+Math.imul(l,U)|0,F=F+Math.imul(l,H)|0,i=(tt+(M+Math.imul(s,q)|0)|0)+((8191&(N=(N+Math.imul(s,V)|0)+Math.imul(u,q)|0))<<13)|0,tt=((F+Math.imul(u,V)|0)+(N>>>13)|0)+(i>>>26)|0,i&=67108863,M=Math.imul(w,A),N=Math.imul(w,j)+Math.imul(x,A)|0,F=Math.imul(x,j),M=M+Math.imul(v,P)|0,N=(N+Math.imul(v,R)|0)+Math.imul(y,P)|0,F=F+Math.imul(y,R)|0,M=M+Math.imul(m,L)|0,N=(N+Math.imul(m,D)|0)+Math.imul(b,L)|0,F=F+Math.imul(b,D)|0,M=M+Math.imul(p,I)|0,N=(N+Math.imul(p,B)|0)+Math.imul(g,I)|0,F=F+Math.imul(g,B)|0,M=M+Math.imul(f,U)|0,N=(N+Math.imul(f,H)|0)+Math.imul(h,U)|0,F=F+Math.imul(h,H)|0,M=M+Math.imul(c,q)|0,N=(N+Math.imul(c,V)|0)+Math.imul(l,q)|0,F=F+Math.imul(l,V)|0,r=(tt+(M+Math.imul(s,W)|0)|0)+((8191&(N=(N+Math.imul(s,K)|0)+Math.imul(u,W)|0))<<13)|0,tt=((F+Math.imul(u,K)|0)+(N>>>13)|0)+(r>>>26)|0,r&=67108863,M=Math.imul(O,A),N=Math.imul(O,j)+Math.imul(E,A)|0,F=Math.imul(E,j),M=M+Math.imul(w,P)|0,N=(N+Math.imul(w,R)|0)+Math.imul(x,P)|0,F=F+Math.imul(x,R)|0,M=M+Math.imul(v,L)|0,N=(N+Math.imul(v,D)|0)+Math.imul(y,L)|0,F=F+Math.imul(y,D)|0,M=M+Math.imul(m,I)|0,N=(N+Math.imul(m,B)|0)+Math.imul(b,I)|0,F=F+Math.imul(b,B)|0,M=M+Math.imul(p,U)|0,N=(N+Math.imul(p,H)|0)+Math.imul(g,U)|0,F=F+Math.imul(g,H)|0,M=M+Math.imul(f,q)|0,N=(N+Math.imul(f,V)|0)+Math.imul(h,q)|0,F=F+Math.imul(h,V)|0,M=M+Math.imul(c,W)|0,N=(N+Math.imul(c,K)|0)+Math.imul(l,W)|0,F=F+Math.imul(l,K)|0,t=(tt+(M+Math.imul(s,G)|0)|0)+((8191&(N=(N+Math.imul(s,$)|0)+Math.imul(u,G)|0))<<13)|0,tt=((F+Math.imul(u,$)|0)+(N>>>13)|0)+(t>>>26)|0,t&=67108863,M=Math.imul(k,A),N=Math.imul(k,j)+Math.imul(T,A)|0,F=Math.imul(T,j),M=M+Math.imul(O,P)|0,N=(N+Math.imul(O,R)|0)+Math.imul(E,P)|0,F=F+Math.imul(E,R)|0,M=M+Math.imul(w,L)|0,N=(N+Math.imul(w,D)|0)+Math.imul(x,L)|0,F=F+Math.imul(x,D)|0,M=M+Math.imul(v,I)|0,N=(N+Math.imul(v,B)|0)+Math.imul(y,I)|0,F=F+Math.imul(y,B)|0,M=M+Math.imul(m,U)|0,N=(N+Math.imul(m,H)|0)+Math.imul(b,U)|0,F=F+Math.imul(b,H)|0,M=M+Math.imul(p,q)|0,N=(N+Math.imul(p,V)|0)+Math.imul(g,q)|0,F=F+Math.imul(g,V)|0,M=M+Math.imul(f,W)|0,N=(N+Math.imul(f,K)|0)+Math.imul(h,W)|0,F=F+Math.imul(h,K)|0,M=M+Math.imul(c,G)|0,N=(N+Math.imul(c,$)|0)+Math.imul(l,G)|0,F=F+Math.imul(l,$)|0,e=(tt+(M+Math.imul(s,Y)|0)|0)+((8191&(N=(N+Math.imul(s,X)|0)+Math.imul(u,Y)|0))<<13)|0,tt=((F+Math.imul(u,X)|0)+(N>>>13)|0)+(e>>>26)|0,e&=67108863,M=Math.imul(S,A),N=Math.imul(S,j)+Math.imul(C,A)|0,F=Math.imul(C,j),M=M+Math.imul(k,P)|0,N=(N+Math.imul(k,R)|0)+Math.imul(T,P)|0,F=F+Math.imul(T,R)|0,M=M+Math.imul(O,L)|0,N=(N+Math.imul(O,D)|0)+Math.imul(E,L)|0,F=F+Math.imul(E,D)|0,M=M+Math.imul(w,I)|0,N=(N+Math.imul(w,B)|0)+Math.imul(x,I)|0,F=F+Math.imul(x,B)|0,M=M+Math.imul(v,U)|0,N=(N+Math.imul(v,H)|0)+Math.imul(y,U)|0,F=F+Math.imul(y,H)|0,M=M+Math.imul(m,q)|0,N=(N+Math.imul(m,V)|0)+Math.imul(b,q)|0,F=F+Math.imul(b,V)|0,M=M+Math.imul(p,W)|0,N=(N+Math.imul(p,K)|0)+Math.imul(g,W)|0,F=F+Math.imul(g,K)|0,M=M+Math.imul(f,G)|0,N=(N+Math.imul(f,$)|0)+Math.imul(h,G)|0,F=F+Math.imul(h,$)|0,M=M+Math.imul(c,Y)|0,N=(N+Math.imul(c,X)|0)+Math.imul(l,Y)|0,F=F+Math.imul(l,X)|0,s=(tt+(M+Math.imul(s,Z)|0)|0)+((8191&(N=(N+Math.imul(s,Q)|0)+Math.imul(u,Z)|0))<<13)|0,tt=((F+Math.imul(u,Q)|0)+(N>>>13)|0)+(s>>>26)|0,s&=67108863,M=Math.imul(S,P),N=Math.imul(S,R)+Math.imul(C,P)|0,F=Math.imul(C,R),M=M+Math.imul(k,L)|0,N=(N+Math.imul(k,D)|0)+Math.imul(T,L)|0,F=F+Math.imul(T,D)|0,M=M+Math.imul(O,I)|0,N=(N+Math.imul(O,B)|0)+Math.imul(E,I)|0,F=F+Math.imul(E,B)|0,M=M+Math.imul(w,U)|0,N=(N+Math.imul(w,H)|0)+Math.imul(x,U)|0,F=F+Math.imul(x,H)|0,M=M+Math.imul(v,q)|0,N=(N+Math.imul(v,V)|0)+Math.imul(y,q)|0,F=F+Math.imul(y,V)|0,M=M+Math.imul(m,W)|0,N=(N+Math.imul(m,K)|0)+Math.imul(b,W)|0,F=F+Math.imul(b,K)|0,M=M+Math.imul(p,G)|0,N=(N+Math.imul(p,$)|0)+Math.imul(g,G)|0,F=F+Math.imul(g,$)|0,M=M+Math.imul(f,Y)|0,N=(N+Math.imul(f,X)|0)+Math.imul(h,Y)|0,F=F+Math.imul(h,X)|0,c=(tt+(M+Math.imul(c,Z)|0)|0)+((8191&(N=(N+Math.imul(c,Q)|0)+Math.imul(l,Z)|0))<<13)|0,tt=((F+Math.imul(l,Q)|0)+(N>>>13)|0)+(c>>>26)|0,c&=67108863,M=Math.imul(S,L),N=Math.imul(S,D)+Math.imul(C,L)|0,F=Math.imul(C,D),M=M+Math.imul(k,I)|0,N=(N+Math.imul(k,B)|0)+Math.imul(T,I)|0,F=F+Math.imul(T,B)|0,M=M+Math.imul(O,U)|0,N=(N+Math.imul(O,H)|0)+Math.imul(E,U)|0,F=F+Math.imul(E,H)|0,M=M+Math.imul(w,q)|0,N=(N+Math.imul(w,V)|0)+Math.imul(x,q)|0,F=F+Math.imul(x,V)|0,M=M+Math.imul(v,W)|0,N=(N+Math.imul(v,K)|0)+Math.imul(y,W)|0,F=F+Math.imul(y,K)|0,M=M+Math.imul(m,G)|0,N=(N+Math.imul(m,$)|0)+Math.imul(b,G)|0,F=F+Math.imul(b,$)|0,M=M+Math.imul(p,Y)|0,N=(N+Math.imul(p,X)|0)+Math.imul(g,Y)|0,F=F+Math.imul(g,X)|0,f=(tt+(M+Math.imul(f,Z)|0)|0)+((8191&(N=(N+Math.imul(f,Q)|0)+Math.imul(h,Z)|0))<<13)|0,tt=((F+Math.imul(h,Q)|0)+(N>>>13)|0)+(f>>>26)|0,f&=67108863,M=Math.imul(S,I),N=Math.imul(S,B)+Math.imul(C,I)|0,F=Math.imul(C,B),M=M+Math.imul(k,U)|0,N=(N+Math.imul(k,H)|0)+Math.imul(T,U)|0,F=F+Math.imul(T,H)|0,M=M+Math.imul(O,q)|0,N=(N+Math.imul(O,V)|0)+Math.imul(E,q)|0,F=F+Math.imul(E,V)|0,M=M+Math.imul(w,W)|0,N=(N+Math.imul(w,K)|0)+Math.imul(x,W)|0,F=F+Math.imul(x,K)|0,M=M+Math.imul(v,G)|0,N=(N+Math.imul(v,$)|0)+Math.imul(y,G)|0,F=F+Math.imul(y,$)|0,M=M+Math.imul(m,Y)|0,N=(N+Math.imul(m,X)|0)+Math.imul(b,Y)|0,F=F+Math.imul(b,X)|0,p=(tt+(M+Math.imul(p,Z)|0)|0)+((8191&(N=(N+Math.imul(p,Q)|0)+Math.imul(g,Z)|0))<<13)|0,tt=((F+Math.imul(g,Q)|0)+(N>>>13)|0)+(p>>>26)|0,p&=67108863,M=Math.imul(S,U),N=Math.imul(S,H)+Math.imul(C,U)|0,F=Math.imul(C,H),M=M+Math.imul(k,q)|0,N=(N+Math.imul(k,V)|0)+Math.imul(T,q)|0,F=F+Math.imul(T,V)|0,M=M+Math.imul(O,W)|0,N=(N+Math.imul(O,K)|0)+Math.imul(E,W)|0,F=F+Math.imul(E,K)|0,M=M+Math.imul(w,G)|0,N=(N+Math.imul(w,$)|0)+Math.imul(x,G)|0,F=F+Math.imul(x,$)|0,M=M+Math.imul(v,Y)|0,N=(N+Math.imul(v,X)|0)+Math.imul(y,Y)|0,F=F+Math.imul(y,X)|0,m=(tt+(M+Math.imul(m,Z)|0)|0)+((8191&(N=(N+Math.imul(m,Q)|0)+Math.imul(b,Z)|0))<<13)|0,tt=((F+Math.imul(b,Q)|0)+(N>>>13)|0)+(m>>>26)|0,m&=67108863,M=Math.imul(S,q),N=Math.imul(S,V)+Math.imul(C,q)|0,F=Math.imul(C,V),M=M+Math.imul(k,W)|0,N=(N+Math.imul(k,K)|0)+Math.imul(T,W)|0,F=F+Math.imul(T,K)|0,M=M+Math.imul(O,G)|0,N=(N+Math.imul(O,$)|0)+Math.imul(E,G)|0,F=F+Math.imul(E,$)|0,M=M+Math.imul(w,Y)|0,N=(N+Math.imul(w,X)|0)+Math.imul(x,Y)|0,F=F+Math.imul(x,X)|0,v=(tt+(M+Math.imul(v,Z)|0)|0)+((8191&(N=(N+Math.imul(v,Q)|0)+Math.imul(y,Z)|0))<<13)|0,tt=((F+Math.imul(y,Q)|0)+(N>>>13)|0)+(v>>>26)|0,v&=67108863,M=Math.imul(S,W),N=Math.imul(S,K)+Math.imul(C,W)|0,F=Math.imul(C,K),M=M+Math.imul(k,G)|0,N=(N+Math.imul(k,$)|0)+Math.imul(T,G)|0,F=F+Math.imul(T,$)|0,M=M+Math.imul(O,Y)|0,N=(N+Math.imul(O,X)|0)+Math.imul(E,Y)|0,F=F+Math.imul(E,X)|0,w=(tt+(M+Math.imul(w,Z)|0)|0)+((8191&(N=(N+Math.imul(w,Q)|0)+Math.imul(x,Z)|0))<<13)|0,tt=((F+Math.imul(x,Q)|0)+(N>>>13)|0)+(w>>>26)|0,w&=67108863,M=Math.imul(S,G),N=Math.imul(S,$)+Math.imul(C,G)|0,F=Math.imul(C,$),M=M+Math.imul(k,Y)|0,N=(N+Math.imul(k,X)|0)+Math.imul(T,Y)|0,F=F+Math.imul(T,X)|0,O=(tt+(M+Math.imul(O,Z)|0)|0)+((8191&(N=(N+Math.imul(O,Q)|0)+Math.imul(E,Z)|0))<<13)|0,tt=((F+Math.imul(E,Q)|0)+(N>>>13)|0)+(O>>>26)|0,O&=67108863,M=Math.imul(S,Y),N=Math.imul(S,X)+Math.imul(C,Y)|0,F=Math.imul(C,X),k=(tt+(M+Math.imul(k,Z)|0)|0)+((8191&(N=(N+Math.imul(k,Q)|0)+Math.imul(T,Z)|0))<<13)|0,tt=((F+Math.imul(T,Q)|0)+(N>>>13)|0)+(k>>>26)|0,k&=67108863,Z=(tt+Math.imul(S,Z)|0)+((8191&(N=Math.imul(S,Q)+Math.imul(C,Z)|0))<<13)|0,tt=(Math.imul(C,Q)+(N>>>13)|0)+(Z>>>26)|0,Z&=67108863,o[0]=J,o[1]=z,o[2]=a,o[3]=d,o[4]=_,o[5]=i,o[6]=r,o[7]=t,o[8]=e,o[9]=s,o[10]=c,o[11]=f,o[12]=p,o[13]=m,o[14]=v,o[15]=w,o[16]=O,o[17]=k,o[18]=Z,0!=tt&&(o[19]=tt,n.length++),n};function v(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(t,e,n){return v(t,e,n)}Math.imul||(b=m),a.prototype.mulTo=function(t,e){var n=this.length+t.length;return(10===this.length&&10===t.length?b:n<63?m:n<1024?v:y)(this,t,e)},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),y(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){var e=t<0;i("number"==typeof(t=e?-t:t)),i(t<67108864);for(var n=0,r=0;r>=26,n+=o/67108864|0,n+=a>>>26,this.words[r]=67108863&a}return 0!==n&&(this.words[r]=n,this.length++),e?this.ineg():this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>n%26&1;return e}(t);if(0===e.length)return new a(1);for(var n=this,r=0;r>>26-e<<26-e;if(0!=e){for(var o=0,a=0;a>>26-e}o&&(this.words[a]=o,this.length++)}if(0!=n){for(a=this.length-1;0<=a;a--)this.words[a+n]=this.words[a];for(a=0;a>>o<a)for(this.length-=a,c=0;c>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t||!(this.words[t]&1<>>e<>26)-(u/67108864|0),this.words[a+n]=67108863&s}for(;a>26,this.words[a+n]=67108863&s;if(0===o)return this._strip();for(i(-1===o),a=o=0;a>26,this.words[a]=67108863&s;return this.negative=1,this._strip()},a.prototype._wordDiv=function(t,e){this.length,t.length;var n,r=this.clone(),i=t,o=0|i.words[i.length-1];0!=(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new a(null)).length=1+u,s.words=new Array(s.length);for(var c=0;cthis.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),(r=n.cmp(r))<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modrn=function(t){var e=t<0;i((t=e?-t:t)<=67108863);for(var n=(1<<26)%t,r=0,o=this.length-1;0<=o;o--)r=(n*r+(0|this.words[o]))%t;return e?-r:r},a.prototype.modn=function(t){return this.modrn(t)},a.prototype.idivn=function(t){var e=t<0;i((t=e?-t:t)<=67108863);for(var n=0,r=this.length-1;0<=r;r--){var o=(0|this.words[r])+67108864*n;this.words[r]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());for(var e=this,n=t.clone(),r=(e=0!==e.negative?e.umod(t):e.clone(),new a(1)),o=new a(0),s=new a(0),u=new a(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;!(e.words[0]&d)&&h<26;++h,d<<=1);if(0>>26,o&=67108863,this.words[r]=o}return 0!==n&&(this.words[r]=n,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),t=1t.length)return 1;if(this.lengththis.n;);return 0===(t=e>>22,i=o}0==(t.words[r-10]=i>>>=22)&&10>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new O;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return _[t]=e},T.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},T.prototype._verify2=function(t,e){i(!(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},T.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(f(t,t.umod(this.m)._forceRed(this)),t)},T.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},T.prototype.add=function(t,e){return this._verify2(t,e),0<=(e=t.add(e)).cmp(this.m)&&e.isub(this.m),e._forceRed(this)},T.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(e=t.iadd(e)).cmp(this.m)&&e.isub(this.m),e},T.prototype.sub=function(t,e){return this._verify2(t,e),(e=t.sub(e)).cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},T.prototype.isub=function(t,e){return this._verify2(t,e),(e=t.isub(e)).cmpn(0)<0&&e.iadd(this.m),e},T.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},T.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},T.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},T.prototype.isqr=function(t){return this.imul(t,t.clone())},T.prototype.sqr=function(t){return this.mul(t,t)},T.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e)return e=this.m.add(new a(1)).iushrn(2),this.pow(t,e);for(var n=this.m.subn(1),r=0;!n.isZero()&&0===n.andln(1);)r++,n.iushrn(1);i(!n.isZero());for(var o=new a(1).toRed(this),s=o.redNeg(),u=this.m.subn(1).iushrn(1),c=new a(2*(c=this.m.bitLength())*c).toRed(this);0!==this.pow(c,u).cmp(s);)c.redIAdd(s);for(var l=this.pow(c,n),f=this.pow(t,n.addn(1).iushrn(1)),h=this.pow(t,n),d=r;0!==h.cmp(o);){for(var p=h,g=0;0!==p.cmp(o);g++)p=p.redSqr();i(g>l&1;i!==n[0]&&(i=this.sqr(i)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[o]),o=s=0)):s=0}u=26}return i},T.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},T.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},a.mont=function(t){return new S(t)},o(S,T),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},S.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},S.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new a(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(27)(t))},function(t,e,n){"use strict";e.bignum=n(15),e.define=n(772).define,e.base=n(775),e.constants=n(776),e.decoders=n(345),e.encoders=n(343)},function(t,e,n){"use strict";e.der=n(344),e.pem=n(773)},function(t,e,n){"use strict";var r=n(1),i=n(195).Buffer,o=n(196),a=n(198);function s(t){o.call(this,"der",t)}function u(t){return t<10?"0"+t:t}(t.exports=function(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new s,this.tree._init(t.body)}).prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(s,o),s.prototype._encodeComposite=function(t,e,n,r){if(e=function(t,e,n,r){var i;if("seqof"===t?t="seq":"setof"===t&&(t="set"),a.tagByName.hasOwnProperty(t))i=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);i=t}return 31<=i?r.error("Multi-octet tag encoding unsupported"):(e||(i|=32),i|a.tagClassByName[n||"universal"]<<6)}(t,e,n,this.reporter),r.length<128)return(n=i.alloc(2))[0]=e,n[1]=r.length,this._createEncoderBuffer([n,r]);for(var o=1,s=r.length;256<=s;s>>=8)o++;var u=i.alloc(2+o);u[0]=e,u[1]=128|o;for(var c=1+o,l=r.length;0>=8)u[c]=255&l;return this._createEncoderBuffer([u,r])},s.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"!==e)return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported");for(var n=i.alloc(2*t.length),r=0;r>=7)a++}for(var c=i.alloc(a),l=c.length-1,f=t.length-1;0<=f;f--){var h=t[f];for(c[l--]=127&h;0<(h>>=7);)c[l--]=128|127&h}return this._createEncoderBuffer(c)},s.prototype._encodeTime=function(t,e){var n;return t=new Date(t),"gentime"===e?n=[u(t.getUTCFullYear()),u(t.getUTCMonth()+1),u(t.getUTCDate()),u(t.getUTCHours()),u(t.getUTCMinutes()),u(t.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[u(t.getUTCFullYear()%100),u(t.getUTCMonth()+1),u(t.getUTCDate()),u(t.getUTCHours()),u(t.getUTCMinutes()),u(t.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"==typeof t||i.isBuffer(t)||(n=t.toArray(),!t.sign&&128&n[0]&&n.unshift(0),t=i.from(n)),i.isBuffer(t)){var n=t.length;return 0===t.length&&n++,n=i.alloc(n),t.copy(n),0===t.length&&(n[0]=0),this._createEncoderBuffer(n)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var r=1,o=t;256<=o;o>>=8)r++;for(var a=new Array(r),s=a.length-1;0<=s;s--)a[s]=255&t,t>>=8;return 128&a[0]&&a.unshift(0),this._createEncoderBuffer(i.from(a))},s.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},s.prototype._use=function(t,e){return(t="function"==typeof t?t(e):t)._getEncoder("der").tree},s.prototype._skipDefault=function(t,e,n){var r,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),o.length!==i.defaultBuffer.length)return!1;for(r=0;r>6],i=!(32&n);if(31&~n)n&=31;else{var o=n;for(n=0;!(128&~o);){if(o=t.readUInt8(e),t.isError(o))return o;n<<=7,n|=127&o}}return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function l(t,e,n){var r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(!(128&r))return r;var i=127&r;if(4\n ").concat(this.getContent(),"\n \n ")}},{key:"render",value:function(){return"\n \n \n \n \n ").concat(this.renderContent(),"\n \n \n \n \n ")}}]),n}(n(8).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(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(2)),o=r(n(6)),a=r(n(3)),s=r(n(4)),u=r(n(7)),c=n(8),l=r(n(71));c=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,i.default)(this,n),e.apply(this,arguments)}return(0,o.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 \n ").concat(this.getContent(),"\n \n ")}},{key:"renderIcons",value:function(){return(0,l.default)("\n \n \n \n \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
\n \n \n \n ").concat(t,"\n \n \n \n
\n ")}}]),n}(c.BodyComponent),e.default=c,(0,u.default)(c,"componentName","mj-accordion-title"),(0,u.default)(c,"endingTag",!0),(0,u.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,u.default)(c,"defaultAttributes",{"font-size":"13px",padding:"16px"}),t.exports=e.default},function(t,e,n){var r=n(82)("join",n(810));r.placeholder=n(63),t.exports=r},function(t,e,n){var r=n(82)("identity",n(28),n(811));r.placeholder=n(63),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,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,e)||i(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 i(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\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ").concat(t?"
"):"","\n \n \n \n \n \x3c!--[if mso | IE]>\n \n \n
\n \n \n \n \n ").concat(t?"
":"","\n \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 \n \n \n \n ").concat(t,"\n \n \n \n \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}(b.BodyComponent),e.default=g,(0,d.default)(g,"componentName","mj-section"),(0,d.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,d.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){t.exports=n(358)},function(t,e,n){"use strict";var r=n(0).default,i=n(45).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(8));i=n(178),n=r(n(694)),(0,o.assignComponents)(o.components,n.default.components),(0,i.assignDependencies)(i.dependencies,n.default.dependencies),o=o.default,e.default=o,t.exports=e.default},function(t,e,n){var r=n(199).default,i=n(46);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?i(t):e},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(200),i=n(119),o=n(361),a=n(362);function s(e){var n="function"==typeof Map?new Map:void 0;return t.exports=s=function(t){if(null===t||!o(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}}),i(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(119),i=n(201);function o(e,n,a){return i()?t.exports=o=Reflect.construct:t.exports=o=function(t,e,n){var i=[null];return i.push.apply(i,e),i=new(Function.bind.apply(t,i)),n&&r(i,n.prototype),i},t.exports.default=t.exports,t.exports.__esModule=!0,o.apply(null,arguments)}t.exports=o,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){n=n(203)(Object.keys,Object),t.exports=n},function(t,e,n){n=n(36)(n(17),"DataView"),t.exports=n},function(t,e,n){var r=n(88),i=n(368),o=n(21),a=n(205),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=(n=Object.prototype,u=u.toString,n=n.hasOwnProperty,RegExp("^"+u.call(n).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"));t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?c:s).test(a(t))}},function(t,e,n){var r=n(48),i=(n=Object.prototype).hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{var r=!(t[a]=void 0)}catch(t){}var s=o.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(369);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(17)["__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(36)(n(17),"Promise"),t.exports=n},function(t,e,n){n=n(36)(n(17),"Set"),t.exports=n},function(t,e,n){var r=n(37),i=n(22);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(37),i=n(122),o=n(22),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 o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e,n){n=n(377)(),t.exports=n},function(t,e){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n>>0,e>>>=0;for(var o=Array(i);++r"},HBS:{start:"{{",end:"}}"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n ";case"parent":return" < ";case"sibling":return" ~ ";case"adjacent":return" + ";case"descendant":return" ";case"universal":return l(t.namespace)+"*";case"tag":return c(t);case"pseudo-element":return"::"+f(t.name);case"pseudo":return null===t.data?":"+f(t.name):"string"==typeof t.data?":"+f(t.name)+"("+f(t.data)+")":":"+f(t.name)+"("+a(t.data)+")";case"attribute":if("id"===t.name&&"equals"===t.action&&!t.ignoreCase&&!t.namespace)return"#"+f(t.value);if("class"===t.name&&"element"===t.action&&!t.ignoreCase&&!t.namespace)return"."+f(t.value);var e=c(t);return"exists"===t.action?"["+e+"]":"["+e+i[t.action]+"='"+f(t.value)+"'"+(t.ignoreCase?"i":!1===t.ignoreCase?"s":"")+"]"}}function c(t){return""+l(t.namespace)+f(t.name)}function l(t){return null!==t?("*"===t?"*":f(t))+"|":""}function f(t){return t.split("").map((function(t){return o.has(t)?"\\"+t:t})).join("")}e.default=a},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.innerText=e.textContent=e.getText=e.getInnerHTML=e.getOuterHTML=void 0;var i=n(18),o=r(n(238)),a=n(58);function s(t,e){return o.default(t,e)}e.getOuterHTML=s,e.getInnerHTML=function(t,e){return i.hasChildren(t)?t.children.map((function(t){return s(t,e)})).join(""):""},e.getText=function t(e){return Array.isArray(e)?e.map(t).join(""):i.isTag(e)?"br"===e.name?"\n":t(e.children):i.isCDATA(e)?t(e.children):i.isText(e)?e.data:""},e.textContent=function t(e){return Array.isArray(e)?e.map(t).join(""):i.isTag(e)||i.isCDATA(e)?t(e.children):i.isText(e)?e.data:""},e.innerText=function t(e){return Array.isArray(e)?e.map(t).join(""):i.hasChildren(e)&&e.type===a.ElementType.Tag||i.isCDATA(e)?t(e.children):i.isText(e)?e.data:""}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var r=n(239),i=n(240);e.decode=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?r.decodeXML:r.decodeHTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?i.encodeXML:i.encodeHTML)(t)};var o=n(240);Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return o.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return o.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return o.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return o.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return o.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return o.encodeHTML}});var a=n(239);Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return a.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return a.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return a.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return a.decodeXML}})},function(t){t.exports=JSON.parse('{"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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.attributeNames=e.elementNames=void 0,e.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]),e.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prevElementSibling=e.nextElementSibling=e.getName=e.hasAttrib=e.getAttributeValue=e.getSiblings=e.getParent=e.getChildren=void 0;var r=n(18),i=[];function o(t){return null!==(t=t.children)&&void 0!==t?t:i}function a(t){return t.parent||null}e.getChildren=o,e.getParent=a,e.getSiblings=function(t){var e=a(t);if(null!=e)return o(e);for(var n=[t],r=t.prev,i=t.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=i;)n.push(i),i=i.next;return n},e.getAttributeValue=function(t,e){return null===(t=t.attribs)||void 0===t?void 0:t[e]},e.hasAttrib=function(t,e){return null!=t.attribs&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&null!=t.attribs[e]},e.getName=function(t){return t.name},e.nextElementSibling=function(t){for(var e=t.next;null!==e&&!r.isTag(e);)e=e.next;return e},e.prevElementSibling=function(t){for(var e=t.prev;null!==e&&!r.isTag(e);)e=e.prev;return e}},function(t,e,n){"use strict";function r(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)}Object.defineProperty(e,"__esModule",{value:!0}),e.prepend=e.prependChild=e.append=e.appendChild=e.replaceElement=e.removeElement=void 0,e.removeElement=r,e.replaceElement=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)},e.appendChild=function(t,e){r(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},e.append=function(t,e){r(e);var n=t.parent,i=t.next;e.next=i,((e.prev=t).next=e).parent=n,i?(i.prev=e,n&&(t=n.children).splice(t.lastIndexOf(i),0,e)):n&&n.children.push(e)},e.prependChild=function(t,e){r(e),e.parent=t,e.prev=null,1!==t.children.unshift(e)?((t=t.children[1]).prev=e).next=t:e.next=null},e.prepend=function(t,e){r(e);var n,i=t.parent;i&&(n=i.children).splice(n.indexOf(t),0,e),t.prev&&(t.prev.next=e),e.parent=i,e.prev=t.prev,(e.next=t).prev=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getElementsByTagType=e.getElementsByTagName=e.getElementById=e.getElements=e.testElement=void 0;var r=n(18),i=n(241),o={tag_name:function(t){return"function"==typeof t?function(e){return r.isTag(e)&&t(e.name)}:"*"===t?r.isTag:function(e){return r.isTag(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 r.isText(e)&&t(e.data)}:function(e){return r.isText(e)&&e.data===t}}};function a(t,e){return"function"==typeof e?function(n){return r.isTag(n)&&e(n.attribs[t])}:function(n){return r.isTag(n)&&n.attribs[t]===e}}function s(t,e){return function(n){return t(n)||e(n)}}function u(t){var e=Object.keys(t).map((function(e){var n=t[e];return e in o?o[e](n):a(e,n)}));return 0===e.length?null:e.reduce(s)}e.testElement=function(t,e){return!(t=u(t))||t(e)},e.getElements=function(t,e,n,r){return void 0===r&&(r=1/0),(t=u(t))?i.filter(t,e,n,r):[]},e.getElementById=function(t,e,n){return void 0===n&&(n=!0),Array.isArray(e)||(e=[e]),i.findOne(a("id",t),e,n)},e.getElementsByTagName=function(t,e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),i.filter(o.tag_name(t),e,n,r)},e.getElementsByTagType=function(t,e,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),i.filter(o.tag_type(t),e,n,r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.removeSubsets=void 0;var r=n(18);function i(t,e){var n=[],i=[];if(t===e)return 0;for(var o=r.hasChildren(t)?t:t.parent;o;)n.unshift(o),o=o.parent;for(o=r.hasChildren(e)?e:e.parent;o;)i.unshift(o),o=o.parent;for(var a=Math.min(n.length,i.length),s=0;sc.indexOf(f)?u===e?20:4:u===t?10:2}e.removeSubsets=function(t){for(var e=t.length;0<=--e;){var n=t[e];if(0>=1);else if("pseudo"===t.type)if(t.data)if("has"===t.name||"contains"===t.name)e=0;else if(Array.isArray(t.data)){e=0;for(var n=0;n=a.length&&u.test(n)&&t(e)}},exists:function(t,e,n){var r=e.name,i=n.adapter;return function(e){return i.hasAttrib(e,r)&&t(e)}},start:function(t,e,n){var i=n.adapter,o=e.name,a=e.value,s=a.length;return 0===s?r.falseFunc:e.ignoreCase?(a=a.toLowerCase(),function(e){var n=i.getAttributeValue(e,o);return null!=n&&n.length>=s&&n.substr(0,s).toLowerCase()===a&&t(e)}):function(e){var n;return!(null===(n=i.getAttributeValue(e,o))||void 0===n||!n.startsWith(a))&&t(e)}},end:function(t,e,n){var i=n.adapter,o=e.name,a=e.value,s=-a.length;return 0==s?r.falseFunc:e.ignoreCase?(a=a.toLowerCase(),function(e){var n;return(null===(n=i.getAttributeValue(e,o))||void 0===n?void 0:n.substr(s).toLowerCase())===a&&t(e)}):function(e){var n;return!(null===(n=i.getAttributeValue(e,o))||void 0===n||!n.endsWith(a))&&t(e)}},any:function(t,e,n){var i=n.adapter,a=e.name,s=e.value;if(""===s)return r.falseFunc;if(e.ignoreCase){var u=new RegExp(o(s),"i");return function(e){var n=i.getAttributeValue(e,a);return null!=n&&n.length>=s.length&&u.test(n)&&t(e)}}return function(e){var n;return!(null===(n=i.getAttributeValue(e,a))||void 0===n||!n.includes(s))&&t(e)}},not:function(t,e,n){var r=n.adapter,i=e.name,o=e.value;return""===o?function(e){return!!r.getAttributeValue(e,i)&&t(e)}:e.ignoreCase?(o=o.toLowerCase(),function(e){var n=r.getAttributeValue(e,i);return(null==n||n.length!==o.length||n.toLowerCase()!==o)&&t(e)}):function(e){return r.getAttributeValue(e,i)!==o&&t(e)}}}},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.filters=void 0;var i=r(n(477)),o=n(40);function a(t,e){return function(n){var r=e.getParent(n);return null!=r&&e.isTag(r)&&t(n)}}function s(t){return function(e,n,r){var i=r.adapter[t];return"function"!=typeof i?o.falseFunc:function(t){return i(t)&&e(t)}}}e.filters={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,i=e.toLowerCase();return function(e){return t(e)&&r.getText(e).toLowerCase().includes(i)}},"nth-child":function(t,e,n){var r=n.adapter,s=n.equals,u=i.default(e);return u===o.falseFunc?o.falseFunc:u===o.trueFunc?a(t,r):function(e){for(var n=r.getSiblings(e),i=0,o=0;o=i&&t.charCodeAt(e)<=o;)r=10*r+(t.charCodeAt(e)-i),e++;return e===n?null:r}function l(){for(;e 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(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.groupSelectors=e.getDocumentRoot=void 0;var r=n(243);e.getDocumentRoot=function(t){for(;t.parent;)t=t.parent;return t},e.groupSelectors=function(t){for(var e=[],n=[],i=0,o=t;ithis.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}},{key:"write",value:function(t,e){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,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.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}},{key:"advance",value:function(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,a.EOF;var t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===a.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===a.CARRIAGE_RETURN?(this.skipNextNewLine=!0,a.LINE_FEED):(this.skipNextNewLine=!1,31<(t=i.isSurrogate(t)?this._processSurrogate(t):t)&&t<127||t===a.LINE_FEED||t===a.CARRIAGE_RETURN||159/g;(i=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=o(c,n),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=e}return function(t,e,n){e&&r(t.prototype,e)}(t,[{key:"serialize",value:function(){return this._serializeChildNodes(this.startNode),this.html}},{key:"_serializeChildNodes",value:function(t){var e=this.treeAdapter.getChildNodes(t);if(e)for(var n=0,r=e.length;n",e!==s.AREA&&e!==s.BASE&&e!==s.BASEFONT&&e!==s.BGSOUND&&e!==s.BR&&e!==s.COL&&e!==s.EMBED&&e!==s.FRAME&&e!==s.HR&&e!==s.IMG&&e!==s.INPUT&&e!==s.KEYGEN&&e!==s.LINK&&e!==s.META&&e!==s.PARAM&&e!==s.SOURCE&&e!==s.TRACK&&e!==s.WBR&&(t=e===s.TEMPLATE&&n===u.HTML?this.treeAdapter.getTemplateContent(t):t,this._serializeChildNodes(t),this.html+="")}},{key:"_serializeAttributes",value:function(e){for(var n=this.treeAdapter.getAttrList(e),r=0,i=n.length;r"}}]),t}()).escapeString=function(t,e){return t=t.replace(l,"&").replace(f," "),e?t.replace(h,"""):t.replace(d,"<").replace(p,">")},t.exports=i},function(t,e,n){"use strict";function r(t,e){for(var n=0;n>16&255,a[s++]=e>>8&255,a[s++]=255&e;return 2===r&&(e=i[t.charCodeAt(l)]<<2|i[t.charCodeAt(l+1)]>>4,a[s++]=255&e),1===r&&(e=i[t.charCodeAt(l)]<<10|i[t.charCodeAt(l+1)]<<4|i[t.charCodeAt(l+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e),a},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}(i));return o.join("")}(t,a,s>2]+r[e<<4&63]+"==")):2==i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(0>1,l=-7,f=n?i-1:0,h=n?-1:1;for(n=t[e+f],f+=h,o=n&(1<<-l)-1,n>>=-l,l+=s;0>=-l,l+=r;0>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1;for(o=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+l?f/r:f*Math.pow(2,1-l))*r&&(a++,r/=2),c<=a+l?(s=0,a=c):1<=a+l?(s=(e*r-1)*Math.pow(2,i),a+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),a=0));8<=i;t[n+h]=255&s,h+=d,s/=256,i-=8);for(a=a<").parent().html();case"innerHTML":return this.html();default:return d(this[0],t,this.options.xmlMode)}if("object"===r(t)||void 0!==e){if("function"!=typeof e)return o.domEach(this,(function(i){o.isTag(i)&&("object"===r(t)?Object.keys(t).forEach((function(e){var r=t[e];p(i,e,r,n.options.xmlMode)})):p(i,t,e,n.options.xmlMode))}));if("object"===r(t))throw new Error("Bad combination of arguments.");return o.domEach(this,(function(r,i){o.isTag(r)&&p(r,t,e.call(r,i,d(r,t,n.options.xmlMode)),n.options.xmlMode)}))}},e.data=function(t,e){var n=this[0];if(n&&o.isTag(n)){var i=n;return null!==(n=i.data)&&void 0!==n||(i.data={}),t?"object"===r(t)||void 0!==e?(o.domEach(this,(function(n){o.isTag(n)&&("object"===r(t)?g(n,t):g(n,t,e))})),this):a.call(i.data,t)?i.data[t]:m(i,t):m(i)}},e.val=function(t){var e=0===arguments.length,n=this[0];if(!n||!o.isTag(n))return e?void 0:this;switch(n.name){case"textarea":return this.text(t);case"select":var a=this.find("option:selected");if(e)return this.attr("multiple")?a.toArray().map((function(t){return i.text(t.children)})):a.attr("value");if(null==this.attr("multiple")&&"object"===r(t))return this;this.find("option").removeAttr("selected");for(var s="object"!==r(t)?[t]:t,u=0;u+)\\s*|(\\s+)|(+|\\*)|\\#(+)|\\.(+)|\\[\\s*(+)(?:\\s*([*^$!~|]?=)(?:\\s*(?:([\"']?)(.*?)\\9)))?\\s*\\](?!\\])|(:+)(+)(?:\\((?:(?:([\"'])([^\\13]*)\\13)|((?:\\([^)]+\\)|[^()]*)+))\\))?)".replace(//,"["+r(">+~`!@$%^&={}\\;/g,"(?:[\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])").replace(//g,"(?:[:\\w\\u00a1-\\uFFFF-]|\\\\[^\\s0-9a-f])"));function c(){this.length=0}function l(t,e,n,a,s,u,l,f,h,d,p,g,m,b,v,y){var _,w;return(e||!this.length)&&(_=this[this.length++]=new c,e)||(_=_||this[this.length-1],w=(w=n||a||!_.length?_[_.length++]=new o(n):w)||_[_.length-1],s?w.tag=i(s):u?w.id=i(u):l?(s=i(l),(u=w.classes||(w.classes={}))[s]||(u[s]=r(l),(l=w.classList||(w.classList=[])).push(s),l.sort())):m?(y=y||v,(w.pseudos||(w.pseudos=[])).push({type:1==g.length?"class":"element",name:i(m),escapedName:r(m),value:y?i(y):null,escapedValue:y?r(y):null})):f&&(p=p?r(p):null,(w.attributes||(w.attributes=[])).push({operator:h,name:i(f),escapedName:r(f),value:p?i(p):null,escapedValue:p?r(p):null}))),""}function f(t){this.length=0;for(var e,n=this,r=t;t;){if((e=t.replace(u,(function(){return l.apply(n,arguments)})))===t)throw new Error(r+" is an invalid expression");t=e}}o.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},f.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 h={};t.exports=function(t){return null==t?null:(t=(""+t).replace(/^\s+|\s+$/g,""),h[t]||(h[t]=new f(t)))}},function(t,e,n){"use strict";t.exports=i;var r=n(151);function i(t,e,n,r,i){this.prop=t,this.value=e,this.selector=n,this.priority=r||0,this.additionalPriority=i||[]}i.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)},i.prototype.compare=function(t){return 1===this.compareFunc(t)?this:t},i.prototype.toString=function(){return this.prop+": "+this.value.replace(/['"]+/g,"")+";"}},function(t,e,n){"use strict";var r=n(151);t.exports=function(t){function e(e,i,o){o=o||{};var a=r.parseCSS(i),s=[],u="style";function c(n,r){if(n.name){var i=n.name.toUpperCase();if(-1").get(0)).pseudoElementType=p,(i.pseudoElementParent=a)[n]=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(""))}function n(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,i){var o=function(e,n){return function(e,n){var i,o,a=[];return e("style").each((function(){var s,u=!!(o=this).childNodes;1===(i=u?o.childNodes:o.children).length?(i=i[0].data,n.applyStyleTags&&void 0===e(o).attr("data-embed")&&a.push(i),n.removeStyleTags&&void 0===e(o).attr("data-embed")&&(s=u?o.childNodes[0].nodeValue:o.children[0].data,(s=r.getPreservedText(s,{mediaQueries:n.preserveMediaQueries,fontFaces:n.preserveFontFaces,keyFrames:n.preserveKeyFrames,pseudos:n.preservePseudos},t.ignoredPseudos))?u?o.childNodes[0].nodeValue=s:o.children[0].data=s:e(o).remove()),e(o).removeAttr("data-embed")):n.removeStyleTags&&e(o).remove()})),a}(e,n).join("\n")}(n,i=r.getDefaultOptions(i));return e(n,o+="\n"+i.extraCss,i),n},t.inlineDocument=e,t}},function(t,e,n){var 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(){var o;!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||"",0this.__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.__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=t.length&&this.__input.substring(e-t.length,e).toLowerCase()===t},t.exports.InputScanner=n},function(t,e,n){var r=n(8).InputScanner,i=n(3).Token,o=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 o,this._reset();for(var e=new i(s.START,""),n=null,r=[],a=new o;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 o),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 i(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/),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}/)}}(o.prototype=new r)._create=function(){return new o(this._input,this)},o.prototype._update=function(){this.__set_templated_pattern()},o.prototype.disable=function(t){var e=this._create();return e._disabled[t]=!0,e._update(),e},o.prototype.read_options=function(t){var e,n=this._create();for(e in i)n._disabled[e]=-1===t.templating.indexOf(e);return n._update(),n},o.prototype.exclude=function(t){var e=this._create();return e._excluded[t]=!0,e._update(),e},o.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},o.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("|")+")")},o.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=o},,,,function(t,e,n){var r=n(19).Beautifier,i=n(20).Options;t.exports=function(t,e,n,i){return new r(t,e,n,i).beautify()},t.exports.defaultOptions=function(){return new i}},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 o(t,e)}var i=n(20).Options,o=n(2).Output,a=n(21).Tokenizer,s=n(21).TOKEN,u=/\r\n|[\r\n]/,c=/\r\n|[\r\n]/g;function l(t,e){return-1!==e.indexOf(t)}function f(t,e,n){this.parent=t||null,this.tag=e?e.tag_name:"",this.indent_level=n||0,this.parser_token=e||null}function h(t){this._printer=t,this._current_frame=null}function d(t,e,n,r){this._source_text=t||"",e=e||{},this._js_beautify=n,this._css_beautify=r,this._tag_stack=null,e=new i(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|]]>)$/.exec(a)))return void t.add_raw_token(e);u=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&&(i?((o=function(){this.eol="\n"}).prototype=this._options.raw_options,i(s+a,new o)):s+(a=(o=e.whitespace_before)?a.replace(new RegExp("\n("+o+")?","g"),"\n"):a).replace(/\n/g,"\n"+s)),u&&(a=a?u+a+"\n"+c:u+c),t.print_newline(!1),a&&(e.text=a,e.whitespace_before="",e.newlines=0,t.add_raw_token(e),t.print_newline(!0))}},d.prototype._handle_tag_open=function(t,e,n,r){var i=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("]*)/),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};d.prototype._get_tag_open_token=function(t){return(t=new p(this._tag_stack.get_parser_token(),t)).alignment_size=this._options.wrap_attributes_indent_size,t.is_end_tag=t.is_end_tag||l(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&&l(t.tag_check,this._options.unformatted),t.is_content_unformatted=!t.is_empty_element&&l(t.tag_check,this._options.content_unformatted),t.is_inline_element=l(t.tag_name,this._options.inline)||"{"===t.tag_start_char,t},d.prototype._set_tag_position=function(t,e,n,r,i){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/);((o=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(//),cdata:e.starting_with(//),conditional_comment:e.starting_with(//),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},o.prototype._is_opening=function(t){return t.type===u.TAG_OPEN},o.prototype._is_closing=function(t,e){return t.type===u.TAG_CLOSE&&e&&((">"===t.text||"/>"===t.text)&&"<"===e.text[0]||"}}"===t.text&&"{"===e.text[0]&&"{"===e.text[1])},o.prototype._reset=function(){this._current_tag_name=""},o.prototype._get_next_token=function(t,e){this._readWhitespace();var n=this._input.peek();return null===n?this._create_token(u.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(u.UNKNOWN,this._input.next())},o.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(u.COMMENT,n)).directives=r)),e},o.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(u.COMMENT,n)).directives=null),e},o.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(u.TAG_OPEN,n)),r},o.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(u.COMMENT,n)):(n=this.__patterns.handlebars_open.read(),this._create_token(u.TAG_OPEN,n))),r},o.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(u.TAG_CLOSE,n)):"{"===e.text[0]&&"}"===t&&"}"===this._input.peek(1)&&(this._input.next(),this._input.next(),r=this._create_token(u.TAG_CLOSE,"}}"))),r},o.prototype._read_attribute=function(t,e,n){var r=null;return n&&"<"===n.text[0]&&("="===t?r=this._create_token(u.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(u.VALUE,n)):(n=this.__patterns.attribute.read())&&(r=e.type===u.EQUALS?this._create_token(u.VALUE,n):this._create_token(u.ATTRIBUTE,n))),r},o.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))},o.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===u.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=u.TEXT,t;r=this._input.readUntil(new RegExp("","ig"))}else this._is_content_unformatted(e)&&(r=this._input.readUntil(new RegExp("","ig")));return r?this._create_token(u.TEXT,r):null},o.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(u.TEXT,e)},t.exports.Tokenizer=o,t.exports.TOKEN=u}],e={},n=function n(r){var i=e[r];return void 0!==i||(i=e[r]={exports:{}},t[r](i,i.exports,n)),i.exports}(18);o=n}();var a=o;r=[n,n(153),n(154)],void 0===(r=function(t){var e=n(153),r=n(154);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 i=n(514),o=n(594).decode,a=n(595).HTMLParser,s=n(596),u=n(610),c=n(611),l=n(280);function f(t){return t&&t.replace(/^[ \n\r\t\f]+/,"").replace(/[ \n\r\t\f]+$/,"")}function h(t){return t&&t.replace(/[ \n\r\t\f\xA0]+/g,(function(t){return"\t"===t?"\t":t.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}))}function d(t,e,n,r,i){var o="",a="";return e.preserveLineBreaks&&(t=t.replace(/^[ \n\r\t\f]*?[\n\r][ \n\r\t\f]*/,(function(){return o="\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=!o&&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?" ":"")}))),i&&(t=h(t)),o+t+a}var p=(n=l.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 b(t,e,n,r){var i=e&&!m(e);i&&!r.collapseInlineTagWhitespace&&(i="/"===e.charAt(0)?!p(e.slice(1)):!g(e));var o=n&&!m(n);return d(t,r,i,o=o&&!r.collapseInlineTagWhitespace?"/"===n.charAt(0)?!g(n.slice(1)):!p(n):o,e&&n)}function v(t,e){for(var n=t.length;n--;)if(t[n].name.toLowerCase()===e)return 1}var y=l.createMap(["text/javascript","text/ecmascript","text/jscript","application/javascript","application/x-javascript","application/ecmascript"]);function _(t){return""===(t=f(t.split(/;/,2)[0]).toLowerCase())||y(t)}function w(t){return""===(t=f(t).toLowerCase())||"text/css"===t}function x(t,e){if("style"===t){for(var n=0,r=e.length;n([\s\S]*?)/g,(function(t,r){l||(l=Q(e),i=new RegExp("^"+l+"([0-9]+)$"),n.ignoreCustomComments?n.ignoreCustomComments=n.ignoreCustomComments.slice():n.ignoreCustomComments=[],n.ignoreCustomComments.push(i));var i="\x3c!--"+l+rt.length+"--\x3e";return rt.push(r),i}));var ot=n.ignoreCustomFragments.map((function(t){return t.source}));function at(t,e){return n.canTrimWhitespace(t,e,Y)}function st(){for(var t=y.length-1;0$/);if(o)r=o[1];else if(/>$/.test(i)||(y[t]=b(i,null,e,n)))break}}function lt(t){var e,n=y.length-1;1]+$/.test(t)}(u)?a=!r||e||/\/$/.test(u)?u+" ":u:(n.preventAttributesEscaping||(u='"'==(t=void 0===n.quoteCharacter?(u.match(/'/g)||[]).length<(u.match(/"/g)||[]).length?"'":'"':"'"===n.quoteCharacter?"'":'"')?u.replace(/"/g,"""):u.replace(/'/g,"'")),a=t+u+t,r||n.removeTagWhitespace||(a+=" ")),void 0===u||n.collapseBooleanAttributes&&function(t,e){return O(t)||"draggable"===t&&!E(e)}(s.toLowerCase(),u.toLowerCase())?(o=s,r||(o+=" ")):o=s+c.customAssign+a,c.customOpen+o+c.customClose}(p,l,n,d,m)),d=!1)}0"),o&&!n.includeAutoGeneratedTags&&(st(),et="")},end:function(t,e,r){t=(n="svg"===t.toLowerCase()?Object.getPrototypeOf(n):n).name(t),n.collapseWhitespace&&(K.length?t===K[K.length-1]&&K.pop():lt("/"+t),tt.length&&t===tt[tt.length-1]&&tt.pop());var i=!1;t===k&&(k="",i=!c),n.removeOptionalTags&&(i&&H(et)&&st(),et="",!W(t)||!nt||V(nt)||"p"===nt&&N(t)||ut(),nt=j(t)?t:""),n.removeEmptyElements&&i&&function(t,e){switch(t){case"textarea":return;case"audio":case"script":case"video":if(G("src",e))return;break;case"iframe":if(G("src",e)||G("srcdoc",e))return;break;case"object":if(G("data",e))return;break;case"applet":if(G("code",e))return}return 1}(t,e)?(st(),nt=et=""):(r&&!n.includeAutoGeneratedTags?nt="":y.push(""),s="/"+t,p(t)?i&&(w+="|"):w="")},chars:function(e,r,i){if(r=""===r?"comment":r,i=""===i?"comment":i,n.decodeEntities&&e&&!J(k)&&(e=o(e)),n.collapseWhitespace){if(!K.length){var a;if("comment"!==r||-1===(a=y[y.length-1]).indexOf(l)&&(a||(r=s),1":"--\x3e",e=function(t){return/^\[if\s[^\]]+]|\[endif]$/.test(t)}(e)?i+function(e,n){return n.processConditionalComments?e.replace(/^(\[if\s[^\]]+]>)([\s\S]*?)(":h(t))}}),n.removeOptionalTags&&(H(et)&&st(),nt&&!V(nt)&&ut()),n.collapseWhitespace&<("br"),function(t,e,n,r){var i,o=e.maxLineLength;if(o){for(var a="",s=[];t.length;){var u=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)),0o?(s.push(a.slice(0,u)),a=a.slice(u)):0<=c&&(s.push(a),a="")}a&&s.push(a),i=s.join("\n")}else i=r(n(t.join("")));return e.collapseWhitespace?d(i,e,!0,!0):i}(y,n,v?function(t){return t.replace(v,(function(t,e,r,i){return r=it[+r][0],n.collapseWhitespace?("\t"!==e&&(r=e+r),"\t"!==i&&(r+=i),d(r,{preserveLineBreaks:n.preserveLineBreaks,conservativeCollapse:!n.trimCustomFragments},/^[ \n\r\t\f]/.test(r),/[ \n\r\t\f]$/.test(r))):r}))}:Z,l?function(t){return t.replace(new RegExp("\x3c!--"+l+"([0-9]+)--\x3e","g"),(function(t,e){return rt[+e]}))}:Z)}(t,e=function(t){var e={name:function(t){return t.toLowerCase()},canCollapseWhitespace:$,canTrimWhitespace:Y,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 o=t[n];"caseSensitive"===n?o&&(e.name=Z):"log"===n?"function"==typeof o&&(e.log=o):"minifyCSS"===n&&"function"!=typeof o?o&&("object"!==r(o)&&(o={}),e.minifyCSS=function(t,n){t=t.replace(/(url\s*\(\s*)("|'|)(.*?)\2(\s*\))/gi,(function(t,n,r,i,o){return n+r+e.minifyURLs(i)+r+o}));var r=new i(o).minify(C(t,n));return 0\s*$/,""):t;return o.parse.bare_returns=n,(r=c.minify(r,o)).error?(e.log(r.error),t):r.code.replace(/;$/,"")}):"minifyURLs"===n&&"function"!=typeof o?o&&("string"==typeof o?o={site:o}:"object"!==r(o)&&(o={}),e.minifyURLs=function(t){try{return s.relate(t,o)}catch(n){return e.log(n),t}}):e[n]=o})),e}(e||{})),e.log("minified in: "+(Date.now()-n)+"ms"),t}},function(t,e,n){t.exports=n(515)},function(t,e,n){(function(e){var r=n(516),i=n(517),o=n(525),a=n(549),s=n(550),u=n(551),c=n(105).formatFrom,l=n(571),f=n(572),h=n(573),d=n(31).OptimizationLevel,p=n(31).optimizationLevelFrom,g=n(574),m=n(575),b=n(576),v=n(583),y=n(592),_=n(593),w=t.exports=function(t){this.options={compatibility:s((t=t||{}).compatibility),fetch:u(t.fetch),format:c(t.format),inline:l(t.inline),inlineRequest:f(t.inlineRequest),inlineTimeout:h(t.inlineTimeout),level:p(t.level),rebase:g(t.rebase),rebaseTo:m(t.rebaseTo),returnPromise:!!t.returnPromise,sourceMap:!!t.sourceMap,sourceMapInlineSources:!!t.sourceMapInlineSources}};function x(t,n,s,u){var c="function"!=typeof s?s:null,l="function"==typeof u?u:"function"==typeof s?s:null,f={stats:{efficiency:0,minifiedSize:0,originalSize:0,startedAt:Date.now(),timeSpent:0},cache:{specificity:{}},errors:[],inlinedStylesheets:[],inputSourceMapTracker:b(),localOnly:!l,options:n,source:null,sourcesContent:{},validator:a(n.compatibility),warnings:[]};return c&&f.inputSourceMapTracker.track(void 0,c),function(t){return t?function(t){return t()}:e.nextTick}(f.localOnly)((function(){return v(t,f,(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}((f.options.sourceMap?_:y)(function(t,e){var n=r(t,e);return n=d.One in e.options.level?i(t,e):t,d.Two in e.options.level?o(t,e,!0):n}(t,f),f),f),l?l(0s.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,i=t.length-1;0<=i;i--)r=!e&&n.test(t[i][1]),t[i][1]=t[i][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(526),i=n(537),o=n(540),a=n(541),s=n(542),u=n(543),c=n(544),l=n(545),f=n(546),h=n(547),d=n(108),p=n(31).OptimizationLevel,g=n(10);t.exports=function t(e,n,m){var b,v,y=n.options.level[p.Two];if(function(e,n){for(var r=0,i=e.length;rObject.keys(b).length||!function(t){var e,n;for(n in t){if(void 0!==e&&t[n].important!=e)return 1;e=t[n].important}}(b)&&function(t,e,n){var i,s,u,c,f=a[e],d=(e=[h.PROPERTY,[h.PROPERTY_NAME,e],[h.PROPERTY_VALUE,f.defaultValue]],l(e));for(o([d],n,[]),u=0,c=f.components.length;u~\+]/;t.exports=function(t){for(var e,n,a,s,u,c=[0,0,0],l=0,f=!1,h=!1,d=0,p=t.length;d\+~:]+/g,"")}t.exports=function(t,e){for(var n=e.options,f=n.level[a.Two].mergeSemantically,h=n.compatibility.selectors.adjacentSpace,d=n.level[a.One].selectorsSortingMethod,p=n.compatibility.selectors.mergeablePseudoClasses,g=n.compatibility.selectors.mergeablePseudoElements,m=n.compatibility.selectors.multiplePseudoMerging,b={},v=t.length-1;0<=v;v--){var y,_,w=t[v];w[0]==c.RULE&&(0e[1]?1:t[1]==e[1]?0:-1}function k(t,e,n){return function t(e,n,r,i){var o=[[e,function(t,e,n){for(var r=0,i=t.length-1;0<=i;i--)r+=t[i][2].length>n?l(t[i][1]).length:-1;return r-(t.length-1)*e+1}(e,n,r)]];if(2p?(S(A+1,v[P]),v.splice(P,1),U=!(b[B]=[R])):(b[B]=b[B]||[],b[B].push(R)),U?v[P]=function(t,e){return(t=u(t))[5]=t[5].concat(e[5]),t}(v[P],F):v.push(F))}for(I=0,M=(_=_.sort(f)).length;Ie[1]?1:-1}t.exports=function(t){for(var e=[],r=[],i=0,o=t.length;i>>0),n=this.head,i=0;n;)!function(t,e,n){t.copy(e,n)}(n.data,e,i),i+=n.data.length,n=n.next;return e},o),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.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,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.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(558),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(12))},function(t,e,n){(function(t,e){!function(t,n){"use strict";var r,i,o,a,s,u;function c(t){delete i[t]}function l(t){if(o)setTimeout(l,0,t);else{var e=i[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(undefined,n)}}(e)}finally{c(t),o=!1}}}}t.setImmediate||(r=1,o=!(i={}),a=t.document,u=(u=Object.getPrototypeOf&&Object.getPrototypeOf(t))&&u.setTimeout?u:t,("[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick((function(){l(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)&&l(+e.data.slice(n.length))}var n="setImmediate$"+Math.random()+"$";t.addEventListener?t.addEventListener("message",e,!1):t.attachEvent("onmessage",e),s=function(e){t.postMessage(n+e,"*")}}:t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){l(t.data)},s=function(e){t.port2.postMessage(e)}}:a&&"onreadystatechange"in a.createElement("script")?function(){var t=a.documentElement;s=function(e){var n=a.createElement("script");n.onreadystatechange=function(){l(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}:function(){s=function(t){setTimeout(l,0,t)}})(),u.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=d-1,x=Math.floor,O=String.fromCharCode;function E(t){throw new RangeError(_[t])}function k(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function T(t,e){var n=t.split("@"),r="";return 1>>10&1023|55296),t=56320|1023&t),e+O(t)})).join("")}function A(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function j(t,e,n){var r=0;for(t=n?x(t/m):t>>1,t+=x(t/e);w*p>>1x((h-l)/o))&&E("overflow"),l+=s*o,!(s<(s=a<=g?1:g+p<=a?p:a-g));a+=d)o>x(h/(s=d-s))&&E("overflow"),o*=s;g=j(l-i,e=u.length+1,0==i),x(l/e)>h-f&&E("overflow"),f+=x(l/e),l%=e,u.splice(l++,0,f)}return C(u)}function P(t){for(var e,n,r,i,o,a,s,u,c,l,f=[],g=(t=S(t)).length,m=128,b=72,v=e=0;vx((h-e)/(u=n+1))&&E("overflow"),e+=(i-m)*u,m=i,v=0;vh&&E("overflow"),s==m){for(o=e,a=d;!(o<(c=a<=b?1:b+p<=a?p:a-b));a+=d)f.push(O(A(c+(l=o-c)%(c=d-c),0))),o=x(l/c);f.push(O(A(o,0))),b=j(e,u,n==r),e=0,++n}++e,++m}return f.join("")}if(l={version:"1.4.1",ucs2:{decode:S,encode:C},decode:M,encode:P,toASCII:function(t){return T(t,(function(t){return v.test(t)?"xn--"+P(t):t}))},toUnicode:function(t){return T(t,(function(t){return b.test(t)?M(t.slice(4).toLowerCase()):t}))}},"object"==o(n(112))&&n(112))void 0===(i=function(){return l}.call(e,n,e,t))||(t.exports=i);else if(s&&u)if(t.exports==s)u.exports=l;else for(f in l)l.hasOwnProperty(f)&&(s[f]=l[f]);else a.punycode=l}(this)}).call(this,n(27)(t),n(12))},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(566),e.encode=e.stringify=n(567)},function(t,e,n){"use strict";t.exports=function(t,e,n,i){n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e=e||"&"),e=1e3,i&&"number"==typeof i.maxKeys&&(e=i.maxKeys);var s=t.length;0s;)c.column--,o=e[u].originalPositionFor(c);return!o||o.column<0?n:null===o.line&&1=this._sources.size()&&!this.sourcesContent.some((function(t){return null==t}))},c.prototype.sourceContentFor=function(t,e){if(!this.sourcesContent)return null;if(0<=(i=this._findSourceIndex(t)))return this.sourcesContent[i];var n,i=t;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=r.urlParse(this.sourceRoot))){if(t=i.replace(/^file:\/\//,""),"file"==n.scheme&&this._sources.has(t))return this.sourcesContent[this._sources.indexOf(t)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(e)return null;throw new Error('"'+i+'" 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",u.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,(f.prototype=Object.create(u.prototype)).constructor=u,f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){for(var t=[],e=0;et.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=1t.format.wrapAt&&(h(t,t.format.breakWith,!1),t.output.push(t.format.breakWith))}function h(t,e,n){e=e.split("\n"),n&&function(t,e){for(var n=0,r=e.length;n>>10&1023|55296),t=56320|1023&t),n+j(t))}function d(t){return"&#x"+t.toString(16).toUpperCase()+";"}function p(t){return"&#"+t+";"}function g(t,e){function n(t){return a(t.charCodeAt(0))}(e=f(e,g.options)).strict&&E.test(t)&&P("forbidden code point");var r=e.encodeEverything,i=e.useNamedReferences,o=e.allowUnsafeSymbols,a=e.decimal?p:d;return r?(t=t.replace(b,(function(t){return i&&l(_,t)?"&"+_[t]+";":n(t)})),i&&(t=t.replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒").replace(/fj/g,"fj")),i&&(t=t.replace(y,(function(t){return"&"+_[t]+";"})))):i?t=(t=(t=o?t:t.replace(w,(function(t){return"&"+_[t]+";"}))).replace(/>\u20D2/g,">⃒").replace(/<\u20D2/g,"<⃒")).replace(y,(function(t){return"&"+_[t]+";"})):o||(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(v,n)}c.global!==c&&c.window!==c||(a=c);var m=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=/[\x01-\x7F]/g,v=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,y=/<\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,x={'"':""","&":"&","'":"'","<":"<",">":">","`":"`"},O=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,E=/[\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]/,k=/&(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,T={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:"‌"},S={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:"ÿ"},C={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:"Ÿ"},A=[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],j=String.fromCharCode,M={}.hasOwnProperty,P=function(t){throw Error("Parse error: "+t)};(c=function t(e,n){var r=(n=f(n,t.options)).strict;return r&&O.test(e)&&P("malformed character reference"),e.replace(k,(function(t,e,i,o,a,s,u,c,l){var f,d,p;return e?T[p=e]:i?(p=i,o&&n.isAttributeValue?(r&&"="==o&&P("`&` did not start a character reference"),t):(r&&P("named character reference was not terminated by a semicolon"),S[p]+(o||""))):a?(d=a,f=s,r&&!f&&P("character reference was not terminated by a semicolon"),h(d=parseInt(d,10),r)):u?(f=c,r&&!f&&P("character reference was not terminated by a semicolon"),h(d=parseInt(u,16),r)):(r&&P("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 R={version:"1.2.0",encode:g,decode:c,escape:function(t){return t.replace(w,(function(t){return x[t]}))},unescape:c};if("object"==o(n(112))&&n(112))void 0===(i=function(){return R}.call(e,n,e,t))||(t.exports=i);else if(s&&!s.nodeType)if(u)u.exports=R;else for(var N in R)l(R,N)&&(s[N]=R[N]);else a.he=R}(this)}).call(this,n(27)(t),n(12))},function(t,e,n){"use strict";var r=n(280).createMapFromString,i=/([^\s"'<>/=]+)/,o=[/=/],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)),u=/^\s*(\/?)>/,c=new RegExp("^<\\/"+n+"[^>]*>"),l=/^]+>/i,f=!1;"x".replace(/x(.)?/g,(function(t,e){f=""===e}));var h=r("area,base,basefont,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr",!0),d=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),p=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),b=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),v={};function y(t,e){for(var n,r,y,_,w=[],x=function(t){var e=i.source+"(?:\\s*("+function(t){return o.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 O=n.toLowerCase(),E=v[O]||(v[O]=new RegExp("([\\s\\S]*?)]*>","i"));t=t.replace(E,(function(t,n){return"script"!==O&&"style"!==O&&"noscript"!==O&&(n=n.replace(//g,"$1").replace(//g,"$1")),e.chars&&e.chars(n),""})),j("",O)}else{if(0===(T=t.indexOf("<"))){if(/^\s*?)/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(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=void 0===(g=t.backgroundColor)?"":g,n=void 0===(y=t.breakpoint)?"480px":y,r=void 0===(m=t.content)?"":m,h=void 0===(b=t.fonts)?{}:b,d=void 0===(_=t.mediaQueries)?{}:_,p=void 0===(v=t.headStyle)?[]:v,g=void 0===(w=t.componentsHeadStyle)?{}:w,m=void 0===(y=t.headRaw)?[]:y,b=t.preview,v=void 0===(_=t.title)?"":_,y=void 0===(w=t.style)?[]:w,_=t.forceOWADesktop,w=t.inlineStyle;return t=(t=t.lang)?'lang="'.concat(t,'" '):"","\n \n \n \n \n ').concat(v,'\n \n \x3c!--[if !mso]>\x3c!--\x3e\n \n \x3c!--\n \n \n \x3c!--[if mso]>\n \n \n \n \n ').concat((0,s.default)(g,(function(t,e){return"".concat(t,"\n").concat(e(n))}),""),"\n ").concat((0,s.default)(p,(function(t,e){return"".concat(t,"\n").concat(e(n))}),""),'\n \n \n ").concat(m.filter((0,a.default)(o.default)).join("\n"),'\n \n \n ').concat((0,c.default)(b),"\n ").concat(r,"\n \n \n ")};var i=r(n(88)),o=r(n(179)),a=r(n(688)),s=r(n(50)),u=r(n(55)),c=r(n(689)),l=n(690),f=r(n(691));t.exports=e.default},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){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return""!==t?'\n
\n '.concat(t,"\n
\n "):""},t.exports=e.default},function(t,e,n){"use strict";var r=n(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.buildFontsTags=function(t,e){var n=[];return(0,o.default)(2\x3c!--\x3e\n ".concat((0,i.default)(n,(function(t){return'')})).join("\n"),'\n \n \x3c!--\n @media only screen and (min-width:'.concat(t,") {\n ").concat(r.join("\n"),'\n }\n \n \n ").concat(n?'"):"","\n ")};var i=r(n(202)),o=r(n(55));t.exports=e.default},function(t,e,n){"use strict";(function(t){var r=n(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.readMjmlConfig=u,e.resolveComponentPath=c,e.registerCustomComponent=l,e.handleMjmlConfigComponents=f,e.default=function(){var e=0\n \n \n \n \n \n \n ").concat(e.render(),"\n \n \n \x3c!--[if mso | IE]>\n \n \n \n \n \n \n ").concat(this.renderChildren(t,{attributes:this.getSocialElementAttributes()}),"\n \n \n ")}},{key:"render",value:function(){return"\n ".concat("horizontal"===this.getAttribute("mode")?this.renderHorizontal():this.renderVertical(),"\n ")}}]),n}(n(8).BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-social"),(0,r.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,r.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 i(t){for(var e=1;e\n \n \n \n \n \n ").concat(a?""):"","\n \n ").concat(a?"":"","\n \n \n \n \n \n ").concat(this.getContent()?"\n \n ").concat(a?""):""),"\n ").concat(this.getContent(),"\n ").concat(a?"":"","\n \n "):"","\n \n ")}}]),n}(a.BodyComponent),e.default=a,(0,f.default)(a,"componentName","mj-social-element"),(0,f.default)(a,"endingTag",!0),(0,f.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,f.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(0).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Navbar",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"NavbarLink",{enumerable:!0,get:function(){return o.default}});var i=r(n(699)),o=r(n(786))},function(t,e,n){"use strict";var r=n(45).default,i=n(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i(n(2)),a=i(n(6)),s=i(n(46)),u=i(n(3)),c=i(n(4)),l=i(n(7)),f=n(8),h=i(n(303)),d=r(n(71));f=function(t){(0,u.default)(n,t);var e=(0,c.default)(n);function n(){var t;(0,o.default)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a 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=h.default.randomBytes(8).toString("hex");return"\n ".concat((0,d.msoConditionalTag)('\n \n '),!0),"\n \n \n \n ").concat(this.getAttribute("ico-open"),"\n \n \n ").concat(this.getAttribute("ico-close"),"\n \n \n \n ")}},{key:"render",value:function(){return"\n ".concat("hamburger"===this.getAttribute("hamburger")?this.renderHamburger():"","\n \n ").concat((0,d.default)('\n \n \n ')),"\n ").concat(this.renderChildren(this.props.children,{attributes:{navbarBaseUrl:this.getAttribute("base-url")}}),"\n ").concat((0,d.default)("\n
\n "),"\n \n ")}}]),n}(f.BodyComponent),e.default=f,(0,l.default)(f,"componentName","mj-navbar"),(0,l.default)(f,"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,l.default)(f,"defaultAttributes",{align:"center","base-url":null,hamburger:null,"ico-align":"center","ico-open":"☰","ico-close":"⊗","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){(((e=t.exports=n(305)).Stream=e).Readable=e).Writable=n(309),e.Duplex=n(67),e.Transform=n(310),e.PassThrough=n(706),e.finished=n(183),e.pipeline=n(707)},function(t,e){},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 i(t,e){for(var n=0;n>>0),n=this.head,r=0;n;)!function(t,e,n){o.prototype.copy.call(t,e,n)}(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0==(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=i.slice(o);break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,a=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0==(t-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n).data=i.slice(a);break}++r}return this.length-=r,e}},{key:s,value:function(t,e){return a(this,function(t){for(var e=1;e>>27}(n)+function(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}(l=~~(c/20),r,i,o)+s+e[c]+a[l]|0;s=o,o=i,i=function(t){return t<<30|t>>>2}(r),r=n,n=l}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,n){var r=n(1),i=n(68),o=n(5).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,u=0;u<16;++u)e[u]=t.readInt32BE(4*u);for(;u<80;++u)e[u]=function(t){return t<<1|t>>>31}(e[u-3]^e[u-8]^e[u-14]^e[u-16]);for(var c=0;c<80;++c){var l=function(t){return t<<5|t>>>27}(n)+function(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}(l=~~(c/20),r,i,o)+s+e[c]+a[l]|0;s=o,o=i,i=function(t){return t<<30|t>>>2}(r),r=n,n=l}this._a=n+this._a|0,this._b=r+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,n){var r=n(1),i=n(311),o=n(68),a=n(5).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}r(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},function(t,e,n){var r=n(1),i=n(312),o=n(68),a=n(5).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}r(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},function(t,e,n){t.exports=i;var r=n(32).EventEmitter;function i(){r.call(this)}n(1)(i,r),i.Readable=n(77),i.Writable=n(713),i.Duplex=n(714),i.Transform=n(715),i.PassThrough=n(716),(i.Stream=i).prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(l(),0===r.listenerCount(this,"error"))throw t}function l(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",c),t.removeListener("error",c),n.removeListener("end",l),n.removeListener("close",l),t.removeListener("close",l)}return n.on("error",c),t.on("error",c),n.on("end",l),n.on("close",l),t.on("close",l),t.emit("pipe",n),t}},function(t,e,n){t.exports=n(164)},function(t,e,n){t.exports=n(42)},function(t,e,n){t.exports=n(77).Transform},function(t,e,n){t.exports=n(77).PassThrough},function(t,e,n){"use strict";var r=n(1),i=n(5).Buffer,o=n(35),a=i.alloc(128);function s(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,64<(this._key=e).length?e=t(e):e.length<64&&(e=i.concat([e,a],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^e[s],r[s]=92^e[s];this._hash=[n]}r(s,o),s.prototype._update=function(t){this._hash.push(t)},s.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=s},function(t,e,n){t.exports=n(315)},function(t,e,n){(function(e){var r,i,o=n(5).Buffer,a=n(317),s=n(318),u=n(319),c=n(320),l=e.crypto&&e.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function d(){return i=i||(e.process&&e.process.nextTick?e.process.nextTick:e.queueMicrotask||e.setImmediate||e.setTimeout)}function p(t,e,n,r,i){return l.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return l.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)})).then((function(t){return o.from(t)}))}t.exports=function(t,n,i,g,m,b){"function"==typeof m&&(b=m,m=void 0);var v=f[(m=m||"sha1").toLowerCase()];if(v&&"function"==typeof e.Promise){if(a(i,g),t=c(t,s,"Password"),n=c(n,s,"Salt"),"function"!=typeof b)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){d()((function(){e(null,t)}))}),(function(t){d()((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!l||!l.importKey||!l.deriveBits)return Promise.resolve(!1);if(void 0!==h[t])return h[t];var n=p(r=r||o.alloc(8),r,10,128,t).then((function(){return!0})).catch((function(){return!1}));return h[t]=n}(v).then((function(e){return e?p(t,n,i,g,v):u(t,n,i,g,m)})),b)}else d()((function(){var e;try{e=u(t,n,i,g,m)}catch(e){return b(e)}b(null,e)}))}}).call(this,n(12))},function(t,e,n){var r=n(721),i=n(187),o=n(188),a=n(734),s=n(116);function u(t,e,n){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,n);if(a[t])return new r({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function c(t,e,n){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,n);if(a[t])return new r({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var n;if(t=t.toLowerCase(),o[t])n=o[t].key,r=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,r=a[t].iv}var r=s(e,!1,n,r);return u(t,r.key,r.iv)},e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=function(t,e){var n;if(t=t.toLowerCase(),o[t])n=o[t].key,r=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,r=a[t].iv}var r=s(e,!1,n,r);return c(t,r.key,r.iv)},e.createDecipheriv=e.Decipheriv=c,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(t,e,n){var r=n(35),i=n(722),o=n(1),a=n(5).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){r.call(this);var e=t.mode.toLowerCase(),n=s[e],i=t.decrypt?"decrypt":"encrypt",o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==e&&"des-ede-cbc"!==e||(o=a.concat([o,o.slice(0,8)])),t=t.iv,a.isBuffer(t)||(t=a.from(t)),this._des=n.create({key:o,iv:t,type:i})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],o(t.exports=u,r),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},function(t,e,n){"use strict";e.utils=n(321),e.Cipher=n(186),e.DES=n(322),e.CBC=n(723),e.EDE=n(724)},function(t,e,n){"use strict";var r=n(19),i=n(1),o={};function a(t){r.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e>a%8,t._prev=function(t,e){var n=t.length,i=-1,o=r.allocUnsafe(t.length);for(t=r.concat([t,r.from([e])]);++i>7;return o}(t._prev,n?i:o);return s}(t,e[a],n);return o}},function(t,e,n){(function(t){var r=n(84);e.encrypt=function(e,n){for(;e._cache.length>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e>>1|(1&n[t-1])<<31;n[0]=n[0]>>>1,e&&(n[0]=n[0]^225<<24)}this.state=o(r)},a.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);16<=this.cache.length;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},function(t,e,n){var r=n(326),i=n(5).Buffer,o=n(188),a=n(327),s=n(35),u=n(115),c=n(116);function l(t,e,n){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(n),this._mode=t,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function h(t,e,n){if(!(t=o[t.toLowerCase()]))throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==t.mode&&n.length!==t.iv)throw new TypeError("invalid iv length "+n.length);if((e="string"==typeof e?i.from(e):e).length!==t.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===t.type?new a(t.module,e,n,!0):"auth"===t.type?new r(t.module,e,n,!0):new l(t.module,e,n)}n(1)(l,s),l.prototype._update=function(t){var e;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)e=this._mode.decrypt(this,e),n.push(e);return i.concat(n)},l.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||16>>0),n=this.head,r=0;n;)!function(t,e,n){o.prototype.copy.call(t,e,n)}(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0==(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e).data=i.slice(o);break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=o.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,a=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0==(t-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n).data=i.slice(a);break}++r}return this.length-=r,e}},{key:s,value:function(t,e){return a(this,function(t){for(var e=1;e>>26-s&67108863,26<=(s+=24)&&(s-=26,r++);else if("le"===n)for(r=a=0;a>>26-s&67108863,26<=(s+=24)&&(s-=26,r++);return this._strip()},a.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r>>26):o+=8;this._strip()},a.prototype._parseBase=function(t,e,n){this.words=[0];for(var r=0,i=this.length=1;i<=67108863;i*=e)r++;i=i/e|0;for(var o=t.length-n,a=o%--r,s=Math.min(o,o-a)+n,u=0,c=n;c"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],g=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0,i=(r=(n.length=r)-1|0,(a=(0|t.words[0])*(0|e.words[0]))/67108864|0);n.words[0]=67108863&a;for(var o=1;o>>26,u=67108863&i,c=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=c;l++)s+=(a=(0|t.words[o-l|0])*(0|e.words[l])+u)/67108864|0,u=67108863&a;n.words[o]=0|u,i=0|s}return 0!==i?n.words[o]=0|i:n.length--,n._strip()}a.prototype.toString=function(t,e){if(e=0|e||1,16===(t=t||10)||"hex"===t){for(var n="",r=0,o=0,a=0;a>>24-r&16777215)||a!==this.length-1?d[6-u.length]+u+n:u+n,26<=(r+=2)&&(r-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative?"-"+n:n}if(t===(0|t)&&2<=t&&t<=36){var c=p[t],l=g[t];for(n="",(f=this.clone()).negative=0;!f.isZero();){var f,h=f.modrn(l).toString(t);n=(f=f.idivn(l)).isZero()?h+n:d[c-h.length]+h+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative?"-"+n:n}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:2>8&255),n>16&255),6===o?(n>24&255),o=r=0):(r=a>>>24,o+=2)}if(n>8&255),0<=n&&(t[n--]=a>>16&255),6===o?(0<=n&&(t[n--]=a>>24&255),o=r=0):(r=a>>>24,o+=2)}if(0<=n)for(t[n--]=r;0<=n;)t[n--]=0},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t;return t=0,4096<=e&&(t+=13,e>>>=13),64<=e&&(t+=7,e>>>=7),8<=e&&(t+=4,e>>>=4),2<=e&&(t+=2,e>>>=2),t+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t;return t=0,!(8191&e)&&(t+=13,e>>>=13),!(127&e)&&(t+=7,e>>>=7),!(15&e)&&(t+=4,e>>>=4),!(3&e)&&(t+=2,e>>>=2),!(1&e)&&t++,t},a.prototype.bitLength=function(){var t=this.words[this.length-1];return t=this._countBits(t),26*(this.length-1)+t},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){for(var e=this.length>t.length?t:this,n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){for(var e,n=this.length>t.length?(e=this,t):(e=t,this),r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&0<=t);var e=0|Math.ceil(t/26);t%=26,this._expand(e),0>26-t),this._strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&0<=t);var n=t/26|0;return t%=26,this._expand(1+n),this.words[n]=e?this.words[n]|1<t.length?(n=this,t):(n=t,this),i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;for(var i=0>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,c=8191&(W=0|r[1]),l=W>>>13,f=8191&(K=0|r[2]),h=K>>>13,d=0|r[3],p=8191&d,g=d>>>13,m=8191&(G=0|r[4]),b=G>>>13,v=8191&($=0|r[5]),y=$>>>13,_=0|r[6],w=8191&_,x=_>>>13,O=8191&(Y=0|r[7]),E=Y>>>13,k=8191&(X=0|r[8]),T=X>>>13,S=8191&(Z=0|r[9]),C=Z>>>13,A=8191&(Q=0|i[0]),j=Q>>>13,M=0|i[1],P=8191&M,R=M>>>13,N=0|i[2],L=8191&N,D=N>>>13,I=8191&(J=0|i[3]),B=J>>>13,F=0|i[4],U=8191&F,H=F>>>13,z=0|i[5],q=8191&z,V=z>>>13,W=8191&(a=0|i[6]),K=a>>>13,G=8191&(d=0|i[7]),$=d>>>13,Y=8191&(_=0|i[8]),X=_>>>13,Z=8191&(r=0|i[9]),Q=r>>>13;n.negative=t.negative^e.negative,n.length=19;var J=(0+Math.imul(s,A)|0)+((8191&(N=Math.imul(s,j)+Math.imul(u,A)|0))<<13)|0,tt=(Math.imul(u,j)+(N>>>13)|0)+(J>>>26)|0;return J&=67108863,M=Math.imul(c,A),N=Math.imul(c,j)+Math.imul(l,A)|0,F=Math.imul(l,j),z=(tt+(M+Math.imul(s,P)|0)|0)+((8191&(N=(N+Math.imul(s,R)|0)+Math.imul(u,P)|0))<<13)|0,tt=((F+Math.imul(u,R)|0)+(N>>>13)|0)+(z>>>26)|0,z&=67108863,M=Math.imul(f,A),N=Math.imul(f,j)+Math.imul(h,A)|0,F=Math.imul(h,j),M=M+Math.imul(c,P)|0,N=(N+Math.imul(c,R)|0)+Math.imul(l,P)|0,F=F+Math.imul(l,R)|0,a=(tt+(M+Math.imul(s,L)|0)|0)+((8191&(N=(N+Math.imul(s,D)|0)+Math.imul(u,L)|0))<<13)|0,tt=((F+Math.imul(u,D)|0)+(N>>>13)|0)+(a>>>26)|0,a&=67108863,M=Math.imul(p,A),N=Math.imul(p,j)+Math.imul(g,A)|0,F=Math.imul(g,j),M=M+Math.imul(f,P)|0,N=(N+Math.imul(f,R)|0)+Math.imul(h,P)|0,F=F+Math.imul(h,R)|0,M=M+Math.imul(c,L)|0,N=(N+Math.imul(c,D)|0)+Math.imul(l,L)|0,F=F+Math.imul(l,D)|0,d=(tt+(M+Math.imul(s,I)|0)|0)+((8191&(N=(N+Math.imul(s,B)|0)+Math.imul(u,I)|0))<<13)|0,tt=((F+Math.imul(u,B)|0)+(N>>>13)|0)+(d>>>26)|0,d&=67108863,M=Math.imul(m,A),N=Math.imul(m,j)+Math.imul(b,A)|0,F=Math.imul(b,j),M=M+Math.imul(p,P)|0,N=(N+Math.imul(p,R)|0)+Math.imul(g,P)|0,F=F+Math.imul(g,R)|0,M=M+Math.imul(f,L)|0,N=(N+Math.imul(f,D)|0)+Math.imul(h,L)|0,F=F+Math.imul(h,D)|0,M=M+Math.imul(c,I)|0,N=(N+Math.imul(c,B)|0)+Math.imul(l,I)|0,F=F+Math.imul(l,B)|0,_=(tt+(M+Math.imul(s,U)|0)|0)+((8191&(N=(N+Math.imul(s,H)|0)+Math.imul(u,U)|0))<<13)|0,tt=((F+Math.imul(u,H)|0)+(N>>>13)|0)+(_>>>26)|0,_&=67108863,M=Math.imul(v,A),N=Math.imul(v,j)+Math.imul(y,A)|0,F=Math.imul(y,j),M=M+Math.imul(m,P)|0,N=(N+Math.imul(m,R)|0)+Math.imul(b,P)|0,F=F+Math.imul(b,R)|0,M=M+Math.imul(p,L)|0,N=(N+Math.imul(p,D)|0)+Math.imul(g,L)|0,F=F+Math.imul(g,D)|0,M=M+Math.imul(f,I)|0,N=(N+Math.imul(f,B)|0)+Math.imul(h,I)|0,F=F+Math.imul(h,B)|0,M=M+Math.imul(c,U)|0,N=(N+Math.imul(c,H)|0)+Math.imul(l,U)|0,F=F+Math.imul(l,H)|0,i=(tt+(M+Math.imul(s,q)|0)|0)+((8191&(N=(N+Math.imul(s,V)|0)+Math.imul(u,q)|0))<<13)|0,tt=((F+Math.imul(u,V)|0)+(N>>>13)|0)+(i>>>26)|0,i&=67108863,M=Math.imul(w,A),N=Math.imul(w,j)+Math.imul(x,A)|0,F=Math.imul(x,j),M=M+Math.imul(v,P)|0,N=(N+Math.imul(v,R)|0)+Math.imul(y,P)|0,F=F+Math.imul(y,R)|0,M=M+Math.imul(m,L)|0,N=(N+Math.imul(m,D)|0)+Math.imul(b,L)|0,F=F+Math.imul(b,D)|0,M=M+Math.imul(p,I)|0,N=(N+Math.imul(p,B)|0)+Math.imul(g,I)|0,F=F+Math.imul(g,B)|0,M=M+Math.imul(f,U)|0,N=(N+Math.imul(f,H)|0)+Math.imul(h,U)|0,F=F+Math.imul(h,H)|0,M=M+Math.imul(c,q)|0,N=(N+Math.imul(c,V)|0)+Math.imul(l,q)|0,F=F+Math.imul(l,V)|0,r=(tt+(M+Math.imul(s,W)|0)|0)+((8191&(N=(N+Math.imul(s,K)|0)+Math.imul(u,W)|0))<<13)|0,tt=((F+Math.imul(u,K)|0)+(N>>>13)|0)+(r>>>26)|0,r&=67108863,M=Math.imul(O,A),N=Math.imul(O,j)+Math.imul(E,A)|0,F=Math.imul(E,j),M=M+Math.imul(w,P)|0,N=(N+Math.imul(w,R)|0)+Math.imul(x,P)|0,F=F+Math.imul(x,R)|0,M=M+Math.imul(v,L)|0,N=(N+Math.imul(v,D)|0)+Math.imul(y,L)|0,F=F+Math.imul(y,D)|0,M=M+Math.imul(m,I)|0,N=(N+Math.imul(m,B)|0)+Math.imul(b,I)|0,F=F+Math.imul(b,B)|0,M=M+Math.imul(p,U)|0,N=(N+Math.imul(p,H)|0)+Math.imul(g,U)|0,F=F+Math.imul(g,H)|0,M=M+Math.imul(f,q)|0,N=(N+Math.imul(f,V)|0)+Math.imul(h,q)|0,F=F+Math.imul(h,V)|0,M=M+Math.imul(c,W)|0,N=(N+Math.imul(c,K)|0)+Math.imul(l,W)|0,F=F+Math.imul(l,K)|0,t=(tt+(M+Math.imul(s,G)|0)|0)+((8191&(N=(N+Math.imul(s,$)|0)+Math.imul(u,G)|0))<<13)|0,tt=((F+Math.imul(u,$)|0)+(N>>>13)|0)+(t>>>26)|0,t&=67108863,M=Math.imul(k,A),N=Math.imul(k,j)+Math.imul(T,A)|0,F=Math.imul(T,j),M=M+Math.imul(O,P)|0,N=(N+Math.imul(O,R)|0)+Math.imul(E,P)|0,F=F+Math.imul(E,R)|0,M=M+Math.imul(w,L)|0,N=(N+Math.imul(w,D)|0)+Math.imul(x,L)|0,F=F+Math.imul(x,D)|0,M=M+Math.imul(v,I)|0,N=(N+Math.imul(v,B)|0)+Math.imul(y,I)|0,F=F+Math.imul(y,B)|0,M=M+Math.imul(m,U)|0,N=(N+Math.imul(m,H)|0)+Math.imul(b,U)|0,F=F+Math.imul(b,H)|0,M=M+Math.imul(p,q)|0,N=(N+Math.imul(p,V)|0)+Math.imul(g,q)|0,F=F+Math.imul(g,V)|0,M=M+Math.imul(f,W)|0,N=(N+Math.imul(f,K)|0)+Math.imul(h,W)|0,F=F+Math.imul(h,K)|0,M=M+Math.imul(c,G)|0,N=(N+Math.imul(c,$)|0)+Math.imul(l,G)|0,F=F+Math.imul(l,$)|0,e=(tt+(M+Math.imul(s,Y)|0)|0)+((8191&(N=(N+Math.imul(s,X)|0)+Math.imul(u,Y)|0))<<13)|0,tt=((F+Math.imul(u,X)|0)+(N>>>13)|0)+(e>>>26)|0,e&=67108863,M=Math.imul(S,A),N=Math.imul(S,j)+Math.imul(C,A)|0,F=Math.imul(C,j),M=M+Math.imul(k,P)|0,N=(N+Math.imul(k,R)|0)+Math.imul(T,P)|0,F=F+Math.imul(T,R)|0,M=M+Math.imul(O,L)|0,N=(N+Math.imul(O,D)|0)+Math.imul(E,L)|0,F=F+Math.imul(E,D)|0,M=M+Math.imul(w,I)|0,N=(N+Math.imul(w,B)|0)+Math.imul(x,I)|0,F=F+Math.imul(x,B)|0,M=M+Math.imul(v,U)|0,N=(N+Math.imul(v,H)|0)+Math.imul(y,U)|0,F=F+Math.imul(y,H)|0,M=M+Math.imul(m,q)|0,N=(N+Math.imul(m,V)|0)+Math.imul(b,q)|0,F=F+Math.imul(b,V)|0,M=M+Math.imul(p,W)|0,N=(N+Math.imul(p,K)|0)+Math.imul(g,W)|0,F=F+Math.imul(g,K)|0,M=M+Math.imul(f,G)|0,N=(N+Math.imul(f,$)|0)+Math.imul(h,G)|0,F=F+Math.imul(h,$)|0,M=M+Math.imul(c,Y)|0,N=(N+Math.imul(c,X)|0)+Math.imul(l,Y)|0,F=F+Math.imul(l,X)|0,s=(tt+(M+Math.imul(s,Z)|0)|0)+((8191&(N=(N+Math.imul(s,Q)|0)+Math.imul(u,Z)|0))<<13)|0,tt=((F+Math.imul(u,Q)|0)+(N>>>13)|0)+(s>>>26)|0,s&=67108863,M=Math.imul(S,P),N=Math.imul(S,R)+Math.imul(C,P)|0,F=Math.imul(C,R),M=M+Math.imul(k,L)|0,N=(N+Math.imul(k,D)|0)+Math.imul(T,L)|0,F=F+Math.imul(T,D)|0,M=M+Math.imul(O,I)|0,N=(N+Math.imul(O,B)|0)+Math.imul(E,I)|0,F=F+Math.imul(E,B)|0,M=M+Math.imul(w,U)|0,N=(N+Math.imul(w,H)|0)+Math.imul(x,U)|0,F=F+Math.imul(x,H)|0,M=M+Math.imul(v,q)|0,N=(N+Math.imul(v,V)|0)+Math.imul(y,q)|0,F=F+Math.imul(y,V)|0,M=M+Math.imul(m,W)|0,N=(N+Math.imul(m,K)|0)+Math.imul(b,W)|0,F=F+Math.imul(b,K)|0,M=M+Math.imul(p,G)|0,N=(N+Math.imul(p,$)|0)+Math.imul(g,G)|0,F=F+Math.imul(g,$)|0,M=M+Math.imul(f,Y)|0,N=(N+Math.imul(f,X)|0)+Math.imul(h,Y)|0,F=F+Math.imul(h,X)|0,c=(tt+(M+Math.imul(c,Z)|0)|0)+((8191&(N=(N+Math.imul(c,Q)|0)+Math.imul(l,Z)|0))<<13)|0,tt=((F+Math.imul(l,Q)|0)+(N>>>13)|0)+(c>>>26)|0,c&=67108863,M=Math.imul(S,L),N=Math.imul(S,D)+Math.imul(C,L)|0,F=Math.imul(C,D),M=M+Math.imul(k,I)|0,N=(N+Math.imul(k,B)|0)+Math.imul(T,I)|0,F=F+Math.imul(T,B)|0,M=M+Math.imul(O,U)|0,N=(N+Math.imul(O,H)|0)+Math.imul(E,U)|0,F=F+Math.imul(E,H)|0,M=M+Math.imul(w,q)|0,N=(N+Math.imul(w,V)|0)+Math.imul(x,q)|0,F=F+Math.imul(x,V)|0,M=M+Math.imul(v,W)|0,N=(N+Math.imul(v,K)|0)+Math.imul(y,W)|0,F=F+Math.imul(y,K)|0,M=M+Math.imul(m,G)|0,N=(N+Math.imul(m,$)|0)+Math.imul(b,G)|0,F=F+Math.imul(b,$)|0,M=M+Math.imul(p,Y)|0,N=(N+Math.imul(p,X)|0)+Math.imul(g,Y)|0,F=F+Math.imul(g,X)|0,f=(tt+(M+Math.imul(f,Z)|0)|0)+((8191&(N=(N+Math.imul(f,Q)|0)+Math.imul(h,Z)|0))<<13)|0,tt=((F+Math.imul(h,Q)|0)+(N>>>13)|0)+(f>>>26)|0,f&=67108863,M=Math.imul(S,I),N=Math.imul(S,B)+Math.imul(C,I)|0,F=Math.imul(C,B),M=M+Math.imul(k,U)|0,N=(N+Math.imul(k,H)|0)+Math.imul(T,U)|0,F=F+Math.imul(T,H)|0,M=M+Math.imul(O,q)|0,N=(N+Math.imul(O,V)|0)+Math.imul(E,q)|0,F=F+Math.imul(E,V)|0,M=M+Math.imul(w,W)|0,N=(N+Math.imul(w,K)|0)+Math.imul(x,W)|0,F=F+Math.imul(x,K)|0,M=M+Math.imul(v,G)|0,N=(N+Math.imul(v,$)|0)+Math.imul(y,G)|0,F=F+Math.imul(y,$)|0,M=M+Math.imul(m,Y)|0,N=(N+Math.imul(m,X)|0)+Math.imul(b,Y)|0,F=F+Math.imul(b,X)|0,p=(tt+(M+Math.imul(p,Z)|0)|0)+((8191&(N=(N+Math.imul(p,Q)|0)+Math.imul(g,Z)|0))<<13)|0,tt=((F+Math.imul(g,Q)|0)+(N>>>13)|0)+(p>>>26)|0,p&=67108863,M=Math.imul(S,U),N=Math.imul(S,H)+Math.imul(C,U)|0,F=Math.imul(C,H),M=M+Math.imul(k,q)|0,N=(N+Math.imul(k,V)|0)+Math.imul(T,q)|0,F=F+Math.imul(T,V)|0,M=M+Math.imul(O,W)|0,N=(N+Math.imul(O,K)|0)+Math.imul(E,W)|0,F=F+Math.imul(E,K)|0,M=M+Math.imul(w,G)|0,N=(N+Math.imul(w,$)|0)+Math.imul(x,G)|0,F=F+Math.imul(x,$)|0,M=M+Math.imul(v,Y)|0,N=(N+Math.imul(v,X)|0)+Math.imul(y,Y)|0,F=F+Math.imul(y,X)|0,m=(tt+(M+Math.imul(m,Z)|0)|0)+((8191&(N=(N+Math.imul(m,Q)|0)+Math.imul(b,Z)|0))<<13)|0,tt=((F+Math.imul(b,Q)|0)+(N>>>13)|0)+(m>>>26)|0,m&=67108863,M=Math.imul(S,q),N=Math.imul(S,V)+Math.imul(C,q)|0,F=Math.imul(C,V),M=M+Math.imul(k,W)|0,N=(N+Math.imul(k,K)|0)+Math.imul(T,W)|0,F=F+Math.imul(T,K)|0,M=M+Math.imul(O,G)|0,N=(N+Math.imul(O,$)|0)+Math.imul(E,G)|0,F=F+Math.imul(E,$)|0,M=M+Math.imul(w,Y)|0,N=(N+Math.imul(w,X)|0)+Math.imul(x,Y)|0,F=F+Math.imul(x,X)|0,v=(tt+(M+Math.imul(v,Z)|0)|0)+((8191&(N=(N+Math.imul(v,Q)|0)+Math.imul(y,Z)|0))<<13)|0,tt=((F+Math.imul(y,Q)|0)+(N>>>13)|0)+(v>>>26)|0,v&=67108863,M=Math.imul(S,W),N=Math.imul(S,K)+Math.imul(C,W)|0,F=Math.imul(C,K),M=M+Math.imul(k,G)|0,N=(N+Math.imul(k,$)|0)+Math.imul(T,G)|0,F=F+Math.imul(T,$)|0,M=M+Math.imul(O,Y)|0,N=(N+Math.imul(O,X)|0)+Math.imul(E,Y)|0,F=F+Math.imul(E,X)|0,w=(tt+(M+Math.imul(w,Z)|0)|0)+((8191&(N=(N+Math.imul(w,Q)|0)+Math.imul(x,Z)|0))<<13)|0,tt=((F+Math.imul(x,Q)|0)+(N>>>13)|0)+(w>>>26)|0,w&=67108863,M=Math.imul(S,G),N=Math.imul(S,$)+Math.imul(C,G)|0,F=Math.imul(C,$),M=M+Math.imul(k,Y)|0,N=(N+Math.imul(k,X)|0)+Math.imul(T,Y)|0,F=F+Math.imul(T,X)|0,O=(tt+(M+Math.imul(O,Z)|0)|0)+((8191&(N=(N+Math.imul(O,Q)|0)+Math.imul(E,Z)|0))<<13)|0,tt=((F+Math.imul(E,Q)|0)+(N>>>13)|0)+(O>>>26)|0,O&=67108863,M=Math.imul(S,Y),N=Math.imul(S,X)+Math.imul(C,Y)|0,F=Math.imul(C,X),k=(tt+(M+Math.imul(k,Z)|0)|0)+((8191&(N=(N+Math.imul(k,Q)|0)+Math.imul(T,Z)|0))<<13)|0,tt=((F+Math.imul(T,Q)|0)+(N>>>13)|0)+(k>>>26)|0,k&=67108863,Z=(tt+Math.imul(S,Z)|0)+((8191&(N=Math.imul(S,Q)+Math.imul(C,Z)|0))<<13)|0,tt=(Math.imul(C,Q)+(N>>>13)|0)+(Z>>>26)|0,Z&=67108863,o[0]=J,o[1]=z,o[2]=a,o[3]=d,o[4]=_,o[5]=i,o[6]=r,o[7]=t,o[8]=e,o[9]=s,o[10]=c,o[11]=f,o[12]=p,o[13]=m,o[14]=v,o[15]=w,o[16]=O,o[17]=k,o[18]=Z,0!=tt&&(o[19]=tt,n.length++),n};function v(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function y(t,e,n){return v(t,e,n)}Math.imul||(b=m),a.prototype.mulTo=function(t,e){var n=this.length+t.length;return(10===this.length&&10===t.length?b:n<63?m:n<1024?v:y)(this,t,e)},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),y(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){var e=t<0;i("number"==typeof(t=e?-t:t)),i(t<67108864);for(var n=0,r=0;r>=26,n+=o/67108864|0,n+=a>>>26,this.words[r]=67108863&a}return 0!==n&&(this.words[r]=n,this.length++),e?this.ineg():this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>n%26&1;return e}(t);if(0===e.length)return new a(1);for(var n=this,r=0;r>>26-e<<26-e;if(0!=e){for(var o=0,a=0;a>>26-e}o&&(this.words[a]=o,this.length++)}if(0!=n){for(a=this.length-1;0<=a;a--)this.words[a+n]=this.words[a];for(a=0;a>>o<a)for(this.length-=a,c=0;c>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&0<=t);var e=t%26;return t=(t-e)/26,!(this.length<=t||!(this.words[t]&1<>>e<>26)-(u/67108864|0),this.words[a+n]=67108863&s}for(;a>26,this.words[a+n]=67108863&s;if(0===o)return this._strip();for(i(-1===o),a=o=0;a>26,this.words[a]=67108863&s;return this.negative=1,this._strip()},a.prototype._wordDiv=function(t,e){this.length,t.length;var n,r=this.clone(),i=t,o=0|i.words[i.length-1];0!=(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new a(null)).length=1+u,s.words=new Array(s.length);for(var c=0;cthis.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modrn(t.words[0]))}:this._wordDiv(t,e);var r,o,s},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1);return t=t.andln(1),(r=n.cmp(r))<0||1===t&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modrn=function(t){var e=t<0;i((t=e?-t:t)<=67108863);for(var n=(1<<26)%t,r=0,o=this.length-1;0<=o;o--)r=(n*r+(0|this.words[o]))%t;return e?-r:r},a.prototype.modn=function(t){return this.modrn(t)},a.prototype.idivn=function(t){var e=t<0;i((t=e?-t:t)<=67108863);for(var n=0,r=this.length-1;0<=r;r--){var o=(0|this.words[r])+67108864*n;this.words[r]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());for(var e=this,n=t.clone(),r=(e=0!==e.negative?e.umod(t):e.clone(),new a(1)),o=new a(0),s=new a(0),u=new a(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=e.clone();!e.isZero();){for(var h=0,d=1;!(e.words[0]&d)&&h<26;++h,d<<=1);if(0>>26,o&=67108863,this.words[r]=o}return 0!==n&&(this.words[r]=n,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e=t<0;return 0===this.negative||e?0===this.negative&&e?1:(this._strip(),t=1t.length)return 1;if(this.lengththis.n;);return 0===(t=e>>22,i=o}0==(t.words[r-10]=i>>>=22)&&10>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(_[t])return _[t];var e;if("k256"===t)e=new x;else if("p224"===t)e=new O;else if("p192"===t)e=new E;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new k}return _[t]=e},T.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},T.prototype._verify2=function(t,e){i(!(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},T.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(f(t,t.umod(this.m)._forceRed(this)),t)},T.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},T.prototype.add=function(t,e){return this._verify2(t,e),0<=(e=t.add(e)).cmp(this.m)&&e.isub(this.m),e._forceRed(this)},T.prototype.iadd=function(t,e){return this._verify2(t,e),0<=(e=t.iadd(e)).cmp(this.m)&&e.isub(this.m),e},T.prototype.sub=function(t,e){return this._verify2(t,e),(e=t.sub(e)).cmpn(0)<0&&e.iadd(this.m),e._forceRed(this)},T.prototype.isub=function(t,e){return this._verify2(t,e),(e=t.isub(e)).cmpn(0)<0&&e.iadd(this.m),e},T.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},T.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},T.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},T.prototype.isqr=function(t){return this.imul(t,t.clone())},T.prototype.sqr=function(t){return this.mul(t,t)},T.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e)return e=this.m.add(new a(1)).iushrn(2),this.pow(t,e);for(var n=this.m.subn(1),r=0;!n.isZero()&&0===n.andln(1);)r++,n.iushrn(1);i(!n.isZero());for(var o=new a(1).toRed(this),s=o.redNeg(),u=this.m.subn(1).iushrn(1),c=new a(2*(c=this.m.bitLength())*c).toRed(this);0!==this.pow(c,u).cmp(s);)c.redIAdd(s);for(var l=this.pow(c,n),f=this.pow(t,n.addn(1).iushrn(1)),h=this.pow(t,n),d=r;0!==h.cmp(o);){for(var p=h,g=0;0!==p.cmp(o);g++)p=p.redSqr();i(g>l&1;i!==n[0]&&(i=this.sqr(i)),0!=f||0!==o?(o<<=1,o|=f,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[o]),o=s=0)):s=0}u=26}return i},T.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},T.prototype.convertFrom=function(t){return(t=t.clone()).red=null,t},a.mont=function(t){return new S(t)},o(S,T),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){return(t=this.imod(t.mul(this.rinv))).red=null,t},S.prototype.imul=function(t,e){return t.isZero()||e.isZero()?(t.words[0]=0,t.length=1,t):(e=(t=t.imul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},S.prototype.mul=function(t,e){return t.isZero()||e.isZero()?new a(0)._forceRed(this):(e=(t=t.mul(e)).maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),0<=(e=t=t.isub(e).iushrn(this.shift)).cmp(this.m)?e=t.isub(this.m):t.cmpn(0)<0&&(e=t.iadd(this.m)),e._forceRed(this))},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(27)(t))},function(t,e){},function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(t,e,n){"use strict";var r=n(20),i=n(15),o=n(1),a=n(117),s=r.assert;function u(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(t,e,n,r){a.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(t,e,n,r){a.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),(t.exports=u).prototype._getEndomorphism=function(t){var e,n,r;if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3))return n=(t.beta?new i(t.beta,16):n=(r=this._getEndoRoots(this.p))[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red),t.lambda?e=new i(t.lambda,16):(r=this._getEndoRoots(this.n),0===this.g.mul(r[0]).x.cmp(this.g.x.redMul(n))?e=r[0]:(e=r[1],s(0===this.g.mul(e).x.cmp(this.g.x.redMul(n))))),{beta:n,lambda:e,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(e)}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),n=(t=(n=new i(2).toRed(e).redInvm()).redNeg(),new i(3).toRed(e).redNeg().redSqrt().redMul(n));return[t.redAdd(n).fromRed(),t.redSub(n).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,n,r,o,a,s=this.n.ushrn(Math.floor(this.n.bitLength()/2)),u=t,c=this.n.clone(),l=new i(1),f=new i(0),h=new i(0),d=new i(1),p=0;0!==u.cmpn(0);){var g=c.div(u),m=c.sub(g.mul(u)),b=h.sub(g.mul(l));if(g=d.sub(g.mul(f)),!r&&m.cmp(s)<0)e=a.neg(),n=l,r=m.neg(),o=b;else if(r&&2==++p)break;c=u,u=a=m,h=l,l=b,d=f,f=g}var v=m.neg(),y=b;return t=r.sqr().add(o.sqr()),0<=v.sqr().add(y.sqr()).cmp(t)&&(v=e,y=n),r.negative&&(r=r.neg(),o=o.neg()),v.negative&&(v=v.neg(),y=y.neg()),[{a:r,b:o},{a:v,b:y}]},u.prototype._endoSplit=function(t){var e=(o=this.endo.basis)[0],n=(a=o[1]).b.mul(t).divRound(this.n),r=e.b.neg().mul(t).divRound(this.n),i=n.mul(e.a),o=r.mul(a.a),a=(e=n.mul(e.b),r.mul(a.b));return{k1:t.sub(i).sub(o),k2:e.add(a).neg()}},u.prototype.pointFromX=function(t,e){var n=(t=(t=new i(t,16)).red?t:t.toRed(this.red)).redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");return n=r.fromRed().isOdd(),(e&&!n||!e&&n)&&(r=r.redNeg()),this.point(t,r)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y;return t=this.a.redMul(e),t=e.redSqr().redMul(e).redIAdd(t).redIAdd(this.b),0===n.redSqr().redISub(t).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);t=(e=0!==(e=this.y.redSub(t.y)).cmpn(0)?e.redMul(this.x.redSub(t.x).redInvm()):e).redSqr().redISub(this.x).redISub(t.x);var e=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,e)},c.prototype.dbl=function(){if(this.inf)return this;if(0===(n=this.y.redAdd(this.y)).cmpn(0))return this.curve.point(null,null);var t=this.curve.a,e=this.x.redSqr(),n=n.redInvm();return n=(t=e.redAdd(e).redIAdd(e).redIAdd(t).redMul(n)).redSqr().redISub(this.x.redAdd(this.x)),t=t.redMul(this.x.redSub(n)).redISub(this.y),this.curve.point(n,t)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,n){return e=[this,e],n=[t,n],this.curve.endo?this.curve._endoWnafMulAdd(e,n):this.curve._wnafMulAdd(1,e,n,2)},c.prototype.jmulAdd=function(t,e,n){return e=[this,e],n=[t,n],this.curve.endo?this.curve._endoWnafMulAdd(e,n,!0):this.curve._wnafMulAdd(1,e,n,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e,n=this.curve.point(this.x,this.y.redNeg());return t&&this.precomputed&&(e=this.precomputed,t=function(t){return t.neg()},n.precomputed={naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(t)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(t)}}),n},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),u.prototype.jpoint=function(t,e,n){return new l(this,t,e,n)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=(n=this.z.redInvm()).redSqr(),e=this.x.redMul(t),n=this.y.redMul(t).redMul(n);return this.curve.point(e,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z));return e=r.redSub(i),n=o.redSub(a),0===e.cmpn(0)?0!==n.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl():(a=(i=e.redSqr()).redMul(e),r=r.redMul(i),i=n.redSqr().redIAdd(a).redISub(r).redISub(r),a=n.redMul(r.redISub(i)).redISub(o.redMul(a)),e=this.z.redMul(t.z).redMul(e),this.curve.jpoint(i,a,e))},l.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z);return t=n.redSub(r),e=i.redSub(o),0===t.cmpn(0)?0!==e.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl():(o=(r=t.redSqr()).redMul(t),n=n.redMul(r),r=e.redSqr().redIAdd(o).redISub(n).redISub(n),o=e.redMul(n.redISub(r)).redISub(i.redMul(o)),t=this.z.redMul(t),this.curve.jpoint(r,o,t))},l.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,n){"use strict";var r=n(15),i=n(1),o=n(117),a=n(20);function s(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,n){o.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),(t.exports=s).prototype.validate=function(t){var e=t.normalize().x;return 0===(e=(t=e.redSqr()).redMul(e).redAdd(t.redMul(this.a)).redAdd(e)).redSqrt().redSqr().cmp(e)},i(u,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e);return t=t.redMul(e),n=n.redMul(e.redAdd(this.curve.a24.redMul(n))),this.curve.point(t,n)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z);return n=t.x.redSub(t.z).redMul(n),i=i.redMul(r),r=e.z.redMul(n.redAdd(i).redSqr()),i=e.x.redMul(n.redISub(i).redSqr()),this.curve.point(r,i)},u.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;0<=o;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,n){"use strict";var r=n(20),i=n(15),o=n(1),a=n(117),s=r.assert;function u(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function c(t,e,n,r,o){a.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),(t.exports=u).prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},u.prototype.pointFromX=function(t,e){var n=(t=(t=new i(t,16)).red?t:t.toRed(this.red)).redSqr(),r=this.c2.redSub(this.a.redMul(n));if(n=this.one.redSub(this.c2.redMul(this.d).redMul(n)),0!==(n=(r=r.redMul(n.redInvm())).redSqrt()).redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");return r=n.fromRed().isOdd(),(e&&!r||!e&&r)&&(n=n.redNeg()),this.point(t,n)},u.prototype.pointFromY=function(t,e){var n=(r=(t=(t=new i(t,16)).red?t:t.toRed(this.red)).redSqr()).redSub(this.c2),r=r.redMul(this.d).redMul(this.c2).redSub(this.a);if(0===(n=n.redMul(r.redInvm())).cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}if(0!==(r=n.redSqrt()).redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");return r.fromRed().isOdd()!==e&&(r=r.redNeg()),this.point(r,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr();return t=e.redMul(this.a).redAdd(n),n=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n))),0===t.cmp(n)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},u.prototype.point=function(t,e,n,r){return new c(this,t,e,n,r)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=(n=this.z.redSqr()).redIAdd(n),r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=(t=(o=r.redAdd(e)).redSub(n),n=r.redSub(e),r=i.redMul(t),e=o.redMul(n),n=i.redMul(n),t.redMul(o));return this.curve.point(r,e,o,n)},c.prototype._projDbl=function(){var t,e,n,r,i,o=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),s=this.y.redSqr(),u=this.curve.twisted?(i=(r=this.curve._mulA(a)).redAdd(s),this.zOne?(t=o.redSub(a).redSub(s).redMul(i.redSub(this.curve.two)),e=i.redMul(r.redSub(s)),i.redSqr().redSub(i).redSub(i)):(n=this.z.redSqr(),u=i.redSub(n).redISub(n),t=o.redSub(a).redISub(s).redMul(u),e=i.redMul(r.redSub(s)),i.redMul(u))):(r=a.redAdd(s),n=this.curve._mulC(this.z).redSqr(),u=r.redSub(n).redSub(n),t=this.curve._mulC(o.redISub(r)).redMul(u),e=this.curve._mulC(r).redMul(a.redISub(s)),r.redMul(u));return this.curve.point(t,e,u)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e);return t=i.redSub(r),i=i.redAdd(r),r=n.redAdd(e),n=o.redMul(t),e=i.redMul(r),r=o.redMul(r),i=t.redMul(i),this.curve.point(n,e,i,r)},c.prototype._projAdd=function(t){var e,n=this.z.redMul(t.z),r=n.redSqr(),i=this.x.redMul(t.x),o=this.y.redMul(t.y),a=this.curve.d.redMul(i).redMul(o),s=r.redSub(a);return a=r.redAdd(a),t=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(i).redISub(o),t=n.redMul(s).redMul(t),a=this.curve.twisted?(e=n.redMul(a).redMul(o.redSub(this.curve._mulA(i))),s.redMul(a)):(e=n.redMul(a).redMul(o.redSub(i)),this.curve._mulC(s).redMul(a)),this.curve.point(t,e,a)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},c.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),0<=n.cmp(this.curve.p))return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},function(t,e,n){"use strict";e.sha1=n(757),e.sha224=n(758),e.sha256=n(339),e.sha384=n(759),e.sha512=n(340)},function(t,e,n){"use strict";var r=n(24),i=n(85),o=(n=n(338),r.rotl32),a=r.sum32,s=r.sum32_5,u=n.ft_1,c=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(f,c),(t.exports=f).blockSize=512,f.outSize=160,f.hmacStrength=80,f.padLength=64,f.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e>=1,0<=s.cmp(this.curve.p.umod(this.curve.n))&&n)throw new Error("Unable to find sencond key candinate");return s=n?this.curve.pointFromX(s.add(this.curve.n),t):this.curve.pointFromX(s,t),e=e.r.invm(o),a=o.sub(a).mul(e).umod(o),o=r.mul(e).umod(o),this.g.mulAdd(a,s,o)},h.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new f(e,r)).recoveryParam)return e.recoveryParam;for(var i,o=0;o<4;o++){try{i=this.recoverPubKey(t,e,o)}catch(t){continue}if(i.eq(n))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,n){"use strict";var r=n(194),i=n(336),o=n(19);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),n=i.toArray(t.nonce,t.nonceEnc||"hex");t=i.toArray(t.pers,t.persEnc||"hex"),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,t)}(t.exports=a).prototype._init=function(t,e,n){n=t.concat(e).concat(n),this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},a.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length"}},function(t,e,n){"use strict";var r=n(15),i=n(20),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function u(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0==r||4>>=0;return!(i<=127)&&(e.place=a,i)}function c(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}(t.exports=a).prototype._importDER=function(t,e){t=i.toArray(t,e);var n=new s;if(48!==t[n.place++])return!1;var o=u(t,n);if(!1===o)return!1;if(o+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;if(!1===(e=u(t,n)))return!1;if(o=t.slice(n.place,e+n.place),n.place+=e,2!==t[n.place++])return!1;if(!1===(e=u(t,n)))return!1;if(t.length!==e+n.place)return!1;if(n=t.slice(n.place,e+n.place),0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===n[0]){if(!(128&n[1]))return!1;n=n.slice(1)}return this.r=new r(o),this.s=new r(n),!(this.recoveryParam=null)},a.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=c(e),n=c(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];return l(r,e.length),(r=r.concat(e)).push(2),l(r,n.length),e=r.concat(n),l(r=[48],e.length),r=r.concat(e),i.encode(r,t)}},function(t,e,n){"use strict";var r=n(194),i=n(193),o=n(20),a=o.assert,s=o.parseBytes,u=n(768),c=n(769);function l(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof l))return new l(t);t=i[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}(t.exports=l).prototype.sign=function(t,e){t=s(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r);return e=this.encodePoint(i),n=this.hashInt(e,n.pubBytes(),t).mul(n.priv()),n=r.add(n).umod(this.curve.n),this.makeSignature({R:i,S:n,Rencoded:e})},l.prototype.verify=function(t,e,n){t=s(t),e=this.makeSignature(e);var r=this.keyFromPublic(n);return n=this.hashInt(e.Rencoded(),r.pubBytes(),t),t=this.g.mul(e.S()),e.R().add(r.pub().mul(n)).eq(t)},l.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=e)throw new Error("invalid sig")}t.exports=function(t,e,n,c,l){if("ec"===(n=a(n)).type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(t,e,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));return r=new o(r),n=n.data.subjectPrivateKey.data,r.verify(e,t,n)}(t,e,n)}if("dsa"===n.type){if("dsa"!==c)throw new Error("wrong public key type");return function(t,e,n){var r=n.data.p,o=n.data.q,s=n.data.g,c=n.data.pub_key,l=a.signature.decode(t,"der");return n=l.s,t=l.r,u(n,o),u(t,o),l=i.mont(r),n=n.invm(o),0===s.toRed(l).redPow(new i(e).mul(n).mod(o)).fromRed().mul(c.toRed(l).redPow(t.mul(n).mod(o)).fromRed()).mod(r).mod(o).cmp(t)}(t,e,n)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");e=r.concat([l,e]);for(var f=n.modulus.byteLength(),h=[1],d=0;e.length+h.length+2d||0<=new a(e).cmp(h.modulus))throw new Error("decryption error");if(t=n?c(new a(e),h):s(e,h),e=l.alloc(d-t.length),t=l.concat([e,t],d),4===f)return function(t,e){var n=t.modulus.byteLength(),r=u("sha1").update(l.alloc(0)).digest(),a=r.length;if(0!==e[0])throw new Error("decryption error");t=e.slice(1,a+1),e=e.slice(a+1),t=o(t,i(e,a));var s=o(e,i(t,n-a-1));if(function(t,e){t=l.from(t),e=l.from(e);var n=0,r=t.length;t.length!==e.length&&(n++,r=Math.min(t.length,e.length));for(var i=-1;++i=e.length){o++;break}var a=e.slice(2,i-1);if(("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return e.slice(i)}(0,t,n);if(3===f)return t;throw new Error("unknown padding")}},function(t,e,n){"use strict";(function(t,r){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=n(5),a=n(65),s=o.Buffer,u=o.kMaxLength,c=t.crypto||t.msCrypto,l=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(l\n ").concat(this.getContent(),"\n \n ")}},{key:"render",value:function(){return"\n ".concat((0,l.default)("\n \n ")),"\n ").concat(this.renderContent(),"\n ").concat((0,l.default)("\n \n "),"\n ")}}]),n}(c.BodyComponent),e.default=n,(0,u.default)(n,"componentName","mj-navbar-link"),(0,u.default)(n,"endingTag",!0),(0,u.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,u.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(0).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"CarouselImage",{enumerable:!0,get:function(){return o.default}});var i=r(n(788)),o=r(n(796))},function(t,e,n){"use strict";var r=n(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(2)),o=r(n(6)),a=r(n(46)),s=r(n(3)),u=r(n(4)),c=r(n(7)),l=r(n(55)),f=r(n(351)),h=r(n(791)),d=r(n(793)),p=n(8),g=r(n(303)),m=n(71);p=function(t){(0,s.default)(n,t);var e=(0,u.default)(n);function n(){var t,r=0\n \n ").concat((0,d.default)(1,this.props.children.length+1).map((function(i){return"\n \n \n \n ")})).join(""),"\n \n \n ")}},{key:"generateImages",value:function(){return"\n \n \n ").concat(this.renderChildren(this.props.children,{attributes:{"border-radius":this.getAttribute("border-radius")}}),"\n \n \n ")}},{key:"generateCarousel",value:function(){return"\n \n \n \n ").concat(this.generateControls("previous",this.getAttribute("left-icon")),"\n ").concat(this.generateImages(),"\n ").concat(this.generateControls("next",this.getAttribute("right-icon")),"\n \n \n \n ")}},{key:"renderFallback",value:function(){var t=this.props.children;return 0===t.length?"":(0,m.msoConditionalTag)(this.renderChildren([t[0]],{attributes:{"border-radius":this.getAttribute("border-radius")}}))}},{key:"render",value:function(){return"\n ".concat((0,m.msoConditionalTag)("\n \n ").concat(this.generateRadios(),"\n \n ").concat(this.generateThumbnails(),"\n ").concat(this.generateCarousel(),"\n \n \n "),!0),"\n ").concat(this.renderFallback(),"\n ")}}]),n}(p.BodyComponent),e.default=p,(0,c.default)(p,"componentName","mj-carousel"),(0,c.default)(p,"allowedAttributes",{align:"enum(left,center,right)","border-radius":"unit(px,%)","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)(p,"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(52);t.exports=function(t,e,n){for(var i=-1,o=t.length;++i\n \n \n ")}},{key:"renderRadio",value:function(){var t=this.props.index,e=this.getAttribute("carouselId");return"\n \n ")}},{key:"render",value:function(){var t=(o=this.attributes).src,e=o.alt,n=o.href,r=o.rel,i=o.title,o=this.props.index;return t="\n \n "),e=this.getAttribute("css-class")||"","\n \n ").concat(n?"").concat(t,""):t,"\n \n ")}}]),n}(u.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(0).default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Accordion",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"AccordionElement",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"AccordionText",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"AccordionTitle",{enumerable:!0,get:function(){return s.default}});var i=r(n(798)),o=r(n(799)),a=r(n(352)),s=r(n(353))},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 i(t){for(var e=1;e\n \n ").concat(this.renderChildren(this.props.children,{attributes:e}),"\n \n \n ")}}]),n}(n(8).BodyComponent),e.default=n,(0,h.default)(n,"componentName","mj-accordion"),(0,h.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,h.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 i(t){for(var e=1;e\n \n \n ").concat((0,p.default)("\n \n "),!0),"\n
\n ").concat(this.handleMissingChildren(),"\n
\n \n \n \n ")}}]),n}(d.BodyComponent),e.default=d,(0,f.default)(d,"componentName","mj-accordion-element"),(0,f.default)(d,"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,f.default)(d,"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 i(t){for(var e=1;e\n ").concat(this.renderChildren(),"\n \n ")}}]),n}(n(8).BodyComponent),e.default=n,(0,o.default)(n,"componentName","mj-body"),(0,o.default)(n,"allowedAttributes",{width:"unit(px)","background-color":"color"}),(0,o.default)(n,"defaultAttributes",{width:"600px"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(2)),o=r(n(6)),a=r(n(3)),s=r(n(4));r=r(n(7)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,i.default)(this,n),e.apply(this,arguments)}return(0,o.default)(n,[{key:"handler",value:function(){return this.handlerChildren()}}]),n}(n(8).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 i(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n\n \n \n \n \n \n \n \n \n \n \n ").concat(this.renderChildren(e,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n \n \n ").concat(t.render(),"\n \n \n ")}}),"\n \n \n \n \n \n \n \n \x3c!--[if mso | IE]>\n \n \n \n \n \n ").concat(this.renderContent(),"\n \n \n ")}return e=parseInt(this.getAttribute("height"),10)-this.getShorthandAttrValue("padding","top")-this.getShorthandAttrValue("padding","bottom"),"\n \n ").concat(this.renderContent(),"\n \n ")}},{key:"render",value:function(){var t=this.context.containerWidth;return"\n \x3c!--[if mso | IE]>\n \n \n \n \n \n \n \n \n ").concat(this.renderMode(),"\n \n \n \n \n \x3c!--[if mso | IE]>\n \n \n \n \n \n \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 \n \n \n \n \n ")}}]),n}(c.BodyComponent),e.default=c,(0,u.default)(c,"componentName","mj-button"),(0,u.default)(c,"endingTag",!0),(0,u.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,u.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 i(t){for(var e=1;e\n \n \n \n ").concat(this.renderColumn(),"\n \n \n \n \n ")}},{key:"renderColumn",value:function(){var t=this.props.children;return"\n \n \n ").concat(this.renderChildren(t,{renderer:function(t){return t.constructor.isRawElement()?t.render():"\n \n \n ").concat(t.render(),"\n \n \n ")}}),"\n \n \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 \n ").concat(this.hasGutter()?this.renderGutter():this.renderColumn(),"\n \n ")}}]),n}(f.BodyComponent),e.default=f,(0,l.default)(f,"componentName","mj-column"),(0,l.default)(f,"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,l.default)(f,"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 i(t){for(var e=1;e\n \n \n \n  \n \n \n \n \n

\n ").concat(this.renderAfter(),"\n ")}}]),n}(f.BodyComponent),e.default=f,(0,l.default)(f,"componentName","mj-divider"),(0,l.default)(f,"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,l.default)(f,"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 i(t){for(var e=1;e\n \x3c!--[if mso | IE]>\n \n \n \n \n \n \n \n \n \n \n ")}}]),n}(f.BodyComponent),e.default=f,(0,l.default)(f,"componentName","mj-group"),(0,l.default)(f,"allowedAttributes",{"background-color":"color",direction:"enum(ltr,rtl)","vertical-align":"enum(top,bottom,middle)",width:"unit(px,%)"}),(0,l.default)(f,"defaultAttributes",{direction:"ltr"}),t.exports=e.default},function(t,e,n){"use strict";var r=n(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(2)),o=r(n(6)),a=r(n(46)),s=r(n(3)),u=r(n(4)),c=r(n(7)),l=r(n(351)),f=n(8),h=r(n(44));f=function(t){(0,s.default)(n,t);var e=(0,u.default)(n);function n(){var t;(0,i.default)(this,n);for(var r=arguments.length,o=new Array(r),s=0;s\n "),this.getAttribute("href")?"\n \n ").concat(t,"\n \n "):t}},{key:"render",value:function(){return"\n \n \n \n \n ").concat(this.renderImage(),"\n \n \n \n \n ")}}]),n}(f.BodyComponent),e.default=f,(0,c.default)(f,"componentName","mj-image"),(0,c.default)(f,"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,c.default)(f,"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(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(2)),o=r(n(6)),a=r(n(3)),s=r(n(4));r=r(n(7)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,i.default)(this,n),e.apply(this,arguments)}return(0,o.default)(n,[{key:"render",value:function(){return this.getContent()}}]),n}(n(8).BodyComponent),e.default=n,(0,r.default)(n,"componentName","mj-raw"),(0,r.default)(n,"endingTag",!0),(0,r.default)(n,"rawElement",!0),t.exports=e.default},function(t,e,n){"use strict";var r=n(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(2)),o=r(n(6)),a=r(n(3)),s=r(n(4));r=r(n(7)),n=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,i.default)(this,n),e.apply(this,arguments)}return(0,o.default)(n,[{key:"getStyles",value:function(){return{div:{height:this.getAttribute("height"),"line-height":this.getAttribute("height")}}}},{key:"render",value:function(){return"\n  \n ")}}]),n}(n(8).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(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(2)),o=r(n(6)),a=r(n(3)),s=r(n(4)),u=r(n(7)),c=n(8),l=r(n(71));c=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,i.default)(this,n),e.apply(this,arguments)}return(0,o.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 ").concat(this.getContent(),"\n ")}},{key:"render",value:function(){var t=this.getAttribute("height");return t?"\n ".concat((0,l.default)('\n
\n ')),"\n ").concat(this.renderContent(),"\n ").concat((0,l.default)("\n
\n "),"\n "):this.renderContent()}}]),n}(c.BodyComponent),e.default=c,(0,u.default)(c,"componentName","mj-text"),(0,u.default)(c,"endingTag",!0),(0,u.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,u.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 i(t){for(var e=1;e\n ").concat(this.getContent(),"\n \n ")}}]),n}(n(8).BodyComponent),e.default=n,(0,f.default)(n,"componentName","mj-table"),(0,f.default)(n,"endingTag",!0),(0,f.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,f.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(0).default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(2)),o=r(n(6)),a=r(n(3)),s=r(n(4)),u=r(n(7)),c=(r=r(n(356)),n(8));r=function(t){(0,a.default)(n,t);var e=(0,s.default)(n);function n(){return(0,i.default)(this,n),e.apply(this,arguments)}return(0,o.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 \n \n \n \n \n 1&&void 0!==arguments[1]?arguments[1]:{},n=t.BlockManager,r={category:t.I18n.t("grapesjs-mjml.category")},i=e.imagePlaceholderSrc||"https://via.placeholder.com/350x250/78c5d6/fff";e.resetBlocks&&n.getAll().reset(),n.add("mj-1-column",a({label:t.I18n.t("grapesjs-mjml.components.names.oneColumn"),content:"\n Content 1\n ",attributes:{class:"gjs-fonts gjs-f-b1"}},r)),n.add("mj-2-columns",a({label:t.I18n.t("grapesjs-mjml.components.names.twoColumn"),content:"\n Content 1\n Content 2\n ",attributes:{class:"gjs-fonts gjs-f-b2"}},r)),n.add("mj-3-columns",a({label:t.I18n.t("grapesjs-mjml.components.names.threeColumn"),content:"\n Content 1\n Content 2\n Content 3\n ",attributes:{class:"gjs-fonts gjs-f-b3"}},r)),n.add("mj-text",a({label:t.I18n.t("grapesjs-mjml.components.names.text"),content:"Insert text here",attributes:{class:"gjs-fonts gjs-f-text"}},r)),n.add("mj-button",a({label:t.I18n.t("grapesjs-mjml.components.names.button"),content:"Button",attributes:{class:"gjs-fonts gjs-f-button"}},r)),n.add("mj-image",a({label:t.I18n.t("grapesjs-mjml.components.names.image"),content:'',attributes:{class:"fa fa-image"}},r)),n.add("mj-divider",a({label:t.I18n.t("grapesjs-mjml.components.names.divider"),content:"",attributes:{class:"gjs-fonts gjs-f-divider"}},r)),n.add("mj-social-group",a({label:t.I18n.t("grapesjs-mjml.components.names.socialGroup"),content:'\n \n \n \n ',attributes:{class:"fa fa-share-alt"}},r)),n.add("mj-social-element",a({label:t.I18n.t("grapesjs-mjml.components.names.socialElement"),content:'',attributes:{class:"fa fa-share-alt"}},r)),n.add("mj-spacer",a({label:t.I18n.t("grapesjs-mjml.components.names.spacer"),content:"",attributes:{class:"fa fa-arrows-v"}},r)),n.add("mj-navbar",a({label:t.I18n.t("grapesjs-mjml.components.names.navBar"),content:"\n Getting started\n Try it live\n Templates\n Components\n ",attributes:{class:"fa fa-bars"}},r)),n.add("mj-navbar-link",a({label:t.I18n.t("grapesjs-mjml.components.names.navLink"),content:"Link 1",attributes:{class:"gjs-fonts gjs-f-button"}},r)),n.add("mj-hero",a({label:t.I18n.t("grapesjs-mjml.components.names.hero"),content:'\n \n GO TO SPACE\n \n \n ORDER YOUR TICKET NOW\n \n ',attributes:{class:"fa fa-id-card"}},r)),n.add("mj-wrapper",a({label:t.I18n.t("grapesjs-mjml.components.names.wrapper"),content:'\n \n \n \n \n \n \n \n First line of text \n \n Second line of text \n \n \n '),attributes:{class:"fa fa-window-maximize"}},r)),n.add("mj-raw",a({label:t.I18n.t("grapesjs-mjml.components.names.raw"),content:'\n
\n Example image\n Example image\n Example image\n Example image \n Example image\n Example image \n
\n
',attributes:{class:"fa fa-html5"}},r))},u=n(1),c=n.n(u),l=n(2),f=n.n(l),h=function(t){return function(e){return e.tagName===t.toUpperCase()}};function d(t,e){var n={useMjmlConfigOptions:!1,mjmlConfigPath:null,filePath:null};return e&&Object.keys(e).length>0&&e.constructor===Object&&(n.fonts=e),f()(t,n)}var p=function(t,e){var n="mjml";e.dc.addType(n,{isComponent:h(n),model:{defaults:{droppable:"[data-gjs-type=mj-head], [data-gjs-type=mj-body]",draggable:!1}}})},g=function(t,e){var n=e.dc,r="mj-head",i=["mj-preview","mj-attributes","mj-style","mj-font","mj-title","mj-raw"].map((function(t){return"[data-gjs-type=".concat(t,"]")})).join(", ");n.addType(r,{isComponent:h(r),model:{defaults:{droppable:i,draggable:!1}}})};function m(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 b(t){for(var e=1;e",end:""}},getTemplateFromEl:function(t){return t.querySelector("style").innerHTML},renderStyle:function(){},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),n=d("".concat(t.start,"\n ").concat(e.start).concat(e.end).concat(t.end),r.fonts).html,i=n.indexOf("")+6,o=n.indexOf("");return n=n.substring(i,o).trim(),a.innerHTML=n,this.getTemplateFromEl(a)}})})};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 _(t){for(var e=1;e",end:'')}},getTemplateFromEl:function(t){return t.querySelectorAll("style")[1].innerHTML},renderStyle:function(){},renderContent:function(){},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),e=this.getInnerMjmlTemplate(),n=d("".concat(t.start,"\n ").concat(e.start).concat(e.end).concat(t.end),r.fonts).html,i=n.indexOf("")+6,o=n.indexOf("");return n=n.substring(i,o).trim(),a.innerHTML=n,this.getTemplateFromEl(a)}})})};function x(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 O(t){for(var e=1;e"),end:"".concat(t.end)}},renderStyle:function(){this.el.setAttribute("style","".concat(this.el.getAttribute("style")+this.attributes.style))},renderContent:function(){this.getChildrenContainer().innerHTML=this.model.get("content")},rerender:function(){i.rerender.call(this),this.model.components().models.forEach((function(t){"mj-section"!=t.attributes.type&&"mj-raw"!=t.attributes.type||t.view.rerender()}))}})})};function k(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 T(t){for(var e=1;e",end:""}},getChildrenSelector:function(){return"table tr td"},renderChildren:function(){i.renderChildren.call(this)},init:function(){i.init.call(this),this.listenTo(this.model.get("components"),"add remove",(function(){this.getChildrenContainer().innerHTML=this.model.get("content"),this.renderChildren()}))}})})};function C(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 A(t){for(var e=1;e".concat(n.start),end:"".concat(n.end,"")}}return{start:"",end:""}},getChildrenSelector:function(){return"table > tbody > tr > td"},init:function(){i.init.call(this),this.listenTo(this.model.get("components"),"add remove",this.render)}})})};function M(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 P(t){for(var e=1;e",end:""}},getChildrenSelector:function(){return"div"}})})};function N(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 L(t){for(var e=1;e/,""),s=o.indexOf("")+6,u=o.indexOf("");a.innerHTML=o.substring(s,u).trim();for(var c,l=this.getTemplateFromEl(a),f={},h=l.attributes,p=0,g=h.length;p".concat(e.style,"")),this.getChildrenContainer().innerHTML=this.model.get("content"),this.renderChildren(),this.renderStyle(),this},renderStyle:function(){var t=this.model.get("style")||{},e=Object.keys(this.model.get("style")).map((function(e){return"".concat(e,":").concat(t[e],";")}));this.el.setAttribute("style","".concat(this.attributes.style," ").concat(e.join(" ")," ").concat(this.el.getAttribute("style")))},getMjmlTemplate:function(){var t=this.model.collection.length-1;t=t||0;var e=Array(t).fill("").join("");return{start:"",end:"".concat(e,"")}},getTemplateFromEl:function(t){return t.firstChild.querySelector("div > table > tbody > tr > td > div")},getChildrenSelector:function(){return"table"}})})};function I(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 B(t){for(var e=1;e",end:""}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"a,p"},renderChildren:function(){i.renderChildren.call(this)},onActive:function(){this.getChildrenContainer().style.pointerEvents="all"},disableEditing:function(){this.getChildrenContainer().style.pointerEvents="none"}})})};function z(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 q(t){for(var e=1;e',end:""}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"img"}})})};function W(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 K(t){for(var e=1;e",end:""}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"td"},rerender:function(){i.rerender.call(this),this.model.components().models.forEach((function(t){"mj-social-element"==t.attributes.type&&t.view.rerender()}))},init:function(){i.init.call(this),this.listenTo(this.model.get("components"),"add remove",this.render)}})})};function $(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".concat(e.start),end:"".concat(e.end,"")}}return{start:"",end:""}},getTemplateFromEl:function(t){return t.querySelector("tr > td > table").innerHTML},getChildrenSelector:function(){return"img"}})})};function Z(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 Q(t){for(var e=1;e",end:""}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"p"}})})};function tt(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 et(t){for(var e=1;e",end:""}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"td"},renderChildren:function(){i.renderChildren.call(this)}})})};function rt(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 it(t){for(var e=1;e/,""),s=o.indexOf("")+6,u=o.indexOf("");a.innerHTML=o.substring(s,u).trim();for(var c,l=this.getTemplateFromEl(a),f={},h=l.attributes,p=0,g=h.length;p".concat(e.style,"")),this.getChildrenContainer().innerHTML=this.model.get("content"),this.renderChildren(),this.renderStyle(),this},getMjmlTemplate:function(){return{start:"",end:""}},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){"mj-navbar-link"==t.attributes.type&&t.view.rerender()}))}})})};function at(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 st(t){for(var e=1;e".concat(e.start),end:"".concat(e.end,"")}}return{start:"",end:""}},getTemplateFromEl:function(t){return t.querySelector("div").innerHTML},getChildrenSelector:function(){return"a,p"},renderChildren:function(){i.renderChildren.call(this)},onActive:function(){this.getChildrenContainer().style.pointerEvents="all"},disableEditing:function(){this.getChildrenContainer().style.pointerEvents="none"}})})};function ct(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 lt(t){for(var e=1;e",end:""}},getChildrenSelector:function(){return"table tr td"}})})};function ht(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 dt(t){for(var e=1;e".concat(n.start),end:"".concat(n.end,"")}}if(t.getInnerMjmlTemplate&&"mj-head"===e){var r=i.getInnerMjmlTemplate.call(t);return{start:"".concat(r.start),end:"".concat(r.end,"")}}return{start:"",end:""}},getTemplateFromEl:function(t){return t.innerHTML},getChildrenSelector:function(){return"*"},init:function(){i.init.call(this),this.listenTo(this.model.get("components"),"add remove",this.render)}})})};function gt(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 mt(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=t.DomComponents,r=n.getType("default"),i=n.getType("text"),o=n.getType("image"),a=n.getType("link"),s=r.model,u=r.view,l=i.model,f=i.view,h=o.model,m=o.view,b=a.model,y=a.view,_=n,x=n.ComponentsView,O=document.createElement("div"),k={init:function(){var t=mt({},this.get("attributes")),e=mt(mt({},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")||{};delete t.style;var e=this.get("src");return e&&(t.src=e),t},getAttrToHTML:function(){var t=mt({},this.get("attributes")),e=mt({},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},toHTML:function(){var t="",e=this.get("tagName"),n=this.get("void"),r="",i=this.getAttrToHTML();for(var o in i){var a=i[o];r+=void 0!==c()(a)&&""!==a?" "+o+'="'+a+'"':""}return t+="<".concat(e).concat(r).concat(n?"/":"",">")+this.get("content"),this.get("components").each((function(e){t+=e.toHTML()})),n||(t+="")),t}},T={init:function(){this.stopListening(this.model,"change:style"),this.listenTo(this.model,"change:attributes change:src",this.rerender)},rerender:function(){this.render(null,null,{},1)},getMjmlTemplate:function(){return{start:"",end:""}},getInnerMjmlTemplate:function(){var t=this.model,e=t.get("tagName"),n=t.getMjmlAttributes(),r="";for(var i in n){var o=n[i];r+=void 0!==c()(o)&&""!==o?" "+i+'="'+o+'"':""}return{start:"<".concat(e).concat(r,">"),end:"")}},getTemplateFromEl:function(t){return t.firstChild.innerHTML},getTemplateFromMjml:function(){var t=this.getMjmlTemplate(),n=this.getInnerMjmlTemplate(),r=d("".concat(t.start,"\n ").concat(n.start).concat(n.end).concat(t.end),e.fonts).html,i=(r=r.replace(//,"")).indexOf("")+6,o=r.indexOf("");return r=r.substring(i,o).trim(),O.innerHTML=r,this.getTemplateFromEl(O)},renderChildren:function(t){var e=this.getChildrenContainer();t?this.componentsView.parentEl=e:(this.componentsView=new x({collection:this.model.get("components"),config:this.config,defaultTypes:this.opts.defaultTypes,componentTypes:this.opts.componentTypes}),this.childNodes=this.componentsView.render(e).el.childNodes);for(var n=Array.prototype.slice.call(this.childNodes),r=0,i=n.length;r",end:""}},getTemplateFromEl:function(t){return t.querySelector("tr").innerHTML},getChildrenSelector:function(){return"td > div"},renderChildren:function(){i.renderChildren.call(this)},onActive:function(){this.getChildrenContainer().style.pointerEvents="all"}})})}(t,C),V(t,C),G(t,C),X(t,C),J(t,C),nt(t,C),ot(t,C),ut(t,C),ft(t,C),pt(t,C)},vt=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.Commands,r=e.overwriteExport?"export-template":"mjml-export";n.add("mjml-import",function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getConfig(),r=t.CodeManager.getViewer("CodeMirror").clone(),i=document.createElement("button"),o=document.createElement("div"),a=n.stylePrefix||"";return i.innerHTML=t.I18n.t("grapesjs-mjml.panels.import.button"),i.className="".concat(a,"btn-prim ").concat(a,"btn-import"),i.onclick=function(){var e=r.editor.getValue();t.DomComponents.getWrapper().set("content",""),t.setComponents(e.trim()),t.Modal.close(),t.runCommand("mjml-import:change")},r.set({codeName:"htmlmixed",theme:e.codeViewerTheme,readOnly:0}),{run:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=t.Modal,u=r.editor;if(s.setTitle(t.I18n.t("grapesjs-mjml.panels.import.title")),!u){var c=document.createElement("textarea"),l=t.I18n.t("grapesjs-mjml.panels.import.label");if(l){var f=document.createElement("div");f.className=a+"import-label",f.innerHTML=l,o.appendChild(f)}o.appendChild(c),o.appendChild(i),r.init(c),u=r.editor}s.setContent(""),s.setContent(o),r.setContent(e.importPlaceholder),s.open(),u.refresh(),n.set&&n.set("active",0)}}}(t,e)),n.add("mjml-import:change",{run:function(){return t.getHtml().trim()}}),n.add(r,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getConfig(),r=t.CodeManager.getViewer("CodeMirror").clone(),i=document.createElement("div"),o=t.Commands;i.style.display="flex",i.style.justifyContent="space-between",r.set({codeName:"htmlmixed",theme:e.codeViewerTheme});var a,s,u=function(){return d(e.preMjml+t.getHtml()+e.postMjml,e.fonts)};return o.add("mjml-get-code",{run:function(){return u()}}),{buildEditor:function(r){var i=t.CodeManager,o=i.getViewer("CodeMirror").clone(),a=document.createElement("textarea"),s=document.createElement("div");s.style.flex="1 0 auto",s.style.padding="5px",s.style.maxWidth="50%",s.style.boxSizing="border-box";var u=o.set({label:r,codeName:"htmlmixed",theme:e.codeViewerTheme,input:a}),c=new i.EditorView({model:u,config:n}).render().el;return s.appendChild(c),u.init(a),{codeEditor:u,el:s}},run:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.Modal;if(r.setTitle(t.I18n.t("grapesjs-mjml.panels.export.title")),r.setContent(""),r.setContent(i),!a){var o=this.buildEditor("MJML");a=o.codeEditor,i.appendChild(o.el)}if(!s){var c=this.buildEditor("HTML");s=c.codeEditor,i.appendChild(c.el)}if(r.open(),a&&(a.setContent(e.preMjml+t.getHtml()+e.postMjml),a.editor.refresh()),s){var l=u();l.errors.length&&l.errors.forEach((function(t){console.warn(t.formattedMessage)})),s.setContent(l.html),s.editor.refresh()}n.set&&n.set("active",0)}}}(t,e)),n.add(e.cmdTglImages,function(){var t=function t(e,n){var r="##";e.each((function(e){if("image"===e.get("type")){var i=e.get("src");n?i===r&&e.set("src",e.get("src_bkp")):i!==r&&(e.set("src_bkp",e.get("src")),e.set("src",r))}t(e.get("components"),n)}))};return{run:function(e){var n=e.getComponents();t(n)},stop:function(e){var n=e.getComponents();t(n,1)}}}()),n.add("undo",{run:function(t,e){e.set("active",0),t.UndoManager.undo(1)}}),n.add("redo",{run:function(t,e){e.set("active",0),t.UndoManager.redo(1)}}),n.add("set-device-desktop",{run:function(t){t.setDevice("Desktop")}}),n.add("set-device-tablet",{run:function(t){t.setDevice("Tablet")}}),n.add("set-device-mobile",{run:function(t){t.setDevice("Mobile portrait")}})},yt=function(t){var e="title",n="data-tooltip-pos",r=t.Panels,o=r.getPanel("options"),a=r.getPanel("options"),s=function(t){t.each((function(t){var e=t.get("attributes");e[n]="bottom",t.set("attributes",e)}))};if(r.addButton("options",{id:"mjml-import",className:"fa fa-download",command:"mjml-import",attributes:i()({},e,t.I18n.t("grapesjs-mjml.panels.buttons.import"))}),o){var u=o.get("buttons");u.each((function(t){var e=t.get("attributes");e[n]="bottom",t.set("attributes",e)}));var c=r.addButton("options","preview");c&&u.remove(c)}if(a){var l=a.get("buttons");l.add([{id:"undo",className:"fa fa-undo",command:"undo",attributes:i()({},e,t.I18n.t("grapesjs-mjml.panels.buttons.undo"))},{id:"redo",className:"fa fa-repeat",command:"redo",attributes:i()({},e,t.I18n.t("grapesjs-mjml.panels.buttons.redo"))}]),s(l)}t.getConfig().showDevices=0;var f=r.addPanel({id:"devices-c"}),h=f.get("buttons");f.get("buttons").add([{id:"deviceDesktop",command:"set-device-desktop",className:"fa fa-desktop",attributes:i()({},e,t.I18n.t("grapesjs-mjml.panels.buttons.desktop"))},{id:"deviceTablet",command:"set-device-tablet",className:"fa fa-tablet",attributes:i()({},e,t.I18n.t("grapesjs-mjml.panels.buttons.tablet"))},{id:"deviceMobile",command:"set-device-mobile",className:"fa fa-mobile",attributes:i()({},e,t.I18n.t("grapesjs-mjml.panels.buttons.mobile"))}]),s(h)},_t=function(t){if((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).resetStyleManager){var e=t.StyleManager.getSectors();t.on("load",(function(){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"}]}]}])}))}},wt={"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"}}}};function xt(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 Ot(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=t.getConfig(),r=Ot({editor:t,defaultTemplate:"",codeViewerTheme:"hopscotch",importPlaceholder:"",imagePlaceholderSrc:"",overwriteExport:1,preMjml:"",postMjml:"",exportOnly:"",resetBlocks:1,resetStyleManager:1,columnsPadding:"10px 0",i18n:{},fonts:{}},e);if(n.forceClass=0,n.devicePreviewMode=1,n.avoidInlineStyle=0,t.I18n.addMessages(Ot({en:wt},r.i18n)),[s,bt,vt,yt,_t].forEach((function(e){return e(t,r)})),r.resetDevices){var i=t.DeviceManager;i.getAll().reset(),i.add("Desktop",""),i.add("Mobile","320px"),i.add("Tablet","820px")}},kt=(e.default=Et,Et.blocksPlugin=s),Tt=Et.componentsPlugin=bt,St=Et.commandsPlugin=vt,Ct=Et.buttonsPlugin=yt,At=Et.stylePlugin=_t}])},806:t=>{window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([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},n(e)}t.exports=n},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}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e){function n(t,e){for(var n=0;n',i.elm=i.getElm(e),i.cbs=[],i.color="",i.isOpen=!0,i.colors=n,i.options=r,i.render(),r.open&&r.open.addEventListener(r.openEvent,(function(t){i.isOpen?i.close():i.open()})),i.elm.addEventListener("click",(function(t){var e=t.target.getAttribute("data-col");e&&(i.color=e,i.set(e),i.close())})),r.closeOnBlur&&window.addEventListener("click",(function(t){t.target!=r.open&&t.target!=i.elm&&i.isOpen&&i.close()})),!1!==r.autoclose&&i.close()}return l()(t,[{key:"getElm",value:function(t){return"string"==typeof t?document.querySelector(t):t}},{key:"render",value:function(){var t=this,e="";t.colors.forEach((function(n){e+=t.options.template.replace(/\{color\}/g,n)})),t.elm.innerHTML=e}},{key:"close",value:function(){this.elm.style.display="none",this.isOpen=!1}},{key:"open",value:function(){this.elm.style.display=this.options.style.display,this.isOpen=!0}},{key:"colorChosen",value:function(t){this.cbs.push(t)}},{key:"set",value:function(t,e){this.color=t,!1!==e&&(this.cbs.forEach((function(e){e&&e(t)})),this.cbs=[])}}]),t}();function h(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 d(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},n=d(d({},{base:{bold:!0,italic:!0,underline:!0,strikethrough:!0,link:!0},fonts:{fontColor:!0,hilite:!0},format:{heading1:!0,heading2:!0,heading3:!0,paragraph:!0,clearFormatting:!0},subscriptSuperscript:!1,indentOutdent:!1,list:!1,align:!0,actions:!1,undoredo:!1,extra:!1,icons:{},darkColorPicker:!0}),e),r=n.icons,o="formatBlock",a=t.RichTextEditor,s=!!n.fonts.fontName&&!!Array.isArray(n.fonts.fontName)&&n.fonts.fontName;n.fonts.fontName=s;var u=s?s.map((function(t){return""})).join(""):"",c='");t.onReady((function(){n.maxWidth&&(a.getToolbarEl().firstChild.style.maxWidth=n.maxWidth),n.base&&"object"!==i()(n.base)||(!n.base.bold&&a.remove("bold"),!n.base.italic&&a.remove("italic"),!n.base.underline&&a.remove("underline"),!n.base.strikethrough&&a.remove("strikethrough"),!n.base.link&&a.remove("link")),n.fonts&&n.fonts.fontName&&a.add("fontName",{icon:c,event:"change",attributes:{style:"padding: 0 4px 2px;",title:"Font Name"},result:function(t,e){return t.exec("fontName",e.btn.firstChild.value)},update:function(t,e){var n=t.doc.queryCommandValue(e.name);"false"!=n&&(e.btn.firstChild.value=n)}}),n.fonts&&n.fonts.fontSize&&a.add("fontSize",{icon:'',event:"change",attributes:{style:"padding: 0 4px 2px;",title:"Font Size"},result:function(t,e){return t.exec("fontSize",e.btn.firstChild.value)},update:function(t,e){var n=t.doc.queryCommandValue(e.name);"false"!=n&&(e.btn.firstChild.value=n)}});var e={};n.fonts&&n.fonts.fontColor&&a.add("fontColor",{icon:"".concat(r.fontColor||'A','\n
\n
'),attributes:{id:"rte-font-color",title:"Font Color"},result:function(r){var i="#foreColor-picker-".concat(t.Config.container.replace("#",""));e[i]||(e[i]=new f(i,n.fonts.fontColor&&Array.isArray(n.fonts.fontColor)?n.fonts.fontColor:null,{open:"span#rte-font-color.gjs-rte-action",closeOnBlur:!0})),e[i].colorChosen((function(t){return r.exec("foreColor",t)}))}});var s={};n.fonts&&n.fonts.hilite&&a.add("hiliteColor",{icon:"".concat(r.hiliteColor||'A','\n
\n
'),attributes:{id:"rte-font-hilite",title:"Font Highlight"},result:function(e){var r="#hilite-picker-".concat(t.Config.container.replace("#",""));s[r]||(s[r]=new f(r,n.fonts.hilite&&Array.isArray(n.fonts.hilite)?n.fonts.hilite:null,{open:"span#rte-font-hilite.gjs-rte-action",closeOnBlur:!0})),s[r].colorChosen((function(t){return e.exec("hiliteColor",t)}))}}),n.format&&n.format.heading1&&a.add("heading1",{icon:r.heading1||"
H1
",attributes:{title:"Heading 1"},result:function(t){return t.exec(o,"

")}}),n.format&&n.format.heading2&&a.add("heading2",{icon:r.heading2||"
H2
",attributes:{title:"Heading 2"},result:function(t){return t.exec(o,"

")}}),n.format&&n.format.heading3&&a.add("heading3",{icon:r.heading3||"
H3
",attributes:{title:"Heading 3"},result:function(t){return t.exec(o,"

")}}),n.format&&n.format.heading4&&a.add("heading4",{icon:r.heading4||"
H4
",attributes:{title:"Heading 4"},result:function(t){return t.exec(o,"

")}}),n.format&&n.format.heading5&&a.add("heading5",{icon:r.heading5||"
H5
",attributes:{title:"Heading 5"},result:function(t){return t.exec(o,"

")}}),n.format&&n.format.heading6&&a.add("heading6",{icon:r.heading6||"
H6
",attributes:{title:"Heading 6"},result:function(t){return t.exec(o,"
")}}),n.format&&n.format.paragraph&&a.add("paragraph",{icon:r.paragraph||"¶",attributes:{title:"Paragraph"},result:function(t){return t.exec(o,"

")}}),n.format&&n.format.quote&&a.add("quote",{icon:r.quote||'',attributes:{title:"Quote"},result:function(t){return t.exec(o,"

")}}),n.format&&n.format.clearFormatting&&a.add("clearFormatting",{icon:r.clear||'',attributes:{title:"Clear Formatting"},result:function(t){return t.exec("removeFormat")}}),n.indentOutdent&&a.add("indent",{icon:r.indent||'',attributes:{title:"Indent"},result:function(t){return t.exec("indent")}}),n.indentOutdent&&a.add("outdent",{icon:r.outdent||'',attributes:{title:"Outdent"},result:function(t){return t.exec("outdent")}}),n.subscriptSuperscript&&a.add("subscript",{icon:r.subscript||"
X2
",attributes:{title:"Subscript"},result:function(t){return t.exec("subscript")}}),n.subscriptSuperscript&&a.add("superscript",{icon:r.superscript||"
X2
",attributes:{title:"Superscript"},result:function(t){return t.exec("superscript")}}),n.list&&a.add("olist",{icon:r.olist||'',attributes:{title:"Ordered List"},result:function(t){return t.exec("insertOrderedList")}}),n.list&&a.add("ulist",{icon:r.ulist||'',attributes:{title:"Unordered List"},result:function(t){return t.exec("insertUnorderedList")}}),n.align&&a.add("justifyLeft",{icon:r.justifyLeft||'',attributes:{title:"Align Left"},result:function(t){return t.exec("justifyLeft")}}),n.align&&a.add("justifyCenter",{icon:r.justifyRight||'',attributes:{title:"Align Center"},result:function(t){return t.exec("justifyCenter")}}),n.align&&a.add("justifyFull",{icon:r.justifyFull||'',attributes:{title:"Align Justify"},result:function(t){return t.exec("justifyFull")}}),n.align&&a.add("justifyRight",{icon:r.justifyRight||'',attributes:{title:"Align Right"},result:function(t){return t.exec("justifyRight")}}),n.actions&&n.actions.copy&&a.add("copy",{icon:r.copy||'',attributes:{title:"Copy"},result:function(t){return t.exec("copy")}}),n.actions&&n.actions.cut&&a.add("cut",{icon:r.cut||'',attributes:{title:"Cut"},result:function(t){return t.exec("cut")}}),n.actions&&n.actions.paste&&a.add("paste",{icon:r.paste||'',attributes:{title:"Paste"},result:function(t){return t.exec("paste")}}),n.actions&&n.actions.delete&&a.add("delete",{icon:r.delete||'',attributes:{title:"Delete"},result:function(t){return t.exec("delete")}}),n.extra&&a.add("code",{icon:r.code||'',attributes:{title:"Code"},result:function(t){return t.exec(o,"
")}}),n.extra&&a.add("line",{icon:r.line||"",attributes:{title:"Horizontal Line"},result:function(t){return t.exec("insertHorizontalRule")}}),n.undoredo&&a.add("undo",{icon:r.undo||'',attributes:{title:"Undo"},result:function(t){return t.exec("undo")}}),n.undoredo&&a.add("redo",{icon:r.redo||'',attributes:{title:"Redo"},result:function(t){return t.exec("redo")}})}))}}])},341:function(t){"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=100)}([function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return On})),n.d(e,"VERSION",(function(){return i.e})),n.d(e,"restArguments",(function(){return o})),n.d(e,"isObject",(function(){return a})),n.d(e,"isNull",(function(){return s})),n.d(e,"isUndefined",(function(){return u})),n.d(e,"isBoolean",(function(){return c})),n.d(e,"isElement",(function(){return l})),n.d(e,"isString",(function(){return h})),n.d(e,"isNumber",(function(){return d})),n.d(e,"isDate",(function(){return p})),n.d(e,"isRegExp",(function(){return g})),n.d(e,"isError",(function(){return m})),n.d(e,"isSymbol",(function(){return b})),n.d(e,"isArrayBuffer",(function(){return v})),n.d(e,"isDataView",(function(){return T})),n.d(e,"isArray",(function(){return S})),n.d(e,"isFunction",(function(){return w})),n.d(e,"isArguments",(function(){return j})),n.d(e,"isFinite",(function(){return M})),n.d(e,"isNaN",(function(){return P})),n.d(e,"isTypedArray",(function(){return F})),n.d(e,"isEmpty",(function(){return q})),n.d(e,"isMatch",(function(){return V})),n.d(e,"isEqual",(function(){return Y})),n.d(e,"isMap",(function(){return it})),n.d(e,"isWeakMap",(function(){return ot})),n.d(e,"isSet",(function(){return at})),n.d(e,"isWeakSet",(function(){return st})),n.d(e,"keys",(function(){return z})),n.d(e,"allKeys",(function(){return X})),n.d(e,"values",(function(){return ut})),n.d(e,"pairs",(function(){return ct})),n.d(e,"invert",(function(){return lt})),n.d(e,"functions",(function(){return ft})),n.d(e,"methods",(function(){return ft})),n.d(e,"extend",(function(){return dt})),n.d(e,"extendOwn",(function(){return pt})),n.d(e,"assign",(function(){return pt})),n.d(e,"defaults",(function(){return gt})),n.d(e,"create",(function(){return bt})),n.d(e,"clone",(function(){return vt})),n.d(e,"tap",(function(){return yt})),n.d(e,"get",(function(){return Ot})),n.d(e,"has",(function(){return Et})),n.d(e,"mapObject",(function(){return Pt})),n.d(e,"identity",(function(){return kt})),n.d(e,"constant",(function(){return R})),n.d(e,"noop",(function(){return Rt})),n.d(e,"toPath",(function(){return _t})),n.d(e,"property",(function(){return St})),n.d(e,"propertyOf",(function(){return Nt})),n.d(e,"matcher",(function(){return Tt})),n.d(e,"matches",(function(){return Tt})),n.d(e,"times",(function(){return Lt})),n.d(e,"random",(function(){return Dt})),n.d(e,"now",(function(){return It})),n.d(e,"escape",(function(){return Ut})),n.d(e,"unescape",(function(){return Ht})),n.d(e,"templateSettings",(function(){return zt})),n.d(e,"template",(function(){return $t})),n.d(e,"result",(function(){return Yt})),n.d(e,"uniqueId",(function(){return Zt})),n.d(e,"chain",(function(){return Qt})),n.d(e,"iteratee",(function(){return jt})),n.d(e,"partial",(function(){return ee})),n.d(e,"bind",(function(){return ne})),n.d(e,"bindAll",(function(){return oe})),n.d(e,"memoize",(function(){return ae})),n.d(e,"delay",(function(){return se})),n.d(e,"defer",(function(){return ue})),n.d(e,"throttle",(function(){return ce})),n.d(e,"debounce",(function(){return le})),n.d(e,"wrap",(function(){return fe})),n.d(e,"negate",(function(){return he})),n.d(e,"compose",(function(){return de})),n.d(e,"after",(function(){return pe})),n.d(e,"before",(function(){return ge})),n.d(e,"once",(function(){return me})),n.d(e,"findKey",(function(){return be})),n.d(e,"findIndex",(function(){return ye})),n.d(e,"findLastIndex",(function(){return _e})),n.d(e,"sortedIndex",(function(){return we})),n.d(e,"indexOf",(function(){return Oe})),n.d(e,"lastIndexOf",(function(){return Ee})),n.d(e,"find",(function(){return ke})),n.d(e,"detect",(function(){return ke})),n.d(e,"findWhere",(function(){return Te})),n.d(e,"each",(function(){return Se})),n.d(e,"forEach",(function(){return Se})),n.d(e,"map",(function(){return Ce})),n.d(e,"collect",(function(){return Ce})),n.d(e,"reduce",(function(){return je})),n.d(e,"foldl",(function(){return je})),n.d(e,"inject",(function(){return je})),n.d(e,"reduceRight",(function(){return Me})),n.d(e,"foldr",(function(){return Me})),n.d(e,"filter",(function(){return Pe})),n.d(e,"select",(function(){return Pe})),n.d(e,"reject",(function(){return Re})),n.d(e,"every",(function(){return Ne})),n.d(e,"all",(function(){return Ne})),n.d(e,"some",(function(){return Le})),n.d(e,"any",(function(){return Le})),n.d(e,"contains",(function(){return De})),n.d(e,"includes",(function(){return De})),n.d(e,"include",(function(){return De})),n.d(e,"invoke",(function(){return Ie})),n.d(e,"pluck",(function(){return Be})),n.d(e,"where",(function(){return Fe})),n.d(e,"max",(function(){return Ue})),n.d(e,"min",(function(){return He})),n.d(e,"shuffle",(function(){return qe})),n.d(e,"sample",(function(){return ze})),n.d(e,"sortBy",(function(){return Ve})),n.d(e,"groupBy",(function(){return Ke})),n.d(e,"indexBy",(function(){return Ge})),n.d(e,"countBy",(function(){return $e})),n.d(e,"partition",(function(){return Ye})),n.d(e,"toArray",(function(){return Ze})),n.d(e,"size",(function(){return Qe})),n.d(e,"pick",(function(){return tn})),n.d(e,"omit",(function(){return en})),n.d(e,"first",(function(){return rn})),n.d(e,"head",(function(){return rn})),n.d(e,"take",(function(){return rn})),n.d(e,"initial",(function(){return nn})),n.d(e,"last",(function(){return an})),n.d(e,"rest",(function(){return on})),n.d(e,"tail",(function(){return on})),n.d(e,"drop",(function(){return on})),n.d(e,"compact",(function(){return sn})),n.d(e,"flatten",(function(){return un})),n.d(e,"without",(function(){return ln})),n.d(e,"uniq",(function(){return fn})),n.d(e,"unique",(function(){return fn})),n.d(e,"union",(function(){return hn})),n.d(e,"intersection",(function(){return dn})),n.d(e,"difference",(function(){return cn})),n.d(e,"unzip",(function(){return pn})),n.d(e,"transpose",(function(){return pn})),n.d(e,"zip",(function(){return gn})),n.d(e,"object",(function(){return mn})),n.d(e,"range",(function(){return bn})),n.d(e,"chunk",(function(){return vn})),n.d(e,"mixin",(function(){return _n}));var r={};n.r(r),n.d(r,"VERSION",(function(){return i.e})),n.d(r,"restArguments",(function(){return o})),n.d(r,"isObject",(function(){return a})),n.d(r,"isNull",(function(){return s})),n.d(r,"isUndefined",(function(){return u})),n.d(r,"isBoolean",(function(){return c})),n.d(r,"isElement",(function(){return l})),n.d(r,"isString",(function(){return h})),n.d(r,"isNumber",(function(){return d})),n.d(r,"isDate",(function(){return p})),n.d(r,"isRegExp",(function(){return g})),n.d(r,"isError",(function(){return m})),n.d(r,"isSymbol",(function(){return b})),n.d(r,"isArrayBuffer",(function(){return v})),n.d(r,"isDataView",(function(){return T})),n.d(r,"isArray",(function(){return S})),n.d(r,"isFunction",(function(){return w})),n.d(r,"isArguments",(function(){return j})),n.d(r,"isFinite",(function(){return M})),n.d(r,"isNaN",(function(){return P})),n.d(r,"isTypedArray",(function(){return F})),n.d(r,"isEmpty",(function(){return q})),n.d(r,"isMatch",(function(){return V})),n.d(r,"isEqual",(function(){return Y})),n.d(r,"isMap",(function(){return it})),n.d(r,"isWeakMap",(function(){return ot})),n.d(r,"isSet",(function(){return at})),n.d(r,"isWeakSet",(function(){return st})),n.d(r,"keys",(function(){return z})),n.d(r,"allKeys",(function(){return X})),n.d(r,"values",(function(){return ut})),n.d(r,"pairs",(function(){return ct})),n.d(r,"invert",(function(){return lt})),n.d(r,"functions",(function(){return ft})),n.d(r,"methods",(function(){return ft})),n.d(r,"extend",(function(){return dt})),n.d(r,"extendOwn",(function(){return pt})),n.d(r,"assign",(function(){return pt})),n.d(r,"defaults",(function(){return gt})),n.d(r,"create",(function(){return bt})),n.d(r,"clone",(function(){return vt})),n.d(r,"tap",(function(){return yt})),n.d(r,"get",(function(){return Ot})),n.d(r,"has",(function(){return Et})),n.d(r,"mapObject",(function(){return Pt})),n.d(r,"identity",(function(){return kt})),n.d(r,"constant",(function(){return R})),n.d(r,"noop",(function(){return Rt})),n.d(r,"toPath",(function(){return _t})),n.d(r,"property",(function(){return St})),n.d(r,"propertyOf",(function(){return Nt})),n.d(r,"matcher",(function(){return Tt})),n.d(r,"matches",(function(){return Tt})),n.d(r,"times",(function(){return Lt})),n.d(r,"random",(function(){return Dt})),n.d(r,"now",(function(){return It})),n.d(r,"escape",(function(){return Ut})),n.d(r,"unescape",(function(){return Ht})),n.d(r,"templateSettings",(function(){return zt})),n.d(r,"template",(function(){return $t})),n.d(r,"result",(function(){return Yt})),n.d(r,"uniqueId",(function(){return Zt})),n.d(r,"chain",(function(){return Qt})),n.d(r,"iteratee",(function(){return jt})),n.d(r,"partial",(function(){return ee})),n.d(r,"bind",(function(){return ne})),n.d(r,"bindAll",(function(){return oe})),n.d(r,"memoize",(function(){return ae})),n.d(r,"delay",(function(){return se})),n.d(r,"defer",(function(){return ue})),n.d(r,"throttle",(function(){return ce})),n.d(r,"debounce",(function(){return le})),n.d(r,"wrap",(function(){return fe})),n.d(r,"negate",(function(){return he})),n.d(r,"compose",(function(){return de})),n.d(r,"after",(function(){return pe})),n.d(r,"before",(function(){return ge})),n.d(r,"once",(function(){return me})),n.d(r,"findKey",(function(){return be})),n.d(r,"findIndex",(function(){return ye})),n.d(r,"findLastIndex",(function(){return _e})),n.d(r,"sortedIndex",(function(){return we})),n.d(r,"indexOf",(function(){return Oe})),n.d(r,"lastIndexOf",(function(){return Ee})),n.d(r,"find",(function(){return ke})),n.d(r,"detect",(function(){return ke})),n.d(r,"findWhere",(function(){return Te})),n.d(r,"each",(function(){return Se})),n.d(r,"forEach",(function(){return Se})),n.d(r,"map",(function(){return Ce})),n.d(r,"collect",(function(){return Ce})),n.d(r,"reduce",(function(){return je})),n.d(r,"foldl",(function(){return je})),n.d(r,"inject",(function(){return je})),n.d(r,"reduceRight",(function(){return Me})),n.d(r,"foldr",(function(){return Me})),n.d(r,"filter",(function(){return Pe})),n.d(r,"select",(function(){return Pe})),n.d(r,"reject",(function(){return Re})),n.d(r,"every",(function(){return Ne})),n.d(r,"all",(function(){return Ne})),n.d(r,"some",(function(){return Le})),n.d(r,"any",(function(){return Le})),n.d(r,"contains",(function(){return De})),n.d(r,"includes",(function(){return De})),n.d(r,"include",(function(){return De})),n.d(r,"invoke",(function(){return Ie})),n.d(r,"pluck",(function(){return Be})),n.d(r,"where",(function(){return Fe})),n.d(r,"max",(function(){return Ue})),n.d(r,"min",(function(){return He})),n.d(r,"shuffle",(function(){return qe})),n.d(r,"sample",(function(){return ze})),n.d(r,"sortBy",(function(){return Ve})),n.d(r,"groupBy",(function(){return Ke})),n.d(r,"indexBy",(function(){return Ge})),n.d(r,"countBy",(function(){return $e})),n.d(r,"partition",(function(){return Ye})),n.d(r,"toArray",(function(){return Ze})),n.d(r,"size",(function(){return Qe})),n.d(r,"pick",(function(){return tn})),n.d(r,"omit",(function(){return en})),n.d(r,"first",(function(){return rn})),n.d(r,"head",(function(){return rn})),n.d(r,"take",(function(){return rn})),n.d(r,"initial",(function(){return nn})),n.d(r,"last",(function(){return an})),n.d(r,"rest",(function(){return on})),n.d(r,"tail",(function(){return on})),n.d(r,"drop",(function(){return on})),n.d(r,"compact",(function(){return sn})),n.d(r,"flatten",(function(){return un})),n.d(r,"without",(function(){return ln})),n.d(r,"uniq",(function(){return fn})),n.d(r,"unique",(function(){return fn})),n.d(r,"union",(function(){return hn})),n.d(r,"intersection",(function(){return dn})),n.d(r,"difference",(function(){return cn})),n.d(r,"unzip",(function(){return pn})),n.d(r,"transpose",(function(){return pn})),n.d(r,"zip",(function(){return gn})),n.d(r,"object",(function(){return mn})),n.d(r,"range",(function(){return bn})),n.d(r,"chunk",(function(){return vn})),n.d(r,"mixin",(function(){return _n})),n.d(r,"default",(function(){return wn}));var i=n(7);function o(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),i=0;i=0&&n<=i.b}}function L(t){return function(e){return null==e?void 0:e[t]}}var D=L("byteLength"),I=N(D),B=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,F=i.r?function(t){return i.l?Object(i.l)(t)&&!T(t):I(t)&&B.test(i.t.call(t))}:R(!1),U=L("length");function H(t,e){e=function(t){for(var e={},n=t.length,r=0;r":">",'"':""","'":"'","`":"`"},Ut=Bt(Ft),Ht=Bt(lt(Ft)),zt=W.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},qt=/(.)^/,Vt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Wt=/\\|'|\r|\n|\u2028|\u2029/g;function Kt(t){return"\\"+Vt[t]}var Gt=/^\s*(\w|\$)+\s*$/;function $t(t,e,n){!e&&n&&(e=n),e=gt({},e,W.templateSettings);var r=RegExp([(e.escape||qt).source,(e.interpolate||qt).source,(e.evaluate||qt).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,(function(e,n,r,a,s){return o+=t.slice(i,s).replace(Wt,Kt),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e})),o+="';\n";var a,s=e.variable;if(s){if(!Gt.test(s))throw new Error("variable is not a bare identifier: "+s)}else o="with(obj||{}){\n"+o+"}\n",s="obj";o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{a=new Function(s,"_",o)}catch(t){throw t.source=o,t}var u=function(t){return a.call(this,t,W)};return u.source="function("+s+"){\n"+o+"}",u}function Yt(t,e,n){var r=(e=wt(e)).length;if(!r)return w(n)?n.call(t):n;for(var i=0;i1)ie(s,e-1,n,r),i=r.length;else for(var u=0,c=s.length;ue?(r&&(clearTimeout(r),r=null),s=c,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(u,l)),a};return c.cancel=function(){clearTimeout(r),s=0,r=i=o=null},c}function le(t,e,n){var r,i,a,s,u,c=function(){var o=It()-i;e>o?r=setTimeout(c,e-o):(r=null,n||(s=t.apply(u,a)),r||(a=u=null))},l=o((function(o){return u=this,a=o,i=It(),r||(r=setTimeout(c,e),n&&(s=t.apply(u,a))),s}));return l.cancel=function(){clearTimeout(r),r=a=u=null},l}function fe(t,e){return ee(e,t)}function he(t){return function(){return!t.apply(this,arguments)}}function de(){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 pe(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function ge(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}}var me=ee(ge,2);function be(t,e,n){e=Mt(e,n);for(var r,i=z(t),o=0,a=i.length;o0?0:i-1;o>=0&&o0?s=a>=0?a:Math.max(a+u,s):u=a>=0?Math.min(a+1,u):a+u+1;else if(n&&a&&u)return r[a=n(r,o)]===o?a:-1;if(o!=o)return(a=e(i.q.call(r,s,u),P))>=0?a+s:-1;for(a=t>0?s:u-1;a>=0&&a0?0:a-1;for(i||(r=e[o?o[s]:s],s+=t);s>=0&&s=3;return e(t,Ct(n,i,4),r,o)}}var je=Ae(1),Me=Ae(-1);function Pe(t,e,n){var r=[];return e=Mt(e,n),Se(t,(function(t,n,i){e(t,n,i)&&r.push(t)})),r}function Re(t,e,n){return Pe(t,he(Mt(e)),n)}function Ne(t,e,n){e=Mt(e,n);for(var r=!re(t)&&z(t),i=(r||t).length,o=0;o=0}var Ie=o((function(t,e,n){var r,i;return w(e)?i=e:(e=wt(e),r=e.slice(0,-1),e=e[e.length-1]),Ce(t,(function(t){var o=i;if(!o){if(r&&r.length&&(t=xt(t,r)),null==t)return;o=t[e]}return null==o?o:o.apply(t,n)}))}));function Be(t,e){return Ce(t,St(e))}function Fe(t,e){return Pe(t,Tt(e))}function Ue(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=re(t)?t:ut(t)).length;so&&(o=r);else e=Mt(e,n),Se(t,(function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)}));return o}function He(t,e,n){var r,i,o=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var s=0,u=(t=re(t)?t:ut(t)).length;sr||void 0===n)return 1;if(n1&&(r=Ct(r,e[1])),e=X(t)):(r=Je,e=ie(e,!1,!1),t=Object(t));for(var i=0,o=e.length;i1&&(n=e[1])):(e=Ce(ie(e,!1,!1),String),r=function(t,n){return!De(e,n)}),tn(t,r,n)}));function nn(t,e,n){return i.q.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))}function rn(t,e,n){return null==t||t.length<1?null==e||n?void 0:[]:null==e||n?t[0]:nn(t,t.length-e)}function on(t,e,n){return i.q.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]:on(t,Math.max(0,t.length-e))}function sn(t){return Pe(t,Boolean)}function un(t,e){return ie(t,e,!1)}var cn=o((function(t,e){return e=ie(e,!0,!0),Pe(t,(function(t){return!De(e,t)}))})),ln=o((function(t,e){return cn(t,e)}));function fn(t,e,n,r){c(e)||(r=n,n=e,e=!1),null!=n&&(n=Mt(n,r));for(var i=[],o=[],a=0,s=U(t);a1&&void 0!==arguments[1]?arguments[1]:{},r=Object(s.isArray)(e)?a()(e):[e];if(r.length){var i=r.shift();if(i&&(!n.unique||!document.querySelector('link[href="'.concat(i,'"]')))){var o=document.head,u=document.createElement("link");u.href=i,u.rel="stylesheet",n.prepand?o.insertBefore(u,o.firstChild):o.appendChild(u)}t(r)}},p=function(t,e){var n={},r=Object(s.keys)(e);for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],a=e[i];r.indexOf(i)>=0?o!==a&&(n[i]=a):n[i]=null}for(var u in e)e.hasOwnProperty(u)&&Object(s.isUndefined)(t[u])&&(n[u]=e[u]);return n},g=function(t,e,n,r){e=e.split(/\s+/),t=t instanceof Array?t:[t];for(var i=function(i){t.forEach((function(t){return t&&t.addEventListener(e[i],n,r)}))},o=0;o1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(isNaN(t))return n;if(t=parseFloat(t),Math.floor(t)!==t){var i=e.toString().split(".")[1];r=i?i.length:0}return r?parseFloat(t.toFixed(r)):t},w=function(t){return"draggable"in document.createElement("i")&&(t?t.get("Config").nativeDnD:1)},x=function(t){return Object(s.isElement)(t)||O(t)?t:t&&t.getEl?t.getEl():void 0},O=function(t){return t&&3===t.nodeType},E=function(t){return t&&8===t.nodeType},k=function(t){return t&&!O(t)&&!E(t)},T=function(t,e){var n=null;return t.some((function(r,i){return e(r,i,t)?(n=r,1):0})),n},S=function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/`/g,"`")},C=function(t,e){var n=t;return Object(s.isElement)(t)&&(n=e(t).data("model")),n},A=function(t){var e,n={top:0,left:0,width:0,height:0};if(!t)return n;if(O(t)){var r=document.createRange();r.selectNode(t),e=r.getBoundingClientRect(),r.detach()}return e||(t.getBoundingClientRect?t.getBoundingClientRect():n)},j=function(t){return t.touches&&t.touches[0]?t.touches[0]:t},M=function(t){return t.which||t.keyCode},P=function(t){return String.fromCharCode(M(t))},R=function(t){return 27===M(t)},N=function(t){return 13===M(t)},L=function(t){return null!==t&&!Array.isArray(t)&&"object"===i()(t)},D=function(t){return Object.keys(t).length<=0},I=function(t){return t&&t.charAt(0).toUpperCase()+t.substring(1)},B=function(t){return t&&t.toHTML},F=function(t){return t&&t.toCSS},U=function(t){return t.__gjsv},H=function(t,e){t.__gjsv=e},z=function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=0;rthis.length&&(i=this.length),i<0&&(i+=this.length+1);var o,a,s=[],u=[],c=[],l=[],f={},h=e.add,d=e.merge,p=e.remove,g=!1,m=this.comparator&&null==i&&!1!==e.sort,b=n.isString(this.comparator)?this.comparator:null;for(a=0;a7),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(N,"/"),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,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var o=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?o("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?o("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),P.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(!P.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;if(t=this.decodeFragment(t.replace(L,"")),this.fragment!==t){if(this.fragment=t,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 P,v.extend=y.extend=S.extend=O.extend=P.extend=function(t,e){var r,i=this;return r=t&&n.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)},n.extend(r,i,e),r.prototype=n.create(i.prototype,t),r.prototype.constructor=r,r.__super__=i.prototype,r};var D=function(){throw new Error('A "url" property or function must be specified')},I=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}(a,n,t,e)}.apply(e,i))||(t.exports=o)}).call(this,n(35))},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){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(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){function n(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=this.target,r=this.get("name");if(!Object(w.isUndefined)(t)){var i=t;if("false"===t?i=!1:"true"===t&&(i=!0),this.get("changeProp"))n.set(r,i,e);else{var o=j({},n.get("attributes"));o[r]=i,n.set("attributes",o,e)}}},setValueFromInput:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={value:t};this.set(r,j(j({},n),{},{avoidStore:1})),e&&(this.set("value","",n),this.set(r,n))},getInitValue:function(){var t,e=this.target,n=this.get("name");if(e){var r=e.get("attributes");t=this.get("changeProp")?e.get(n):r[n]}return t||this.get("value")||this.get("default")}}),R=k.a.Collection.extend({model:P,initialize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.em=e.em||"",this.listenTo(this,"add",this.handleAdd),this.listenTo(this,"reset",this.handleReset)},handleReset:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).previousModels;(void 0===e?[]:e).forEach((function(t){return t.trigger("remove")}))},handleAdd:function(t){var e=this.target;e&&(t.target=e)},setTarget:function(t){this.target=t},add:function(t,e){var n=this.em;if(Object(w.isString)(t)||Object(w.isArray)(t)){var r=n&&n.get&&n.get("TraitManager"),i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{build:function(e){var n=[];"string"==typeof e&&(e=[e]);for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(w.bindAll)(this,"__upSymbProps","__upSymbCls","__upSymbComps");var i=r.em,o=this.parent(),a=o&&o.attributes;if(a&&a.propagate){var s={},u=a.propagate;u.forEach((function(t){return s[t]=o.get(t)})),s.propagate=u,s=L(L({},s),e),this.set(s)}var c=this.get("propagate");if(c&&this.set("propagate",Object(w.isArray)(c)?c:[c]),r&&r.config&&r.config.voidElements.indexOf(this.get("tagName"))>=0&&this.set("void",!0),r.em=i,this.opt=r,this.em=i,this.frame=r.frame,this.config=r.config||{},this.set("attributes",L(L({},Object(w.result)(this,"defaults").attributes||{}),this.get("attributes")||{})),this.ccid=n.createId(this,r),this.initClasses(),this.initTraits(),this.initComponents(),this.initToolbar(),this.initScriptProps(),this.listenTo(this,"change:script",this.scriptUpdated),this.listenTo(this,"change:tagName",this.tagUpdated),this.listenTo(this,"change:attributes",this.attrUpdated),this.listenTo(this,"change:attributes:id",this._idUpdated),this.on("change:toolbar",this.__emitUpdateTlb),this.on("change",this.__onChange),this.on(z,this.__propToParent),this.set("status",""),this.views=[],["classes","traits","components"].forEach((function(e){var n="add remove ".concat("components"!==e?"change":"");t.listenTo(t.get(e),n.trim(),(function(){for(var n=arguments.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},e=this.em,n=e&&e.get("UndoManager"),r=this.components();n&&!this.__hasUm&&(n.add(r),n.add(this.getSelectors()),this.__hasUm=1),t.recursive&&r.map((function(e){return e.__postAdd(t)}))}},{key:"__postRemove",value:function(){var t=this.em,e=t&&t.get("UndoManager");e&&(e.remove(this.components()),e.remove(this.getSelectors()),delete this.__hasUm)}},{key:"__onChange",value:function(t,e){var n=this.changedAttributes();["status","open","toolbar","traits"].forEach((function(t){return delete n[t]})),Object(x.isEmptyObj)(n)||(this.__changesUp(e),this.__propSelfToParent({component:this,changed:n,options:e}))}},{key:"__changesUp",value:function(t){var e=this.em;[this.frame,e].forEach((function(e){return e&&e.changesUp(t)}))}},{key:"__propSelfToParent",value:function(t){this.trigger(H,t),this.__propToParent(t)}},{key:"__propToParent",value:function(t){var e=this.parent();e&&e.trigger(z,t)}},{key:"__emitUpdateTlb",value:function(){this.emitUpdate("toolbar")}},{key:"is",value:function(t){return!(this.get("type")!=t)}},{key:"props",value:function(){return this.attributes}},{key:"index",value:function(){var t=this.collection;return t?t.indexOf(this):0}},{key:"setDragMode",value:function(t){return this.set("dmode",t)}},{key:"find",value:function(t){var e=[],n=this.view.$el.find(t);return n.each((function(t){var r=n.eq(t).data("model");r&&e.push(r)})),e}},{key:"findType",value:function(t){var e=[];return function n(r){return r.forEach((function(r){r.is(t)&&e.push(r),n(r.components())}))}(this.components()),e}},{key:"closest",value:function(t){var e=this.view.$el.closest(t);return e.length&&e.data("model")}},{key:"closestType",value:function(t){for(var e=this.parent();e&&!e.is(t);)e=e.parent();return e}},{key:"contains",value:function(t){var e=!1;if(!t)return e;return function n(r){!e&&r.forEach((function(r){r===t&&(e=!0),!e&&n(r.components())}))}(this.components()),e}},{key:"tagUpdated",value:function(){this.trigger("rerender")}},{key:"replaceWith",value:function(t){var e=this.collection,n=e.indexOf(this);return e.remove(this),e.add(t,{at:n})}},{key:"attrUpdated",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.get("attributes"),o=i.class;o&&this.setClass(o),delete i.class;var a=i.style;a&&this.setStyle(a),delete i.style;var s=L({},this.previous("attributes")),u=Object(x.shallowDiff)(s,this.get("attributes"));Object(w.keys)(u).forEach((function(t){return n.trigger("change:attributes:".concat(t),n,u[t],r)}))}},{key:"setAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.set("attributes",L({},t),e),this}},{key:"addAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.setAttributes(L(L({},this.getAttributes({noClass:1})),t),e)}},{key:"removeAttributes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(t)?t:[t],r=this.getAttributes();return n.map((function(t){return delete r[t]})),this.setAttributes(r,e)}},{key:"getStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.em,r=Object(w.isString)(t)?t:"",i=r?e:t;if(n&&n.getConfig("avoidInlineStyle")&&!i.inline){var o=n.get("state"),a=n.get("CssComposer").getIdRule(this.getId(),L({state:o},i));if(this.rule=a,a)return a.getStyle(r)}return O.a.getStyle.call(this,r)}},{key:"setStyle",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.em,i=this.opt;if(r&&r.getConfig("avoidInlineStyle")&&!i.temporary&&!n.inline){var o=this.get("style")||{};e=L(L({},e=Object(w.isString)(e)?this.parseStyle(e):e),o);var a=r.get("state"),s=r.get("CssComposer"),u=this.getStyle(n);this.rule=s.setIdRule(this.getId(),e,L(L({},n),{},{state:a}));var c=Object(x.shallowDiff)(u,e);this.set("style","",{silent:1}),Object(w.keys)(c).forEach((function(e){return t.trigger("change:style:".concat(e))}))}else e=O.a.setStyle.apply(this,arguments);return e}},{key:"getAttributes",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.em,r=[],i=L({},this.get("attributes")),o=n&&n.get("SelectorManager"),a=this.getId();if(e.noClass||(this.get("classes").forEach((function(t){return r.push(Object(w.isString)(t)?t:t.get("name"))})),r.length&&(i.class=r.join(" "))),!e.noStyle){var s=this.get("style");Object(x.isObject)(s)&&!Object(x.isEmptyObj)(s)&&(i.style=this.styleToString({inline:1}))}return Object(w.has)(i,"id")||(function(t){return t&&t.getConfig("avoidInlineStyle")}(n)?t=o&&o.get(a,o.Selector.TYPE_ID):Object(w.isEmpty)(this.getStyle())||(t=1),(this.__getSymbol()||this.__getSymbols())&&(t=1),t&&(i.id=a)),i}},{key:"addClass",value:function(t){var e=this.em.get("SelectorManager").addClass(t);return this.get("classes").add(e)}},{key:"setClass",value:function(t){return this.get("classes").reset(),this.addClass(t)}},{key:"removeClass",value:function(t){var e=[];t=Object(w.isArray)(t)?t:[t];var n=this.get("classes"),r=S.a.TYPE_CLASS;return t.forEach((function(t){t.split(" ").forEach((function(t){var i=n.where({name:t,type:r})[0];i&&e.push(n.remove(i))}))})),e}},{key:"getClasses",value:function(){var t=this.getAttributes().class;return t?t.split(" "):[]}},{key:"__logSymbol",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.__getSymbol(),i=this.__getSymbols();(r||i)&&this.em.log(t,{model:this,toUp:e,context:"symbols",opts:n})}},{key:"__initSymb",value:function(){this.__symbReady||(this.on("change",this.__upSymbProps),this.__symbReady=1)}},{key:"__isSymbol",value:function(){return Object(w.isArray)(this.get(B))}},{key:"__isSymbolOrInst",value:function(){return!(!this.__isSymbol()&&!this.get(F))}},{key:"__isSymbolTop",value:function(){var t=this.parent();return this.__isSymbolOrInst()&&(!t||t&&!t.__isSymbol()&&!t.__getSymbol())}},{key:"__isSymbolNested",value:function(){if(!this.__isSymbolOrInst()||this.__isSymbolTop())return!1;var t=(this.__isSymbol()?this:this.__getSymbol()).__getSymbTop(),e=this.__getSymbTop();return(e.__isSymbol()?e:e.__getSymbol())!==t}},{key:"__getAllById",value:function(){var t=this.em;return t?t.get("DomComponents").allById():{}}},{key:"__getSymbol",value:function(){var t=this.get(F);if(t&&Object(w.isString)(t)){var e=this.__getAllById()[t];e?(t=e,this.set(F,e)):t=0}return t}},{key:"__getSymbols",value:function(){var t=this,e=this.get(B);return e&&Object(w.isArray)(e)&&(e.forEach((function(n,r){n&&Object(w.isString)(n)&&(e[r]=t.__getAllById()[n])})),e=e.filter((function(t){return t&&!Object(w.isString)(t)}))),e}},{key:"__isSymbOvrd",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.get(U),n=t.split(":"),r=u()(n,1)[0],i=t!==r?[t,r]:[t];return!0===e||Object(w.isArray)(e)&&i.some((function(t){return e.indexOf(t)>=0}))}},{key:"__getSymbToUp",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.em,r=e.changed,i=n&&n.get("symbols");if(e.fromInstance||e.noPropagate||e.fromUndo||!i||r&&this.__isSymbOvrd(r))return[];var o=this.__getSymbols()||[],s=this.__getSymbol();return(s?[s].concat(a()(s.__getSymbols()||[])):o).filter((function(e){return e!==t})).filter((function(t){return!(r&&t.__isSymbOvrd(r))}))}},{key:"__getSymbTop",value:function(t){for(var e=this,n=this.parent(t);n&&(n.__isSymbol()||n.__getSymbol());)e=n,n=n.parent(t);return e}},{key:"__upSymbProps",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.changedAttributes(),i=r.attributes||{};if(delete r.status,delete r.open,delete r[B],delete r[F],delete r[U],delete r.attributes,delete i.id,Object(x.isEmptyObj)(i)||(r.attributes=i),!Object(x.isEmptyObj)(r)){var o=this.__getSymbToUp(n);Object(w.keys)(r).map((function(t){e.__isSymbOvrd(t)&&delete r[t]})),this.__logSymbol("props",o,{opts:n,changed:r}),o.forEach((function(t){var i=L({},r);Object(w.keys)(i).map((function(e){t.__isSymbOvrd(e)&&delete i[e]})),t.set(i,L({fromInstance:e},n))}))}}},{key:"__upSymbCls",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.__getSymbToUp(r);this.__logSymbol("classes",i,{opts:r}),i.forEach((function(t){t.set("classes",n.get("classes"),{fromInstance:n})})),this.__changesUp(r)}},{key:"__upSymbComps",value:function(t,e,n){var r=this,i=n||e||{},o={fromInstance:i.fromInstance,fromUndo:i.fromUndo},s=t.opt.temporary;if(n)if(n.add){var u=[],c=!!this.__getSymbols(),l=this.__getSymbToUp(L(L({},o),{},{changed:"components:add"}));if(l.length){var f=t.__getSymbol();u=(f?f.__getSymbols():t.__getSymbols())||[],(u=a()(u)).push(f||t)}!s&&this.__logSymbol("add",l,{opts:n,addedInstances:u.map((function(t){return t.cid})),added:t.cid}),l.forEach((function(e){var i=e.__getSymbTop(),o=u.filter((function(t){var e=t.__getSymbTop({prev:1});return i&&e&&e===i}))[0]||t.clone({symbol:1,symbolInv:c});e.append(o,L({fromInstance:r},n))}))}else{var h=t.__getSymbol();if(h&&!n.temporary&&h.set(B,h.__getSymbols().filter((function(e){return e!==t}))),!t.__isSymbolTop()){var d="components:remove",p=n.index,g=t.parent(),m=L({fromInstance:t},n),b=t.__isSymbolNested(),v=function(t){var e=t.parent();e&&!e.__isSymbOvrd(d)&&t.remove(m)},y=g.__isSymbOvrd(d)?[]:t.__getSymbToUp(o);b&&(y=g.__getSymbToUp(L(L({},o),{},{changed:d})),v=function(t){var e=t.components().at(p);e&&e.remove(L({fromInstance:g},m))}),!s&&this.__logSymbol("remove",y,{opts:n,removed:t.cid,isSymbNested:b}),y.forEach(v)}}else{var _=this.__getSymbToUp(L(L({},o),{},{changed:"components:reset"}));this.__logSymbol("reset",_,{components:t.models}),_.forEach((function(n){var i=t.models.map((function(t){return t.clone({symbol:1})}));n.components().reset(i,L({fromInstance:r},e))}))}this.__changesUp(i)}},{key:"initClasses",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.get("attributes").class||[],i=[this,"change:classes",this.initClasses],o=this.get("classes")||r,a=Object(w.isString)(o)?o.split(" "):o;this.stopListening.apply(this,i);var s=this.normalizeClasses(a),u=new C.a([]);return this.set("classes",u,n),u.add(s),u.on("add remove reset",this.__upSymbCls),this.listenTo.apply(this,i),this}},{key:"initComponents",value:function(){var t=[this,"change:components",this.initComponents];this.stopListening.apply(this,t);var e=new T.a(null,this.opt);e.parent=this;var n=this.get("components"),r=!this.opt.avoidChildren;return this.set("components",e),r&&n&&e.add(Object(w.isFunction)(n)?n(this):n,this.opt),e.on("add remove reset",this.__upSymbComps),this.listenTo.apply(this,t),this}},{key:"initTraits",value:function(t){var e=this.em,n=[this,"change:traits",this.initTraits];this.stopListening.apply(this,n),this.loadTraits();var r=L({},this.get("attributes")),i=this.get("traits");return i.each((function(t){if(!t.get("changeProp")){var e=t.get("name"),n=t.getInitValue();e&&n&&(r[e]=n)}})),i.length&&this.set("attributes",r),this.listenTo.apply(this,n),t&&e&&e.trigger("component:toggled"),this}},{key:"initScriptProps",value: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)||[],i=n.map((function(t){return"change:".concat(t)})).join(" "),o=r.map((function(t){return"change:".concat(t)})).join(" ");i&&this.off(i,this.__scriptPropsChange),o&&this.on(o,this.__scriptPropsChange),this.on.apply(this,e)}}},{key:"__scriptPropsChange",value:function(t,e){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).avoidStore||this.trigger("rerender")}},{key:"append",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(Object(w.isArray)(t)?t:[t]).map((function(t){return Object(w.isString)(t)||t.collection&&t.collection.remove(t,{temporary:1}),t})),r=this.components().add(n,e);return Object(w.isArray)(r)?r:[r]}},{key:"components",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.get("components");return Object(w.isUndefined)(t)?n:(n.reset(null,e),t?this.append(t,e):[])}},{key:"getChildAt",value:function(t){return this.components().at(t||0)||null}},{key:"getLastChild",value:function(){var t=this.components();return t.at(t.length-1)||null}},{key:"empty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.components().reset(null,t),this}},{key:"parent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.collection||t.prev&&this.prevColl;return e?e.parent:null}},{key:"scriptUpdated",value:function(){this.set("scriptUpdated",1)}},{key:"initToolbar",value:function(){var t=this.em,e=t&&t.getConfig("stylePrefix")||"";if(!this.get("toolbar")){var n=[];this.collection&&n.push({attributes:{class:"fa fa-arrow-up"},command:function(t){return t.runCommand("core:component-exit",{force:1})}}),this.get("draggable")&&n.push({attributes:{class:"fa fa-arrows ".concat(e,"no-touch-actions"),draggable:!0},command:"tlb-move"}),this.get("copyable")&&n.push({attributes:{class:"fa fa-clone"},command:"tlb-clone"}),this.get("removable")&&n.push({attributes:{class:"fa fa-trash-o"},command:"tlb-delete"}),this.set("toolbar",n)}}},{key:"loadTraits",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=t||this.get("traits"),!((t=Object(w.isFunction)(t)?t(this):t)instanceof R)){var n=new R([],this.opt);n.setTarget(this),t.length&&(t.forEach((function(t){return t.attributes&&delete t.attributes.value})),n.add(t)),this.set("traits",n,e)}return this}},{key:"getTrait",value:function(t){return this.get("traits").filter((function(e){return e.get("id")===t||e.get("name")===t}))[0]}},{key:"updateTrait",value:function(t,e){var n=this.em,r=this.getTrait(t);return r&&r.set(e),n&&n.trigger("component:toggled"),this}},{key:"getTraitIndex",value:function(t){var e=this.getTrait(t);return e?this.get("traits").indexOf(e):-1}},{key:"removeTrait",value:function(t){var e=this,n=this.em,r=(Object(w.isArray)(t)?t:[t]).map((function(t){return e.getTrait(t)})),i=this.get("traits").remove(r);return n&&n.trigger("component:toggled"),i}},{key:"addTrait",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.em,r=this.get("traits").add(t,e);return n&&n.trigger("component:toggled"),r}},{key:"normalizeClasses",value:function(t){var e=[],n=this.em,r=n&&n.get("SelectorManager");if(r)return t.models?a()(t.models):(t.forEach((function(t){return e.push(r.add(t))})),e)}},{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.em,n=L({},this.attributes),r=L({},this.opt),i=this.getId(),o=e&&e.get("CssComposer");n.attributes=L({},n.attributes),delete n.attributes.id,n.components=[],n.classes=[],n.traits=[],this.__isSymbolTop()&&(t.symbol=1),this.get("components").each((function(e,r){n.components[r]=e.clone(L(L({},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 s=new this.constructor(n,r),u="#".concat(s.getId());(o?o.getRules("#".concat(i)):[]).forEach((function(t){var e=t.clone();e.set("selectors",[u]),o.getAll().add(e)})),s.set(B,0);var c=this.__getSymbol(),l=this.__getSymbols();t.symbol||!c&&!l?c?(c.set(B,[].concat(a()(c.__getSymbols()),[s])),s.__initSymb()):t.symbol&&(this.__isSymbol()?(this.set(B,[].concat(a()(l),[s])),s.set(F,this),s.__initSymb()):t.symbolInv?(this.set(B,[s]),s.set(F,this),[this,s].map((function(t){return t.__initSymb()}))):(s.set(B,[this]),[this,s].map((function(t){return t.__initSymb()})),this.set(F,s))):(s.set(F,0),s.set(B,0));var f="component:clone";return e&&e.trigger(f,s),this.trigger(f,s),s}},{key:"getName",value:function(){var t=this.em,e=this.attributes,n=e.type,r=e.tagName,i=this.get("name"),o="div"==r,a=n||(o?"box":r),s=!n&&r&&!o&&r,u="domComponents.names.",c=i&&t&&t.t("".concat(u).concat(i)),l=s&&t&&t.t("".concat(u).concat(s)),f=t&&(t.t("".concat(u).concat(n))||t.t("".concat(u).concat(r)));return this.get("custom-name")||c||i||l||Object(x.capitalize)(s)||f||Object(x.capitalize)(a)}},{key:"getIcon",value:function(){var t=this.get("icon");return t?t+" ":""}},{key:"toHTML",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this,n=[],r=t.tag||e.get("tagName"),i=e.get("void"),o=t.attributes,a=this.getAttrToHTML();for(var s in delete t.tag,o&&(Object(w.isFunction)(o)?a=o(e,a)||{}:Object(x.isObject)(o)&&(a=o)),a){var u=a[s],c=Object(w.isString)(u)?u.replace(/"/g,"""):u;Object(w.isUndefined)(c)||(Object(w.isBoolean)(c)?c&&n.push(s):n.push("".concat(s,'="').concat(c,'"')))}var l=n.length?" ".concat(n.join(" ")):"",f=e.__innerHTML(t),h="<".concat(r).concat(l).concat(i?"/":"",">").concat(f);return!i&&(h+="")),h}},{key:"__innerHTML",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.components();return e.length?e.map((function(e){return e.toHTML(t)})).join(""):this.get("content")}},{key:"getAttrToHTML",value:function(){var t=this.getAttributes();return delete t.style,t}},{key:"toJSON",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=E.Model.prototype.toJSON.call(this,t);if(e.attributes=this.getAttributes(),delete e.attributes.class,delete e.toolbar,delete e.traits,delete e.status,delete e.open,!t.fromUndo){var n=e[F],r=e[B];r&&Object(w.isArray)(r)&&(e[B]=r.filter((function(t){return t})).map((function(t){return t.getId?t.getId():t}))),n&&!Object(w.isString)(n)&&(e[F]=n.getId())}return this.em.getConfig("avoidDefaults")&&this.getChangedProps(e),e}},{key:"getChangedProps",value:function(t){var e=t||E.Model.prototype.toJSON.apply(this),n=Object(w.result)(this,"defaults");return Object(w.forEach)(n,(function(t,n){-1===["type"].indexOf(n)&&e[n]===t&&delete e[n]})),Object(w.isEmpty)(e.type)&&delete e.type,Object(w.forEach)(["attributes","style"],(function(t){Object(w.isEmpty)(n[t])&&Object(w.isEmpty)(e[t])&&delete e[t]})),Object(w.forEach)(["classes","components"],(function(t){(!e[t]||Object(w.isEmpty)(n[t])&&!e[t].length)&&delete e[t]})),e}},{key:"getId",value:function(){return(this.get("attributes")||{}).id||this.ccid||this.cid}},{key:"setId",value:function(t,e){var n=L({},this.get("attributes"));return n.id=t,this.set("attributes",n,e),this}},{key:"getEl",value:function(t){var e=this.getView(t);return e&&e.el}},{key:"getView",value:function(t){var e=this.view,n=this.views;return t&&(e=n.filter((function(e){return e._getFrame()===t.view}))[0]),e}},{key:"getCurrentView",value:function(){var t=(this.em.get("currentFrame")||{}).model;return this.getView(t)}},{key:"__getScriptProps",value:function(){var t=this.props();return(this.get("script-props")||[]).reduce((function(e,n){return e[n]=t[n],e}),{})}},{key:"getScriptString",value: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("function"==typeof n){var r=n.toString().trim();n=(r=r.replace(/^function[\s\w]*\(\)\s?\{/,"").replace(/\}$/,"")).trim()}var o=this.em.getConfig(),a=D(o.tagVarStart||"{[ "),s=D(o.tagVarEnd||" ]}"),u=new RegExp("".concat(a,"([\\w\\d-]*)").concat(s),"g");n=n.replace(u,(function(t,n){e.scriptUpdated();var r=e.attributes[n]||"";return Object(w.isArray)(r)||"object"==i()(r)?JSON.stringify(r):r}))}return n}},{key:"emitUpdate",value:function(t){for(var e=this.em,n=H+(t?":".concat(t):""),r=t&&this.get(t),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a=0&&this.__propSelfToParent({component:this,changed:l()({},t,r),options:o[2]||o[1]||{}})}},{key:"onAll",value:function(t){return Object(w.isFunction)(t)&&(t(this),this.components().forEach((function(e){return e.onAll(t)}))),this}},{key:"remove",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.em,r=this.collection,i=function(){r&&r.remove(t,e),e.root&&t.components("")},o=L({},e);return[this,n].map((function(e){return e.trigger("component:remove:before",t,i,o)})),!o.abort&&i(),this}},{key:"move",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.remove({temporary:1}),t&&t.append(this,e),this}},{key:"resetId",value:function(){var t=this.em,e=this.getId();if(e){var r=n.createId(this);this.setId(r);var i=t&&t.get("CssComposer").getIdRule(e),o=i&&i.get("selectors").at(0);return o&&o.set("name",r),this}}},{key:"_getStyleRule",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).id,e=this.em,n=t||this.getId();return e&&e.get("CssComposer").getIdRule(n)}},{key:"_getStyleSelector",value:function(t){var e=this._getStyleRule(t);return e&&e.get("selectors").at(0)}},{key:"_idUpdated",value:function(t,e){if(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).idUpdate){var r=this.ccid,i=(this.get("attributes")||{}).id,o=(this.previous("attributes")||{}).id||r,a=n.getList(this);if(a[i]||!i&&o)return this.setId(o,{idUpdate:1});delete a[o],a[i]=this,this.ccid=i;var s=this._getStyleSelector({id:o});s&&s.set({name:i,label:i})}}}]),n}(E.Model.extend(O.a));q.isComponent=function(t){return{tagName:Object(x.toLowerCase)(t.tagName)}},q.ensureInList=function(t){var e=q.getList(t),n=t.getId(),r=e[n];if(r){if(r!==t){var i=q.getIncrementId(n,e);t.setId(i),e[i]=t}}else e[n]=t;t.components().forEach((function(t){return q.ensureInList(t)}))},q.createId=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=q.getList(t),i=n.idMap,o=void 0===i?{}:i,a=t.get("attributes").id;return a?(e=q.getIncrementId(a,r,n),t.setId(e),a!==e&&(o[a]=e)):e=q.getNewId(r),r[e]=t,e},q.getNewId=function(t){for(var e=Object.keys(t).length.toString().length+2,n=(Math.random()+1.1).toString(36).slice(-e),r="i".concat(n);t[r];)r=q.getNewId(t);return r},q.getIncrementId=function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).keepIds,r=1,i=t;if((void 0===n?[]:n).indexOf(t)<0)for(;e[i];)r++,i="".concat(t,"-").concat(r);return i},q.getList=function(t){var e=t.opt,n=void 0===e?{}:e,r=n.domc,i=n.em,o=r||i&&i.get("DomComponents");return o?o.componentsById:{}},q.checkId=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Object(w.isArray)(t)?t:[t],o=r.keepIds,a=void 0===o?[]:o;i.forEach((function(t){var i=t.attributes,o=void 0===i?{}:i,s=t.components,u=o.id;if(u&&n[u]&&a.indexOf(u)<0){var c=q.getIncrementId(u,n);o.id=c,Object(w.isArray)(e)&&e.forEach((function(t){var e=t.selectors;e.forEach((function(t,n){t==="#".concat(u)&&(e[n]="#".concat(c))}))}))}s&&q.checkId(s,e,n,r)}))},q.getDefaults=function(){return Object(w.result)(this.prototype,"defaults")},q.prototype.defaults=(M={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},l()(M,F,0),l()(M,B,0),l()(M,U,0),l()(M,"_undo",!0),l()(M,"_undoexc",["status","open"]),M)},function(t,e,n){var r=n(79),i=n(80),o=n(50),a=n(81);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e);var r=n(3),i=n.n(r),o=n(2),a=n.n(o),s=n(0),u=n(30),c=n(42),l=n(20),f=n(13),h=n(1);function d(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 p(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=this.model,n=t.config||{},r=n.em,i=e.opt||{},o=this.$el,a=this.el;n.draggableComponents,this.opts=t,this.modelOpt=i,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 change:_innertext",this.renderAttributes),this.listenTo(e,"change:highlightable",this.updateHighlight),this.listenTo(e,"change:status",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),o.data("model",e),Object(h.setViewEl)(a,this),e.view=this,this._getFrame()&&e.views.push(this),this.initClasses(),this.initComponents({avoidRender:1}),this.events=p(p({},this.events),this.__isDraggable()&&{dragstart:"handleDragStart"}),this.delegateEvents(),!i.temporary&&this.init(this._clbObj())},__isDraggable:function(){var t=this.model,e=this.config,n=t.attributes,r=n._innertext,i=n.draggable;return e.draggableComponents&&i&&!r},_clbObj:function(){var t=this.em,e=this.model,n=this.el;return{editor:t&&t.getEditor(),model:e,el:n}},init:function(){},removed:function(){},onActive:function(){},onDisable:function(){},remove:function(){var t=this;a.a.View.prototype.remove.apply(t,arguments);var e=t.model,n=(t._getFrame()||{}).model;e.components().forEach((function(t){var e=t.getView(n);e&&e.remove()}));var r=t.childrenView;r&&r.remove();var i=e.views;return i.splice(i.indexOf(t),1),t.removed(t._clbObj()),t.$el.data({model:"",collection:"",view:""}),t},handleDragStart:function(t){t.preventDefault(),t.stopPropagation(),this.em.get("Commands").run("tlb-move",{target:this.model,event:t})},initClasses:function(){var t=this.model,e="change:classes",n=t.get("classes");n instanceof l.a&&(this.stopListening(t,e,this.initClasses),this.listenTo(t,e,this.initClasses),this.listenTo(n,"add remove change",this.updateClasses),n.length&&this.importClasses())},initComponents:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.model,n=this.$el,r=this.childrenView,i=e.get("components"),o=[e,"change:components",this.initComponents];i instanceof u.a&&(n.data("collection",i),r&&r.remove(),this.stopListening.apply(this,o),!t.avoidRender&&this.renderChildren(),this.listenTo.apply(this,o))},handleChange:function(){var t=this.model,e=Object(s.keys)(t.changed);if(1!==e.length||"status"!==e[0])for(var n in t.emitUpdate(),t.changed)t.emitUpdate(n)},importClasses:function(){var t=this.config.em.get("SelectorManager");t&&this.model.get("classes").each((function(e){t.add(e.get("name"))}))},updateStatus:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.em,n=(e?e.get("Canvas").getConfig():{}).extHl,r=this.el,i=this.model.get("status"),o=this.ppfx,a="".concat(o,"selected"),s="".concat(a,"-parent"),u="".concat(o,"freezed"),c="".concat(o,"hovered"),l=[a,s,u,c],f=n&&!t.noExtHl?"":a;this.$el.removeClass(l.join(" "));var h=r.getAttribute("class")||"",d="";switch(i){case"selected":d="".concat(h," ").concat(f);break;case"selected-parent":d="".concat(h," ").concat(s);break;case"freezed":d="".concat(h," ").concat(u);break;case"freezed-selected":d="".concat(h," ").concat(u," ").concat(f);break;case"hovered":d=t.avoidHover?"":"".concat(h," ").concat(c)}(d=d.trim())&&r.setAttribute("class",d)},updateHighlight:function(){var t=this.model.get("highlightable");this.setAttribute("data-highlightable",t?1:"")},updateStyle:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.model,i=this.em,o=this.el;if(i&&i.getConfig("avoidInlineStyle")&&!n.inline){var a=r.getStyle(),u=Object(s.isEmpty)(a);!u&&r.setStyle(a),r.get("_innertext")&&u?o.removeAttribute("id"):o.id=r.getId()}else this.setAttribute("style",r.styleToString(n))},updateClasses:function(){var t=this.model.get("classes").pluck("name").join(" ");this.setAttribute("class",t),this.updateStatus(),this.onAttrUpdate()},setAttribute:function(t,e){var n=this.$el;e?n.attr(t,e):n.removeAttr(t)},getClasses:function(){return this.model.getClasses().join(" ")},updateAttributes:function(){var t=[],e=this.model,n=this.$el,r=this.el,i=e.attributes,o=i.highlightable,a=i.textable,u=p(p(p({"data-gjs-type":i.type||"default"},this.__isDraggable()?{draggable:!0}:{}),o?{"data-highlightable":1}:{}),a?{contenteditable:"false","data-gjs-textable":"true"}:{});Object(s.each)(r.attributes,(function(e){return t.push(e.nodeName)})),t.forEach((function(t){return n.removeAttr(t)})),this.updateStyle();var c=p(p({},u),e.getAttributes());Object(s.keys)(c).forEach((function(t){return!1===c[t]&&delete c[t]})),n.attr(c)},updateContent:function(){var t=this.model.get("content"),e=this.model.components().length;this.getChildrenContainer().innerHTML=e?"":t},prevDef:function(t){t.preventDefault()},updateScript:function(){var t=this.model,e=this.em;t.get("script")&&e&&e.get("Canvas").getCanvasView().updateScript(this)},getChildrenContainer:function(){var t=this.el;return"function"==typeof this.getChildrenSelector?t=this.el.querySelector(this.getChildrenSelector()):this.getTemplate,t},getOffsetRect:function(){var t={},e=this.el,n=0,r=0;return function i(o){var a=o.offsetParent;a?(n+=a.offsetTop,r+=a.offsetLeft,i(a)):(t.top=e.offsetTop+n,t.left=e.offsetLeft+r,t.bottom=t.top+e.offsetHeight,t.right=t.left+e.offsetWidth)}(e),t},isInViewport:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).rect,e=this.el.ownerDocument,n=e.body,r=e.defaultView.frameElement,i=t||this.getOffsetRect(),o=i.top,a=i.left,s=this._getFrame().getOffsetRect();return o>=s.scrollTop&&a>=s.scrollLeft&&o<=s.scrollBottom&&a<=r.offsetWidth+n.scrollLeft},scrollIntoView:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.getOffsetRect();if(!this.isInViewport({rect:e})||t.force){var n=this.el;"smooth"!==t.behavior?n.ownerDocument.defaultView.scrollTo(0,e.top):n.scrollIntoView(p({behavior:"smooth",block:"nearest"},t))}},reset:function(){var t=this.el;this.el="",this._ensureElement(),this._setData(),Object(f.m)(t,this.el),this.render()},_setData:function(){var t=this.model,e=t.components();this.$el.data({model:t,collection:e,view:this})},_getFrame:function(){return this.config.frameView},renderChildren:function(){this.updateContent();var t=this.getChildrenContainer(),e=this.childrenView||new c.a({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,i=n.length;r1&&void 0!==arguments[1]?arguments[1]:{};return t&&t.setAttribute&&Object(r.each)(e,(function(e,n){return t.setAttribute(n,e)}))},c=function(t){return t&&!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},l=function(t,e){t.parentNode.replaceChild(e,t)},f=function(t,e,n){var i=t.childNodes,o=i.length,a=Object(r.isUndefined)(n)?o:n;Object(r.isString)(e)&&(t.insertAdjacentHTML("beforeEnd",e),e=t.lastChild,t.removeChild(e)),a>=o?t.appendChild(e):t.insertBefore(e,i[a])},h=function(t,e){return f(t,e)},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=document.createElement(t);return e&&Object(r.each)(e,(function(t,e){return i.setAttribute(e,t)})),n&&(Object(r.isString)(n)?i.innerHTML=n:i.appendChild(n)),i},p=function(t){return document.createTextNode(t)},g=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},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(Array.isArray(e)?e:[e]).forEach((function(e){var n=e.tag||"div",i=e.attributes||{},o=document.createElement(n);Object(r.each)(i,(function(t,e){o.setAttribute(e,t)})),t.appendChild(o)}))}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(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,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(5),i=n.n(r),o=n(6),a=n.n(o),s=n(8),u=n.n(s),c=n(9),l=n.n(c),f=n(4),h=n.n(f),d=n(2),p=n(0);var g=function(t){u()(n,t);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=h()(t);if(e){var i=h()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l()(this,n)}}(n);function n(){return i()(this,n),e.apply(this,arguments)}return a()(n,[{key:"defaults",value:function(){return{name:"",label:"",type:1,active:!0,private:!1,protected:!1,_undo:!0}}},{key:"initialize",value:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).config,r=void 0===e?{}:e,i=this.get("name"),o=this.get("label");i?o||this.set("label",i):this.set("name",o);var a=this.get("name"),s=r.escapeName,u=s?s(a):n.escapeName(a);this.set("name",u),this.em=r.em}},{key:"isId",value:function(){return 2===this.get("type")}},{key:"isClass",value:function(){return 1===this.get("type")}},{key:"getFullName",value:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).escape,e=this.get("name"),n="";switch(this.get("type")){case 1:n=".";break;case 2:n="#"}return n+(t?t(e):e)}},{key:"toString",value:function(){return this.getFullName()}},{key:"getLabel",value:function(){return this.get("label")}},{key:"setLabel",value:function(t){return this.set("label",t)}},{key:"getActive",value:function(){return this.get("active")}},{key:"setActive",value:function(t){return this.set("active",t)}},{key:"toJSON",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.em,n=d.Model.prototype.toJSON.call(this,[t]),r=Object(p.result)(this,"defaults");if(e&&e.getConfig("avoidDefaults")){Object(p.forEach)(r,(function(t,e){n[e]===t&&delete n[e]})),n.label===n.name&&delete n.label;var i=Object(p.keys)(n).length;1===i&&n.name&&(n=n.name),2===i&&n.name&&n.type&&(n=this.getFullName())}return n}}]),n}(d.Model);g.prototype.idAttribute="name",g.TYPE_CLASS=1,g.TYPE_ID=2,g.escapeName=function(t){return"".concat(t).trim().replace(/([^a-z0-9\w-\:]+)/gi,"-")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1);function i(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i/,m=/^\w+$/;function b(t,e){return void 0===e&&(e=r),p.test(t)?e.getElementsByClassName(t.slice(1)):m.test(t)?e.getElementsByTagName(t):e.querySelectorAll(t)}function v(t,e){if(void 0===e&&(e=r),t){if(t.__cash)return t;var n=t;if(C(t)){if(e.__cash&&(e=e[0]),!(n=d.test(t)?e.getElementById(t.slice(1)):g.test(t)?ht(t):b(t,e)))return}else if(S(t))return this.ready(t);(n.nodeType||n===i)&&(n=[n]),this.length=n.length;for(var o=0,a=this.length;o=0})):n.value=i}))},_.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,lt=/^\s*<(\w+)[^>]*>/,ft=/^\s*<(\w+)\s*\/?>(?:<\/\1>)?\s*$/;function ht(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}}}(),!C(t))return[];if(ft.test(t))return[r.createElement(RegExp.$1)];var e=lt.test(t)&&RegExp.$1,n=ct[e]||ct["*"];return n.innerHTML=t,y(n.childNodes).detach().get()}function dt(t,e,n){if(void 0!==e){var r=C(e);!r&&e.length?E(e,(function(e){return dt(t,e,n)})):E(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)})}}y.parseHTML=ht,_.empty=function(){var t=this[0];if(t)for(;t.firstChild;)t.removeChild(t.firstChild);return this},_.append=function(){var t=this;return E(arguments,(function(e){dt(t,e)})),this},_.appendTo=function(t){return dt(y(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 y(t).each((function(t,n){var r=n.parentNode;e.each((function(e,i){r.insertBefore(t?i.cloneNode(!0):i,n.nextSibling)}))})),this},_.after=function(){var t=this;return E(l.apply(arguments),(function(e){l.apply(y(e).slice()).insertAfter(t)})),this},_.insertBefore=function(t){var e=this;return y(t).each((function(t,n){var r=n.parentNode;e.each((function(e,i){r.insertBefore(t?i.cloneNode(!0):i,n)}))})),this},_.before=function(){var t=this;return E(arguments,(function(e){y(e).insertBefore(t)})),this},_.prepend=function(){var t=this;return E(arguments,(function(e){dt(t,e,!0)})),this},_.prependTo=function(t){return dt(y(t),l.apply(this.slice()),!0),this},_.remove=function(){return this.detach().off()},_.replaceWith=function(t){var e=this;return this.each((function(n,r){var i=r.parentNode;if(i){var o=n?y(t).clone():y(t);if(!o[0])return e.remove(),!1;i.replaceChild(o[0],r),y(o[0]).after(o.slice(1))}}))},_.replaceAll=function(t){return y(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 pt=r&&r.documentElement;_.offset=function(){var t=this[0];if(t){var e=t.getBoundingClientRect();return{top:e.top+i.pageYOffset-pt.clientTop,left:e.left+i.pageXOffset-pt.clientLeft}}},_.offsetParent=function(){return y(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=y(N(e)),t?e.filter((function(e,n){return T(n,t)})):e},_.contents=function(){var t=[];return this.each((function(e,n){c.apply(t,"IFRAME"===n.tagName?[n.contentDocument]:n.childNodes)})),y(t.length&&N(t))},_.find=function(t){for(var e=[],n=0,r=this.length;n0&&void 0!==arguments[0]?arguments[0]:{}).noDisabled;return Object(d.filter)(this.models,(function(t){return!t.get("private")})).filter((function(e){return t?e.get("active"):1}))}},{key:"getFullString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return(t||this).forEach((function(t){return n.push(t.getFullName(e))})),n.join("").trim()}}]),n}(p.Collection);m.prototype.model=g.a},function(t,e,n){"use strict";var r=n(3),i=n.n(r),o=n(11),a=n.n(o),s=n(0),u=n(1);function c(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 l(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return this.all?t.array?a()(this.all.models):this.all:[]},getAllMap:function(){return this.getAll().reduce((function(t,e){return t[e.get(e.idAttribute)]=e,t}),{})},__initConfig:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.config=l(l({},t),e),this.em=this.config.em},__initListen:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.all,n=this.em,r=this.events;e&&n&&e.on("add",(function(t,e,i){return n.trigger(r.add,t,i)})).on("remove",(function(t,e,i){return n.trigger(r.remove,t,i)})).on("change",(function(t,e){return n.trigger(r.update,t,t.changedAttributes(),e)})).on("all",this.__catchAllEvent,this),this.cls=[e].concat(t.collections||[]),(t.propagate||[]).forEach((function(t){var r=t.entity,i=t.event;r.on("all",(function(t,r,o,a){var s=l({event:t},a||o);[n,e].map((function(t){return t.trigger(i,r,s)}))}))}))},__remove:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.em,i=Object(s.isString)(t)?this.get(t):t,o=function(){return i&&e.all.remove(i,n),i};return!n.silent&&r&&r.trigger(this.events.removeBefore,i,o,n),!n.abort&&o()},__catchAllEvent:function(t,e,n,r){var i=this.em,o=this.events,a=r||n;i&&o.all&&i.trigger(o.all,{event:t,model:e,options:a}),this.__onAllEvent()},__appendTo:function(){var t=this.getConfig().appendTo;if(t){var e=Object(s.isElement)(t)?t:document.querySelector(t);if(!e)return this.__logWarn('"appendTo" element not found');e.appendChild(this.render())}},__onAllEvent:function(){},__logWarn:function(t){this.em.logWarning("[".concat(this.name,"]: ").concat(t))},_createId:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,n=this.getAll().length+e,r=this.getAllMap();do{t=Object(u.createId)(n)}while(r[t]);return t},__destroy:function(){this.cls.forEach((function(t){t.stopListening(),t.reset()})),this.em=0}}},function(t,e,n){var r=n(82);t.exports=function(t,e){if(null==t)return{};var n,i,o=r(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e);var r=n(14),i=n.n(r),o=n(3),a=n.n(o),s=n(2),u=n.n(s),c=n(0),l=n(1),f=n(13),h=n(29);function d(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 p(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{}).config,e=void 0===t?{}:t;this.em=e.em,this.editor=e.editor},handleClick:function(t){t.preventDefault(),t.stopPropagation();var e=this.editor,n=this.em,r=e.Canvas.getFrameEl().getBoundingClientRect(),i=r.left,o=r.top,a=p(p({},t),{},{clientX:t.clientX-i,clientY:t.clientY-o});n.trigger("toolbar:run:before"),this.execCommand(a)},execCommand:function(t){var e={event:t},n=this.model.get("command"),r=this.editor;"function"==typeof n&&n(r,null,e),"string"==typeof n&&r.runCommand(n,e)},render:function(){var t=this.editor,e=this.$el,n=this.model,r=n.get("id"),i=n.get("label"),o=t.getConfig("stylePrefix");return e.addClass("".concat(o,"toolbar-item")),r&&e.addClass("".concat(o,"toolbar-item__").concat(r)),i&&e.append(i),this}}),m=h.a.extend({itemView:g,initialize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config={editor:t.editor||"",em:t.em},this.listenTo(this.collection,"reset",this.render)}}),b=u.a.Model.extend({defaults:{command:"",attributes:{}}}),v=u.a.Collection.extend({model:b});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 _(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{}).el||this.canvas.getToolsEl(e);return n&&(n.style.display=t?"":"none"),n||{}},showElementOffset:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w&&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(t,e){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=x(t.target),r=n.data("model");if(!r)for(var i=n.parent();!r&&i.length&&!Object(f.i)(i[0]);)r=i.data("model"),i=i.parent();if(r)if(r.get("selectable"))this.select(r,t);else{for(var o=r.parent();o&&!o.get("selectable");)o=o.parent();this.select(o,t)}},select:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t&&(this.editor.select(t,{scroll:{},event:e}),this.initResize(t))},updateBadge:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.canvas,i=x(t).data("model");if(i&&i.get("badgable")){var o=this.getBadge(n);if(!n.posOnly){var a=this.canvas.getConfig(),s=i.getIcon(),u=a.pStylePrefix||"",c="".concat(u,"badge"),l=a.customBadgeLabel,f="".concat(s?'
').concat(s,"
"):"",'\n
').concat(i.getName(),"
");o.innerHTML=l?l(i):f}var h=o.style;h.display="block";var d=r.getTargetToElementFixed(t,o,{pos:e}).top,p=n.leftOff<0?-n.leftOff:0;h.top=d+"px",h.left=p+"px"}},showHighlighter:function(t){this.canvas.getHighlighter(t).style.opacity=""},initResize:function(t){var e,n=this.em,r=this.canvas,o=n?n.get("Editor"):"",a=(n?n.get("Config"):"").stylePrefix||"",s="".concat(a,"resizing"),u=!Object(c.isElement)(t)&&Object(l.isTaggableNode)(t)?t:n.getSelected(),f=u&&u.get("resizable"),h={},d=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(s):r.replace(s,"")).trim()}))};if(o&&f){var p=Object(c.isElement)(t)?t:u.getEl();h={onStart:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.el,a=i.config,s=i.resizer,c=a.keyHeight,f=a.keyWidth,h=a.currentUnit,p=a.keepAutoHeight,g=a.keepAutoWidth;d("add",0,i),e=n.get("StyleManager").getModelToStyle(u),r.toggleFramesEvents();var m=getComputedStyle(o),b=e.getStyle(),v=b[f];a.autoWidth=g&&"auto"===v,isNaN(parseFloat(v))&&(v=m[f]);var y=b[c];a.autoHeight=p&&"auto"===y,isNaN(parseFloat(y))&&(y=m[c]),s.startDim.w=parseFloat(v),s.startDim.h=parseFloat(y),w=0,h&&(a.unitHeight=Object(l.getUnitFromValue)(y),a.unitWidth=Object(l.getUnitFromValue)(v))},onMove:function(){o.trigger("component:resize")},onEnd:function(t,e){d("remove",0,e),o.trigger("component:resize"),r.toggleFramesEvents(1),w=1},updateTarget:function(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var a=o.store,s=o.selectedHandler,u=o.config,c=u.keyHeight,l=u.keyWidth,f=u.autoHeight,h=u.autoWidth,d=u.unitWidth,p=u.unitHeight,g=["tc","bc"].indexOf(s)>=0,m=["cl","cr"].indexOf(s)>=0,b={},v=a?"":1;if(!g){var y=r.getBody().offsetWidth,w=i.w0&&void 0!==arguments[0]?arguments[0]:{};return this.canvas.getBadgeEl(t.view)},onFrameScroll:function(){this.updateTools()},updateTools:function(){this.updateLocalPos(),this.updateGlobalPos()},isCompSelected:function(t){return t&&"selected"===t.get("status")},updateToolsLocal:function(t){var e=t||this.getElHovered(),n=e.el,r=e.pos,i=e.view,o=e.component;if(n){var a=o.get("hoverable"),s=this.lastHovered!==n,u=s?{}:{posOnly:1};s&&a&&(this.lastHovered=n,this.showHighlighter(i),this.showElementOffset(n,r,{view:i})),this.isCompSelected(o)&&(this.hideHighlighter(i),this.hideElementOffset(i));var c="px",l=this.toggleToolsEl(1,i),f=l.style,h=this.canvas.canvasRectOffset(n,r),d=h.top,p=h.left;this.updateBadge(n,r,_(_({},u),{},{view:i,topOff:d,leftOff:p})),f.top=d+c,f.left=p+c,f.width=r.width+c,f.height=r.height+c,this._trgToolUp("local",{component:o,el:l,top:d,left:p,width:r.width,height:r.height})}else this.lastHovered=0},_upToolbar:Object(c.debounce)((function(){this.updateToolsGlobal({force:1})})),_trgToolUp:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.em.trigger("canvas:tools:update",_({type:t},e))},updateToolsGlobal:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.getElSelected(),n=e.el,r=e.pos,i=e.component;if(!n)return this.toggleToolsEl(),void(this.lastSelected=0);var o=this.canvas;(this.lastSelected!==n||t.force)&&(this.lastSelected=n,this.updateToolbar(i));var a="px",s=this.toggleToolsEl(1),u=s.style,c=o.getTargetToElementFixed(n,o.getToolbarEl(),{pos:r}),l=c.canvasOffsetTop,f=c.canvasOffsetLeft;u.top=l+a,u.left=f+a,u.width=r.width+a,u.height=r.height+a,this.updateToolbarPos({top:c.top,left:c.left}),this._trgToolUp("global",{component:i,el:s,top:l,left:f,width:r.width,height:r.height})},updateAttached:Object(c.debounce)((function(){this.updateGlobalPos()})),onContainerChange:Object(c.debounce)((function(){this.em.refreshCanvas()}),150),getElementPos:function(t){return this.canvas.getCanvasView().getElementPos(t)},hideBadge:function(){this.getBadge().style.display="none"},cleanPrevious:function(t){t&&t.set({status:"",state:""})},getContentWindow:function(){return this.canvas.getWindow()},run:function(t){Object(l.hasWin)()&&(this.editor=t&&t.get("Editor"),this.enable())},stop:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Object(l.hasWin)()){var r=this.em,i=this.editor;this.onHovered(),this.stopSelectComponent(),!n.preserveSelected&&r.setSelected(null),this.toggleToolsEl(),i&&i.stopCommand("resize")}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(3),i=n.n(r),o=n(5),a=n.n(o),s=n(6),u=n.n(s),c=n(0),l=n(1);function f(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 h(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};return a()(this,t),this.opts={container:null,onStart:null,onDrag:null,onEnd:null,setPosition:null,getPosition:null,guidesStatic:null,guidesTarget:null,snapOffset:5,doc:0,scale:1},Object(c.bindAll)(this,"drag","stop","keyHandle","handleScroll"),this.setOptions(e),this.delta={x:0,y:0},this}return u()(t,[{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=h(h({},this.opts),t)}},{key:"toggleDrag",value:function(t){var e=this.getDocumentEl(),n=this.getContainerEl(),r=this.getWindowEl(),i=t?"on":"off",o={on:l.on,off:l.off};o[i](n,"mousemove dragover",this.drag),o[i](e,"mouseup dragend touchend",this.stop),o[i](e,"keydown",this.keyHandle),o[i](r,"scroll",this.handleScroll)}},{key:"handleScroll",value: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}},{key:"start",value:function(t){var e=this.opts,n=e.onStart;this.toggleDrag(1),this.startPointer=this.getPointerPos(t),this.guidesStatic=Object(c.result)(e,"guidesStatic")||[],this.guidesTarget=Object(c.result)(e,"guidesTarget")||[],Object(c.isFunction)(n)&&n(t,this),this.startPosition=this.getStartPosition(),this.lastScrollDiff={x:0,y:0},this.globScrollDiff={x:0,y:0},this.drag(t)}},{key:"drag",value:function(t){var e=this,n=this.opts,r=this.lastScrollDiff,i=this.globScrollDiff,o=n.onDrag,a=this.startPointer,s=this.getPointerPos(t),u={x:i.x+r.x,y:i.y+r.y};this.globScrollDiff=u;var l={x:s.x-a.x+u.x,y:s.y-a.y+u.y};this.lastScrollDiff={x:0,y:0};var f=this.lockedAxis;"x"===(f=t.shiftKey?!f&&this.detectAxisLock(l.x,l.y):null)?l.x=a.x:"y"===f&&(l.y=a.y);var d=function(r){["x","y"].forEach((function(t){return r[t]=r[t]*Object(c.result)(n,"scale")})),e.delta=r,e.move(r.x,r.y),Object(c.isFunction)(o)&&o(t,e)},p=h({},l);if(this.currentPointer=s,this.lockedAxis=f,this.lastScroll=this.getScrollInfo(),d(l),this.guidesTarget.length){var g=this.snapGuides(p),m=g.newDelta,b=g.trgX,v=g.trgY;(b||v)&&d(m)}0===t.which&&this.stop(t)}},{key:"snapGuides",value:function(t){var e=this,n=t,r=this.trgX,i=this.trgY;return this.guidesTarget.forEach((function(n){n.x&&e.trgX||n.y&&e.trgY||(n.active=0,e.guidesStatic.forEach((function(o){if(!(n.y&&o.x||n.x&&o.y)){var a=n.y&&o.y,s=a?"y":"x",u=n[s],l=o[s],f=t[s],h=a?i:r;if(e.isPointIn(u,l)&&Object(c.isUndefined)(h)){var d=f-(u-l);e.setGuideLock(n,d)}}})))})),r=this.trgX,i=this.trgY,["x","y"].forEach((function(r){var i=r.toUpperCase(),o=e["trg".concat(i)];o&&!e.isPointIn(t[r],o.lock)&&(e.setGuideLock(o,null),o=null),o&&!Object(c.isUndefined)(o.lock)&&(n[r]=o.lock)})),{newDelta:n,trgX:this.trgX,trgY:this.trgY}}},{key:"isPointIn",value:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).offset||this.opts.snapOffset;return t>=e&&t<=e+n||t<=e&&t>=e-n}},{key:"setGuideLock",value:function(t,e){var n=Object(c.isUndefined)(t.x)?"Y":"X",r="trg".concat(n);return null!==e?(t.active=1,t.lock=e,this[r]=t):(delete t.active,delete t.lock,delete this[r]),t}},{key:"stop",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.delta,r=e.cancel,i=r?0:n.x,o=r?0:n.y;this.toggleDrag(),this.lockedAxis=null,this.move(i,o,1);var a=this.opts.onEnd;Object(c.isFunction)(a)&&a(t,this,{cancelled:r})}},{key:"keyHandle",value:function(t){Object(l.isEscKey)(t)&&this.stop(t,{cancel:1})}},{key:"move",value:function(t,e,n){var r=this.el,i=this.opts,o=this.startPosition;if(o){var a=i.setPosition,s=o.x+t,u=o.y+e;this.position={x:s,y:u,end:n},Object(c.isFunction)(a)&&a(this.position),r&&(r.style.left="".concat(s,"px"),r.style.top="".concat(u,"px"))}}},{key:"getContainerEl",value:function(){var t=this.opts.container;return t?[t]:this.getDocumentEl()}},{key:"getWindowEl",value:function(){return this.getContainerEl().map((function(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow}))}},{key:"getDocumentEl",value:function(t){var e=this.opts.doc;if(t=t||this.el,!this.docs){var n=[document];t&&n.push(t.ownerDocument),e&&n.push(e),this.docs=n}return this.docs}},{key:"getPointerPos",value:function(t){var e=this.opts.getPointerPosition,n=Object(l.getPointerEvent)(t);return e?e(t):{x:n.clientX,y:n.clientY}}},{key:"getStartPosition",value:function(){var t=this.el,e=this.opts.getPosition,n={x:0,y:0};return Object(c.isFunction)(e)?n=e():t&&(n={x:parseFloat(t.style.left),y:parseFloat(t.style.top)}),n}},{key:"getScrollInfo",value:function(){var t=this.opts.doc,e=t&&t.body;return{y:e?e.scrollTop:0,x:e?e.scrollLeft:0}}},{key:"detectAxisLock",value:function(t,e){var n=t,r=e,i=Math.abs(n),o=Math.abs(r);return r>=i||r<=-i?"x":n>o||n<-o?"y":void 0}}]),t}()},function(t,e,n){"use strict";var r=n(2),i=n.n(r),o=i.a.$;e.a=i.a.View.extend({events:{change:"handleChange"},template:function(){return'')},inputClass:function(){return"".concat(this.ppfx,"field")},holderClass:function(){return"".concat(this.ppfx,"input-holder")},initialize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.ppfx||"";this.opts=t,this.ppfx=e,this.em=t.target||{},this.listenTo(this.model,"change:value",this.handleModelChange)},elementUpdated:function(){this.model.trigger("el:change")},setValue:function(t){var e=this.model,n=t||e.get("defaults"),r=this.getInputEl();r&&(r.value=n)},handleModelChange:function(t,e,n){this.setValue(e,n)},handleChange:function(t){t.stopPropagation();var e=this.getInputEl().value;this.__onInputChange(e),this.elementUpdated()},__onInputChange:function(t){this.model.set({value:t},{fromInput:1})},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=o(''))}return this.inputEl.get(0)},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}})},function(t,e,n){t.exports=n(93)},function(t,e,n){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),r=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),u=!o&&/WebKit\//.test(t),c=u&&/Qt\/\d+\.\d+/.test(t),l=!o&&/Chrome\//.test(t),f=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),p=/PhantomJS/.test(t),g=h&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),m=/Android/.test(t),b=g||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),v=g||/Mac/.test(e),y=/\bCrOS\b/.test(t),_=/win/i.test(e),w=f&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,u=!0);var x=v&&(c||f&&(null==w||w<12.11)),O=n||a&&s>=9;function E(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var k,T=function(t,e){var n=t.className,r=E(e).exec(n);if(r){var i=n.slice(r.index+r[0].length);t.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function S(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function C(t,e){return S(t).appendChild(e)}function A(t,e,n,r){var i=document.createElement(t);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o=e)return a+(e-o);a+=s-o,a+=n-a%n,o=s+1}}g?L=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(L=function(t){try{t.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=D(this.onTimeout,this)};function U(t,e){for(var n=0;n=e)return r+Math.min(a,e-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=e)return r}}var G=[""];function $(t){for(;G.length<=t;)G.push(Y(G)+" ");return G[t]}function Y(t){return t[t.length-1]}function X(t,e){for(var n=[],r=0;r"€"&&(t.toUpperCase()!=t.toLowerCase()||J.test(t))}function et(t,e){return e?!!(e.source.indexOf("\\w")>-1&&tt(t))||e.test(t):tt(t)}function nt(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var rt=/[\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 it(t){return t.charCodeAt(0)>=768&&rt.test(t)}function ot(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var i=(e+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:n;t(o)?n=o:e=o+r}}var st=null;function ut(t,e,n){var r;st=null;for(var i=0;ie)return i;o.to==e&&(o.from!=o.to&&"before"==n?r=i:st=i),o.from==e&&(o.from!=o.to&&"before"!=n?r=i:st=i)}return null!=r?r:st}var ct=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(t,e,n){this.level=t,this.from=e,this.to=n}return function(a,s){var u="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!t.test(a))return!1;for(var c,l=a.length,f=[],h=0;h-1&&(r[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function gt(t,e){var n=dt(t,e);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function yt(t){t.prototype.on=function(t,e){ht(this,t,e)},t.prototype.off=function(t,e){pt(this,t,e)}}function _t(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function wt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function xt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function Ot(t){_t(t),wt(t)}function Et(t){return t.target||t.srcElement}function kt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),v&&t.ctrlKey&&1==e&&(e=3),e}var Tt,St,Ct=function(){if(a&&s<9)return!1;var t=A("div");return"draggable"in t||"dragDrop"in t}();function At(t){if(null==Tt){var e=A("span","​");C(t,A("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Tt=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var n=Tt?A("span","​"):A("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function jt(t){if(null!=St)return St;var e=C(t,document.createTextNode("AخA")),n=k(e,0,1).getBoundingClientRect(),r=k(e,1,2).getBoundingClientRect();return S(t),!(!n||n.left==n.right)&&(St=r.right-n.right<3)}var Mt,Pt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],r=t.length;e<=r;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),e+=a+1):(n.push(o),e=i+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Rt=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)},Nt="oncopy"in(Mt=A("div"))||(Mt.setAttribute("oncopy","return;"),"function"==typeof Mt.oncopy),Lt=null,Dt={},It={};function Bt(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Dt[t]=e}function Ft(t){if("string"==typeof t&&It.hasOwnProperty(t))t=It[t];else if(t&&"string"==typeof t.name&&It.hasOwnProperty(t.name)){var e=It[t.name];"string"==typeof e&&(e={name:e}),(t=Q(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Ft("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Ft("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ut(t,e){e=Ft(e);var n=Dt[e.name];if(!n)return Ut(t,"text/plain");var r=n(t,e);if(Ht.hasOwnProperty(e.name)){var i=Ht[e.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}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 Ht={};function zt(t,e){I(e,Ht.hasOwnProperty(t)?Ht[t]:Ht[t]={})}function qt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var r in e){var i=e[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Vt(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 Wt(t,e,n){return!t.startState||t.startState(e,n)}var Kt=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 i=n.children[r],o=i.chunkSize();if(e=t.first&&en?ee(n,Gt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?ee(t.line,e):n<0?ee(t.line,0):t}(e,Gt(t,e.line).text.length)}function ce(t,e){for(var n=[],r=0;r=this.string.length},Kt.prototype.sol=function(){return this.pos==this.lineStart},Kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kt.prototype.next=function(){if(this.pose},Kt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Kt.prototype.skipToEnd=function(){this.pos=this.string.length},Kt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Kt.prototype.backUp=function(t){this.pos-=t},Kt.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==e&&(this.pos+=r[0].length),r)}var i=function(t){return n?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},Kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Kt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Kt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var le=function(t,e){this.state=t,this.lookAhead=e},fe=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 he(t,e,n,r){var i=[t.state.modeGen],o={};we(t,e.text,t.doc.mode,n,(function(t,e){return i.push(t,e)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=t.state.overlays[r],u=1,c=0;n.state=!0,we(t,e.text,s.mode,n,(function(t,e){for(var n=u;ct&&i.splice(u,1,t,i[u+1],r),u+=2,c=Math.min(t,r)}if(e)if(s.opaque)i.splice(n,u-n,t,"overlay "+e),u=n+2;else for(;nt.options.maxHighlightLength&&qt(t.doc.mode,r.state),o=he(t,e,r);i&&(r.state=i),e.stateAfter=r.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.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 pe(t,e,n){var r=t.doc,i=t.display;if(!r.mode.startState)return new fe(r,!0,e);var o=function(t,e,n){for(var r,i,o=t.doc,a=n?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var u=Gt(o,s-1),c=u.stateAfter;if(c&&(!n||s+(c instanceof le?c.lookAhead:0)<=o.modeFrontier))return s;var l=B(u.text,null,t.options.tabSize);(null==i||r>l)&&(i=s-1,r=l)}return i}(t,e,n),a=o>r.first&&Gt(r,o-1).stateAfter,s=a?fe.fromSaved(r,a,o):new fe(r,Wt(r.mode),o);return r.iter(o,e,(function(n){ge(t,n.text,s);var r=s.line;n.stateAfter=r==e-1||r%5==0||r>=i.viewFrom&&re.start)return o}throw new Error("Mode "+t.name+" failed to advance stream.")}fe.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},fe.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}},fe.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},fe.fromSaved=function(t,e,n){return e instanceof le?new fe(t,qt(t.mode,e.state),n,e.lookAhead):new fe(t,qt(t.mode,e),n)},fe.prototype.save=function(t){var e=!1!==t?qt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new le(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 i,o,a=t.doc,s=a.mode,u=Gt(a,(e=ue(a,e)).line),c=pe(t,e.line,n),l=new Kt(u.text,t.options.tabSize,c);for(r&&(o=[]);(r||l.post.options.maxHighlightLength?(s=!1,a&&ge(t,e,r,f.pos),f.pos=e.length,u=null):u=_e(be(n,f,r.state,h),o),h){var d=h[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||l!=u){for(;c=e:o.to>e);(r||(r=[])).push(new Ee(a,o.from,s?null:o.to))}}return r}(n,i,a),u=function(t,e,n){var r;if(t)for(var i=0;i=e:o.to>e)||o.from==e&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=e:o.from0&&s)for(var y=0;ye)&&(!n||Re(n,o.marker)<0)&&(n=o.marker)}return n}function Be(t,e,n,r,i){var o=Gt(t,e),a=Oe&&o.markedSpans;if(a)for(var s=0;s=0&&f<=0||l<=0&&f>=0)&&(l<=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ne(c.to,n)>=0:ne(c.to,n)>0)||l>=0&&(u.marker.inclusiveRight&&i.inclusiveLeft?ne(c.from,r)<=0:ne(c.from,r)<0)))return!0}}}function Fe(t){for(var e;e=Le(t);)t=e.find(-1,!0).line;return t}function Ue(t,e){var n=Gt(t,e),r=Fe(n);return n==r?e:Zt(r)}function He(t,e){if(e>t.lastLine())return e;var n,r=Gt(t,e);if(!ze(t,r))return e;for(;n=De(r);)r=n.find(1,!0).line;return Zt(r)+1}function ze(t,e){var n=Oe&&e.markedSpans;if(n)for(var r=void 0,i=0;ie.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var Ge=function(t,e,n){this.text=t,je(this,e),this.height=n?n(this):1};function $e(t){t.parent=null,Ae(t)}Ge.prototype.lineNo=function(){return Zt(this)},yt(Ge);var Ye={},Xe={};function Ze(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?Xe:Ye;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Qe(t,e){var n=j("span",null,null,u?"padding-right: .1px":null),r={pre:j("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,a=void 0;r.pos=0,r.addToken=tn,jt(t.display.measure)&&(a=lt(o,t.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],rn(o,r,de(t,o,e!=t.display.externalMeasured&&Zt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=N(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=N(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(At(t.display.measure))),0==i?(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(u){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 gt(t,"renderLine",t,e.line,r.pre),r.pre.className&&(r.textClass=N(r.pre.className,r.textClass||"")),r}function Je(t){var e=A("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function tn(t,e,n,r,i,o,u){if(e){var c,l=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,r="",i=0;ic&&f.from<=c);h++);if(f.to>=l)return t(n,r,i,o,a,s,u);t(n,r.slice(0,f.to-c),i,o,null,s,u),o=null,r=r.slice(f.to-c),c=f.to}}}function nn(t,e,n,r){var i=!r&&n.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!r&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function rn(t,e,n){var r=t.markedSpans,i=t.text,o=0;if(r)for(var a,s,u,c,l,f,h,d=i.length,p=0,g=1,m="",b=0;;){if(b==p){u=c=l=s="",h=null,f=null,b=1/0;for(var v=[],y=void 0,_=0;_p||x.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&b>w.to&&(b=w.to,c=""),x.className&&(u+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==p&&(l+=" "+x.startStyle),x.endStyle&&w.to==b&&(y||(y=[])).push(x.endStyle,w.to),x.title&&((h||(h={})).title=x.title),x.attributes)for(var O in x.attributes)(h||(h={}))[O]=x.attributes[O];x.collapsed&&(!f||Re(f.marker,x)<0)&&(f=w)}else w.from>p&&b>w.from&&(b=w.from)}if(y)for(var E=0;E=d)break;for(var T=Math.min(d,b);;){if(m){var S=p+m.length;if(!f){var C=S>T?m.slice(0,T-p):m;e.addToken(e,C,a?a+u:u,l,p+C.length==b?c:"",s,h)}if(S>=T){m=m.slice(T-p),p=T;break}p=S,l=""}m=i.slice(o,o=n[g++]),a=Ze(n[g++],e.cm.options)}}else for(var A=1;An)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Mn(t,e,n,r){return Nn(t,Rn(t,e),n,r)}function Pn(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&e2&&o.push((u.bottom+c.top)/2-n.top)}}o.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,n,r){var i,o=In(e.map,n,r),u=o.node,c=o.start,l=o.end,f=o.collapse;if(3==u.nodeType){for(var h=0;h<4;h++){for(;c&&it(e.line.text.charAt(o.coverStart+c));)--c;for(;o.coverStart+l1}(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,i))}else{var d;c>0&&(f=r="right"),i=t.options.lineWrapping&&(d=u.getClientRects()).length>1?d["right"==r?d.length-1:0]:u.getBoundingClientRect()}if(a&&s<9&&!c&&(!i||!i.left&&!i.right)){var p=u.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+or(t.display),top:p.top,bottom:p.bottom}:Dn}for(var g=i.top-e.rect.top,m=i.bottom-e.rect.top,b=(g+m)/2,v=e.view.measure.heights,y=0;ye)&&(i=(o=u-s)-1,e>=u&&(a="right")),null!=i){if(r=t[c+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;c&&t[c-2]==t[c-3]&&t[c-1].insertLeft;)r=t[2+(c-=3)],a="left";if("right"==n&&i==u-s)for(;c=0&&(n=t[i]).left==n.right;i--);return n}function Fn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e=r.text.length?(u=r.text.length,c="before"):u<=0&&(u=0,c="after"),!s)return a("before"==c?u-1:u,"before"==c);function l(t,e,n){return a(n?t-1:t,1==s[e].level!=n)}var f=ut(s,u,c),h=st,d=l(u,f,"before"==c);return null!=h&&(d.other=l(u,h,"before"!=c)),d}function Yn(t,e){var n=0;e=ue(t.doc,e),t.options.lineWrapping||(n=or(t.display)*e.ch);var r=Gt(t.doc,e.line),i=Ve(r)+En(t.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Xn(t,e,n,r,i){var o=ee(t,e,n);return o.xRel=i,r&&(o.outside=r),o}function Zn(t,e,n){var r=t.doc;if((n+=t.display.viewOffset)<0)return Xn(r.first,0,null,-1,-1);var i=Qt(r,n),o=r.first+r.size-1;if(i>o)return Xn(r.first+r.size-1,Gt(r,o).text.length,null,1,1);e<0&&(e=0);for(var a=Gt(r,i);;){var s=er(t,a,i,e,n),u=Ie(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!u)return s;var c=u.find(1);if(c.line==i)return c;a=Gt(r,i=c.line)}}function Qn(t,e,n,r){r-=Vn(e);var i=e.text.length,o=at((function(e){return Nn(t,n,e-1).bottom<=r}),i,0);return{begin:o,end:i=at((function(e){return Nn(t,n,e).top>r}),o,i)}}function Jn(t,e,n,r){return n||(n=Rn(t,e)),Qn(t,e,n,Wn(t,e,Nn(t,n,r),"line").top)}function tr(t,e,n,r){return!(t.bottom<=n)&&(t.top>n||(r?t.left:t.right)>e)}function er(t,e,n,r,i){i-=Ve(e);var o=Rn(t,e),a=Vn(e),s=0,u=e.text.length,c=!0,l=lt(e,t.doc.direction);if(l){var f=(t.options.lineWrapping?rr:nr)(t,e,n,o,l,r,i);s=(c=1!=f.level)?f.from:f.to-1,u=c?f.to:f.from-1}var h,d,p=null,g=null,m=at((function(e){var n=Nn(t,o,e);return n.top+=a,n.bottom+=a,!!tr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=e,g=n),!0)}),s,u),b=!1;if(g){var v=r-g.left=_.bottom?1:0}return Xn(n,m=ot(e.text,m,1),d,b,r-h)}function nr(t,e,n,r,i,o,a){var s=at((function(s){var u=i[s],c=1!=u.level;return tr($n(t,ee(n,c?u.to:u.from,c?"before":"after"),"line",e,r),o,a,!0)}),0,i.length-1),u=i[s];if(s>0){var c=1!=u.level,l=$n(t,ee(n,c?u.from:u.to,c?"after":"before"),"line",e,r);tr(l,o,a,!0)&&l.top>a&&(u=i[s-1])}return u}function rr(t,e,n,r,i,o,a){var s=Qn(t,e,r,a),u=s.begin,c=s.end;/\s/.test(e.text.charAt(c-1))&&c--;for(var l=null,f=null,h=0;h=c||d.to<=u)){var p=Nn(t,r,1!=d.level?Math.min(c,d.to)-1:Math.max(u,d.from)).right,g=pg)&&(l=d,f=g)}}return l||(l=i[i.length-1]),l.fromc&&(l={from:l.from,to:c,level:l.level}),l}function ir(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Ln){Ln=A("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Ln.appendChild(document.createTextNode("x")),Ln.appendChild(A("br"));Ln.appendChild(document.createTextNode("x"))}C(t.measure,Ln);var n=Ln.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),S(t.measure),n||1}function or(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=A("span","xxxxxxxxxx"),n=A("pre",[e],"CodeMirror-line-like");C(t.measure,n);var r=e.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function ar(t){for(var e=t.display,n={},r={},i=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:sr(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:e.wrapper.clientWidth}}function sr(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ur(t){var e=ir(t.display),n=t.options.lineWrapping,r=n&&Math.max(5,t.display.scroller.clientWidth/or(t.display)-3);return function(i){if(ze(t.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(u=Gt(t.doc,c.line).text).length==c.ch){var l=B(u,u.length,t.options.tabSize)-u.length;c=ee(c.line,Math.max(0,Math.round((o-Tn(t.display).left)/or(t.display))-l))}return c}function fr(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;re)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Oe&&Ue(t.doc,e)i.viewFrom?pr(t):(i.viewFrom+=r,i.viewTo+=r);else if(e<=i.viewFrom&&n>=i.viewTo)pr(t);else if(e<=i.viewFrom){var o=gr(t,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):pr(t)}else if(n>=i.viewTo){var a=gr(t,e,e,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):pr(t)}else{var s=gr(t,e,e,-1),u=gr(t,n,n+r,1);s&&u?(i.view=i.view.slice(0,s.index).concat(an(t,s.lineN,u.lineN)).concat(i.view.slice(u.index)),i.viewTo+=r):pr(t)}var c=i.externalMeasured;c&&(n=i.lineN&&e=r.viewTo)){var o=r.view[fr(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==U(a,n)&&a.push(n)}}}function pr(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function gr(t,e,n,r){var i,o=fr(t,e),a=t.display.view;if(!Oe||n==t.doc.first+t.doc.size)return{index:o,lineN:n};for(var s=t.display.viewFrom,u=0;u0){if(o==a.length-1)return null;i=s+a[o].size-e,o++}else i=s-e;e+=i,n+=i}for(;Ue(t.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(t){for(var e=t.display.view,n=0,r=0;r=t.display.viewTo||s.to().line0&&(i.style.width=o.right-o.left+"px")}if(r.other){var a=n.appendChild(A("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 _r(t,e){return t.top-e.top||t.left-e.left}function wr(t,e,n){var r=t.display,i=t.doc,o=document.createDocumentFragment(),a=Tn(t.display),s=a.left,u=Math.max(r.sizerWidth,Cn(t)-r.sizer.offsetLeft)-a.right,c="ltr"==i.direction;function l(t,e,n,r){e<0&&(e=0),e=Math.round(e),r=Math.round(r),o.appendChild(A("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n top: "+e+"px; width: "+(null==n?u-t:n)+"px;\n height: "+(r-e)+"px"))}function f(e,n,r){var o,a,f=Gt(i,e),h=f.text.length;function d(n,r){return Gn(t,ee(e,n),"div",f,r)}function p(e,n,r){var i=Jn(t,f,null,e),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var g=lt(f,i.direction);return function(t,e,n,r){if(!t)return r(e,n,"ltr",0);for(var i=!1,o=0;oe||e==n&&a.to==e)&&(r(Math.max(a.from,e),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(e,n,"ltr")}(g,n||0,null==r?h:r,(function(t,e,i,f){var m="ltr"==i,b=d(t,m?"left":"right"),v=d(e-1,m?"right":"left"),y=null==n&&0==t,_=null==r&&e==h,w=0==f,x=!g||f==g.length-1;if(v.top-b.top<=3){var O=(c?_:y)&&x,E=(c?y:_)&&w?s:(m?b:v).left,k=O?u:(m?v:b).right;l(E,b.top,k-E,b.bottom)}else{var T,S,C,A;m?(T=c&&y&&w?s:b.left,S=c?u:p(t,i,"before"),C=c?s:p(e,i,"after"),A=c&&_&&x?u:v.right):(T=c?p(t,i,"before"):s,S=!c&&y&&w?u:b.right,C=!c&&_&&x?s:v.left,A=c?p(e,i,"after"):u),l(T,b.top,S-T,b.bottom),b.bottom0?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 Or(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||kr(t))}function Er(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Tr(t))}),100)}function kr(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(gt(t,"focus",t,e),t.state.focused=!0,R(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),u&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),xr(t))}function Tr(t,e){t.state.delayingBlurEvent||(t.state.focused&&(gt(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Sr(t){for(var e=t.display,n=e.lineDiv.offsetTop,r=Math.max(0,e.scroller.getBoundingClientRect().top),i=e.lineDiv.getBoundingClientRect().top,o=0,u=0;u.005||g<-.005)&&(it.display.sizerWidth){var b=Math.ceil(h/or(t.display));b>t.display.maxLineLength&&(t.display.maxLineLength=b,t.display.maxLine=c.line,t.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(e.scroller.scrollTop+=o)}function Cr(t){if(t.widgets)for(var e=0;e=a&&(o=Qt(e,Ve(Gt(e,u))-t.wrapper.clientHeight),a=u)}return{from:o,to:Math.max(a,o+1)}}function jr(t,e){var n=t.display,r=ir(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,o=An(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+kn(n),u=e.tops-r;if(e.topi+o){var l=Math.min(e.top,(c?s:e.bottom)-o);l!=i&&(a.scrollTop=l)}var f=t.options.fixedGutter?0:n.gutters.offsetWidth,h=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-f,d=Cn(t)-n.gutters.offsetWidth,p=e.right-e.left>d;return p&&(e.right=e.left+d),e.left<10?a.scrollLeft=0:e.leftd+h-3&&(a.scrollLeft=e.right+(p?0:10)-d),a}function Mr(t,e){null!=e&&(Nr(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Pr(t){Nr(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Rr(t,e,n){null==e&&null==n||Nr(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function Nr(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Lr(t,Yn(t,e.from),Yn(t,e.to),e.margin))}function Lr(t,e,n,r){var i=jr(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});Rr(t,i.scrollLeft,i.scrollTop)}function Dr(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||ci(t,{top:e}),Ir(t,e,!0),n&&ci(t),ii(t,100))}function Ir(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 Br(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,hi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Fr(t){var e=t.display,n=e.gutters.offsetWidth,r=Math.round(t.doc.height+kn(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+Sn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Ur=function(t,e,n){this.cm=n;var r=this.vert=A("div",[A("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=A("div",[A("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,t(r),t(i),ht(r,"scroll",(function(){r.clientHeight&&e(r.scrollTop,"vertical")})),ht(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.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 i=t.viewHeight-(e?r:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"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 o=t.viewWidth-t.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"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}},Ur.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var t=v&&!d?"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},Ur.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function r(){var i=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,r)}))},Ur.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Hr=function(){};function zr(t,e){e||(e=Fr(t));var n=t.display.barWidth,r=t.display.barHeight;qr(t,e);for(var i=0;i<4&&n!=t.display.barWidth||r!=t.display.barHeight;i++)n!=t.display.barWidth&&t.options.lineWrapping&&Sr(t),qr(t,Fr(t)),n=t.display.barWidth,r=t.display.barHeight}function qr(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=""}Hr.prototype.update=function(){return{bottom:0,right:0}},Hr.prototype.setScrollLeft=function(){},Hr.prototype.setScrollTop=function(){},Hr.prototype.clear=function(){};var Vr={native:Ur,null:Hr};function Wr(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Vr[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ht(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?Br(t,e):Dr(t,e)}),t),t.display.scrollbars.addClass&&R(t.display.wrapper,t.display.scrollbars.addClass)}var Kr=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:++Kr,markArrays:null},e=t.curOp,sn?sn.ops.push(e):e.ownsGroup=sn={ops:[e],delayedCallbacks:[]}}function $r(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=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new ai(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Xr(t){t.updatedDisplay=t.mustUpdate&&si(t.cm,t.update)}function Zr(t){var e=t.cm,n=e.display;t.updatedDisplay&&Sr(e),t.barMeasure=Fr(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Mn(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+Sn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Cn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Qr(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=A("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-En(t.display))+"px;\n height: "+(e.bottom-e.top+Sn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,n,r){var i;null==r&&(r=0),t.options.lineWrapping||e!=n||(n="before"==e.sticky?ee(e.line,e.ch+1,"before"):e,e=e.ch?ee(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e);for(var o=0;o<5;o++){var a=!1,s=$n(t,e),u=n&&n!=e?$n(t,n):s,c=jr(t,i={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r}),l=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=c.scrollTop&&(Dr(t,c.scrollTop),Math.abs(t.doc.scrollTop-l)>1&&(a=!0)),null!=c.scrollLeft&&(Br(t,c.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(e,ue(r,t.scrollToPos.from),ue(r,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var a=0;a=t.display.viewTo)){var n=+new Date+t.options.workTime,r=pe(t,e.highlightFrontier),i=[];e.iter(r.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(r.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?qt(e.mode,r.state):null,u=he(t,o,r,!0);s&&(r.state=s),o.styles=u.styles;var c=o.styleClasses,l=u.classes;l?o.styleClasses=l:c&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),h=0;!f&&hn)return ii(t,t.options.workDelay),!0})),e.highlightFrontier=r.line,e.modeFrontier=Math.max(e.modeFrontier,r.line),i.length&&ti(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(t))return!1;di(t)&&(pr(t),e.dims=ar(t));var i=r.first+r.size,o=Math.max(e.visible.from-t.options.viewportMargin,r.first),a=Math.min(i,e.visible.to+t.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Oe&&(o=Ue(t.doc,o),a=He(t.doc,a));var s=o!=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=an(t,e,n),r.viewFrom=e):(r.viewFrom>e?r.view=an(t,e,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,fr(t,n)))),r.viewTo=n}(t,o,a),n.viewOffset=Ve(Gt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var c=mr(t);if(!s&&0==c&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var l=function(t){if(t.hasFocus())return null;var e=P();if(!e||!M(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&M(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,i=t.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(e){var n=e.nextSibling;return u&&v&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var c=r.view,l=r.viewFrom,f=0;f-1&&(d=!1),fn(t,h,l,n)),d&&(S(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(te(t.options,l)))),a=h.node.nextSibling}else{var p=vn(t,h,l,n);o.insertBefore(p,a)}l+=h.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!=P()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&M(document.body,t.anchorNode)&&M(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)}}(l),S(n.cursorDiv),S(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ii(t,400)),n.updateLineNumbers=null,!0}function ui(t,e){for(var n=e.viewport,r=!0;;r=!1){if(r&&t.options.lineWrapping&&e.oldDisplayWidth!=Cn(t))r&&(e.visible=Ar(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+kn(t.display)-An(t),n.top)}),e.visible=Ar(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!si(t,e))break;Sr(t);var i=Fr(t);br(t),zr(t,i),fi(t,i),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 ci(t,e){var n=new ai(t,e);if(si(t,n)){Sr(t),ui(t,n);var r=Fr(t);br(t),zr(t,r),fi(t,r),n.finish()}}function li(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px",cn(t,"gutterChanged",t)}function fi(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+Sn(t)+"px"}function hi(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var r=sr(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=r+"px",a=0;as.clientWidth,l=s.scrollHeight>s.clientHeight;if(i&&c||o&&l){if(o&&v&&u)t:for(var h=e.target,d=a.view;h!=s;h=h.parentNode)for(var p=0;p=0&&ne(t,r.to())<=0)return n}return-1};var Ei=function(t,e){this.anchor=t,this.head=e};function ki(t,e,n){var r=t&&t.options.selectionsMayTouch,i=e[n];e.sort((function(t,e){return ne(t.from(),e.from())})),n=U(e,i);for(var o=1;o0:u>=0){var c=ae(s.from(),a.from()),l=oe(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,e.splice(--o,2,new Ei(f?l:c,f?c:l))}}return new Oi(e,n)}function Ti(t,e){return new Oi([new Ei(t,e||t)],0)}function Si(t){return t.text?ee(t.from.line+t.text.length-1,Y(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Ci(t,e){if(ne(t,e.from)<0)return t;if(ne(t,e.to)<=0)return Si(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+=Si(e).ch-e.to.ch),ee(n,r)}function Ai(t,e){for(var n=[],r=0;r1&&t.remove(s.line+1,p-1),t.insert(s.line+1,b)}cn(t,"change",t,e)}function Li(t,e,n){!function t(r,i,o){if(r.linked)for(var a=0;as-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Ui(t.done),Y(t.done)):t.done.length&&!Y(t.done).ranges?Y(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),Y(t.done)):void 0}(i,i.lastOp==r)))a=Y(o.changes),0==ne(e.from,e.to)&&0==ne(e.from,a.to)?a.to=Si(e):o.changes.push(Fi(t,e));else{var u=Y(i.done);for(u&&u.ranges||zi(t.sel,i.done),o={changes:[Fi(t,e)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=e.origin,a||gt(t,"historyAdded")}function zi(t,e){var n=Y(e);n&&n.ranges&&n.equals(t)||e.push(t)}function qi(t,e,n,r){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,r),(function(n){n.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=n.markedSpans),++o}))}function Vi(t){if(!t)return null;for(var e,n=0;n-1&&(Y(s)[f]=c[f],delete c[f])}}}return r}function Gi(t,e,n,r){if(r){var i=t.anchor;if(n){var o=ne(e,i)<0;o!=ne(n,i)<0?(i=e,e=n):o!=ne(e,n)<0&&(e=n)}return new Ei(i,e)}return new Ei(n||e,e)}function $i(t,e,n,r,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ji(t,new Oi([Gi(t.sel.primary(),e,n,i)],0),r)}function Yi(t,e,n){for(var r=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o=e.ch:s.to>e.ch))){if(i&&(gt(u,"beforeCursorEnter"),u.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var f=u.find(r<0?1:-1),h=void 0;if((r<0?l:c)&&(f=ao(t,f,-r,f&&f.line==e.line?o:null)),f&&f.line==e.line&&(h=ne(f,n))&&(r<0?h<0:h>0))return io(t,f,e,r,i)}var d=u.find(r<0?-1:1);return(r<0?c:l)&&(d=ao(t,d,r,d.line==e.line?o:null)),d?io(t,d,e,r,i):null}}return e}function oo(t,e,n,r,i){var o=r||1;return io(t,e,n,o,i)||!i&&io(t,e,n,o,!0)||io(t,e,n,-o,i)||!i&&io(t,e,n,-o,!0)||(t.cantEdit=!0,ee(t.first,0))}function ao(t,e,n,r){return n<0&&0==e.ch?e.line>t.first?ue(t,ee(e.line-1)):null:n>0&&e.ch==(r||Gt(t,e.line)).text.length?e.line0)){var l=[u,1],f=ne(c.from,s.from),h=ne(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&l.push({from:c.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&l.push({from:s.to,to:c.to}),i.splice.apply(i,l),u+=l.length-3}}return i}(t,e.from,e.to);if(r)for(var i=r.length-1;i>=0;--i)lo(t,{from:r[i].from,to:r[i].to,text:i?[""]:e.text,origin:e.origin});else lo(t,e)}}function lo(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ne(e.from,e.to)){var n=Ai(t,e);Hi(t,e,n,t.cm?t.cm.curOp.id:NaN),po(t,e,n,Se(t,e));var r=[];Li(t,(function(t,n){n||-1!=U(r,t.history)||(vo(t.history,e),r.push(t.history)),po(t,e,null,Se(t,e))}))}}function fo(t,e,n){var r=t.cm&&t.cm.state.suppressEdits;if(!r||n){for(var i,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,u="undo"==e?o.undone:o.done,c=0;c=0;--d){var p=h(d);if(p)return p.v}}}}function ho(t,e){if(0!=e&&(t.first+=e,t.sel=new Oi(X(t.sel.ranges,(function(t){return new Ei(ee(t.anchor.line+e,t.anchor.ch),ee(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){hr(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,r=n.viewFrom;rt.lastLine())){if(e.from.lineo&&(e={from:e.from,to:ee(o,Gt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=$t(t,e.from,e.to),n||(n=Ai(t,e)),t.cm?function(t,e,n){var r=t.doc,i=t.display,o=e.from,a=e.to,s=!1,u=o.line;t.options.lineWrapping||(u=Zt(Fe(Gt(r,o.line))),r.iter(u,a.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),r.sel.contains(e.from,e.to)>-1&&bt(t),Ni(r,e,n,ur(t)),t.options.lineWrapping||(r.iter(u,o.line+e.text.length,(function(t){var e=We(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;r--){var i=Gt(t,r).stateAfter;if(i&&(!(i instanceof le)||r+i.lookAhead1||!(this.children[0]instanceof _o))){var s=[];this.collapse(s),this.children=[new _o(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var a=i.lines.length%25+25,s=a;s10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=j("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Be(t,e.line,e,n,o)||e.line!=n.line&&Be(t,n.line,e,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Oe=!0}o.addToHistory&&Hi(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var s,u=e.line,c=t.cm;if(t.iter(u,n.line+1,(function(r){c&&o.collapsed&&!c.options.lineWrapping&&Fe(r)==c.display.maxLine&&(s=!0),o.collapsed&&u!=e.line&&Xt(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 Ee(o,u==e.line?e.ch:null,u==n.line?n.ch:null),t.cm&&t.cm.curOp),++u})),o.collapsed&&t.iter(e.line,n.line+1,(function(e){ze(t,e)&&Xt(e,0)})),o.clearOnEnter&&ht(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(xe=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++Eo,o.atomic=!0),c){if(s&&(c.curOp.updateMaxLine=!0),o.collapsed)hr(c,e.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var l=e.line;l<=n.line;l++)dr(c,l,"text");o.atomic&&no(c.doc),cn(c,"markerAdded",c,o)}return o}ko.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&&cn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;ot.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=l,t.display.maxLineChanged=!0)}null!=r&&t&&this.collapsed&&hr(t,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&no(t.doc)),t&&cn(t,"markerCleared",t,this,r,i),e&&$r(t),this.parent&&this.parent.clear()}},ko.prototype.find=function(t,e){var n,r;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i=0;u--)co(this,r[u]);s?Qi(this,s):this.cm&&Pr(this.cm)})),undo:ri((function(){fo(this,"undo")})),redo:ri((function(){fo(this,"redo")})),undoSelection:ri((function(){fo(this,"undo",!0)})),redoSelection:ri((function(){fo(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.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,n){t=ue(this,t),e=ue(this,e);var r=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&i!=t.line||null!=u.from&&i==e.line&&u.from>=e.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++i})),r},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var r=0;rt)return e=t,!0;t-=o,++n})),ue(this,ee(n,e))},indexFromPos:function(t){var e=(t=ue(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var f=t.dataTransfer.getData("Text");if(f){var h;if(e.state.draggingText&&!e.state.draggingText.copy&&(h=e.listSelections()),to(e.doc,Ti(n,n)),h)for(var d=0;d=0;e--)go(t.doc,"",r[e].from,r[e].to,"+delete");Pr(t)}))}function Zo(t,e,n){var r=ot(t.text,e+n,n);return r<0||r>t.text.length?null:r}function Qo(t,e,n){var r=Zo(t,e.ch,n);return null==r?null:new ee(e.line,r,n<0?"after":"before")}function Jo(t,e,n,r,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=lt(n,e.doc.direction);if(o){var a,s=i<0?Y(o):o[0],u=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var c=Rn(e,n);a=i<0?n.text.length-1:0;var l=Nn(e,c,a).top;a=at((function(t){return Nn(e,c,t).top==l}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Zo(n,a,1))}else a=i<0?s.to:s.from;return new ee(r,a,u)}}return new ee(r,i<0?n.text.length:0,i<0?"before":"after")}zo.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"},zo.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"},zo.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"},zo.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"]},zo.default=v?zo.macDefault:zo.pcDefault;var ta={selectAll:so,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),q)},killLine:function(t){return Xo(t,(function(e){if(e.empty()){var n=Gt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)i=new ee(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ee(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=Gt(t.doc,i.line-1).text;a&&(i=new ee(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),ee(i.line-1,a.length-1),i,"+transpose"))}n.push(new Ei(i,i))}t.setSelections(n)}))},newlineAndIndent:function(t){return ti(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-1&&(ne((i=c.ranges[i]).from(),e)<0||e.xRel>0)&&(ne(i.to(),e)>0||e.xRel<0)?function(t,e,n,r){var i=t.display,o=!1,c=ei(t,(function(e){u&&(i.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Er(t)),pt(i.wrapper.ownerDocument,"mouseup",c),pt(i.wrapper.ownerDocument,"mousemove",l),pt(i.scroller,"dragstart",f),pt(i.scroller,"drop",c),o||(_t(e),r.addNew||$i(t.doc,n,null,null,r.extend),u&&!h||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),l=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},f=function(){return o=!0};u&&(i.scroller.draggable=!0),t.state.draggingText=c,c.copy=!r.moveOnDrag,ht(i.wrapper.ownerDocument,"mouseup",c),ht(i.wrapper.ownerDocument,"mousemove",l),ht(i.scroller,"dragstart",f),ht(i.scroller,"drop",c),t.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(t,r,e,o):function(t,e,n,r){a&&Er(t);var i=t.display,o=t.doc;_t(e);var s,u,c=o.sel,l=c.ranges;if(r.addNew&&!r.extend?(u=o.sel.contains(n),s=u>-1?l[u]:new Ei(n,n)):(s=o.sel.primary(),u=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new Ei(n,n)),n=lr(t,e,!0,!0),u=-1;else{var f=ma(t,n,r.unit);s=r.extend?Gi(s,f.anchor,f.head,r.extend):f}r.addNew?-1==u?(u=l.length,Ji(o,ki(t,l.concat([s]),u),{scroll:!1,origin:"*mouse"})):l.length>1&&l[u].empty()&&"char"==r.unit&&!r.extend?(Ji(o,ki(t,l.slice(0,u).concat(l.slice(u+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):Xi(o,u,s,V):(u=0,Ji(o,new Oi([s],0),V),c=o.sel);var h=n;function d(e){if(0!=ne(h,e))if(h=e,"rectangle"==r.unit){for(var i=[],a=t.options.tabSize,l=B(Gt(o,n.line).text,n.ch,a),f=B(Gt(o,e.line).text,e.ch,a),d=Math.min(l,f),p=Math.max(l,f),g=Math.min(n.line,e.line),m=Math.min(t.lastLine(),Math.max(n.line,e.line));g<=m;g++){var b=Gt(o,g).text,v=K(b,d,a);d==p?i.push(new Ei(ee(g,v),ee(g,v))):b.length>v&&i.push(new Ei(ee(g,v),ee(g,K(b,p,a))))}i.length||i.push(new Ei(n,n)),Ji(o,ki(t,c.ranges.slice(0,u).concat(i),u),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var y,_=s,w=ma(t,e,r.unit),x=_.anchor;ne(w.anchor,x)>0?(y=w.head,x=ae(_.from(),w.anchor)):(y=w.anchor,x=oe(_.to(),w.head));var O=c.ranges.slice(0);O[u]=function(t,e){var n=e.anchor,r=e.head,i=Gt(t.doc,n.line);if(0==ne(n,r)&&n.sticky==r.sticky)return e;var o=lt(i);if(!o)return e;var a=ut(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return e;var u,c=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==c||c==o.length)return e;if(r.line!=n.line)u=(r.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var l=ut(o,r.ch,r.sticky),f=l-a||(r.ch-n.ch)*(1==s.level?-1:1);u=l==c-1||l==c?f<0:f>0}var h=o[c+(u?-1:0)],d=u==(1==h.level),p=d?h.from:h.to,g=d?"after":"before";return n.ch==p&&n.sticky==g?e:new Ei(new ee(n.line,p,g),r)}(t,new Ei(ue(o,x),y)),Ji(o,ki(t,O,u),V)}}var p=i.wrapper.getBoundingClientRect(),g=0;function m(e){t.state.selectingText=!1,g=1/0,e&&(_t(e),i.input.focus()),pt(i.wrapper.ownerDocument,"mousemove",b),pt(i.wrapper.ownerDocument,"mouseup",v),o.history.lastSelOrigin=null}var b=ei(t,(function(e){0!==e.buttons&&kt(e)?function e(n){var a=++g,s=lr(t,n,!0,"rectangle"==r.unit);if(s)if(0!=ne(s,h)){t.curOp.focus=P(),d(s);var u=Ar(i,o);(s.line>=u.to||s.linep.bottom?20:0;c&&setTimeout(ei(t,(function(){g==a&&(i.scroller.scrollTop+=c,e(n))})),50)}}(e):m(e)})),v=ei(t,m);t.state.selectingText=v,ht(i.wrapper.ownerDocument,"mousemove",b),ht(i.wrapper.ownerDocument,"mouseup",v)}(t,r,e,o)}(e,r,o,t):Et(t)==n.scroller&&_t(t):2==i?(r&&$i(e.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(O?e.display.input.onContextMenu(t):Er(e)))}}function ma(t,e,n){if("char"==n)return new Ei(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new Ei(ee(e.line,0),ue(t.doc,ee(e.line+1,0)));var r=n(t,e);return new Ei(r.from,r.to)}function ba(t,e,n,r){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(t){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;r&&_t(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!vt(t,n))return xt(e);o-=s.top-a.viewOffset;for(var u=0;u=i)return gt(t,n,t,Qt(t.doc,o),t.display.gutterSpecs[u].className,e),xt(e)}}function va(t,e){return ba(t,e,"gutterClick",!0)}function ya(t,e){On(t.display,e)||function(t,e){return!!vt(t,"gutterContextMenu")&&ba(t,e,"gutterContextMenu",!1)}(t,e)||mt(t,e,"contextmenu")||O||t.display.input.onContextMenu(e)}function _a(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hn(t)}pa.prototype.compare=function(t,e,n){return this.time+400>t&&0==ne(e,this.pos)&&n==this.button};var wa={toString:function(){return"CodeMirror.Init"}},xa={},Oa={};function Ea(t,e,n){if(!e!=!(n&&n!=wa)){var r=t.display.dragFunctions,i=e?ht:pt;i(t.display.scroller,"dragstart",r.start),i(t.display.scroller,"dragenter",r.enter),i(t.display.scroller,"dragover",r.over),i(t.display.scroller,"dragleave",r.leave),i(t.display.scroller,"drop",r.drop)}}function ka(t){t.options.lineWrapping?(R(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),Ke(t)),cr(t),hr(t),Hn(t),setTimeout((function(){return zr(t)}),100)}function Ta(t,e){var n=this;if(!(this instanceof Ta))return new Ta(t,e);this.options=e=e?I(e):{},I(xa,e,!1);var r=e.value;"string"==typeof r?r=new Mo(r,e.mode,null,e.lineSeparator,e.direction):e.mode&&(r.modeOption=e.mode),this.doc=r;var i=new Ta.inputStyles[e.inputStyle](this),o=this.display=new bi(t,r,i,e);for(var c in o.wrapper.CodeMirror=this,_a(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Wr(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&&!b&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;ht(e.scroller,"mousedown",ei(t,ga)),ht(e.scroller,"dblclick",a&&s<11?ei(t,(function(e){if(!mt(t,e)){var n=lr(t,e);if(n&&!va(t,e)&&!On(t.display,e)){_t(e);var r=t.findWordAt(n);$i(t.doc,r.anchor,r.head)}}})):function(e){return mt(t,e)||_t(e)}),ht(e.scroller,"contextmenu",(function(e){return ya(t,e)})),ht(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||ya(t,n)}));var n,r={end:0};function i(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(r=e.activeTouch).end=+new Date)}function o(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}ht(e.scroller,"touchstart",(function(i){if(!mt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!va(t,i)){e.input.ensurePolled(),clearTimeout(n);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),ht(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ht(e.scroller,"touchend",(function(n){var r=e.activeTouch;if(r&&!On(e,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=t.coordsChar(e.activeTouch,"page");a=!r.prev||o(r,r.prev)?new Ei(s,s):!r.prev.prev||o(r,r.prev.prev)?t.findWordAt(s):new Ei(ee(s.line,0),ue(t.doc,ee(s.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),_t(n)}i()})),ht(e.scroller,"touchcancel",i),ht(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Dr(t,e.scroller.scrollTop),Br(t,e.scroller.scrollLeft,!0),gt(t,"scroll",t))})),ht(e.scroller,"mousewheel",(function(e){return xi(t,e)})),ht(e.scroller,"DOMMouseScroll",(function(e){return xi(t,e)})),ht(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){mt(t,e)||Ot(e)},over:function(e){mt(t,e)||(function(t,e){var n=lr(t,e);if(n){var r=document.createDocumentFragment();yr(t,n,r),t.display.dragCursor||(t.display.dragCursor=A("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),C(t.display.dragCursor,r)}}(t,e),Ot(e))},start:function(e){return function(t,e){if(a&&(!t.state.draggingText||+new Date-Po<100))Ot(e);else if(!mt(t,e)&&!On(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!h)){var n=A("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(t,e)},drop:ei(t,Ro),leave:function(e){mt(t,e)||No(t)}};var u=e.input.getField();ht(u,"keyup",(function(e){return la.call(t,e)})),ht(u,"keydown",ei(t,ca)),ht(u,"keypress",ei(t,fa)),ht(u,"focus",(function(e){return kr(t,e)})),ht(u,"blur",(function(e){return Tr(t,e)}))}(this),function(){var t;Do||(ht(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Lo(Io)}),100))})),ht(window,"blur",(function(){return Lo(Tr)})),Do=!0)}(),Gr(this),this.curOp.forceUpdate=!0,Di(this,r),e.autofocus&&!b||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&kr(n)}),20):Tr(this),Oa)Oa.hasOwnProperty(c)&&Oa[c](this,e[c],wa);di(this),e.finishInit&&e.finishInit(this);for(var l=0;l150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=e>o.first?B(Gt(o,e-1).text,null,a):0:"add"==n?c=u+t.options.indentUnit:"subtract"==n?c=u-t.options.indentUnit:"number"==typeof n&&(c=u+n),c=Math.max(0,c);var f="",h=0;if(t.options.indentWithTabs)for(var d=Math.floor(c/a);d;--d)h+=a,f+="\t";if(ha,u=Pt(e),c=null;if(s&&r.ranges.length>1)if(Aa&&Aa.text.join("\n")==e){if(r.ranges.length%Aa.text.length==0){c=[];for(var l=0;l=0;h--){var d=r.ranges[h],p=d.from(),g=d.to();d.empty()&&(n&&n>0?p=ee(p.line,p.ch-n):t.state.overwrite&&!s?g=ee(g.line,Math.min(Gt(o,g.line).text.length,g.ch+Y(u).length)):s&&Aa&&Aa.lineWise&&Aa.text.join("\n")==u.join("\n")&&(p=g=ee(p.line,0)));var m={from:p,to:g,text:c?c[h%c.length]:u,origin:i||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};co(t.doc,m),cn(t,"inputRead",t,m)}e&&!s&&Ra(t,e),Pr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Pa(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||ti(e,(function(){return Ma(e,n,0,null,"paste")})),!0}function Ra(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=t.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Ca(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Gt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Ca(t,i.head.line,"smart"));a&&cn(t,"electricInput",t,i.head.line)}}}function Na(t){for(var e=[],n=[],r=0;r0?0:-1));if(isNaN(l))a=null;else{var f=n>0?l>=55296&&l<56320:l>=56320&&l<57343;a=new ee(e.line,Math.max(0,Math.min(s.text.length,e.ch+n*(f?2:1))),-n)}}else a=i?function(t,e,n,r){var i=lt(e,t.doc.direction);if(!i)return Qo(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 o=ut(i,n.ch,n.sticky),a=i[o];if("ltr"==t.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&h>=l.begin)){var d=f?"before":"after";return new ee(n.line,h,d)}}var p=function(t,e,r){for(var o=function(t,e){return e?new ee(n.line,u(t,1),"before"):new ee(n.line,t,"after")};t>=0&&t0==(1!=a.level),c=s?r.begin:u(r.end,-1);if(a.from<=c&&c0?l.end:u(l.begin,-1);return null==m||r>0&&m==e.text.length||!(g=p(r>0?0:i.length-1,r,c(m)))?null:g}(t.cm,s,e,n):Qo(s,e,n);if(null==a){if(o||(c=e.line+u)=t.first+t.size||(e=new ee(c,e.ch,e.sticky),!(s=Gt(t,c))))return!1;e=Jo(i,t.cm,s,e.line,u)}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 l=null,f="group"==r,h=t.cm&&t.cm.getHelper(e,"wordChars"),d=!0;!(n<0)||c(!d);d=!1){var p=s.text.charAt(e.ch)||"\n",g=et(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||g||(g="s"),l&&l!=g){n<0&&(n=1,c(),e.sticky="after");break}if(g&&(l=g),n>0&&!c(!d))break}var m=oo(t,e,o,a,!0);return re(o,m)&&(m.hitSide=!0),m}function Ba(t,e,n,r){var i,o,a=t.doc,s=e.left;if("page"==r){var u=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(u-.5*ir(t.display),3);i=(n>0?e.bottom:e.top)+n*c}else"line"==r&&(i=n>0?e.bottom+3:e.top-3);for(;(o=Zn(t,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var Fa=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 Ua(t,e){var n=Pn(t,e.line);if(!n||n.hidden)return null;var r=Gt(t.doc,e.line),i=jn(n,r,e.line),o=lt(r,t.doc.direction),a="left";o&&(a=ut(o,e.ch)%2?"right":"left");var s=In(i.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ha(t,e){return e&&(t.bad=!0),t}function za(t,e,n){var r;if(e==t.display.lineDiv){if(!(r=t.display.lineDiv.childNodes[n]))return Ha(t.clipPos(ee(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 i=0;i=e.display.viewTo||o.line=e.display.viewFrom&&Ua(e,i)||{node:u[0].measure.map[2],offset:0},l=o.liner.firstLine()&&(a=ee(a.line-1,Gt(r.doc,a.line-1).length)),s.ch==Gt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(t=fr(r,a.line))?(e=Zt(i.view[0].line),n=i.view[0].node):(e=Zt(i.view[t].line),n=i.view[t-1].node.nextSibling);var u,c,l=fr(r,s.line);if(l==i.view.length-1?(u=i.viewTo-1,c=i.lineDiv.lastChild):(u=Zt(i.view[l+1].line)-1,c=i.view[l+1].node.previousSibling),!n)return!1;for(var f=r.doc.splitLines(function(t,e,n,r,i){var o="",a=!1,s=t.doc.lineSeparator(),u=!1;function c(){a&&(o+=s,u&&(o+=s),a=u=!1)}function l(t){t&&(c(),o+=t)}function f(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void l(n);var o,h=e.getAttribute("cm-marker");if(h){var d=t.findMarks(ee(r,0),ee(i+1,0),(m=+h,function(t){return t.id==m}));return void(d.length&&(o=d[0].find(0))&&l($t(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;p&&c();for(var g=0;g1&&h.length>1;)if(Y(f)==Y(h))f.pop(),h.pop(),u--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),e++}for(var d=0,p=0,g=f[0],m=h[0],b=Math.min(g.length,m.length);da.ch&&v.charCodeAt(v.length-p-1)==y.charCodeAt(y.length-p-1);)d--,p++;f[f.length-1]=v.slice(0,v.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var w=ee(e,d),x=ee(u,h.length?Y(h).length-p:0);return f.length>1||f[0]||ne(w,x)?(go(r.doc,f,w,x,"+input"),!0):void 0},Fa.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fa.prototype.reset=function(){this.forceCompositionEnd()},Fa.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fa.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))},Fa.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||ti(this.cm,(function(){return hr(t.cm)}))},Fa.prototype.setUneditable=function(t){t.contentEditable="false"},Fa.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Ma)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Fa.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Fa.prototype.onContextMenu=function(){},Fa.prototype.resetPosition=function(){},Fa.prototype.needsContentAttribute=!0;var Va=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};Va.prototype.init=function(t){var e=this,n=this,r=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!mt(r,t)){if(r.somethingSelected())ja({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var e=Na(r);ja({lineWise:!0,text:e.text}),"cut"==t.type?r.setSelections(e.ranges,null,q):(n.prevInput="",i.value=e.text.join("\n"),L(i))}"cut"==t.type&&(r.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(i.style.width="0px"),ht(i,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),ht(i,"paste",(function(t){mt(r,t)||Pa(t,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),ht(i,"cut",o),ht(i,"copy",o),ht(t.scroller,"paste",(function(e){if(!On(t,e)&&!mt(r,e)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),ht(t.lineSpace,"selectstart",(function(e){On(t,e)||_t(e)})),ht(i,"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"})}})),ht(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Va.prototype.createField=function(t){this.wrapper=Da(),this.textarea=this.wrapper.firstChild},Va.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Va.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,r=vr(t);if(t.options.moveInputWithCursor){var i=$n(t,n.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Va.prototype.showSelection=function(t){var e=this.cm.display;C(e.cursorDiv,t.cursors),C(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Va.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&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Va.prototype.getField=function(){return this.textarea},Va.prototype.supportsTouch=function(){return!1},Va.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!b||P()!=this.textarea))try{this.textarea.focus()}catch(t){}},Va.prototype.blur=function(){this.textarea.blur()},Va.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Va.prototype.receivedFocus=function(){this.slowPoll()},Va.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Va.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))}))},Va.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!e.state.focused||Rt(n)&&!r&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=n.value;if(i==r&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||v&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var u=0,c=Math.min(r.length,i.length);u1e3||i.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Va.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Va.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Va.prototype.onContextMenu=function(t){var e=this,n=e.cm,r=n.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=lr(n,t),c=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Ji)(n.doc,Ti(o),q);var l,h=i.style.cssText,d=e.wrapper.style.cssText,p=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-p.top-5)+"px; left: "+(t.clientX-p.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);",u&&(l=window.scrollY),r.input.focus(),u&&window.scrollTo(null,l),r.input.reset(),n.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=b,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&m(),O){Ot(t);var g=function(){pt(window,"mouseup",g),setTimeout(b,20)};ht(window,"mouseup",g)}else setTimeout(b,50)}function m(){if(null!=i.selectionStart){var t=n.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function b(){if(e.contextMenuPending==b&&(e.contextMenuPending=!1,e.wrapper.style.cssText=d,i.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=i.selectionStart)){(!a||a&&s<9)&&m();var t=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?ei(n,so)(n):t++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Va.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},Va.prototype.setUneditable=function(){},Va.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,r,i,o){t.defaults[n]=r,i&&(e[n]=o?function(t,e,n){n!=wa&&i(t,e,n)}:i)}t.defineOption=n,t.Init=wa,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Mi(t)}),!0),n("indentUnit",2,Mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Pi(t),Hn(t),hr(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 i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,n.push(ee(r,o))}r++}));for(var i=n.length-1;i>=0;i--)go(t.doc,e,n[i],ee(n[i].line,n[i].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!=wa&&t.refresh()})),n("specialCharPlaceholder",Je,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",b?"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){_a(t),mi(t)}),!0),n("keyMap","default",(function(t,e,n){var r=Yo(e),i=n!=wa&&Yo(n);i&&i.detach&&i.detach(t,r),r.attach&&r.attach(t,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,ka,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=pi(e,t.options.lineNumbers),mi(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?sr(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return zr(t)}),!0),n("scrollbarStyle","native",(function(t){Wr(t),zr(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=pi(t.options.gutters,e),mi(t)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(t){return t}),mi,!0),n("showCursorWhenSelecting",!1,br,!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,Ea),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,br,!0),n("singleCursorHeightPerLine",!0,br,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Pi,!0),n("addModeClass",!1,Pi,!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,Pi,!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)}(Ta),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,i=r[t];r[t]==n&&"mode"!=t||(r[t]=n,e.hasOwnProperty(t)&&ei(this,e[t])(this,n,i),gt(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"](Yo(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;nn&&(Ca(this,i.head.line,t,!0),n=i.head.line,r==this.doc.sel.primIndex&&Pr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var u=s;u0&&Xi(this.doc,r,new Ei(o,c[r].to()),q)}}})),getTokenAt:function(t,e){return ye(this,t,e)},getLineTokens:function(t,e){return ye(this,ee(t),e,!0)},getTokenTypeAt:function(t){t=ue(this.doc,t);var e,n=de(this,Gt(this.doc,t.line)),r=0,i=(n.length-1)/2,o=t.ch;if(0==o)e=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(t=o,i=!0),r=Gt(this.doc,t)}else r=t;return Wn(this,r,{top:0,left:0},e||"page",n||i).top+(i?this.doc.height-Ve(r):0)},defaultTextHeight:function(){return ir(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,i){var o,a=this.display,s=(t=$n(this,ue(this.doc,t))).bottom,u=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),a.sizer.appendChild(e),"over"==r)s=t.top;else if("above"==r||"near"==r){var c=Math.max(a.wrapper.clientHeight,this.doc.height),l=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||t.bottom+e.offsetHeight>c)&&t.top>e.offsetHeight?s=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=c&&(s=t.bottom),u+e.offsetWidth>l&&(u=l-e.offsetWidth)}e.style.top=s+"px",e.style.left=e.style.right="","right"==i?(u=a.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(a.sizer.clientWidth-e.offsetWidth)/2),e.style.left=u+"px"),n&&(null!=(o=jr(this,{left:u,top:s,right:u+e.offsetWidth,bottom:s+e.offsetHeight})).scrollTop&&Dr(this,o.scrollTop),null!=o.scrollLeft&&Br(this,o.scrollLeft))},triggerOnKeyDown:ni(ca),triggerOnKeyPress:ni(fa),triggerOnKeyUp:la,triggerOnMouseDown:ni(ga),execCommand:function(t){if(ta.hasOwnProperty(t))return ta[t].call(null,this)},triggerElectric:ni((function(t){Ra(this,t)})),findPosH:function(t,e,n,r){var i=1;e<0&&(i=-1,e=-e);for(var o=ue(this.doc,t),a=0;a0&&a(e.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&cr(this),gt(this,"refresh",this)})),swapDoc:ni((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Di(this,t),Hn(this),this.display.input.reset(),Rr(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,cn(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,i){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][r]=i},t.registerGlobalHelper=function(e,r,i,o){t.registerHelper(e,r,o),n[e]._global.push({pred:i,val:o})}}(Ta);var Wa="iter insert remove copy getEditor constructor".split(" ");for(var Ka in Mo.prototype)Mo.prototype.hasOwnProperty(Ka)&&U(Wa,Ka)<0&&(Ta.prototype[Ka]=function(t){return function(){return t.apply(this.doc,arguments)}}(Mo.prototype[Ka]));return yt(Mo),Ta.inputStyles={textarea:Va,contenteditable:Fa},Ta.defineMode=function(t){Ta.defaults.mode||"null"==t||(Ta.defaults.mode=t),Bt.apply(this,arguments)},Ta.defineMIME=function(t,e){It[t]=e},Ta.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Ta.defineMIME("text/plain","null"),Ta.defineExtension=function(t,e){Ta.prototype[t]=e},Ta.defineDocExtension=function(t,e){Mo.prototype[t]=e},Ta.fromTextArea=function(t,e){if((e=e?I(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=P();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function r(){t.value=s.getValue()}var i;if(t.form&&(ht(t.form,"submit",r),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.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&&(pt(t.form,"submit",r),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Ta((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=pt,t.on=ht,t.wheelEventPixels=wi,t.Doc=Mo,t.splitLines=Pt,t.countColumn=B,t.findColumn=K,t.isWordChar=tt,t.Pass=z,t.signal=gt,t.Line=Ge,t.changeEnd=Si,t.scrollbarModel=Vr,t.Pos=ee,t.cmpPos=ne,t.modes=Dt,t.mimeModes=It,t.resolveMode=Ft,t.getMode=Ut,t.modeExtensions=Ht,t.extendMode=zt,t.copyState=qt,t.startState=Wt,t.innerMode=Vt,t.commands=ta,t.keyMap=zo,t.keyName=$o,t.isModifierKey=Ko,t.lookupKey=Wo,t.normalizeKeyMap=Vo,t.StringStream=Kt,t.SharedTextMarker=So,t.TextMarker=ko,t.LineWidget=xo,t.e_preventDefault=_t,t.e_stopPropagation=wt,t.e_stop=Ot,t.addClass=R,t.contains=M,t.rmClass=T,t.keyNames=Bo}(Ta),Ta.version="5.63.0",Ta}()},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n.n(r),o=n(13);e.default=i.a.View.extend({initialize:function(t){this.config=t.config||{},this.pfx=this.config.stylePrefix||"",this.target=t.target||{},this.propTarget=t.propTarget||{},this.onChange=t.onChange,this.onInputRender=t.onInputRender||{},this.customValue=t.customValue||{},this.properties=[];var e=this.collection;this.listenTo(e,"add",this.addTo),this.listenTo(e,"reset",this.render)},addTo:function(t,e,n){this.add(t,null,n)},add:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e||this.el,i=new t.typeView({model:t,name:t.get("name"),id:this.pfx+t.get("property"),target:this.target,propTarget:this.propTarget,onChange:this.onChange,onInputRender:this.onInputRender,config:this.config});"composite"!=t.get("type")&&(i.customValue=this.customValue),i.render();var a=i.el;this.properties.push(i),i.updateVisibility(),Object(o.b)(r,a,n.at)},render:function(){var t=this,e=this.$el;this.clearItems();var n=document.createDocumentFragment();return this.collection.each((function(e){return t.add(e,n)})),e.empty(),e.append(n),e.attr("class","".concat(this.pfx,"properties")),this},remove:function(){i.a.View.prototype.remove.apply(this,arguments),this.clearItems()},clearItems:function(){this.properties.forEach((function(t){return t.remove()})),this.properties=[]}})},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n.n(i);e.a=o.a.View.extend({itemView:"",itemsView:"",itemType:"type",autoAdd:0,initialize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;this.config=e||t.config||{},this.autoAdd&&this.listenTo(this.collection,"add",this.addTo),this.items=[],this.init()},init:function(){},addTo:function(t){this.add(t)},itemViewNotFound:function(t){var e=this.config,n=this.ns,r=e.em,i="".concat(n?"[".concat(n,"]: "):"","'").concat(t,"' type not found");r&&r.logWarning(i)},add:function(t,e){var n,i=this.config,o=this.reuseView,a=this.items,s=this.itemsView,u=void 0===s?{}:s,c=e||null,l=this.itemView,f=t.get(this.itemType);u[f]?l=u[f]:!f||u[f]||Object(r.includes)(["button","checkbox","color","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],f)||this.itemViewNotFound(f),n=t.view&&o?t.view:new l({model:t,config:i},i),a&&a.push(n);var h=n.render().el;c?c.appendChild(h):this.$el.append(h)},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},onRender:function(){},onRemoveBefore:function(){},onRemove:function(){},remove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.items;this.onRemoveBefore(e,t),this.clearItems(),o.a.View.prototype.remove.apply(this,arguments),this.onRemove(e,t)},clearItems:function(){this.items}})},function(t,e,n){"use strict";var r=n(14),i=n.n(r),o=n(11),a=n.n(o),s=n(3),u=n.n(s),c=n(22),l=n.n(c),f=n(2),h=n.n(f),d=n(0),p=n(10),g=["at"];function m(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 b(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:[];return(e||[]).forEach((function(e){n.push(e.getId()),t(e.components(),n)})),n},y=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.map((function(e){n.push(e.getId()),t(e.components(),n)})),n};e.a=h.a.Collection.extend({initialize:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.opt=e,this.listenTo(this,"add",this.onAdd),this.listenTo(this,"remove",this.removeChildren),this.listenTo(this,"reset",this.resetChildren);var n=e.em,r=e.config;this.config=r,this.em=n,this.domc=e.domc||n&&n.get("DomComponents")},resetChildren:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this,i=n.previousModels||[],o=i.filter((function(e){return!t.get(e.cid)})),a=y(t);n.keepIds=v(i).filter((function(t){return a.indexOf(t)>=0})),o.forEach((function(t){return e.removeChildren(t,r,n)})),t.each((function(t){return e.onAdd(t)}))},removeChildren:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var i=this.domc,o=this.em,a=i?i.allById():{},s=r.temporary;if(t.prevColl=this,!s){var u=t.getId(),c=o.get("SelectorManager").getAll(),l=o.get("CssComposer").getAll(),f=(r.keepIds||[]).indexOf(u)<0;delete a[u];var h=f?l.remove(l.filter((function(t){return t.getSelectors().getFullString()==="#".concat(u)})),r):[];c.remove(h.map((function(t){return t.getSelectors().at(0)}))),t.opt.temporary||(o.get("Commands").run("core:component-style-clear",{target:t}),t.removed(),t.trigger("removed"),o.trigger("component:remove",t)),t.components().forEach((function(t){return n.removeChildren(t,e,r)}))}var d=t.components();o.stopListening(d),o.stopListening(t),o.stopListening(t.get("classes")),t.__postRemove()}},model:function(t,e){var n,r=e.collection.opt,i=r.em,o=i.get("DomComponents").componentTypes;e.em=i,e.config=r.config,e.componentTypes=o,e.domc=r.domc;for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=this.em,r=this.domc,i=n.get("CssComposer"),o=n.get("Parser").parseHtml(t);if(p.a.checkId(o.html,o.css,r.componentsById,e),o.css&&i&&!e.temporary){e.at;var a=l()(e,g);i.addCollection(o.css,b(b({},a),{},{extend:1}))}return o.html},add:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.parent,n.keepIds=v(n.previousModels),Object(d.isString)(t)?t=this.parseString(t,n):Object(d.isArray)(t)&&(t=a()(t)).forEach((function(r,i){if(Object(d.isString)(r)){var o=e.parseString(r,n);t[i]=Object(d.isArray)(o)&&!o.length?null:o}}));var r=Object(d.isArray)(t);t=(r?t:[t]).filter((function(t){return t})).map((function(t){return e.processDef(t)})),t=r?Object(d.flatten)(t,1):t[0];var i=h.a.Collection.prototype.add.apply(this,[t,n]);return this.__firstAdd=i,i},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=b({},o));a&&(Object(d.each)(o,(function(t,e){return delete o[e]})),Object(d.extend)(o,a))}if(o.$$typeof&&"object"==i()(o.props)){(o=b({},o)).props=b({},o.props);var s=e.get("DomComponents"),u=e.get("Parser").parserHtml;Object(d.each)(o,(function(t,e){Object(d.includes)(["props","type"],e)||delete o[e]}));var c=o.props,l=c.children;delete c.children,delete o.props;var f=u.splitPropsFromAttr(c);o.attributes=f.attrs,l&&(o.components=l),o.type?s.getType(o.type)||(o.tagName=o.type,delete o.type):o.type="textnode",Object(d.extend)(o,f.props)}return o},onAdd:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.domc,i=this.em,o=t.getStyle(),a=i&&i.getConfig("avoidInlineStyle");if(r&&r.Component.ensureInList(t),!Object(d.isEmpty)(o)&&!a&&i&&i.get&&i.getConfig("forceClass")&&!n.temporary){var s=t.cid;i.get("CssComposer").setClassRule(s,o),t.setStyle({}),t.addClass(s)}t.__postAdd({recursive:1}),this.__onAddEnd()},__onAddEnd:Object(d.debounce)((function(){}))})},function(t,e,n){"use strict";n.r(e);var r=n(2);e.default=r.Model.extend({initialize:function(t){this.config=t||{},this.editorModel=this.em=this.config.em||{},this.pfx=this.config.stylePrefix,this.ppfx=this.config.pStylePrefix,this.hoverClass=this.pfx+"hover",this.badgeClass=this.pfx+"badge",this.plhClass=this.pfx+"placeholder",this.freezClass=this.ppfx+"freezed",this.canvas=this.em.get&&this.em.get("Canvas"),this.init(this.config)},onFrameScroll:function(t){},getCanvas:function(){return this.canvas.getElement()},getCanvasBody:function(){return this.canvas.getBody()},getCanvasTools:function(){return this.canvas.getToolsEl()},offset:function(t){var e=t.getBoundingClientRect();return{top:e.top+t.ownerDocument.body.scrollTop,left:e.left+t.ownerDocument.body.scrollLeft}},init:function(t){},callRun:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.id;if(t.trigger("run:".concat(n,":before"),e),!e||!e.abort){var r=e.sender||t,i=this.run(t,r,e);return t.trigger("run:".concat(n),i,e),t.trigger("run",n,i,e),i}t.trigger("abort:".concat(n),e)},callStop:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.id,r=e.sender||t;t.trigger("stop:".concat(n,":before"),e);var i=this.stop(t,r,e);return t.trigger("stop:".concat(n),i,e),t.trigger("stop",n,i,e),i},stopCommand:function(){this.em.get("Commands").stop(this.id)},run:function(t,e){},stop:function(t,e){}})},function(t,e,n){"use strict";var r=n(3),i=n.n(r),o=n(0),a=n(1),s=n(44);function u(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 c(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(o.isString)(e)&&(e=l(e));var r=this.getStyle(n),i=c({},e);this.set("style",i,n);var s=Object(a.shallowDiff)(r,i);return Object(o.keys)(s).forEach((function(e){var n=t.em;t.trigger("change:style:".concat(e)),n&&(n.trigger("styleable:change",t,e),n.trigger("styleable:change:".concat(e),t,e))})),i},addStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"string"==typeof t?t={prop:e}:n=e||{},t=this.extendStyle(t),this.setStyle(t,n)},removeStyle:function(t){var e=this.getStyle();delete e[t],this.setStyle(e)},styleToString:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=[],n=this.getStyle(t);for(var r in n){var i=t.important,a=Object(o.isArray)(i)?i.indexOf(r)>=0:i,s="".concat(n[r]).concat(a?" !important":""),u="__"==r.substr(0,2);s&&!u&&e.push("".concat(r,":").concat(s,";"))}return e.join("")},getSelectors:function(){return this.get("selectors")||this.get("classes")},getSelectorsString:function(){return this.selectorsToString?this.selectorsToString():this.getSelectors().getFullString()}}},function(t,e,n){"use strict";n.r(e);var r=n(3),i=n.n(r),o=n(2),a=n.n(o),s=n(38),u=n(5),c=n.n(u),l=n(6),f=n.n(l),h=n(8),d=n.n(h),p=n(9),g=n.n(p),m=n(4),b=n.n(m),v=n(0),y=n(1);function _(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 w(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.get("id")||"",i=this.get("name")||"";!this.get("property")&&this.set("property",(i||r).replace(/ /g,"-"));var o=this.get("property");!this.get("id")&&this.set("id",o),!i&&this.set("name",Object(y.capitalize)(o).replace(/-/g," ")),n.callInit(this,t,e)}},{key:"init",value:function(){}},{key:"getId",value:function(){return this.get("id")}},{key:"getType",value:function(){return this.get("type")}},{key:"getName",value:function(){return this.get("property")}},{key:"getLabel",value:function(){return this.get("name")}},{key:"getValue",value:function(){var t=this.get("value");return Object(v.isUndefined)(t)?this.getDefaultValue():t}},{key:"clearValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.set({value:void 0,status:""},t),this}},{key:"setValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.parseValue(t),i=!e;!i&&this.set({value:void 0},{avoidStore:i,silent:!0}),this.set(r,w({avoidStore:i},n))}},{key:"setValueFromInput",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.setValue(t,e,w(w({},n),{},{fromInput:1}))}},{key:"parseValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={value:t},r="!important";if(Object(v.isString)(t)&&-1!==t.indexOf(r)&&(n.value=t.replace(r,"").trim(),n.important=1),!this.get("functionName")&&!e.complete)return n;var i=[],o="".concat(n.value),a=o.indexOf("(")+1,s=o.lastIndexOf(")"),u=o.substring(0,a-1);if(u&&(n.functionName=u),i.push(a),s>=0&&i.push(s),n.value=String.prototype.substring.apply(o,i),e.numeric){var c=parseFloat(n.value);n.unit=n.value.replace(c,""),n.value=c}return n}},{key:"splitValues",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",n=[],r="",i=0;return(t||"").split("").forEach((function(t){"("==t?(i++,r+="("):")"==t&&i>0?(i--,r+=")"):t===e&&0==i?(n.push(r),r=""):r+=t})),""!==r&&n.push(r),n.map((function(t){return t.trim()}))}},{key:"getDefaultValue",value:function(){return this.get("defaults")}},{key:"getFullValue",value:function(t){var e=this.get("functionName"),n=this.getDefaultValue(),r=Object(v.isUndefined)(t)?this.get("value"):t,i=!Object(v.isUndefined)(r)&&""!==r;if(r&&n&&r===n)return n;if(e&&i){var o="url"===e?"'".concat(r.replace(/'/g,""),"'"):r;r="".concat(e,"(").concat(o,")")}return i&&this.get("important")&&(r="".concat(r," !important")),r||""}}]),n}(o.Model);function O(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 E(t){for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:{};t.prototype.initialize.apply(e,[n,w(w({},r),{},{skipInit:1})])},x.callInit=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!n.skipInit&&t.init(e,n)},x.getDefaults=function(){return Object(v.result)(this.prototype,"defaults")},x.prototype.defaults={name:"",property:"",type:"",defaults:"",info:"",value:"",icon:"",functionName:"",status:"",visible:!0,fixedValues:["initial","inherit"],full:0,important:0,toRequire:0,requires:null,requiresParent:null};var k=x.extend({defaults:E(E({},x.prototype.defaults),{},{detached:0,properties:[],separator:" "}),initialize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x.callParentInit(x,this,t,e);var r=this.get("properties")||[],i=n(33).default;this.set("properties",new i(r)),this.listenTo(this,"change:value",this.updateValues),x.callInit(this,t,e)},clearValue:function(){return this.get("properties").each((function(t){return t.clearValue()})),x.prototype.clearValue.apply(this,arguments)},updateValues:function(){var t=this.getFullValue().split(this.getSplitSeparator());this.get("properties").each((function(e,n){var r=t.length;t[n]||t[n%r+(1!=r&&r%2?1:0)]}))},getSplitSeparator:function(){return new RegExp("".concat(this.get("separator"),"(?![^\\(]*\\))"))},getDefaultValue:function(t){var e=this.get("defaults");return e&&!t?e:(e="",this.get("properties").each((function(t,n){return e+="".concat(t.getDefaultValue()," ")})),e.trim())},getFullValue:function(){return this.get("detached")?"":this.get("properties").getFullValue()},getPropertyAt:function(t){return this.get("properties").at(t)}}),T=a.a.Model.extend({defaults:{index:"",value:"",values:{},active:!1,preview:!1,properties:[]},initialize:function(){var t=this.get("properties"),e=this.get("value");this.set("properties",t instanceof jt?t:new jt(t));var n=this.get("properties");if(n.forEach(this.onPropAdd,this),this.listenTo(n,"add",this.onPropAdd),!e){var r="",i=this.get("values");for(var o in i)r+=" "+i[o];this.set("value",r.trim())}},onPropAdd:function(t){var e=this.collection;t.parent=e&&e.property},getPropertyAt:function(t){return this.get("properties").at(t)},getPropertyValue:function(t){var e="";return this.get("properties").each((function(n){n.get("property")==t&&(e=n.getFullValue())})),e},getFullValue:function(){var t=[];return this.get("properties").each((function(e){return t.push(e.getFullValue())})),t.join(" ").trim()}});function S(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 C(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k.callParentInit(k,this,t,e);var n=this.get("layers"),r=new A(n);r.property=this,r.properties=this.get("properties"),this.set("layers",r),k.callInit(this,t,e)},getLayers:function(){return this.get("layers")},getCurrentLayer:function(){return this.getLayers().filter((function(t){return t.get("active")}))[0]},getFullValue:function(){return this.get("detached")?"":this.get("layers").getFullValue()},getValueFromStyle:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.getLayers().getLayersFromStyle(t);return new A(e).getFullValue()},clearValue:function(){return this.getLayers().reset(),k.prototype.clearValue.apply(this,arguments)},getValueFromTarget:function(t){var e=this.attributes,n=e.detached,r=e.property,i=e.properties,o=t.getStyle(),a={};return i.forEach((function(t){var e=t.get("property"),n=o[e];n&&(a[e]=n)})),n?Object(v.keys)(a).length?a:"":o[r]},getLayersFromTarget:function(t){}}),R=n(22),N=n.n(R),L=["status","value"],D=["complete"];function I(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 B(t){for(var e=1;e\n
\n ')},templateLabel:function(t){var e=this.pfx,n=this.em,r=t.parent,i=t.attributes,o=i.icon,a=void 0===o?"":o,s=i.info,u=void 0===s?"":s,c=i.id,l=i.name,f=n&&n.t("styleManager.properties.".concat(c))||l;return'\n \n ').concat(f,"\n \n ").concat(r?"":'"),"\n ")},templateInput:function(t){return'\n
\n \n
\n ')},events:i()({change:"inputValueChanged"},"click [".concat(F,"]"),"clear"),initialize:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(v.bindAll)(this,"targetUpdated","__change","__updateStyle"),this.config=e.config||{};var n=this.config.em;this.em=n,this.pfx=this.config.stylePrefix||"",this.ppfx=this.config.pStylePrefix||"",this.target=e.target||{},this.propTarget=e.propTarget||{},this.onChange=e.onChange,this.onInputRender=e.onInputRender||{},this.customValue=e.customValue||{};var r=this.model;this.property=r.get("property"),this.input=null;var i=this.pfx;if(this.inputHolderId="#"+i+"input-holder",this.sector=r.collection&&r.collection.sector,this.__destroyFn=this.destroy?this.destroy.bind(this):function(){},r.view=this,r.get("value")||r.set("value",r.getDefaultValue()),n){this.listenTo(n,"update:component:style:".concat(this.property),this.targetUpdated);var o=r.get("requires")||{};Object.keys(o).forEach((function(e){t.listenTo(n,"component:styleUpdate:".concat(e),t.targetUpdated)}))}this.listenTo(this.propTarget,"update",this.targetUpdated),this.listenTo(r,"destroy remove",this.remove),this.listenTo(r,"change:value",this.modelValueChanged),this.listenTo(r,"targetUpdated",this.targetUpdated),this.listenTo(r,"change:visible",this.updateVisibility),this.listenTo(r,"change:status",this.updateStatus),this.listenTo(r,"change:name change:className change:full",this.render);var a=this.init&&this.init.bind(this);a&&a()},remove:function(){var t=this;a.a.View.prototype.remove.apply(this,arguments),["em","target","input","$input","propTarget","sector"].forEach((function(e){return t[e]={}})),this.__destroyFn(this._getClbOpts())},updateStatus:function(){var t=this.model,e=t.get("status"),n=t.parent,r=this.pfx,i=this.ppfx,o=this.config,a="".concat(i,"four-color"),s="".concat(i,"color-warn"),u=this.$el.children(".".concat(r,"label")),c=this.getClearEl(),l=c?c.style:{};switch(u.removeClass("".concat(a," ").concat(s)),l.display="none",e){case"updated":!n&&u.addClass(a),o.clearProperties&&(l.display="inline");break;case"computed":u.addClass(s)}},clear:function(t){var e=this;t&&t.stopPropagation(),this.model.clearValue(),this.__unset(),setTimeout((function(){return e.targetUpdated()}))},getClearEl:function(){return this.clearEl||(this.clearEl=this.el.querySelector("[".concat(F,"]"))),this.clearEl},getTarget:function(){return this.getTargetModel()},getTargets:function(){return this.propTarget.targets||[this.getTarget()]},getFirstTarget:function(){return this.getTargets()[0]},getTargetModel:function(){return this.propTarget&&this.propTarget.model},getHelperModel:function(){return this.propTarget&&this.propTarget.helper},inputValueChanged:function(t){t&&t.stopPropagation(),this.emit||(this.model.setValueFromInput(this.getInputValue()),this.elementUpdated())},elementUpdated:function(){this.setStatus("updated")},setStatus:function(t){this.model.set("status",t);var e=this.model.parent;e&&"updated"==t&&e.set("status",t)},emitUpdateTarget:Object(v.debounce)((function(){var t=this.config.em;t&&t.trigger("styleManager:update:target",this.getFirstTarget())})),_getTargetData:function(){var t=this.model,e=this.config,n=this.getTargetValue({ignoreDefault:1}),r=t.getDefaultValue(),i=this.getComputedValue(),o="",a="";return n?(o=n,e.highlightChanged&&(a="updated")):i&&e.showComputed&&i!=r?(o=i,e.highlightComputed&&(a="computed")):(o=r,a=""),{value:o,status:a,targetValue:n,defaultValue:r,computedValue:i}},targetUpdated:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.config.fromLayer&&(this.emitUpdateTarget(),this.checkVisibility())){var r=this.config.em,i=this.model,o=i.get("property"),a=this._getTargetData(),s=a.status,u=a.value,c=B({status:s,value:u},N()(a,L));return this.setStatus(s),i.setValue(u,0,B({fromTarget:1},n)),this.__update(u),r&&(r.trigger("styleManager:change",this,o,u,c),r.trigger("styleManager:change:".concat(o),this,u,c),this._emitUpdate(c)),c}},_emitUpdate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.em,n=this.model;if(e){var r=n.get("property"),i=B(B({},this._getEventData()),t),o=i.id;e.trigger("style:update",i),e.trigger("style:update:".concat(r),i),r!==o&&e.trigger("style:update:".concat(o),i)}},_getEventData:function(){var t=this.model;return{propertyView:this,targets:this.getTargets(),value:t.getFullValue(),property:t,id:t.get("id"),name:t.get("property")}},checkVisibility:function(){var t=1;return this.config.hideNotStylable&&(this.isTargetStylable()&&this.isComponentStylable()?this.show():(this.hide(),t=0),this.sector&&this.sector.trigger("updateVisibility")),t},getTargetValue:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.model,r=this.getFirstTarget(),i=this.customValue;if(!r)return t;if((t=r.getStyle()[n.get("property")])||e.ignoreDefault||(t=n.getDefaultValue()),"function"==typeof i&&!e.ignoreCustomValue){var o=i(this,n.collection.indexOf(n),t);o&&(t=o)}return t},getComputedValue:function(){var t=this.propTarget,e=t.computed||{},n=t.computedDefault||{},r=this.config.avoidComputed||[],i=this.model.get("property"),o=r.indexOf(i)<0,a=e[i],s=n[Object(y.camelCase)(i)];return e&&o&&s!==a&&a||""},getInputValue:function(){var t=this.getInputEl();return t?t.value:""},modelValueChanged:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.model,a=o.getFullValue();if(r.fromInput||this.setValue(a),!r.fromTarget){this.getTargets().forEach((function(t){return n.__updateTarget(t,r)}));var s=this.config.em;if(!s)return;var u=o.get("property"),c=i()({},u,a);s.getSelectedAll().forEach((function(t){!r.noEmit&&s.trigger("component:update",t,c,r),s.trigger(U,t,u,r),s.trigger("".concat(U,":").concat(u),t,a,r),t.trigger("change:style",t,c,r),t.trigger("change:style:".concat(u),t,a,r)}))}},__updateTarget:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model.getFullValue(),r=this.onChange;t&&this.isComponentStylable()&&(e.fromTarget||(r&&!e.fromParent?r(t,this,e):this.updateTargetStyle(n,null,B(B({},e),{},{target:t}))),this._emitUpdate())},updateTargetStyle:function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"")||this.model.get("property"),r=e.target||this.getFirstTarget(),i=r.getStyle();t?i[n]=t:delete i[n],e.avoidStore?i.__=1:delete i.__,r.setStyle(i,e);var o=this.getHelperModel();o&&o.setStyle(i,e)},isTargetStylable:function(t){var e=t||this.getFirstTarget(),n=this.model,r=n.get("id"),i=n.get("property"),o=n.get("toRequire"),a=e.get("unstylable"),s=e.get("stylable-require"),u=n.get("requires"),c=n.get("requiresParent"),l=this.sector?this.sector.collection:null,f=this.em?this.em.getSelected():null,h=e.get("stylable");if(Object(v.isArray)(h)&&(h=h.indexOf(i)>=0),Object(v.isArray)(a)&&(h=a.indexOf(i)<0),o&&(h=!t||s&&(s.indexOf(r)>=0||s.indexOf(i)>=0)),l&&u){var d=Object.keys(u);l.each((function(t){t.get("properties").each((function(t){if(Object(v.includes)(d,t.id)){var e=u[t.id];h=h&&Object(v.includes)(e,t.get("value"))}}))}))}if(c){var p=f&&f.parent(),g=p&&p.getEl();if(g){var m=window.getComputedStyle(g);Object(v.each)(c,(function(t,e){h=h&&m[e]&&Object(v.includes)(t,m[e])}))}else h=!1}return h},isComponentStylable:function(){var t=this.em,e=t&&t.getSelected();return!e||this.isTargetStylable(e)},setRawValue:function(t){this.setValue(this.model.parseValue(t))},setValue:function(t){var e=this.model,n=Object(v.isUndefined)(t)?e.getDefaultValue():t;if(this.update)return this.__update(n);var r=this.getInputEl();r&&(r.value=n)},getInputEl:function(){return this.input||(this.input=this.el.querySelector("input")),this.input},updateVisibility:function(){this.el.style.display=this.model.get("visible")?"":"none"},show:function(){this.model.set("visible",1)},hide:function(){this.model.set("visible",0)},cleanValue:function(){this.setValue("")},clearCached:function(){this.clearEl=null,this.input=null,this.$input=null},__unset:function(){var t=this.unset&&this.unset.bind(this);t&&t(this._getClbOpts())},__update:function(t){var e=this.update&&this.update.bind(this);e&&e(B(B({},this._getClbOpts()),{},{value:t}))},__change:function(){for(var t=this.emit&&this.emit.bind(this),e=arguments.length,n=new Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.complete,r=N()(e,D),i=this.em,o=this.model,a=o.get("property"),s=!1!==n;Object(y.isObject)(t)?this.getTargets().forEach((function(e){e.addStyle(t,{avoidStore:!s}),i&&i.trigger(U,e,a,r)})):o.setValueFromInput(t,n,r),s&&this.elementUpdated()},_getClbOpts:function(){var t=this.model,e=this.el,n=this.createdEl,r=this.propTarget,i=t.get("property"),o=r.computed||{},a=r.parentRules||[],s=Object(y.find)(a,(function(t){return!!t.getStyle()[i]}));return{el:e,createdEl:n,props:t.attributes,setProps:function(){return t.set.apply(t,arguments)},change:this.__change,updateStyle:this.__updateStyle,targets:this.getTargets(),target:this.getFirstTarget(),computed:o,parentRules:a,parentRule:s}},render:function(){this.clearCached();var t=this.pfx,e=this.model,n=this.el,r=this.$el,i=e.get("property"),o=e.get("full"),a=e.get("className")||"",s="".concat(t,"property");this.createdEl&&this.__destroyFn(this._getClbOpts()),r.empty().append(this.template(e)),r.find("[data-sm-label]").append(this.templateLabel(e));var u=this.create&&this.create.bind(this);this.createdEl=u&&u(this._getClbOpts()),r.find("[data-sm-fields]").append(this.createdEl||this.templateInput(e)),n.className="".concat(s," ").concat(t).concat(e.get("type")," ").concat(s,"__").concat(i," ").concat(a).trim(),n.className+=o?" ".concat(s,"--full"):"",this.updateStatus();var c=this.onRender&&this.onRender.bind(this);c&&c(),this.setValue(e.get("value"),{fromTarget:1})}});function z(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 q(t){for(var e=1;e\n \n \n ')},inputValueChanged:function(){if(!this.model.get("detached")){for(var t=arguments.length,e=new Array(t),n=0;n'),this.input=this.$input.get(0)),this.props||(this.props=t.get("properties")),!this.$props)){this.props.each((function(e,n){e&&"composite"==e.get("type")&&(this.props.remove(e),console.warn("Nested composite types not yet allowed.")),e.parent=t}),this);var r=new(0,n(28).default)(this.getPropsConfig());this.$props=r.render().$el,this.properties=r.properties,this.$el.find("#".concat(this.pfx,"input-holder")).append(this.$props)}},getPropsConfig:function(t){var e=this,n=this.model,r={config:q(q({},this.config),{},{highlightComputed:0}),collection:this.props,target:this.target,propTarget:this.propTarget,onChange:function(t,e,r){n.set("value",n.getFullValue(),r)},customValue:function(t,n){return e.valueOnIndex(n,t)}};return n.get("detached")&&delete r.onChange,r},valueOnIndex:function(t,e){var n=this.getTargetValue({ignoreDefault:1});return n?n.split(this.model.getSplitSeparator())[t]:e&&e.getTargetValue({ignoreCustomValue:1,ignoreDefault:1})},clearCached:function(){H.prototype.clearCached.apply(this,arguments),this.$input=null,this.props=null,this.$props=null}}),K=n(28);function G(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 $(t){for(var e=1;e\n \n \n
').concat(i,'
\n
\n \t
\n
\n
\n ⨯\n
\n
\n
\n ')},initialize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.model;this.stackModel=t.stackModel,this.config=t.config||{},this.em=this.config.em,this.pfx=this.config.stylePrefix||"",this.ppfx=this.config.pStylePrefix||"",this.sorter=t.sorter||null,this.propsConfig=t.propsConfig||{},this.customPreview=t.onPreview,this.listenTo(e,"destroy remove",this.remove),this.listenTo(e,"change:active",this.updateVisibility),this.listenTo(e.get("properties"),"change",this.updatePreview),e.view=this,e.set({droppable:0,draggable:1}),this.$el.data("model",e)},initSorter:function(t){this.sorter&&this.sorter.startSort(this.el)},removeItem:function(t){t&&t.stopPropagation(),this.remove()},remove:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.model,n=this.props,r=e.collection,i=this.stackModel;a.a.View.prototype.remove.apply(this,arguments),r&&r.contains(e)&&r.remove(e),i&&i.set&&(i.set({stackIndex:null},{silent:!0}),!t.fromTarget&&i.trigger("updateValue")),n&&n.remove()},onPreview:function(t){var e=this.stackModel,n=e&&e.get("detached"),r=t.split(" "),i=[],o={};return this.model.get("properties").each((function(t,e){var a=t.get("property"),s=n?t.getFullValue():r[e]||"";if(s&&"integer"==t.get("type")){var u=parseInt(s,10),c=s.replace(u,"");s=(u=(u=(u=isNaN(u)?0:u)>3?3:u)<-3?-3:u)+c}i.push(s),o[a]=s})),n?o:i.join(" ")},updatePreview:function(){var t=this.stackModel,e=this.customPreview,n=this.getPreviewEl(),r=this.model.getFullValue(),i=e?e(r):this.onPreview(r);if(i&&t&&n){var o=n.style;if(Object(v.isString)(i))o[t.get("property")]=i;else{var a=[];Object(v.each)(i,(function(t,e){return a.push("".concat(e,":").concat(t))})),n.setAttribute("style",a.join(";"))}}},getPropertiesWrapper:function(){return this.propsWrapEl||(this.propsWrapEl=this.el.querySelector("[data-properties]")),this.propsWrapEl},getPreviewEl:function(){return this.previewEl||(this.previewEl=this.el.querySelector("[data-preview]")),this.previewEl},active:function(){var t=this.model,e=t.collection;e.active(e.indexOf(t))},updateVisibility:function(){var t=this.pfx,e=this.getPropertiesWrapper(),n=this.model.get("active");e.style.display=n?"":"none",this.$el[n?"addClass":"removeClass"]("".concat(t,"active"))},render:function(){var t=this.propsConfig,e=this.model,n=this.el,r=this.pfx,i=e.get("preview"),o=new K.default({collection:e.get("properties"),config:$($({},this.config),{},{fromLayer:1}),target:t.target,customValue:t.customValue,propTarget:t.propTarget,onChange:t.onChange}),a=o.render().el;return n.innerHTML=this.template(e),n.className="".concat(r,"layer").concat(i?"":" ".concat(r,"no-preview")),this.props=o,this.getPropertiesWrapper().appendChild(a),this.updateVisibility(),this.updatePreview(),this}}),X=a.a.View.extend({initialize:function(t){this.config=t.config||{},this.stackModel=t.stackModel,this.preview=t.preview,this.pfx=this.config.stylePrefix||"",this.ppfx=this.config.pStylePrefix||"",this.propsConfig=t.propsConfig;var e=this.pfx,n=this.ppfx,r=this.collection;this.className="".concat(e,"layers ").concat(n,"field"),this.listenTo(r,"add",this.addTo),this.listenTo(r,"deselectAll",this.deselectAll),this.listenTo(r,"reset",this.reset),this.items=[];var i=this.config.em||"",o=i?i.get("Utils"):"";this.sorter=o?new o.Sorter({container:this.el,ignoreViewChildren:1,containerSel:".".concat(e,"layers"),itemSel:".".concat(e,"layer"),pfx:this.config.pStylePrefix}):"",r.view=this,this.$el.data("model",r),this.$el.data("collection",r)},addTo:function(t){var e=this.collection.indexOf(t);this.addToCollection(t,null,e)},addToCollection:function(t,e,n){var r=e||null,i=this.stackModel,o=this.config,a=this.sorter,s=this.propsConfig;void 0!==this.preview&&t.set("preview",this.preview);var u=new Y({model:t,config:o,sorter:a,stackModel:i,propsConfig:s}),c=u.render().el;if(this.items.push(u),r)r.appendChild(c);else if(void 0!==n){var l="before";this.$el.children().length==n&&(n--,l="after"),n<0?this.$el.append(c):this.$el.children().eq(n)[l](c)}else this.$el.append(c);return c},deselectAll:function(){this.$el.find("."+this.pfx+"layer").removeClass(this.pfx+"active")},reset:function(t,e){this.clearItems(e),this.render()},render:function(){var t=document.createDocumentFragment();return this.$el.empty(),this.collection.each((function(e){this.addToCollection(e,t)}),this),this.$el.append(t),this.$el.attr("class",this.className),this.sorter&&(this.sorter.plh=null),this},remove:function(){this.clearItems(),a.a.View.prototype.remove.apply(this,arguments)},clearItems:function(t){this.items.forEach((function(e){return e.remove(t)})),this.items=[]}});function Z(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}var Q=new(n(39).a),J=W.extend({templateInput:function(){var t=this.pfx;return this.ppfx,'\n
\n \n
\n
\n ')},init:function(){var t=this.model;this.pfx,t.set("stackIndex",null),this.events["click [data-add-layer]"]="addLayer",this.listenTo(t,"change:stackIndex",this.indexChanged),this.listenTo(t,"updateValue",this.inputValueChanged),this.delegateEvents();var e=this.getPropsConfig();this.layers=new X({collection:this.getLayers(),stackModel:t,preview:t.get("preview"),config:this.config,propsConfig:e});var r=n(28).default;this.propsView=new r({target:this.target,collection:t.get("properties"),stackModel:t,config:this.config,onChange:e.onChange,propTarget:e.propTarget})},targetUpdated:function(){var t,e=this;if(this.model.get("detached"))t=this._getTargetData(),this.setStatus(t.status),this.checkVisibility();else{for(var n=arguments.length,r=new Array(n),i=0;i0&&void 0!==arguments[0]?arguments[0]:{},e=this.model;t.up&&this.elementUpdated(),e.get("detached")?e.get("properties").each((function(t){return t.trigger("change:value")})):e.set("value",this.getLayerValues())},setValue:function(){},getLayerValues:function(){return this.getLayers().getFullValue()},_getClassRule:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.em,n=t.skipAdd,r=void 0===n?1:n,i=e.getSelected(),o=e.get("StyleManager").getModelToStyle(i,{skipAdd:r,useClasses:1});return o!==i&&o},_getParentTarget:function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.em,i=this.model.get("property"),o=n.isValid||function(t){return t.getStyle()[i]},a=r.get("CssComposer").getAll().filter((function(e){return e.selectorsToString()===t.getSelectorsString()})),s=a.reduce((function(t,e){return t[e.getAtRule()]=e,t}),{}),u=Q.sortMediaObject(s).map((function(t){return t.value})),c=u.indexOf(t),l=u.splice(0,c),f=l.length-1;f>-1;f--){var h=l[f];if(o(h)){e=h;break}}return e},refreshLayers:function(){var t,e,n,r,i,o,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=[],u=this.model,c=this.em,l=this.getLayers(),f=u.get("detached"),h=u.get("property"),d=this.getFirstTarget(),p=this.getComputedValue(),g=c.getSelected(),m={fromTarget:1};if(f){e=a.targetValue||{};var b=function(t){var e=u.get("properties").at(0).get("property");return t&&!Object(v.isUndefined)(t.getStyle()[e])};if(!Object(v.keys)(e).length&&p&&g){var y={isValid:function(t){return b(t)}};(r=this._getParentTarget(d,y))?e=r.getStyle():(n=this._getClassRule(),r=!(i=b(n)&&n.getStyle())&&this._getParentTarget(this._getClassRule({skipAdd:0}),y),o=b(r)&&r.getStyle(),e=i||o||{})}t=e,s=l.getLayersFromStyle(e)}else{var _=this.getTargetValue({ignoreDefault:1});!_&&p&&((r=this._getParentTarget(d))?_=r.getStyle()[h]:(o=(r=!(i=(n=this._getClassRule())&&n.getStyle()[h])&&this._getParentTarget(this._getClassRule({skipAdd:0})))&&r.getStyle()[h],_=i||o||p)),t=_=_==u.getDefaultValue()?"":_,s=l.getLayersFromValue(_)}var w=u.getLayersFromTarget(d,{resultValue:t,layersObj:s})||s;l.reset(null,m),l.add(w,m),u.set({stackIndex:null},{silent:!0})},getTargetValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.model,n=e.attributes.detached,r=this.getFirstTarget(),i=W.prototype.getTargetValue.call(this,t);return Object(v.isUndefined)(i)&&!n?i=e.getValueFromStyle(r.getStyle()):n&&(i=e.getValueFromTarget(r)),i},getPropsConfig:function(){var t=this,e=t.model;return{target:t.target,propTarget:t.propTarget,onChange:function(n,r,o){var a=r.model,s=e.get("status");if(e.get("detached")){var u=a.get("property"),c=a.getDefaultValue(),l=t.getLayers(),f=l.getPropertyValues(u,c);r.updateTargetStyle(f,null,o),"background-image"!=u||o.avoidStore||"computed"!=s||e.get("properties").filter((function(t){return"__"==t.get("property").substr(0,2)})).forEach((function(e){var n=e.get("property"),r=l.getPropertyValues(n,e.getDefaultValue());t.getTargets().forEach((function(t){return t.addStyle(i()({},n,r),o)}))}))}else if("updated"==s){var h=e.getFullValue();e.set("value",h,o),!h&&r.updateTargetStyle(h,null,o)}}}},onRender:function(){var t=this.el,e=this.layers,n=this.propsView,r=t.querySelector("[data-layers-wrapper]");n.render(),r.appendChild(e.render().el)}}),tt=a.a.$,et=H.extend({templateInput:function(){var t=this.pfx,e=this.em;return'\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n ')},init:function(){var t=this.em;this.modal=t.get("Modal"),this.am=t.get("AssetManager"),this.events["click #"+this.pfx+"close"]="removeFile",this.events["click #"+this.pfx+"images"]="openAssetManager",this.delegateEvents()},onRender:function(){if(!this.$input){var t=this.model.getDefaultValue();this.$input=tt(''))}this.$preview||(this.$preview=this.$el.find("#"+this.pfx+"preview-file")),this.$previewBox||(this.$previewBox=this.$el.find("#"+this.pfx+"preview-box")),this.setValue(this.componentValue,0)},clearCached:function(){H.prototype.clearCached.apply(this,arguments),this.$preview=null,this.$previewBox=null},setValue:function(t,e){H.prototype.setValue.apply(this,arguments),this.setPreviewView(t&&t!=this.model.getDefaultValue()),this.setPreview(t)},setPreviewView:function(t){var e=this.$previewBox;e&&e[t?"addClass":"removeClass"]("".concat(this.pfx,"show")),e&&e.css({display:t?"block":"none"})},spreadUrl:function(t){this.model.set("value",t),this.setPreviewView(1)},setPreview:function(t){var e=this.$preview;t=t&&t.indexOf("url(")<0?"url(".concat(t,")"):t,e&&e.css("background-image",t)},cleanValue:function(){this.setPreviewView(0),this.model.set({value:""},{silent:!0})},removeFile:function(){this.model.set("value",this.model.getDefaultValue());for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};e=at(at({},e),{},{silent:1}),this.inputInst.setValue(t,e)},remove:function(){var t=this;rt.prototype.remove.apply(this,arguments);var e=this.inputInst;e&&e.remove&&e.remove(),["inputInst","$color"].forEach((function(e){return t[e]={}}))},onRender:function(){if(!this.input){var t=this.ppfx,e=new it.a({target:this.target,model:this.model,ppfx:t}).render();this.el.querySelector(".".concat(t,"fields")).appendChild(e.el),this.$input=e.inputEl,this.$color=e.colorEl,this.input=this.$input.get(0),this.inputInst=e}}}),ut=n(11),ct=n.n(ut);function lt(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 ft(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:[];return this.set("options",t),this},addOption:function(t){if(t){var e=this.getOptions();this.setOptions([].concat(ct()(e),[t]))}return this}});function dt(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 pt(t){for(var e=1;e\n \n
\n
\n
\n \n ')},initialize:function(){for(var t=arguments.length,e=new Array(t),n=0;n").concat(e,"")}));var r=this.el.querySelector("#".concat(t,"input-holder"));r.innerHTML=""),this.input=r.firstChild}}})),bt=H.extend({templateInput:function(){this.pfx;var t=this.ppfx;return'\n
\n
\n ')},onRender:function(){var t=this.pfx,e=this.ppfx,n="".concat(e,"radio-item-label"),r=this.model,i=r.get("property"),o=r.get("list")||r.get("options")||[],a=r.cid,s="".concat(t,"radio ").concat(t,"radio-").concat(i);if(!this.input&&o&&o.length){var u="";o.forEach((function(r){var o=r.className?"".concat(r.className," ").concat(t,"icon ").concat(n):"",c="".concat(i,"-").concat(r.value,"-").concat(a),l=r.name||r.value,f=r.title?'title="'.concat(r.title,'"'):"";u+='\n
\n \n \n
\n ")}));var c=this.el.querySelector(".".concat(e,"field"));c.innerHTML='
').concat(u,"
"),this.input=c.firstChild}},getInputValue:function(){var t=this.getCheckedEl();return t?t.value:""},getCheckedEl:function(){var t=this.getInputEl();return t?t.querySelector("input:checked"):""},setValue:function(t){var e=this.model,n=t||e.get("value")||e.getDefaultValue(),r=this.getInputEl(),i=r?r.querySelector('[value="'.concat(n,'"]')):"";if(i)i.checked=!0;else{var o=this.getCheckedEl();o&&(o.checked=!1)}}}),vt=n(40);function yt(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 _t(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x.callParentInit(x,this,t,e);var n=this.get("unit"),r=this.get("units");this.input=Object(y.hasWin)()&&new vt.a({model:this}),r.length&&!n&&this.set("unit",r[0]),x.callInit(this,t,e)},clearValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.set({value:void 0,unit:void 0},t),this},parseValue:function(t){var e=x.prototype.parseValue.apply(this,arguments),n=this.input.validateInputValue(e.value,{deepCheck:1}),r=n.value,i=n.unit;return e.value=r,e.unit=i,e},getFullValue:function(){var t=this.get("value"),e=this.get("unit");return t=Object(v.isUndefined)(t)?"":t,e=!Object(v.isUndefined)(e)&&t?e:"",t="".concat(t).concat(e),x.prototype.getFullValue.apply(this,[t])}});function xt(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 Ot(t){for(var e=1;e\n \n \n ')},getSliderEl:function(){return this.slider||(this.slider=this.el.querySelector("input[type=range]")),this.slider},inputValueChanged:function(){var t=this.model,e=t.get("step");this.getInputEl().value=this.getSliderEl().value;var n=this.getInputValue()-e;t.set("value",n,{avoidStore:1}).set("value",n+e),this.elementUpdated()},inputValueChangedSoft:function(){this.getInputEl().value=this.getSliderEl().value,this.model.set("value",this.getInputValue(),{avoidStore:1}),this.elementUpdated()},setValue:function(t){var e=this.model.parseValue(t);this.getSliderEl().value=parseFloat(e.value),rt.prototype.setValue.apply(this,arguments)},onRender:function(){rt.prototype.onRender.apply(this,arguments),this.model.get("showInput")||(this.inputInst.el.style.display="none")},clearCached:function(){rt.prototype.clearCached.apply(this,arguments),this.slider=null}});function Ct(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 At(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};this.isPointed=!1;var i=this.editorModel.get("Utils"),o=t.ownerDocument.body;i&&!this.sorter&&(this.sorter=new i.Sorter({container:o,placer:this.canvas.getPlacerEl(),containerSel:"*",itemSel:"*",pfx:this.ppfx,direction:"a",document:e,wmargin:1,nested:1,em:this.editorModel,canvasRelative:1,scale:function(){return n.em.getZoomDecimal()}})),r.onStart&&(this.sorter.onStart=r.onStart),t&&this.sorter.startSort(t,{container:o})},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.moved=0,this.sorter.endMove()),this.cDim&&(this.posIsLastEl=0!==this.cDim.length&&"after"==this.posMethod&&this.posIndex==this.cDim.length,this.posTargetEl=0===this.cDim.length?i(this.outsideElem):!this.posIsLastEl&&this.cDim[this.posIndex]?i(this.cDim[this.posIndex][5]).parent():i(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,i=e||"before",o=n.length,a=0!==o&&"after"==i&&r==o;return 0!==o&&(!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()}}},function(t,e,n){"use strict";var r=n(46),i=n(1);Object(i.hasWin)()&&(window.Promise=window.Promise||r.a),e.a="function"==typeof fetch?fetch.bind():function(t,e){return new r.a((function(n,i){var o=new XMLHttpRequest;for(var a in o.open(e.method||"get",t),o.withCredentials="include"==e.credentials,e.headers||{})o.setRequestHeader(a,e.headers[a]);o.onload=function(t){return n({status:o.status,statusText:o.statusText,text:function(){return r.a.resolve(o.responseText)}})},o.onerror=i,o.upload&&e.onProgress&&(o.upload.onprogress=e.onProgress),e.body?o.send(e.body):o.send()}))}},function(t,e,n){"use strict";var r=n(0),i=n(2),o=n.n(i),a=o.a.Model,s=o.a.View;e.a={types:[],initialize:function(t,e){var n=this;this.model=function(){var t,e,r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(i&&i.type){var a=n.getBaseType();t=(r=n.getType(i.type))?r.model:a.model,e=r?r.view:a.view}else{var s=n.recognizeType(i);t=(r=s.type).model,e=r.view,i=s.attributes}var u=new t(i,o);return u.typeView=e,u};var r=this.init&&this.init.bind(this);r&&r()},recognizeType:function(t){for(var e=this.getTypes(),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r="",i=this.em,o=i&&i.getConfig("avoidInlineStyle"),a=t.styleToString(),s=t.get("classes"),u=n.wrapperIsBody,c=t.get("wrapper");if(this.ids.push("#".concat(t.getId())),s.each((function(t){return e.compCls.push(t.getFullName())})),!o&&a){var l="#".concat(t.getId());r="".concat(l=u&&c?"body":l,"{").concat(a,"}")}return t.components().each((function(t){return r+=e.buildFromModel(t,n)})),r},build:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.json,i=n.em||"",a=n.cssc||i&&i.get("CssComposer");this.em=i,this.compCls=[],this.ids=[],this.model=t;var s=[],u=t?this.buildFromModel(t,n):"",c=Object(o.isUndefined)(n.clearStyles)&&i?i.getConfig("clearStyles"):n.clearStyles;if(a){var l=n.rules||a.getAll(),f={},h=[];l.forEach((function(t){var i=t.getAtRule();if(i){var o=f[i];o?o.push(t):f[i]=[t]}else{var a=e.buildFromRule(t,h,n);r?s.push(a):u+=a}})),this.sortMediaObject(f).forEach((function(t){var i="",o=t.key;t.value.forEach((function(t){var a=e.buildFromRule(t,h,n);t.get("singleAtRule")?u+="".concat(o,"{").concat(a,"}"):i+=a,r&&s.push(a)})),i&&(u+="".concat(o,"{").concat(i,"}"))})),i&&c&&l.remove&&l.remove(h)}return r?s.filter((function(t){return t})):u},buildFromRule:function(t,e){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="",a=this.model,s=t.selectorsToString({skipAdd:1}),u=t.get("selectorsAdd"),c=t.get("singleAtRule");if(t.get("selectors").each((function(t){var e=t.getFullName();(r.compCls.indexOf(e)>=0||r.ids.indexOf(e)>=0||i.keepUnusedStyles)&&(n=1)})),s&&n||u||c||!a){var l=t.getDeclaration({body:1});l&&(i.json?o=t:o+=l)}else e.push(t);return o},getQueryLength:function(t){var e=/(-?\d*\.?\d+)\w{0,}/.exec(t);return e?parseFloat(e[1]):a},sortMediaObject:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[];return Object(o.each)(e,(function(t,e){return n.push({key:e,value:t})})),n.sort((function(e,n){var r=[e.key,n.key].every((function(t){return-1!==t.indexOf("min-width")})),i=r?e.key:n.key,o=r?n.key:e.key;return t.getQueryLength(i)-t.getQueryLength(o)}))},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")})),i=n(r?t:e),o=n(r?e:t);return this.getQueryLength(i)-this.getQueryLength(o)}})},function(t,e,n){"use strict";var r=n(2),i=n.n(r),o=n(0),a=n(1),s=n(25);i.a.$,e.a=s.a.extend({events:{"change input":"handleChange","change select":"handleUnitChange","click [data-arrow-up]":"upArrowClick","click [data-arrow-down]":"downArrowClick","mousedown [data-arrows]":"downIncrement",keydown:"handleKeyDown"},template:function(){var t=this.ppfx;return'\n \n \n
\n
\n
\n
\n ')},inputClass:function(){var t=this.ppfx;return this.opts.contClass||"".concat(t,"field ").concat(t,"field-integer")},initialize:function(){s.a.prototype.initialize.apply(this,arguments),Object(o.bindAll)(this,"moveIncrement","upIncrement"),this.doc=document,this.listenTo(this.model,"change:unit",this.handleModelChange)},setValue:function(t,e){var n=e||{},r=this.validateInputValue(t,{deepCheck:1}),i={value:r.value};(r.unit||r.force)&&(i.unit=r.unit),this.model.set(i,n),n.silent&&this.handleModelChange()},handleChange:function(t){t.stopPropagation(),this.setValue(this.getInputEl().value),this.elementUpdated()},handleUnitChange:function(t){t.stopPropagation();var e=this.getUnitEl().value;this.model.set("unit",e),this.elementUpdated()},handleKeyDown:function(t){"ArrowUp"===t.key&&(t.preventDefault(),this.upArrowClick()),"ArrowDown"===t.key&&(t.preventDefault(),this.downArrowClick())},elementUpdated:function(){this.model.trigger("el:change")},handleModelChange:function(){var t=this.model;this.getInputEl().value=t.get("value");var e=this.getUnitEl();e&&(e.value=t.get("unit")||"")},getUnitEl:function(){if(!this.unitEl){var t=this.model,e=t.get("units")||[];if(e.length){var n=[];e.forEach((function(e){var r=e==t.get("unit")?"selected":"";n.push(""))}));var r=document.createElement("div");r.innerHTML='"),this.unitEl=r.firstChild}}return this.unitEl},upArrowClick:function(){var t=this.model,e=t.get("step"),n=parseFloat(t.get("value"));n=this.normalizeValue(n+e);var r=this.validateInputValue(n);t.set("value",r.value),this.elementUpdated()},downArrowClick:function(){var t=this.model,e=t.get("step"),n=parseFloat(t.get("value")),r=this.normalizeValue(n-e),i=this.validateInputValue(r);t.set("value",i.value),this.elementUpdated()},downIncrement:function(t){t.preventDefault(),this.moved=0;var e=this.model.get("value");e=this.normalizeValue(e),this.current={y:t.pageY,val:e},Object(a.on)(this.doc,"mousemove",this.moveIncrement),Object(a.on)(this.doc,"mouseup",this.upIncrement)},moveIncrement:function(t){this.moved=1;var e=this.model,n=e.get("step"),r=this.current,i=this.normalizeValue(r.val+(r.y-t.pageY)*n);return this.prValue=this.validateInputValue(i).value,e.set("value",this.prValue,{avoidStore:1}),!1},upIncrement:function(){var t=this.model,e=t.get("step");if(Object(a.off)(this.doc,"mouseup",this.upIncrement),Object(a.off)(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()}},normalizeValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.model.get("step"),r=0;if(isNaN(t))return e;if(t=parseFloat(t),Math.floor(t)!==t){var i=n.toString().split(".")[1];r=i?i.length:0}return r?parseFloat(t.toFixed(r)):t},validateInputValue:function(t,e){var n=0,r=e||{},i=this.model,a=Object(o.isUndefined)(t)?"":t,s=i.get("units")||[],u=i.get("unit")||s.length&&s[0]||"",c=i.get("max"),l=i.get("min"),f=!!i.get("limitlessMax"),h=!!i.get("limitlessMin");if(r.deepCheck){var d=i.get("fixedValues")||[];if(a){var p=new RegExp("^"+d.join("|"),"g");if(d.length&&p.test(a))a=a.match(p)[0],u="",n=1;else{var g=a+"";a+="",a=parseFloat(a.replace(",",".")),a=isNaN(a)?"":a;var m=g.replace(a,"");Object(o.indexOf)(s,m)>=0&&(u=m)}}}return f||Object(o.isUndefined)(c)||""===c||(a=a>c?c:a),h||Object(o.isUndefined)(l)||""===l||(a=a2&&void 0!==arguments[2]?arguments[2]:{};t.views.forEach((function(t){if(t){var e=t.childrenView,n=t.scriptContainer;e&&e.stopListening(),n&&n.remove(),t.remove.apply(t)}})),t.components().forEach((function(t){return n.removeChildren(t,e,r)}))},addTo:function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.config.em,r=this.collection.indexOf(t);if(this.addToCollection(t,null,r),n&&!e.temporary){!function t(e){n.trigger("component:add",e),e.components().forEach((function(e){return t(e)}))}(t)}},addToCollection:function(t,e,r){this.compView||(this.compView=n(12).default);for(var i=this.config,a=this.opts,s=this.em,u=e||null,c=i.frameView,l=void 0===c?{}:c,f=l.model&&t.getView(l.model),h=a.componentTypes||s&&s.get("DomComponents").getTypes(),d=t.get("type")||"default",p=this.compView,g=0;g1&&void 0!==arguments[1]?arguments[1]:{}).previousModels,r=void 0===n?[]:n;this.parentEl.innerHTML="",r.forEach((function(t){return e.removeChildren(t,e.collection)})),t.each((function(t){return e.addToCollection(t)}))},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}})},function(t,e,n){"use strict";var r=n(2),i=n.n(r),o=i.a.View.extend({tagName:"style",initialize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.config=t.config||{};var e=this.model;this.listenTo(e,"change",this.render),this.listenTo(e,"destroy remove",this.remove),this.listenTo(e.get("selectors"),"change",this.render)},render:function(){var t=this.model,e=this.el,n=t.get("important");return e.innerHTML=t.toCSS({important:n}),this}}),a=o.extend({_createElement:function(t){return document.createTextNode("")},render:function(){var t=this.model,e=t.get("important");return this.el.textContent=t.getDeclaration({important:e}),this}}),s=i.a.$,u=function(t,e){return"".concat(t).concat(e?"-".concat(parseFloat(e)):"")};e.a=i.a.View.extend({initialize:function(t){var e=t.config||{};this.atRules={},this.config=e,this.em=e.em,this.pfx=e.stylePrefix||"",this.className=this.pfx+"rules";var n=this.collection;this.listenTo(n,"add",this.addTo),this.listenTo(n,"reset",this.render)},addTo:function(t){this.addToCollection(t)},addToCollection:function(t,e){if(this.renderStarted){var n,r,i=e||null,s={model:t,config:this.config};if("keyframes"===t.get("atRuleType")){var c=t.getAtRule(),l=this.atRules[c];if(!l){var f=document.createElement("style");l=document.createTextNode(""),f.appendChild(document.createTextNode("".concat(c,"{"))),f.appendChild(l),f.appendChild(document.createTextNode("}")),this.atRules[c]=l,n=f}r=new a(s),l.appendData(r.render().el.textContent)}else n=(r=new o(s)).render().el;var h=this.className,d=t.get("mediaText"),p=u(h),g=p;if(d&&(g=u(h,this.getMediaWidth(d))),n){var m,b=i||this.el;try{m=b.querySelector("#".concat(g))}catch(t){}m||(m=b.querySelector("#".concat(p))),m.appendChild(n)}return n}},getMediaWidth:function(t){return t&&t.replace("(".concat(this.em.getConfig("mediaCondition"),": "),"").replace(")","")},render:function(){var t=this;this.renderStarted=1,this.atRules={};var e=this.em,n=this.$el,r=this.className,i=this.collection,o=document.createDocumentFragment();n.empty();var a=e.get("DeviceManager").getAll().pluck("priority");return a.every((function(t){return t}))&&a.unshift(0),a.forEach((function(t){return s('
')).appendTo(o)})),i.each((function(e){return t.addToCollection(e,o)})),n.append(o),n.attr("class",r),this}})},function(t,e,n){"use strict";var r=n(3),i=n.n(r),o=n(14),a=n.n(o),s=n(0),u="text/html",c=u,l=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=new DOMParser,i=n.htmlType||c,o=i===u,a=o?t:"
".concat(t,"
"),l=r.parseFromString(a,i);if(o){var f=l.head,h=l.body,d=f.querySelectorAll("script");Object(s.each)(d,(function(t){return h.appendChild(t)}));var p=[];Object(s.each)(f.children,(function(t){return p.push(t)})),Object(s.each)(p,(function(t,e){return h.insertBefore(t,h.children[e])})),e=h}else e=l.firstChild;return e};function f(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 h(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},r={},i={};return Object(s.each)(e,(function(e,o){if(0===o.indexOf(t.modelAttrStart)){var a=o.replace(n,""),u=e.length,c=e&&Object(s.isString)(e),l=c&&e.substr(0,1),f=c&&e.substr(u-1);e="false"!==(e="true"===e||e)&&e;try{e="{"==l&&"}"==f||"["==l&&"]"==f?JSON.parse(e):e}catch(t){}r[a]=e}else i[o]=e})),{props:r,attrs:i}},parseStyle:function(t){for(var e={},n=t.split(";"),r=0,i=n.length;r1&&void 0!==arguments[1]?arguments[1]:{},o=[],s=r.childNodes,u=0,c=s.length;u"!=="".concat(l.outerHTML).slice(-2)||(b.void=!0);var M=b.components;if(!b.type&&M){for(var P=1,R=0,N=0;N2&&void 0!==arguments[2]?arguments[2]:{},a=e.em,u=a&&a.get("Config")||{},c={html:null,css:null},f=h(h({},t),o),d=Object(s.isFunction)(f.parserHtml)?f.parserHtml(n,f):l(n,f),p=d.querySelectorAll("script"),g=p.length;if(!u.allowScripts)for(;g--;)p[g].parentNode.removeChild(p[g]);if(i){for(var m=d.querySelectorAll("style"),b=m.length,v="";b--;)v=m[b].innerHTML+v,m[b].parentNode.removeChild(m[b]);v&&(c.css=i.parse(v))}a&&a.trigger("".concat(r,":root"),{input:n,root:d});var y=this.parseNode(d),_=1!==y.length||e.returnArray?y:y[0];return c.html=_,a&&a.trigger(r,{input:n,output:c}),c}}}},function(t,e,n){"use strict";var r=n(3),i=n.n(r),o=n(2),a=n.n(o),s=n(0),u=n(14),c=n.n(u),l=n(1),f=n(25);function h(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 d(t){for(var e=1;e","
","
",""].join(""),s=function(){var t="";if(i)for(var e=1;e<=6;e++)t+="
";return["
","
","
","
","","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
","
",t,"
","
","
","
","
","","
","
","
","","","
","
","
"].join("")}(),u="spectrum.id";t.fn.spectrum=function(e,n){if("string"==typeof e){var i=this,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=r[t(this).data(u)];if(n){var a=n[e];if(!a)throw new Error("Spectrum: no such method: '"+e+"'");"get"==e?i=n.get():"container"==e?i=n.container:"option"==e?i=n.option.apply(n,o):"destroy"==e?(n.destroy(),t(this).removeData(u)):a.apply(n,o)}})),i}return this.spectrum("destroy").each((function(){var n=S(this,t.extend({},e,t(this).data()));t(this).data(u,n.id)}))},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=M,t.fn.spectrum.defaults=n,t.fn.spectrum.inputTypeColorSupport=function e(){if(void 0===e._cachedResult){var n=t("")[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 f=/^[\s,#]+/,h=/\s+$/,d=0,p=Math,g=p.round,m=p.min,b=p.max,v=p.random,y=function t(e,n){if(n=n||{},(e=e||"")instanceof t)return e;if(!(this instanceof t))return new t(e,n);var r=function(t){var e,n,r,i={r:0,g:0,b:0},o=1,a=!1,s=!1;return"string"==typeof t&&(t=function(t){t=t.replace(f,"").replace(h,"").toLowerCase();var e,n,r=!1;if(O[t])t=O[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};return(e=k.rgb.exec(t))?{r:e[1],g:e[2],b:e[3]}:(e=k.rgba.exec(t))?{r:e[1],g:e[2],b:e[3],a:e[4]}:(e=k.hsl.exec(t))?{h:e[1],s:e[2],l:e[3]}:(e=k.hsla.exec(t))?{h:e[1],s:e[2],l:e[3],a:e[4]}:(e=k.hsv.exec(t))?{h:e[1],s:e[2],v:e[3]}:(e=k.hsva.exec(t))?{h:e[1],s:e[2],v:e[3],a:e[4]}:(e=k.hex8.exec(t))?{a:(n=e[1],J(n)/255),r:J(e[2]),g:J(e[3]),b:J(e[4]),format:r?"name":"hex8"}:(e=k.hex6.exec(t))?{r:J(e[1]),g:J(e[2]),b:J(e[3]),format:r?"name":"hex"}:!!(e=k.hex3.exec(t))&&{r:J(e[1]+""+e[1]),g:J(e[2]+""+e[2]),b:J(e[3]+""+e[3]),format:r?"name":"hex"}}(t)),"object"==c()(t)&&(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")?(e=t.r,n=t.g,r=t.b,i={r:255*Z(e,255),g:255*Z(n,255),b:255*Z(r,255)},a=!0,s="%"===String(t.r).substr(-1)?"prgb":"rgb"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")?(t.s=et(t.s),t.v=et(t.v),i=function(t,e,n){t=6*Z(t,360),e=Z(e,100),n=Z(n,100);var r=p.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),u=r%6;return{r:255*[n,a,o,o,s,n][u],g:255*[s,n,n,a,o,o][u],b:255*[o,o,s,n,n,a][u]}}(t.h,t.s,t.v),a=!0,s="hsv"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")&&(t.s=et(t.s),t.l=et(t.l),i=function(t,e,n){var r,i,o;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=Z(t,360),e=Z(e,100),n=Z(n,100),0===e)r=i=o=n;else{var s=n<.5?n*(1+e):n+e-n*e,u=2*n-s;r=a(u,s,t+1/3),i=a(u,s,t),o=a(u,s,t-1/3)}return{r:255*r,g:255*i,b:255*o}}(t.h,t.s,t.l),a=!0,s="hsl"),t.hasOwnProperty("a")&&(o=t.a)),o=X(o),{ok:a,format:t.format||s,r:m(255,b(i.r,0)),g:m(255,b(i.g,0)),b:m(255,b(i.b,0)),a:o}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=g(100*this._a)/100,this._format=n.format||r.format,this._gradientType=n.gradientType,this._r<1&&(this._r=g(this._r)),this._g<1&&(this._g=g(this._g)),this._b<1&&(this._b=g(this._b)),this._ok=r.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=X(t),this._roundA=g(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=g(360*t.h),n=g(100*t.s),r=g(100*t.v);return 1==this._a?"hsv("+e+", "+n+"%, "+r+"%)":"hsva("+e+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=R(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=R(this._r,this._g,this._b),e=g(360*t.h),n=g(100*t.s),r=g(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:g(this._r),g:g(this._g),b:g(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+g(this._r)+", "+g(this._g)+", "+g(this._b)+")":"rgba("+g(this._r)+", "+g(this._g)+", "+g(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:g(100*Z(this._r,255))+"%",g:g(100*Z(this._g,255))+"%",b:g(100*Z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+g(100*Z(this._r,255))+"%, "+g(100*Z(this._g,255))+"%, "+g(100*Z(this._b,255))+"%)":"rgba("+g(100*Z(this._r,255))+"%, "+g(100*Z(this._g,255))+"%, "+g(100*Z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(E[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(U,arguments)},brighten:function(){return this._applyModification(H,arguments)},darken:function(){return this._applyModification(z,arguments)},desaturate:function(){return this._applyModification(I,arguments)},saturate:function(){return this._applyModification(B,arguments)},greyscale:function(){return this._applyModification(F,arguments)},spin:function(){return this._applyModification(q,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination($,arguments)},complement:function(){return this._applyCombination(V,arguments)},monochromatic:function(){return this._applyCombination(Y,arguments)},splitcomplement:function(){return this._applyCombination(G,arguments)},triad:function(){return this._applyCombination(W,arguments)},tetrad:function(){return this._applyCombination(K,arguments)}},y.fromRatio=function(t,e){if("object"==c()(t)){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]="a"===r?t[r]:et(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,i=y(t).toRgb(),o=y(e).toRgb(),a=n/100,s=2*a-1,u=o.a-i.a,c=1-(r=((r=s*u==-1?s:(s+u)/(1+s*u))+1)/2),l={r:o.r*r+i.r*c,g:o.g*r+i.g*c,b:o.b*r+i.b*c,a:o.a*a+i.a*(1-a)};return y(l)},y.readability=function(t,e){var n=y(t),r=y(e),i=n.toRgb(),o=r.toRgb(),a=n.getBrightness(),s=r.getBrightness(),u=Math.max(i.r,o.r)-Math.min(i.r,o.r)+Math.max(i.g,o.g)-Math.min(i.g,o.g)+Math.max(i.b,o.b)-Math.min(i.b,o.b);return{brightness:Math.abs(a-s),color:u}},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,i=!1,o=0;o125&&a.color>500,u=a.brightness/125*3+a.color/500;(s&&!i||s&&i&&u>r||!s&&!i&&u>r)&&(i=s,r=u,n=y(e[o]))}return n};var _,w,x,O=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"},E=y.hexNames=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[t[n]]=n);return e}(O),k=(w="[\\s|\\(]+("+(_="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+_+")[,|\\s]+("+_+")\\s*\\)?",x="[\\s|\\(]+("+_+")[,|\\s]+("+_+")[,|\\s]+("+_+")[,|\\s]+("+_+")\\s*\\)?",{rgb:new RegExp("rgb"+w),rgba:new RegExp("rgba"+x),hsl:new RegExp("hsl"+w),hsla:new RegExp("hsla"+x),hsv:new RegExp("hsv"+w),hsva:new RegExp("hsva"+x),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,i){for(var a=[],s=0;s')}else a.push(t("
").append(t('').attr("title",i.noColorSelectedText)).html())}return"
"+a.join("")+"
"}function S(u,c){var l,f,h=function(e,r){var i=t.extend({},n,e);return i.callbacks={move:j(i.move,r),change:j(i.change,r),show:j(i.show,r),hide:j(i.hide,r),beforeShow:j(i.beforeShow,r)},i}(c,u),d=h.flat,p=h.showSelectionPalette,g=h.localStorageKey,m=h.theme,b=h.callbacks,v=(l=qt,function(){var t=this,e=arguments;f||(f=setTimeout((function(){f=null,l.apply(t,e)}),10))}),_=!1,w=!1,x=!0,O=0,E=0,k=0,S=0,C=0,R=0,N=0,L=0,D=0,I=0,B=1,F=[],U=[],H={},z=h.selectionPalette.slice(0),q=h.maxSelectionSize,V="sp-dragging",W=null,K=u.ownerDocument,G=(K.body,t(u)),$=!1,Y=t(s,K).addClass(m),X=Y.find(".sp-picker-container"),Z=Y.find(".sp-color"),Q=Y.find(".sp-dragger"),J=Y.find(".sp-hue"),tt=Y.find(".sp-slider"),et=Y.find(".sp-alpha-inner"),nt=Y.find(".sp-alpha"),rt=Y.find(".sp-alpha-handle"),it=Y.find(".sp-input"),ot=Y.find(".sp-palette"),at=Y.find(".sp-initial"),st=Y.find(".sp-cancel"),ut=Y.find(".sp-clear"),ct=Y.find(".sp-choose"),lt=Y.find(".sp-palette-toggle"),ft=G.is("input"),ht=ft&&"color"===G.attr("type")&&P(),dt=ft&&!d,pt=dt?t(a).addClass(m).addClass(h.className).addClass(h.replacerClassName):t([]),gt=dt?pt:G,mt=pt.find(".sp-preview-inner"),bt=h.color||ft&&G.val(),vt=!1,yt=h.preferredFormat,_t=!h.showButtons||h.clickoutFiresChange,wt=!bt,xt=h.allowEmpty&&!ht;function Ot(){if(h.showPaletteOnly&&(h.showPalette=!0),lt.text(h.showPaletteOnly?h.togglePaletteMoreText:h.togglePaletteLessText),h.palette){F=h.palette.slice(0),U=t.isArray(F[0])?F:[F],H={};for(var e=0;e1&&(delete window.localStorage[g],t.each(e,(function(t,e){kt(e)})))}catch(t){}try{z=window.localStorage[g].split(";")}catch(t){}}}function kt(e){if(p){var n=y(e).toRgbString();if(!H[n]&&-1===t.inArray(n,z))for(z.push(n);z.length>q;)z.shift();if(g&&window.localStorage)try{window.localStorage[g]=z.join(";")}catch(t){}}}function Tt(){var e=Bt(),n=t.map(U,(function(t,n){return T(t,e,"sp-palette-row sp-palette-row-"+n,h)}));Et(),z&&n.push(T(function(){var t=[];if(h.showPalette)for(var e=0;el&&l>r?Math.abs(h.left+r-l):0),h.top-=Math.min(h.top,h.top+i>f&&f>i?Math.abs(i+o-0):0),h}(Y,gt))),Ht(),h.showPalette&&Tt(),G.trigger("reflow.spectrum"))}function Vt(){Lt(),$=!0,G.attr("disabled",!0),gt.addClass("sp-disabled")}!function(){if(i&&Y.find("*:not(input)").attr("unselectable","on"),Ot(),dt&&G.after(pt).hide(),xt||ut.hide(),d)G.after(Y).hide();else{var e="parent"===h.appendTo?G.parent():t(h.appendTo);1!==e.length&&(e=t("body")),e.append(Y)}function n(e){return e.data&&e.data.ignore?(It(t(e.target).closest(".sp-thumb-el").data("color")),Ft()):(It(t(e.target).closest(".sp-thumb-el").data("color")),Ft(),zt(!0),h.hideAfterPaletteSelect&&Lt()),!1}Et(),gt.bind("click.spectrum touchstart.spectrum",(function(e){$||Mt(),e.stopPropagation(),t(e.target).is("input")||e.preventDefault()})),(G.is(":disabled")||!0===h.disabled)&&Vt(),Y.click(A),it.change(jt),it.bind("paste",(function(){setTimeout(jt,1)})),it.keydown((function(t){13==t.keyCode&&jt()})),st.text(h.cancelText),st.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),Dt(),Lt()})),ut.attr("title",h.clearText),ut.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),wt=!0,Ft(),d&&zt(!0)})),ct.text(h.chooseText),ct.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),i&&it.is(":focus")&&it.trigger("change"),it.hasClass("sp-validation-error")||(zt(!0),Lt())})),lt.text(h.showPaletteOnly?h.togglePaletteMoreText:h.togglePaletteLessText),lt.bind("click.spectrum",(function(t){t.stopPropagation(),t.preventDefault(),h.showPaletteOnly=!h.showPaletteOnly,h.showPaletteOnly||d||Y.css("left","-="+(X.outerWidth(!0)+5)),Ot()})),M(nt,(function(t,e,n){B=t/C,wt=!1,n.shiftKey&&(B=Math.round(10*B)/10),Ft()}),Ct,At),M(J,(function(t,e){L=parseFloat(e/S),wt=!1,h.showAlpha||(B=1),Ft()}),Ct,At),M(Z,(function(t,e,n){if(n.shiftKey){if(!W){var r=D*O,i=E-I*E,o=Math.abs(t-r)>Math.abs(e-i);W=o?"x":"y"}}else W=null;var a=!W||"y"===W;(!W||"x"===W)&&(D=parseFloat(t/O)),a&&(I=parseFloat((E-e)/E)),wt=!1,h.showAlpha||(B=1),Ft()}),Ct,At),bt?(It(bt),Ut(),yt=h.preferredFormat||y(bt).getFormat(),kt(bt)):Ut(),d&&Pt();var r=i?"mousedown.spectrum":"click.spectrum touchstart.spectrum";ot.delegate(".sp-thumb-el",r,n),at.delegate(".sp-thumb-el:nth-child(1)",r,{ignore:!0},n)}();var Wt={show:Pt,hide:Lt,toggle:Mt,reflow:qt,option:function(n,r){return n===e?t.extend({},h):r===e?h[n]:(h[n]=r,"preferredFormat"===n&&(yt=h.preferredFormat),void Ot())},enable:function(){$=!1,G.attr("disabled",!1),gt.removeClass("sp-disabled")},disable:Vt,offset:function(t){h.offset=t,qt()},set:function(t){It(t),zt()},get:Bt,destroy:function(){G.show(),gt.unbind("click.spectrum touchstart.spectrum"),Y.remove(),pt.remove(),r[Wt.id]=null},container:Y};return Wt.id=r.push(Wt)-1,Wt}function C(){}function A(t){t.stopPropagation()}function j(t,e){var n=Array.prototype.slice,r=n.call(arguments,2);return function(){return t.apply(e,r.concat(n.call(arguments)))}}function M(e,n,r,o){n=n||function(){},r=r||function(){},o=o||function(){};var a=document,s=!1,u={},c=0,l=0,f="ontouchstart"in window,h={};function d(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function p(t){if(s){if(i&&a.documentMode<9&&!t.button)return g();var r=t&&t.touches&&t.touches[0],o=r&&r.pageX||t.pageX,h=r&&r.pageY||t.pageY,p=Math.max(0,Math.min(o-u.left,l)),m=Math.max(0,Math.min(h-u.top,c));f&&d(t),n.apply(e,[p,m,t])}}function g(){s&&(t(a).unbind(h),t(a.body).removeClass("sp-dragging"),setTimeout((function(){o.apply(e,arguments)}),0)),s=!1}h.selectstart=d,h.dragstart=d,h["touchmove mousemove"]=p,h["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(),l=t(e).width(),u=t(e).offset(),t(a).bind(h),t(a.body).addClass("sp-dragging"),p(n),d(n))}))}function P(){return t.fn.spectrum.inputTypeColorSupport()}function R(t,e,n){t=Z(t,255),e=Z(e,255),n=Z(n,255);var r,i,o=b(t,e,n),a=m(t,e,n),s=(o+a)/2;if(o==a)r=i=0;else{var u=o-a;switch(i=s>.5?u/(2-o-a):u/(o+a),o){case t:r=(e-n)/u+(e>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(y(r));return o}function Y(t,e){e=e||6;for(var n=y(t).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(y({h:r,s:i,v:o})),o=(o+s)%1;return a}function X(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Z(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=m(e,b(0,parseFloat(t))),n&&(t=parseInt(t*e,10)/100),p.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Q(t){return m(1,b(0,t))}function J(t){return parseInt(t,16)}function tt(t){return 1==t.length?"0"+t:""+t}function et(t){return t<=1&&(t=100*t+"%"),t}}(p);var g=function(t){var e="name"===t.getFormat()&&t.toName(),n=1==t.getAlpha()?t.toHexString():t.toRgbString();return e||n.replace(/ /g,"")};e.a=f.a.extend({template:function(){var t=this.ppfx;return'\n
\n
\n
\n
\n
\n
\n ')},inputClass:function(){var t=this.ppfx;return"".concat(t,"field ").concat(t,"field-color")},holderClass:function(){return"".concat(this.ppfx,"input-holder")},remove:function(){f.a.prototype.remove.apply(this,arguments),this.colorEl.spectrum("destroy")},__onInputChange:function(t){var e=t,n=this.getColorEl();if(n){n.spectrum("set",e);var r=n.spectrum("get"),i=e&&g(r);i&&(e=i)}this.model.set({value:e},{fromInput:1})},setValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model.get("defaults"),r=Object(s.isUndefined)(t)?Object(s.isUndefined)(n)?"":n:t,i=this.getInputEl(),o=this.getColorEl(),a="none"!=r?r:"";i.value=r,o.get(0).style.backgroundColor=a,(e.fromTarget||e.fromInput&&!e.avoidStore)&&(o.spectrum("set",a),this.noneColor="none"==r)},getColorEl:function(){if(!this.colorEl){var t,e=this.em,n=this,r=this.ppfx,i=this.model,o=p('
')),a=o.get(0).style,s=e&&e.config?e.config.el:"",u=e&&e.getConfig&&e.getConfig("colorPicker")||{},c=0;this.$el.find("[data-colorp-c]").append(o),o.spectrum(d(d(d({color:i.getValue()||!1,containerClassName:"".concat(r,"one-bg ").concat(r,"two-color"),appendTo:s||"body",maxSelectionSize:8,showPalette:!0,showAlpha:!0,chooseText:"Ok",cancelText:"⨯",palette:[]},u),i.get("colorPicker")||{}),{},{move:function(t){var e=g(t);a.backgroundColor=e,i.setValueFromInput(e,0)},change:function(t){c=1;var e=g(t);a.backgroundColor=e,i.setValueFromInput(0,0),i.setValueFromInput(e),n.noneColor=0},show:function(e){c=0,t=g(e)},hide:function(e){!c&&t&&(n.noneColor&&(t=""),a.backgroundColor=t,o.spectrum("set",t),i.setValueFromInput(t,0))}})),e&&e.on&&this.listenTo(e,"component:selected",(function(){c=1,o.spectrum("hide")})),this.colorEl=o}return this.colorEl},render:function(){return f.a.prototype.render.call(this),this.getColorEl(),this}})},function(t,e,n){"use strict";(function(t){var r=n(14),i=n.n(r),o=n(77),a=n(78),s=setTimeout;function u(t){return Boolean(t&&void 0!==t.length)}function c(){}function l(t){if(!(this instanceof l))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=[],m(t,this)}function f(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,l._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 d(e.promise,t)}h(e.promise,r)}else(1===t._state?h:d)(e.promise,t._value)}))):t._deferreds.push(e)}function h(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===i()(e)||"function"==typeof e)){var n=e.then;if(e instanceof l)return t._state=3,t._value=e,void p(t);if("function"==typeof n)return void m((r=n,o=e,function(){r.apply(o,arguments)}),t)}t._state=1,t._value=e,p(t)}catch(e){d(t,e)}var r,o}function d(t,e){t._state=2,t._value=e,p(t)}function p(t){2===t._state&&0===t._deferreds.length&&l._immediateFn((function(){t._handled||l._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e1&&void 0!==arguments[1]?arguments[1]:{}).config.em,n=this.attributes,r=n.styles,i=n.component,o=e.get("DomComponents"),a=o.getConfig(),c=e.get("CssComposer").getAll(),l={};this.em=e;var f={em:e,config:a,frame:this,idMap:l};if(!Object(u.isComponent)(i)){var h=Object(u.isObject)(i)?i:{components:i};!h.type&&(h.type="wrapper");var d=o.getType("wrapper").model;this.set("component",new d(h,f))}r?Object(u.isObject)(r)||(Object.keys(l).length&&Array.isArray(r)&&r.forEach((function(t){var e=t.selectors;if(e&&1==e.length){var n=e[0],r=n.name&&2===n.type&&n;if(r&&l[r.name])r.name=l[r.name];else if(Object(s.isString)(n)&&"#"===n[0]){var i=n.substring(1);i&&l[i]&&(e[0]="#".concat(l[i]))}}})),c.add(r),this.set("styles",c)):this.set("styles",c),!t.width&&this.set(w,1),!t.height&&this.set(x,1)}},{key:"onRemove",value:function(){this.getComponent().remove({root:1})}},{key:"changesUp",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.temporary||t.noCount||t.avoidStore||this.set("changesCount",this.get("changesCount")+1)}},{key:"getComponent",value:function(){return this.get("component")}},{key:"getStyles",value:function(){return this.get("styles")}},{key:"disable",value:function(){this.trigger("disable")}},{key:"remove",value:function(){this.view=0;var t=this.collection;return t&&t.remove(this)}},{key:"getHead",value:function(){var t=this.get("head")||[];return i()(t)}},{key:"setHead",value:function(t){return this.set("head",i()(t))}},{key:"addHeadItem",value:function(t){var e=this.getHead();e.push(t),this.setHead(e)}},{key:"getHeadByAttr",value:function(t,e,n){return this.getHead().filter((function(r){return r.attributes&&r.attributes[t]==e&&(!n||n===r.tag)}))[0]}},{key:"removeHeadByAttr",value:function(t,e,n){var r=this.getHead(),i=this.getHeadByAttr(t,e,n),o=r.indexOf(i);o>=0&&(r.splice(o,1),this.setHead(r))}},{key:"addLink",value:function(t){var e="link";!this.getHeadByAttr("href",t,e)&&this.addHeadItem({tag:e,attributes:{href:t,rel:"stylesheet"}})}},{key:"removeLink",value:function(t){this.removeHeadByAttr("href",t,"link")}},{key:"addScript",value:function(t){var e="script";!this.getHeadByAttr("src",t,e)&&this.addHeadItem({tag:e,attributes:{src:t}})}},{key:"removeScript",value:function(t){this.removeHeadByAttr("src",t,"script")}},{key:"getPage",value:function(){var t=this.collection;return t&&t.page}},{key:"_emitUpdated",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.em.trigger("frame:updated",function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=c.Model.prototype.toJSON.call(this,t),n=this.em,r=n&&n.get("StorageManager"),i=r&&r.getConfig(),o=Object(s.result)(this,"defaults");if(i&&!t.fromUndo){var a={component:this.getComponent()};i.storeHtml&&(e.html=n.getHtml(a)),i.storeCss&&(e.css=n.getCss(a))}return t.fromUndo&&delete e.component,delete e.styles,delete e.changesCount,e[w]&&delete e.width,e[x]&&delete e.height,Object(s.forEach)(e,(function(t,n){0===n.indexOf("_")&&delete e[n]})),Object(s.forEach)(o,(function(t,n){e[n]===t&&delete e[n]})),Object(s.forEach)(["attributes","head"],(function(t){Object(s.isEmpty)(e[t])&&delete e[t]})),e}}]),n}(c.Model);function E(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 k(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};Object(s.bindAll)(this,"itemLoaded"),this.config=e,this.on("reset",this.onReset),this.on("remove",this.onRemove)}},{key:"onReset",value:function(t){var e=this;((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).previousModels||[]).map((function(t){return e.onRemove(t)}))}},{key:"onRemove",value:function(t){t&&t.onRemove()}},{key:"itemLoaded",value:function(){this.loadedItems++,this.loadedItems>=this.itemsToLoad&&(this.trigger("loaded:all"),this.listenToLoadItems(0))}},{key:"listenToLoad",value:function(){this.loadedItems=0,this.itemsToLoad=this.length,this.listenToLoadItems(1)}},{key:"listenToLoadItems",value:function(t){var e=this;this.forEach((function(n){return n[t?"on":"off"]("loaded",e.itemLoaded)}))}},{key:"add",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.config;return c.Collection.prototype.add.call(this,t,k(k({},e),{},{config:n}))}}]),n}(c.Collection);T.prototype.model=O;var S=function(t){g()(n,t);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=y()(t);if(e){var i=y()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b()(this,n)}}(n);function n(){return f()(this,n),e.apply(this,arguments)}return d()(n,[{key:"defaults",value:function(){return{frames:[],_undo:!0}}},{key:"initialize",value:function(t){var e=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).config,r=void 0===n?{}:n,i=r.em,o={};this.em=i,t.frames||(o.component=t.component,o.styles=t.styles,["component","styles"].map((function(t){return e.unset(t)})));var a=t.frames||[o],s=new T(a,r);s.page=this,this.set("frames",s);var u=i&&i.get("UndoManager");u&&u.add(s)}},{key:"onRemove",value:function(){this.get("frames").reset()}},{key:"getFrames",value:function(){return this.get("frames")}},{key:"getId",value:function(){return this.id}},{key:"getName",value:function(){return this.get("name")}},{key:"setName",value:function(t){return this.get({name:t})}},{key:"getAllFrames",value:function(){return this.getFrames().models||[]}},{key:"getMainFrame",value:function(){return this.getFrames().at(0)}},{key:"getMainComponent",value:function(){var t=this.getMainFrame();return t&&t.getComponent()}},{key:"toJSON",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=c.Model.prototype.toJSON.call(this,t),n=Object(s.result)(this,"defaults");return Object(s.forEach)(e,(function(t,n){0===n.indexOf("_")&&delete e[n]})),Object(s.forEach)(n,(function(t,n){e[n]===t&&delete e[n]})),e}}]),n}(c.Model);function C(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 A(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};this.config=e,this.on("reset",this.onReset),this.on("remove",this.onRemove)}},{key:"onReset",value:function(t){var e=this;((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).previousModels||[]).map((function(t){return e.onRemove(t)}))}},{key:"onRemove",value:function(t){t&&t.onRemove()}},{key:"add",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.config;return c.Collection.prototype.add.call(this,t,A(A({},e),{},{config:n}))}}]),n}(c.Collection);function M(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}j.prototype.model=S;var P="page",R="".concat(P,":"),N="".concat(R,"select"),L="".concat(N,":before"),D="".concat(R,"update"),I="".concat(R,"add"),B="".concat(I,":before"),F="".concat(R,"remove"),U="".concat(F,":before"),H="change:selected",z="main";e.default=function(){return{name:"PageManager",storageKey:"pages",Page:S,Pages:j,events:{all:P,select:N,selectBefore:L,update:D,add:I,addBefore:B,remove:F,removeBefore:U},init:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(s.bindAll)(this,"_onPageChange");var n=e.em,r=function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{},r=this.em;t.id=t.id||this._createId();var i=function(){var r=e.pages.add(t,n);return n.select&&e.select(r),r};return!n.silent&&r.trigger(B,t,i,n),!n.abort&&i()},remove:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.em,i=Object(s.isString)(t)?this.get(t):t,o=function(){return i&&e.pages.remove(i,n),i};return!n.silent&&r.trigger(U,i,o,n),!n.abort&&o()},get:function(t){return this.pages.filter((function(e){return e.get("id")===t}))[0]},getMain:function(){var t=this.pages;return t.filter((function(t){return t.get("type")===z}))[0]||t.at(0)},getAll:function(){return i()(this.pages.models)},getAllWrappers:function(){var t=this.getAll();return Object(s.unique)(Object(s.flatten)(t.map((function(t){return t.getAllFrames().map((function(t){return t.getComponent()}))}))))},getAllMap:function(){return this.getAll().reduce((function(t,e){return t[e.get("id")]=e,t}),{})},select:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(s.isString)(t)?this.get(t):t;return n&&(this.em.trigger(L,n,e),this.model.set("selected",n,e)),this},getSelected:function(){return this.model.get("selected")},destroy:function(){var t=this;this.pages.off().reset(),this.model.stopListening(),this.model.clear({silent:!0}),["selected","config","em","pages","model"].map((function(e){return t[e]=0}))},store:function(t){if(!this.em.get("hasPages"))return{};var e={},n=this.config;return e[this.storageKey]=JSON.stringify(this.getAll()),!t&&n.stm&&n.stm.store(e),e},load:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.storageKey,n=t[e]||[];if("string"==typeof n)try{n=JSON.parse(t[e])}catch(t){}return n&&n.length&&this.pages.reset(n),n},_createId:function(){var t,e=this.getAll().length+16,n=this.getAllMap();do{t=Object(u.createId)(e)}while(n[t]);return t}}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n.n(r),o=i.a.Model.extend({defaults:{id:"",label:"",tagName:"span",className:"",command:"",context:"",buttons:[],attributes:{},options:{},active:!1,dragDrop:!1,togglable:!0,runDefaultCommand:!0,stopDefaultCommand:!1,disable:!1},initialize:function(t){if(this.get("buttons").length){var e=n(48).default;this.set("buttons",new e(this.get("buttons")))}}});e.default=i.a.Collection.extend({model:o,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))}))},deactivateAll:function(t,e){var n=t||"";this.forEach((function(t){t.get("context")==n&&t!==e&&t.set("active",!1,{fromCollection:1})}))},disableAllButtons:function(t){var e=t||"";this.forEach((function(t,n){t.get("context")==e&&t.set("disable",!0)}))},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))}))}})},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n*\/]/.test(n)?x(null,"select-op"):"."==n&&t.match(/^-?[_a-z][_a-z0-9-]*/i)?x("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?x(null,n):t.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(t.current())&&(e.tokenize=k),x("variable callee","variable")):/[\w\\\-]/.test(n)?(t.eatWhile(/[\w\\\-]/),x("property","word")):x(null,null):/[\d.]/.test(t.peek())?(t.eatWhile(/[\w.%]/),x("number","unit")):t.match(/^-[\w\\\-]*/)?(t.eatWhile(/[\w\\\-]/),t.match(/^\s*:/,!1)?x("variable-2","variable-definition"):x("variable-2","variable")):t.match(/^\w+-/)?x("meta","meta"):void 0}function E(t){return function(e,n){for(var r,i=!1;null!=(r=e.next());){if(r==t&&!i){")"==t&&e.backUp(1);break}i=!i&&"\\"==r}return(r==t||!i&&")"!=t)&&(n.tokenize=null),x("string","string")}}function k(t,e){return t.next(),t.match(/^\s*[\"\')]/,!1)?e.tokenize=null:e.tokenize=E(")"),x(null,"(")}function T(t,e,n){this.type=t,this.indent=e,this.prev=n}function S(t,e,n,r){return t.context=new T(n,e.indentation()+(!1===r?0:a),t.context),n}function C(t){return t.context.prev&&(t.context=t.context.prev),t.context.type}function A(t,e,n){return P[n.context.type](t,e,n)}function j(t,e,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return A(t,e,n)}function M(t){var e=t.current().toLowerCase();o=b.hasOwnProperty(e)?"atom":m.hasOwnProperty(e)?"keyword":"variable"}var P={top:function(t,e,n){if("{"==t)return S(n,e,"block");if("}"==t&&n.context.prev)return C(n);if(_&&/@component/i.test(t))return S(n,e,"atComponentBlock");if(/^@(-moz-)?document$/i.test(t))return S(n,e,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(t))return S(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 S(n,e,"at");if("hash"==t)o="builtin";else if("word"==t)o="tag";else{if("variable-definition"==t)return"maybeprop";if("interpolation"==t)return S(n,e,"interpolation");if(":"==t)return"pseudo";if(v&&"("==t)return S(n,e,"parens")}return n.context.type},block:function(t,e,n){if("word"==t){var r=e.current().toLowerCase();return h.hasOwnProperty(r)?(o="property","maybeprop"):d.hasOwnProperty(r)?(o=w?"string-2":"property","maybeprop"):v?(o=e.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(o+=" error","maybeprop")}return"meta"==t?"block":v||"hash"!=t&&"qualifier"!=t?P.top(t,e,n):(o="error","block")},maybeprop:function(t,e,n){return":"==t?S(n,e,"prop"):A(t,e,n)},prop:function(t,e,n){if(";"==t)return C(n);if("{"==t&&v)return S(n,e,"propBlock");if("}"==t||"{"==t)return j(t,e,n);if("("==t)return S(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)M(e);else if("interpolation"==t)return S(n,e,"interpolation")}else o+=" error";return"prop"},propBlock:function(t,e,n){return"}"==t?C(n):"word"==t?(o="property","maybeprop"):n.context.type},parens:function(t,e,n){return"{"==t||"}"==t?j(t,e,n):")"==t?C(n):"("==t?S(n,e,"parens"):"interpolation"==t?S(n,e,"interpolation"):("word"==t&&M(e),"parens")},pseudo:function(t,e,n){return"meta"==t?"pseudo":"word"==t?(o="variable-3",n.context.type):A(t,e,n)},documentTypes:function(t,e,n){return"word"==t&&u.hasOwnProperty(e.current())?(o="tag",n.context.type):P.atBlock(t,e,n)},atBlock:function(t,e,n){if("("==t)return S(n,e,"atBlock_parens");if("}"==t||";"==t)return j(t,e,n);if("{"==t)return C(n)&&S(n,e,v?"block":"top");if("interpolation"==t)return S(n,e,"interpolation");if("word"==t){var r=e.current().toLowerCase();o="only"==r||"not"==r||"and"==r||"or"==r?"keyword":c.hasOwnProperty(r)?"attribute":l.hasOwnProperty(r)?"property":f.hasOwnProperty(r)?"keyword":h.hasOwnProperty(r)?"property":d.hasOwnProperty(r)?w?"string-2":"property":b.hasOwnProperty(r)?"atom":m.hasOwnProperty(r)?"keyword":"error"}return n.context.type},atComponentBlock:function(t,e,n){return"}"==t?j(t,e,n):"{"==t?C(n)&&S(n,e,v?"block":"top",!1):("word"==t&&(o="error"),n.context.type)},atBlock_parens:function(t,e,n){return")"==t?C(n):"{"==t||"}"==t?j(t,e,n,2):P.atBlock(t,e,n)},restricted_atBlock_before:function(t,e,n){return"{"==t?S(n,e,"restricted_atBlock"):"word"==t&&"@counter-style"==n.stateArg?(o="variable","restricted_atBlock_before"):A(t,e,n)},restricted_atBlock:function(t,e,n){return"}"==t?(n.stateArg=null,C(n)):"word"==t?(o="@font-face"==n.stateArg&&!p.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?(o="variable","keyframes"):"{"==t?S(n,e,"top"):A(t,e,n)},at:function(t,e,n){return";"==t?C(n):"{"==t||"}"==t?j(t,e,n):("word"==t?o="tag":"hash"==t&&(o="builtin"),"at")},interpolation:function(t,e,n){return"}"==t?C(n):"{"==t||";"==t?j(t,e,n):("word"==t?o="variable":"variable"!=t&&"("!=t&&")"!=t&&(o="error"),"interpolation")}};return{startState:function(t){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new T(r?"block":"top",t||0,null)}},token:function(t,e){if(!e.tokenize&&t.eatSpace())return null;var n=(e.tokenize||O)(t,e);return n&&"object"==typeof n&&(i=n[1],n=n[0]),o=n,"comment"!=i&&(e.state=P[e.state](i,t,e)),o},indent:function(t,e){var n=t.context,r=e&&e.charAt(0),i=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)||(i=Math.max(0,n.indent-a)):i=(n=n.prev).indent),i},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:y,fold:"brace"}}));var n=["domain","regexp","url","url-prefix"],r=e(n),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],o=e(i),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),u=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],c=e(u),l=["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"],f=e(l),h=["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"],d=e(h),p=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"],b=e(m),v=["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"],y=e(v),_=n.concat(i).concat(a).concat(u).concat(l).concat(h).concat(m).concat(v);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:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:f,nonStandardPropertyKeywords:d,fontProperties:p,counterDescriptors:g,colorKeywords:b,valueKeywords:y,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css"}),t.defineMIME("text/x-scss",{mediaTypes:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:f,nonStandardPropertyKeywords:d,colorKeywords:b,valueKeywords:y,fontProperties:p,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:o,mediaFeatures:s,mediaValueKeywords:c,propertyKeywords:f,nonStandardPropertyKeywords:d,colorKeywords:b,valueKeywords:y,fontProperties:p,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:o,mediaFeatures:s,propertyKeywords:f,nonStandardPropertyKeywords:d,fontProperties:p,counterDescriptors:g,colorKeywords:b,valueKeywords:y,supportsAtComponent:!0,tokenHooks:{"/":function(t,e){return!!t.eat("*")&&(e.tokenize=w,w(t,e))}},name:"css",helperType:"gss"})}(n(27))},function(t,e,n){"use strict";n.r(e),e.default={run:function(t){t.DomComponents.clear(),t.CssComposer.clear()}}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(1),o=n(24);e.default={run:function(t){Object(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){" "===Object(i.getKeyChar)(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.off},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)}}},function(t,e,n){"use strict";n.r(e);var r=n(11),i=n.n(r),o=n(0);e.default={run:function(t,e){var n=this,r=[],a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).component||t.getSelectedAll();return a=Object(o.isArray)(a)?i()(a):[a],t.select(null),a.forEach((function(t){if(!t||!t.get("removable"))return n.em.logWarning("The element is not removable",{component:t});t.remove(),t.collection&&r.push(t)})),r.length&&t.select(r),a}}},function(t,e,n){"use strict";n.r(e);var r=n(3),i=n.n(r),o=n(0),a=n(24);function s(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 u(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{};Object(o.bindAll)(this,"setPosition","onStart","onDrag","onEnd","getPosition","getGuidesStatic","renderGuide","getGuidesTarget");var i=r.target,s=r.event,l=r.mode,f=r.dragger,h=void 0===f?{}:f,d=u({doc:i.getEl().ownerDocument,onStart:this.onStart,onEnd:this.onEnd,onDrag:this.onDrag,getPosition:this.getPosition,setPosition:this.setPosition,guidesStatic:function(){return n.guidesStatic},guidesTarget:function(){return n.guidesTarget}},h);this.setupGuides(),this.opts=r,this.editor=t,this.em=t.getModel(),this.target=i,this.isTran="translate"==l,this.guidesContainer=this.getGuidesContainer(),this.guidesTarget=this.getGuidesTarget(),this.guidesStatic=this.getGuidesStatic();var p=this.dragger;return p?p.setOptions(d):(p=new a.a(d),this.dragger=p),s&&p.start(s),this.toggleDrag(1),this.em.trigger("".concat(c,":start"),this.getEventOpts()),p},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.editor,r=this.em,i=this.opts,a=n.getConfig("stylePrefix"),s=document.createElement("div"),u=document.createElement("div"),c='
\n
\n
');(e=document.createElement("div")).className="".concat(a,"guides"),s.className="".concat(a,"guide-info ").concat(a,"guide-info__x"),u.className="".concat(a,"guide-info ").concat(a,"guide-info__y"),s.innerHTML=c,u.innerHTML=c,e.appendChild(s),e.appendChild(u),n.Canvas.getGlobalToolsEl().appendChild(e),this.guidesEl=e,this.elGuideInfoX=s,this.elGuideInfoY=u,this.elGuideInfoContentX=s.querySelector(".".concat(a,"guide-info__content")),this.elGuideInfoContentY=u.querySelector(".".concat(a,"guide-info__content")),r.on("canvas:update frame:scroll",Object(o.debounce)((function(){t.updateGuides(),i.debug&&t.guides.forEach((function(e){return t.renderGuide(e)}))}),200))}return e},getGuidesStatic:function(){var t=this,e=[],n=this.target.getEl(),r=n.parentNode,i=void 0===r?{}:r;return Object(o.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,r=this;(t||this.guides).forEach((function(t){var i=t.origin,a=e===i?n:r.getElementPos(i);e=i,n=a,Object(o.each)(r.getGuidePosUpdate(t,a),(function(e,n){return t[n]=e})),t.originRect=a}))},getGuidePosUpdate:function(t,e){var n={},r=e.top,i=e.height,o=e.left,a=e.width;switch(t.type){case"t":n.y=r;break;case"b":n.y=r+i;break;case"l":n.x=o;break;case"r":n.x=o+a;break;case"x":n.x=o+a/2;break;case"y":n.y=r+i/2}return n},renderGuide:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.guide||document.createElement("div"),n="px",r=t.active?2:1,i=e.children[0];return e.style="position: absolute; background-color: ".concat(t.active?"green":"red",";"),e.children.length||((i=document.createElement("div")).style="position: absolute; color: red; padding: 5px; top: 0; left: 0;",e.appendChild(i)),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),i=r.top,o=r.height,a=r.left,s=r.width,c=[{type:"t",y:i},{type:"b",y:i+o},{type:"l",x:a},{type:"r",x:a+s},{type:"x",x:a+s/2},{type:"y",y:i+o/2}].map((function(i){return u(u({},i),{},{origin:t,originRect:r,guide:n.debug&&e.renderGuide(i)})}));return c.forEach((function(t){return e.guides.push(t)})),c},getTranslate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",n=0;return(t||"").split(" ").forEach((function(t){var r=t.trim(),i="translate".concat(e.toUpperCase(),"(");0===r.indexOf(i)&&(n=parseFloat(r.replace(i,"")))})),n},setTranslate:function(t,e,n){var r="translate".concat(e.toUpperCase(),"("),i="".concat(r).concat(n,")"),o=(t||"").split(" ").map((function(t){return 0===t.trim().indexOf(r)&&(t=i),t})).join(" ");return o.indexOf(r)<0&&(o+=" ".concat(i)),o},getPosition:function(){var t=this.target,e=this.isTran,n=t.getStyle(),r=n.left,i=n.top,o=n.transform,a=0,s=0;return e?(a=this.getTranslate(o),s=this.getTranslate(o,"y")):(a=parseFloat(r||0),s=parseFloat(i||0)),{x:a,y:s}},setPosition:function(t){var e=t.x,n=t.y,r=t.end,i=t.position,a=t.width,s=t.height,u=this.target,c=this.isTran,l=this.em,f=r?"":1,h="".concat(e).concat("px"),d="".concat(n).concat("px"),p={};if(c){var g=u.getStyle().transform||"";g=this.setTranslate(g,"x",h),p={transform:g=this.setTranslate(g,"y",d),en:f},u.addStyle(p,{avoidStore:!r})}else{var m={position:i,width:a,height:s},b={left:h,top:d,en:f};Object(o.keys)(m).forEach((function(t){var e=m[t];e&&(b[t]=e)})),p=b,u.addStyle(p,{avoidStore:!r})}l.getSelected()&&Object(o.keys)(p).forEach((function(t){return l.trigger("update:component:style:".concat(t))}))},_getDragData:function(){var t=this.target;return{target:t,parent:t.parent(),index:t.index()}},onStart:function(t){var e=this.target,n=this.editor,r=this.isTran,i=this.opts,o=i.center,a=i.onStart,s=n.Canvas,u=e.getStyle(),c="absolute";if(a&&a(this._getDragData()),!r&&u.position!==c){var l=s.offset(e.getEl()),f=l.left,h=l.top,d=l.width,p=l.height;if(o){var g=s.getMouseRelativeCanvas(t);f=g.x,h=g.y}this.setPosition({x:f,y:h,width:"".concat(d,"px"),height:"".concat(p,"px"),position:c})}},onDrag:function(){var t=this,e=this.guidesTarget,n=this.opts,r=n.onDrag;this.updateGuides(e),n.debug&&e.forEach((function(e){return t.renderGuide(e)})),n.guidesInfo&&this.renderGuideInfo(e.filter((function(t){return t.active}))),r&&r(this._getDragData())},onEnd:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.editor,i=this.opts,o=this.id,a=i.onEnd;a&&a(t,n,u(u({event:t},n),this._getDragData())),r.stopCommand(o),this.hideGuidesInfo(),this.em.trigger("".concat(c,":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(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.guidesStatic;this.hideGuidesInfo(),e.forEach((function(e){var r=e.origin,i=e.x,a=t.getElementPos(r),s=Object(o.isUndefined)(i)?"y":"x",l="y"===s,f=a[l?"left":"top"],h=a.rect[l?"left":"top"],d=l?f+a.width:f+a.height,p=l?h+a.rect.width:h+a.rect.height,g=t["elGuideInfo".concat(s.toUpperCase())],m=t["elGuideInfoContent".concat(s.toUpperCase())],b=g.style,v=n.filter((function(t){return t.type===e.type})).map((function(t){var e=t.originRect,n=e.left,r=e.width,i=e.top,o=e.height,a=l?n+r:i+o;return{gap:a0})).sort((function(t,e){return t.gap-e.gap})).map((function(t){return t.guide}))[0];if(v){var y=v.originRect,_=y.left,w=y.width,x=y.top,O=y.height,E=y.rect,k=l?_2&&void 0!==arguments[2]?arguments[2]:{};if(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)}}}},function(t,e,n){"use strict";n.r(e),e.default={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.parent();if(n){var r,i=n.components().length,o=0,a=0;do{o++,r=(a=t.index()+o)<=i?n.getChildAt(a):null}while(r&&!r.get("selectable"));e.push(r||t)}})),e.length&&t.select(e)}}}},function(t,e,n){"use strict";n.r(e),e.default={run:function(t){if(t.Canvas.hasFocus()){var e=[];t.getSelectedAll().forEach((function(t){var n=t.parent();if(n){var r,i=0,o=0;do{i++,r=(o=t.index()-i)>=0?n.getChildAt(o):null}while(r&&!r.get("selectable"));e.push(r||t)}})),e.length&&t.select(e)}}}},function(t,e,n){"use strict";n.r(e);var r=n(0);e.default={run:function(t,e){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).target,i=[];if(!n.get("styles"))return i;var o=n.get("type"),a=t.Pages.getAllWrappers(),s=Object(r.flatten)(a.map((function(t){return t.findType(o)}))).length;if(!s){var u=t.CssComposer.getAll();i=u.filter((function(t){return t.get("group")==="cmp:".concat(o)})),u.remove(i)}return i}}},function(t,e,n){"use strict";n.r(e);var r=n(11),i=n.n(r);e.default={run:function(t){var e=t.getModel(),n=i()(t.getSelectedAll());n.length&&e.set("clipboard",n)}}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(2),o=n.n(i),a=n(23),s=o.a.$;e.default=Object(r.extend)({},a.default,{init:function(t){Object(r.bindAll)(this,"startDelete","stopDelete","onDelete"),this.hoverClass=this.pfx+"hover-delete",this.badgeClass=this.pfx+"badge-red"},enable:function(){this.$el.find("*").mouseover(this.startDelete).mouseout(this.stopDelete).click(this.onDelete)},startDelete:function(t){t.stopPropagation();var e=s(t.target);e.data("model").get("removable")&&(e.addClass(this.hoverClass),this.attachBadge(e.get(0)))},stopDelete:function(t){t.stopPropagation(),s(t.target).removeClass(this.hoverClass),this.badge&&this.badge.css({left:-1e3,top:-1e3})},onDelete:function(t){t.stopPropagation();var e=s(t.target);e.data("model").get("removable")&&(e.data("model").destroy(),this.removeBadge(),this.clean())},updateBadgeLabel:function(t){this.badge.html("Remove "+t.getName())}})},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n.n(r).a.$;e.default={run:function(t,e){var n=this;e&&e.set&&e.set("active",0);var r=t.getConfig(),o=t.Modal,a=r.stylePrefix;if(this.cm=t.CodeManager||null,!this.$editors){var s=this.buildEditor("htmlmixed","hopscotch","HTML"),u=this.buildEditor("css","hopscotch","CSS");this.htmlEditor=s.el,this.cssEditor=u.el;var c=i('
'));c.append(s.$el).append(u.$el),this.$editors=c}o.open({title:r.textViewCode,content:this.$editors}).getModel().once("change:open",(function(){return t.stopCommand(n.id)})),this.htmlEditor.setContent(t.getHtml()),this.cssEditor.setContent(t.getCss())},stop:function(t){var e=t.Modal;e&&e.close()},buildEditor:function(t,e,n){var r=document.createElement("textarea");!this.codeMirror&&(this.codeMirror=this.cm.getViewer("CodeMirror"));var i=this.codeMirror.clone().set({label:n,codeName:t,theme:e,input:r}),o=new this.cm.EditorView({model:i,config:this.cm.getConfig()}).render().$el;return i.init(r),{el:i,$el:o}}}},function(t,e,n){"use strict";n.r(e);var r=n(0);e.default={isEnabled:function(){var t=document;return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement?1:0},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():console.warn("Fullscreen not supported"),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,e){document;var n=(t||"")+"fullscreenchange";this.isEnabled()||(this.stop(null,this.sender),document.removeEventListener(n,this.fsChanged))},run:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.sender=e;var i=n.target,o=Object(r.isElement)(i)?i:document.querySelector(i),a=this.enable(o||t.getContainer());this.fsChanged=this.fsChanged.bind(this,a),document.addEventListener(a+"fullscreenchange",this.fsChanged),t.trigger("change:canvasOffset")},stop:function(t,e){e&&e.set&&e.set("active",!1),this.disable(),t&&t.trigger("change:canvasOffset")}}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(2),o=n.n(i),a=n(1),s=n(23),u=n(36),c=o.a.$;e.default=Object(r.extend)({},u.default,s.default,{init:function(t){s.default.init.apply(this,arguments),Object(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=arguments.length,e=new Array(t),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},r=t.AssetManager,o=r.getConfig(),a=n.types,s=void 0===a?[]:a,u=n.accept,c=n.select;if(this.title=n.modalTitle||t.t("assetManager.modalTitle")||"",this.editor=t,this.config=o,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}),o.custom)this.rendered=this.rendered||Object(i.f)("div"),this.rendered.className="".concat(o.stylePrefix,"custom-wrp"),r.__behaviour({container:this.rendered}),r.__trgCustom();else{if(!this.rendered||s){var l=r.getAll().filter((function(t){return t}));s&&s.length&&(l=l.filter((function(t){return-1!==s.indexOf(t.get("type"))}))),r.render(l),this.rendered=r.getContainer()}if(u){var f=this.rendered.querySelector("input#".concat(o.stylePrefix,"uploadFile"));f&&f.setAttribute("accept",u)}}return this.open(this.rendered),this},stop:function(t){this.editor=t,this.close(this.rendered)}}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(13);e.default={open:function(){var t=this.container,e=this.editor,n=this.bm,i=this.config,o=i.custom,a=i.appendTo;if(Object(r.isFunction)(o.open))return o.open(n.__customData());if(this.firstRender&&!a){var s="views-container",u=e.Panels;(u.getPanel(s)||u.addPanel({id:s})).set("appendContent",t).trigger("change:appendContent"),o||t.appendChild(n.render())}t&&(t.style.display="block")},close:function(){var t=this.container,e=this.config.custom;if(Object(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||Object(i.f)("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()}}},function(t,e,n){"use strict";n.r(e),e.default={run:function(t){var e=t.LayerManager,n=t.Panels;if(!e.getConfig().appendTo){if(!this.layers){var r="views-container",i=document.createElement("div"),o=n.getPanel(r)||n.addPanel({id:r});i.appendChild(e.render()),o.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")}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n.n(r).a.$;e.default={run:function(t,e){if(this.sender=e,!this.$cn){var n=t.getConfig(),r=t.Panels,o="change:appendContent";this.$cn=i("
"),this.$cn2=i("
"),this.$cn.append(this.$cn2);var a=t.DeviceManager;if(a&&n.showDevices){var s=r.addPanel({id:"devices-c"}),u=a.render();s.set("appendContent",u).trigger(o)}var c=t.SelectorManager,l=c.getConfig();l.custom?c.__trgCustom({container:this.$cn2.get(0)}):l.appendTo||this.$cn2.append(c.render([]));var f=t.StyleManager,h=f.getConfig();if(!h.appendTo){this.$cn2.append(f.render());var d=h.stylePrefix;this.$header=i('
').concat(t.t("styleManager.empty"),"
")),this.$cn.append(this.$header)}var p="views-container";this.panel=r.getPanel(p),this.panel||(this.panel=r.addPanel({id:p})),this.panel.set("appendContent",this.$cn).trigger(o),this.target=t.editor,this.listenTo(this.target,"component:toggled",this.toggleSm)}this.toggleSm()},toggleSm:function(){var t=this.target,e=this.sender;if(!e||!e.get||e.get("active")){var n=t.get("SelectorManager").getConfig().componentFirst,r=t.getSelectedAll().length;1===r||r>1&&n?(this.$cn2&&this.$cn2.show(),this.$header&&this.$header.hide()):(this.$cn2&&this.$cn2.hide(),this.$header&&this.$header.show())}},stop:function(){this.$cn2&&this.$cn2.hide(),this.$header&&this.$header.hide()}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n.n(r).a.$;e.default={run:function(t,e){this.sender=e;var n=t.getModel(),r=t.Config.stylePrefix,o=t.TraitManager,a=o.getConfig();if(!a.appendTo){if(!this.$cn){this.$cn=i("
"),this.$cn2=i("
"),this.$cn.append(this.$cn2),this.$header=i("
").append('
').concat(n.t("traitManager.empty"),"
")),this.$cn.append(this.$header),this.$cn2.append('
').concat(n.t("traitManager.label"),"
")),this.$cn2.append(o.render());var s=t.Panels;(s.getPanel("views-container")?s.getPanel("views-container"):s.addPanel({id:"views-container"})).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()}}},function(t,e,n){"use strict";n.r(e);var r=n(0);e.default={run:function(t){var e=t.getModel().get("clipboard"),n=t.getSelected();e&&n&&(t.getSelectedAll().forEach((function(n){if(n){var i,o=n.collection,a=o.indexOf(n)+1,s=e.filter((function(t){return t.get("copyable")}));i=Object(r.contains)(e,n)&&n.get("copyable")?o.add(n.clone(),{at:a}):o.add(s.map((function(t){return t.clone()})),{at:a}),(i=Object(r.isArray)(i)?i:[i]).forEach((function(e){return t.trigger("component:paste",e)}))}})),n.emitUpdate())}}},function(t,e,n){"use strict";n.r(e);var r=n(11),i=n.n(r),o=n(0),a="sw-visibility";e.default={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 r=e.get("Canvas"),i=r.getBody(),a=r.getToolbarEl();a&&(a.style.display=t?"none":"");var s=i.querySelectorAll(".".concat(this.ppfx,"no-pointer"));Object(o.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=i()(t.getSelectedAll()),t.select(),this.shouldRunSwVisibility||(this.shouldRunSwVisibility=t.Commands.isActive(a)),this.shouldRunSwVisibility&&t.stopCommand(a),t.getModel().stopDefault();var r=this.getPanels(t),o=t.Canvas.getElement(),s=t.getEl(),u=t.Config.stylePrefix;if(!this.helper){var c=document.createElement("span");c.className="".concat(u,"off-prv fa fa-eye-slash"),s.appendChild(c),c.onclick=function(){return n.stopCommand()},this.helper=c}this.helper.style.display="inline-block",r.forEach((function(t){return t.set("visible",!1)}));var l=o.style;l.width="100%",l.height="100%",l.top="0",l.left="0",l.padding="0",l.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(a),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()}}},function(t,e,n){"use strict";n.r(e),e.default={run:function(t,e,n){var r=n||{},i=r.el||"",o=t.Canvas,a=this.canvasResizer,s=r.options||{},u=o.getCanvasView();return s.appendTo=o.getResizerEl(),s.prefix=t.getConfig().stylePrefix,s.posFetcher=u.getElementPos.bind(u),s.mousePosFetcher=o.getMouseRelativePos,a&&!r.forceNew||(this.canvasResizer=t.Utils.Resizer.init(s),a=this.canvasResizer),a.setOptions(s),a.blur(),a.focus(i),a},stop:function(){var t=this.canvasResizer;t&&t.blur()}}},function(t,e,n){"use strict";n.r(e);var r=n(3),i=n.n(r),o=n(2),a=n.n(o),s=n(0),u=n(1);function c(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}var l=a.a.$;e.default={getOffsetMethod:function(t){return"get"+(t||"")+"OffsetViewerEl"},run:function(t,e,n){var r=n||{},o=r.state||"",a=t.getConfig(),f=this.em.getZoomDecimal(),h=r.el||"";if(!a.showOffsets||Object(u.isTextNode)(h)||!a.showOffsetsSelected&&"Fixed"==o)t.stopCommand(this.id,n);else{var d=t.Canvas,p=function(t){for(var e=1;e')).get(0),M=l('
')).get(0),P=m+A+"-el",R="".concat(m+C+"-el"," ").concat(m+C),N="".concat(P," ").concat(m+A);y=l('
')).get(0),_=l('
')).get(0),w=l('
')).get(0),x=l('
')).get(0),O=l('
')).get(0),E=l('
')).get(0),k=l('
')).get(0),T=l('
')).get(0),this["marginT"+o]=y,this["marginB"+o]=_,this["marginL"+o]=w,this["marginR"+o]=x,this["padT"+o]=O,this["padB"+o]=E,this["padL"+o]=k,this["padR"+o]=T,j.appendChild(y),j.appendChild(_),j.appendChild(w),j.appendChild(x),M.appendChild(O),M.appendChild(E),M.appendChild(k),M.appendChild(T),v.appendChild(j),v.appendChild(M),this[b]="1"}var L="px",D=parseFloat(g.marginLeft.replace(L,""))*f,I=parseFloat(g.marginRight.replace(L,""))*f,B=parseFloat(g.marginTop.replace(L,""))*f,F=parseFloat(g.marginBottom.replace(L,""))*f,U=y.style,H=_.style,z=w.style,q=x.style,V=O.style,W=E.style,K=k.style,G=T.style,$=parseFloat(p.left),Y=parseFloat(g.width)*f+L;U.height=B+L,U.width=Y,U.top=p.top-B+L,U.left=$+L,H.height=F+L,H.width=Y,H.top=p.top+p.height+L,H.left=$+L;var X=p.height+B+F+L,Z=p.top-B+L;z.height=X,z.width=D+L,z.top=Z,z.left=$-D+L,q.height=X,q.width=I+L,q.top=Z,q.left=$+p.width+L;var Q=parseFloat(g.paddingTop)*f;V.height=Q+L;var J=parseFloat(g.paddingBottom)*f;W.height=J+L;var tt=p.height-J-Q+L,et=p.top+Q+L;K.height=tt,K.width=parseFloat(g.paddingLeft)*f+L,K.top=et;var nt=parseFloat(g.paddingRight)*f;G.height=tt,G.width=nt+L,G.top=et}},stop:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(n||{}).state||"",i=this.getOffsetMethod(r);t.Canvas[i](n.view).style.opacity=0}}},function(t,e,n){"use strict";n.r(e);var r=n(0);e.default={init:function(){Object(r.bindAll)(this,"_onFramesChange")},run:function(t){this.toggleVis(t)},stop:function(t){this.toggleVis(t,0)},toggleVis:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(!t.Commands.isActive("preview")){var r=t.Canvas,i=n?"on":"off";r.getFrames().forEach((function(t){return e._upFrame(t,n)})),r.getModel()[i]("change:frames",this._onFramesChange)}},_onFramesChange:function(t,e){var n=this;e.forEach((function(t){return n._upFrame(t,1)}))},_upFrame:function(t,e){var n=e?"add":"remove";t.view.getBody().classList[n]("".concat(this.ppfx,"dashed"))}}},function(t,e,n){var r,i,o;i=[n(0),n(2)],void 0===(o="function"==typeof(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 i(t,e){return n.call(t,e)}function o(e,n){return null!=e&&(t.isArray(n)||(n=i(arguments,1)),t.all(n,(function(t){return t in e})))}var a,s,u=(a=!1,s=-1,function(){return a||(s++,a=!0,t.defer((function(){a=!1}))),s});function c(){this.registeredObjects=[],this.cidIndexes=[]}function l(e,n,r,i){for(var o,a=0,s=n.length;aa.length?t.each(i,(function(t){t in o||s.before.push(t)}),this):t.each(a,(function(t){t in r||s.after.push(t)}))),{object:e,before:o,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 p(){}function g(e,n,r,i){if("object"==typeof n)return t.each(n,(function(t,n){2===e?g(e,t,r,i):g(e,n,t,r)}));switch(e){case 0:o(r,"undo","redo","on")&&t.all(t.pick(r,"undo","redo","on"),t.isFunction)&&(i[n]=r);break;case 1:i[n]&&t.isObject(r)&&(i[n]=t.extend({},i[n],r));break;case 2:delete i[n]}return this}p.prototype=d;var m=e.Model.extend({defaults:{type:null,object:null,before:null,after:null,magicFusionIndex:null},undo:function(t){f("undo",this.attributes)},redo:function(t){f("redo",this.attributes)}}),b=e.Collection.extend({model:m,pointer:-1,track:!1,isCurrentlyUndoRedoing:!1,maximumStackLength:1/0,setMaxLength:function(t){this.maximumStackLength=t}}),v=e.Model.extend({defaults:{maximumStackLength:1/0,track:!1},initialize:function(e){this.stack=new b,this.objectRegistry=new c,this.undoTypes=new p,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){!function(t,e,n,i){if(t.track&&!t.isCurrentlyUndoRedoing&&e in i&&function(t,e){var n=t.condition,i=typeof n;return"function"===i?!!r(n,t,e):"boolean"!==i||n}(i[e],n)){var a=r(i[e].on,i[e],n);if(o(a,"object","before","after")){if(a.type=e,a.magicFusionIndex=u(),a.undoTypes=i,t.pointert.maximumStackLength&&(t.shift(),t.pointer--)}}}(this.stack,t,i(arguments,1),this.undoTypes)},register:function(){l("on",arguments,this._addToStack,this)},unregister:function(){l("off",arguments,this._addToStack,this)},unregisterAll:function(){r(this.unregister,this,this.objectRegistry.get())},undo:function(t){h("undo",this,this.stack,t)},undoAll:function(){h("undo",this,this.stack,!1,!0)},redo:function(t){h("redo",this,this.stack,t)},redoAll:function(){h("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=0||(i[n]=t[n]);return i},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e);var r=n(3),i=n.n(r),o=n(76),a=n.n(o),s=n(0);function u(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 c(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};n=c(c({},i),f),t=n.em,this.em=t;var h=!0;return(e=new a.a(c({track:!0,register:[]},n))).changeUndoType("change",{condition:function(t){var e=t.get("_undo");if(e){var n=t.get("_undoexc");if(Object(s.isArray)(n)&&u(t).some((function(t){return n.indexOf(t)>=0})))return!1;if(Object(s.isBoolean)(e))return!0;if(Object(s.isArray)(e)&&u(t).some((function(t){return e.indexOf(t)>=0})))return!0}return!1},on:function(t,e,n){!r&&(r=t.previousAttributes());var i=n||e||{};if(i.noUndo&&setTimeout((function(){r=null})),!o(i)){var a=t.toJSON({fromUndo:h}),u={object:t,before:r,after:a};if(r=null,!Object(s.isEmpty)(a))return u}}}),e.changeUndoType("add",{on:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!o(n)&&l.isRegistered(e))return{object:e,before:void 0,after:t,options:c(c({},n),{},{fromUndo:h})}}}),e.changeUndoType("remove",{on:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!o(n)&&l.isRegistered(e))return{object:e,before:t,after:void 0,options:c(c({},n),{},{fromUndo:h})}}}),e.on("undo redo",(function(){t.trigger("component:toggled change:canvasOffset"),t.getSelectedAll().map((function(t){return t.trigger("rerender:layer")}))})),["undo","redo"].forEach((function(n){return e.on(n,(function(){return t.trigger(n)}))})),this},postLoad:function(){n.trackSelection&&t&&this.add(t.get("selected"))},getConfig:function(){return n},add:function(t){return e.register(t),this},remove:function(t){return e.unregister(t),this},removeAll:function(){return e.unregisterAll(),this},start:function(){return e.startTracking(),this},stop:function(){return e.stopTracking(),this},undo:function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!t.isEditing()&&e.undo(n),this},undoAll:function(){return e.undoAll(),this},redo:function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return!t.isEditing()&&e.redo(n),this},redoAll:function(){return e.redoAll(),this},hasUndo:function(){return e.isAvailable("undo")},hasRedo:function(){return e.isAvailable("redo")},isRegistered:function(t){return!!this.getInstance().objectRegistry.isRegistered(t)},getStack:function(){return e.stack},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},__getStackRead:function(){var t={};return this.getStack().forEach((function(e){var n=e.get("magicFusionIndex"),r=function(t){var e=t.attributes;return{type:e.type,after:e.after,before:e.before,object:e.object}}(e);t[n]?t[n].push(r):t[n]=[r]})),Object.keys(t).map((function(e){return t[e]}))},getPointer:function(){return this.getStack().pointer},clear:function(){return e.clear(),this},getInstance:function(){return e},destroy:function(){this.clear().removeAll(),[t,e,n,r].forEach((function(t){return{}})),this.em={}}}}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.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;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(85),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(35))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,u=1,c={},l=!1,f=t.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(t);h=h&&h.setTimeout?h:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){p(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}}()?(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}):t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)},h.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n","i")}function o(t,e){for(var n in t)for(var r=e[n]||(e[n]=[]),i=t[n],o=i.length-1;o>=0;o--)r.unshift(i[o])}t.defineMode("htmlmixed",(function(n,a){var s=t.getMode(n,{name:"xml",htmlMode:!0,multilineTagIndentFactor:a.multilineTagIndentFactor,multilineTagIndentPastTag:a.multilineTagIndentPastTag,allowMissingTagName:a.allowMissingTagName}),u={},c=a&&a.tags,l=a&&a.scriptTypes;if(o(e,u),c&&o(c,u),l)for(var f=l.length-1;f>=0;f--)u.script.unshift(["type",l[f].matches,l[f].mode]);function h(e,o){var a,c=s.token(e,o.htmlState),l=/\btag\b/.test(c);if(l&&!/[<>\s\/]/.test(e.current())&&(a=o.htmlState.tagName&&o.htmlState.tagName.toLowerCase())&&u.hasOwnProperty(a))o.inTag=a+" ";else if(o.inTag&&l&&/>$/.test(e.current())){var f=/^([\S]+) (.*)/.exec(o.inTag);o.inTag=null;var d=">"==e.current()&&function(t,e){for(var n=0;n-1?t.backUp(r.length-i):r.match(/<\/?$/)&&(t.backUp(r.length),t.match(e,!1)||t.match(r)),n}(t,m,e.localMode.token(t,e.localState))},o.localMode=p,o.localState=t.startState(p,s.indent(o.htmlState,"",""))}else o.inTag&&(o.inTag+=e.current(),e.eol()&&(o.inTag+=" "));return c}return{startState:function(){return{token:h,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(27),n(90),n(91),n(51))},function(t,e,n){!function(t){"use strict";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,i){var o,a,s=r.indentUnit,u={},c=i.htmlMode?e:n;for(var l in c)u[l]=c[l];for(var l in i)u[l]=i[l];function f(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(d("atom","]]>")):null:t.match("--")?n(d("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(function t(e){return function(n,r){for(var i;null!=(i=n.next());){if("<"==i)return r.tokenize=t(e+1),r.tokenize(n,r);if(">"==i){if(1==e){r.tokenize=f;break}return r.tokenize=t(e-1),r.tokenize(n,r)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=d("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=h,"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 h(t,e){var n,r,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=f,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){e.tokenize=f,e.state=v,e.tagName=e.tagStart=null;var a=e.tokenize(t,e);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(e.tokenize=(n=i,(r=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=h;break}return"string"}).isInAttribute=!0,r),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=f;break}n.next()}return t}}function p(t){return t&&t.toLowerCase()}function g(t,e,n){this.prev=t.context,this.tagName=e||"",this.indent=t.indented,this.startOfLine=n,(u.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function m(t){t.context&&(t.context=t.context.prev)}function b(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!u.contextGrabbers.hasOwnProperty(p(n))||!u.contextGrabbers[p(n)].hasOwnProperty(p(e)))return;m(t)}}function v(t,e,n){return"openTag"==t?(n.tagStart=e.column(),y):"closeTag"==t?_:v}function y(t,e,n){return"word"==t?(n.tagName=e.current(),a="tag",O):u.allowMissingTagName&&"endTag"==t?(a="tag bracket",O(t,0,n)):(a="error",y)}function _(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&u.implicitlyClosed.hasOwnProperty(p(n.context.tagName))&&m(n),n.context&&n.context.tagName==r||!1===u.matchClosing?(a="tag",w):(a="tag error",x)}return u.allowMissingTagName&&"endTag"==t?(a="tag bracket",w(t,0,n)):(a="error",x)}function w(t,e,n){return"endTag"!=t?(a="error",w):(m(n),v)}function x(t,e,n){return a="error",w(t,0,n)}function O(t,e,n){if("word"==t)return a="attribute",E;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,i=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||u.autoSelfClosers.hasOwnProperty(p(r))?b(n,r):(b(n,r),n.context=new g(n,r,i==n.indented)),v}return a="error",O}function E(t,e,n){return"equals"==t?k:(u.allowMissing||(a="error"),O(t,0,n))}function k(t,e,n){return"string"==t?T:"word"==t&&u.allowUnquoted?(a="string",O):(a="error",O(t,0,n))}function T(t,e,n){return"string"==t?T:O(t,0,n)}return f.isInText=!0,{startState:function(t){var e={tokenize:f,state:v,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;o=null;var n=e.tokenize(t,e);return(n||o)&&"comment"!=n&&(a=null,e.state=e.state(o||n,t,e),a&&(n="error"==a?n+" error":a)),n},indent:function(e,n,r){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return t.Pass;if(e.tokenize!=h&&e.tokenize!=f)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==u.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(t){t.state==k&&(t.state=O)},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(27))},function(t,e,n){!function(t){"use strict";t.defineMode("javascript",(function(e,n){var r,i,o=e.indentUnit,a=n.statementIndent,s=n.jsonld,u=n.json||s,c=!1!==n.trackScope,l=n.typescript,f=n.wordCharacters||/[\w$\xa1-\uffff]/,h=function(){function t(t){return{type:t,style:"keyword"}}var e=t("keyword a"),n=t("keyword b"),r=t("keyword c"),i=t("keyword d"),o=t("operator"),a={type:"atom",style:"atom"};return{if:t("if"),while:e,with:e,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,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:o,typeof:o,instanceof:o,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}}(),d=/[+\-*&%=<>!?|~^@]/,p=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function g(t,e,n){return r=t,i=n,e}function m(t,e){var n,r=t.next();if('"'==r||"'"==r)return e.tokenize=(n=r,function(t,e){var r,i=!1;if(s&&"@"==t.peek()&&t.match(p))return e.tokenize=m,g("jsonld-keyword","meta");for(;null!=(r=t.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(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=b,b(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=v,v(t,e);if("#"==r&&"!"==t.peek())return t.skipToEnd(),g("meta","meta");if("#"==r&&t.eatWhile(f))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(d.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(f.test(r)){t.eatWhile(f);var i=t.current();if("."!=e.lastType){if(h.propertyIsEnumerable(i)){var o=h[i];return g(o.type,o.style,i)}if("async"==i&&t.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return g("async","keyword",i)}return g("variable","variable",i)}}function b(t,e){for(var n,r=!1;n=t.next();){if("/"==n&&r){e.tokenize=m;break}r="*"==n}return g("comment","comment")}function v(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())}var y="([{}])";function _(t,e){e.fatArrowAt&&(e.fatArrowAt=null);var n=t.string.indexOf("=>",t.start);if(!(n<0)){if(l){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(t.string.slice(t.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=t.string.charAt(a),u=y.indexOf(s);if(u>=0&&u<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(u>=3&&u<6)++i;else if(f.test(s))o=!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(o&&!i){++a;break}}o&&!i&&(e.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(t,e,n,r,i,o){this.indented=t,this.column=e,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function O(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 E(t,e,n,r,i){var o=t.cc;for(k.state=t,k.stream=i,k.marked=null,k.cc=o,k.style=e,t.lexical.hasOwnProperty("align")||(t.lexical.align=!0);;)if((o.length?o.pop():u?z:U)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return k.marked?k.marked:"variable"==n&&O(t,r)?"variable-2":e}}var k={state:null,column:null,marked:null,cc:null};function T(){for(var t=arguments.length-1;t>=0;t--)k.cc.push(arguments[t])}function S(){return T.apply(null,arguments),!0}function C(t,e){for(var n=e;n;n=n.next)if(n.name==t)return!0;return!1}function A(t){var e=k.state;if(k.marked="def",c){if(e.context)if("var"==e.lexical.info&&e.context&&e.context.block){var r=function t(e,n){if(n){if(n.block){var r=t(e,n.prev);return r?r==n.prev?n:new M(r,n.vars,!0):null}return C(e,n.vars)?n:new M(n.prev,new P(e,n.vars),!1)}return null}(t,e.context);if(null!=r)return void(e.context=r)}else if(!C(t,e.localVars))return void(e.localVars=new P(t,e.localVars));n.globalVars&&!C(t,e.globalVars)&&(e.globalVars=new P(t,e.globalVars))}}function j(t){return"public"==t||"private"==t||"protected"==t||"abstract"==t||"readonly"==t}function M(t,e,n){this.prev=t,this.vars=e,this.block=n}function P(t,e){this.name=t,this.next=e}var R=new P("this",new P("arguments",null));function N(){k.state.context=new M(k.state.context,k.state.localVars,!1),k.state.localVars=R}function L(){k.state.context=new M(k.state.context,k.state.localVars,!0),k.state.localVars=null}function D(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function I(t,e){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,k.stream.column(),t,null,n.lexical,e)};return n.lex=!0,n}function B(){var t=k.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?S():";"==t||"}"==n||")"==n||"]"==n?T():S(e)}}function U(t,e){return"var"==t?S(I("vardef",e),Et,F(";"),B):"keyword a"==t?S(I("form"),V,U,B):"keyword b"==t?S(I("form"),U,B):"keyword d"==t?k.stream.match(/^\s*$/,!1)?S():S(I("stat"),K,F(";"),B):"debugger"==t?S(F(";")):"{"==t?S(I("}"),L,ut,B,D):";"==t?S():"if"==t?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==B&&k.state.cc.pop()(),S(I("form"),V,U,B,jt)):"function"==t?S(Nt):"for"==t?S(I("form"),L,Mt,U,D,B):"class"==t||l&&"interface"==e?(k.marked="keyword",S(I("form","class"==t?t:e),Ft,B)):"variable"==t?l&&"declare"==e?(k.marked="keyword",S(U)):l&&("module"==e||"enum"==e||"type"==e)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==e?S(Zt):"type"==e?S(Dt,F("operator"),dt,F(";")):S(I("form"),kt,F("{"),I("}"),ut,B,B)):l&&"namespace"==e?(k.marked="keyword",S(I("form"),z,U,B)):l&&"abstract"==e?(k.marked="keyword",S(U)):S(I("stat"),et):"switch"==t?S(I("form"),V,F("{"),I("}","switch"),L,ut,B,B,D):"case"==t?S(z,F(":")):"default"==t?S(F(":")):"catch"==t?S(I("form"),N,H,U,B,D):"export"==t?S(I("stat"),qt,B):"import"==t?S(I("stat"),Wt,B):"async"==t?S(U):"@"==e?S(z,U):T(I("stat"),z,F(";"),B)}function H(t){if("("==t)return S(It,F(")"))}function z(t,e){return W(t,e,!1)}function q(t,e){return W(t,e,!0)}function V(t){return"("!=t?T():S(I(")"),K,F(")"),B)}function W(t,e,n){if(k.state.fatArrowAt==k.stream.start){var r=n?Q:Z;if("("==t)return S(N,I(")"),at(It,")"),B,F("=>"),r,D);if("variable"==t)return T(N,kt,F("=>"),r,D)}var i=n?$:G;return w.hasOwnProperty(t)?S(i):"function"==t?S(Nt,i):"class"==t||l&&"interface"==e?(k.marked="keyword",S(I("form"),Bt,B)):"keyword c"==t||"async"==t?S(n?q:z):"("==t?S(I(")"),K,F(")"),B,i):"operator"==t||"spread"==t?S(n?q:z):"["==t?S(I("]"),Xt,B,i):"{"==t?st(rt,"}",null,i):"quasi"==t?T(Y,i):"new"==t?S(function(t){return function(e){return"."==e?S(t?tt:J):"variable"==e&&l?S(wt,t?$:G):T(t?q:z)}}(n)):S()}function K(t){return t.match(/[;\}\)\],]/)?T():T(z)}function G(t,e){return","==t?S(K):$(t,e,!1)}function $(t,e,n){var r=0==n?G:$,i=0==n?z:q;return"=>"==t?S(N,n?Q:Z,D):"operator"==t?/\+\+|--/.test(e)||l&&"!"==e?S(r):l&&"<"==e&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(I(">"),at(dt,">"),B,r):"?"==e?S(z,F(":"),i):S(i):"quasi"==t?T(Y,r):";"!=t?"("==t?st(q,")","call",r):"."==t?S(nt,r):"["==t?S(I("]"),K,F("]"),B,r):l&&"as"==e?(k.marked="keyword",S(dt,r)):"regexp"==t?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),S(i)):void 0:void 0}function Y(t,e){return"quasi"!=t?T():"${"!=e.slice(e.length-2)?S(Y):S(K,X)}function X(t){if("}"==t)return k.marked="string-2",k.state.tokenize=v,S(Y)}function Z(t){return _(k.stream,k.state),T("{"==t?U:z)}function Q(t){return _(k.stream,k.state),T("{"==t?U:q)}function J(t,e){if("target"==e)return k.marked="keyword",S(G)}function tt(t,e){if("target"==e)return k.marked="keyword",S($)}function et(t){return":"==t?S(B,U):T(G,F(";"),B)}function nt(t){if("variable"==t)return k.marked="property",S()}function rt(t,e){return"async"==t?(k.marked="property",S(rt)):"variable"==t||"keyword"==k.style?(k.marked="property","get"==e||"set"==e?S(it):(l&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),S(ot))):"number"==t||"string"==t?(k.marked=s?"property":k.style+" property",S(ot)):"jsonld-keyword"==t?S(ot):l&&j(e)?(k.marked="keyword",S(rt)):"["==t?S(z,ct,F("]"),ot):"spread"==t?S(q,ot):"*"==e?(k.marked="keyword",S(rt)):":"==t?T(ot):void 0;var n}function it(t){return"variable"!=t?T(ot):(k.marked="property",S(Nt))}function ot(t){return":"==t?S(q):"("==t?T(Nt):void 0}function at(t,e,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),S((function(n,r){return n==e||r==e?T():T(t)}),r)}return i==e||o==e?S():n&&n.indexOf(";")>-1?T(t):S(F(e))}return function(n,i){return n==e||i==e?S():T(t,r)}}function st(t,e,n){for(var r=3;r"),dt):"quasi"==t?T(bt,_t):void 0}function pt(t){if("=>"==t)return S(dt)}function gt(t){return t.match(/[\}\)\]]/)?S():","==t||";"==t?S(gt):T(mt,gt)}function mt(t,e){return"variable"==t||"keyword"==k.style?(k.marked="property",S(mt)):"?"==e||"number"==t||"string"==t?S(mt):":"==t?S(dt):"["==t?S(F("variable"),lt,F("]"),mt):"("==t?T(Lt,mt):t.match(/[;\}\)\],]/)?void 0:S()}function bt(t,e){return"quasi"!=t?T():"${"!=e.slice(e.length-2)?S(bt):S(dt,vt)}function vt(t){if("}"==t)return k.marked="string-2",k.state.tokenize=v,S(bt)}function yt(t,e){return"variable"==t&&k.stream.match(/^\s*[?:]/,!1)||"?"==e?S(yt):":"==t?S(dt):"spread"==t?S(yt):T(dt)}function _t(t,e){return"<"==e?S(I(">"),at(dt,">"),B,_t):"|"==e||"."==t||"&"==e?S(dt):"["==t?S(dt,F("]"),_t):"extends"==e||"implements"==e?(k.marked="keyword",S(dt)):"?"==e?S(dt,F(":"),dt):void 0}function wt(t,e){if("<"==e)return S(I(">"),at(dt,">"),B,_t)}function xt(){return T(dt,Ot)}function Ot(t,e){if("="==e)return S(dt)}function Et(t,e){return"enum"==e?(k.marked="keyword",S(Zt)):T(kt,ct,Ct,At)}function kt(t,e){return l&&j(e)?(k.marked="keyword",S(kt)):"variable"==t?(A(e),S()):"spread"==t?S(kt):"["==t?st(St,"]"):"{"==t?st(Tt,"}"):void 0}function Tt(t,e){return"variable"!=t||k.stream.match(/^\s*:/,!1)?("variable"==t&&(k.marked="property"),"spread"==t?S(kt):"}"==t?T():"["==t?S(z,F("]"),F(":"),Tt):S(F(":"),kt,Ct)):(A(e),S(Ct))}function St(){return T(kt,Ct)}function Ct(t,e){if("="==e)return S(q)}function At(t){if(","==t)return S(Et)}function jt(t,e){if("keyword b"==t&&"else"==e)return S(I("form","else"),U,B)}function Mt(t,e){return"await"==e?S(Mt):"("==t?S(I(")"),Pt,B):void 0}function Pt(t){return"var"==t?S(Et,Rt):"variable"==t?S(Rt):T(Rt)}function Rt(t,e){return")"==t?S():";"==t?S(Rt):"in"==e||"of"==e?(k.marked="keyword",S(z,Rt)):T(z,Rt)}function Nt(t,e){return"*"==e?(k.marked="keyword",S(Nt)):"variable"==t?(A(e),S(Nt)):"("==t?S(N,I(")"),at(It,")"),B,ft,U,D):l&&"<"==e?S(I(">"),at(xt,">"),B,Nt):void 0}function Lt(t,e){return"*"==e?(k.marked="keyword",S(Lt)):"variable"==t?(A(e),S(Lt)):"("==t?S(N,I(")"),at(It,")"),B,ft,D):l&&"<"==e?S(I(">"),at(xt,">"),B,Lt):void 0}function Dt(t,e){return"keyword"==t||"variable"==t?(k.marked="type",S(Dt)):"<"==e?S(I(">"),at(xt,">"),B):void 0}function It(t,e){return"@"==e&&S(z,It),"spread"==t?S(It):l&&j(e)?(k.marked="keyword",S(It)):l&&"this"==t?S(ct,Ct):T(kt,ct,Ct)}function Bt(t,e){return"variable"==t?Ft(t,e):Ut(t,e)}function Ft(t,e){if("variable"==t)return A(e),S(Ut)}function Ut(t,e){return"<"==e?S(I(">"),at(xt,">"),B,Ut):"extends"==e||"implements"==e||l&&","==t?("implements"==e&&(k.marked="keyword"),S(l?dt:z,Ut)):"{"==t?S(I("}"),Ht,B):void 0}function Ht(t,e){return"async"==t||"variable"==t&&("static"==e||"get"==e||"set"==e||l&&j(e))&&k.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",S(Ht)):"variable"==t||"keyword"==k.style?(k.marked="property",S(zt,Ht)):"number"==t||"string"==t?S(zt,Ht):"["==t?S(z,ct,F("]"),zt,Ht):"*"==e?(k.marked="keyword",S(Ht)):l&&"("==t?T(Lt,Ht):";"==t||","==t?S(Ht):"}"==t?S():"@"==e?S(z,Ht):void 0}function zt(t,e){if("!"==e)return S(zt);if("?"==e)return S(zt);if(":"==t)return S(dt,Ct);if("="==e)return S(q);var n=k.state.lexical.prev;return T(n&&"interface"==n.info?Lt:Nt)}function qt(t,e){return"*"==e?(k.marked="keyword",S(Yt,F(";"))):"default"==e?(k.marked="keyword",S(z,F(";"))):"{"==t?S(at(Vt,"}"),Yt,F(";")):T(U)}function Vt(t,e){return"as"==e?(k.marked="keyword",S(F("variable"))):"variable"==t?T(q,Vt):void 0}function Wt(t){return"string"==t?S():"("==t?T(z):"."==t?T(G):T(Kt,Gt,Yt)}function Kt(t,e){return"{"==t?st(Kt,"}"):("variable"==t&&A(e),"*"==e&&(k.marked="keyword"),S($t))}function Gt(t){if(","==t)return S(Kt,Gt)}function $t(t,e){if("as"==e)return k.marked="keyword",S(Kt)}function Yt(t,e){if("from"==e)return k.marked="keyword",S(z)}function Xt(t){return"]"==t?S():T(at(q,"]"))}function Zt(){return T(I("form"),kt,F("{"),I("}"),at(Qt,"}"),B,B)}function Qt(){return T(kt,Ct)}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 D.lex=!0,B.lex=!0,{startState:function(t){var e={tokenize:m,lastType:"sof",cc:[],lexical:new x((t||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new M(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(),_(t,e)),e.tokenize!=b&&t.eatSpace())return null;var n=e.tokenize(t,e);return"comment"==r?n:(e.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",E(e,n,r,i,t))},indent:function(e,r){if(e.tokenize==b||e.tokenize==v)return t.Pass;if(e.tokenize!=m)return 0;var i,s=r&&r.charAt(0),u=e.lexical;if(!/^\s*else\b/.test(r))for(var c=e.cc.length-1;c>=0;--c){var l=e.cc[c];if(l==B)u=u.prev;else if(l!=jt&&l!=D)break}for(;("stat"==u.type||"form"==u.type)&&("}"==s||(i=e.cc[e.cc.length-1])&&(i==G||i==$)&&!/^[,\.=+\-*:?[\(]/.test(r));)u=u.prev;a&&")"==u.type&&"stat"==u.prev.type&&(u=u.prev);var f=u.type,h=s==f;return"vardef"==f?u.indented+("operator"==e.lastType||","==e.lastType?u.info.length+1:0):"form"==f&&"{"==s?u.indented:"form"==f?u.indented+o:"stat"==f?u.indented+(function(t,e){return"operator"==t.lastType||","==t.lastType||d.test(e.charAt(0))||/[,.]/.test(e.charAt(0))}(e,r)?a||o:0):"switch"!=u.info||h||0==n.doubleIndentSwitch?u.align?u.column+(h?0:1):u.indented+(h?0:o):u.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:u?null:"/*",blockCommentEnd:u?null:"*/",blockCommentContinue:u?null:" * ",lineComment:u?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:u?"json":"javascript",jsonldMode:s,jsonMode:u,expressionAllowed:Jt,skipExpression:function(e){E(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(27))},function(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,i){var o=!1;return"html"==this.configuration&&(o=!!i.context&&e.test(i.context.tagName)),!o&&("tag"==t&&/>$/.test(n)&&i.context||/^-1&&s>-1&&s>a&&(t=t.substr(0,a)+t.substring(a+o.commentStart.length,s)+t.substr(s+o.commentEnd.length)),i.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,i=r.getMode(),o=r.getRange(e,n).split("\n"),a=t.copyState(i,r.getTokenAt(e).state),s=r.getOption("tabSize"),u="",c=0,l=0===e.ch;function f(){u+="\n",l=!0,++c}for(var h=0;h=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},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 i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:A(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=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.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(10);e.default=r.View.extend({initialize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.items=[],this.opt=t;var e=t.config||{};this.level=t.level,this.config=e,this.preview=t.preview,this.ppfx=e.pStylePrefix||"",this.pfx=e.stylePrefix||"",this.parent=t.parent,this.parentView=t.parentView;var n=this.pfx,r=this.ppfx,o=this.parent,a=this.collection;this.listenTo(a,"add",this.addTo),this.listenTo(a,"reset resetNavigator",this.render),this.listenTo(a,"remove",this.removeChildren),this.className="".concat(n,"layers");var s=e.em;if(e.sortable&&!this.opt.sorter){var u=s.get("Utils");this.opt.sorter=new u.Sorter({container:e.sortContainer||this.el,containerSel:".".concat(this.className),itemSel:".".concat(n,"layer"),ignoreViewChildren:1,onEndMove:function(t,e,n){var r=e.getSourceModel();s.setSelected(r,{forceChange:1}),s.trigger("".concat(i.b,":end"),n)},avoidSelectOnEnd:1,nested:1,ppfx:r,pfx:n})}this.sorter=this.opt.sorter||"",this.$el.data("collection",a),o&&this.$el.data("model",o)},removeChildren:function(t){var e=t.viewLayer;e&&(e.remove(),t.viewLayer=0)},addTo:function(t){var e=this.collection.indexOf(t);this.addToCollection(t,null,e)},addToCollection:function(t,e,n){var r=this.level,i=this.parentView,o=this.opt.ItemView,a=e||null,s=new o({ItemView:o,level:r,model:t,parentView:i,config:this.config,sorter:this.sorter,isCountable:this.isCountable,opened:this.opt.opened}),u=s.render().el;if(a)a.appendChild(u);else if(void 0!==n){var c="before";this.$el.children().length==n&&(n--,c="after"),n<0?this.$el.append(u):this.$el.children().eq(n)[c](u)}else this.$el.append(u);return this.items.push(s),u},remove:function(){r.View.prototype.remove.apply(this,arguments),this.items.map((function(t){return t.remove()}))},isCountable:function(t,e){var n=t.get("type"),r=t.get("tagName");return!(("textnode"==n||"br"==r)&&e||!t.get("layerable"))},render:function(){var t=this,e=document.createDocumentFragment(),n=this.el;return n.innerHTML="",this.collection.each((function(n){return t.addToCollection(n,e)})),n.appendChild(e),n.className=this.className,this}})},function(t,e,n){var r={"./CanvasClear":52,"./CanvasClear.js":52,"./CanvasMove":53,"./CanvasMove.js":53,"./CommandAbstract":31,"./CommandAbstract.js":31,"./ComponentDelete":54,"./ComponentDelete.js":54,"./ComponentDrag":55,"./ComponentDrag.js":55,"./ComponentEnter":56,"./ComponentEnter.js":56,"./ComponentExit":57,"./ComponentExit.js":57,"./ComponentNext":58,"./ComponentNext.js":58,"./ComponentPrev":59,"./ComponentPrev.js":59,"./ComponentStyleClear":60,"./ComponentStyleClear.js":60,"./CopyComponent":61,"./CopyComponent.js":61,"./DeleteComponent":62,"./DeleteComponent.js":62,"./ExportTemplate":63,"./ExportTemplate.js":63,"./Fullscreen":64,"./Fullscreen.js":64,"./MoveComponent":65,"./MoveComponent.js":65,"./OpenAssets":66,"./OpenAssets.js":66,"./OpenBlocks":67,"./OpenBlocks.js":67,"./OpenLayers":68,"./OpenLayers.js":68,"./OpenStyleManager":69,"./OpenStyleManager.js":69,"./OpenTraitManager":70,"./OpenTraitManager.js":70,"./PasteComponent":71,"./PasteComponent.js":71,"./Preview":72,"./Preview.js":72,"./Resize":73,"./Resize.js":73,"./SelectComponent":23,"./SelectComponent.js":23,"./SelectPosition":36,"./SelectPosition.js":36,"./ShowOffset":74,"./ShowOffset.js":74,"./SwitchVisibility":75,"./SwitchVisibility.js":75};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=98},function(t,e,n){"use strict";n.r(e);var r=n(3),i=n.n(r),o=n(14),a=n.n(o),s=(n(2),n(0)),u={stylePrefix:"comp-",components:[],draggableComponents:1,storeWrapper:0,processor:0,voidElements:["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]},c=n(10),l=n(30),f=n(12),h=n(42),d=n(1);function p(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 g(t){for(var e=1;e=0}}),b=f.default.extend({});function v(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\n \n '),fallback:"\n \n '),file:""}),initialize:function(t,e){c.a.prototype.initialize.apply(this,arguments);var n=this.get("attributes").src;n&&this.set("src",n,{silent:1})},initToolbar:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=this.get(t.fallback?"fallback":"src")||"",n=e;return e&&"2&&void 0!==arguments[2]?arguments[2]:{}).fromDisable&&this.disableEditing()},onActive:function(t){var e=this;return it()(at.a.mark((function n(){var r,i;return at.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.rte,i=e.em,!(e.rteEnabled||!e.model.get("editable")||i&&i.isEditing())){n.next=3;break}return n.abrupt("return");case 3:if(t&&t.stopPropagation&&t.stopPropagation(),!r){n.next=14;break}return n.prev=5,n.next=8,r.enable(e,e.activeRte);case 8:e.activeRte=n.sent,n.next=14;break;case 11:n.prev=11,n.t0=n.catch(5),i.logError(n.t0);case 14:e.toggleEvents(1);case 15:case"end":return n.stop()}}),n,null,[[5,11]])})))()},onDisable:function(){this.disableEditing()},disableEditing:function(){var t=this;return it()(at.a.mark((function e(){var n,r,i,o,a;return at.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.model,r=t.rte,i=t.activeRte,o=t.em,a=n&&n.get("editable"),!r){e.next=12;break}return e.prev=3,e.next=6,r.disable(t,i);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(3),o.logError(e.t0);case 11:a&&t.syncContent();case 12:t.toggleEvents();case 13:case"end":return e.stop()}}),e,null,[[3,8]])})))()},getContent:function(){var t=this.activeRte;return t&&"function"==typeof t.getContent?t.getContent():this.getChildrenContainer().innerHTML},syncContent:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.model,n=this.rte;if(this.rteEnabled||t.force){var r=this.getContent(),i=e.components(),o=ut({fromDisable:1},t);if(e.set("content","",o),n.customRte)i.length&&i.reset(null,t),e.set("content",r,o);else{var a=function e(n){var r=!!n.get("textable"),i=!["text","default",""].some((function(t){return n.is(t)}))||r;n.set(ut({_innertext:!i,editable:i&&n.get("editable"),selectable:i,hoverable:i,removable:r,draggable:r,highlightable:0,copyable:r},!r&&{toolbar:""}),t),n.get("components").each((function(t){return e(t)}))};i.reset(r,t),i.each((function(t){return a(t)})),i.trigger("resetNavigator")}}},onInput:function(){var t=this.em,e="component",n=["".concat(e,":update"),"".concat(e,":input")].join(" ");t&&t.trigger(n,this.model)},disablePropagation:function(t){t.stopPropagation()},toggleEvents:function(t){var e=this.em,n=this.model,r=this.$el,i={on:d.on,off:d.off},o=t?"on":"off";e.setEditing(t?this:0),this.rteEnabled=!!t;var a=[this.el.ownerDocument,document];if(i.off(a,"mousedown",this.disableEditing),i[o](a,"mousedown",this.disableEditing),e[o]("toolbar:run:before",this.disableEditing),n&&(n[o]("removed",this.disableEditing),n.trigger("rte:".concat(t?"enable":"disable"))),r&&r.off("mousedown",this.disablePropagation),r&&r[o]("mousedown",this.disablePropagation),this.config.draggableComponents)for(var s=this.el;s;)s.draggable=!t,(s=s.parentNode)&&"BODY"==s.tagName&&(s=0)}}),ft=lt.extend({render:function(){for(var t=arguments.length,e=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{}).inSvg}}),It=f.default.extend({_createElement:function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}});function Bt(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 Ft(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"",e=this.em,n="";!t&&r.stm&&(t=r.em.getCacheLoad());var i=t,o=i.components,a=i.html;if(o)if(Object(s.isObject)(o)||Object(s.isArray)(o))n=o;else try{n=JSON.parse(o)}catch(t){e&&e.logError(t)}else a&&(n=a);var u=n&&n.constructor===Object;return(n&&n.length||u)&&(this.clear(),u?this.getWrapper().set(n):this.getComponents().add(n)),n},store:function(t){if(!r.stm||this.em.get("hasPages"))return{};var e={},n=this.storageKey();if(n.indexOf("html")>=0&&(e.html=r.em.getHtml()),n.indexOf("components")>=0){var i=r.storeWrapper?this.getWrapper():this.getComponents();e.components=JSON.stringify(i)}return t||r.stm.store(e),e},getComponent:function(){var t=this.em.get("PageManager").getSelected(),e=t&&t.getMainFrame();return e&&e.getComponent()},getWrapper:function(){return this.getComponent()},getComponents:function(){var t=this.getWrapper();return t&&t.get("components")},addComponent:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getComponents().add(t,e)},render:function(){return n.render().el},clear:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getComponents().map((function(t){return t})).forEach((function(e){return e.remove(t)})),this},setComponents:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.clear(e).addComponent(t,e)},addType:function(t,e){var n=this.em,r=e.model,i=void 0===r?{}:r,u=e.view,c=void 0===u?{}:u,l=e.isComponent,f=e.extend,h=e.extendView,d=e.extendFn,p=void 0===d?[]:d,g=e.extendFnView,m=void 0===g?[]:g,b=this.getType(t),v=this.getType(f),y=this.getType(h),_=v||b||this.getType("default"),w=_.model,x=y?y.view:_.view,O=function(t,e,n){return t.reduce((function(t,r){var i=e[r],o=n.prototype[r];return i&&o&&(t[r]=function(){o.bind(this).apply(void 0,arguments),i.bind(this).apply(void 0,arguments)}),t}),{})};"object"===a()(i)&&(e.model=w.extend(ee(ee(ee({},i),O(p,i,w)),{},{defaults:ee(ee({},Object(s.result)(w.prototype,"defaults")||{}),Object(s.result)(i,"defaults")||{})}),{isComponent:!b||v||l?l||function(){return 0}:w.isComponent})),"object"===a()(c)&&(e.view=x.extend(ee(ee({},c),O(m,c,x)))),b?(b.model=e.model,b.view=e.view):(e.id=t,o.unshift(e));var E="component:type:".concat(b?"update":"add");return n&&n.trigger(E,b||e),this},getType:function(t){for(var e=o,n=0;n1&&void 0!==arguments[1]?arguments[1]:{};t&&(t.set({status:"selected"}),["component:selected","component:toggled"].forEach((function(r){return e.em.trigger(r,t,n)})))},selectRemove:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t&&(this.em,t.set({status:"",state:""}),["component:deselected","component:toggled"].forEach((function(r){return e.em.trigger(r,t,n)})))},componentHovered:function(){var t=r.em,e=t.get("componentHovered"),n=t.previous("componentHovered"),i="hovered";n&&n.get("status")==i&&n.set({status:"",state:""}),e&&Object(s.isEmpty)(e.get("status"))&&e.set("status",i)},allById:function(){return i},destroy:function(){var o=this.allById();Object.keys(o).forEach((function(t){return o[t]&&o[t].remove()})),n&&n.remove(),[r,t,i,e,n].forEach((function(t){return{}})),this.em={}}}}},function(t,e,n){"use strict";n.r(e);var r=n(3),i=n.n(r),o=n(0),a=n(18),s={stylePrefix:"gjs-",components:"",style:"",fromElement:0,noticeOnUnload:!0,showOffsets:!1,showOffsetsSelected:!1,forceClass:!0,height:"900px",width:"100%",log:["warning","error"],baseCss:"\n * {\n box-sizing: border-box;\n }\n html, body, [data-gjs-type=wrapper] {\n min-height: 100%;\n }\n body {\n margin: 0;\n height: 100%;\n background-color: #fff\n }\n [data-gjs-type=wrapper] {\n overflow: auto;\n overflow-x: hidden;\n }\n\n * ::-webkit-scrollbar-track {\n background: rgba(0, 0, 0, 0.1)\n }\n\n * ::-webkit-scrollbar-thumb {\n background: rgba(255, 255, 255, 0.2)\n }\n\n * ::-webkit-scrollbar {\n width: 10px\n }\n ",protectedCss:"* { box-sizing: border-box; } body {margin: 0;}",canvasCss:"",defaultCommand:"select-comp",showToolbar:1,allowScripts:0,showDevices:1,devicePreviewMode:0,mediaCondition:"max-width",tagVarStart:"{[ ",tagVarEnd:" ]}",keepEmptyTextNodes:0,jsInHtml:!0,nativeDnD:1,multipleSelection:1,exportWrapper:0,wrapperIsBody:1,optsHtml:{},optsCss:{},avoidInlineStyle:1,avoidDefaults:1,clearStyles:0,dragMode:0,listenToEl:[],cssIcons:"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css",el:"",i18n:{},undoManager:{},assetManager:{},canvas:{},layers:{},storageManager:{},richTextEditor:{},domComponents:{},modal:{},codeManager:{},panels:{},commands:{},cssComposer:{},selectorManager:{},deviceManager:{},styleManager:{sectors:[{name:"General",open:!1,buildProps:["float","display","position","top","right","left","bottom"]},{name:"Flex",open:!1,buildProps:["flex-direction","flex-wrap","justify-content","align-items","align-content","order","flex-basis","flex-grow","flex-shrink","align-self"]},{name:"Dimension",open:!1,buildProps:["width","height","max-width","min-height","margin","padding"]},{name:"Typography",open:!1,buildProps:["font-family","font-size","font-weight","letter-spacing","color","line-height","text-align","text-shadow"],properties:[{property:"text-align",list:[{value:"left",className:"fa fa-align-left"},{value:"center",className:"fa fa-align-center"},{value:"right",className:"fa fa-align-right"},{value:"justify",className:"fa fa-align-justify"}]}]},{name:"Decorations",open:!1,buildProps:["border-radius-c","background-color","border-radius","border","box-shadow","background"]},{name:"Extra",open:!1,buildProps:["transition","perspective","transform"]}]},blockManager:{},traitManager:{},textViewCode:"Code",keepUnusedStyles:0,multiFrames:0,customUI:!1},u=n(22),c=n.n(u),l=n(2),f=n.n(l),h=n(1),d=n(6),p=n.n(d),g=n(5),m=n.n(g),b=n(8),v=n.n(b),y=n(9),_=n.n(y),w=n(4),x=n.n(w);function O(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=x()(t);if(e){var i=x()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _()(this,n)}}var E=function(t){v()(n,t);var e=O(n);function n(){return m()(this,n),e.apply(this,arguments)}return n}(l.Model),k=function(t){v()(n,t);var e=O(n);function n(){return m()(this,n),e.apply(this,arguments)}return p()(n,[{key:"getByComponent",value:function(t){var e=this;return this.filter((function(n){return e.getComponent(n)===t}))[0]}},{key:"addComponent",value:function(t,e){var n=this,r=(Object(o.isArray)(t)?t:[t]).filter((function(t){return!n.hasComponent(t)})).map((function(t){return{component:t}}));return this.push(r,e)}},{key:"getComponent",value:function(t){return t.get("component")}},{key:"hasComponent",value:function(t){var e=this.getByComponent(t);return e&&this.contains(e)}},{key:"lastComponent",value:function(){var t=this.last();return t&&this.getComponent(t)}},{key:"allComponents",value:function(){var t=this;return this.map((function(e){return t.getComponent(e)})).filter((function(t){return t}))}},{key:"removeComponent",value:function(t,e){var n=this,r=(Object(o.isArray)(t)?t:[t]).map((function(t){return n.getByComponent(t)}));return this.remove(r,e)}}]),n}(l.Collection);k.prototype.model=E;var T=["unset"];function S(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 C(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};this.config=e,this.set("Config",e),this.set("modules",[]),this.set("toLoad",[]),this.set("storables",[]),this.set("selected",new k),this.set("dmode",e.dragMode),this.set("hasPages",!!e.pageManager);var n=e.el,r=e.log,i=!0===r?Object(o.keys)(P):Object(o.isArray)(r)?r:[];Object(o.bindAll)(this,"initBaseColorPicker"),n&&e.fromElement&&(this.config.components=n.innerHTML),this.attrsOrig=n?Object(o.toArray)(n.attributes).reduce((function(t,e){return t[e.nodeName]=e.nodeValue,t}),{}):"",M.forEach((function(e){return t.loadModule(e)})),this.on("change:componentHovered",this.componentHovered,this),this.on("change:changesCount",this.updateChanges,this),this.on("change:readyLoad change:readyCanvas",this._checkReady,this),i.forEach((function(e){return t.listenLog(e)})),[{from:"change:selectedComponent",to:"component:toggled"}].forEach((function(e){var n=e.from,r=e.to;t.listenTo(t,n,(function(){for(var e=arguments.length,i=new Array(e),o=0;o0&&void 0!==arguments[0]?arguments[0]:null,n=this.get("StorageManager");this.get("toLoad").forEach((function(t){t.onLoad()}));var r=function(){t.get("modules").forEach((function(e){return e.postLoad&&e.postLoad(t)})),t.set("readyLoad",1),e&&e()};n&&n.canAutoload()?this.load(r):setTimeout(r)},updateChanges:function(){var t=this,e=this.get("StorageManager"),n=this.get("changesCount");j&&clearTimeout(j),j=setTimeout((function(){return t.trigger("update")})),this.config.noticeOnUnload&&(window.onbeforeunload=n?function(t){return 1}:null),e.isAutosave()&&n>=e.getStepsBeforeSave()&&this.store()},loadModule:function(t){var e=this.config,n=new(t.default||t),r=n.name.charAt(0).toLowerCase()+n.name.slice(1),i=Object(o.isUndefined)(e[r])?e[n.name]:e[r],a=!0===i?{}:i||{},s=this.get("StorageManager");if(a.pStylePrefix=e.pStylePrefix||"",Object(o.isUndefined)(i)||i||(a._disable=1),n.storageKey&&n.store&&n.load&&s){a.stm=s;var u="domComponents"==r?"unshift":"push";this.get("storables")[u](n)}return a.em=this,n.init(C({},a)),!n.private&&this.set(n.name,n),n.onLoad&&this.get("toLoad").push(n),this.get("modules").push(n),this},init:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.destroyed&&(this.initialize(e),this.destroyed=0),this.set("Editor",t)},getEditor:function(){return this.get("Editor")},handleUpdates:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r.temporary||r.noCount||r.avoidStore||!this.get("ready")||(A&&clearTimeout(A),A=setTimeout((function(){var t=n.get("changesCount")||0,e=(r.unset,c()(r,T));n.set("changesCount",t+1,e)}),0))},changesUp:function(t){this.handleUpdates(0,0,t)},componentHovered:function(t,e,n){var r=this.previous("componentHovered");r&&this.trigger("component:unhovered",r,n),e&&this.trigger("component:hovered",e,n)},getSelected:function(){return this.get("selected").lastComponent()},getSelectedAll:function(){return this.get("selected").allComponents()},setSelected:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.event,i=r&&(r.ctrlKey||r.metaKey),s=(r||{}).shiftKey,u=Object(o.isArray)(t),c=(u?t:[t]).map((function(t){return Object(h.getModel)(t,a.default)})),l=this.getSelectedAll(),f=this.getConfig("multipleSelection");u&&this.removeSelected(l.filter((function(t){return!Object(o.contains)(c,t)}))),c.forEach((function(t){var r=Object(h.getModel)(t,a.default);if(!r||r.get("selectable")){if(i&&f)return e.toggleSelected(r);if(s&&f){e.clearSelection(e.get("Canvas").getWindow());var c,d,p=r.collection,g=r.index();if(e.getSelectedAll().forEach((function(t){var e=t.collection,n=t.index();e===p&&(ng&&(d=Object(o.isUndefined)(d)?n:Math.min(d,n)))})),!Object(o.isUndefined)(c))for(;c!==g;)e.addSelected(p.at(c)),c++;if(!Object(o.isUndefined)(d))for(;d!==g;)e.addSelected(p.at(d)),d--;return e.addSelected(r)}!u&&e.removeSelected(l.filter((function(t){return t!==r}))),e.addSelected(r,n)}}))},addSelected:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(h.getModel)(t,a.default);(Object(o.isArray)(r)?r:[r]).forEach((function(t){if(!t||t.get("selectable")){var r=e.get("selected");n.forceChange&&e.removeSelected(t,n),r.addComponent(t,n)}}))},removeSelected:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.get("selected").removeComponent(Object(h.getModel)(t,a.default),e)},toggleSelected:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(h.getModel)(t,a.default);(Object(o.isArray)(r)?r:[r]).forEach((function(t){e.get("selected").hasComponent(t)?e.removeSelected(t,n):e.addSelected(t,n)}))},setHovered:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object(h.getModel)(t,a.default);n&&!n.get("hoverable")||(e.forceChange&&this.set("componentHovered",""),this.set("componentHovered",n,e))},getHovered:function(){return this.get("componentHovered")},setComponents:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.get("DomComponents").setComponents(t,e)},getComponents:function(){var t=this.get("DomComponents"),e=this.get("CodeManager");if(t&&e){var n=t.getComponents();return e.getCode(n,"json")}},setStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.get("CssComposer");return n.clear(e),n.getAll().add(t,e),this},addStyle:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getStyle().add(t,e);return Object(o.isArray)(n)?n:[n]},getStyle:function(){return this.get("CssComposer").getAll()},setState:function(t){return this.set("state",t),this},getState:function(){return this.get("state")||""},getHtml:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.config,n=e.optsHtml,r=e.exportWrapper,i=e.wrapperIsBody,o=e.jsInHtml?this.getJs(t):"",a=t.component||this.get("DomComponents").getComponent();return(a?this.get("CodeManager").getCode(a,"html",C(C({exportWrapper:r,wrapperIsBody:i},n),t)):"")+(o?"